/* vendr.pro: one stylesheet for every page.
   Dark first, on the app's own ground and holo purple; a light variant follows
   the system setting. Mockups (.phone, .dark-ui) always stay dark, like the app.
   Mobile first. Breakpoints: 420 (wide phones), 640 (tablets), 960 (desktop). */

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark light;
  --bg: #0A0B0D;
  --band: #0F1013;
  --surface: #15171C;
  --raised: #1E2128;
  --selected: #2A2E37;
  --line: rgba(255, 255, 255, 0.09);
  --text: #F3F4F6;
  --text2: #A4AAB5;
  --text3: #7B828E;
  --accent: #A78BFA;
  --on-accent: #0B0C0F;
  --accent-soft: rgba(167, 139, 250, 0.16);
  --up: #30D158;
  --up-soft: rgba(48, 209, 88, 0.14);
  --down: #FF453A;
  --warn: #FFB340;
  --glow: rgba(167, 139, 250, 0.18);
  --header-bg: rgba(10, 11, 13, 0.78);
  --shadow-device: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 16px;
  --max: 1200px;
  --measure: 65ch;
  --header-h: 60px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 20px;
  --section: clamp(56px, 2.5rem + 5vw, 128px);
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; --header-h: 64px; }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F5F5F7;
    --band: #FFFFFF;
    --surface: #FFFFFF;
    --raised: #EBEBF0;
    --selected: #DEDEE5;
    --line: rgba(0, 0, 0, 0.1);
    --text: #111216;
    --text2: #474C55;
    --text3: #646A73;
    --accent: #6A4BD6;
    --on-accent: #FFFFFF;
    --accent-soft: rgba(106, 75, 214, 0.1);
    --up: #1A7A35;
    --up-soft: rgba(26, 122, 53, 0.1);
    --down: #C42B21;
    --warn: #8A5300;
    --glow: rgba(106, 75, 214, 0.14);
    --header-bg: rgba(245, 245, 247, 0.8);
    --shadow-device: 0 40px 80px -36px rgba(20, 16, 40, 0.45);
  }
  /* on white bands, tiles step down instead of up */
  .band { --surface: #F5F5F7; --raised: #EBEBF0; }
}

/* Mockups keep the app's dark palette whatever the page theme is. */
.phone,
.dark-ui {
  color-scheme: dark;
  --bg: #0B0C0F;
  --surface: #15171C;
  --raised: #1E2128;
  --selected: #2A2E37;
  --line: rgba(255, 255, 255, 0.09);
  --text: #F3F4F6;
  --text2: #A4AAB5;
  --text3: #7B828E;
  --accent: #A78BFA;
  --on-accent: #0B0C0F;
  --accent-soft: rgba(167, 139, 250, 0.18);
  --up: #30D158;
  --up-soft: rgba(48, 209, 88, 0.16);
  --down: #FF453A;
  color: var(--text);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

main { flex: 1 0 auto; display: block; }

img, svg { max-width: 100%; }
svg { flex: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 1.55rem + 2.4vw, 3.375rem); line-height: 1.06; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem); line-height: 1.08; letter-spacing: -0.026em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.012em; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.005em; }

p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--accent-soft); }

strong, b { font-weight: 600; }
small { font-size: inherit; }
abbr[title] { text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.num { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--r-m);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.wrap-narrow { max-width: 46rem; }

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}

.header-in {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-h);
}

.mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  color: var(--text);
  font: 800 1.5rem/1 var(--font-display);
  letter-spacing: -0.035em;
  text-decoration: none;
}
.mark span { color: var(--accent); }
.mark:hover { text-decoration: none; }

.nav-main { display: none; }
.nav-main ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-main a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-m);
  color: var(--text2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-main a:hover { color: var(--text); background: var(--surface); }
.nav-main a[aria-current="page"] { color: var(--text); font-weight: 600; }

.site-header .header-cta { display: none; }

.menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border-radius: var(--r-m);
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ""; }
.menu > summary:hover { background: var(--surface); }
.menu > summary svg { width: 22px; height: 22px; }
.menu .i-close { display: none; }
.menu[open] .i-open { display: none; }
.menu[open] .i-close { display: block; }

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
  overflow-y: auto;
  padding: 4px max(var(--gutter), env(safe-area-inset-right)) 24px max(var(--gutter), env(safe-area-inset-left));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}
.menu-panel ul { margin: 0 0 20px; padding: 0; list-style: none; }
.menu-panel li + li { border-top: 1px solid var(--line); }
.menu-panel li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.menu-panel li a::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-top: 2px solid var(--text3);
  border-right: 2px solid var(--text3);
  transform: rotate(45deg);
}
.menu-panel li a[aria-current="page"] { color: var(--accent); }
.menu-panel .btn { width: 100%; }
.menu-panel .menu-note { margin: 12px 0 0; color: var(--text3); font-size: 0.875rem; text-align: center; }

