/* ============================================================================
   Survizo — marketing site (LIGHT)
   Clean light canvas (matches the app's light Material theme) + Survizo pink
   accent + the real logo carried in a dark floating nav pill / dark footer.
   Display: Bricolage Grotesque · Body/UI: Manrope · big soft radii, soft shadows.
   ========================================================================== */

:root {
  --bg:       #FAF8F4;   /* warm off-white — softer than pure white */
  --bg-2:     #F1EEE8;   /* alternating warm light section */
  --ink:      #16181E;   /* dark nav pill + footer (carries the real logo) */
  --ink-2:    #101218;

  --fg:       #26232C;   /* soft near-black, warm — not pure black */
  --fg-soft:  #6A6573;
  --fg-faint: #9B96A2;
  --on-ink:      rgba(255,255,255,.92);
  --on-ink-soft: rgba(255,255,255,.58);

  --pink:      #F5337E;   /* slightly softened from neon for large fills */
  --pink-deep: #C92167;
  --pink-tint: #FBEEF3;
  --green:     #16A34A;

  --line:   rgba(38,35,44,.08);
  --line-2: rgba(38,35,44,.13);
  --shadow-sm: 0 2px 12px -6px rgba(40,35,55,.16);
  --shadow:    0 26px 54px -36px rgba(40,35,60,.22);
  --shadow-lg: 0 46px 92px -44px rgba(40,35,60,.26);

  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --body:    "Manrope", system-ui, -apple-system, sans-serif;
  --mono:    "Manrope", system-ui, sans-serif;   /* unified — labels use Manrope, tracked */

  --r-xl: 36px; --r-lg: 26px; --r-md: 18px; --r-sm: 12px; --pill: 999px;
  --maxw: 1440px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(78px, 10vw, 148px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body); background: var(--bg); color: var(--fg);
  line-height: 1.6; font-weight: 450;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--pink); color: #fff; }

/* ----------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

.eyebrow { font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--pink); border-radius: 2px; flex: none; }

/* highlighter motif — softer pink marker that draws in like a real highlight */
.mark { background-image: linear-gradient(transparent 60%, rgba(245,51,126,.24) 60%, rgba(245,51,126,.24) 90%, transparent 90%); background-repeat: no-repeat; background-size: 100% 100%; padding: 0 .05em; }
@media (prefers-reduced-motion: no-preference) {
  .mark { background-size: 0% 100%; animation: markDraw 1s .55s var(--ease) forwards; }
}
@keyframes markDraw { to { background-size: 100% 100%; } }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; color: var(--fg); }
.h-display { font-size: clamp(2.6rem, 6.6vw, 5rem); line-height: .98; letter-spacing: -.04em; }
.h-section { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.03em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.26rem); color: var(--fg-soft); font-weight: 450; max-width: 46ch; }
.grad-text { color: var(--pink); }

