/* StatMind web. Tokens mirror mobile/styles/Theme.js so the site reads as the app, on a wider screen. */
:root {
  --bg: #040615;
  --card: #0E1020;
  --card-hi: #161931;
  --sheet: #070919;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.13);
  --ink: #ffffff;
  --body: rgba(255, 255, 255, 0.86);
  --mid: rgba(255, 255, 255, 0.70);
  --low: rgba(255, 255, 255, 0.50);
  --faint: rgba(255, 255, 255, 0.30);
  --accent: #5E6EFF;
  --accent-soft: #8E99FF;
  --accent-tint: rgba(94, 110, 255, 0.14);
  --g-s: #FFDF27;
  --g-a: #34C759;
  --g-b: #4DA3FF;
  --g-c: #FF9F0A;
  --win: #34C759;
  --warn: #FFC53D;
  --loss: #FF5A5F;
  --r-card: 14px;
  --r-tile: 10px;
  --gutter: 20px;
  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); /* room for the tab bar on phones */
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-soft); text-underline-offset: 3px; }
a:hover { color: #B4BBFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-tile); font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- top bar: the app's 44pt bar, wordmark left -------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(4, 6, 21, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 20px; width: auto; }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a.plain { display: none; color: var(--low); text-decoration: none; font-weight: 700; font-size: 13.5px; transition: color .2s ease-out; }
.top nav a.plain:hover, .top nav a.plain[aria-current="page"] { color: var(--ink); }

/* ---- tab bar: the app's bottom tabs, phones only -------------------------------------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(7, 9, 25, 0.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--low); text-decoration: none; font-weight: 700; font-size: 10.5px; letter-spacing: .2px;
  padding: 4px 0; transition: color .2s ease-out;
}
.tabs a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"], .tabs a:hover { color: var(--ink); }

/* ---- controls: squared, white primary, outlined secondary ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: var(--r-tile);
  background: var(--ink); color: #05071A; border: 1px solid var(--ink);
  font-family: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease-out, background-color .2s ease-out, border-color .2s ease-out;
}
.btn:hover { color: #05071A; background: #E6E8FF; border-color: #E6E8FF; }
.btn:active { transform: scale(0.98); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--card-hi); color: var(--ink); border-color: var(--line-strong); }
.chev { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.note { margin-top: 12px; font-size: 13px; color: var(--low); max-width: 36em; }

/* ---- type ------------------------------------------------------------------------------- */
.display { font-weight: 900; text-transform: uppercase; letter-spacing: .2px; line-height: 1.02; font-size: clamp(34px, 5.4vw, 58px); }
.title { font-weight: 900; text-transform: uppercase; letter-spacing: .6px; line-height: 1.08; font-size: 26px; }
.eyebrow { font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--low); }
.lede { font-size: 16px; line-height: 1.55; color: var(--mid); max-width: 34em; margin-top: 16px; }
.sub { color: var(--mid); max-width: 36em; margin-top: 10px; }
.h3 { font-weight: 800; font-size: 17px; line-height: 1.3; }
.muted { color: var(--low); }

/* ---- sections --------------------------------------------------------------------------- */
.sec { padding: 44px 0; border-top: 1px solid var(--line); }
.sec.first { border-top: 0; padding-top: 28px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head .eyebrow { margin-bottom: 8px; }
.sec-head .side { color: var(--low); font-size: 13px; font-weight: 500; white-space: nowrap; padding-bottom: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.split > * { min-width: 0; }

/* a row you can press: label, muted chevron */
.go {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700;
  transition: color .2s ease-out;
}
.go:hover { color: var(--accent-soft); }
.go small { display: block; color: var(--low); font-weight: 500; font-size: 13px; margin-top: 2px; }
.go:last-child { border-bottom: 1px solid var(--line); }
.go-list { margin-top: 18px; }
.textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--low); font-weight: 700; font-size: 13.5px; text-decoration: none; margin-top: 16px; transition: color .2s ease-out; }
.textlink:hover { color: var(--ink); }

/* ---- the one card ----------------------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }

/* ---- player badge ----------------------------------------------------------------------- */
.badge { flex: none; width: 52px; height: 52px; }
.badge svg { width: 100%; height: 100%; }

