/* Pip Temple layout and components. Colours/fonts come from brand.css only. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg); }
p a, .link { color: var(--accent); }
p a:hover, .link:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
code { font-size: .88em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Containers -------------------------------------------------------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.wrap-narrow { max-width: 760px; }
@media (max-width: 560px) { .wrap { padding-inline: 16px; } }

/* ---- Notice banner (simulated-only disclosure) ------------------------- */
.notice-bar { border-bottom: 1px solid var(--line); background: var(--surface); color: var(--fg-muted); font-size: 13px; }
.notice-bar .wrap { display: flex; gap: 8px 16px; justify-content: center; flex-wrap: wrap; padding-block: 7px; text-align: center; }
.notice-bar strong { color: var(--fg); font-weight: 500; }

/* ---- Top navigation ---------------------------------------------------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); flex: none; }
.brand svg { height: 28px; width: auto; }
.brand span { font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--fg-muted); }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.nav-right .who { color: var(--fg-muted); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .wrap { gap: 12px; } .nav-right .who { display: none; } }

/* ---- Buttons ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: var(--radius-sm); border: 1px solid transparent; font: 500 14px/1 var(--font-ui); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--invert-bg); color: var(--invert-fg); }
.btn-primary:hover { color: var(--invert-fg); opacity: .88; }
.btn-secondary { background: var(--bg); color: var(--fg); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: none; color: var(--fg-muted); padding: 0 10px; }
.btn-ghost:hover { color: var(--fg); background: var(--surface-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
form.inline { display: inline; margin: 0; }

/* ---- Pills ------------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px;
  font-weight: 500; border: 1px solid var(--line-strong); color: var(--fg-muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-live { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, var(--line)); }
.pill-open { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pill-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.pill-demo { color: var(--fg); }
.pill-demo::before { display: none; }

/* ---- Alerts ------------------------------------------------------------ */
.alert { border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px; border: 1px solid var(--line); }
.alert-ok { border-color: color-mix(in srgb, var(--up) 40%, var(--line)); }
.alert-err { background: var(--err-soft); border-color: color-mix(in srgb, var(--down) 45%, var(--line)); }
.alert-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); color: var(--fg); }
.alert ul { margin: 0; padding-left: 18px; }

/* ---- Panels & tables --------------------------------------------------- */
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { font-size: 14px; font-weight: 600; }
.panel-head .sub { font-size: 13px; color: var(--fg-muted); }
.panel-body { padding: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; font-size: 13px; color: var(--fg-muted); padding: 10px 18px; background: var(--surface);
  border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface); }
