/* Homepage styles, taken unchanged from 01-live-v05/index.html */
@font-face { font-family: "PP Formula"; src: url("fonts/PPFormula-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg-app: #111111; --bg-inset: #0C0C0C; --bg-panel: #1A1A1A; --bg-raised: #202020;
  --hairline: #262626; --hairline-loud: #343434;
  --text-1: #F2F2F2; --text-2: #A1A1AA; --text-3: #8A8A93;
  --slow: #E0C25E; --slow-bg: #393523;
  --glass-stroke: rgba(255,255,255,.15); --glass-rim: rgba(255,255,255,.38); --glass-tint: rgba(12,12,12,.42);
  --sans: "PP Formula", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(.33,1,.68,1);
  --gutter: max(24px, calc((100vw - 1230px) / 2));
  /* How long the hero stays pinned. Tune here. */
  --travel: 200vh;
}
* { box-sizing: border-box; }
html { background: var(--bg-app); }
body { margin: 0; background: var(--bg-app); color: var(--text-1); font-family: var(--sans); font-size: 18px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 88px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; transition: background .24s var(--ease-out), border-color .24s var(--ease-out), height .24s var(--ease-out); border-bottom: 1px solid transparent; }
.nav.is-stuck { height: 64px; background: rgba(12,12,12,.55); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); border-bottom-color: rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 22px; text-decoration: none; font-size: 17px; letter-spacing: .42em; }
.brand svg { width: 24px; height: 24px; }
.nav nav { display: flex; align-items: center; gap: 32px; }
.nav nav a { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); text-decoration: none; }
.nav nav a:hover { color: var(--text-1); }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 24px; border: 0; border-radius: 4.8px; background: var(--text-1); color: var(--bg-app); font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background .12s; }
.btn:hover { background: #fff; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--text-1); outline-offset: 3px; }
.btn svg { width: 12px; height: 12px; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 11px; }

/* ---------- Stage: default = static (mobile, reduced motion) ---------- */
.scrub { position: relative; }
.stage { position: relative; }
.bg { position: absolute; inset: 0 0 auto 0; height: 66svh; overflow: hidden; }
.bg img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; display: block; }
.shade { position: absolute; inset: 0 0 auto 0; height: 66svh; background: linear-gradient(180deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,0) 24%, rgba(17,17,17,0) 62%, #111 100%); }
.dim, .fade, .hint { display: none; }
.wrap { position: relative; padding: 0 var(--gutter); }

.heroText { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 56px; max-width: 600px; }
.heroText h1 { margin: 14px 0 18px; font-weight: 400; font-size: clamp(40px, 3.9vw, 58px); line-height: 1.02; letter-spacing: -.01em; }
.heroText p.sub { margin: 0 0 28px; color: var(--text-2); max-width: 520px; }
.trust { margin-top: 14px; font-size: 14px; color: var(--text-3); }

.s2head { padding: 72px 0 32px; max-width: 480px; }
.s2head h2 { margin: 18px 0 20px; font-weight: 400; font-size: 40px; line-height: 1.05; }
.s2head p { margin: 0 0 22px; color: var(--text-2); }
.tlink { font-size: 15px; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--hairline-loud); }
.tlink:hover { border-bottom-color: var(--text-1); }

