/* ============================================================
   TeamTale — clean, light, restrained
   Stripe/Notion-grade. One muted accent. Self-hosted, no build.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:          #ffffff;
  --bg-alt:      #f7f8fa;     /* alternating section wash */
  --bg-sunken:   #f2f4f7;
  --surface:     #ffffff;

  /* Text */
  --text:        #0c111d;     /* near-slate-950 */
  --text-soft:   #475467;
  --muted:       #667085;
  --faint:       #98a2b3;

  /* One restrained accent — muted blue */
  --accent:      #2f6bed;
  --accent-press:#2257cf;
  --accent-soft: #eef3fe;
  --accent-line: #d6e2fc;

  /* Hairlines & depth */
  --border:        #ececf0;
  --border-strong: #dfe2e8;
  --shadow-xs: 0 1px 2px rgba(16,24,40,.05);
  --shadow-sm: 0 1px 3px rgba(16,24,40,.07), 0 1px 2px rgba(16,24,40,.04);
  --shadow-md: 0 8px 24px -10px rgba(16,24,40,.14);
  --shadow-lg: 0 24px 48px -20px rgba(16,24,40,.20);

  /* Subtle support colors (used sparingly) */
  --pos:  #1f9d63;
  --pos-soft: #e7f6ee;
  --warn: #b54708;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --nav-h: 68px;
  --maxw: 1120px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); margin-bottom: 16px;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 680; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 660; letter-spacing: -0.03em; }
h3 { font-size: 1.18rem; font-weight: 620; }
.section-head h2 { margin-bottom: 16px; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.6; }
.accent-text { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.95rem; font-weight: 560; line-height: 1;
  padding: 12px 20px; border-radius: var(--r-pill);
  transition: background .18s var(--ease), color .18s, border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { color: #fff; background: var(--accent); box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--accent-press); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-secondary { color: var(--text); background: #fff; border: 1px solid var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: var(--faint); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-quiet { color: var(--text-soft); padding: 12px 8px; }
.btn-quiet:hover { color: var(--accent); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-on-accent { background: #fff; color: var(--accent); }
.btn-on-accent:hover { background: rgba(255,255,255,.92); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  background: rgba(255,255,255,0); border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(12px); border-color: var(--border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 640; font-size: 1.12rem; letter-spacing: -0.03em; }
.brand .logo-mark { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--accent); }
.brand .logo-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-soft); font-size: 0.93rem; font-weight: 500; transition: color .18s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border-strong); background: #fff; }
.nav-toggle span { display: block; width: 17px; height: 1.5px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: .25s; }

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.8rem; font-weight: 540; color: var(--text-soft);
  padding: 5px 12px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--border-strong); box-shadow: var(--shadow-xs);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); }