td.num, th.num { text-align: right; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
th.num { font-family: var(--font-ui); }
.pos { color: var(--up); } .neg { color: var(--down); }
tr.me td { background: var(--accent-soft); }
tr.me td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.rank { font-family: var(--font-num); color: var(--fg-muted); width: 56px; }
.muted { color: var(--fg-muted); } .faint { color: var(--fg-faint); } .small { font-size: 13px; }
.empty { padding: 28px 18px; color: var(--fg-muted); font-size: 14px; }

/* ---- Forms ------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.field .hint { font-size: 12px; color: var(--fg-faint); font-weight: 400; }
.input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg); font: 400 15px var(--font-ui); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-muted); line-height: 1.45; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--fg); flex: none; }
.form-stack { display: grid; gap: 18px; }

/* ---- Auth pages -------------------------------------------------------- */
.auth { min-height: calc(100vh - 140px); display: grid; place-items: center; padding-block: 48px; padding-inline: 16px; }
.auth-card { width: 100%; max-width: 400px; display: grid; gap: 24px; }
.auth-card .brand svg { height: 34px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: -.02em; }
.auth-card .lede { color: var(--fg-muted); font-size: 14px; margin-top: 6px; }
.auth-foot { font-size: 14px; color: var(--fg-muted); text-align: center; }

/* ---- Marketing: hero --------------------------------------------------- */
.hero { padding-block: 88px 72px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 65% 70% at 75% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at 75% 40%, #000 0%, transparent 72%); opacity: .5; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.03em; }
.hero .lede { margin-top: 22px; font-size: 18px; line-height: 1.55; color: var(--fg-muted); max-width: 30em; }
.hero .ctas { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero { padding-block: 48px 48px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero .lede { font-size: 17px; } }
@media (max-width: 560px) { .hero .ctas { display: grid; grid-template-columns: minmax(0, 1fr); } .hero .ctas .btn { width: 100%; } }

/* Home hero (landing + coming soon): soft light behind the animation, two-line headline, tag, fact strip */
.hero-home::after { content: ""; position: absolute; width: 760px; height: 560px; right: -120px; top: -40px; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(20px); }
.hero-home .wrap { z-index: 1; }
.hero-home h1 { margin-top: 22px; }
.hero-home h1 span { display: block; }
.hero-home .hero-what { margin-top: 18px; font: 500 clamp(19px, 2vw, 23px)/1.3 var(--font-ui); letter-spacing: -.01em; color: var(--fg); }
.hero-home .hero-what + .lede { margin-top: 8px; }
@media (min-width: 901px) { .hero-home .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } .hero-home h1 { font-size: clamp(42px, 4.7vw, 68px); } .hero-home h1 span { white-space: nowrap; } }
.hero-home h1 .soft { background: linear-gradient(180deg, var(--fg) 10%, var(--fg-faint)); -webkit-background-clip: text; background-clip: text;
  color: transparent; padding-bottom: .06em; }
@media (max-width: 900px) { .hero-home::after { width: 520px; height: 420px; right: -200px; top: auto; bottom: -60px; } }

.chip { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 13px; color: var(--fg-muted);
  white-space: nowrap; }
.chip:hover { color: var(--fg-muted); border-color: var(--fg-faint); }
.chip-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.chip-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: chip-ping 2.2s ease-out infinite; }
@keyframes chip-ping { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.chip b { color: var(--fg); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chip .num { color: var(--fg); }
.chip-sep { width: 1px; height: 14px; background: var(--line-strong); flex: none; }
.chip-arrow { color: var(--fg-faint); transition: transform .2s; }
.chip:hover .chip-arrow { transform: translateX(3px); }

.facts { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px;
  font: 400 12.5px/1.4 var(--font-num); color: var(--fg-muted); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: translateY(-2px) rotate(-45deg); flex: none; }

/* One short staggered rise as the page loads */
.rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.rise-1 { animation-delay: .03s; } .rise-2 { animation-delay: .1s; } .rise-3 { animation-delay: .17s; }
.rise-4 { animation-delay: .24s; } .rise-5 { animation-delay: .31s; } .rise-6 { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* The Temple (app/static/temple.js draws into the svg) */
.temple { margin: 0; position: relative; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; min-width: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: 0 1px 0 var(--line), 0 40px 90px -50px color-mix(in srgb, var(--fg) 50%, transparent); }
.temple-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.temple-title { font-weight: 500; }
.temple-day { color: var(--fg-muted); }
.temple-stage { padding: 20px 12px 0; background: radial-gradient(110% 90% at 100% 0%, var(--accent-soft), transparent 55%), var(--surface); }
.temple-svg { display: block; width: 100%; height: auto; aspect-ratio: 460 / 292; }
.temple-svg text { font-family: var(--font-num); font-size: 11px; }
.temple-step { fill: var(--line-strong); }
.temple-flute { stroke: var(--flute); stroke-width: 1; }
.temple-you { fill: var(--accent); }
.temple-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--fg-muted); }
.temple-lead { min-width: 0; text-wrap: balance; }
.temple-lead b { color: var(--fg); font-weight: 500; }
.temple-sim { flex: none; font-size: 10.5px; font-weight: 500; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; }
@media (prefers-reduced-motion: reduce) { .rise, .chip-dot::after { animation: none; } .chip-arrow { transition: none; } }
.temple-roof { fill: var(--gold); }
.temple-ribbon { fill: var(--accent); opacity: .85; }
.temple-medal-ring { fill: none; stroke: rgba(0, 0, 0, .18); stroke-width: 1; }
.temple-medal-n { font: 600 10px var(--font-ui); fill: #1a1a1a; }
.temple-ring { fill: none; stroke: var(--gold); stroke-width: 2; }

/* ---- Season story ("How a season works"; app/static/temple.js builds it from the step list) ----------
   The stage is pinned for 3 screen-heights of scrolling, one per step; every scroll or swipe moves one step.
   Heights use the smallest phone viewport (address bar showing) so the card always fits, and allow for the
   sticky top bar and, when signed in on a phone, the bottom tab bar. */
.season-story { --vh: 1vh; --extra: 0px; --nav-h: 61px; --tab-h: 0px; }
@supports (height: 1svh) { .season-story { --vh: 1svh; --extra: calc(100lvh - 100svh); } }
@media (max-width: 760px) { body.has-tabbar .season-story { --tab-h: calc(48px + env(safe-area-inset-bottom, 0px)); } }
.st { --avail: calc(100 * var(--vh) - var(--nav-h) - var(--tab-h)); --gap: 16px; --stage-h: min(620px, calc(var(--avail) - 2 * var(--gap)));
  box-sizing: content-box; position: relative; height: calc(var(--stage-h) + 300 * var(--vh));
  padding: calc(var(--nav-h) + var(--gap)) 0 calc(var(--avail) - var(--stage-h) - var(--gap) + var(--tab-h) + var(--extra));
  margin-top: calc(-1 * var(--nav-h)); }
.st.lock { touch-action: pinch-zoom; }
.st-stage { position: sticky; top: calc(var(--nav-h) + var(--gap)); height: var(--stage-h); display: grid; grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 34px 80px -50px color-mix(in srgb, var(--fg) 45%, transparent); }
.st-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--fg-muted); }
.st-top > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-sim { flex: none; font-size: 10.5px; font-weight: 500; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; }
.st-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 0; }
.st-side { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 24px 24px 18px 44px; border-right: 1px solid var(--line); min-height: 0; }
.st-list { display: grid; align-content: center; gap: 4px; }
.st-rail { position: absolute; left: 24px; top: 32px; bottom: 64px; width: 2px; background: var(--line); border-radius: 2px; }
.st-rail i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--accent); border-radius: 2px; }
.st-step { all: unset; display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; cursor: pointer; color: var(--fg-faint); transition: color .3s, background .3s; }
.st-step:hover { background: var(--surface); }
.st-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-n { font: 500 12px/1 var(--font-num); }
.st-step .st-t { font: 600 17px/1.3 var(--font-ui); }
.st-step .st-d { font-size: 14px; color: var(--fg-muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s, opacity .3s; }
.st-step.on { color: var(--fg); }
.st-step.on .st-n { color: var(--accent); }
.st-step.on .st-d { max-height: 6em; opacity: 1; }
.st-cta { justify-self: start; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; pointer-events: none; }
.st-cta.on { opacity: 1; transform: none; pointer-events: auto; }
.st-list .st-cta { margin: 8px 0 0 14px; }
.st-scene { display: grid; place-items: center; padding: 18px; min-height: 0;
  background: radial-gradient(100% 80% at 80% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.st-scene svg { width: 100%; height: 100%; max-height: 540px; display: block; }
.st-scene text { font-family: var(--font-num); font-size: 11px; }
.st-scene .st-small { font-size: 10px; fill: var(--fg-faint); }
.st-scene .st-cap { font: 500 13px var(--font-ui); fill: var(--fg); }
.st-track { stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.st-track-fill { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.st-tick { stroke: var(--line-strong); }
.st-marker { fill: var(--accent); }
.st-start { stroke: var(--fg-faint); stroke-dasharray: 4 4; }
.st-cue { display: flex; align-items: center; gap: 10px; min-width: 0; font: 500 11px/1.3 var(--font-num); letter-spacing: .05em;
  text-transform: uppercase; color: var(--fg-faint); }
.st-side > .st-cue { padding-left: 14px; }
.st-cue-line { position: relative; width: 1px; height: 18px; background: var(--line-strong); overflow: hidden; flex: none; }
.st-cue-line i { position: absolute; left: 0; top: 0; width: 1px; height: 8px; background: var(--fg); animation: st-cue 1.9s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes st-cue { 0% { transform: translateY(-9px); } 65%, 100% { transform: translateY(19px); } }
.st-cue-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-swap-next { animation: st-swap-next .38s cubic-bezier(.2, .7, .2, 1) both; }
.st-swap-prev { animation: st-swap-prev .38s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes st-swap-next { from { opacity: 0; transform: translateY(10px); } }
@keyframes st-swap-prev { from { opacity: 0; transform: translateY(-10px); } }
.st-card { display: none; }
@media (max-width: 760px) {
  .st { --gap: 12px; --stage-h: min(calc(83vw + 300px), calc(var(--avail) - 2 * var(--gap))); }
  .st-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .st-side { display: none; }
  .st-card { display: grid; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg); }
  .st-row { display: flex; align-items: center; gap: 14px; }
  .st-num { font: 500 12px/1 var(--font-num); color: var(--accent); flex: none; }
  .st-segs { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .st-segs button { position: relative; height: 20px; border: 0; border-radius: 0; padding: 0; background: none; cursor: pointer; }
  .st-segs button::before, .st-segs i { content: ""; position: absolute; left: 0; top: 8px; height: 3px; border-radius: 2px; }
  .st-segs button::before { right: 0; background: var(--line-strong); }
  .st-segs i { width: 0; background: var(--accent); }
  .st-text .st-t { font: 600 18px/1.3 var(--font-ui); }
  .st-text .st-d { font-size: 14px; color: var(--fg-muted); min-height: 4.7em; margin-top: 2px; }
  .st-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
  .st-foot .st-cta { display: none; }
  .st-foot .st-cta.on { display: inline-flex; }
}
@media (max-width: 420px) { .st-sim-x { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .st-step, .st-step .st-d, .st-cta { transition: none; }
  .st-cue-line i { animation: none; transform: translateY(5px); }
  .st-swap-next, .st-swap-prev { animation: none; }
}

/* ---- Marketing: sections ----------------------------------------------- */
.section { padding-block: 88px; border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; display: grid; gap: 12px; margin-bottom: 44px; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.025em; }
.section-head p { color: var(--fg-muted); font-size: 17px; }
@media (max-width: 760px) { .section { padding-block: 56px; } }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pillar { padding: 28px; display: grid; gap: 10px; align-content: start; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar h3 { font-size: 16px; }
.pillar p { color: var(--fg-muted); font-size: 15px; }
.pillar svg { width: 22px; height: 22px; color: var(--fg); }
@media (max-width: 860px) { .pillars { grid-template-columns: minmax(0, 1fr); } .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 4px 28px 4px 0; display: grid; gap: 10px; align-content: start; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--font-num); font-size: 13px; color: var(--fg-faint); }
.step h3 { font-size: 16px; }
.step p { color: var(--fg-muted); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } .step:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .step + .step { padding-left: 0; border-left: 0; } }

.scoring { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.scoring .copy { display: grid; gap: 16px; color: var(--fg-muted); font-size: 16px; max-width: 34em; }
.formula { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 6px 0; font-family: var(--font-num); font-size: 14px; }
.formula div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 20px; }
.formula div + div { border-top: 1px solid var(--line); }
.formula dt { color: var(--fg-muted); font-family: var(--font-ui); }
.formula dd { margin: 0; color: var(--fg); }
@media (max-width: 860px) { .scoring { grid-template-columns: minmax(0, 1fr); gap: 32px; } .formula div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 16px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-num); color: var(--fg-faint); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; color: var(--fg-muted); max-width: 62ch; }

.cta-band { padding-block: 96px; text-align: left; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.03em; line-height: 1.05; max-width: 14em; }

/* ---- Footer ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 13px; color: var(--fg-muted); }
.footer .wrap { display: grid; gap: 20px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { max-width: 80ch; color: var(--fg-faint); }
.theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.theme-switch button { background: none; border: 0; color: var(--fg-faint); font: 500 12px var(--font-ui); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); }

/* ---- App pages --------------------------------------------------------- */
.page { padding-block: 32px 64px; display: grid; gap: 24px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.page-head .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--fg-muted); }
.season-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.season-tabs a { padding: 8px 12px; font-size: 14px; color: var(--fg-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.season-tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }

.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 16px 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .k { font-size: 13px; color: var(--fg-muted); }
.stat .v { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.stat .d { font-size: 12px; color: var(--fg-faint); font-family: var(--font-num); }
@media (max-width: 1080px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; } .stat:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; } .stat:nth-child(4) { border-left: 1px solid var(--line); } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } .stat .v { font-size: 20px; } }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.dash-main, .dash-side { display: grid; gap: 24px; min-width: 0; }
@media (max-width: 1020px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }

.chart { padding: 8px 12px 4px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .grid text, .chart .axis text { fill: var(--fg-faint); font: 400 11px var(--font-num); }
.chart .base { stroke: var(--fg-faint); stroke-dasharray: 3 4; stroke-width: 1; }
.chart .area { fill: var(--chart-fill); stroke: none; }
.chart .line { fill: none; stroke: var(--fg); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--fg); stroke: var(--bg); stroke-width: 2; }

.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; font-size: 14px; }
.kv div + div { border-top: 1px solid var(--line); }
.kv dt { color: var(--fg-muted); }
.kv dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.rules-text { white-space: pre-wrap; font-size: 14px; color: var(--fg-muted); line-height: 1.65; }
.defs { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--fg-muted); }
.defs strong { color: var(--fg); font-weight: 500; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.code-cell { font-family: var(--font-num); font-size: 12px; color: var(--fg-muted); max-width: 420px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Phone-sized chart swap and column hiding */
.chart-sm { display: none; }
@media (max-width: 640px) { .chart-lg { display: none; } .chart-sm { display: block; } .hide-sm { display: none; } }

.flash-wrap { padding-top: 20px; }

/* Forms: textarea and select share the input look */
.textarea { height: auto; padding: 10px 12px; font: 400 13px/1.5 var(--font-num); resize: vertical; }
select.input { appearance: auto; }
.two-col.tight { gap: 14px; }
.filter-links { display: flex; gap: 4px; flex-wrap: wrap; font-size: 13px; }
.filter-links a { padding: 3px 9px; border-radius: 999px; color: var(--fg-muted); }
.filter-links a[aria-current="page"] { background: var(--surface-2); color: var(--fg); }
.return-form { display: inline-flex; gap: 6px; align-items: center; }
.return-form .check { font-size: 12px; gap: 5px; }
.return-form .check input { margin-top: 0; }

/* MT5 login card */
.cred { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.cred .btn-sm { height: 28px; padding: 0 8px; }
.cred-msg { margin: 0 18px 12px; color: var(--up); }
.howto { border-top: 1px solid var(--line); }
.howto details { border-bottom: 1px solid var(--line); }
.howto summary { cursor: pointer; padding: 12px 18px; font-size: 14px; font-weight: 500; }
.steps-list { margin: 0; padding: 0 18px 14px 38px; display: grid; gap: 8px; font-size: 14px; color: var(--fg-muted); }
.steps-list strong { color: var(--fg); font-weight: 500; }
.howto .small.faint { padding: 0 18px 12px; margin: 0; }
.panel-body-tight { padding: 12px 18px; }

/* Account health */
.issue { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.issue .pill { flex: none; }
.unblock-form { display: flex; gap: 6px; flex-wrap: wrap; }
.input-sm { height: 32px; font-size: 13px; width: 180px; }

/* Performance tiles */
.perf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.perf > div { padding: 14px 18px; display: grid; gap: 4px; align-content: start; min-width: 0; border-top: 1px solid var(--line); }
.perf > div:nth-child(-n+4) { border-top: 0; }
.perf > div:not(:nth-child(4n+1)) { border-left: 1px solid var(--line); }
.perf .k { font-size: 12px; color: var(--fg-muted); }
.perf .v { font-family: var(--font-num); font-size: 18px; font-weight: 500; white-space: nowrap; }
.perf .d { font-size: 11px; color: var(--fg-faint); }
@media (max-width: 760px) {
  .perf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perf > div { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .perf > div:nth-child(-n+2) { border-top: 0 !important; }
  .perf > div:nth-child(even) { border-left: 1px solid var(--line) !important; }
}

/* Leaderboard: filter, rank movement, unranked divider */
.seg { display: inline-flex; gap: 2px; margin: 12px 18px 4px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.seg a { padding: 4px 12px; font-size: 13px; color: var(--fg-muted); border-radius: calc(var(--radius-sm) - 2px); }
.seg a:hover { color: var(--fg); }
.seg a[aria-current="true"] { background: var(--fg); color: var(--bg); }
.move { font-family: var(--font-num); font-size: 12px; white-space: nowrap; }
.move-new { color: var(--accent); }
tr.divider td { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted); background: var(--surface); padding-top: 10px; padding-bottom: 6px; }
.panel-foot { margin: 0; padding: 10px 18px 14px; }

/* Mobile tab bar (logged in): the top nav links are hidden under 760px */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 30; background: var(--bg);
            border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; text-align: center; padding: 12px 4px; font-size: 13px; color: var(--fg-muted); }
  .tabbar a[aria-current="page"] { color: var(--fg); font-weight: 600; box-shadow: inset 0 2px 0 var(--accent); }
  body.has-tabbar { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
}

/* Profile */
.nav-right a.who:hover { color: var(--fg); }
.nav-right a.who[aria-current="page"] { color: var(--fg); }

/* Admin season form */
.field-err { font-size: 12px; color: var(--down); }
.input[aria-invalid="true"] { border-color: var(--down); }
.input[readonly] { background: var(--surface); color: var(--fg-muted); cursor: not-allowed; }
#standings, #mt5-login, #join, #seasons { scroll-margin-top: 84px; }
.lead-sm { margin: 6px 0 0; font-size: 15px; color: var(--fg-muted); max-width: 60ch; }

/* ---- Season cards (landing page, /s/<slug>) ----------------------------- */
.seasons-section { position: relative; }
.season-feature { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); background: var(--bg); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 30px 80px -40px color-mix(in srgb, var(--fg) 30%, transparent); }
.sf-main { padding: 40px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.sf-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sf-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); }
.sf-name { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -.03em; }
.sf-tag { font-size: 18px; line-height: 1.5; color: var(--fg-muted); max-width: 32em; }
.sf-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; margin: 8px 0 0; }
.sf-facts div { border-top: 1px solid var(--line); padding-top: 12px; min-width: 0; }
.sf-facts dt { font-size: 12px; color: var(--fg-faint); }
.sf-facts dd { margin: 4px 0 0; font-family: var(--font-num); font-size: 17px; font-variant-numeric: tabular-nums; }
.sf-facts .unit { font-size: 12px; color: var(--fg-muted); }
.sf-rewards { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-muted); margin-top: 4px; }
.sf-rewards svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.sf-rewards strong { color: var(--fg); font-weight: 600; margin-right: 6px; }
.sf-side { padding: 40px; display: grid; gap: 18px; align-content: center; border-left: 1px solid var(--line);
  background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.sf-label { font-size: 13px; color: var(--fg-muted); }
.sf-more { justify-self: center; font-size: 14px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.countdown div { display: grid; justify-items: center; gap: 4px; padding: 14px 0 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg); }
.countdown b { font-family: var(--font-num); font-weight: 500; font-size: clamp(26px, 3vw, 36px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-faint); }
.countdown[data-done] b { color: var(--fg-faint); }
.sf-progress { display: grid; gap: 8px; }
.bar { width: 100%; height: 6px; display: block; }
.bar-track { fill: var(--line); } .bar-fill { fill: var(--accent); }
.bar-label { font-size: 13px; color: var(--fg-muted); }
.btn-block { width: 100%; justify-content: center; }

.season-next { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto auto; gap: 28px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 28px; background: var(--bg); }
.sn-head { display: grid; gap: 4px; min-width: 0; }
.sn-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.sn-head p { font-size: 14px; color: var(--fg-muted); }
.sn-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-family: var(--font-num); font-size: 13px; color: var(--fg-muted); }
.sn-count { display: grid; gap: 4px; }
.sn-count span { font-size: 12px; color: var(--fg-faint); }
.sn-count b { font-family: var(--font-num); font-weight: 500; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sn-actions { display: flex; gap: 8px; }
.season-empty { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 40px; display: grid; gap: 10px; justify-items: start; }
.season-empty h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; }
.season-empty p { color: var(--fg-muted); }

.hero-season { padding-block: 48px 64px; }
.wrap-single { display: block !important; }
.crumbs { font-size: 14px; color: var(--fg-muted); margin-bottom: 18px; }
.rules-details { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.rules-details summary { cursor: pointer; padding: 16px 20px; font-size: 15px; font-weight: 500; }
.rules-details .rules-text { padding: 0 20px 20px; }

@media (max-width: 960px) {
  .season-feature { grid-template-columns: minmax(0, 1fr); }
  .sf-side { border-left: 0; border-top: 1px solid var(--line); }
  .season-next { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 20px; }
  .sn-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; order: 2; }
  .sn-count { order: 1; }
  .sn-actions { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 560px) {
  .sf-main, .sf-side { padding: 24px; }
  .sf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-next { padding: 20px; }
  .sn-actions .btn { flex: 1; justify-content: center; }
}

/* Admin share kit */
.share-link { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-link code { font-family: var(--font-num); font-size: 14px; word-break: break-all; }
.share-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 16px; align-items: start; }
.share-preview { background: var(--surface); border-bottom: 1px solid var(--line); }
.share-preview img { display: block; width: 100%; height: auto; }
.share-actions { display: grid; gap: 10px; }
@media (max-width: 960px) { .share-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Seasons page (trader): live now / upcoming / finished ------------------------------------------ */
.sp-head { align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.sp-jump { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-jump a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 13px; color: var(--fg-muted); background: var(--bg); }
.sp-jump a:hover { color: var(--fg); border-color: var(--fg-faint); }
.sp-jump b { font-family: var(--font-num); font-weight: 500; color: var(--fg); }
.sp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-faint); flex: none; position: relative; }
.sp-dot-live { background: var(--up); }
.sp-dot-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--up); animation: chip-ping 2.2s ease-out infinite; }
.sp-dot-soon { background: var(--accent); }
.sp-section { margin-top: 44px; scroll-margin-top: 80px; }
.sp-section-head { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sp-section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: -.02em; }
.sp-section-head p { color: var(--fg-muted); font-size: 14px; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.sp-card { position: relative; display: grid; gap: 12px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.sp-card:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -30px color-mix(in srgb, var(--fg) 40%, transparent); }
.sp-card-live { background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--up) 9%, transparent), transparent 55%), var(--bg);
  border-color: color-mix(in srgb, var(--up) 30%, var(--line)); }
