/* Cutr — trycutr.app
   Warm black + barber gold. Motion: staggered load-in, scroll reveals, counters,
   cursor HUD, magnetic buttons, tilt, marquee, scan sweeps. All off for reduced motion. */

:root {
  --bg: #0b0805;
  --bg-2: #110d08;
  --surface: rgba(245, 200, 66, 0.035);
  --surface-2: rgba(245, 200, 66, 0.06);
  --line: rgba(242, 222, 180, 0.12);
  --line-strong: rgba(242, 222, 180, 0.28);
  --text: #f4ede0;
  --dim: #a89a84;
  --faint: #6b5f4d;
  --gold: #f5c842;
  --gold-light: #fbe38a;
  --gold-dark: #e2a830;
  --copper: #d4724a;
  --on-gold: #140d03;
  --grad: linear-gradient(100deg, #fbe38a, #f5c842 38%, #e2a830 72%, #d4724a);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Didot", Georgia, serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --pad-x: clamp(16px, 5.5vw, 88px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.smooth { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.gold { color: var(--gold); }
h1 em, h2 em, .final-title em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.08em;
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ── grain ─────────────────────────────────────────── */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 998; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ── cursor (desktop only; JS adds .has-cursor) ─────── */
.cursor { display: none; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; translate: -50% -50%; pointer-events: none; }
.cursor-dot { width: 5px; height: 5px; background: var(--gold-light); }
.cursor-ring {
  width: 30px; height: 30px; border: 1px solid rgba(245, 200, 66, 0.45);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.cursor.is-active .cursor-ring { width: 54px; height: 54px; border-color: rgba(251, 227, 138, 0.9); background: rgba(245, 200, 66, 0.06); }
.cursor.is-hidden { opacity: 0; }

/* ── nav ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--pad-x);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, padding 0.4s var(--ease);
}
.nav.scrolled {
  padding-block: 13px;
  background: rgba(11, 8, 5, 0.72);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; color: var(--text); transition: transform 0.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-18deg); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { position: relative; font-size: 13.5px; font-weight: 500; color: var(--dim); transition: color 0.25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px; letter-spacing: 0.01em;
  color: var(--on-gold); background: var(--grad); padding: 10px 20px; border-radius: 999px;
  transition: box-shadow 0.3s, transform 0.3s;
  white-space: nowrap;
}
.nav-cta:hover { box-shadow: 0 0 34px rgba(245, 200, 66, 0.45); }

/* ── hero ──────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad-x) 40px;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 72% 58%, rgba(245, 200, 66, 0.08), transparent 70%),
    radial-gradient(700px 500px at 10% 100%, rgba(212, 114, 74, 0.07), transparent 70%),
    var(--bg);
}
.hero-stage { position: absolute; inset: 0; z-index: 0; }
#head-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-ghost {
  position: absolute; right: 8%; bottom: 0; width: 46vh; height: 58vh; /* JS sets the exact box */
  background: url(/assets/img/hero-face.webp) center bottom / 100% 100% no-repeat;
  opacity: 0; filter: grayscale(1) sepia(0.9) saturate(1.6) hue-rotate(-8deg) brightness(0.85);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 42%, #000 35%, transparent 95%);
  mask-image: radial-gradient(60% 55% at 50% 42%, #000 35%, transparent 95%);
  transition: opacity 2.4s ease 1.2s; pointer-events: none;
}
.hero-ready .hero-ghost { opacity: 0.13; }
.no-webgl #head-canvas { display: none; }
.no-webgl .hero-ghost { opacity: 0.5; transition: none; }

.hud { position: absolute; z-index: 2; font-size: 10px; color: var(--faint); letter-spacing: 0.22em; }
.hud-tl { top: 96px; right: var(--pad-x); }
.hud-tr { bottom: 30px; right: var(--pad-x); }
#hud-cut { color: var(--gold); transition: opacity 0.3s; }
#hud-cut.swap { opacity: 0; }

.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--gold); margin-bottom: 26px; }
.eyebrow-line { display: inline-block; width: 34px; height: 1px; background: var(--grad); }
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 6.6vw, 6.4rem);
  line-height: 0.96; letter-spacing: -0.035em;
}
.hero-title .line { display: block; }
.hero-title em { font-size: 1.06em; letter-spacing: -0.01em; }
.hero-sub { margin-top: 26px; max-width: 500px; font-size: clamp(16px, 1.35vw, 18.5px); color: var(--dim); }
.hero-sub strong { color: var(--text); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cta-row.center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px; border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 13, 8, 0.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge span { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1; }
.store-badge small { font-size: 8.5px; font-weight: 400; letter-spacing: 0.18em; color: var(--dim); margin-bottom: 3px; }
.store-badge:hover { border-color: rgba(245, 200, 66, 0.75); box-shadow: 0 8px 40px rgba(245, 200, 66, 0.16); background: rgba(24, 18, 10, 0.85); }
.hero-proof { margin-top: 26px; font-size: 10.5px; color: var(--faint); letter-spacing: 0.2em; }

.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  max-width: min(760px, 56vw); margin-top: clamp(48px, 9vh, 96px);
  padding-top: 22px; border-top: 1px solid var(--line);
}
.hero-stats dd { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; order: -1; }
.hero-stats div { display: flex; flex-direction: column; gap: 8px; }
.hero-stats dt { font-size: 9.5px; color: var(--faint); letter-spacing: 0.2em; }