.pill.accent { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); box-shadow: none; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + 76px); padding-bottom: 88px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 60px; align-items: center; }
.hero h1 { margin: 20px 0 20px; }
.hero .sub { font-size: clamp(1.06rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 500px; margin-bottom: 32px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-trust { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.88rem; }
.hero-trust .avatars { display: flex; }
.hero-trust .av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: grid; place-items: center; font-size: 0.66rem; font-weight: 600; color: #fff; box-shadow: var(--shadow-xs); }
.hero-trust .av:first-child { margin-left: 0; }
.hero-trust b { color: var(--text); font-weight: 600; }

/* Hero product mock-up (shows the actual workflow) */
.hero-visual { display: flex; justify-content: center; }
.ui { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.ui-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.ui-brand { display: flex; align-items: center; gap: 9px; font-weight: 640; font-size: 0.95rem; }
.ui-logo { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 0.82rem; font-weight: 700; }
.ui-live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--muted); }
.ui-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); animation: livedot 2.2s infinite; }
.ui-body { padding: 18px; display: grid; gap: 13px; }
.ui-toast { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.ui-toast-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.ui-toast-ic svg { width: 18px; height: 18px; }
.ui-toast-t { font-weight: 620; font-size: 0.9rem; line-height: 1.25; }
.ui-toast-s { font-size: 0.79rem; color: var(--text-soft); }
.ui-reward { margin-left: auto; align-self: flex-start; font-size: 0.66rem; font-weight: 600; color: var(--accent); background: #fff; border: 1px solid var(--accent-line); padding: 4px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.ui-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; }
.ui-card-h { font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 7px; }
.ui-task { font-weight: 620; font-size: 1.02rem; margin-bottom: 11px; }
.ui-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.ui-chip { font-size: 0.73rem; color: var(--text-soft); background: var(--bg-sunken); border: 1px solid var(--border); padding: 5px 10px; border-radius: var(--r-pill); }
.ui-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ui-dd { border: 1px solid var(--border); border-radius: var(--r-md); padding: 11px 12px; }
.ui-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; margin-bottom: 5px; }
.ui-lbl svg { width: 14px; height: 14px; }
.ui-lbl.do { color: var(--pos); } .ui-lbl.dont { color: var(--muted); }
.ui-dd p { font-size: 0.81rem; color: var(--text-soft); line-height: 1.4; }
.ui-btn { width: 100%; padding: 12px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 600; font-size: 0.94rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .18s; }
.ui-btn svg { width: 16px; height: 16px; }
.ui-btn:hover { background: var(--accent-press); }
.js .ui-toast { animation: uiSlide .6s var(--ease) both .3s; }
@keyframes livedot { 0% { box-shadow: 0 0 0 0 rgba(31,157,99,.45); } 70% { box-shadow: 0 0 0 6px rgba(31,157,99,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,99,0); } }
@keyframes uiSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Cards & grid ---------- */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-xs);
  transition: box-shadow .25s var(--ease), border-color .25s, transform .25s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.card .ic {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.card .ic svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.feat-list { margin-top: 16px; display: grid; gap: 9px; }
.feat-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; color: var(--text-soft); }
.feat-list li .chk { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.note {
  margin-top: 18px; padding: 12px 14px; border-radius: var(--r-md); font-size: 0.84rem; color: var(--text-soft);
  background: var(--bg-sunken); border: 1px solid var(--border);
}
.note b { color: var(--text); }

/* ---------- Split panels (problem / before-after) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-xs); }
.panel .tag { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; padding: 4px 11px; border-radius: var(--r-pill); margin-bottom: 16px; }
.panel.before .tag { color: var(--muted); background: var(--bg-sunken); }
.panel.after .tag  { color: var(--accent); background: var(--accent-soft); }
.panel h3 { font-size: 1.3rem; margin-bottom: 14px; }
.panel ul { display: grid; gap: 11px; }
.panel li { display: flex; gap: 10px; font-size: 0.93rem; color: var(--text-soft); align-items: flex-start; }
.panel li .mk { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; }
.panel.before li .mk { color: var(--faint); }
.panel.after  li .mk { color: var(--accent); }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { text-align: center; padding: 28px 18px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat .num { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 660; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
.stat .num .accent-text { color: var(--accent); }
.stat .lbl { color: var(--muted); margin-top: 8px; font-size: 0.92rem; }

/* ---------- Leaderboard ---------- */
.board { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.board-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.board-head .ttl { font-weight: 620; font-size: 0.98rem; }
.board-head .live { font-size: 0.74rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.board-head .live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); }
.lb-row { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: var(--r-md); margin-bottom: 8px; border: 1px solid var(--border); transition: background .2s; }
.lb-row.top { background: var(--accent-soft); border-color: var(--accent-line); }
.lb-rank { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 640; font-size: 0.84rem; background: var(--bg-sunken); color: var(--text-soft); flex: 0 0 auto; }
.lb-row.top .lb-rank { background: var(--accent); color: #fff; }
.lb-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 0.74rem; color: #fff; flex: 0 0 auto; }
.lb-info { flex: 1; min-width: 0; }
.lb-info .nm { font-weight: 560; font-size: 0.9rem; }
.lb-info .sc { font-size: 0.76rem; color: var(--muted); }
.lb-bar { height: 5px; border-radius: 3px; background: var(--bg-sunken); overflow: hidden; margin-top: 7px; }
.lb-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); width: 0; transition: width 1s var(--ease); }
.lb-delta { font-weight: 600; font-size: 0.82rem; flex: 0 0 auto; }
.lb-delta.up { color: var(--pos); } .lb-delta.down { color: var(--muted); }
.challenge { margin-top: 16px; padding: 15px; border-radius: var(--r-md); background: var(--bg-sunken); border: 1px solid var(--border); }
.challenge .ch-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.challenge .ch-top .ttl { font-weight: 600; font-size: 0.88rem; }
.challenge .ch-top .pr { font-size: 0.78rem; color: var(--accent); font-weight: 560; }
.progress { height: 8px; border-radius: 5px; background: #e6e9ef; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; border-radius: 5px; transition: width 1.2s var(--ease); }
.challenge .ch-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.76rem; color: var(--muted); }