.sp-card-soon { background: radial-gradient(120% 80% at 100% 0%, var(--accent-soft), transparent 55%), var(--bg); }
.sp-mine { box-shadow: inset 3px 0 0 var(--accent); }
.sp-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-chip { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--line-strong); white-space: nowrap; }
.sp-chip-live { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, var(--line)); }
.sp-chip-soon { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.sp-chip .num { color: var(--fg); }
.sp-day { font-size: 12.5px; color: var(--fg-muted); }
.sp-in { font-size: 12.5px; font-weight: 500; color: var(--accent); }
.sp-name { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.05; letter-spacing: -.025em; }
.sp-tag { color: var(--fg-muted); font-size: 14.5px; margin-top: -4px; }
.sp-time { display: block; width: 100%; height: 4px; }
.sp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px 16px; margin: 4px 0 0; }
.sp-facts div { border-top: 1px solid var(--line); padding-top: 8px; min-width: 0; }
.sp-facts dt { font-size: 12px; color: var(--fg-faint); }
.sp-facts dd { margin: 3px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.sp-facts .unit, .sp-row .unit { font-size: 12px; color: var(--fg-muted); }
.sp-rewards { font-size: 13.5px; color: var(--fg-muted); } .sp-rewards b { color: var(--fg); font-weight: 600; margin-right: 6px; }
.sp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.sp-me { font-size: 13.5px; min-width: 0; }
.sp-me b { font-family: var(--font-num); font-weight: 500; }
.sp-foot .btn { flex: none; }
.sp-empty { padding: 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--fg-muted); }
.sp-past { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.sp-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, .8fr) auto; gap: 8px 20px; align-items: center;
  padding: 16px 20px; background: var(--bg); }
.sp-row + .sp-row { border-top: 1px solid var(--line); }
.sp-row-name h3 { font-size: 16px; }
.sp-row-cell { display: grid; gap: 2px; font-size: 14px; min-width: 0; }
.sp-label { font-size: 11.5px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: .06em; }
.sp-winner { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sp-medal { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 2px color-mix(in srgb, #000 15%, var(--gold)); flex: none; }
.sp-row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.sp-row-note { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .sp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sp-row-name, .sp-row-actions { grid-column: 1 / -1; }
  .sp-row-actions { justify-content: flex-start; }
  .sp-name { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .sp-dot-live::after { animation: none; } }

.cert-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---- Text pages (privacy notice, terms) ------------------------------- */
.doc h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 44px); letter-spacing: -.02em; margin-bottom: 8px; }
.doc h2 { font-size: 18px; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--fg-muted); line-height: 1.65; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; margin: 8px 0; }
.doc li b, .doc p b { color: var(--fg); font-weight: 600; }
.lp-subhead { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: -.02em; margin: 40px 0 16px; }