/* ---- grade mark: S is gold foil with two sparkles, A+ a soft green sheen, the rest flat -- */
.grade { position: relative; display: inline-block; font-weight: 900; line-height: 1.12; font-size: 26px; letter-spacing: -.5px; }
.grade.g-s { color: var(--g-s); }
.grade.g-a { color: var(--g-a); }
.grade.g-b { color: var(--g-b); }
.grade.g-c { color: var(--g-c); }
.grade.g-x { color: var(--loss); }
.grade .foil {
  background: linear-gradient(135deg, #FFF7C2 0%, #FFE45C 34%, #F6B800 62%, #FFDD3A 100%);
  background-size: 220% 220%; background-position: 0% 0%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.grade .mint {
  background: linear-gradient(135deg, #B4F4C6 0%, #34C759 50%, #2AAE4C 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.grade .spark { position: absolute; width: .34em; height: .34em; fill: #FFF8D8; opacity: .85; pointer-events: none; }
.grade .spark.a { top: -.02em; right: -.3em; }
.grade .spark.b { bottom: .12em; left: -.3em; width: .24em; height: .24em; opacity: .7; }

/* ---- pick row (mobile/components/PickRow.jsx) ------------------------------------------ */
.picks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pick {
  --team: #5E6EFF;
  position: relative; display: flex; align-items: center; gap: 12px; overflow: hidden;
  min-height: 82px; padding: 13px 12px 13px 13px;
  border-radius: var(--r-card); border: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--team) 30%, #0E1020) 0%, #0E1020 60%);
  background-color: var(--card);
  color: var(--ink); text-decoration: none;
  transition: transform .2s ease-out, border-color .2s ease-out;
}
a.pick:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
a.pick:active { transform: scale(0.99); }
.pick.top-grade { border-color: rgba(255, 223, 39, 0.26); }
.pick .wm { position: absolute; right: 58px; top: -30px; font-weight: 900; font-size: 104px; line-height: 1.2; letter-spacing: -4px; color: rgba(255, 255, 255, 0.05); pointer-events: none; user-select: none; }
.pick .mid { position: relative; flex: 1; min-width: 0; }
.pick .name { font-weight: 700; font-size: 17px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .meta { color: var(--low); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .bet { font-weight: 800; font-size: 12.5px; letter-spacing: .4px; text-transform: uppercase; margin-top: 4px; line-height: 17px; }
.pick .bet .price { color: var(--low); font-weight: 700; letter-spacing: 0; margin-left: 6px; }
.pick .gcol { position: relative; flex: none; min-width: 44px; text-align: center; }
.pick .gcol .chance { display: block; font-weight: 700; font-size: 11px; }
.pick > .chev { position: relative; }
.tag { font-weight: 800; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--low); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }

/* ---- quick view: one pick with its evidence (the app's pick sheet) ---------------------- */
.quick { padding: 18px; min-height: 420px; }
.quick-head { display: flex; align-items: center; gap: 14px; }
.quick-head .badge { width: 64px; height: 64px; }
.quick-head .who { flex: 1; min-width: 0; }
.quick-head .name { font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.quick-head .meta { color: var(--low); font-size: 13px; margin-top: 3px; }
.quick-head .gcol { text-align: center; flex: none; padding: 0 6px; }
.quick-head .grade { font-size: 44px; }
.quick-head .chance { display: block; font-weight: 700; font-size: 13.5px; color: var(--mid); margin-top: -2px; }
.quick-bet { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; font-weight: 800; font-size: 16px; letter-spacing: .5px; text-transform: uppercase; color: var(--ink); }
.quick-bet .price { color: var(--low); font-weight: 700; font-size: 14px; letter-spacing: 0; }
.rule { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* hit rates: an open grid, a small muted label over a bold number, a thin track under it */
.rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.rate .k { font-weight: 700; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--low); }
.rate .v { font-weight: 900; font-size: 22px; line-height: 1.25; margin-top: 2px; }
.rate .track { height: 3px; border-radius: 2px; background: var(--line); margin-top: 6px; overflow: hidden; }
.rate .track i { display: block; height: 100%; border-radius: 2px; transform-origin: left; }
.rate .n { color: var(--faint); font-size: 10.5px; margin-top: 5px; white-space: nowrap; }
.c-win { color: var(--win); } .c-warn { color: var(--warn); } .c-loss { color: var(--loss); } .c-none { color: var(--faint); }
.b-win { background: var(--win); } .b-warn { background: var(--warn); } .b-loss { background: var(--loss); }

/* Form vs the line (mobile FormMeter, api/services/pickCard.js formBlock) */
.meter-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; margin-top: 12px; }
.meter-top .side { font-weight: 900; font-size: 11.5px; letter-spacing: 1.4px; color: var(--faint); padding-bottom: 8px; }
.meter-top .side.on { color: var(--ink); }
.meter-top .side:last-child { text-align: right; }
.meter-top .pct { text-align: center; font-weight: 900; font-size: 28px; line-height: 1.1; }
.meter-top .where { display: block; font-weight: 500; font-size: 12px; color: var(--low); margin-top: 2px; white-space: nowrap; }
.meter { position: relative; display: flex; gap: 3px; margin-top: 10px; padding: 4px 0; }
.meter .seg { flex: 1; height: 30px; border-radius: 4px; background: var(--line); transition: opacity .32s ease-out; }
.meter .mark { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.meter-scale { display: grid; grid-template-columns: 1fr auto 1fr; margin-top: 6px; font-weight: 700; font-size: 11px; color: var(--faint); }
.meter-scale b { font-weight: 900; letter-spacing: 1px; color: var(--ink); }
.meter-scale span:last-child { text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; color: var(--low); }
.chip b { font-weight: 900; font-size: 14px; color: var(--ink); }
.chip .tick { width: 15px; height: 15px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: inline-grid; place-items: center; }
.chip .tick.on { background: var(--win); }
.chip .tick svg { width: 9px; height: 9px; fill: none; stroke: #0E1020; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.reason { margin-top: 14px; color: var(--mid); font-size: 14px; }
.reason b { color: var(--ink); font-weight: 700; }

/* last games against the line */
.games { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: 18px; }
.games .g { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.games .g b { font-weight: 800; font-size: 12px; color: var(--ink); }
.games .g i { display: block; width: 100%; max-width: 44px; border-radius: 5px 5px 2px 2px; min-height: 3px; transform-origin: bottom; }
.games .at { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255, 255, 255, 0.5); pointer-events: none; }
.games .at span { position: absolute; right: 0; top: -17px; font-weight: 900; font-size: 10px; letter-spacing: 1px; color: var(--ink); background: var(--card); padding-left: 6px; }
.games-x { display: flex; gap: 8px; margin-top: 6px; }
.games-x span { flex: 1; min-width: 0; text-align: center; font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.factors { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.factors li { position: relative; padding-left: 18px; color: var(--mid); font-size: 14px; }
.factors li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 6px; height: 6px; border-radius: 2px; background: var(--faint); }

/* open stat grid: label over number, no boxes */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat .k { color: var(--low); font-size: 12.5px; }
.stat .v { font-weight: 900; font-size: 24px; line-height: 1.25; color: var(--ink); margin-top: 2px; }
.stat .v small { font-weight: 500; font-size: 13px; color: var(--low); margin-left: 4px; }

/* ---- hero ------------------------------------------------------------------------------- */
.hero { padding: 26px 0 44px; }
.hero .split { gap: 30px; }

/* ---- the ladder: seven grades in an open row --------------------------------------------- */
.ladder { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.ladder .grade { font-size: clamp(24px, 6.4vw, 44px); }
.grade-rows { margin-top: 8px; }
.grade-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.grade-row:last-child { border-bottom: 1px solid var(--line); }
.grade-row .grade { font-size: 32px; justify-self: start; }
.grade-row h3 { font-weight: 700; font-size: 15.5px; }
.grade-row p { color: var(--mid); font-size: 14px; margin-top: 2px; }

/* ---- slip ---------------------------------------------------------------------------------- */
.slip-sum { background: var(--card-hi); border-radius: var(--r-tile); padding: 12px 14px; display: grid; gap: 6px; margin: 14px 0 6px; }
.slip-sum div { display: flex; justify-content: space-between; gap: 12px; color: var(--mid); font-size: 14px; }
.slip-sum b { color: var(--ink); font-weight: 700; }
.slip-note { color: var(--low); font-size: 12.5px; text-align: center; margin: 10px 0 14px; }

/* ---- Prop AI ----------------------------------------------------------------------------- */
.chat { display: grid; gap: 12px; }
.chat .q { justify-self: end; max-width: 86%; background: var(--card-hi); border-radius: var(--r-tile); padding: 10px 14px; color: var(--ink); font-size: 14.5px; }
.chat .step { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--mid); font-size: 14px; }
.chat .step .tick { width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--win); display: grid; place-items: center; }
.chat .step .tick svg { width: 9px; height: 9px; fill: none; stroke: #0E1020; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chat .a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--body); font-size: 14.5px; }
.chat .a img { width: 28px; height: 28px; border-radius: 8px; }
.chat .ask { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 12px 14px; color: var(--faint); font-size: 14px; margin-top: 4px; }
.chat .ask i { width: 26px; height: 26px; border-radius: 8px; background: var(--card-hi); display: grid; place-items: center; }
.chat .ask i svg { width: 12px; height: 12px; fill: none; stroke: var(--low); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- pricing ------------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.plan { padding: 20px; }
.plan .price { font-weight: 900; color: var(--ink); font-size: 36px; line-height: 1.15; margin-top: 6px; }
.plan .price span { font-size: 14px; font-weight: 500; color: var(--low); margin-left: 4px; }
.plan p.what { margin-top: 8px; font-size: 13.5px; color: var(--mid); }
.fine { font-size: 12.5px; color: var(--low); max-width: 52em; margin-top: 16px; }
.incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.incl li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--mid); font-size: 14px; }
.incl li:last-child { border-bottom: 1px solid var(--line); }
.incl b { display: block; color: var(--ink); font-weight: 700; font-size: 14.5px; }

/* ---- board page controls ------------------------------------------------------------------- */
.seg-ctl { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-tile); max-width: 100%; overflow-x: auto; }
.seg-ctl button {
  font: inherit; font-weight: 700; font-size: 13.5px; color: var(--low); background: transparent; border: 0;
  padding: 8px 14px; border-radius: 7px; cursor: pointer; white-space: nowrap; transition: background-color .2s ease-out, color .2s ease-out;
}
.seg-ctl button:hover { color: var(--ink); }
.seg-ctl button[aria-pressed="true"] { background: var(--ink); color: #05071A; }
.seg-ctl button span { font-weight: 500; opacity: .6; margin-left: 5px; }
.state { padding: 26px 0; color: var(--mid); max-width: 34em; }
.state h2 { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.skel { height: 82px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }

/* ---- steps (earn) -------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--mid); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font-weight: 900; color: var(--low); }
.steps b { color: var(--ink); font-weight: 700; }
.code { font-weight: 900; font-size: clamp(30px, 9vw, 44px); line-height: 1.1; letter-spacing: .5px; color: var(--ink); margin-top: 6px; overflow-wrap: anywhere; }
.notice { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-tile); background: var(--card-hi); color: var(--body); font-size: 14px; }
.notice b { color: var(--ink); }

/* ---- prose blocks on the explainer pages ----------------------------------------------------- */
.prose p { color: var(--mid); max-width: 38em; margin-top: 10px; }
.prose p:first-child { margin-top: 0; }
.prose b, .prose strong { color: var(--ink); font-weight: 700; }
.keys { display: grid; gap: 0; margin-top: 14px; }
.keys div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--mid); font-size: 14px; }
.keys div:last-child { border-bottom: 1px solid var(--line); }
.keys dt, .keys .k { font-weight: 900; color: var(--ink); letter-spacing: .5px; }
.faq h3 { font-weight: 700; font-size: 15.5px; margin-top: 22px; }
.faq h3:first-child { margin-top: 0; }
.faq p { color: var(--mid); margin-top: 6px; max-width: 40em; }

/* ---- closing ------------------------------------------------------------------------------- */
.close { padding: 52px 0 60px; border-top: 1px solid var(--line); }

/* ---- footer -------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 32px 0 36px; font-size: 13px; color: var(--low); }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--mid); text-decoration: none; font-weight: 700; transition: color .2s ease-out; }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: var(--ink); }
.rg { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--mid); max-width: 62em; }
.rg a { color: var(--ink); font-weight: 700; }
.legal-line { margin-top: 12px; }

/* ---- document pages (privacy, terms, earn terms, support): text untouched, dressed as the app -- */
.doc { padding: 28px 0 56px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-weight: 900; text-transform: uppercase; letter-spacing: .6px; font-size: 26px; line-height: 1.08; }
.doc .meta { margin-top: 10px; color: var(--low); font-size: 13px; }
.doc .summary { margin-top: 22px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.doc .summary p:first-child { margin-top: 0; }
.doc h2 { font-size: 17px; font-weight: 800; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 76px; line-height: 1.3; }
.doc h3 { font-size: 15px; font-weight: 700; margin-top: 22px; }
.doc p, .doc li { max-width: 68ch; }
.doc p { margin-top: 10px; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc ul, .doc ol { margin: 10px 0 0; padding-left: 20px; }
.doc li { margin-top: 6px; }
.doc li::marker { color: var(--low); font-weight: 700; }
.toc { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-card); }
.doc .toc h2 { margin: 0; padding: 0; border: 0; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--low); }
.toc ol { columns: 2 220px; column-gap: 28px; font-size: 14px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--accent-soft); text-decoration: underline; }
.table-scroll { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-tile); }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--low); font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; background: var(--card); }
.doc tr:last-child td { border-bottom: 0; }
.callout { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-tile); background: var(--card-hi); color: var(--ink); }
.callout p { margin: 0; }
.help-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; }
.help-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.doc .help-card h2 { margin: 0; padding: 0; border: 0; font-size: 16px; }
.help-card p { margin-top: 6px; }