/* ----------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: var(--pill); font-weight: 700; font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 10px 26px -10px rgba(255,46,147,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(255,46,147,.7); }
.btn-ghost { background: #fff; color: var(--fg); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; justify-content: center; padding: 16px var(--gutter); transition: padding .35s var(--ease); }
.nav-inner {
  width: 100%; max-width: var(--maxw); display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 22px; border-radius: var(--pill);
  background: var(--ink);   /* dark pill so the real (white-on-dark) logo works on a light page */
  box-shadow: 0 18px 44px -22px rgba(20,18,45,.5);
}
.nav.scrolled { padding-block: 9px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; margin-left: 14px; }
.nav-links a { padding: 8px 14px; border-radius: var(--pill); font-size: 14.5px; font-weight: 600; color: var(--on-ink-soft); transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-signin { padding: 9px 16px; border-radius: var(--pill); font-weight: 650; font-size: 14.5px; color: var(--on-ink); transition: background .2s; white-space: nowrap; }
.nav-signin:hover { background: rgba(255,255,255,.1); }

/* -------------------------------------------------------------------- hero */
.hero { position: relative; padding-top: clamp(140px, 18vh, 210px); padding-bottom: clamp(56px, 8vw, 100px); overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow-a { width: 720px; height: 720px; top: -340px; right: -120px; background: radial-gradient(circle, rgba(255,46,147,.14), transparent 68%); }
.glow-b { width: 520px; height: 520px; top: 80px; left: -220px; background: radial-gradient(circle, rgba(255,46,147,.07), transparent 66%); }
.grid-veil {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(18,18,30,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(18,18,30,.04) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 18%, #000 28%, transparent 76%);
          mask-image: radial-gradient(ellipse 80% 60% at 70% 18%, #000 28%, transparent 76%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 22px; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--fg-faint); font-size: 13.5px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }

/* hero stage: tokens drift around a live survey card */
.stage { position: relative; aspect-ratio: 1 / 1.02; perspective: 1400px; }
.token { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-weight: 800; font-size: 15px; color: var(--fg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); will-change: transform; }
.token.soft { color: var(--fg-soft); }
.token.accent { color: #fff; background: var(--pink); border-color: var(--pink); box-shadow: 0 10px 26px -8px rgba(255,46,147,.55); }
.insight-card { position: absolute; inset: 14% 6%; z-index: 3; border-radius: var(--r-lg); padding: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform-style: preserve-3d; will-change: transform; }
.ic-head { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--fg-soft); text-transform: uppercase; }
.ic-spark { width: 22px; height: 22px; border-radius: 7px; background: var(--pink); display: grid; place-items: center; font-size: 12px; color: #fff; }
.ic-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1.7vw, 1.5rem); margin-top: 16px; line-height: 1.14; letter-spacing: -.02em; }
.ic-foot { margin-top: 18px; font-size: 12.5px; color: var(--fg-faint); }
.nps-scale { display: flex; gap: 6px; margin-top: 20px; }
.nps-scale span { flex: 1; aspect-ratio: 1; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--fg-soft); background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; }
.nps-scale span.sel { color: #fff; background: var(--pink); border-color: var(--pink); box-shadow: 0 8px 18px -6px rgba(255,46,147,.5); }

/* --------------------------------------------------- alternating sections */
.section--alt { background: rgba(241,238,232,.80); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: -36px; }
.section--alt + .section--alt { margin-top: 0; border-radius: 0; }
.section--tuck { background: rgba(250,248,244,.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: -36px; }

/* 3D "response journey" — fixed WebGL field; content floats over it on frosted glass */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
main, .footer { position: relative; z-index: 1; }
.hero-bg { display: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, rgba(250,248,244,.95) 0%, rgba(250,248,244,.82) 38%, rgba(250,248,244,0) 66%); }
.hero .wrap { position: relative; z-index: 2; }

.section-head { max-width: 680px; margin-bottom: clamp(38px, 5vw, 62px); }
.section-head .h-section { margin-top: 16px; }
.section-head .lead { margin-top: 18px; }
.center { margin-inline: auto; text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* --------------------------------------------------------- split / feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-list { margin-top: 26px; display: grid; gap: 18px; }
.feat { display: flex; gap: 14px; }
.feat-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--pink-tint); border: 1px solid rgba(255,46,147,.18); }
.feat h4 { font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.feat p { color: var(--fg-soft); font-size: 14.5px; margin-top: 3px; }

/* product mock (already light) */
.device { border-radius: var(--r-lg); overflow: hidden; position: relative; border: 1px solid var(--line); box-shadow: var(--shadow); transform-style: preserve-3d; will-change: transform; background: #fff; }
.device-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d7d5db; }
.device-url { margin-left: 10px; font-size: 12px; color: var(--fg-soft); font-weight: 600; background: #fff; padding: 5px 12px; border-radius: var(--pill); border: 1px solid var(--line); }
.ds-hero { padding: 30px 26px 26px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-deep)); }
.ds-logo { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 22px; }
.ds-hero h5 { font-family: var(--display); font-size: 1.5rem; font-weight: 700; margin-top: 14px; letter-spacing: -.02em; }
.ds-hero p { font-size: 13px; opacity: .92; margin-top: 4px; }
.ds-pill { display: inline-block; margin-top: 16px; background: #fff; color: var(--pink); font-weight: 700; font-size: 13px; padding: 9px 18px; border-radius: var(--pill); }
.ds-body { padding: 20px 26px 28px; display: grid; gap: 12px; }
.ds-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: flex; gap: 12px; align-items: center; }
.ds-thumb { width: 46px; height: 46px; border-radius: 11px; flex: none; }
.ds-card h6 { font-size: 13.5px; font-weight: 700; }
.ds-card p { font-size: 12px; color: var(--fg-soft); margin-top: 2px; }
.swatch-row { display: flex; gap: 8px; margin-top: 18px; align-items: center; }
.swatch { width: 28px; height: 28px; border-radius: 9px; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.swatch-row span { font-size: 13px; color: var(--fg-soft); font-weight: 600; margin-left: 6px; }

/* ----------------------------------------------------- features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 30px); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.fcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.fcard .fic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--pink-tint); border: 1px solid rgba(255,46,147,.18); margin-bottom: 16px; }
.fcard h3 { font-size: 1.18rem; }
.fcard p { color: var(--fg-soft); margin-top: 8px; font-size: 14.5px; line-height: 1.6; }
@media (max-width: 920px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ----------------------------------------------------- how it works */
.timeline { position: relative; max-width: 860px; margin-inline: auto; display: grid; gap: 24px; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 35px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(180deg, var(--pink), rgba(255,46,147,.12)); border-radius: 2px; }
@media (max-width: 560px) { .timeline::before { left: 27px; } }
.tl-step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.tl-node { position: relative; z-index: 1; flex: none; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--pink); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tl-card h3 { font-size: clamp(1.18rem, 2vw, 1.5rem); }
.tl-card p { color: var(--fg-soft); margin-top: 8px; font-size: 15px; max-width: 56ch; }
@media (max-width: 560px) { .tl-step { gap: 16px; } .tl-node { width: 56px; height: 56px; border-radius: 16px; font-size: 1.2rem; } }

/* ----------------------------------------------------- ai payoff */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.ai-card { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 32px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.report { margin-top: 18px; display: grid; gap: 11px; }
.report-title { height: 13px; width: 58%; border-radius: 6px; background: rgba(18,18,30,.18); }
.report-lines { display: grid; gap: 9px; margin-top: 2px; }
.report-lines i { height: 8px; border-radius: 5px; background: rgba(18,18,30,.08); display: block; }
.report-lines i:nth-child(1) { width: 100%; }
.report-lines i:nth-child(2) { width: 96%; }
.report-lines i:nth-child(3) { width: 88%; }
.report-lines i:nth-child(4) { width: 100%; }
.report-lines i:nth-child(5) { width: 62%; }
.report-badge { margin-top: 20px; display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; color: var(--fg-soft); }
.ai-tokens { display: flex; gap: 7px; margin-top: 20px; flex-wrap: wrap; }
.mini-token { font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: var(--pill); border: 1px solid var(--line); color: var(--fg-soft); background: var(--bg-2); }

/* ----------------------------------------------------- contact / cta */
.contact-shell { border-radius: var(--r-xl); overflow: hidden; position: relative; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; }
.contact-aside { padding: clamp(34px, 4vw, 56px); position: relative; overflow: hidden; background: linear-gradient(160deg, var(--pink-tint), #fff); }
.contact-aside .lead { margin-top: 18px; }
.contact-points { margin-top: 28px; display: grid; gap: 14px; }
.contact-points li { list-style: none; display: flex; gap: 12px; align-items: center; color: var(--fg-soft); font-size: 14.5px; font-weight: 550; }
.contact-points li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--pink); }
.contact-form { padding: clamp(34px, 4vw, 56px); display: grid; gap: 16px; align-content: start; border-left: 1px solid var(--line); }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 650; color: var(--fg-soft); }
.field input, .field textarea { font: inherit; font-size: 15px; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pink); background: #fff; box-shadow: 0 0 0 4px rgba(255,46,147,.14); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--fg-faint); }
.form-submit { margin-top: 4px; justify-content: center; width: 100%; }
.form-success { display: none; text-align: center; padding: 30px 20px; }
.form-success.show { display: block; }
.form-success .fs-ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: var(--green); }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--fg-soft); margin-top: 10px; }

/* ----------------------------------------------------------------- faq */
.faq { max-width: 840px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-family: var(--display); font-weight: 600; font-size: clamp(1.02rem, 1.5vw, 1.16rem); letter-spacing: -.01em; }
.faq-q .chev { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); transition: transform .3s var(--ease); font-size: 15px; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); color: var(--pink); border-color: var(--pink); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--fg-soft); font-size: 15px; }

