/* holysnap.app home — the promo film, scroll-driven. Pinned scenes are
   animated by home.js; everything here is layout and resting states. */
:root {
  --ink-950: #0e0a1c; --ink-900: #1c1430; --ink-800: #241a3d; --ink-700: #34265c;
  --cream: #fff8ea; --paper: #fbf7ef; --lemon: #f7c948; --lemon-soft: #ffe28a; --mint: #8fe3c0; --coral: #f4917c;
  --muted: rgba(255, 248, 234, .62); --faint: rgba(255, 248, 234, .1); --line: rgba(255, 248, 234, .14);
  --display: "Nunito", system-ui, sans-serif; --body: "Nunito Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --page: none; /* set by home.js: the painted long page */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--ink-950); }
body { margin: 0; overflow-x: clip; color: var(--cream); background: var(--ink-950); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.lemon { color: var(--lemon); }
.center { text-align: center; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.display { font: 900 clamp(46px, 8.6vw, 132px)/.92 var(--display); letter-spacing: -.045em; }
.h2 { font: 900 clamp(34px, 5vw, 68px)/1 var(--display); letter-spacing: -.035em; }
.lede { text-wrap: pretty; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); max-width: 40em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 800 13px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--lemon); }
.eyebrow.center { display: flex; justify-content: center; }
.fine { font-size: 13px; color: rgba(255, 248, 234, .42); }

/* Grain + progress */
.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 4%); } }
.progress { position: fixed; left: 0; top: 0; z-index: 70; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--lemon-soft), var(--lemon)); box-shadow: 0 0 12px rgba(247, 201, 72, .7); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 800 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .2, 1.4), box-shadow .25s, background .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lemon { background: var(--lemon); color: var(--ink-900); box-shadow: 0 10px 30px -8px rgba(247, 201, 72, .65), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-lemon:hover { box-shadow: 0 16px 44px -8px rgba(247, 201, 72, .85), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-ghost { background: rgba(255, 248, 234, .06); color: var(--cream); border-color: var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 248, 234, .12); }
.chev-mini svg { width: 14px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.play { width: 0; height: 0; border-left: 11px solid var(--lemon); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Nav */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: var(--gutter); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.nav.hide { transform: translateY(-120%); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(20, 14, 36, .62); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.4); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 900 19px/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a { font-weight: 700; font-size: 15px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--cream); }
@media (max-width: 720px) { .nav-links { display: none; } .nav-inner { justify-content: space-between; } }

/* Shared: browser chrome + the painted page */
.browser { position: relative; border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 248, 234, .18); }
.browser-bar { position: relative; z-index: 3; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #ebe3d3; border-bottom: 1px solid #ddd2bd; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3c8b2; }
.browser-bar span { margin-left: 10px; flex: 1; height: 21px; border-radius: 7px; background: #f7f2e8; font: 700 12px/21px var(--body); color: #8c8273; padding-left: 10px; overflow: hidden; white-space: nowrap; }
.page-bitmap { background-color: var(--paper); background-image: var(--page); background-size: 100% auto; background-repeat: no-repeat; }

/* Scenes: a tall track with a pinned 100vh stage. */
.scene { position: relative; height: calc(var(--len) * 1vh); height: calc(var(--len) * 1svh); }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* Rain canvas */
.rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* 1 · Hero */
.hero .pin { background: radial-gradient(1200px 700px at 50% 120%, rgba(247, 201, 72, .16), transparent 60%), radial-gradient(1100px 650px at 12% -20%, rgba(143, 115, 220, .3), transparent 60%), linear-gradient(180deg, #2a1f4c 0%, var(--ink-900) 55%, var(--ink-950) 100%); }
.hero-glow { position: absolute; left: 50%; top: 18%; width: 900px; height: 900px; margin-left: -450px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 201, 72, .2), transparent 60%); pointer-events: none; animation: glow-in 2.4s .5s both; }
@keyframes glow-in { from { opacity: 0; transform: scale(.4); } }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(80px, 13vh, 150px) var(--gutter) 0; will-change: transform, opacity; }
.hero-copy .lede { margin: 22px auto 30px; max-width: 34em; text-wrap: balance; }
.hero-copy .cta-row { justify-content: center; }
.hero-mark { width: clamp(56px, min(9vw, 11vh), 116px); height: auto; overflow: visible; margin-bottom: 26px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .5)); }
.hero-mark .tile { transform-origin: 128px 128px; animation: tile-in .6s 0s cubic-bezier(.2, .9, .3, 1.3) both; }
.hero-mark .c { animation: chev-slam .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.hero-mark .c1 { animation-delay: .12s; } .hero-mark .c2 { animation-delay: .24s; } .hero-mark .c3 { animation-delay: .36s; } .hero-mark .c4 { animation-delay: .48s; filter: drop-shadow(0 0 10px rgba(247, 201, 72, .8)); }
@keyframes tile-in { from { transform: scale(.2) rotate(-12deg); opacity: 0; } }
@keyframes chev-slam { from { transform: translateY(-160px); opacity: 0; } 60% { opacity: 1; } }
.hero-h1 { display: flex; flex-direction: column; align-items: center; margin: 0; font-size: inherit; font-weight: inherit; }
.hero-title { display: block; position: relative; font-size: clamp(42px, min(8.6vw, 12.5vh), 132px); }
.hero-title .w { display: inline-block; animation: word-in .9s var(--d) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes word-in { from { opacity: 0; transform: translateY(.45em) rotate(4deg); filter: blur(12px); } }
.hero-title { animation: rgb-split .7s .75s both; }
@keyframes rgb-split { 0% { text-shadow: -10px 0 rgba(255, 70, 120, .8), 10px 0 rgba(80, 220, 255, .8); } 40% { text-shadow: 4px 0 rgba(255, 70, 120, .6), -4px 0 rgba(80, 220, 255, .6); } 100% { text-shadow: 0 0 transparent, 0 0 transparent; } }
.hero-in { animation: word-in .9s var(--d) cubic-bezier(.2, .8, .2, 1) both; }
.hero-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; padding: 0; margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.hero-note li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--mint); vertical-align: 2px; }