/* ---- motion: everything fades in with a small rise --------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(10px); transition: opacity .32s ease-out, transform .32s ease-out; transition-delay: var(--d, 0ms); }
  .js .rise.in { opacity: 1; transform: none; }
  .js .rise .track i, .js .rise .games .g i { transform: scaleX(0); transition: transform .5s var(--ease) .15s; }
  .js .rise .games .g i { transform: scaleY(0); }
  .js .rise.in .track i, .js .rise.in .games .g i { transform: none; }
  .js .rise .meter .seg.fill { opacity: 0 !important; }
  .js .rise.in .meter .seg.fill { opacity: var(--o, 1) !important; transition-delay: calc(.2s + var(--i, 0) * 40ms); }
  .enter { animation: enter .28s ease-out both; animation-delay: var(--d, 0ms); }
  @keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .leave { opacity: 0; transform: translateY(4px); transition: opacity .2s ease-out, transform .2s ease-out; }
  .grade .foil { animation: gloss 5.5s ease-in-out infinite; }
  .grade .spark { animation: twinkle 3.6s ease-in-out infinite; }
  .grade .spark.b { animation-delay: 1.7s; animation-duration: 4.4s; }
  @keyframes gloss { 0%, 55%, 100% { background-position: 0% 0%; } 78% { background-position: 100% 100%; } }
  @keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 45%, 60% { opacity: .9; transform: scale(1); } }
  .skel { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .55; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---- wider screens ------------------------------------------------------------------------- */
