/* Layout: Swiss single column on a 12-col grid; one canvas "crowd" that thins and regrows as you scroll. Single light look by choice. */
:root {
  --paper: #F3F3EF; --ink: #121211; --crowd: #BDBDB6; --you: #FF4D00; --muted: #5C5C56; --line: #D9D9D2; --card: #FFFFFF;
  --f-display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --cur: var(--you); --cur-on: #FFFFFF; --rail: var(--ink); --rail-on: var(--you); --hint-bg: var(--paper); --rail-bg: color-mix(in srgb, var(--paper) 90%, transparent);
  --gut: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--f-display); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; margin: 0; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 17px; text-decoration: none; border: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s; }
.btn:hover { background: var(--you); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.dot { display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--you); vertical-align: baseline; margin-left: .04em; }

/* Nav */
header.nav { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 60; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
header.nav.is-hidden { transform: translateY(-110%); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; letter-spacing: -0.04em; text-decoration: none; }
.mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); display: grid; grid-template-columns: repeat(3, 5px); gap: 4px; place-content: center; }
.mark i { width: 5px; height: 5px; border-radius: 50%; background: #6A6A64; }
.mark i:nth-child(5) { background: var(--you); }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { white-space: nowrap; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
@media (max-width: 420px) { .nav .btn { padding: 0 16px; font-size: 14px; } .logo { font-size: 19px; gap: 9px; } }
@media (max-width: 380px) { .nav-in { gap: 12px; } .nav .btn { padding: 0 12px; } .logo { font-size: 17px; gap: 8px; } }
@media (max-width: 340px) { .nav .btn { padding: 0 10px; font-size: 13px; } .logo { font-size: 16px; } .logo .dot { display: none; } }
@media (max-width: 1080px) { .nav-links { display: none; } }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-signin { font-size: 15px; color: var(--muted); text-decoration: none; transition: color .2s; white-space: nowrap; }
.nav-signin:hover { color: var(--ink); }
@media (max-width: 520px) { .nav-signin { display: none; } }

/* Hero */
.hero { position: relative; min-height: 760px; display: flex; align-items: flex-end; overflow: hidden; padding-block: 140px 72px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; width: 100%; display: grid; gap: 28px; pointer-events: none; }
.hero .wrap a, .hero .wrap button { pointer-events: auto; }
.hero h1 { font-size: clamp(64px, 12.5vw, 196px); letter-spacing: -0.055em; max-width: 12ch; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.hero-foot p { max-width: 520px; font-size: 21px; color: #2F2F2C; background: color-mix(in srgb, var(--paper) 82%, transparent); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.legend { display: inline-flex; align-items: center; gap: 10px; justify-self: start; background: var(--paper); padding: 8px 12px; border-radius: 999px; }
.legend b { width: 10px; height: 10px; border-radius: 50%; background: var(--you); display: inline-block; }

/* Story (pinned) */
.story { position: relative; background: var(--ink); color: var(--paper); }
.story-pin { height: 100vh; min-height: 640px; position: relative; overflow: hidden; }
.story canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-ui { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); max-width: 1320px; margin: 0 auto; pointer-events: none; }
.story .mono { color: #A9A9A2; }
.story-count { display: grid; gap: 12px; container-type: inline-size; }
.story-num { font-size: clamp(40px, 10vw, 160px); font-weight: 600; letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; }
/* "8,100,000,000" is about 6.2em wide: size it to its own column so it never runs under the clues. */
@supports (width: 1cqi) { .story-num { font-size: min(160px, 15.5cqi); } }
.story-num-label { font-size: 22px; color: #CFCFC8; }
.clues { display: grid; gap: 10px; justify-self: end; width: min(440px, 100%); }
.clue { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; background: #1E1E1C; border: 1px solid #2F2F2C; font-size: 17px; opacity: .18; transform: translateX(24px); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1), border-color .4s; }
.clue.on { opacity: 1; transform: none; }
.clue.now { border-color: var(--you); }
.clue span:last-child { font-family: var(--f-mono); font-size: 13px; color: var(--you); white-space: nowrap; }
.story-caption { position: absolute; left: 0; right: 0; bottom: 48px; text-align: center; font-size: 22px; color: #E6E6E0; padding-inline: 20px; }
@media (max-width: 860px) { .story-ui { grid-template-columns: 1fr; align-content: center; } .clues { justify-self: stretch; } .clue { font-size: 15px; padding: 10px 14px; } .story-caption { display: none; } }

/* Sections */
section.block { padding-block: 160px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 72px; }
.sec-head h2 { font-size: clamp(48px, 7vw, 112px); }
.sec-head p { font-size: 21px; color: #3A3A36; max-width: 520px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } section.block { padding-block: 96px; } }

/* Horizontal steps */
.steps { overflow: hidden; }
.steps-track { display: flex; gap: 24px; width: max-content; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: 25vw; }
.step { width: min(560px, 84vw); flex: none; background: var(--card); border-radius: 28px; padding: 36px; display: grid; gap: 22px; align-content: start; border: 1px solid var(--line); min-height: 560px; }
.step h3 { font-size: 40px; }
.step p { color: #3A3A36; font-size: 18px; }
.step .ill { height: 220px; border-radius: 18px; background: var(--paper); display: grid; place-items: center; overflow: hidden; position: relative; }
.step .ill svg { width: 82%; height: 82%; }
.step .ill svg .draw { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.step .ill svg .hot { fill: var(--you); }
.step .ill svg .soft { fill: var(--crowd); }
.code-chip { font-family: var(--f-mono); font-size: 15px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; letter-spacing: .08em; white-space: nowrap; }
@media (max-width: 860px) { .steps-track { flex-direction: column; width: auto; padding-right: max(20px, env(safe-area-inset-right, 0px)); } .step { width: 100%; min-height: 0; } }

/* Score lab */
.lab { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
.lab-panel { background: var(--card); border-radius: 28px; padding: 32px; border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
.toggle:last-child { border-bottom: 0; }
.toggle input { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .3s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked { background: var(--ink); }
.toggle input:checked::after { transform: translateX(18px); }
.toggle small { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.lab-view { background: var(--ink); color: var(--paper); border-radius: 28px; position: relative; overflow: hidden; min-height: 560px; }
.lab-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-read { position: absolute; left: 32px; right: 32px; bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lab-num { font-size: clamp(56px, 7vw, 108px); font-weight: 600; letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.lab-verdict { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: #262624; }
@media (max-width: 960px) { .lab { grid-template-columns: 1fr; } .lab-view { min-height: 420px; } }

/* Shield */
.shield { background: var(--card); border-block: 1px solid var(--line); }
.shield-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.composer { border-radius: 24px; border: 1px solid var(--line); background: var(--paper); padding: 24px; display: grid; gap: 16px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.25); }
.composer-top { display: flex; justify-content: space-between; align-items: center; }
.draft { min-height: 120px; font-size: 22px; line-height: 1.45; background: var(--card); border-radius: 14px; padding: 18px; border: 1px solid var(--line); }
.draft mark { background: color-mix(in srgb, var(--you) 22%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--ink); vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.warn { display: grid; gap: 12px; padding: 18px; border-radius: 16px; background: var(--ink); color: var(--paper); transform-origin: top left; }
.warn-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 18px; }
.warn-row b { font-size: 28px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.warn .rewrite { font-size: 17px; color: #DCDCD5; border-left: 2px solid var(--you); padding-left: 12px; }
.warn-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.warn-actions button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; font: 600 14px var(--f-display); background: var(--you); color: #fff; }
.warn-actions button.alt { background: #2A2A27; color: var(--paper); }
@media (max-width: 960px) { .shield-grid { grid-template-columns: 1fr; } }

/* Platforms */
.plats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.plat { position: relative; padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 170px; display: grid; align-content: space-between; gap: 18px; overflow: hidden; }
.plat h3 { font-size: 30px; letter-spacing: -0.03em; }
.plat .how { font-size: 15px; color: var(--muted); }
.plat::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--you); right: 24px; top: 30px; transform: scale(0); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.plat:hover::after { transform: scale(1); }
.plat .clean { position: absolute; inset: auto 0 0 0; padding: 14px 24px; background: var(--ink); color: var(--paper); font-size: 14px; transform: translateY(101%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.plat:hover .clean, .plat:focus-within .clean { transform: none; }
.plat.more { background: var(--ink); color: var(--paper); }
.plat.more .how { color: #BDBDB6; }
@media (max-width: 960px) { .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Privacy */
.privacy { background: var(--ink); color: var(--paper); }
.privacy .sec-head p { color: #CFCFC8; }
.vows { display: grid; gap: 0; }
.vow { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-block: 36px; border-top: 1px solid #2F2F2C; align-items: baseline; }
.vow h3 { font-size: clamp(30px, 3.6vw, 52px); }
.vow p { color: #BDBDB6; font-size: 18px; }
@media (max-width: 860px) { .vow { grid-template-columns: 1fr; gap: 12px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.plan { border-radius: 28px; padding: 40px; display: grid; gap: 24px; align-content: start; border: 1px solid var(--line); background: var(--card); }
.plan.paid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.price { font-size: 96px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.price small { font-size: 20px; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.plan.paid .price small { color: #A9A9A2; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 18px; }
.plan li { display: flex; gap: 12px; align-items: baseline; }
.plan li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-2px); opacity: .5; }
.plan.paid li::before { background: var(--you); opacity: 1; }
.plan.paid .btn { background: var(--you); color: #fff; }
.plan.paid .btn:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 980px; }
.faq details { border-top: 1px solid var(--line); padding-block: 24px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: #3A3A36; max-width: 720px; }

/* Finale */
.finale { position: relative; min-height: 720px; display: grid; place-items: center; text-align: center; overflow: hidden; background: var(--paper); }
.finale canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.finale .wrap { position: relative; display: grid; gap: 32px; justify-items: center; pointer-events: none; }
.finale .wrap a { pointer-events: auto; }
.finale h2 { font-size: clamp(56px, 9vw, 150px); max-width: 12ch; background: color-mix(in srgb, var(--paper) 70%, transparent); }
footer { border-top: 1px solid var(--line); padding-block: 40px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 15px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }


/* Problem + what we do */
.problem-lines { display: grid; gap: 6px; font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.sec-head .problem-lines p { color: var(--muted); font-size: clamp(26px, 3vw, 40px); max-width: none; }
.sec-head .problem-lines .you { color: var(--you); }
.problem .sec-head { margin-bottom: 0; align-items: center; }
.does { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.does > div { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 12px; align-content: start; }
.does h3 { font-size: 28px; letter-spacing: -0.03em; line-height: 1.05; }
.does p { color: #3A3A36; font-size: 17px; }
.does .mono { color: var(--you); }
@media (max-width: 960px) { .does { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .does { grid-template-columns: 1fr; } }

/* Intro */
#fx-intro { background: var(--ink); color: var(--paper); }
#fx-intro .in { display: grid; gap: 10px; justify-items: center; }
#fx-intro .n { font-size: clamp(44px, 8vw, 120px); font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
#fx-intro .mono { color: #A9A9A2; }