/* ---------- Steps ---------- */
.usecase { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 34px; margin-bottom: 20px; box-shadow: var(--shadow-xs); }
.uc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.uc-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: var(--r-pill); }
.uc-head h3 { font-size: 1.3rem; }
.uc-sub { color: var(--muted); margin-bottom: 28px; font-size: 0.95rem; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { position: relative; }
.step .n { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 640; font-size: 0.84rem; background: #fff; border: 1px solid var(--border-strong); color: var(--accent); margin-bottom: 14px; box-shadow: var(--shadow-xs); }
.step h4 { font-size: 0.96rem; font-weight: 600; margin-bottom: 5px; }
.step p { color: var(--muted); font-size: 0.83rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 38px; right: -10px; height: 1px; background: var(--border-strong); }

/* ---------- Showcase (extension) ---------- */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.browser { border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.browser .bar .d { width: 10px; height: 10px; border-radius: 50%; background: #d7dbe2; }
.browser .bar .url { margin-left: 10px; font-size: 0.74rem; color: var(--muted); background: #fff; border: 1px solid var(--border); padding: 4px 12px; border-radius: var(--r-pill); flex: 1; }
.browser .body { padding: 16px; display: grid; gap: 10px; }
.tmpl { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: var(--r-md); border: 1px solid var(--border); transition: .2s; }
.tmpl:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.tmpl .badge { font-size: 0.66rem; font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.tmpl .badge.neutral { background: var(--bg-sunken); color: var(--text-soft); }
.tmpl .tt { font-size: 0.85rem; font-weight: 500; flex: 1; color: var(--text); }
.tmpl .arrow { color: var(--faint); }

/* ---------- Pricing ---------- */
.price-wrap { max-width: 480px; margin: 0 auto; }
.price-card { padding: 36px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); }
.price-card .tier { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; color: var(--accent); }
.price-card .amt { font-size: 3rem; font-weight: 680; letter-spacing: -0.04em; line-height: 1; margin: 12px 0 4px; }
.price-card .amt small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card .desc { color: var(--muted); margin-bottom: 22px; }
.price-badge { display: inline-block; margin-left: 10px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: var(--r-pill); vertical-align: middle; }
.price-card .amt .was { text-decoration: line-through; color: var(--faint); font-size: 1.5rem; font-weight: 500; margin-left: 12px; letter-spacing: -0.02em; }
.price-card .per { color: var(--muted); font-size: 0.9rem; margin: 2px 0 16px; }
.price-card .vendor-link { display: block; text-align: center; margin-top: 16px; color: var(--muted); font-size: 0.86rem; }
.price-card .vendor-link a { color: var(--accent); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; font-weight: 560; font-size: 1rem; color: var(--text); }
.faq-q .ic { flex: 0 0 auto; width: 22px; height: 22px; position: relative; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-q .ic::before { width: 12px; height: 1.5px; }
.faq-q .ic::after { width: 1.5px; height: 12px; transition: transform .3s var(--ease); }
.faq-item.open .faq-q .ic { color: var(--accent); }
.faq-item.open .faq-q .ic::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 4px 22px; color: var(--muted); font-size: 0.94rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 64px 40px; border-radius: var(--r-xl); background: var(--accent); color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 480px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { margin-bottom: 12px; }
.footer .tag { color: var(--muted); max-width: 280px; font-size: 0.9rem; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links h5 { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-weight: 600; }
.footer-links a { display: block; color: var(--text-soft); font-size: 0.9rem; margin-bottom: 9px; transition: color .18s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--faint); font-size: 0.84rem; }

/* ---------- Scroll reveal (gated behind .js) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .06s; } .js .reveal.d2 { transition-delay: .12s; }
.js .reveal.d3 { transition-delay: .18s; } .js .reveal.d4 { transition-delay: .24s; }

/* ---------- Scroll-driven amplification ---------- */
.scrolly { position: relative; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.scrolly-track { position: relative; height: 320vh; }
.scrolly-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scrolly-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrolly-head { position: absolute; top: 11vh; left: 0; right: 0; text-align: center; padding: 0 24px; z-index: 2; pointer-events: none; }
.scrolly-head .eyebrow { margin-bottom: 10px; }
.scrolly-head h2 { max-width: 640px; margin: 0 auto; }
.scrolly-steps { position: absolute; left: 0; right: 0; bottom: 12vh; display: grid; z-index: 2; pointer-events: none; }
.scrolly-step { grid-area: 1 / 1; justify-self: center; max-width: 540px; text-align: center; padding: 0 24px; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.scrolly-step.active { opacity: 1; transform: none; }
.scrolly-step .k { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); background: var(--accent-soft); padding: 4px 11px; border-radius: var(--r-pill); margin-bottom: 14px; }
.scrolly-step h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 8px; }
.scrolly-step p { color: var(--muted); font-size: 1rem; }
.scrolly-metric { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
.scrolly-metric.show { opacity: 1; }
.scrolly-metric .n { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 680; letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.scrolly-metric .l { color: var(--text-soft); margin-top: 6px; font-size: 0.95rem; }

/* ---------- Color system (more life, less generic) ---------- */
:root {
  --violet: #7c5cff; --violet-soft: #efeaff;
  --teal:   #0ca5a0; --teal-soft:   #e0f5f3;
  --amber:  #f59e0b; --amber-soft:  #fdf2db;
  --pink:   #ec4899; --pink-soft:   #fdeaf3;
}
/* gradient brand marks + buttons */
.brand .logo-mark, .ui-logo { background: linear-gradient(135deg, #2f6bed, #7c5cff); }
.btn-primary { background: linear-gradient(120deg, #2f6bed 0%, #5a63ef 100%); }
.btn-primary:hover { background: linear-gradient(120deg, #2257cf 0%, #4b54e0 100%); }
.ui-btn { background: linear-gradient(120deg, #2f6bed 0%, #5a63ef 100%); }
.ui-btn:hover { background: linear-gradient(120deg, #2257cf 0%, #4b54e0 100%); }
/* colourful, non-uniform icon tiles */
.card .ic { width: 44px; height: 44px; border-radius: 13px; }
.grid .card:nth-child(4n+1) .ic { background: var(--accent-soft); color: var(--accent); }
.grid .card:nth-child(4n+2) .ic { background: var(--violet-soft); color: var(--violet); }
.grid .card:nth-child(4n+3) .ic { background: var(--amber-soft); color: var(--amber); }
.grid .card:nth-child(4n+4) .ic { background: var(--teal-soft); color: var(--teal); }
/* coloured section eyebrows */
#amplify .eyebrow, #gamify .eyebrow { color: var(--violet); }
#extension .eyebrow { color: var(--amber); }
#vendors .eyebrow { color: var(--teal); }
#results .eyebrow { color: var(--pink); }
/* coloured use-case tags */
.usecase:nth-of-type(3) .uc-tag { color: var(--violet); background: var(--violet-soft); }
/* coloured stats */
.stats-row .stat:nth-child(2) .num, .stats-row .stat:nth-child(2) .num .accent-text { color: var(--violet); }
.stats-row .stat:nth-child(3) .num, .stats-row .stat:nth-child(3) .num .accent-text { color: var(--teal); }
/* gradient CTA band */
.cta-band { background: linear-gradient(120deg, #2f6bed 0%, #7c5cff 52%, #c14bff 100%); }
/* soft colour wash behind the hero */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -12% 0 auto 0; height: 86%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 48% at 80% 22%, rgba(124,92,255,.16), transparent 70%),
    radial-gradient(34% 44% at 8% 6%, rgba(47,107,237,.13), transparent 72%),
    radial-gradient(30% 42% at 94% 64%, rgba(236,72,153,.09), transparent 72%); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .show { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  section { padding: 76px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 14px 24px 22px; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
  .nav.open .nav-links a { padding: 10px 0; width: 100%; }
  .split, .cols-2, .stats-row { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 720px) {
  .scrolly-track { height: 280vh; }
  .scrolly-head { top: 8vh; }
  .scrolly-step h3 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .scrolly-track { height: auto; min-height: 100vh; }
  .scrolly-sticky { position: relative; height: 100vh; }
  .scrolly-step { position: static; opacity: 1; transform: none; }
  .scrolly-steps { position: absolute; }
}

/* ============================================================
   Brand v2 — display serif · 2-colour system · ripple signature
   ============================================================ */
:root {
  --font-display: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --coral: #ff6a4d; --coral-strong: #ec4a2c; --coral-soft: #fff0ec; --coral-line: #ffd6ca;
}
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; }
.hero h1 { letter-spacing: -0.035em; line-height: 1.05; }
.section-head h2 { letter-spacing: -0.03em; }

/* Icon tiles → circular nodes with a coral ripple ring (signature motif), one blue glyph */
.grid .card:nth-child(4n+1) .ic, .grid .card:nth-child(4n+2) .ic,
.grid .card:nth-child(4n+3) .ic, .grid .card:nth-child(4n+4) .ic { background: var(--accent-soft); color: var(--accent); }
.card .ic { position: relative; border-radius: 50%; overflow: visible; }
.card .ic::before { content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%,-50%); border-radius: 50%; border: 1.5px solid var(--coral); opacity: .38; }
.card .ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; transform: translate(-50%,-50%); border-radius: 50%; border: 1.5px solid var(--coral); opacity: .15; }
.card .ic svg { position: relative; z-index: 1; }
.card .ic svg path, .card .ic svg circle, .card .ic svg rect { stroke-width: 1.85px; }

/* Coral = energy / people / reward (used with intent, not decoration) */
.lb-row.top { background: var(--coral-soft); border-color: var(--coral-line); }
.lb-row.top .lb-rank { background: var(--coral); color: #fff; }
.lb-row.top .lb-av { background: var(--coral) !important; }
.lb-delta.up { color: var(--coral-strong); }
.challenge .ch-top .pr { color: var(--coral-strong); }
.ui-reward { color: var(--coral-strong); border-color: var(--coral-line); }
.ui-toast-ic { background: var(--coral); }
.price-badge { color: var(--coral-strong); background: var(--coral-soft); }

/* Reset the scattered multi-colour eyebrows/stats to the disciplined pair */
#amplify .eyebrow, #gamify .eyebrow, #extension .eyebrow, #vendors .eyebrow { color: var(--accent); }
#results .eyebrow { color: var(--coral-strong); }
.stats-row .stat:nth-child(2) .num, .stats-row .stat:nth-child(2) .num .accent-text { color: var(--coral-strong); }
.stats-row .stat:nth-child(3) .num, .stats-row .stat:nth-child(3) .num .accent-text { color: var(--accent); }

/* Calmer single hero wash */
.hero::before { background:
  radial-gradient(42% 52% at 82% 26%, rgba(47,107,237,.13), transparent 70%),
  radial-gradient(34% 44% at 8% 6%, rgba(255,106,77,.11), transparent 72%); }

/* One coherent gradient token (blue → indigo) */
.brand .logo-mark, .ui-logo { background: linear-gradient(135deg, #2f6bed, #4f46e5); }
.btn-primary, .ui-btn { background: linear-gradient(120deg, #2f6bed 0%, #4f46e5 100%); }
.btn-primary:hover, .ui-btn:hover { background: linear-gradient(120deg, #2257cf 0%, #423bd0 100%); }
.cta-band { background: linear-gradient(125deg, #2f6bed 0%, #4f46e5 100%); }

/* "Why your team posts" objection band */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason { position: relative; padding: 26px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-xs); }
.reason .rn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--coral-soft); color: var(--coral-strong); font-family: var(--font-display); font-weight: 600; margin-bottom: 16px; }
.reason h3 { margin-bottom: 8px; }
.reason p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

/* Reviews grid */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; }
.review .stars { display: flex; gap: 2px; color: var(--coral); margin-bottom: 13px; }
.review .stars svg { width: 16px; height: 16px; }
.review .rq { font-size: 0.95rem; color: var(--text-soft); line-height: 1.55; margin-bottom: 18px; flex: 1; }
.review .who { display: flex; align-items: center; gap: 11px; }
.review .who .av { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 0.8rem; flex: 0 0 auto; }
.review .who .nm { font-weight: 600; font-size: 0.9rem; }
.review .who .rl { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