@media (min-width: 420px) {
  .site-header .header-cta { display: inline-flex; }
}

@media (min-width: 960px) {
  .nav-main { display: block; }
  .menu { display: none; }
  .header-cta { margin-left: 8px; }
}

/* ---------- Buttons, badges, chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-m);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 1.0625rem/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { filter: brightness(0.95); }
.btn-secondary { background: var(--raised); color: var(--text); }
.btn-secondary:hover { filter: none; background: var(--selected); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 419px) {
  .btn-row .btn { flex: 1 1 100%; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge .live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.chips a:hover { background: var(--raised); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.link-more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.link-more:hover { text-decoration: underline; }

/* ---------- Type helpers ---------- */

.eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}

.display {
  font-size: clamp(2.375rem, 1.45rem + 3.9vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lede {
  color: var(--text2);
  font-size: clamp(1.125rem, 1.03rem + 0.45vw, 1.375rem);
  line-height: 1.5;
  max-width: 36em;
}

.muted { color: var(--text2); }
.fine { color: var(--text3); font-size: 0.8125rem; line-height: 1.5; }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- Sections and layout ---------- */

.section { padding-block: calc(var(--section) / 2); }
.section-first { padding-top: clamp(40px, 2rem + 3vw, 88px); }
.section-last { padding-bottom: var(--section); }
.band { background: var(--band); padding-block: calc(var(--section) * 0.8); margin-block: calc(var(--section) / 2); }
.band + .band, .band:first-child { margin-top: 0; }
.band:last-child { margin-bottom: 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(28px, 1.5rem + 2vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head h2 + .lede,
.section-head h1 + .lede { margin-top: 16px; }
.section-head .lede:last-child { margin-bottom: 0; }

.page-head { padding-top: clamp(40px, 2rem + 4vw, 104px); padding-bottom: clamp(24px, 1rem + 2vw, 48px); }
.page-head h1 { max-width: 18em; }
.page-head .lede { margin-top: 18px; margin-bottom: 0; }
.page-head .btn-row { margin-top: 28px; }
.chip-nav { margin-top: 28px; }
.hero nav .chips { margin-top: 4px; }
.hero-page { padding-bottom: clamp(32px, 1.5rem + 3vw, 72px); }
.hero-page h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }

.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.eyebrow-row .eyebrow { margin: 0; }

.split {
  display: grid;
  gap: clamp(36px, 2rem + 3vw, 88px);
  align-items: center;
}
.split-text > p,
.split-text > ul,
.split-text > ol { max-width: 34rem; }
.split-text h2 { margin-bottom: 16px; }
.split-text .lede { margin-bottom: 20px; }
.split-text > :last-child { margin-bottom: 0; }

@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split.rev .split-media { order: -1; }
  .split-wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
  .split-wide-text .split-media { padding-top: 40px; }
}

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid { gap: 20px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tile {
  position: relative;
  padding: clamp(20px, 1rem + 1vw, 28px);
  border-radius: var(--r-l);
  background: var(--surface);
}
.tile h3 { margin-bottom: 8px; }
.tile p { margin: 0; color: var(--text2); }
.tile p + p { margin-top: 0.75em; }
.tile .link-more { margin-top: 8px; }
.tile-media { margin: -4px 0 20px; }
.tile .badge { margin-bottom: 14px; }
@media (max-width: 639px) {
  /* phones: icon beside the text, so stacked tiles stay short */
  .tile:has(> .icon:first-child) { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-content: start; }
  .tile:has(> .icon:first-child) > .icon { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
  .tile:has(> .icon:first-child) > :not(.icon) { grid-column: 2; }
  .tile:has(> .icon:first-child) > h3 { margin-top: 10px; }
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--r-m);
  background: var(--raised);
  color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }

.ticks { display: grid; gap: 10px; margin: 0 0 1.25em; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.42em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks b { color: var(--text); }
.split-text .ticks li, .tile .ticks li { color: var(--text2); }

.steps { display: grid; gap: 20px; margin: 0 0 1.25em; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; min-height: 36px; padding-left: 52px; counter-increment: step; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--raised);
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps h3, .steps h4 { margin: 6px 0 4px; font-size: 1.0625rem; letter-spacing: -0.005em; }
.steps p { margin: 0; color: var(--text2); }
.steps p + p { margin-top: 0.5em; }

@media (min-width: 960px) {
  .steps-row { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; }
  .steps-row > li { padding-left: 0; padding-top: 50px; }
  .steps-row h3, .steps-row h4 { margin-top: 0; }
}

.callout {
  padding: 20px 22px;
  border-radius: var(--r-l);
  background: var(--raised);
  color: var(--text);
}
.callout p { color: var(--text2); }
.callout > :last-child { margin-bottom: 0; }
.callout h3, .callout h4 { margin-bottom: 6px; }

.stack > * + * { margin-top: 16px; }
.grid + p { margin: 24px 0 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-block: clamp(36px, 1.5rem + 4vw, 104px) clamp(48px, 2rem + 4vw, 112px);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% 0 0;
  background: radial-gradient(48% 42% at 76% 40%, var(--glow), transparent 72%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero .badge { margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 28px; }
.hero-note { margin: 18px 0 0; color: var(--text3); font-size: 0.9375rem; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 48px; }
  .hero::before { background: radial-gradient(40% 55% at 78% 46%, var(--glow), transparent 72%); }
}

/* ---------- Facts strip ---------- */

.facts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 18px 20px; border-radius: var(--r-l); background: var(--surface); }
.facts b { display: block; margin-bottom: 4px; font-size: 1.0625rem; }
.facts span { color: var(--text2); font-size: 0.9375rem; }
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Tables ---------- */

.table-wrap {
  margin: 0 0 1.5em;
  overflow-x: auto;
  border-radius: var(--r-l);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
caption { padding: 14px 16px 0; color: var(--text3); font-size: 0.8125rem; text-align: left; }
th, td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}
thead th {
  color: var(--text3);
  font-size: 0.8125rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
tbody tr + tr > * { border-top: 1px solid var(--line); }
tbody th { color: var(--text); font-weight: 600; }
td { color: var(--text2); }
td.num, th.num { text-align: right; white-space: nowrap; }
@media (max-width: 419px) {
  table { font-size: 0.875rem; }
  th, td { padding: 10px 12px; hyphens: auto; }
}

/* ---------- Long-form text (pages and legal) ---------- */

.prose { max-width: var(--measure); }
.prose > h2 { margin: 2.2em 0 0.6em; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.prose > h3 { margin: 1.8em 0 0.5em; font-size: 1.1875rem; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--text3); }
.prose .table-wrap, .prose .callout { margin-block: 1.25em 1.75em; }
.prose .faq { margin-block: 1em; }
.faq-after { margin-top: 16px; }
@media (min-width: 960px) {
  .hide-desktop { display: none; }
}

.doc-layout { display: grid; gap: 32px; padding-bottom: var(--section); }
.doc-head { padding-top: clamp(32px, 1.5rem + 3vw, 80px); padding-bottom: clamp(24px, 1rem + 2vw, 48px); }
.doc-head h1 { margin-bottom: 12px; }
.doc-meta { color: var(--text3); font-size: 0.9375rem; margin: 0; }
.doc > h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.doc table { font-size: 0.9375rem; }
.doc td { color: var(--text); }
.doc td + td { color: var(--text2); }

.toc-side { display: none; }
.toc-mobile { margin-bottom: 28px; border-radius: var(--r-l); background: var(--surface); }
.toc-mobile > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.toc-mobile > summary::-webkit-details-marker { display: none; }
.toc-mobile > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text3);
  border-bottom: 2px solid var(--text3);
  transform: translateY(-2px) rotate(45deg);
}
.toc-mobile[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.toc-mobile ol { margin: 0; padding: 0 20px 12px; list-style: none; }
.toc-side a, .toc-mobile a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text2);
  text-decoration: none;
}
.toc-side a:hover, .toc-mobile a:hover { color: var(--text); text-decoration: underline; }
.toc-mobile li + li { border-top: 1px solid var(--line); }

@media (min-width: 960px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
  .toc-mobile { display: none; }
  .toc-side { display: block; position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; }
  .toc-side .toc-title { margin: 0 0 8px; color: var(--text3); font-size: 0.8125rem; font-weight: 600; }
  .toc-side ol { margin: 0; padding: 0; list-style: none; }
  .toc-side a { font-size: 0.9375rem; line-height: 1.3; padding-block: 6px; }
}

/* ---------- Help centre ---------- */

.help-layout { display: grid; gap: 32px; padding-top: 8px; }
.help-body { min-width: 0; }
.topic-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.topic-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.topic-nav a:hover { background: var(--raised); }
.topic-nav .toc-title { display: none; }

@media (min-width: 960px) {
  .help-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
  .topic-nav { position: sticky; top: calc(var(--header-h) + 32px); }
  .topic-nav .toc-title { display: block; margin: 0 0 8px; color: var(--text3); font-size: 0.8125rem; font-weight: 600; }
  .topic-nav ul { display: block; }
  .topic-nav a { display: flex; min-height: 44px; padding: 0 12px; margin-left: -12px; border-radius: var(--r-m); background: none; color: var(--text2); }
  .topic-nav a:hover { background: var(--surface); color: var(--text); }
}

.faq-group { margin-bottom: clamp(40px, 2rem + 2vw, 64px); }
.faq-group > h2 { margin-bottom: 16px; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
.faq-group > p { color: var(--text2); max-width: var(--measure); }

.faq { border-radius: var(--r-l); background: var(--surface); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text3);
  border-bottom: 2px solid var(--text3);
  transform: translateY(-2px) rotate(45deg);
}
.faq details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--r-l); }
.faq .answer { max-width: var(--measure); padding: 0 20px 20px; color: var(--text2); }
.faq .answer > :last-child { margin-bottom: 0; }
.faq .answer ul, .faq .answer ol { padding-left: 1.3em; }
.faq .answer li { margin-bottom: 0.35em; }