.rig-stage { position: absolute; left: 0; right: 0; top: 100%; z-index: 3; display: flex; justify-content: center; perspective: 1600px; perspective-origin: 50% 0%; }
.rig { position: relative; width: min(980px, 88vw); transform-origin: 50% 0; will-change: transform; }
.rig-window { height: min(560px, 56vh, 64vw); }
.rig-vp { position: absolute; inset: 34px 0 0; overflow: hidden; }
.rig-page { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1 / 8; will-change: transform; }
.rig-captured { position: absolute; left: 0; right: 0; top: 0; height: 0; background: linear-gradient(180deg, rgba(247, 201, 72, 0), rgba(247, 201, 72, .2)); }
.rig-edge { position: absolute; left: 0; right: 0; top: 62%; height: 3px; background: var(--lemon); box-shadow: 0 0 22px 6px rgba(247, 201, 72, .6); opacity: 0; transition: opacity .3s; }
.rig.is-running .rig-edge { opacity: 1; }
.rig-strip { position: absolute; right: -44px; top: 34px; bottom: 0; width: 18px; border-radius: 6px; background: rgba(255, 248, 234, .08); overflow: hidden; }
.rig-strip div { position: absolute; left: 0; right: 0; top: 0; height: 0; background: repeating-linear-gradient(180deg, var(--lemon) 0 6px, var(--lemon-soft) 6px 7px); box-shadow: 0 0 14px rgba(247, 201, 72, .6); }
.rig-popup { position: absolute; right: -6%; top: -9%; width: min(330px, 34%); border-radius: 18px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 248, 234, .2); transform: translateZ(60px); }
.rig-readout { position: absolute; left: -5%; bottom: 9%; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; padding: 16px 22px; border-radius: 18px; background: rgba(20, 14, 36, .86); border: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.rig-readout .t { grid-row: span 2; font: 900 clamp(40px, 5vw, 64px)/1 var(--display); color: var(--lemon); letter-spacing: -.04em; }
.rig-readout .t small { font-size: .45em; }
.rig-readout .a { font-weight: 800; font-size: 15px; }
.rig-readout .b { font-size: 12px; color: var(--muted); }
.rig-replay { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); background: none; border: 0; color: var(--muted); font: 700 13px var(--body); cursor: pointer; opacity: 0; transition: opacity .3s; }
.rig.is-done .rig-replay { opacity: 1; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border-radius: 12px; border: 2px solid var(--line); z-index: 4; animation: word-in .8s 2.6s both; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lemon); animation: cue 1.6s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 720px) {
  .rig-popup { display: none; }
  .rig-readout { left: 4%; bottom: 6%; padding: 10px 14px; }
  .rig-readout .a { font-size: 12px; }
  .rig-strip { display: none; }
}

