/* Layout: a film you scroll through. Dark stages carry the product, paper sheets carry the explanations,
   gold marks what is still to come. One committed look, the same as the app and the promo film. */
:root {
  --ink: #0b0d0c;
  --stage: #111412;
  --stage-2: #171c19;
  --glass: rgba(255, 255, 255, 0.055);
  --line-dark: rgba(255, 255, 255, 0.12);
  --cream: #f5f2ea;
  --dim: #aaa697;
  --paper: #f5f2ea;
  --raised: #fffdf9;
  --line-paper: #e2ddd0;
  --text: #1c1b18;
  --text-2: #57534a;
  --muted: #8a8478;
  --green: #1e6b4f;
  --green-deep: #123f2f;
  --mint: #9ee6c4;
  --mint-deep: #2f9a72;
  --amber: #b7791f;
  --gold: #e3b35c;
  --red: #b3392c;
  --red-lt: #ee8f80;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 18px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .95 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--mint); color: var(--ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.02; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
.display em { font-style: italic; color: var(--mint); letter-spacing: -0.02em; }
h2.display { font-size: clamp(42px, 6.2vw, 88px); }
h3.display { font-size: clamp(30px, 3.4vw, 46px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--dim); max-width: 60ch; margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); margin: 0 0 22px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.eyebrow.red { color: var(--red-lt); }
.eyebrow.green { color: var(--green); }
.section-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 980px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.mint { background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.dot.red { background: var(--red-lt); box-shadow: 0 0 14px var(--red-lt); }
.dot.amber { background: var(--gold); box-shadow: 0 0 14px var(--gold); }

/* ------------------------------------------------------------------ surfaces */
.stage { position: relative; background: var(--stage); padding-block: clamp(90px, 12vw, 160px); overflow: hidden; isolation: isolate; }
.stage::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.07; mix-blend-mode: overlay; pointer-events: none; z-index: 5; }
.mesh { position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 42% at var(--mx, 30%) var(--my, 35%), rgba(47, 154, 114, 0.40), transparent 70%),
    radial-gradient(30% 36% at 78% 22%, rgba(30, 107, 79, 0.55), transparent 72%),
    radial-gradient(34% 40% at 62% 84%, rgba(183, 121, 31, 0.14), transparent 72%),
    radial-gradient(50% 60% at 12% 90%, rgba(18, 63, 47, 0.8), transparent 72%);
  animation: drift 26s var(--ease-in-out) infinite alternate; }
.mesh.gold {
  background:
    radial-gradient(34% 40% at var(--mx, 70%) var(--my, 30%), rgba(227, 179, 92, 0.20), transparent 70%),
    radial-gradient(40% 46% at 20% 30%, rgba(30, 107, 79, 0.45), transparent 72%),
    radial-gradient(36% 40% at 80% 86%, rgba(183, 121, 31, 0.18), transparent 72%); }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }
.heat { background: #140e0c; }
.heat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 25% 40%, rgba(179, 57, 44, 0.45), transparent 70%), radial-gradient(40% 50% at 80% 70%, rgba(183, 121, 31, 0.18), transparent 72%); }
.paper { position: relative; background: var(--paper); color: var(--text); padding-block: clamp(90px, 12vw, 160px); }
.paper::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(28, 27, 24, 0.09) 1.3px, transparent 1.5px) 0 0 / 34px 34px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); pointer-events: none; }
.paper > .wrap { position: relative; }
.paper .display em { color: var(--green); }
.paper .lead { color: var(--text-2); }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding-inline: 26px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), background 240ms var(--ease-out); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn:active { transform: scale(0.97); }
.btn-small { height: 42px; padding-inline: 18px; font-size: 15px; }
.btn-mint { background: var(--mint); color: var(--ink); box-shadow: 0 10px 30px rgba(158, 230, 196, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.btn-mint:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(158, 230, 196, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--mint); transform: translateY(-2px); }
.btn-ghost-dark { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-paper); }
.btn-ghost-dark:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.btn-gold { background: linear-gradient(180deg, #f0c878, var(--gold)); color: #1a1408; box-shadow: 0 12px 34px rgba(227, 179, 92, 0.28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(227, 179, 92, 0.4); }

/* ------------------------------------------------------------------ nav */
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; transition: background 300ms var(--ease-out), box-shadow 300ms var(--ease-out), backdrop-filter 300ms; }
.nav.scrolled { background: rgba(11, 13, 12, 0.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line-dark); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 22px; height: 29px; --fold-a: url(#foldTop); --fold-b: url(#foldBottom); }
.brand-word { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.03em; }
.brand-word em { font-weight: 400; color: var(--mint); }
.fold-a { fill: var(--fold-a, url(#foldTop)); }
.fold-b { fill: var(--fold-b, url(#foldBottom)); }
.fold-turn { fill: var(--fold-turn, #2f9a72); opacity: 0.62; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--dim); font-size: 15px; font-weight: 500; transition: color 200ms; }
.nav-links a:hover { color: var(--cream); }

/* ------------------------------------------------------------------ hero */
.hero { padding-top: clamp(130px, 16vw, 190px); padding-bottom: clamp(80px, 10vw, 130px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 70px); align-items: center; }
.hero-title { font-size: clamp(64px, 9.4vw, 142px); margin-bottom: 30px; }
.hero-title .line { display: block; overflow: hidden; padding: 0.04em 0.06em 0.14em 0; margin-bottom: -0.1em; }
.hero-title .line > span, .hero-title em > span { display: inline-block; animation: rise 1s var(--ease-out) both; }
.hero-title .line:nth-child(1) span:nth-child(2) { animation-delay: 80ms; }
.hero-title em > span:nth-child(1) { animation-delay: 190ms; }
.hero-title em > span:nth-child(2) { animation-delay: 270ms; }
@keyframes rise { from { transform: translateY(105%) rotate(6deg); opacity: 0.2; } to { transform: none; opacity: 1; } }
.hero .eyebrow, .hero .lead, .cta-row, .proof { animation: fade-up 900ms var(--ease-out) both; }
.hero .lead { animation-delay: 380ms; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; animation-delay: 480ms; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 40px 0 0; color: var(--dim); font-size: 15px; animation-delay: 580ms; }
.proof strong { color: var(--cream); font-weight: 600; margin-right: 6px; }
.cta-meta { margin: 16px 0 0; color: var(--dim); font-size: 14px; animation: fade-up 900ms var(--ease-out) 530ms both; }
.cta-meta + .proof { margin-top: 30px; }
.defs { position: absolute; }
@keyframes fade-up { from { opacity: 0.25; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; perspective: 2200px; margin-right: calc(-1 * clamp(24px, 7vw, 140px)); animation: window-in 1.3s var(--ease-out) 200ms both; }
@keyframes window-in { from { opacity: 0.3; transform: translateY(60px) scale(0.94); } to { opacity: 1; transform: none; } }
.window { position: relative; border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 50px 110px rgba(0, 0, 0, 0.55), 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 90px rgba(47, 154, 114, 0.16); }
.window img { width: 100%; height: auto; }
.hero-window { transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -12deg)) translateZ(0); transform-style: preserve-3d; transition: transform 120ms linear; will-change: transform; }
.glare { position: absolute; inset: 0; background: linear-gradient(115deg, transparent calc(var(--gx, 30%) - 18%), rgba(255, 255, 255, 0.26) var(--gx, 30%), transparent calc(var(--gx, 30%) + 18%)); mix-blend-mode: soft-light; pointer-events: none; }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: rgba(14, 18, 16, 0.86); border: 1px solid var(--line-dark); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); font-size: 14px; font-weight: 500; white-space: nowrap; backdrop-filter: blur(6px); animation: bob 6s var(--ease-in-out) infinite alternate; }
.chip-a { left: -26px; top: 14%; }
.chip-b { right: -14px; top: 46%; animation-delay: -2s; }
.chip-c { left: 10%; bottom: -22px; animation-delay: -4s; }
@keyframes bob { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

/* ------------------------------------------------------------------ film */
.film { padding-top: 40px; }
.film-frame { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px var(--line-dark), 0 60px 140px rgba(0, 0, 0, 0.6), 0 0 120px rgba(47, 154, 114, 0.14); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; border: 0; cursor: pointer; background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55)); font-size: 18px; font-weight: 600; letter-spacing: 0.01em; transition: background 300ms; }
.film-play:hover { background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45)); }
.film-play-ring { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--ink); box-shadow: 0 0 0 14px rgba(158, 230, 196, 0.18), 0 20px 60px rgba(0, 0, 0, 0.5); transition: transform 300ms var(--ease-out), box-shadow 300ms; }
.film-play-ring svg { width: 34px; height: 34px; fill: currentColor; margin-left: 6px; }
.film-play:hover .film-play-ring { transform: scale(1.07); box-shadow: 0 0 0 22px rgba(158, 230, 196, 0.14), 0 20px 60px rgba(0, 0, 0, 0.5); }
.film-frame.playing .film-play { opacity: 0; pointer-events: none; transition: opacity 300ms; }

/* ------------------------------------------------------------------ problem */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 50px; align-items: center; }
.problem h2 { margin-bottom: 30px; }
.problem .display em { color: var(--red-lt); }
.problem .lead strong { color: var(--cream); font-weight: 500; }
.log-rain { position: absolute; inset: 0; z-index: -1; overflow: hidden; font-family: var(--mono); font-size: 15px; line-height: 2; color: rgba(245, 242, 234, 0.07); white-space: pre; mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, #000 70%, #000 90%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, #000 70%, #000 90%, transparent 100%); }
.log-rain div { position: absolute; top: 0; animation: rain 38s linear infinite; }
.log-rain b { color: rgba(238, 143, 128, 0.22); font-weight: 400; }
@keyframes rain { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.stamps { position: relative; height: 430px; }
.stamp { position: absolute; font-family: var(--display); font-style: italic; font-weight: 600; line-height: 1; color: var(--red-lt); border: 0.05em solid var(--red-lt); border-radius: 0.16em; padding: 0.02em 0.2em 0.1em; background: rgba(20, 10, 8, 0.6); box-shadow: 0 30px 80px rgba(179, 57, 44, 0.32); }
.s1 { font-size: clamp(64px, 7vw, 110px); left: 0; top: 10px; transform: rotate(-6deg); }
.s2 { font-size: clamp(76px, 8.4vw, 132px); left: 18%; top: 150px; transform: rotate(4deg); }
.s3 { font-size: clamp(88px, 9.6vw, 150px); left: 6%; top: 290px; transform: rotate(-3deg); }
.stamps.go .stamp { animation: stamp 700ms var(--ease-out) both; }
.stamps.go .s2 { animation-delay: 420ms; }
.stamps.go .s3 { animation-delay: 840ms; }
@keyframes stamp { 0% { opacity: 0; scale: 1.9; } 55% { opacity: 1; scale: 0.94; } 100% { opacity: 1; scale: 1; } }

/* ------------------------------------------------------------------ tools */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.tool { background: var(--raised); border: 1px solid var(--line-paper); border-radius: 16px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms; }
.tool:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(28, 27, 24, 0.1); border-color: rgba(30, 107, 79, 0.35); }
.tool h3 { margin: 0; font-size: 17px; font-weight: 500; color: var(--green); }
.tool p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.tool .tool-cost { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-paper); font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.tool-cost b { color: var(--green); font-weight: 500; font-size: 17px; }
.tool-cost s { color: var(--muted); }

/* ------------------------------------------------------------------ numbers */
.numbers-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr); gap: 28px; align-items: stretch; }
.chart-card { margin: 0; background: var(--glass); border: 1px solid var(--line-dark); border-radius: 24px; padding: 28px 28px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; color: var(--dim); }
.chart-legend span { display: inline-flex; align-items: center; gap: 10px; }
.chart { position: relative; width: 100%; aspect-ratio: 16 / 8.2; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-note { margin: 0; font-size: 13.5px; color: var(--dim); line-height: 1.55; }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -115%); background: rgba(10, 12, 11, 0.94); border: 1px solid var(--line-dark); border-radius: 10px; padding: 8px 12px; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; opacity: 0; transition: opacity 150ms; }
.chart-tip b { color: var(--mint); font-weight: 500; }
.chart-tip i { color: var(--red-lt); font-style: normal; }
.stats { display: flex; flex-direction: column; gap: 16px; }
.stat { background: var(--glass); border: 1px solid var(--line-dark); border-radius: 22px; padding: 22px 26px; }
.stat-n { font-family: var(--display); font-weight: 600; font-size: clamp(54px, 5vw, 76px); line-height: 1; letter-spacing: -0.04em; color: var(--mint); font-variant-numeric: tabular-nums; }
.stat-x { font-family: var(--display); font-style: italic; font-size: clamp(36px, 3.4vw, 50px); color: var(--mint); margin-left: 4px; }
.stat p { margin: 8px 0 0; color: var(--dim); font-size: 15.5px; line-height: 1.45; }
.stat-big { background: linear-gradient(160deg, rgba(158, 230, 196, 0.16), rgba(158, 230, 196, 0.04)); border-color: rgba(158, 230, 196, 0.3); }
.stat-big .stat-n { font-size: clamp(90px, 8vw, 132px); }
.stat-big p .mono { color: var(--cream); }

.calc { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 34px; align-items: center; background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)); border: 1px solid var(--line-dark); border-radius: 26px; padding: clamp(24px, 3vw, 40px); }
.calc-copy h3 { margin-bottom: 14px; }
.calc-copy p { margin: 0; color: var(--dim); font-size: 15.5px; }
.calc-inputs { display: grid; gap: 10px; }
.calc-inputs label { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 15px; color: var(--dim); }
.calc-inputs output { font-family: var(--mono); color: var(--cream); font-size: 15px; }
.calc-inputs input[type="range"] { width: 100%; margin: 0 0 12px; accent-color: var(--mint); height: 28px; }
.price-input { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); color: var(--cream); }
.price-input input { width: 84px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-dark); border-radius: 8px; padding: 6px 8px; font-family: var(--mono); text-align: right; }
.calc-result { text-align: right; min-width: 0; }
.calc-label { margin: 0; color: var(--dim); font-size: 14px; }
.calc-big { margin: 4px 0; font-size: clamp(34px, 3.4vw, 50px); color: var(--mint); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.calc-money { margin: 0; color: var(--dim); }
.calc-money strong { color: var(--cream); font-size: 22px; }
.calc-foot { margin: 6px 0 0; color: #7d796d; font-size: 13px; }

/* ------------------------------------------------------------------ features */
.feature { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-bottom: clamp(70px, 9vw, 120px); }
.feature.flip .feature-copy { order: 2; }
.features .feature:last-child { margin-bottom: 0; }
.feature-copy h3 { margin-bottom: 26px; }
.feature-shot { margin: 0; }
.feature-shot .window { box-shadow: 0 0 0 1px rgba(28, 27, 24, 0.08), 0 40px 90px rgba(28, 27, 24, 0.18), 0 12px 30px rgba(28, 27, 24, 0.10); transform: perspective(2000px) rotateY(var(--tilt, -4deg)) rotateX(2deg); transition: transform 600ms var(--ease-out); }
.feature.flip .feature-shot .window { --tilt: 4deg; }
.feature-shot .window:hover { transform: perspective(2000px) rotateY(0deg) rotateX(0deg) scale(1.01); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 38px; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10.5 L8.6 14 L15 7' fill='none' stroke='%23fbf9f4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 15px no-repeat; }

.game { margin: -30px 0 clamp(80px, 10vw, 130px); background: var(--raised); border: 1px solid var(--line-paper); border-radius: 26px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 70px rgba(28, 27, 24, 0.08); }
.game-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.game-head h3 { margin-bottom: 8px; }
.game-head p { margin: 0; color: var(--text-2); max-width: 58ch; }
.game-status { display: flex; align-items: center; gap: 16px; }
.game-status .mono { color: var(--text-2); font-size: 14px; }
#game { width: 100%; height: auto; aspect-ratio: 1200 / 520; border-radius: 16px; background: #fbf9f4; box-shadow: inset 0 0 0 1px var(--line-paper); cursor: crosshair; touch-action: manipulation; }
.game-tip { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; min-height: 1.5em; }

/* ------------------------------------------------------------------ terminal toy */
.play-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 70px); align-items: center; }
.play-copy h2 { margin-bottom: 26px; }
.play-copy .lead .mono { color: var(--mint); }
.agent-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.agent-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-dark); font-size: 14.5px; }
.a-cc { --c: #f6e6d8; --f: #9a4a1f; } .a-cx { --c: #e9e6de; --f: #33312c; } .a-gm { --c: #e1e8f5; --f: #2f5e9e; } .a-oc { --c: #dfece4; --f: #1e6b4f; }
.a-ai { --c: #e9e6df; --f: #57534a; } .a-km { --c: #ece4f3; --f: #6b3f8a; } .a-sh { --c: #ece8dd; --f: #57534a; }
.agent-chip b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--c); color: var(--f); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.term { border-radius: 18px; overflow: hidden; background: #0a0c0b; border: 1px solid var(--line-dark); box-shadow: 0 50px 110px rgba(0, 0, 0, 0.55), 0 0 90px rgba(47, 154, 114, 0.12); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.03); }
.term-bar span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.term-bar p { margin: 0 0 0 12px; font-size: 13px; color: var(--dim); }
.term-body { height: 360px; overflow-y: auto; padding: 18px 20px 6px; font-size: 14.5px; line-height: 1.65; color: #d8d4c8; scrollbar-width: thin; }
.term-body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-body .t-cmd { color: var(--cream); }
.term-body .t-cmd::before { content: "$ "; color: var(--mint); }
.term-body .t-ok { color: var(--mint); }
.term-body .t-warn { color: var(--gold); }
.term-body .t-bad { color: var(--red-lt); }
.term-body .t-dim { color: #7d796d; }
.term-input { display: flex; align-items: center; gap: 10px; padding: 12px 20px 18px; font-size: 14.5px; }
.term-prompt { color: var(--mint); white-space: nowrap; }
.term-input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--cream); font-family: var(--mono); caret-color: var(--mint); }

/* ------------------------------------------------------------------ pro */
.pro { background: #0a0a09; }
.pro .display em { color: var(--mint); }
.pro-head { display: flex; gap: clamp(22px, 3vw, 40px); align-items: flex-start; margin-bottom: clamp(50px, 7vw, 90px); }
.pro-mark { width: clamp(70px, 8vw, 110px); height: auto; aspect-ratio: 424 / 560; flex: none; --fold-a: url(#foldGold); --fold-b: url(#foldGold); --fold-turn: #b7791f; filter: drop-shadow(0 10px 40px rgba(227, 179, 92, 0.35)); animation: float-mark 7s var(--ease-in-out) infinite alternate; }
@keyframes float-mark { from { transform: translateY(-6px) rotate(-3deg); } to { transform: translateY(6px) rotate(3deg); } }
.pill-gold { display: inline-block; margin: 0 0 20px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(227, 179, 92, 0.5); border-radius: 999px; padding: 8px 18px; }
.pro h2 { margin-bottom: 22px; font-size: clamp(52px, 7.4vw, 112px); }
.gold { color: var(--gold); font-weight: 600; }
.pro-sub { font-size: clamp(30px, 3.6vw, 50px); margin: 0 0 28px; }
.pro-sub em { color: var(--gold) !important; }
.pro-sub span { font-family: var(--sans); font-size: 16px; letter-spacing: 0; color: var(--dim); margin-left: 12px; font-style: normal; }

.bots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: clamp(70px, 9vw, 110px); }
.bot { position: relative; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 24px; border-radius: 26px; cursor: pointer; background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022)); border: 1px solid var(--line-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 70px rgba(0, 0, 0, 0.4); transition: transform 400ms var(--ease-out), border-color 300ms; min-height: 420px; }
.bot[data-bot="scout"] { --tone: #9ee6c4; } .bot[data-bot="forge"] { --tone: #e3b35c; } .bot[data-bot="warden"] { --tone: #ee8f80; } .bot[data-bot="ledger"] { --tone: #e6dfcd; }
.bot:hover { transform: translateY(-6px) rotate(-0.6deg); border-color: color-mix(in srgb, var(--tone) 55%, transparent); }
.bot.hop { animation: hop 600ms var(--ease-out); }
@keyframes hop { 0% { transform: translateY(0); } 35% { transform: translateY(-18px) rotate(-2deg); } 70% { transform: translateY(2px) rotate(1deg); } 100% { transform: translateY(0); } }
.bot-face { position: relative; width: 110px; height: 110px; border-radius: 50%; margin-bottom: 18px; background: radial-gradient(circle at 34% 28%, #fff, var(--tone) 44%, rgba(0, 0, 0, 0.3) 130%); box-shadow: 0 0 50px color-mix(in srgb, var(--tone) 45%, transparent), inset 0 -8px 18px rgba(0, 0, 0, 0.18); display: flex; align-items: center; justify-content: center; gap: 14px; }
.eye { position: relative; width: 22px; height: 26px; border-radius: 12px; background: #fffdf9; display: grid; place-items: center; overflow: hidden; animation: blink 5.5s infinite; margin-top: -8px; }
.bot:nth-child(2) .eye { animation-delay: -1.3s; }
.bot:nth-child(4) .eye { animation-delay: -3.1s; }
.eye i { width: 11px; height: 11px; border-radius: 50%; background: #12110f; transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform 90ms linear; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
.mouth { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; }
.mouth.smile { width: 34px; height: 16px; border: 5px solid #12110f; border-top: 0; border-radius: 0 0 20px 20px; }
.mouth.flat { width: 30px; height: 5px; border-radius: 3px; background: #12110f; }
.mouth.small { width: 22px; bottom: 26px; }
.brow { position: absolute; top: 26px; width: 22px; height: 5px; border-radius: 3px; background: #12110f; }
.brow.l { left: 26px; rotate: 16deg; }
.brow.r { right: 26px; rotate: -16deg; }
.visor .visor-bar { width: 70px; height: 24px; border-radius: 12px; background: #12110f; position: relative; overflow: hidden; margin-top: -10px; }
.visor-bar i { position: absolute; top: 7px; left: 8px; width: 16px; height: 10px; border-radius: 5px; background: var(--red-lt); box-shadow: 0 0 12px var(--red-lt); animation: scan 2.4s var(--ease-in-out) infinite alternate; }
@keyframes scan { to { transform: translateX(38px); } }
.glasses .eye { box-shadow: 0 0 0 5px #12110f; }
.bot-name { font-size: 40px; line-height: 1; }
.bot-tag { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tone); }
.bot-job { margin-top: 10px; color: #c4bfb0; font-size: 16px; line-height: 1.5; }
.bot-say { margin-top: auto; min-height: 78px; padding: 12px 14px; border-radius: 4px 14px 14px 4px; border-left: 3px solid var(--tone); background: rgba(0, 0, 0, 0.35); font-size: 13.5px; line-height: 1.5; color: var(--cream); opacity: 0.35; transition: opacity 300ms; }
.bot-say:empty::before { content: "Click to hear from me"; color: var(--dim); }
.bot.talking .bot-say, .bot.talked .bot-say { opacity: 1; }
.bot.talking .bot-say::after { content: "▍"; color: var(--tone); }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: clamp(70px, 9vw, 110px); }
.way { display: flex; gap: 14px; align-items: center; padding: 20px 22px 20px 12px; border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line-dark); }
.way h4 { margin: 0 0 6px; font-size: 30px; }
.way p { margin: 0; font-size: 15px; line-height: 1.45; color: #c4bfb0; }
.way-art { width: 150px; flex: none; overflow: visible; }
.way-art .track { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 3; stroke-dasharray: 4 8; stroke-linecap: round; }
.way-art .node { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.25); stroke-width: 3; }
.way-art .baton { fill: var(--mint); animation: relay 4s var(--ease-in-out) infinite; }
@keyframes relay { 0%, 12% { transform: translateX(0); } 42%, 55% { transform: translateX(60px); } 85%, 100% { transform: translateX(120px); } }
.way-art .bid { fill: rgba(255, 255, 255, 0.18); transform-box: fill-box; transform-origin: 50% 100%; animation: grow 4s var(--ease-out) infinite; }
.way-art .bid.win { animation-name: grow, win; }
.way-art .tickmark { fill: none; stroke: var(--mint); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; animation: tick 4s var(--ease-out) infinite; }
@keyframes grow { 0% { transform: scaleY(0); } 30%, 100% { transform: scaleY(1); } }
@keyframes win { 0%, 40% { fill: rgba(255, 255, 255, 0.18); } 55%, 100% { fill: var(--mint); } }
@keyframes tick { 0%, 50% { stroke-dashoffset: 30; } 70%, 100% { stroke-dashoffset: 0; } }
.way-art .finish { stroke: var(--gold); stroke-width: 3; stroke-dasharray: 6 6; }
.way-art .runner { animation: run 4s var(--ease-in-out) infinite; }
.way-art .runner.fast { fill: var(--mint); --to: 120px; }
.way-art .runner.slow { fill: rgba(255, 255, 255, 0.45); --to: 84px; animation-duration: 4s; }
@keyframes run { 0%, 8% { transform: translateX(0); } 70%, 100% { transform: translateX(var(--to)); } }
.way-art .ring { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 12; }
.way-art .fill { fill: none; stroke: var(--mint); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 264; transform: rotate(-90deg); transform-origin: 90px 62px; animation: budget 4s var(--ease-out) infinite; }
@keyframes budget { 0% { stroke-dashoffset: 264; } 60%, 100% { stroke-dashoffset: 58; } }
.way-art .limit { stroke: var(--red-lt); stroke-width: 5; stroke-linecap: round; transform: rotate(-40deg); transform-origin: 90px 62px; }
.way-art .vote { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.25); stroke-width: 3; animation: vote 4s var(--ease-out) infinite; }
.way-art .v2 { animation-delay: 0.5s; }
.way-art .v3 { animation-delay: 1s; }
@keyframes vote { 0%, 15% { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.25); } 30%, 90% { fill: rgba(158, 230, 196, 0.35); stroke: var(--mint); } 100% { fill: rgba(255, 255, 255, 0.06); } }
.way-art .verdict { fill: var(--mint); transform-box: fill-box; transform-origin: center; animation: verdict 4s var(--ease-out) infinite; }
@keyframes verdict { 0%, 50% { transform: scale(0); } 62%, 90% { transform: scale(1); } 100% { transform: scale(0); } }
.way-art .ground { stroke: rgba(255, 255, 255, 0.2); stroke-width: 3; }
.way-art .orb { offset-path: path("M26 92 Q90 -30 154 92"); offset-distance: 0%; offset-rotate: 0deg; animation: sun 4s var(--ease-in-out) infinite; transform: translate(-26px, -92px); }
@keyframes sun { 0%, 5% { offset-distance: 0%; fill: #e6dfcd; } 70%, 100% { offset-distance: 100%; fill: var(--gold); } }
.way-art .pr { fill: var(--mint); opacity: 0; animation: pr 4s var(--ease-out) infinite; }
.way-art .p2 { animation-delay: 0.2s; }
.way-art .p3 { animation-delay: 0.4s; }
@keyframes pr { 0%, 66% { opacity: 0; } 76%, 96% { opacity: 1; } 100% { opacity: 0; } }

.marquee { display: grid; gap: 16px; margin-bottom: 60px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-row { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; }
.marquee-row[data-dir="right"] { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row span { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); font-size: 18px; white-space: nowrap; }
.marquee-row span::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10.5 L8.5 15 L16 6' fill='none' stroke='%23e3b35c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pro-cta { display: flex; }

/* ------------------------------------------------------------------ faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--raised); border: 1px solid var(--line-paper); border-radius: 16px; padding: 0 24px; transition: box-shadow 250ms; }
.faq details[open] { box-shadow: 0 18px 40px rgba(28, 27, 24, 0.08); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--green), var(--green)) center / 14px 2.5px no-repeat, linear-gradient(var(--green), var(--green)) center / 2.5px 14px no-repeat; transition: transform 300ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--text-2); }
.faq .mono { color: var(--green); font-size: 0.92em; }

/* ------------------------------------------------------------------ closing */
.lost { min-height: 100svh; display: grid; align-content: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.closing h2, .lost h1 { font-size: clamp(46px, 6.6vw, 96px); max-width: 16ch; }
.big-fold { width: clamp(110px, 12vw, 150px); padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 20px 60px rgba(47, 154, 114, 0.45)); transition: transform 500ms var(--ease-out); }
.big-fold:hover { transform: translateY(-4px) rotate(-4deg); }
.big-fold svg { width: 100%; height: auto; overflow: visible; }
.big-fold .bf-a { fill: url(#foldTop); transform-box: fill-box; transform-origin: 0% 50%; transition: transform 700ms var(--ease-out); }
.big-fold .bf-b { fill: url(#foldBottom); transform-box: fill-box; transform-origin: 100% 50%; transition: transform 700ms var(--ease-out) 120ms; }
.big-fold .bf-turn { fill: #2f9a72; opacity: 0.62; transform-box: fill-box; transform-origin: 50% 0%; transition: transform 600ms var(--ease-out) 60ms; }
.big-fold.folded .bf-a { transform: scaleX(0.08); }
.big-fold.folded .bf-b { transform: scaleX(0.08); }
.big-fold.folded .bf-turn { transform: scaleY(0.05); }
.early-form { display: flex; gap: 10px; width: min(560px, 100%); margin-top: 10px; }
.early-form input { flex: 1; min-width: 0; height: 58px; border-radius: 999px; padding: 0 24px; background: rgba(0, 0, 0, 0.4); border: 1.5px solid var(--line-dark); color: var(--cream); font-size: 17px; outline: none; transition: border-color 200ms; }
.early-form input:focus { border-color: var(--mint); }
.early-form .btn { height: 58px; }
.early-note { margin: 0; color: var(--dim); font-size: 14.5px; min-height: 1.6em; }
.early-note.ok { color: var(--mint); }
.early-note.bad { color: var(--red-lt); }
.early-label { margin: 18px 0 -22px; color: var(--cream); font-size: 17px; }
.early-label b { color: var(--gold); font-weight: 600; }
.early-form { scroll-margin-top: 30vh; }
.download { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.btn-big { height: 66px; padding-inline: 36px; font-size: 18px; }
.btn-big svg { width: 18px; height: 18px; }
.download-meta { margin: 0; color: var(--dim); font-size: 14.5px; }
.verify { width: min(640px, 100%); color: var(--dim); font-size: 14.5px; line-height: 1.6; }
.verify summary { list-style: none; cursor: pointer; color: var(--cream); font-weight: 500; text-decoration: underline 1.5px; text-decoration-color: var(--line-dark); text-underline-offset: 6px; transition: text-decoration-color 200ms; }
.verify summary::-webkit-details-marker { display: none; }
.verify summary:hover, .verify[open] summary { text-decoration-color: var(--mint); }
.verify > div { margin-top: 14px; padding: 4px 20px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line-dark); text-align: left; }
.verify p { margin: 14px 0 0; }
.verify code { font-family: var(--mono); font-size: 13px; color: var(--cream); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-dark); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.verify .hash, .verify .cmd { display: block; margin-top: 8px; padding: 10px 12px; user-select: all; }
.verify .hash { word-break: break-all; color: var(--mint); }

/* ------------------------------------------------------------------ footer, toast, confetti */
.footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding-block: 34px calc(34px + env(safe-area-inset-bottom, 0px)); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.footer p { margin: 0; color: var(--dim); font-size: 14.5px; }
.footer nav { display: flex; gap: 22px; margin-left: auto; }
.footer nav a { color: var(--dim); text-decoration: none; font-size: 14.5px; }
.footer nav a:hover { color: var(--cream); }
.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 90; background: rgba(14, 18, 16, 0.95); border: 1px solid rgba(158, 230, 196, 0.4); color: var(--cream); padding: 14px 22px; border-radius: 999px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); font-size: 15px; animation: toast-in 400ms var(--ease-out); }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px); } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }

/* ------------------------------------------------------------------ scroll reveals (enhancement only: content is readable before they run) */
.js .reveal { opacity: 0.35; transform: translateY(26px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1060px) {
  .hero-grid, .problem-grid, .numbers-grid, .play-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-result { text-align: left; }
  .bots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
  .stamps { height: 380px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .chip-a { left: 6px; } .chip-b { right: 6px; } .chip-c { left: 12px; }
  .bots, .ways { grid-template-columns: minmax(0, 1fr); }
  .bot { min-height: 0; }
  .early-form { flex-direction: column; }
  .early-form input { flex: none; }
  .footer nav { margin-left: 0; }
  .term-body { height: 300px; font-size: 12.5px; padding-inline: 14px; }
  .term-input { font-size: 13px; padding-inline: 14px; }
  .stamps { height: 300px; }
  .s2 { top: 110px; } .s3 { top: 210px; }
  .way { flex-direction: column; align-items: flex-start; padding-left: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .marquee-row { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