@media (prefers-reduced-motion: no-preference) {
  .faq summary::after, .toc-mobile > summary::after { transition: transform 0.2s ease; }
}

/* ---------- Final call to action ---------- */

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 1.5rem + 4vw, 80px) clamp(20px, 1rem + 4vw, 80px);
  border-radius: 28px;
  background: var(--surface);
  text-align: center;
}
.cta-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, var(--glow), transparent 70%);
}
.cta-panel h2 { margin-bottom: 14px; }
.cta-panel .lede { margin: 0 auto 28px; }
.cta-panel .btn-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  padding: 48px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--text2);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.footer-brand { grid-column: 1 / -1; max-width: 22rem; }
.footer-brand p { margin: 12px 0 0; }
.footer-brand .mark { min-height: 0; }
.footer-h {
  margin: 0 0 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col a,
.footer-brand a:not(.mark) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text2);
  text-decoration: none;
}
.footer-col a:hover, .footer-brand a:not(.mark):hover { color: var(--text); text-decoration: underline; }
.footer-legal {
  display: grid;
  gap: 10px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text3);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.footer-legal p { margin: 0; max-width: 90ch; }

@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Mockups ---------- */

/* A phone frame. Everything inside is sized in em off a font size that is a
   share of the phone's width (container units), so it scales as one picture. */