/* 2 · Grind */
.grind .pin { background: linear-gradient(180deg, var(--ink-950), #17112b 50%, var(--ink-950)); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; padding: 0 var(--gutter); }
.grind-copy { position: relative; z-index: 2; }
.grind-word { color: var(--cream); min-height: 1.9em; font-size: clamp(64px, 10vw, 170px); }
.grind-word.coral { color: var(--coral); }
.grind-count { font: 700 clamp(18px, 1.8vw, 26px)/1.3 var(--body); color: var(--muted); }
.grind-win { width: 100%; max-width: 640px; height: min(520px, 60vh); justify-self: center; }
.grind-vp { position: absolute; inset: 34px 0 0; overflow: hidden; }
.grind-vp .page-bitmap { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1 / 8; transition: transform .25s cubic-bezier(.3, .9, .3, 1); }
.grind-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.grind-pile { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; pointer-events: none; }
.grind-pile .thumb { position: absolute; width: clamp(130px, 15vw, 240px); aspect-ratio: 5 / 3; border-radius: 9px; background-color: var(--paper); background-image: var(--page); background-size: 100% auto; background-repeat: no-repeat; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .65), 0 0 0 2px rgba(255, 248, 234, .85); opacity: 0; }
.grind-better { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; opacity: 0; pointer-events: none; z-index: 5; }
.grind-better .display { font-size: clamp(40px, 7vw, 104px); }
.grind-better i { font-style: normal; font-size: 32px; color: var(--lemon); animation: cue 1.6s infinite; }
@media (max-width: 820px) {
  .grind .pin { grid-template-columns: 1fr; align-content: center; gap: 24px; }
  .grind-word { min-height: 1em; }
  .grind-win { height: 38vh; }
}

/* 3 · One pass */
.pass .pin { background: radial-gradient(900px 600px at 70% 50%, rgba(247, 201, 72, .08), transparent 60%), var(--ink-950); }
.pass-stage { position: absolute; inset: 0 0 0 42%; perspective: 1400px; perspective-origin: 50% 35%; }
.ribbon { position: absolute; left: 50%; top: 0; width: min(560px, 44vw); margin-left: calc(min(560px, 44vw) / -2); transform-style: preserve-3d; transform-origin: 50% 0; will-change: transform; }
.ribbon-page { width: 100%; aspect-ratio: 1 / 8; border-radius: 16px; box-shadow: 0 0 0 2px rgba(255, 248, 234, .2), 0 80px 160px -20px rgba(0, 0, 0, .9); }
.ribbon-tint { position: absolute; left: 0; right: 0; top: 0; height: 0; border-radius: 16px 16px 0 0; background: linear-gradient(180deg, rgba(247, 201, 72, 0), rgba(247, 201, 72, .22)); }
.ribbon-scan { position: absolute; left: -50px; right: -50px; top: 0; height: 7px; border-radius: 4px; background: var(--lemon); box-shadow: 0 0 40px 12px rgba(247, 201, 72, .75), 0 0 120px 34px rgba(247, 201, 72, .3); }
.pass-copy { position: relative; z-index: 2; height: 100%; width: min(560px, 46%); margin-left: var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.pass-px { font: 900 clamp(64px, 9vw, 150px)/.9 var(--display); letter-spacing: -.05em; }
.pass-unit { color: var(--muted); font-weight: 700; font-size: 20px; margin-top: 6px; }
.pass-stats { display: flex; gap: 48px; margin: 26px 0 34px; }
.pass-stats b { display: block; font: 900 clamp(40px, 4.5vw, 72px)/1 var(--display); letter-spacing: -.04em; }
.pass-stats span { color: var(--muted); font-size: 14px; font-weight: 700; }
.pass-copy .h2 { font-size: clamp(26px, 2.8vw, 40px); margin-bottom: 14px; }
.pass-copy .lede { font-size: 16px; margin-bottom: 14px; }
.stamp { position: absolute; z-index: 4; left: 71%; top: 46%; transform: translate(-50%, -50%) rotate(-8deg) scale(2.4); opacity: 0; padding: 18px 34px; border-radius: 18px; background: var(--lemon); color: var(--ink-900); font: 900 clamp(32px, 4vw, 64px)/1 var(--display); letter-spacing: .04em; white-space: nowrap; box-shadow: 0 30px 80px -10px rgba(247, 201, 72, .7); }
@media (max-width: 820px) {
  .pass-stage { inset: 0; opacity: .5; }
  .ribbon { width: 80vw; margin-left: -40vw; }
  .pass-copy { width: auto; margin: 0; padding: 0 var(--gutter); background: linear-gradient(90deg, rgba(14, 10, 28, .92), rgba(14, 10, 28, .6)); }
  .pass-copy .lede, .pass-copy .h2 { display: none; }
  .stamp { left: 50%; top: 80%; }
}

/* 4 · Stitch */
.stitch .pin { background: linear-gradient(180deg, var(--ink-950), var(--ink-900) 50%, var(--ink-950)); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 4vw; padding: 0 var(--gutter); max-width: 1400px; margin-inline: auto; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 8px; counter-reset: s; }
.steps li { position: relative; padding: 16px 20px 16px 64px; border-radius: 18px; border: 1px solid transparent; opacity: .32; transition: opacity .4s, background .4s, border-color .4s, transform .4s; counter-increment: s; }
.steps li::before { content: "0" counter(s); position: absolute; left: 20px; top: 17px; font: 900 15px/1.4 var(--display); color: var(--muted); }
.steps li b { display: block; font: 900 20px/1.3 var(--display); }
.steps li span { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; }
.steps li.on { opacity: 1; background: rgba(255, 248, 234, .05); border-color: var(--line); transform: translateX(8px); }
.steps li.on::before { color: var(--lemon); }
.stitch-col-wrap { position: relative; height: 86vh; display: flex; justify-content: center; }
.stitch-col { position: relative; height: 100%; aspect-ratio: 1 / 8; }
.stitch-col .slice { position: absolute; left: 0; width: 100%; background-color: var(--paper); background-image: var(--page); background-repeat: no-repeat; will-change: transform, opacity; box-shadow: 0 0 0 1px rgba(14, 10, 28, .08); }
.stitch-frame { position: absolute; top: -10px; bottom: -10px; left: 50%; width: calc(86vh / 8 + 20px); margin-left: calc((86vh / 8 + 20px) / -2); border-radius: 12px; border: 3px solid var(--lemon); box-shadow: 0 0 60px rgba(247, 201, 72, .5); opacity: 0; }
.stitch-label { position: absolute; left: calc(50% + 86vh / 16 + 32px); top: 50%; transform: translateY(-50%); white-space: nowrap; }
.stitch-label b { display: block; font: 900 clamp(48px, 6vw, 96px)/1 var(--display); color: var(--lemon); letter-spacing: -.04em; }
.stitch-label span { color: var(--muted); font-weight: 700; }
@media (max-width: 820px) {
  .stitch .pin { grid-template-columns: 1fr auto; gap: 16px; }
  .steps li { padding: 10px 12px 10px 44px; }
  .steps li::before { left: 12px; top: 11px; }
  .steps li span { display: none; }
  .stitch-col-wrap { height: 70vh; }
  .stitch-frame { width: calc(70vh / 8 + 20px); margin-left: calc((70vh / 8 + 20px) / -2); }
  .stitch-label { display: none; }
}

/* 5 · Race */
.race .pin { display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); background: radial-gradient(1000px 600px at 50% 70%, rgba(247, 201, 72, .1), transparent 60%), var(--ink-950); }
.race-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; width: min(1200px, 100%); margin: 10px auto 0; }
.lane { text-align: center; }
.lane-name { font: 900 clamp(22px, 2.6vw, 40px)/1.1 var(--display); }
.lane-time { font: 900 clamp(64px, 11vw, 180px)/1 var(--display); letter-spacing: -.05em; margin: 10px 0 18px; }
.lane.fast .lane-time { color: var(--lemon); }
.lane.slow { color: var(--muted); }
.track { position: relative; height: 22px; border-radius: 999px; background: var(--faint); overflow: hidden; }
.track .bar { position: absolute; inset: 0 auto 0 0; width: 0; }
.lane.fast .bar { background: linear-gradient(90deg, var(--lemon-soft), var(--lemon)); box-shadow: 0 0 30px rgba(247, 201, 72, .7); }
.lane.slow .bar { background: repeating-linear-gradient(135deg, #6a5f80 0 12px, #5a4f70 12px 24px); }
.race-x { text-align: center; margin-top: 5vh; opacity: 0; }
.race-x .display { font-size: clamp(64px, 12vw, 200px); color: var(--lemon); display: inline-block; }
.race-foot { width: min(900px, 100%); margin: 4vh auto 0; text-align: center; font-size: 12px; line-height: 1.5; color: rgba(255, 248, 234, .4); }
.race-foot code { font-size: 11px; }
@media (max-width: 720px) { .race-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Marquee */
.marquee { padding: 8vh 0; overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-950); }
.marquee-row { display: flex; align-items: center; gap: 4vw; width: max-content; font: 900 clamp(48px, 9vw, 140px)/1.05 var(--display); letter-spacing: -.04em; will-change: transform; }
.marquee-row i { width: .5em; height: .5em; flex: none; background: url("/assets/mark.svg") center / contain no-repeat; }
.marquee-row.outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 248, 234, .35); }