.card { --solid: 1; position: relative; border-radius: 12px; padding: 28px 30px 30px; margin-bottom: 72px; border: 1px solid color-mix(in srgb, var(--hairline) calc(var(--solid) * 100%), var(--glass-stroke)); background: var(--glass-tint); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 24px 48px -16px rgba(0,0,0, calc(.7 * (1 - var(--solid)))); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bg-panel); opacity: var(--solid); }
.card::after { content: ""; position: absolute; inset: 0 12px auto 12px; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-rim), transparent); opacity: calc(.6 * (1 - var(--solid))); }
.card > * { position: relative; }
.meta { padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.field { margin-top: 20px; height: 56px; padding: 0 10px 0 16px; display: flex; align-items: center; gap: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(12,12,12,.5); }
.field .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; font-size: 19px; }
.ph { color: var(--text-3); display: none; }
.caret { display: none; width: 2px; height: 22px; margin-left: 2px; background: var(--text-1); vertical-align: -4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.send { flex: none; width: 34px; height: 34px; border-radius: 6px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--text-2); display: grid; place-items: center; transition: background .2s, color .2s, transform .2s var(--ease-out); }
.send.on { background: var(--text-1); color: var(--bg-app); border-color: var(--text-1); }
.send svg { width: 14px; height: 14px; }
.fold { overflow: hidden; }
.chips { display: none; }
.chip { margin-top: 10px; height: 42px; padding: 0 16px; display: flex; align-items: center; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: rgba(12,12,12,.35); font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); transition: border-color .2s, color .2s, background .2s; }
.chip.on { border-color: rgba(255,255,255,.5); color: var(--text-1); background: rgba(255,255,255,.08); }
.answer .in { padding-top: 26px; }
.lbl { display: flex; align-items: center; gap: 12px; }
.think { display: inline-flex; gap: 3px; opacity: 0; transition: opacity .2s; }
.think i { width: 6px; height: 6px; background: var(--text-1); animation: px 0.9s steps(1) infinite; }
.think i:nth-child(2) { animation-delay: .15s; } .think i:nth-child(3) { animation-delay: .3s; } .think i:nth-child(4) { animation-delay: .45s; }
@keyframes px { 0%, 100% { opacity: .15; } 30% { opacity: 1; } 60% { opacity: .45; } }
.ans { margin: 12px 0 0; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.32; }
.ans .w { display: inline; }
.ans .hot { color: var(--slow); }
.ex { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ---------- Scrubbed mode (desktop, motion allowed) ---------- */
.scrub-on .scrub { height: calc(100vh + var(--travel)); }
.scrub-on .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scrub-on .bg, .scrub-on .shade { height: 100%; }
.scrub-on .shade { background: linear-gradient(180deg, rgba(17,17,17,.6) 0%, rgba(17,17,17,0) 20%, rgba(17,17,17,0) 50%, rgba(17,17,17,.8) 84%, #111 100%); }
.scrub-on .rest { margin-top: -26vh; position: relative; }
.scrub-on .bg img { will-change: transform; }
.scrub-on .dim { display: block; position: absolute; inset: 0; background: #0b0b0b; opacity: 0; }
.scrub-on .fade { display: block; position: absolute; inset: 0; background: var(--bg-app); opacity: 0; }
.scrub-on .wrap { position: absolute; inset: 0; }
.scrub-on .heroText { position: absolute; left: var(--gutter); bottom: 7vh; min-height: 0; padding: 0; width: min(600px, 44vw); }
.scrub-on .s2head { position: absolute; left: var(--gutter); top: 19vh; padding: 0; width: min(480px, 40vw); opacity: 0; }
.scrub-on .card { position: absolute; right: var(--gutter); top: 17vh; width: min(620px, 46vw); margin: 0; will-change: transform; }
.scrub-on .ph, .scrub-on .caret { display: inline-block; }
.scrub-on .chips { display: block; }
.scrub-on .hint { display: flex; position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 10px; }
.hint i { width: 6px; height: 6px; background: var(--text-1); animation: drop 1.6s var(--ease-out) infinite; }
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

/* ---------- Rest of page ---------- */
.rest { padding: 0 var(--gutter); }
.corner { position: relative; height: clamp(440px, 42vw, 560px); border-radius: 12px; border: 1px solid var(--hairline); background: var(--bg-inset); overflow: hidden; }
.corner canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ccopy { position: absolute; left: 44px; bottom: 44px; max-width: 420px; }
#cnum { margin-top: 14px; font-size: clamp(52px, 6vw, 88px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--slow); min-height: 1em; opacity: 0; transition: opacity .5s var(--ease-out), color .6s var(--ease-out); white-space: nowrap; }
#cnum.pb { color: #35C96B; }
#ccap { margin: 14px 0 0; color: var(--text-2); min-height: 1.45em; opacity: 0; transition: opacity .5s var(--ease-out); }
.cagain { position: absolute; right: 24px; bottom: 22px; background: none; border: 1px solid var(--hairline-loud); border-radius: 4px; padding: 8px 12px; color: var(--text-2); cursor: pointer; opacity: 0; transition: opacity .5s, border-color .2s; }
.cagain:hover { border-color: var(--text-2); }
.slot { height: 440px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--bg-inset); display: grid; place-items: center; position: relative; overflow: hidden; }
.slot span { position: relative; }
.proof { display: flex; gap: 72px; padding: 40px 0 96px; margin-top: 0; border-top: 1px solid var(--hairline); }
.stat b { display: block; font-weight: 400; font-size: 28px; }
.stat span { font-size: 15px; color: var(--text-2); }

.pxf { position: absolute; pointer-events: none; display: block; }
.sec { position: relative; overflow: hidden; padding: 132px var(--gutter); border-top: 1px solid var(--hairline); }
.sec > *:not(.pxf) { position: relative; }
.kick { padding-top: 22px; border-top: 1px solid var(--hairline); }
h2 { margin: 18px 0 0; font-weight: 400; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.06; }
h3 { margin: 0; font-weight: 400; font-size: 24px; line-height: 1.15; }
.lead { color: var(--text-2); max-width: 720px; margin: 44px 0 0; }
.ph2 { color: var(--text-3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { border-top: 1px solid var(--hairline); padding-top: 18px; }
.step h3 { margin: 12px 0 8px; }
.step p { margin: 0; color: var(--text-2); font-size: 16px; }
.rows > div { padding: 18px 0; border-top: 1px solid var(--hairline); display: flex; gap: 28px; }
.rows > div > b { font-weight: 400; flex: none; width: 128px; }
.btn.ghost { background: transparent; color: var(--text-1); border: 1px solid var(--hairline-loud); }
.btn.ghost:hover { background: transparent; border-color: var(--text-1); }

/* Fact Engine */
#fact-engine .pxf { top: 0; right: 0; width: min(720px, 56vw); height: 520px; }
#fact-engine .head { max-width: 820px; }
.fev { position: relative; margin: 56px auto 0; max-width: 1000px; aspect-ratio: 2080 / 1920; }
.fev img, .fev iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.fev iframe { opacity: 0; transition: opacity .5s; background: var(--bg-app); }
.fev iframe.on { opacity: 1; }
#fact-engine .three { margin-top: 64px; }
#fact-engine .two { margin-top: 72px; }
.log div { align-items: baseline; font-size: 16px; color: var(--text-2); }
.fs { margin-top: 72px; padding: 36px 0; border-block: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.fs h3 { margin: 10px 0 8px; }
.fs p { margin: 0; color: var(--text-2); }
.inv { margin: 56px 0 0; font-size: 15px; color: var(--text-3); }

/* Recorder */
#recorder .three { margin-top: 64px; }
.first { margin: 56px 0 0; }
.reads { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.panel { border: 1px solid var(--hairline-loud); background: var(--bg-panel); border-radius: 12px; padding: 26px 24px; }
.panel p { margin: 16px 0 0; }
.warn { border-left: 2px solid var(--slow); padding: 6px 0 6px 24px; }
.warn p { margin: 8px 0 0; color: var(--text-2); }
.warn small { display: block; margin-top: 10px; font-size: 14px; color: var(--text-3); }
.cta { margin-top: 64px; }

/* Reference laps */
.ref { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: start; }
.ref .lead { margin-top: 32px; }
.ref .tlink { display: inline-block; margin-top: 28px; }
.fsd { padding: 32px; }
.fsd h3 { font-size: clamp(28px, 2.8vw, 40px); margin-top: 16px; }
.fsd > p { color: var(--text-2); margin: 20px 0 28px; }
.lap { border-top: 1px solid var(--hairline); padding-top: 22px; }
.lap b { display: block; font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--text-3); margin-top: 6px; }

/* Free and close */
#free .pxf { right: 0; bottom: 0; width: min(820px, 60vw); height: 560px; }
#free .two { margin-top: 56px; gap: 0 64px; }
#free .rows > div:last-child { border-bottom: 1px solid var(--hairline); }
.paid { margin-top: 44px; font-size: 15px; color: var(--text-2); }
.paid a { margin-left: 10px; }

/* Questions */
#questions { padding-bottom: 440px; }
#questions .pxf { left: 0; right: 0; bottom: 0; width: 100%; height: 340px; }
.faq > div { padding: 26px 0; border-top: 1px solid var(--hairline); }
.faq h3 { font-size: 19px; }
.faq p { margin: 8px 0 0; color: var(--text-2); }

footer { position: relative; border-top: 1px solid var(--hairline); background: var(--bg-inset); padding: 44px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer svg { width: 18px; height: 18px; }
footer nav { display: flex; gap: 32px; flex-wrap: wrap; }
footer a, footer span { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); text-decoration: none; }

/* Scroll reveal */
.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.rv-on .rv.in { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .nav nav a { display: none; }
  .brand { font-size: 14px; gap: 14px; letter-spacing: .34em; }
  .proof { gap: 28px; flex-wrap: wrap; }
  .slot { height: 300px; }
  .corner { height: 520px; }
  .ccopy { left: 22px; right: 22px; top: 24px; bottom: auto; }
  #cnum { font-size: 56px; }
  .card { padding: 22px 20px 24px; }
  .field .txt { font-size: 16px; }
  .slot span { text-align: center; padding: 0 24px; line-height: 2; }
  .sec { padding-block: 88px; }
  .two, .three, .reads, .ref { grid-template-columns: 1fr; gap: 28px; }
  .fs { flex-direction: column; align-items: flex-start; }
  #fact-engine .pxf { width: 60vw; height: 100px; opacity: .6; }
  #free .pxf { width: 100vw; height: 300px; opacity: .55; }
  #questions { padding-bottom: 300px; }
  #questions .pxf { height: 240px; }
  .rows > div { flex-direction: column; gap: 4px; }
}

/* =====================================================================
   Subpages. Everything above is the homepage (01-live-v05), unchanged.
   ===================================================================== */
:root { --pb: #35C96B; --pb-bg: #23392B; --best: #8B5CF6; --best-bg: #2B1F4B; }
.nav nav a.cur, footer a.cur { color: var(--text-1); }
.nav nav a.is-user { color: var(--text-1); display: inline-flex; align-items: center; gap: 10px; }
.ava { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-raised); border: 1px solid var(--hairline-loud); flex: none; object-fit: cover; display: block; }
a.btn { text-decoration: none; }
.nav nav a.btn { color: var(--bg-app); }
.nav nav a.btn:hover { color: var(--bg-app); }
.page { padding-top: 88px; }
.top { position: relative; padding: 84px var(--gutter) 132px; }
.top.tight { padding-top: 64px; }
.top h1, .h1 { margin: 14px 0 18px; font-weight: 400; font-size: clamp(40px, 3.9vw, 56px); line-height: 1.02; letter-spacing: -.01em; }
.top .sub { margin: 0; color: var(--text-2); max-width: 560px; }
.top .sub.wide { max-width: 620px; }
.headrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; height: 44px; margin-bottom: 20px; text-decoration: none; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); }
.back:hover { color: var(--text-1); }
.meta14 { font-size: 14px; color: var(--text-3); }
.sec .lead.near { margin-top: 18px; max-width: 620px; }
.sec.closer, .top.closer { padding-bottom: 440px; }
.closer .pxf { left: 0; right: 0; bottom: 0; width: 100%; height: 340px; }
.closer .cta { margin-top: 64px; }
.closer .cta.near { margin-top: 44px; }
.stub { min-height: 62vh; }

/* Plan cards: one source for the homepage Free section and Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.plan { border: 1px solid var(--hairline-loud); background: var(--bg-panel); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 377px; }
.plan .price { display: flex; align-items: baseline; gap: 14px; margin-top: 10px; font-size: 44px; line-height: 1.1; }
.plan .unl { margin-top: 26px; }
.plan .unl > div { padding: 15px 0 14px; border-top: 1px solid var(--hairline); font-size: 20px; }
.plan .limit { border-top: 1px solid var(--hairline); padding-top: 15px; margin-top: 44px; }
.qpx { display: grid; grid-template-columns: repeat(20, 12px); gap: 3px; height: 27px; align-content: end; }
.qpx i { width: 12px; height: 12px; background: var(--text-1); }
.qpx i.g { background: var(--pb); }
.qpx i.v { background: var(--best); }
.qpx.anim i { visibility: hidden; }
.qpx.anim i.on { visibility: visible; }
.plan .ql { margin-top: 12px; font-size: 16px; color: var(--text-2); }
.buys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 22px; }
.buy .iv { font-size: 15px; color: var(--text-2); margin-bottom: 16px; }
.buy .after { margin-top: 14px; font-size: 14px; color: var(--text-3); }
.notes { margin-top: 56px; font-size: 15px; color: var(--text-2); line-height: 1.6; }
.notes div { max-width: 820px; }
.tabs { display: inline-flex; padding: 3px; border: 1px solid var(--hairline-loud); border-radius: 4.8px; }
.tabs button { height: 42px; padding: 0 18px; border: 0; border-radius: 3px; background: transparent; color: var(--text-2); font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }
.tabs button.on { background: var(--bg-raised); color: var(--text-1); }
.rows.wide { margin-top: 64px; }
.rows.wide > div > b { width: 392px; }
.rows.wide > div > span { color: var(--text-2); }
.rows.wide > div:last-child { border-bottom: 1px solid var(--hairline); }

/* Filter chips */
.fbar { display: flex; gap: 8px; flex-wrap: wrap; }
.fbar button { height: 44px; padding: 0 16px; border: 1px solid var(--hairline-loud); border-radius: 4.8px; background: transparent; color: var(--text-2); font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; transition: border-color .12s, color .12s; }
.fbar button:hover { color: var(--text-1); }
.fbar button.on { border-color: var(--text-1); color: var(--text-1); }
[hidden] { display: none !important; }

/* Changelog */
.statbar { display: flex; flex-wrap: wrap; gap: 28px 64px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--hairline); }
.statbar .stat b { font-size: 32px; }
.statbar .stat b.counting { font-variant-numeric: tabular-nums; }
.hbwrap { margin-top: 64px; }
.hbhead { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hbhead .mono.t2 { color: var(--text-2); }
.legend { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 10px; }
.legend i { width: 12px; height: 12px; }
.plot { position: relative; margin-top: 20px; padding-top: 24px; cursor: pointer; }
.plot canvas { display: block; width: 100%; }
#hbpeak { position: absolute; top: 12px; transform: translateX(-50%); font-size: 14px; transition: opacity .1s; }
.axis { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.hbnote { margin-top: 20px; font-size: 14px; color: var(--text-3); }
.relhead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.rels { margin-top: 40px; }
.rel { display: grid; grid-template-columns: 392px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--hairline); }
.rel .when { display: flex; flex-direction: column; gap: 6px; }
.rel .when span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.rel .when .now { width: 6px; height: 6px; background: var(--text-1); }
.rel h3 { margin: 8px 0 6px; }
.rel p { margin: 0; color: var(--text-2); }
.rel .ph2, .ph2 { color: var(--text-3); }
.more { margin-top: 44px; font-size: 15px; color: var(--text-2); }
.more a { margin-left: 10px; }
.empty { padding: 28px 0; border-block: 1px solid var(--hairline); color: var(--text-2); }

/* Boards: crew, drivers, figures, the game */
.board { margin-top: 64px; border: 1px solid var(--hairline-loud); background: var(--bg-panel); border-radius: 12px; overflow: hidden; }
.bh { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; }
.bh .hi { color: var(--text-1); }
.crew { list-style: none; margin: 0; padding: 0; }
.crew > li { border-top: 1px solid var(--hairline); }
.crew > li:not(.open), .crew > li > a { display: grid; grid-template-columns: 72px 1fr auto; gap: 24px; align-items: center; padding: 15px 24px; min-height: 44px; }
.crew a { text-decoration: none; transition: background .12s; }
.crew a:hover { background: var(--bg-inset); }
.crew .seat { font-size: 18px; }
.crew .st { color: var(--text-2); }
.crew .live { display: inline-flex; align-items: center; gap: 8px; color: var(--text-1); }
.dot { width: 6px; height: 6px; background: var(--text-1); }
.cursor { width: 8px; height: 8px; background: var(--text-1); animation: blink 1.2s steps(1) infinite; }
.crew.building > li:not(.on) { visibility: hidden; }
.glyph { width: 24px; height: 24px; display: block; margin: 8px 0 18px; }
.rolelist { margin-top: 64px; }
.rolelist a { display: grid; grid-template-columns: 1fr 180px 180px auto; gap: 28px; align-items: center; padding: 19px 0 18px; border-top: 1px solid var(--hairline); text-decoration: none; transition: background .12s; }
.rolelist a:last-child { border-bottom: 1px solid var(--hairline); }
.rolelist a:hover { background: var(--bg-inset); }
.rolelist .t2 { color: var(--text-2); }
.drivers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); }
.drivers > div { padding: 22px 24px 24px; border-left: 1px solid var(--hairline); }
.drivers > div:first-child { border-left: 0; }
.strip { display: flex; gap: 2px; margin: 16px 0; }
.strip i { width: 8px; height: 8px; background: var(--text-2); }
.strip i.sp { background: transparent !important; }
.drivers .on-track { color: var(--text-1); }
.drivers.anim .strip i:not(.on) { background: var(--hairline-loud); }
.drivers.anim > div:not(.done) .on-track { visibility: hidden; }
.mailnote { margin: 44px 0 0; color: var(--text-2); }
.mailline { margin-top: 6px; color: var(--text-2); }
.mail { color: var(--text-1); text-decoration: none; border-bottom: 1px solid var(--text-1); padding-bottom: 3px; margin-right: 10px; }
.cursor, .think i { flex: none; }

/* Role pages */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.facts > div { border-top: 1px solid var(--hairline); padding-top: 18px; }
.facts b { display: block; font-weight: 400; margin-top: 10px; }
.sb { padding: 24px; border-top: 1px solid var(--hairline); cursor: pointer; }
.sb-row { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.sb-strip { position: relative; padding: 12px 0 6px; }
.sb-track, .sb-caps { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.sb-track li { flex: var(--d) 1 0; min-width: 0; height: 108px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--hairline-loud); background: var(--bg-inset); overflow: hidden; white-space: nowrap; }
.sb-track li.end { flex: 0 0 72px; }
.sb-track li.on .mono:last-child { color: var(--text-1); }
.sb-head { position: absolute; top: 0; height: 126px; left: 0; width: 1px; background: var(--text-1); }
.sb-head::before { content: ""; position: absolute; top: 0; left: -3px; width: 7px; height: 7px; background: var(--text-1); }
.sb-out { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 6px; }
.sb-ar { height: 108px; padding: 8px; border: 1px solid var(--hairline-loud); }
.sb-ar.wide { width: 192px; } .sb-ar.tall { width: 61px; }
.sb-caps { margin-top: 16px; }
.sb-caps li { flex: 1 1 0; padding: 0 10px; font-size: 15px; color: var(--text-2); }
.nrows { margin-top: 64px; }
.nrows > div { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 19px 0 18px; border-top: 1px solid var(--hairline); }
.nrows > div:last-child { border-bottom: 1px solid var(--hairline); }
.nrows .mono { padding-top: 6px; }
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sechead > div:first-child { flex: 1; min-width: 280px; }

/* 404 */
.dnf { display: grid; grid-template-columns: 520px 1fr; gap: 64px; align-items: start; }
.pxtitle { display: block; width: 342px; max-width: 100%; height: auto; margin: 22px 0 32px; }
.dnf .cta { margin-top: 44px; }
.backlinks { display: flex; gap: 28px; margin-top: 36px; }
.dnf .board { margin-top: 0; }
.gamebody { padding: 24px; border-top: 1px solid var(--hairline); }
#snake { display: block; width: 100%; height: 320px; background: var(--bg-inset); border: 1px solid var(--hairline-loud); }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.pad { display: none; gap: 8px; }
.pad button { width: 44px; height: 44px; border: 1px solid var(--hairline-loud); border-radius: 4.8px; background: transparent; color: var(--text-1); font-size: 16px; }
.ontrack { display: flex; align-items: center; gap: 28px; padding: 14px 24px 18px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }

/* Long text: Terms, Privacy, posts */
.doc { display: grid; grid-template-columns: 300px minmax(0, 720px); gap: 105px; align-items: start; }
.sec.docsec { padding-top: 64px; overflow: visible; }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.toc a { font-size: 15px; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text-1); }
.toc .v { font-size: 15px; color: var(--text-2); margin-bottom: 12px; }
.txt > :first-child { margin-top: 0; }
.txt h2 { margin: 56px 0 0; font-size: 24px; line-height: 1.2; scroll-margin-top: 96px; }
.txt h3 { margin: 28px 0 0; font-size: 18px; line-height: 1.45; }
.txt p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.txt p.intro { font-size: 18px; line-height: 1.45; color: var(--text-1); }
.txt ul { list-style: none; margin: 0; padding: 0; }
.txt li { position: relative; margin-top: 10px; padding-left: 19px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.txt li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; background: var(--text-3); }
.postend { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 64px 132px; }

/* Blog */
.posts { margin-top: 64px; }
.posts a { display: grid; grid-template-columns: 180px 1fr 180px auto; gap: 28px; align-items: center; padding: 19px 0 18px; border-top: 1px solid var(--hairline); text-decoration: none; transition: background .12s; }
.posts a:hover { background: var(--bg-inset); }
.posts a.last, .posts a:last-of-type { border-bottom: 1px solid var(--hairline); }
.posts .t2 { color: var(--text-2); }

/* Forms (posted to the RACEMAKE API by /assets/site/forms.js) */
.rmform { max-width: 620px; margin-top: 44px; }
.rmform form { display: grid; gap: 20px; position: relative; }
.rmform .ff { display: grid; gap: 8px; }
.rmform .ff.two { grid-template-columns: 1fr 1fr; gap: 20px; }
.rmform .ff.two label { display: grid; gap: 8px; }
.rmform label .mono { color: var(--text-2); }
.rmform input[type=text], .rmform input[type=email], .rmform input[type=url], .rmform textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1px solid var(--hairline-loud); border-radius: 4.8px; background: var(--bg-inset); color: var(--text-1); font: inherit; font-size: 16px; line-height: 1.4; }
.rmform textarea { resize: vertical; min-height: 112px; }
.rmform input::placeholder { color: var(--text-3); }
.rmform input:hover, .rmform textarea:hover { border-color: var(--text-3); }
.rmform input:focus-visible, .rmform textarea:focus-visible { outline: 2px solid var(--text-1); outline-offset: 2px; border-color: var(--text-1); }
.rmform .fsend { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.rmform .fsend .t2 { color: var(--text-2); font-size: 14px; }
.rmform .btn:disabled { opacity: .5; cursor: default; }
.rmform .w-form-done, .rmform .w-form-fail { display: none; padding: 18px 20px; border: 1px solid var(--hairline-loud); border-radius: 4.8px; background: var(--bg-inset); color: var(--text-2); }
.rmform .w-form-done { border-color: var(--pb); }
.rmform .w-form-done b { color: var(--text-1); font-weight: 400; }
.rmform .w-form-fail { margin-top: 16px; border-color: var(--slow); }
.rmform .w-form-done:focus, .rmform .w-form-fail:focus { outline: none; }
.rmform .protonote { display: block; margin-top: 10px; color: var(--text-3); }
.closer .rmform + .mailline { margin-top: 28px; }

/* Prototype switch */
.protobar { position: fixed; right: 16px; bottom: 16px; z-index: 60; height: 32px; padding: 0 12px; border: 1px solid var(--hairline-loud); border-radius: 4.8px; background: rgba(12,12,12,.8); color: var(--text-2); font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.protobar:hover { color: var(--text-1); border-color: var(--text-2); }

@media (max-width: 899px) {
  .plans, .buys, .facts, .dnf, .doc { grid-template-columns: 1fr; gap: 28px; }
  .rmform .ff.two { grid-template-columns: 1fr; }
  .buys { margin-top: 28px; }
  .plan { min-height: 0; }
  .qpx { grid-template-columns: repeat(20, 10px); gap: 2px; height: 22px; }
  .qpx i { width: 10px; height: 10px; }
  .top { padding-block: 56px 88px; }
  .sec.closer, .top.closer { padding-bottom: 300px; }
  .closer .pxf { height: 240px; }
  .rows.wide > div > b { width: auto; }
  .rel { grid-template-columns: 1fr; gap: 12px; }
  .crew > li:not(.open), .crew > li > a { grid-template-columns: 28px 1fr auto; gap: 12px; padding: 14px 16px; }
  .crew .seat { font-size: 16px; }
  .drivers { grid-template-columns: 1fr 1fr; }
  .drivers > div:nth-child(odd) { border-left: 0; }
  .drivers > div:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .rolelist a, .posts a { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .rolelist a > :nth-child(3), .posts a > :nth-child(3) { display: none; }
  .posts a > :first-child { grid-column: 1 / -1; }
  .sb-row { grid-template-columns: 1fr; }
  .sb-track li, .sb-track li.end { flex: 1 1 0; height: 88px; padding: 6px 4px; }
  .sb-caps { display: none; }
  .nrows > div { grid-template-columns: 40px 1fr; gap: 12px; }
  .toc { position: static; }
  .pad { display: flex; }
  .statbar { gap: 24px 40px; }
}

/* Homepage hero: x-ray reveal and reticle (locked assets of the live site) */
.xr { position: relative; width: 100%; height: 100%; }
.scrub-on .xr { will-change: transform; }
.bg .xr img { position: absolute; inset: 0; }
.xr .xr-x { opacity: 0; transition: opacity .2s; -webkit-mask-image: radial-gradient(circle var(--xr-r, 0px) at var(--xr-x, 50%) var(--xr-y, 50%), #000 40%, transparent 100%); mask-image: radial-gradient(circle var(--xr-r, 0px) at var(--xr-x, 50%) var(--xr-y, 50%), #000 40%, transparent 100%); }
.xr.on .xr-x { opacity: 1; }
.xr-map { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.xr-map ellipse, .xr-map polygon { fill: #35C96B; fill-opacity: .22; stroke: #35C96B; stroke-width: 2; }
.xr-map text { fill: #F2F2F2; font: 22px Arial, sans-serif; text-anchor: middle; paint-order: stroke; stroke: #111; stroke-width: 5px; }
.xr-reticle { position: absolute; z-index: 5; left: 0; top: 0; width: 400px; height: 400px; pointer-events: none; opacity: 0; transform: rotate(10deg) scale(.3); transition: transform .4s ease, opacity .4s ease; will-change: transform; }
.xr-reticle.on { opacity: 1; transform: none; transition: transform .3s ease, opacity .5s ease; }
.xr-reticle.on.tight { transform: scale(.84); }
.xr-desc { position: absolute; z-index: 5; left: 0; top: 0; color: #00FF00; font: 10px/13px Arial, sans-serif; text-transform: uppercase; pointer-events: none; opacity: 0; will-change: transform; white-space: nowrap; }
.xr-desc.on { opacity: 1; transition: opacity .2s; }
.stage.xr-live { cursor: none; }
.stage.xr-live a, .stage.xr-live button { cursor: pointer; }
.stage.xr-live .card { cursor: auto; }
@media (max-width: 899px), (hover: none) { .xr-reticle, .xr-desc { display: none; } }