/* --------------------------------------------------------------- footer */
.footer { background: var(--ink); color: var(--on-ink); padding-block: clamp(56px, 7vw, 86px) 32px; border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: -36px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-logo { height: 30px; }
.footer-brand p { color: var(--on-ink-soft); margin-top: 18px; max-width: 32ch; font-size: 14.5px; }
.foot-col h5 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); font-weight: 700; margin-bottom: 16px; }
.foot-col a { display: block; padding: 6px 0; color: var(--on-ink-soft); font-size: 14.5px; font-weight: 550; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.footer-base { margin-top: clamp(40px, 5vw, 62px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.4); font-size: 13px; }

/* ----------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
/* Scroll-linked reveals: animate in sync with scroll position (smooth, not a pop) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: revealIn linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; transition: none; transition-delay: 0s; }
    .reveal[data-d="1"] { animation-range: entry 4% cover 30%; }
    .reveal[data-d="2"] { animation-range: entry 8% cover 34%; }
    .reveal[data-d="3"] { animation-range: entry 12% cover 38%; }
  }
}
@keyframes revealIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid, .split, .ai-grid { grid-template-columns: 1fr; }
  .stage { max-width: 420px; margin-inline: auto; margin-top: 12px; }
  .contact-shell { grid-template-columns: 1fr; }
  .contact-form { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
/* Phones: keep the nav pill to a single tidy row (logo + Sign in + Get pricing)
   instead of letting the CTA wrap and balloon the pill. */
@media (max-width: 460px) {
  .nav { padding-inline: 14px; }
  .nav-inner { gap: 8px; padding: 8px 8px 8px 16px; }
  .nav-cta { gap: 6px; }
  .nav-signin { padding: 8px 10px; font-size: 13.5px; }
  .nav-cta .btn { padding: 10px 15px; font-size: 13.5px; }
  .brand-logo { height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .token { display: none; }
  .btn:hover, .fcard:hover, .tl-card:hover { transform: none; }
}

/* ---------------------------------------------------------- legal pages */
.legal { padding-top: clamp(130px, 16vh, 190px); }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal .updated { color: var(--fg-soft); margin-top: 14px; font-size: 14px; }
.legal-body { margin-top: 40px; }
.legal-body h2 { font-size: 1.4rem; margin-top: 40px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--fg-soft); margin-top: 14px; font-size: 15.5px; line-height: 1.75; }
.legal-body ul { margin-top: 10px; padding-left: 22px; }
.legal-body a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.legal-note { margin-top: 40px; padding: 18px 20px; border-radius: var(--r-md); background: var(--pink-tint); border: 1px solid rgba(255,46,147,.2); color: var(--fg-soft); font-size: 13.5px; }

/* ====================================================================
   Distinctive layer — research-instrument language
   ==================================================================== */

/* hero: asymmetric, big type, real question instruments on the right */
.hero-wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 5vw, 84px); align-items: center; }
.hero-lead { max-width: 680px; }
.hero-lead h1 { margin-top: 26px; }
.hero-lead .lead { margin-top: 24px; max-width: 42ch; }
.hero-meta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-meta span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); display: inline-flex; align-items: center; gap: 9px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }

.instruments { display: grid; gap: 14px; }
.inst { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: 20px 22px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.inst:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.inst-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); font-weight: 700; }
.inst-q { font-family: var(--display); font-weight: 600; font-size: 1.04rem; letter-spacing: -.01em; margin-top: 9px; line-height: 1.2; }
.scale { display: flex; gap: 5px; margin-top: 15px; }
.scale span { flex: 1; aspect-ratio: 1; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--fg-soft); background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; }
.scale span.sel { background: var(--pink); color: #fff; border-color: var(--pink); }
.stars { display: flex; gap: 7px; margin-top: 15px; font-size: 26px; line-height: 1; color: var(--line-2); }
.stars b { color: var(--pink); }
.likert { display: flex; gap: 6px; margin-top: 15px; }
.likert span { flex: 1; text-align: center; font-size: 10.5px; font-weight: 600; color: var(--fg-soft); background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; padding: 9px 4px; }
.likert span.sel { background: var(--pink); color: #fff; border-color: var(--pink); }

/* capabilities — editorial 3-group index (no cards, no emoji) */
.cap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.5vw, 56px); }
.cap-group .cap-cat { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); font-weight: 700; padding-bottom: 14px; border-bottom: 2px solid var(--fg); display: inline-block; }
.cap-group ul { list-style: none; margin-top: 4px; }
.cap { padding: 20px 0; border-top: 1px solid var(--line); }
.cap h3 { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.cap p { color: var(--fg-soft); font-size: 14px; margin-top: 6px; line-height: 1.55; }
@media (max-width: 900px) { .cap-cols { grid-template-columns: 1fr; gap: 8px; } .cap-group { padding-top: 8px; } }

/* de-emoji: feature-list marker + report badge marker */
.feat-ic { background: var(--pink-tint) !important; border-color: rgba(255,46,147,.2) !important; position: relative; }
.feat-ic::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--pink); }
.report-badge::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--pink); flex: none; }