/* 6 · Modes */
.modes .pin { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(180deg, var(--ink-950), #1a1330 50%, var(--ink-950)); }
.modes-head { padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 40px; margin-bottom: 5vh; }
.modes-head .eyebrow { width: 100%; margin-bottom: 4px; }
.modes-dots { display: flex; gap: 8px; margin-left: auto; padding-bottom: 10px; }
.modes-dots i { width: 28px; height: 4px; border-radius: 2px; background: var(--faint); transition: background .3s, width .3s; }
.modes-dots i.on { width: 52px; background: var(--lemon); }
.modes-track { display: flex; gap: 3vw; padding-left: var(--gutter); width: max-content; will-change: transform; }
.mode { width: min(1100px, 84vw); height: min(560px, 62vh); flex: none; display: grid; grid-template-columns: .9fr 1.1fr; gap: 3vw; align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: 32px; background: linear-gradient(160deg, rgba(255, 248, 234, .07), rgba(255, 248, 234, .02)); border: 1px solid var(--line); }
.mode h3 { font: 900 clamp(36px, 5vw, 76px)/1 var(--display); letter-spacing: -.04em; margin: 18px 0 14px; }
.mode p { color: var(--muted); font-size: clamp(15px, 1.4vw, 19px); }
.mode-count { margin-top: 18px; }
.mode-count b { color: var(--lemon); font: 900 26px var(--display); margin-right: 6px; }
.mode-icon { width: 72px; height: 72px; margin-top: 18px; border-radius: 22px; display: grid; place-items: center; background: rgba(255, 248, 234, .07); border: 1px solid var(--line); color: var(--cream); }
.mode-icon svg { width: 34px; height: 34px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; font: 900 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.tag.pro { background: var(--lemon); color: var(--ink-900); }
.tag.free { background: rgba(143, 227, 192, .14); color: var(--mint); }
.demo { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.demo .browser { width: 100%; height: 88%; }
.demo-vp { position: absolute; inset: 34px 0 0; overflow: hidden; }
.demo-vp > .page-bitmap { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1 / 8; }
.demo-full .browser { width: 86%; }
.demo-full .page-bitmap { animation: demo-scroll 5s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes demo-scroll { 0%, 8% { transform: translateY(0); } 85%, 100% { transform: translateY(calc(-100% + 300px)); } }
.scanline { position: absolute; left: 0; right: 0; top: 60%; height: 3px; background: var(--lemon); box-shadow: 0 0 20px 5px rgba(247, 201, 72, .6); }
.demo-strip { position: absolute; right: 0; top: 6%; bottom: 6%; width: 14px; border-radius: 5px; background: var(--faint); overflow: hidden; }
.demo-strip div { position: absolute; inset: 0 0 auto; height: 0; background: var(--lemon); animation: demo-fill 5s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes demo-fill { 0%, 8% { height: 0; } 85%, 100% { height: 100%; } }
.demo-ab .page-bitmap { transform: translateY(-18%); }
.shade { position: absolute; left: 0; right: 0; background: rgba(28, 20, 48, .55); backdrop-filter: grayscale(1); }
.shade.top { top: 0; height: 18%; animation: ab-top 4s ease-in-out infinite; }
.shade.bot { bottom: 0; height: 22%; animation: ab-bot 4s ease-in-out infinite; }
.guide { position: absolute; left: 0; right: 0; height: 2px; background: var(--lemon); box-shadow: 0 0 14px rgba(247, 201, 72, .8); }
.guide b { position: absolute; left: 14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lemon); color: var(--ink-900); font: 900 14px var(--display); }
.guide.a { top: 18%; animation: ab-top-g 4s ease-in-out infinite; }
.guide.b { bottom: 22%; animation: ab-bot-g 4s ease-in-out infinite; }
@keyframes ab-top { 0%, 100% { height: 40%; } 50% { height: 14%; } }
@keyframes ab-bot { 0%, 100% { height: 46%; } 50% { height: 16%; } }
@keyframes ab-top-g { 0%, 100% { top: 40%; } 50% { top: 14%; } }
@keyframes ab-bot-g { 0%, 100% { bottom: 46%; } 50% { bottom: 16%; } }
.demo-visible .page-bitmap { transform: translateY(-31%); }
.corners i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--lemon); animation: corners 3s infinite; }
.corners i:nth-child(1) { left: 12px; top: 12px; border-right: 0; border-bottom: 0; }
.corners i:nth-child(2) { right: 12px; top: 12px; border-left: 0; border-bottom: 0; }
.corners i:nth-child(3) { left: 12px; bottom: 12px; border-right: 0; border-top: 0; }
.corners i:nth-child(4) { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
@keyframes corners { 0%, 30% { transform: scale(1.25); opacity: 0; } 45%, 100% { transform: scale(1); opacity: 1; } }
.shutter { position: absolute; inset: 0; background: #fff; opacity: 0; animation: shutter 3s infinite; }
@keyframes shutter { 0%, 52% { opacity: 0; } 54% { opacity: .9; } 70%, 100% { opacity: 0; } }
.demo-area .page-bitmap { transform: translateY(-46%); }
.dim { position: absolute; inset: 0; background: rgba(28, 20, 48, .45); }
.sel { position: absolute; left: 18%; top: 22%; width: 0; height: 0; border: 2px dashed var(--lemon); background: rgba(247, 201, 72, .12); box-shadow: 0 0 0 9999px rgba(28, 20, 48, 0); animation: sel 3.6s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes sel { 0%, 10% { width: 0; height: 0; } 60%, 88% { width: 58%; height: 50%; } 100% { width: 58%; height: 50%; opacity: 0; } }
.cursor { position: absolute; width: 22px; height: 22px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.5L9.5 19z' fill='%231c1430' stroke='%23fff8ea' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.demo-area .cursor { left: 18%; top: 22%; animation: area-cur 3.6s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes area-cur { 0%, 10% { left: 18%; top: 22%; } 60%, 88% { left: 76%; top: 72%; } 100% { left: 76%; top: 72%; opacity: 0; } }
.el-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 14px; padding: 18px; background: var(--paper); }
.el-card { border-radius: 12px; background: #fff; border: 1px solid #e7dfcf; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.el-card.wide { grid-column: span 3; }
.el-card i { flex: 1; border-radius: 8px; background: linear-gradient(135deg, #ffd978, #f29f7a 55%, #8c74c9); }
.el-card:nth-child(2) i { background: linear-gradient(160deg, #9fe3c8, #5aa7b8 60%, #3d4f8f); }
.el-card:nth-child(3) i { background: linear-gradient(160deg, #c9b8f2, #8c74c9 60%, #34265c); }
.el-card.wide i { background: repeating-linear-gradient(90deg, #efe6d3 0 18%, #fff 18% 20%); }
.el-card b { height: 8px; border-radius: 4px; background: #d9d0bf; }
.el-card b + b { width: 60%; }
.el-hl { position: absolute; border: 3px solid var(--lemon); border-radius: 14px; background: rgba(247, 201, 72, .1); box-shadow: 0 0 30px rgba(247, 201, 72, .45); animation: el-hop 4.5s cubic-bezier(.6, 0, .2, 1) infinite; }
.demo-element .cursor { animation: el-cur 4.5s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes el-hop {
  0%, 22% { left: 14px; top: 14px; width: calc((100% - 56px) / 3 + 8px); height: calc((100% - 46px) / 2 + 8px); }
  33%, 55% { left: calc((100% - 56px) / 3 + 28px); top: 14px; width: calc((100% - 56px) / 3 + 8px); height: calc((100% - 46px) / 2 + 8px); }
  66%, 100% { left: 14px; top: calc((100% - 46px) / 2 + 28px); width: calc(100% - 28px); height: calc((100% - 46px) / 2 + 8px); }
}
@keyframes el-cur { 0%, 22% { left: 22%; top: 30%; } 33%, 55% { left: 52%; top: 26%; } 66%, 100% { left: 46%; top: 76%; } }
@media (max-width: 820px) {
  .mode { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: min(640px, 74vh); gap: 14px; }
  .mode-icon { display: none; }
  .mode h3 { margin: 10px 0 6px; }
  .demo .browser { height: 100%; }
  .modes-head { margin-bottom: 3vh; }
  .modes-dots { display: none; }
}

/* Sections (unpinned) */
.section { padding: clamp(90px, 14vh, 160px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin: 18px auto 0; }
.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1), filter .9s; transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Cards with cursor spotlight + tilt */
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(247, 201, 72, .14), transparent 45%); opacity: 0; transition: opacity .3s; }
.glow:hover::before { opacity: 1; }
.hard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; perspective: 1200px; }
.card { padding: 30px 26px; border-radius: 26px; background: linear-gradient(160deg, rgba(255, 248, 234, .07), rgba(255, 248, 234, .02)); border: 1px solid var(--line); transform-style: preserve-3d; }
.card.in { transition: transform .2s ease-out, opacity .9s, filter .9s; }
.card .glyph { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--lemon); color: var(--ink-900); margin-bottom: 22px; }
.card .glyph svg { width: 26px; height: 26px; }
.card h3 { font: 900 22px/1.2 var(--display); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card b { color: var(--cream); }
.kbd { display: inline-flex; gap: 6px; margin-top: 16px; }
kbd { padding: 6px 10px; border-radius: 8px; background: rgba(255, 248, 234, .08); border: 1px solid var(--line); border-bottom-width: 3px; font: 800 13px var(--body); }
@media (max-width: 1000px) { .hard { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hard { grid-template-columns: 1fr; } }

/* 8 · Preview */
.preview .pin { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 4vw; padding: 0 var(--gutter); background: radial-gradient(900px 600px at 70% 50%, rgba(143, 115, 220, .18), transparent 60%), var(--ink-950); }
.preview-copy .lede { margin-top: 20px; }
.preview-stage { position: relative; perspective: 1600px; }
.preview-shot img { width: 100%; height: auto; }
.preview-shot { border-radius: 18px; overflow: hidden; box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 248, 234, .2); transform-origin: 50% 100%; will-change: transform; }
.float { position: absolute; display: flex; gap: 12px; align-items: flex-start; width: 270px; padding: 14px 16px; border-radius: 16px; background: rgba(20, 14, 36, .88); border: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); will-change: transform; }
.float b { display: block; font: 900 16px/1.3 var(--display); }
.float span:not(.tick) { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--ink-900); font-weight: 900; font-size: 13px; }
.float.f1 { left: -8%; top: 8%; }
.float.f2 { right: -4%; top: 44%; }
.float.f3 { left: 6%; bottom: -8%; }
@media (max-width: 900px) {
  .preview .pin { grid-template-columns: 1fr; align-content: center; gap: 30px; }
  .float { width: 210px; padding: 10px 12px; }
  .float span:not(.tick) { display: none; }
  .float.f1 { left: 0; } .float.f2 { right: 0; } .float.f3 { left: 10%; }
}

/* 9 · Privacy */
.privacy .pin { display: flex; align-items: center; background: radial-gradient(1000px 700px at 50% 50%, rgba(143, 227, 192, .08), transparent 60%), var(--ink-950); }
.scrub { font-size: clamp(48px, 8vw, 128px); max-width: 12em; }
.scrub em { font-style: normal; }
.scrub .sw { opacity: .12; transition: opacity .15s linear, color .3s; }
.scrub .sw.on { opacity: 1; }
.scrub em .sw.on { color: var(--lemon); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 7vh; }
.pillar { padding-top: 20px; border-top: 2px solid var(--line); opacity: 0; transform: translateY(30px); }
.pillar h3 { font: 900 21px/1.25 var(--display); margin-bottom: 8px; color: var(--mint); }
.pillar p { color: var(--muted); font-size: 15px; }
.honest { margin-top: 5vh; font-size: 14px; color: var(--muted); max-width: 52em; opacity: 0; }
.honest b { color: var(--cream); }
.honest a { color: var(--lemon); text-decoration: none; font-weight: 800; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; gap: 14px; margin-top: 4vh; } .pillar { padding-top: 12px; } .pillar p { font-size: 13px; } .honest { font-size: 12px; } }

/* 10 · Pricing */
.plans { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px; border-radius: 30px; background: linear-gradient(160deg, rgba(255, 248, 234, .07), rgba(255, 248, 234, .02)); border: 1px solid var(--line); }
.plan.hot { background: linear-gradient(170deg, #2e2152, #1c1430); border: 0; transform: translateY(-14px); box-shadow: 0 40px 100px -30px rgba(247, 201, 72, .45); }
.plan.hot.reveal { transform: translateY(26px); }
.plan.hot.reveal.in { transform: translateY(-14px); }
.plan.hot::after { content: ""; position: absolute; inset: 0; z-index: -2; padding: 2px; border-radius: inherit; background: conic-gradient(from var(--a, 0deg), var(--lemon), rgba(247, 201, 72, .05) 25%, var(--lemon-soft) 50%, rgba(247, 201, 72, .05) 75%, var(--lemon)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: var(--lemon); color: var(--ink-900); font: 900 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 8px 24px -6px rgba(247, 201, 72, .8); }
.plan-name { font: 800 14px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan.hot .plan-name { color: var(--lemon); }
.plan-price { font: 900 clamp(48px, 5vw, 64px)/1 var(--display); letter-spacing: -.04em; margin: 16px 0 8px; }
.plan-price small { font-size: 18px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan-sub { color: var(--muted); font-size: 15px; min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; flex: 1; font-size: 15px; }
.plan li { position: relative; padding-left: 28px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: rgba(143, 227, 192, .16) no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='%238fe3c0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan.hot li::before { background-color: rgba(247, 201, 72, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='%23f7c948' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan .btn { width: 100%; }
.price-note { text-align: center; margin-top: 30px; font-size: 13px; color: rgba(255, 248, 234, .45); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .plan.hot, .plan.hot.reveal.in { transform: none; } .plan.hot { order: -1; } }

/* 11 · FAQ */
.faq-section { padding-top: 0; }
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 6vw; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 800 18px/1.4 var(--body); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 900 26px/1 var(--display); color: var(--lemon); transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list kbd { font-size: 12px; padding: 2px 7px; }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 44em; }
.faq-list a { color: var(--lemon); }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; gap: 20px; } }

/* Guide cards (homepage + guides) */
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.g-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 22px; text-decoration: none; background: linear-gradient(160deg, rgba(255, 248, 234, .07), rgba(255, 248, 234, .02)); border: 1px solid var(--line); transition: transform .25s cubic-bezier(.2, .8, .2, 1.3), border-color .25s; }
.g-card:hover { transform: translateY(-4px); border-color: rgba(247, 201, 72, .5); }
.g-card .k { font: 900 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--lemon); }
.g-card h3 { font: 900 21px/1.25 var(--display); }
.g-card p { color: var(--muted); font-size: 14px; flex: 1; }
.g-card .go { font-weight: 800; font-size: 14px; color: var(--lemon); }


/* 12 · Final */
.final { position: relative; overflow: hidden; padding: clamp(120px, 22vh, 220px) 0; text-align: center; background: radial-gradient(1200px 700px at 50% 110%, rgba(247, 201, 72, .2), transparent 60%), linear-gradient(180deg, var(--ink-950), #241a44); }
.final .wrap { position: relative; z-index: 2; }
.final-mark { width: 110px; height: 110px; margin: 0 auto 30px; filter: drop-shadow(0 20px 50px rgba(247, 201, 72, .35)); }
.final .lede { margin: 24px auto 34px; }
.final .cta-row { justify-content: center; }

.foot { padding: 34px 0; border-top: 1px solid var(--line); background: var(--ink-950); font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; gap: 22px; margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cream); }

/* Film */
.film { width: min(1280px, 94vw); padding: 0; border: 0; border-radius: 22px; background: #000; overflow: visible; box-shadow: 0 60px 160px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }
.film::backdrop { background: rgba(8, 5, 18, .86); backdrop-filter: blur(10px); }
.film[open] { animation: film-in .5s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes film-in { from { opacity: 0; transform: scale(.9); } }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; }
.film-close { position: absolute; top: -50px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 248, 234, .08); color: var(--cream); font-size: 24px; line-height: 1; cursor: pointer; }

/* Reduced motion: unpin, rest at the end states, no loops. */
html.rm .scene { height: auto; }
html.rm .pin { position: relative; height: auto; min-height: 100vh; padding-block: 120px; }
html.rm .hero .pin { padding-bottom: 0; }
html.rm .rig-stage { position: relative; top: auto; margin-top: 60px; padding-bottom: 80px; }
html.rm .grind { display: none; }
html.rm .modes-track { flex-direction: column; width: auto; padding-right: var(--gutter); }
html.rm .mode { width: 100%; }
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition: none !important; }
html.rm .reveal { opacity: 1; transform: none; filter: none; }
html.rm .grain, html.rm .scroll-cue { display: none; }
@media (max-width: 480px) { .hero-copy .eyebrow { font-size: 11px; letter-spacing: .12em; } .hero-copy .eyebrow::before { display: none; } }
@media (max-height: 820px) and (min-width: 721px) {
  .hero-mark { margin-bottom: 14px; }
  .hero-copy .eyebrow { margin-bottom: 14px; }
  .hero-copy .lede { margin: 14px auto 20px; font-size: 16px; }
  .hero-note { margin-top: 14px; }
}