.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 9.5px; color: var(--faint); }
.scroll-line { position: relative; width: 1px; height: 46px; overflow: hidden; background: var(--line); }
.scroll-line::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--gold); animation: scrollDrip 2.2s var(--ease) infinite; }
@keyframes scrollDrip { to { top: 110%; } }

/* load-in: staggered rise */
[data-load] { opacity: 0; transform: translateY(26px); animation: riseIn 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 0.11s + 0.2s); }
.hero-title .line[data-load] { transform: translateY(0.5em); clip-path: inset(0 0 100% 0); animation-name: lineIn; animation-duration: 1.1s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }
@keyframes lineIn { to { opacity: 1; transform: none; clip-path: inset(-0.2em -0.2em -0.3em -0.2em); } }

/* ── marquee ───────────────────────────────────────── */
.marquee { border-block: 1px solid var(--line); padding: 17px 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.3em; color: var(--dim); white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--gold); padding: 0 1.2em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── reveal on scroll ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 0.1s); }
.reveal.in-view { opacity: 1; transform: none; }

/* ── features ──────────────────────────────────────── */
.feature {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(40px, 6vw, 110px);
  max-width: 1320px; margin: 0 auto;
  padding: clamp(100px, 15vh, 170px) var(--pad-x);
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature-flip .feature-copy { order: 2; }
.big-num {
  position: absolute; top: clamp(50px, 8vh, 90px); right: var(--pad-x);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(7rem, 17vw, 15rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(245, 200, 66, 0.1);
  pointer-events: none; user-select: none;
  transform: translateY(var(--py, 0px));
}
.feature-flip .big-num { right: auto; left: var(--pad-x); }
.kicker { display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--gold); margin-bottom: 22px; }
.feature h2, .steps h2, .faq h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.5rem, 5.2vw, 4.6rem); line-height: 1; letter-spacing: -0.03em;
}
.feature h2 em, .steps h2 em, .faq h2 em { font-size: 1.05em; }
.lead { margin-top: 24px; max-width: 520px; font-size: 17px; color: var(--dim); }
.ticks { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text); }
.ticks li::before { content: "→"; position: absolute; left: 0; color: var(--gold); font-family: var(--font-mono); }
.fine { margin-top: 18px; font-size: 9.5px; color: var(--faint); }
.feature-visual { position: relative; display: flex; justify-content: center; }