.device {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
}
.device-pair { display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 3vw, 28px); }
.device-pair .phone { --pw: min(260px, 44vw); }
.device-pair .phone:nth-child(2) { margin-top: 48px; }
@media (min-width: 960px) {
  /* two phones share half the page: size them to the column, not the screen */
  .device-pair .phone { --pw: min(260px, 19.5vw); }
}
@media (max-width: 639px) {
  .device-pair .phone + .phone { display: none; }
  .device-pair .phone { --pw: min(300px, 74vw); }
}
.device figcaption { position: absolute; left: 0; right: 0; bottom: -28px; text-align: center; }
.device-cap { padding-bottom: 28px; }

.phone {
  --pw: min(300px, 74vw);
  position: relative;
  flex: none;
  width: var(--pw);
  aspect-ratio: 300 / 624;
  padding: calc(var(--pw) * 0.032);
  border-radius: calc(var(--pw) * 0.16);
  background: #000;
  box-shadow:
    inset 0 0 0 1.5px #3B3E46,
    inset 0 0 0 4px #111216,
    0 0 0 1px rgba(255, 255, 255, 0.04),
    var(--shadow-device);
  container-type: inline-size;
  user-select: none;
  -webkit-user-select: none;
}
.phone-sm { --pw: min(260px, 70vw); }

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.13);
  background: var(--bg);
  font-family: var(--font);
  font-size: 12px;
  font-size: 4.35cqi;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: left;
}
.screen::before {
  content: "";
  position: absolute;
  z-index: 9;
  top: 0.75em;
  left: 50%;
  width: 7.2em;
  height: 2.05em;
  margin-left: -3.6em;
  border-radius: 99px;
  background: #000;
}
.screen::after {
  content: "";
  position: absolute;
  z-index: 9;
  bottom: 0.5em;
  left: 50%;
  width: 34%;
  height: 0.36em;
  margin-left: -17%;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.7);
}

.sb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.6em;
  padding: 0.55em 1.9em 0 2.25em;
  font-size: 0.92em;
  font-weight: 600;
}
.sb.over { position: relative; z-index: 3; }
.sb i {
  position: relative;
  width: 1.7em;
  height: 0.85em;
  border-radius: 0.28em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.sb i::after {
  content: "";
  position: absolute;
  inset: 0.16em 0.5em 0.16em 0.16em;
  border-radius: 0.14em;
  background: var(--text);
}

.nb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  height: 2.6em;
  padding: 0 0.95em;
}
.nb b { font-weight: 600; }
.nb .acc { color: var(--accent); font-weight: 500; }
.nb .back { color: var(--accent); font-size: 1.35em; line-height: 1; font-weight: 400; }

.lt { padding: 0.15em 0.95em 0.35em; font-size: 1em; }
.lt b { display: block; font-size: 2em; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }

.sc { padding: 0 0.95em; }