/* ====================================================================
   Knowledge tree — root → branches → leaves that expand to sub-features
   ==================================================================== */
.tree-rootwrap { text-align: center; }
.tree-root { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; background: var(--ink); color: #fff; border-radius: var(--pill); font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.18rem); letter-spacing: -.01em; box-shadow: var(--shadow); }
.tree-root .tree-mark { width: 20px; height: 20px; border-radius: 6px; background: var(--pink); flex: none; }
.tree-trunk { width: 2px; height: 30px; background: var(--pink); margin: 0 auto; }

.tree-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 44px); position: relative; }
.tree-branches::before { content: ""; position: absolute; top: 0; left: 16.66%; right: 16.66%; height: 2px; background: rgba(245,51,126,.28); }
.branch { position: relative; padding-left: 28px; padding-top: 4px; }
.branch::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 18px; width: 2px; background: linear-gradient(180deg, var(--pink), rgba(245,51,126,.1)); border-radius: 2px; }
.branch-cat { position: relative; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: 16px; }
.branch-cat::before { content: ""; position: absolute; left: -28px; top: -1px; width: 16px; height: 16px; border-radius: 5px; background: var(--pink); box-shadow: 0 0 0 5px var(--bg); }

.leaf { display: block; width: 100%; text-align: left; position: relative; margin-bottom: 11px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; overflow: hidden; }
.leaf::before { content: ""; position: absolute; left: -21px; top: 25px; width: 19px; height: 2px; background: rgba(245,51,126,.35); }
.leaf:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.leaf.open { border-color: rgba(245,51,126,.35); }
.leaf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 15px 17px; text-align: left; cursor: pointer; background: none; border: 0; font: inherit; }
.leaf-name { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; color: var(--fg); }
.leaf-toggle { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); font-size: 16px; line-height: 1; color: var(--fg-soft); transition: transform .35s var(--ease), background .25s, color .25s; flex: none; }
.leaf.open .leaf-toggle { transform: rotate(45deg); background: var(--pink); color: #fff; border-color: var(--pink); }
.leaf-detail { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.leaf-detail-inner { padding: 0 17px 17px; }
.leaf-detail p { color: var(--fg-soft); font-size: 13.5px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chips span { font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: var(--pill); background: var(--pink-tint); color: var(--pink-deep); border: 1px solid rgba(245,51,126,.16); }
@media (max-width: 860px) {
  .tree-branches { grid-template-columns: 1fr; gap: 26px; }
  .tree-branches::before { display: none; }
}

/* D3 capability tree */
#tree { width: 100%; min-height: 360px; overflow-x: auto; }
#tree svg { display: block; margin: 0 auto; overflow: visible; }
#tree text { paint-order: stroke; }
#tree g[cursor] g:hover circle { stroke-width: 3; }
.tree-hint { text-align: center; margin-top: 22px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); }

/* ===================== Polish pass ===================== */
/* Primary CTA: richer gradient + a gloss sweep on hover */
.btn-primary { background: linear-gradient(135deg, #FF3D97, #E11E78); box-shadow: 0 12px 30px -12px rgba(225,30,120,.62); position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.42) 50%, transparent 70%); transform: translateX(-150%); transition: transform .7s var(--ease); pointer-events: none; }
.btn-primary:hover::after { transform: translateX(150%); }

/* Motion polish */
@media (prefers-reduced-motion: no-preference) {
  .nav-inner { animation: navDrop .8s var(--ease) both; }
  .scale span.sel, .likert span.sel { animation: selPulse 3s ease-in-out infinite; }
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes selPulse { 0%, 100% { box-shadow: 0 8px 16px -6px rgba(245,51,126,.4); } 50% { box-shadow: 0 10px 28px -4px rgba(245,51,126,.78); } }

/* Consistent elevation on interactive cards */
.faq-item { transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.faq-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mini-token { transition: border-color .25s, color .25s, background .25s; }
.mini-token:hover { border-color: rgba(245,51,126,.4); color: var(--pink-deep); }

@media (max-width: 980px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .instruments { max-width: 460px; margin-top: 8px; }
}