/* phone */
.phone-wrap { perspective: 1000px; }
.phone {
  width: min(300px, 74vw); border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #1d170f, #0c0905 60%);
  border: 1px solid rgba(242, 222, 180, 0.2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65), 0 0 90px rgba(245, 200, 66, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease-out; will-change: transform; transform-style: preserve-3d;
}
.phone-screen { position: relative; border-radius: 36px; overflow: hidden; background: #0a0705; aspect-ratio: 9 / 19; }
.phone-top { display: flex; justify-content: space-between; padding: 22px 22px 0; font-size: 9px; color: var(--faint); }
.live { display: flex; align-items: center; gap: 6px; color: var(--gold); }
.live b { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.face-svg { width: 84%; margin: 18px auto 0; overflow: visible; }
.face-svg .draw { fill: none; stroke: url(#gold); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; }
.face-svg .hairline { stroke-dasharray: 4 5; stroke-dashoffset: 0; opacity: 0; transition: opacity 0.8s ease 1.2s; }
.face-svg .landmarks circle { fill: var(--gold-light); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: opacity 0.4s, transform 0.5s var(--ease); }
.face-svg .measures line { stroke: rgba(245, 200, 66, 0.35); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity 0.6s ease 2s; }
.in-view .face-svg .draw:not(.hairline) { animation: draw 2s var(--ease) 0.3s forwards; }
.in-view .face-svg .jaw { animation-delay: 1s; }
.in-view .face-svg .hairline { opacity: 1; }
.in-view .face-svg .measures line { opacity: 1; }
.in-view .face-svg .landmarks circle { opacity: 1; transform: scale(1); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.scan-sweep {
  position: absolute; left: 0; right: 0; height: 110px; top: -120px;
  background: linear-gradient(180deg, transparent, rgba(245, 200, 66, 0.13));
  border-bottom: 1.5px solid rgba(251, 227, 138, 0.85);
  box-shadow: 0 6px 24px rgba(245, 200, 66, 0.3);
  animation: sweep 3.6s ease-in-out infinite; mix-blend-mode: screen; pointer-events: none;
}
@keyframes sweep { 0% { top: -120px; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { top: 105%; opacity: 0; } }
.readouts { position: absolute; left: 14px; right: 14px; bottom: 18px; display: grid; gap: 8px; }
.chip { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(245, 200, 66, 0.06); border: 1px solid var(--line); opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.chip span { font-size: 8.5px; color: var(--dim); letter-spacing: 0.18em; }
.chip b { font-family: var(--font-display); font-size: 15px; color: var(--gold); }
.in-view .chip { opacity: 1; transform: none; }
.in-view .chip:nth-child(1) { transition-delay: 1.8s; }
.in-view .chip:nth-child(2) { transition-delay: 2.1s; }
.in-view .chip:nth-child(3) { transition-delay: 2.4s; }

/* match */
.match-card { margin-top: 30px; max-width: 480px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 22px 24px; }
.match-head { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--faint); margin-bottom: 16px; }
.match-list { list-style: none; display: grid; gap: 13px; }
.match-list li { display: grid; grid-template-columns: 132px 1fr 34px; align-items: center; gap: 14px; font-size: 14px; }
.match-list li:first-child { color: var(--gold-light); font-weight: 600; }
.match-list b { font-size: 12px; color: var(--dim); text-align: right; letter-spacing: 0.05em; }
.bar { position: relative; height: 6px; border-radius: 6px; background: rgba(242, 222, 180, 0.08); overflow: hidden; }
.fill { position: absolute; inset: 0; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 0.3s); }
.in-view .fill { width: var(--w); }
.match-why { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.match-why .mono { display: block; font-size: 9px; margin-bottom: 4px; }

.ring-wrap { position: relative; width: min(380px, 80vw); aspect-ratio: 1; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track { fill: none; stroke: rgba(242, 222, 180, 0.07); stroke-width: 10; }
.ring-fill { fill: none; stroke: url(#gold); stroke: var(--gold); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 528; stroke-dashoffset: 528; filter: drop-shadow(0 0 12px rgba(245, 200, 66, 0.45)); transition: stroke-dashoffset 1.8s var(--ease) 0.3s; }
.in-view .ring-fill { stroke-dashoffset: 21; }
.ring-ticks line { stroke: rgba(242, 222, 180, 0.18); stroke-width: 1; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.ring-label .mono { font-size: 9.5px; color: var(--faint); }
.ring-label b { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 9vw, 6rem); line-height: 1; letter-spacing: -0.04em; }
.ring-label .gold { color: var(--gold); }

/* try-on */
.tryon { width: min(440px, 100%); }
.tryon-stage { position: relative; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: radial-gradient(120% 80% at 50% 30%, #1a130b, #0a0705); aspect-ratio: 300 / 340; }
#tryon-svg { width: 100%; height: 100%; }
#tryon-svg .head, #tryon-svg .neck, #tryon-svg .ear { fill: url(#skin); stroke: rgba(242, 222, 180, 0.22); stroke-width: 1.2; }
#tryon-svg .hair { stroke: rgba(251, 227, 138, 0.55); stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(245, 200, 66, 0.18)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
#tryon-svg .face-lines path { fill: none; stroke: rgba(242, 222, 180, 0.3); stroke-width: 1.4; stroke-linecap: round; }
.tryon-sweep { position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: linear-gradient(180deg, transparent, rgba(245, 200, 66, 0.16)); border-bottom: 1.5px solid rgba(251, 227, 138, 0.9); opacity: 0; pointer-events: none; }
.tryon-stage.sweeping .tryon-sweep { animation: tryonSweep 0.9s var(--ease); }
@keyframes tryonSweep { 0% { top: -40%; opacity: 1; } 100% { top: 100%; opacity: 0.2; } }
.tryon-tag { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; font-size: 9px; color: var(--dim); }
.tryon-tag span:first-child { color: var(--gold); }
.tryon-controls { margin-top: 16px; display: grid; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--dim); transition: all 0.3s var(--ease); }
.chips button:hover { color: var(--text); border-color: rgba(245, 200, 66, 0.6); }
.chips button[aria-checked="true"] { background: var(--grad); color: var(--on-gold); border-color: transparent; font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); transition: transform 0.3s var(--ease), border-color 0.3s; }
.swatches button:hover { transform: scale(1.15); }
.swatches button[aria-checked="true"] { border-color: var(--gold); transform: scale(1.12); }

/* brief */
.brief-card { width: min(460px, 100%); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(170deg, rgba(245, 200, 66, 0.06), rgba(245, 200, 66, 0.015)); padding: 26px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45); transition: transform 0.2s ease-out; }
.brief-head { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--faint); }
.copy { font-size: 9.5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--gold); transition: background 0.3s, color 0.3s; }
.copy:hover, .copy.done { background: var(--gold); color: var(--on-gold); }
.brief-card h3 { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.brief-card h3 em { color: var(--gold); }
.brief-text { margin-top: 14px; min-height: 230px; white-space: pre-wrap; font-size: 12.5px; line-height: 1.75; letter-spacing: 0.02em; text-transform: none; color: var(--dim); }
.brief-text .caret { display: inline-block; width: 7px; height: 1.1em; vertical-align: -2px; background: var(--gold); animation: pulse 0.9s steps(1) infinite; }
.brief-foot { margin-top: 12px; font-size: 9px; color: var(--faint); }

/* steps */
.steps, .faq { max-width: 1320px; margin: 0 auto; padding: clamp(100px, 14vh, 160px) var(--pad-x); border-top: 1px solid var(--line); }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: 48px; }
.step-card { position: relative; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 28px 26px 0; overflow: hidden; transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s; }
.step-card:hover { transform: translateY(-8px); border-color: rgba(245, 200, 66, 0.4); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 50px rgba(245, 200, 66, 0.07); }
.step-n { font-size: 9.5px; color: var(--gold); }
.step-card h3 { margin-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.step-card p { margin-top: 8px; font-size: 15px; color: var(--dim); }
.step-art { margin-top: 24px; height: 110px; display: flex; align-items: flex-end; justify-content: center; }
.step-art svg { width: 70%; height: 90px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; transform: translateY(6px); transition: transform 0.5s var(--ease), opacity 0.5s; }
.step-card:hover .step-art svg { transform: translateY(-4px); opacity: 1; }

/* faq */
.faq-list { margin-top: 40px; max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -0.01em; transition: color 0.25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-weight: 400; color: var(--gold); font-size: 22px; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-light); }
.faq details p { padding: 0 0 26px; max-width: 700px; color: var(--dim); }
.faq details p a { color: var(--gold); border-bottom: 1px solid rgba(245, 200, 66, 0.4); }
.faq details[open] p { animation: riseIn 0.6s var(--ease) both; opacity: 0; transform: translateY(8px); }

/* final */
.final {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(140px, 20vh, 220px) var(--pad-x);
  border-top: 1px solid var(--line);
  background: radial-gradient(800px 480px at 50% 110%, rgba(245, 200, 66, 0.13), transparent 70%), var(--bg);
}
#final-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.final-title { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: 1.02; letter-spacing: -0.035em; }
.final-title span { display: block; }
.final-title em { font-size: 1.05em; }
.final .cta-row, .final .hero-proof { position: relative; }
.final .hero-proof { margin-top: 30px; }

/* footer */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 34px var(--pad-x); border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.footer-brand .mono { font-size: 9.5px; color: var(--faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 10px; }
.footer-links a { color: var(--faint); transition: color 0.25s; }
.footer-links a:hover { color: var(--gold); }

/* ── responsive ────────────────────────────────────── */
@media (max-width: 1280px), (max-height: 760px) {
  .scroll-cue { display: none; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { justify-content: flex-start; padding-top: 112px; }
  .hero-copy { max-width: none; order: 1; }
  .hero-stage { position: relative; inset: auto; order: 2; height: min(62vh, 440px); margin: 8px calc(var(--pad-x) * -1) 0; }
  .hero-stats { order: 3; margin-top: 8px; max-width: none; }
  .hero-ghost { right: auto; }
  .hud-tl { top: 6px; left: var(--pad-x); right: auto; }
  .hud-tr { display: none; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .scroll-cue { display: none; }
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-copy { order: 0; }
  .feature-visual { margin-top: 12px; }
  .big-num { top: 40px; }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  :root { --pad-x: 16px; }
  .store-badge { flex: 1 1 100%; }
  .match-list li { grid-template-columns: 110px 1fr 30px; gap: 10px; font-size: 13px; }
  .brief-card { padding: 20px; }
  .hero-proof { letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  html.smooth { scroll-behavior: auto; }
  [data-load], .hero-title .line[data-load] { animation: none; opacity: 1; transform: none; clip-path: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .scan-sweep, .scroll-line::after, .grain, .live b { animation: none; }
  .fill { width: var(--w); transition: none; }
  .ring-fill { stroke-dashoffset: 21; transition: none; }
  .face-svg .draw { stroke-dashoffset: 0; animation: none !important; }
  .face-svg .hairline, .face-svg .measures line, .face-svg .landmarks circle, .chip { opacity: 1; transform: none; transition: none; }
}

/* ── legal pages ───────────────────────────────────── */
.legal-page .nav { position: sticky; }
.nav-back { font-size: 10px; color: var(--dim); transition: color 0.25s; }
.nav-back:hover { color: var(--gold); }
.legal { max-width: 820px; margin: 0 auto; padding: clamp(48px, 9vh, 96px) var(--pad-x) 110px; }
.legal h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; }
.legal h1 em { font-size: 1.05em; }
.legal-meta { margin-top: 18px; font-size: 9.5px; color: var(--faint); }
.legal-lead { margin-top: 30px; padding: 22px 24px; border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 14px; background: var(--surface); font-size: 17px; color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.toc a { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); transition: color 0.25s, border-color 0.25s; }
.toc a:hover { color: var(--text); border-color: rgba(245, 200, 66, 0.5); }
.legal section { margin-top: 48px; scroll-margin-top: 90px; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.015em; margin-bottom: 14px; }
.legal p, .legal li { color: var(--dim); font-size: 15.5px; }
.legal p + p { margin-top: 12px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--gold); border-bottom: 1px solid rgba(245, 200, 66, 0.35); }
.legal a:hover { border-bottom-color: var(--gold); }
.legal ul, .legal ol { margin: 12px 0 12px 1.2em; display: grid; gap: 8px; }
.legal li::marker { color: var(--gold); }
.legal .dim { color: var(--faint); }
.table-wrap { margin: 16px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--dim); }
.legal th { font-family: var(--font-mono); font-weight: 500; font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.legal td:first-child { color: var(--text); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.option { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 24px; }
.option .mono { font-size: 9.5px; }
.option h2 { margin: 10px 0 6px; }
@media (max-width: 720px) { .option-grid { grid-template-columns: 1fr; } }
.not-found { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 120px var(--pad-x) 60px; }
.not-found h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); line-height: 1; letter-spacing: -0.03em; }
.not-found p { color: var(--dim); }
.not-found a.nav-cta { margin-top: 10px; }