.cn { font-size: 1.6em; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.cs { margin-top: 0.25em; color: var(--text2); font-size: 0.86em; }
.px { margin-top: 0.45em; font-size: 2em; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.chg { margin-top: 0.1em; font-size: 0.86em; font-weight: 600; font-variant-numeric: tabular-nums; }
.lbl { color: var(--text2); font-size: 0.86em; }

.ch { display: flex; justify-content: center; padding: 0.3em 0 0.9em; }
.ch .tcg { width: 44%; }

.chart { display: block; width: 100%; height: 6em; margin: 0.8em 0 0.5em; overflow: visible; }
.chart .area { fill: var(--up); fill-opacity: 0.12; }
.chart .ln { fill: none; stroke: var(--up); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .base { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }

.rng { display: flex; gap: 0.3em; }
.rng span { flex: 1; padding: 0.35em 0; border-radius: 0.55em; color: var(--text2); font-size: 0.76em; font-weight: 600; text-align: center; }
.rng .on { background: var(--raised); color: var(--text); }

.src {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  margin-top: 0.8em;
  padding: 0.7em 0.85em;
  border-radius: 0.85em;
  background: var(--surface);
  color: var(--text2);
  font-size: 0.82em;
}
.src b { color: var(--text); font-weight: 600; }
.src .acc { color: var(--accent); font-weight: 600; white-space: nowrap; }

.ab {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.5em;
  padding: 1.6em 0.95em 1.8em;
  background: linear-gradient(to bottom, transparent, var(--bg) 38%);
}
.ab span { flex: 1 1 auto; padding: 0.75em 0.6em; border-radius: 0.85em; background: var(--raised); font-weight: 600; text-align: center; white-space: nowrap; }
.ab .pri { flex-grow: 1.6; background: var(--accent); color: var(--on-accent); }

.grp { overflow: hidden; border-radius: 1em; background: var(--surface); }
.row { display: flex; align-items: center; gap: 0.65em; min-height: 3.1em; padding: 0.6em 0.8em; }
.row + .row { border-top: 1px solid var(--line); }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.row .t small { display: block; overflow: hidden; color: var(--text2); font-size: 0.8em; white-space: nowrap; text-overflow: ellipsis; }
.row .v { font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .v small { display: block; color: var(--text3); font-size: 0.76em; font-weight: 500; }
.row .tcg { width: 2.15em; flex: none; }
.row .dotk { flex: none; width: 2.15em; height: 2.15em; border-radius: 50%; background: var(--raised); display: grid; place-items: center; }
.row .dotk i { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--k, var(--accent)); }
.row.used { background: var(--accent-soft); }
.k-o { --k: #FF9F0A; }
.k-b { --k: #0A84FF; }
.k-p { --k: #A78BFA; }
.k-g { --k: #30D158; }

.hdr { margin: 1.1em 0 0.45em; color: var(--text2); font-size: 0.76em; font-weight: 600; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.18em 0.55em;
  border-radius: 99px;
  background: var(--raised);
  color: var(--text2);
  font-size: 0.68em;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.pill.ok { background: var(--up-soft); color: var(--up); }
.pill.acc { background: var(--accent-soft); color: var(--accent); }

.seg { display: flex; margin: 0.9em 0; padding: 0.2em; border-radius: 0.65em; background: var(--surface); }
.seg span { flex: 1; padding: 0.38em 0; border-radius: 0.48em; color: var(--text2); font-size: 0.78em; font-weight: 600; text-align: center; }
.seg .on { background: var(--selected); color: var(--text); }

.cg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75em 0.55em; }
.cg > span { display: block; min-width: 0; }
.cg .tcg { width: 100%; }
.cg b { display: block; margin-top: 0.3em; font-size: 0.78em; font-weight: 600; font-variant-numeric: tabular-nums; }
.cg small { display: block; color: var(--text3); font-size: 0.68em; }

.sheet {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6em 0.95em 2.1em;
  border-radius: 1.5em 1.5em 0 0;
  background: var(--surface);
  box-shadow: 0 -1em 3em rgba(0, 0, 0, 0.55);
}
.sheet::before {
  content: "";
  display: block;
  width: 2.6em;
  height: 0.32em;
  margin: 0 auto 0.75em;
  border-radius: 1em;
  background: var(--selected);
}
.sheet .sh4 { margin: 0 0 0.6em; font-size: 1.2em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.sheet .grp { background: var(--raised); }
.sheet .row + .row { border-color: rgba(255, 255, 255, 0.07); }
.scrim .sheet { box-shadow: 0 0 0 100em rgba(0, 0, 0, 0.5), 0 -1em 3em rgba(0, 0, 0, 0.55); }
.foot-note { margin-top: 0.7em; color: var(--text3); font-size: 0.72em; }
.sheet .foot-note { text-align: center; }
.sheet-px { margin-top: 0; font-size: 1.7em; }
.sheet-p { margin: 0.35em 0 0.8em; color: var(--text2); font-size: 0.82em; line-height: 1.35; }
.sheet .acts span:not(.pri) { color: var(--accent); }

/* trading-card art: abstract, real card proportions (63:88), corner radius 5% of width */
.tcg {
  position: relative;
  display: block;
  aspect-ratio: 63 / 88;
  overflow: hidden;
  border-radius: 5% / 3.58%;
  background:
    linear-gradient(var(--tl, rgba(255, 255, 255, 0.55)), var(--tl, rgba(255, 255, 255, 0.55))) 14% 7% / 46% 3.2% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)) 14% 67% / 64% 2.2% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) 14% 74% / 50% 2.2% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) 14% 81% / 58% 2.2% no-repeat,
    var(--frame, linear-gradient(160deg, #3a3f4b, #1d2027));
  box-shadow: 0 0.35em 1.1em rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.tcg::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 8%;
  right: 8%;
  height: 45%;
  border-radius: 2.5% / 4%;
  background: var(--art, linear-gradient(135deg, #555, #222));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.tcg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.2) 42%, rgba(167, 139, 250, 0.12) 50%, transparent 62%);
  mix-blend-mode: screen;
}
.tcg--night {
  --frame: linear-gradient(165deg, #2b2f52, #121327 70%);
  --art: radial-gradient(circle at 64% 38%, #f6d36b 0 13%, rgba(246, 211, 107, 0.25) 14% 17%, transparent 18%), radial-gradient(circle at 30% 80%, #4c3f8f, transparent 55%), linear-gradient(160deg, #1b1f45, #08091a);
}
.tcg--fire {
  --frame: linear-gradient(165deg, #6b3a1c, #2a1409 75%);
  --art: radial-gradient(circle at 40% 60%, #ffcf6b 0 10%, #ff7a2f 22%, transparent 48%), radial-gradient(circle at 75% 25%, #ff4d2e, transparent 50%), linear-gradient(150deg, #5c1d0f, #1c0904);
}
.tcg--sea {
  --frame: linear-gradient(165deg, #1d4e6b, #0b2030 75%);
  --art: radial-gradient(circle at 70% 30%, #ff5a4e 0 12%, transparent 13%), linear-gradient(180deg, #8fd3ff 0 46%, #1f78b4 47% 60%, #0d3a5c 61%);
}
.tcg--leaf {
  --frame: linear-gradient(165deg, #2f5b37, #112416 75%);
  --art: radial-gradient(ellipse at 50% 85%, #6bd17d, transparent 55%), radial-gradient(circle at 30% 30%, #d9f99d, transparent 35%), linear-gradient(160deg, #1f4d2a, #0a1d10);
}
.tcg--violet {
  --frame: linear-gradient(165deg, #5b3fa8, #1f1440 75%);
  --art: conic-gradient(from 200deg at 50% 55%, #f0abfc, #a78bfa, #60a5fa, #34d399, #fde68a, #f0abfc);
}
.tcg--gold {
  --frame: linear-gradient(165deg, #8a6a24, #3a2a0a 75%);
  --art: radial-gradient(circle at 50% 45%, #fff3c4 0 10%, #f5c542 30%, transparent 60%), linear-gradient(150deg, #6b4e12, #2a1d05);
}
.tcg--red {
  --frame: linear-gradient(165deg, #7a1f2b, #2b0a10 75%);
  --art: radial-gradient(circle at 55% 40%, #ffd4a8 0 9%, transparent 10%), radial-gradient(circle at 50% 70%, #e23d4f, transparent 55%), linear-gradient(160deg, #47111c, #160408);
}
.tcg--ice {
  --frame: linear-gradient(165deg, #3d6e86, #13283a 75%);
  --art: radial-gradient(circle at 35% 35%, #ffffff 0 8%, #b9ecff 20%, transparent 45%), linear-gradient(150deg, #5fb8d9, #0f3550);
}
.tcg--back {
  --tl: transparent;
  background: radial-gradient(circle at 50% 50%, #f3f4f6 0 9%, #1e2128 10% 13%, #c62e2e 14% 40%, #1e2128 41%);
}
.tcg--back::before { display: none; }

/* lock screen and notifications */
.lock {
  background:
    radial-gradient(80% 50% at 20% 10%, rgba(167, 139, 250, 0.55), transparent 60%),
    radial-gradient(70% 50% at 90% 60%, rgba(96, 165, 250, 0.35), transparent 60%),
    linear-gradient(180deg, #1c1640, #0b0c0f 85%);
}
.lock .date { margin-top: 0.4em; text-align: center; font-size: 1em; font-weight: 600; opacity: 0.85; }
.lock .time { text-align: center; font-size: 5.2em; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.notifs { position: absolute; left: 0; right: 0; bottom: 2.4em; display: grid; gap: 0.5em; padding: 0 0.55em; }

.notif {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) auto;
  gap: 0.1em 0.65em;
  align-items: start;
  padding: 0.75em 0.85em;
  border-radius: 1.35em;
  background: rgba(40, 42, 52, 0.82);
  color: #F3F4F6;
  text-align: left;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.notif .ai { grid-row: span 2; }
.notif b { display: block; font-size: 0.92em; font-weight: 600; }
.notif p { grid-column: 2 / 4; margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 0.9em; line-height: 1.3; }
.notif time { color: rgba(255, 255, 255, 0.55); font-size: 0.75em; white-space: nowrap; }

.ai {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 0.6em;
  background: #0B0C0F;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #F3F4F6;
  font-weight: 800;
  font-size: 1em;
  line-height: 1;
}
.ai span { display: inline-flex; align-items: baseline; font-size: 1.15em; letter-spacing: -0.04em; }
.ai i { display: inline-block; width: 0.26em; height: 0.26em; margin-left: 0.04em; border-radius: 50%; background: #A78BFA; }

/* a single notification floating next to a phone */
.float {
  position: absolute;
  z-index: 3;
  left: 5%;
  right: 5%;
  top: 9%;
  font-size: 12px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.7);
}
@media (min-width: 640px) {
  .float { left: -16%; right: 12%; font-size: 13px; }
}
@media (min-width: 960px) {
  .float { left: -26%; right: 16%; top: 10%; font-size: 14px; }
}
.device-anchor { position: relative; }

/* camera scanner */
.cam {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 45% at 50% 42%, #3a3229, transparent 75%),
    linear-gradient(180deg, #1b1916, #0d0c0b);
}
.cam .tcg { position: absolute; top: 19%; left: 27%; width: 46%; transform: rotate(-5deg); }
.reticle {
  position: absolute;
  top: 15.5%;
  left: 20%;
  right: 20%;
  aspect-ratio: 63 / 88;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 1.6em 0.22em no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 0 / 0.22em 1.6em no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 0 / 1.6em 0.22em no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 0 / 0.22em 1.6em no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 100% / 1.6em 0.22em no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 100% / 0.22em 1.6em no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 1.6em 0.22em no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 0.22em 1.6em no-repeat;
}
.cam-top { position: absolute; z-index: 3; top: 3.9em; left: 0; right: 0; display: flex; justify-content: center; }
.cam-top .pill { font-size: 0.78em; padding: 0.4em 0.8em; background: rgba(20, 20, 24, 0.75); color: #F3F4F6; }

/* deal builder */
.deal { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; }
.side { padding: 0.75em; border-radius: 1em; background: var(--surface); }
.side small { display: block; color: var(--text2); font-size: 0.76em; font-weight: 600; }
.side .fan { display: flex; margin: 0.6em 0 0.7em; padding-left: 0.1em; }
.side .fan .tcg { width: 34%; margin-right: -12%; }
.side .tot { font-size: 1.2em; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.side .meta { color: var(--text3); font-size: 0.72em; }
.verdict {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 0.6em;
  padding: 0.8em 0.85em;
  border-radius: 1em;
  background: var(--up-soft);
}
.verdict .vd { flex: none; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--up); }
.verdict .vd::before { content: ""; width: 0.8em; height: 0.42em; margin-top: -0.15em; border-left: 0.16em solid #0B0C0F; border-bottom: 0.16em solid #0B0C0F; transform: rotate(-45deg); }
.verdict b { display: block; color: var(--up); font-weight: 700; }
.verdict small { display: block; color: var(--text2); font-size: 0.8em; }

/* trade timeline */
.tl { margin: 0; padding: 0; list-style: none; }
.tl li { position: relative; padding: 0 0 1.05em 1.9em; }
.tl li::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0.2em;
  top: 0.2em;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  background: var(--up);
}
.tl li::after {
  content: "";
  position: absolute;
  left: 0.6em;
  top: 1.2em;
  bottom: 0.1em;
  width: 0.1em;
  background: var(--line);
}
.tl li:last-child::after { display: none; }
.tl li.now::before { background: var(--accent); box-shadow: 0 0 0 0.3em var(--accent-soft); }
.tl li.todo::before { background: transparent; box-shadow: inset 0 0 0 0.14em var(--text3); }
.tl b { display: block; font-weight: 600; }
.tl small { display: block; color: var(--text2); font-size: 0.8em; }

/* in-person swap code */
.qr { width: 62%; margin: 0.4em auto 0; padding: 0.7em; border-radius: 1em; background: #FFFFFF; }
.qr svg { display: block; width: 100%; height: auto; }
.code { margin-top: 0.55em; text-align: center; font-family: var(--mono); font-size: 1.65em; font-weight: 700; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }

/* store-finder map */
.map { position: absolute; inset: 0; }
.map svg { display: block; width: 100%; height: 100%; }
.map .land { fill: #14161B; }
.map .block { fill: #1A1D23; }
.map .park { fill: #15241B; }
.map .water { fill: #0F2236; }
.map .road { fill: none; stroke: #2B2F38; stroke-linecap: round; }
.map .road-major { stroke: #353A45; }
.map .pin circle.halo { fill: #0B0C0F; }
.map .k-shop { fill: #FF9F0A; }
.map .k-retail { fill: #0A84FF; }
.map .k-vendr { fill: #30D158; }
.map .pin .tick { fill: none; stroke: #0B0C0F; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.map .glyph { fill: #0B0C0F; }
.map .here { fill: #A78BFA; fill-opacity: 0.18; }
.mapbar { position: absolute; z-index: 3; top: 3.6em; left: 0.6em; right: 0.6em; display: flex; flex-wrap: wrap; gap: 0.35em; }
.mapbar .pill { padding: 0.42em 0.7em; background: rgba(21, 23, 28, 0.9); color: var(--text); font-size: 0.72em; }
.mapbar .pill i { width: 0.65em; height: 0.65em; border-radius: 50%; background: var(--k); }
.acts { display: flex; gap: 0.4em; margin-top: 0.7em; }
.acts span { flex: 1; padding: 0.62em 0; border-radius: 0.75em; background: var(--raised); color: var(--accent); font-size: 0.8em; font-weight: 600; text-align: center; }
.acts .pri { background: var(--accent); color: var(--on-accent); }
.vbar { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; margin-bottom: 0.7em; padding: 0.6em 0.8em; border-radius: 0.9em; background: var(--accent-soft); color: var(--accent); font-size: 0.82em; font-weight: 600; }
.place-meta { color: var(--text2); font-size: 0.82em; }
.place-meta .up { font-weight: 600; }

/* 3D slab (CSS stand-in for the app's real 3D viewer) */
.slab-stage {
  display: flex;
  justify-content: center;
  padding: clamp(40px, 2rem + 3vw, 72px) 0;
  border-radius: 28px;
  background:
    radial-gradient(55% 50% at 50% 45%, rgba(167, 139, 250, 0.22), transparent 70%),
    #0B0C0F;
  perspective: 1100px;
  overflow: hidden;
}
.slab {
  position: relative;
  width: min(232px, 58vw);
  aspect-ratio: 84 / 136;
  padding: 7% 7.5%;
  border-radius: 6% / 3.7%;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 35%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0.14));
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.3),
    inset 0 0 0 7px rgba(255, 255, 255, 0.05),
    inset 0 0 30px rgba(167, 139, 250, 0.12),
    var(--shadow-device);
  transform: rotateY(-18deg) rotateX(5deg);
  transform-style: preserve-3d;
  font-size: min(14px, 3.6vw);
}
.slab-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  height: 18%;
  padding: 0 0.75em;
  border-radius: 0.35em;
  background: linear-gradient(180deg, #F4F5F7, #DADCE2);
  color: #15171C;
}
.slab-label .lines { flex: 1; display: grid; gap: 0.32em; }
.slab-label .lines i { display: block; height: 0.32em; border-radius: 1px; background: #8C909A; }
.slab-label .lines i:nth-child(1) { width: 92%; background: #3C4049; }
.slab-label .lines i:nth-child(2) { width: 70%; }
.slab-label .lines i:nth-child(3) {
  width: 62%;
  height: 0.7em;
  background: repeating-linear-gradient(90deg, #15171C 0 1px, transparent 1px 3px, #15171C 3px 5px, transparent 5px 6px);
}
.slab-label .grade { text-align: center; line-height: 1; }
.slab-label .grade small { display: block; font-size: 0.6em; font-weight: 700; letter-spacing: 0.08em; color: #4B505A; }
.slab-label .grade b { display: block; font-size: 1.9em; font-weight: 800; letter-spacing: -0.04em; }
.slab-well {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78%;
  margin-top: 6%;
  border-radius: 0.4em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.slab-well .tcg { width: 86%; }
.slab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.16) 45%, transparent 58%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .slab { animation: slab-turn 7s ease-in-out infinite alternate; }
  .slab::after { animation: slab-glare 7s ease-in-out infinite alternate; }
}
@keyframes slab-turn {
  from { transform: rotateY(-24deg) rotateX(6deg); }
  to { transform: rotateY(24deg) rotateX(3deg); }
}
@keyframes slab-glare {
  from { background-position: -120px 0; }
  to { background-position: 120px 0; }
}

/* Smallest phones: keep the picture inside the screen. */
@media (max-width: 359px) {
  .phone { --pw: min(300px, 80vw); }
  .device-pair .phone { --pw: 42vw; }
}

/* ---------- Pages: open, 404 ---------- */

.center-page {
  display: grid;
  align-content: center;
  min-height: calc(100vh - var(--header-h) - 260px);
  padding-block: clamp(48px, 2rem + 6vw, 128px);
}
.center-page h1 { margin-bottom: 16px; }
.center-page .badge, .center-page > .eyebrow { justify-self: start; margin-bottom: 18px; }
.center-page .fine { margin-top: 16px; }
.center-page .lede { margin-bottom: 16px; }
.center-page .btn-row { margin-top: 20px; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer nav, .menu, .toc-side, .toc-mobile, .skip, .device, .slab-stage { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