@media (min-width: 620px) {
  .picks.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-grid { grid-template-columns: 1fr 1fr; }
  .stats.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; font-size: 15.5px; }
  .tabs { display: none; }
  .top .wrap { height: 60px; }
  .top nav a.plain { display: inline; }
  .title { font-size: 30px; }
  .doc h1 { font-size: 30px; }
  .sec { padding: 64px 0; }
  .sec.first { padding-top: 44px; }
  .hero { padding: 52px 0 68px; }
  .quick { padding: 22px; }
  .panel { padding: 22px; }
  .doc { padding: 44px 0 72px; }
  .close { padding: 76px 0 84px; }
}
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .split.lead { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
  .split.narrow { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .split .sticky { position: sticky; top: 92px; }
  .picks.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lede { font-size: 17px; }
}
@media (max-width: 759px) {
  .panel { padding: 12px; }
  .panel > .eyebrow:first-child, .panel > .code { padding-left: 4px; }
  .panel .pick { gap: 10px; padding-left: 11px; padding-right: 10px; }
  .panel .pick .wm { display: none; }
}
@media (max-width: 380px) {
  .pick .wm { display: none; }
  .rates { gap: 10px; }
  .rate .v { font-size: 19px; }
}

/* ---- web checkout (/get, /welcome, /manage) ---------------------------------------------------- */
.code-hit { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 14px; border-radius: 999px; background: var(--accent-tint); border: 1px solid rgba(94, 110, 255, .35); color: var(--body); font-size: 14px; animation: pop .35s var(--ease) both; }
.code-hit b { color: var(--ink); font-weight: 800; }
.code-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 4px rgba(52, 199, 89, .18); flex: none; }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
.buy { padding: 20px; display: grid; gap: 16px; }
.plan-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.plan-pick legend { padding: 0; margin-bottom: 10px; }
.plan-opt { position: relative; display: block; cursor: pointer; border-radius: var(--r-card); background: var(--card); border: 1.5px solid var(--line); padding: 16px 16px 15px 48px; transition: border-color .2s ease-out, background-color .2s ease-out, transform .15s ease-out; }
.plan-opt:hover { border-color: var(--line-strong); }
.plan-opt:active { transform: scale(.99); }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt::before { content: ""; position: absolute; left: 16px; top: 19px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--faint); transition: border-color .2s ease-out, box-shadow .2s ease-out; }
.plan-opt.on { border-color: var(--accent); background: linear-gradient(180deg, rgba(94, 110, 255, .10), rgba(94, 110, 255, .03)); }
.plan-opt.on::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 10px var(--accent); }
.plan-opt:has(input:focus-visible) { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.plan-body { display: grid; gap: 4px; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-name { font-weight: 800; color: var(--ink); font-size: 15.5px; }
.plan-tag { font-size: 11.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #05071A; background: var(--g-a); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.plan-tag.soft { background: var(--card-hi); color: var(--accent-soft); }
.plan-price { font-weight: 900; color: var(--ink); font-size: 28px; line-height: 1.15; }
.plan-price small { font-size: 13.5px; font-weight: 500; color: var(--low); margin-left: 5px; }
.plan-price s.was { font-size: 16px; font-weight: 600; color: var(--faint); margin-right: 8px; }
.plan-what { font-size: 13.5px; color: var(--mid); }
.field { display: grid; gap: 7px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--mid); }
.field-hint { font-size: 12.5px; color: var(--low); }
.field input { font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--r-tile); padding: 13px 14px; width: 100%; transition: border-color .2s ease-out, box-shadow .2s ease-out; }
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
#code { text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }
.code-toggle { margin-top: 0; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 13.5px; }
.code-row { display: grid; gap: 10px; }
.form-error { font-size: 13.5px; color: #FFB3B5; background: rgba(255, 90, 95, .10); border: 1px solid rgba(255, 90, 95, .25); border-radius: var(--r-tile); padding: 10px 12px; animation: pop .25s var(--ease) both; }
.buy-btn { width: 100%; min-height: 52px; font-size: 16px; }
.buy-btn[disabled] { opacity: .6; cursor: progress; }
.buy.busy .buy-btn span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.pay-with { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--low); }
.pay-with svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.buy .fine { margin-top: 0; }
.narrow-col { max-width: 560px; }
.welcome-state { animation: pop .4s var(--ease) both; }
.spinner { display: block; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; margin-bottom: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.w-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.w-steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: grid; gap: 10px; justify-items: start; }
.w-step-head { display: flex; align-items: center; gap: 12px; }
.w-step-head b { color: var(--ink); font-weight: 800; font-size: 16px; }
.w-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-soft); font-weight: 900; font-size: 14px; }
.w-step-text { color: var(--mid); font-size: 14.5px; }
.w-step-text b { color: var(--ink); }
.pw-form { display: grid; gap: 10px; width: 100%; }
.w-ok { display: inline-flex; align-items: center; gap: 8px; color: var(--win); font-weight: 700; font-size: 14px; animation: pop .3s var(--ease) both; }
.w-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
#w-trial { margin-top: 18px; }
@media (min-width: 960px) { .checkout-page .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } .buy { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { .code-hit, .form-error, .welcome-state, .w-ok { animation: none; } }

/* ---- share page: members vs creators -------------------------------------------------------- */
.tracks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.track { padding: 20px; }
.track.on { border-color: rgba(94, 110, 255, .45); background: linear-gradient(180deg, rgba(94, 110, 255, .10), rgba(94, 110, 255, .02)); }
.track-big { font-weight: 900; color: var(--ink); font-size: 30px; line-height: 1.1; margin-top: 6px; }
.track-sub { color: var(--mid); font-size: 14px; margin-top: 4px; }
.track-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.track-list li { color: var(--body); font-size: 13.5px; padding-left: 18px; position: relative; }
.track-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft); }
.stat .v small { font-size: 12px; font-weight: 500; color: var(--low); }
@media (min-width: 620px) { .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
