/* komp.tcg — the slab and the tape.
   Dark ink stage, real data rendered as live components, monochrome brand,
   colour only for gain/loss and sale type. 12-col grid, 1200px, hairline sections. */
:root {
  --ink: #0b0f16;
  --ink-2: #111722;
  --ink-3: #1b2433;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .20);
  --paper: #f5f6f8;
  --paper-2: #a9b0bc;
  --paper-3: #6c7482;
  --gain: #3fcf6e;
  --loss: #ef5a52;
  --auction: #6ea8ff;
  --bin: #3fcf6e;
  --offer: #f0883e;
  --glass: rgba(27, 36, 51, .70);
  --shadow: 0 16px 32px -16px rgba(0, 0, 0, .55);
  --chip-shadow: 0 12px 32px -8px rgba(0, 0, 0, .7);

  --f-display: "Saira Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 24px;
  --rhythm: 128px;
  --max: 1200px;
  --radius: 16px;
  color-scheme: dark;
}

/* Legal + support pages: theme-aware, light first. */
:root.legal {
  --ink: #ffffff;
  --ink-2: #f5f6f8;
  --ink-3: #eceef2;
  --line: #e5e5ea;
  --line-2: #d1d1d6;
  --paper: #11181c;
  --paper-2: #636366;
  --paper-3: #8e8e93;
  --gain: #2e8b3e;
  --glass: rgba(255, 255, 255, .78);
  --shadow: 0 20px 50px -20px rgba(17, 24, 28, .25);
  --chip-shadow: 0 10px 24px -10px rgba(17, 24, 28, .25);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root.legal {
    --ink: #0b0f16;
    --ink-2: #111722;
    --ink-3: #1b2433;
    --line: rgba(255, 255, 255, .10);
    --line-2: rgba(255, 255, 255, .20);
    --paper: #f5f6f8;
    --paper-2: #a9b0bc;
    --paper-3: #6c7482;
    --gain: #3fcf6e;
    --glass: rgba(27, 36, 51, .70);
    --shadow: 0 16px 32px -16px rgba(0, 0, 0, .55);
    --chip-shadow: 0 12px 32px -8px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; --rhythm: 80px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (max-width: 480px) { body { font-size: 16px; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--paper); color: var(--ink); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type scale ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-3);
  line-height: 1.4;
}
.h1, .h2, .h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: .98; text-wrap: balance; }
.h1 { font-size: clamp(2.9rem, 8vw, 6.5rem); }
.h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--paper-2); max-width: 46ch; text-wrap: pretty; }
.copy { color: var(--paper-2); max-width: 62ch; text-wrap: pretty; }
.copy strong, .lede strong { color: var(--paper); font-weight: 500; }
.stack { display: flex; flex-direction: column; }
.head { display: flex; flex-direction: column; gap: 20px; }
.head .eyebrow + .h2 { margin-top: -4px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 22px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--paper-2); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform .15s, opacity .15s;
}
.pill:hover { opacity: .9; }
.nav .pill { margin-left: 4px; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .pill { margin-left: auto; }
}

/* ---------- sections ---------- */
.sec { padding-block: var(--rhythm); border-top: 1px solid var(--line); }
.sec-tight { padding-block: calc(var(--rhythm) * .5); }

/* ---------- App Store badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 16px;
  background: #000; color: #fff;
  border: 1px solid #a6a6a6; border-radius: 12px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  transition: border-color .15s, transform .15s;
}
.badge:hover { border-color: #fff; }
.badge svg { width: 26px; height: 32px; fill: #fff; flex: none; margin-top: -3px; }
.badge span { display: flex; flex-direction: column; line-height: 1; }
.badge small { font-size: 11px; letter-spacing: .01em; }
.badge b { font-size: 23px; font-weight: 600; letter-spacing: -.02em; margin-top: 3px; }
/* Quiet secondary CTA beside the badge: the web app (app.komptcg.com). */
.web-link { font-size: 15px; font-weight: 500; color: var(--paper-2); text-decoration: none; transition: color .15s; }
.web-link:hover, .web-link:focus-visible { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.final .web-link { margin-top: -12px; }

/* ---------- phone frame ---------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 390 / 844;
  border-radius: 54px;
  padding: 10px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.phone .screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 44px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.phone .status {
  flex: none; height: 11.5%; position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4% 9% 0 11%;
  font: 600 14px/1 -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif; color: #000;
}
.phone .status::before {
  content: ""; position: absolute; left: 50%; top: 22%; transform: translateX(-50%);
  width: 32%; height: 34%; border-radius: 999px; background: #000;
}
.phone .status i { display: flex; gap: 4px; align-items: center; }
.phone .status i b { display: block; background: #000; border-radius: 2px; }
.phone .screen img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top center; }
.phone.short { aspect-ratio: 390 / 690; }
@media (max-width: 480px) {
  .phone { max-width: 280px; border-radius: 44px; padding: 8px; }
  .phone .screen { border-radius: 36px; }
  .phone .status { font-size: 11px; }
}

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--ink-3); border: 1px solid var(--line-2);
  box-shadow: var(--chip-shadow);
  font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums;
  white-space: nowrap; color: var(--paper);
}
.chip .k { color: var(--paper-3); letter-spacing: .12em; font-size: 11px; }
.chip .bin { color: var(--bin); }
.chip .sep { color: var(--paper-3); }

/* ---------- hero ---------- */
.hero { padding-block: 96px 112px; }
.hero .grid { align-items: center; row-gap: 72px; }
.hero-copy { grid-column: 1 / span 8; display: flex; flex-direction: column; gap: 28px; }
.hero .h1 { font-size: clamp(2.9rem, 6.2vw, 5.75rem); line-height: .96; }
@media (min-width: 900px) { .hero .h1 .l { white-space: nowrap; } }
.hero .h1 .l { display: block; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-top: 12px; }
.hero-cta .mono { font-size: 13px; color: var(--paper-3); letter-spacing: .04em; }
.hero-device { grid-column: 9 / span 4; display: flex; justify-content: center; --hang-l: 999px; --hang-r: 999px; }
.device { position: relative; width: 100%; max-width: 340px; }
.device .phone { max-width: none; }
.device .chip { position: absolute; }
/* chips hang ~40% outside the bezel, clamped to the room the viewport has */
.device .c1 { left: 0; top: 86.5%; transform: translate(calc(-1 * min(40%, var(--hang-l))), -50%); }
.device .c2 { right: 0; top: 57%; transform: translate(min(40%, var(--hang-r)), -50%); }
@media (max-width: 1100px) {
  .hero-copy { grid-column: 1 / span 8; }
  .hero-device { grid-column: 9 / span 4; }
  .hero-device { --hang-r: 18px; }
}
@media (max-width: 899px) {
  .hero { padding-block: 56px 80px; }
  .hero-copy, .hero-device { grid-column: 1 / -1; }
  .hero-device { --hang-l: calc((100vw - 48px - 340px) / 2 - 4px); --hang-r: calc((100vw - 48px - 340px) / 2 - 4px); }
}
@media (max-width: 480px) {
  .hero .h1 .l { display: inline; }
  .device { max-width: 280px; }
  .hero-device { --hang-l: calc((100vw - 32px - 280px) / 2 - 4px); --hang-r: calc((100vw - 32px - 280px) / 2 - 4px); }
  .device .chip .x { display: none; }
  .chip { font-size: 11.5px; padding: 8px 11px; gap: 8px; }
  .chip .k { font-size: 10px; }
}

/* load sequence */
@media (prefers-reduced-motion: no-preference) {
  .hero .h1 .l, .hero .rise { animation: rise .6s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero .h1 .l:nth-child(2) { animation-delay: 90ms; }
  .hero .h1 .l:nth-child(3) { animation-delay: 180ms; }
  .hero .rise { animation-delay: 270ms; }
  .hero .rise + .rise { animation-delay: 360ms; }
  .hero-device { animation: rise .8s .2s cubic-bezier(.2, .7, .2, 1) backwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); }
.ticker .wrap { display: flex; align-items: center; gap: 32px; height: 88px; }
.ticker .eyebrow { flex: none; width: 172px; }
.marquee {
  flex: 1; min-width: 0; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-set { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.src { display: flex; align-items: center; gap: 8px; opacity: .65; flex: none; height: 32px; color: var(--paper); white-space: nowrap; }
.src img { width: auto; }
.src .t { font-family: var(--f-body); font-weight: 600; font-size: 21px; letter-spacing: -.01em; line-height: 1; }
.src .t-mono { font-family: var(--f-mono); font-size: 14px; font-weight: 500; letter-spacing: .1em; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: tape 40s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-set[aria-hidden] { display: none; }
  .marquee-set { flex-wrap: wrap; gap: 20px 40px; }
  .marquee-track { width: auto; }
}
@keyframes tape { to { transform: translateX(-50%); } }
@media (max-width: 700px) {
  .ticker .wrap { flex-direction: column; align-items: flex-start; height: auto; padding-block: 20px; gap: 14px; }
  .ticker .eyebrow { width: auto; }
  .marquee { width: 100%; }
  .marquee-set { gap: 44px; padding-right: 44px; }
}

/* ---------- scan ---------- */
.scan .grid { row-gap: 56px; align-items: center; }
.scan-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 32px; }
.scan-stage { grid-column: 7 / span 6; }
.steps { display: flex; flex-direction: column; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 13px; color: var(--paper-3); padding-top: 3px; }
.steps b { display: block; font-weight: 500; color: var(--paper); }
.steps span { color: var(--paper-2); font-size: .94em; }
.aside { font-size: 15px; color: var(--paper-3); max-width: 46ch; }
@media (max-width: 960px) {
  .scan-copy, .scan-stage { grid-column: 1 / -1; }
}

/* result component */
.result {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden;
}
.r-head { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 24px 24px 20px; }
.r-name { font-family: var(--f-display); font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -.01em; }
.r-set { grid-column: 1 / -1; color: var(--paper-2); font-size: 15px; }
.r-cert { text-align: right; font-family: var(--f-mono); font-size: 12px; color: var(--paper-3); letter-spacing: .08em; line-height: 1.5; }
.r-cert b { display: block; color: var(--paper); font-weight: 400; font-size: 14px; letter-spacing: .02em; }
.r-tiles { display: grid; grid-template-columns: 1fr 1fr 1.4fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.r-tiles > div { padding: 16px 24px; display: flex; flex-direction: column; gap: 6px; }
.r-tiles > div + div { border-left: 1px solid var(--line); }
.r-tiles .eyebrow { font-size: 11px; }
.r-tiles .v { font-family: var(--f-mono); font-size: 17px; font-variant-numeric: tabular-nums; }
.r-tiles .v-big { font-size: 28px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.r-bar { display: flex; align-items: center; gap: 14px; padding: 14px 24px; font-family: var(--f-mono); font-size: 12px; color: var(--paper-3); letter-spacing: .08em; text-transform: uppercase; }
.r-bar .track { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.r-bar .track i { display: block; height: 100%; width: 100%; background: var(--paper); border-radius: 3px; transform-origin: left; }
.r-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.r-table th { text-align: left; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper-3); padding: 12px 24px; border-top: 1px solid var(--line); }
.r-table td { padding: 16px 24px; border-top: 1px solid var(--line); font-size: 15px; white-space: nowrap; }
.r-table td.p { font-family: var(--f-mono); font-size: 16px; }
.r-table td.d { font-family: var(--f-mono); font-size: 13px; color: var(--paper-2); text-align: right; }
.r-table th:last-child { text-align: right; }
.r-table s { color: var(--paper-3); text-decoration-thickness: 1px; }
.t-badge { display: inline-block; font: 500 11px/1 var(--f-mono); letter-spacing: .1em; padding: 6px 8px; border-radius: 6px; text-transform: uppercase; }
.t-auction { color: var(--auction); background: color-mix(in srgb, var(--auction) 14%, transparent); }
.t-bin { color: var(--bin); background: color-mix(in srgb, var(--bin) 14%, transparent); }
.t-offer { color: var(--offer); background: color-mix(in srgb, var(--offer) 14%, transparent); }
.r-foot { padding: 14px 24px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--paper-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
  .result.play .r-bar .track i { animation: fill .9s cubic-bezier(.4, 0, .2, 1) backwards; }
  .result.play .r-bar .pct { animation: fadein .2s .9s backwards; }
  .result.play tbody tr { animation: rowin .45s cubic-bezier(.2, .7, .2, 1) backwards; }
  .result.play tbody tr:nth-child(1) { animation-delay: .95s; }
  .result.play tbody tr:nth-child(2) { animation-delay: 1.07s; }
  .result.play tbody tr:nth-child(3) { animation-delay: 1.19s; }
}
@keyframes fill { from { transform: scaleX(0); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 560px) {
  .r-head, .r-bar, .r-foot { padding-inline: 16px; }
  .r-head { grid-template-columns: 1fr; }
  .r-cert { text-align: left; }
  .r-cert b { display: inline; margin-left: 8px; }
  .r-name { font-size: 1.75rem; }
  .r-tiles { grid-template-columns: 1fr 1fr; }
  .r-tiles > div { padding: 14px 16px; }
  .r-tiles .avg { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); }
  .r-table th, .r-table td { padding-inline: 10px; }
  .r-table th:first-child, .r-table td:first-child { padding-left: 16px; }
  .r-table th:last-child, .r-table td:last-child { padding-right: 16px; }
  .r-table td { font-size: 14px; }
  .r-table td.p { font-size: 14px; }
  .r-table td.d { font-size: 12px; }
  .r-table .src-col { display: none; }
  .t-badge { font-size: 10px; padding: 5px 6px; letter-spacing: .06em; }
}

/* ---------- history (data stage) ---------- */
.history .head { margin-bottom: 48px; max-width: 760px; }
.stage { background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px 0; }
.stage-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.card-id { display: flex; flex-direction: column; gap: 8px; }
.card-id .h3 { font-size: 1.625rem; }
.card-id .mono { color: var(--paper-3); font-size: 12px; letter-spacing: .08em; }
.kv-pill { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--f-mono); font-size: 13px; }
.kv-pill .k { color: var(--paper-3); font-size: 11px; letter-spacing: .14em; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.price-big { font-family: var(--f-mono); font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-meta { display: flex; gap: 14px; align-items: baseline; margin-top: 10px; font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.loss { color: var(--loss); }
.gain { color: var(--gain); }
.muted { color: var(--paper-3); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; gap: 2px; }
.seg span { font-family: var(--f-mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; color: var(--paper-3); }
.seg span[aria-current] { background: var(--ink-3); color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.chart { position: relative; margin-top: 24px; height: 360px; touch-action: pan-y; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart text { font-family: var(--f-mono); font-size: 11px; fill: var(--paper-3); font-variant-numeric: tabular-nums; }
.chart .end-price { fill: var(--paper); font-size: 13px; font-weight: 500; }
.chart .end-delta { fill: var(--loss); font-size: 13px; }
.chart:focus-visible { outline-offset: 6px; }
.tip {
  position: absolute; top: 0; pointer-events: none; transform: translate(-50%, -100%);
  background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px;
  font-family: var(--f-mono); font-size: 12px; white-space: nowrap; box-shadow: var(--chip-shadow);
  font-variant-numeric: tabular-nums;
}
.tip span { color: var(--paper-3); margin-right: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: 20px -32px 0; }
.stats > div { padding: 20px 32px; display: flex; flex-direction: column; gap: 6px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats .v { font-family: var(--f-mono); font-size: 20px; font-variant-numeric: tabular-nums; }
.stage-note { margin-top: 16px; font-family: var(--f-mono); font-size: 12px; color: var(--paper-3); }
@media (max-width: 640px) {
  .stage { padding: 20px 16px 0; }
  .chart { height: 240px; }
  .stats { margin-inline: -16px; }
  .stats > div { padding: 16px; }
  .stats .v { font-size: 16px; }
  .stats .eyebrow { font-size: 10px; letter-spacing: .1em; }
}

/* ---------- market ---------- */
.market .head { margin-bottom: 48px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-rows: auto 1fr; transition: transform .2s; }
.tile:hover { transform: translateY(-2px); }
.tile-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.tile-h .eyebrow { color: var(--paper); }
.tile-h .scope { font-family: var(--f-mono); font-size: 11px; color: var(--paper-3); letter-spacing: .08em; }
.rows { display: grid; grid-template-rows: repeat(3, 1fr); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 16px 20px; }
.row + .row { border-top: 1px solid var(--line); }
.row .n { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .m { font-family: var(--f-mono); font-size: 12px; color: var(--paper-3); grid-row: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .p { font-family: var(--f-mono); font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.row .d { font-family: var(--f-mono); font-size: 12px; text-align: right; grid-row: 2; grid-column: 2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.caption { margin-top: 16px; font-family: var(--f-mono); font-size: 12px; color: var(--paper-3); max-width: 90ch; line-height: 1.6; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin-top: 64px; }
.features > div { padding-block: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.features b { font-weight: 500; }
.features p { color: var(--paper-2); font-size: 15px; }
@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}

/* ---------- auctions ---------- */
.auctions .head { margin-bottom: 48px; }
.auc-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: end; margin-bottom: 48px; }
.auc-intro .head { grid-column: 1 / span 7; margin: 0; }
.auc-intro .copy { grid-column: 9 / span 4; font-size: 15px; }
.rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.slab { border: 1px solid var(--line-2); border-radius: 14px; background: var(--ink-2); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s; }
.slab:hover { transform: translateY(-2px); }
.slab-label { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; background: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.slab-label .l1 { font-family: var(--f-mono); font-size: 11px; color: var(--paper-2); letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.slab-label .l1 b { display: block; color: var(--paper); font-weight: 500; font-size: 12.5px; letter-spacing: .04em; }
.slab-label .g { text-align: right; font-family: var(--f-mono); line-height: 1.1; }
.slab-label .g small { display: block; font-size: 10px; color: var(--paper-3); letter-spacing: .14em; }
.slab-label .g b { font-family: var(--f-display); font-size: 30px; font-weight: 700; }
.slab-body { padding: 18px 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex: 1; }
.slab-body .eyebrow { font-size: 10.5px; }
.slab-body .bid { font-family: var(--f-mono); font-size: 26px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.slab-body .meta { text-align: right; font-family: var(--f-mono); font-size: 12px; color: var(--paper-2); line-height: 1.7; font-variant-numeric: tabular-nums; }
.slab-body .meta b { color: var(--paper); font-weight: 400; }
.auc-feats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; margin-top: 56px; }
.auc-feats li { padding-block: 20px; border-top: 1px solid var(--line); }
.auc-feats b { display: block; font-weight: 500; margin-bottom: 4px; }
.auc-feats p { color: var(--paper-2); font-size: 15px; }
.auc-feats .q { font-family: var(--f-mono); font-size: 13px; color: var(--paper); }
.src-line { margin-top: 40px; display: flex; gap: 10px 20px; flex-wrap: wrap; align-items: center; }
.src-line .mono { font-size: 13px; color: var(--paper-2); }
@media (max-width: 960px) {
  .auc-intro .head, .auc-intro .copy { grid-column: 1 / -1; }
  .rail { grid-template-columns: 1fr; }
  .auc-feats { grid-template-columns: 1fr; }
  .auc-feats li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 4px 24px; }
}
@media (max-width: 560px) { .auc-feats li { grid-template-columns: 1fr; } }

/* ---------- tracker ---------- */
.tracker .grid { align-items: center; row-gap: 64px; }
.tracker-device { grid-column: 1 / span 5; display: flex; justify-content: center; }
.tracker-copy { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 28px; }
.notif {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 12px; align-items: start;
  padding: 14px 16px; border-radius: 22px;
  background: var(--ink-3); border: 1px solid var(--line-2);
  box-shadow: var(--chip-shadow); max-width: 440px;
}
.notif img { width: 40px; height: 40px; border-radius: 10px; grid-row: span 3; }
.notif .app { font-size: 13px; color: var(--paper-2); font-weight: 500; letter-spacing: .02em; }
.notif .when { font-size: 13px; color: var(--paper-3); }
.notif .t { grid-column: 2 / -1; font-weight: 600; font-size: 15px; line-height: 1.3; }
.notif .b { grid-column: 2 / -1; font-family: var(--f-mono); font-size: 14px; color: var(--paper-2); font-variant-numeric: tabular-nums; }
.notif .b .gain { font-weight: 500; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line); }
.ticks li { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--paper-2); }
.ticks li b { color: var(--paper); font-weight: 500; display: block; font-size: 16px; }
@media (max-width: 899px) {
  .tracker-device, .tracker-copy { grid-column: 1 / -1; }
  .tracker-device { order: 2; }
}
@media (max-width: 480px) { .ticks { grid-template-columns: 1fr; } }

/* ---------- three compact cards ---------- */
.trio { display: grid; grid-template-columns: 7fr 5fr; gap: 16px; }
.trio-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.mini { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.mini.raised { background: var(--ink-2); }
.mini .h3 { font-size: 1.375rem; }
.mini p:not(.eyebrow) { color: var(--paper-2); font-size: 15px; }
.ll { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.ll th { text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-3); padding: 0 0 10px; }
.ll td { padding: 10px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.ll td:nth-child(2) { color: var(--paper-2); font-size: 13px; }
.ll td.gain { color: var(--gain); }
.ll td:last-child, .ll th:last-child { text-align: right; }
.deal { display: inline-block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; }
.deal.good { color: var(--gain); background: color-mix(in srgb, var(--gain) 14%, transparent); }
.deal.fair { color: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.mini p.mini-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--paper-3); letter-spacing: .04em; }
.big-num { font-family: var(--f-display); font-weight: 700; font-size: 3rem; line-height: 1; letter-spacing: -.02em; }
@media (max-width: 960px) { .trio { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mini { padding: 20px 16px; } }

/* ---------- graders & games ---------- */
.strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: center; }
.strip .lbl { grid-column: 1 / span 3; }
.strip .marks { grid-column: 4 / -1; display: flex; align-items: center; gap: 24px 56px; flex-wrap: wrap; }
.marks .psa { font-family: var(--f-display); font-weight: 700; font-size: 34px; letter-spacing: .02em; line-height: 1; }
.marks img { opacity: .9; width: auto; }
.strip .games { display: flex; gap: 10px; flex-wrap: wrap; }
.games span { font-family: var(--f-mono); font-size: 14px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; }
.strip .copy { grid-column: 4 / -1; }
@media (max-width: 760px) {
  .strip .lbl, .strip .marks, .strip .copy { grid-column: 1 / -1; }
  .strip { row-gap: 18px; }
  .strip .copy, .strip .lbl.second { margin-top: 24px; }
  .strip .marks { gap: 20px 24px; }
  .marks .psa { font-size: 30px; }
}

/* ---------- unlimited ---------- */
.unl .grid { row-gap: 48px; }
.unl .head { grid-column: 1 / span 5; }
.unl-side { grid-column: 7 / span 6; }
.unl-list { border-top: 1px solid var(--line); }
.unl-list li { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 8px 24px; padding-block: 24px; border-bottom: 1px solid var(--line); align-items: baseline; }
.unl-list b { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.unl-list span { color: var(--paper-2); }
.unl .fine { margin-top: 24px; font-family: var(--f-mono); font-size: 13px; color: var(--paper-3); }
@media (max-width: 899px) {
  .unl .head, .unl-side { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .unl-list li { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq .grid { row-gap: 40px; }
.faq .head { grid-column: 1 / span 4; }
.faq-list { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 22px; font-weight: 500; font-size: 1.0625rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--f-mono); font-size: 20px; color: var(--paper-3); line-height: 1; transition: transform .2s; flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--paper-2); padding-bottom: 24px; max-width: 60ch; margin-top: -6px; }
@media (max-width: 899px) { .faq .head, .faq-list { grid-column: 1 / -1; } }

/* ---------- final CTA ---------- */
.final { text-align: center; }
.final .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.final .appicon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 0 0 1px var(--line-2), var(--chip-shadow); }
.final .h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 14ch; }
.final .mono { font-size: 13px; color: var(--paper-3); letter-spacing: .04em; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 56px 48px; font-size: 14px; color: var(--paper-2); }
.foot .top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 28px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--paper); }
.foot .meta { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.foot .meta p { max-width: 90ch; }
.foot .mail { font-family: var(--f-mono); color: var(--paper); user-select: all; -webkit-user-select: all; }
.foot .tm { font-size: 12px; color: var(--paper-3); margin-top: 8px; }

/* ---------- legal / support pages ---------- */
.page { padding-block: 80px var(--rhythm); }
.page .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.page .side { grid-column: 1 / span 3; }
.page .side .eyebrow { position: sticky; top: 96px; }
.page .main { grid-column: 4 / span 7; min-width: 0; }
.page .h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin-bottom: 20px; }
@media (max-width: 899px) {
  .page { padding-block: 48px var(--rhythm); }
  .page .side, .page .main { grid-column: 1 / -1; }
  .page .side { margin-bottom: 16px; }
}
.prose { max-width: 65ch; color: var(--paper); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.875rem; line-height: 1.05; letter-spacing: -.01em; margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--line); text-wrap: balance; }
.prose h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose p, .prose li { color: var(--paper-2); }
.prose strong { color: var(--paper); font-weight: 500; }
.prose ul { display: flex; flex-direction: column; gap: .75em; padding-left: 1.25em; list-style: disc; }
.prose li::marker { color: var(--paper-3); }
.prose .updated { font-family: var(--f-mono); font-size: 13px; color: var(--paper-3); font-style: normal; }
.legal .brand .ink { display: block; }
.legal .brand .wht { display: none; }
@media (prefers-color-scheme: dark) {
  .legal .brand .ink { display: none; }
  .legal .brand .wht { display: block; }
}
.brand .ink { display: none; }

.contact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--ink-2); max-width: 520px; }
.contact .addr { font-family: var(--f-mono); font-size: 18px; user-select: all; -webkit-user-select: all; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--paper); font: 500 14px/1 var(--f-body); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--ink-3); }
.help-list { border-top: 1px solid var(--line); margin-top: 8px; }
.help-list li { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 4px 24px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.help-list b { font-weight: 500; }
.help-list span { color: var(--paper-2); }
.help-list .path { font-family: var(--f-mono); font-size: 14px; color: var(--paper); }
@media (max-width: 560px) { .help-list li { grid-template-columns: 1fr; } }
.support-sec { margin-top: 64px; }
.support-sec > .eyebrow { margin-bottom: 16px; }
.legal .faq-list { grid-column: auto; }

/* 404 */
.nf { min-height: 60vh; display: flex; align-items: center; padding-block: 96px; }
.nf .wrap { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.nf .code { font-family: var(--f-mono); color: var(--paper-3); font-size: 14px; letter-spacing: .14em; }
.prose h4 { font-weight: 500; font-size: 1rem; margin-top: 1.4em; color: var(--paper); }
.prose a { color: var(--paper); }
.page .copy { font-size: 1.125rem; }
.nf .h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); max-width: 16ch; }
.nf .wrap { width: 100%; }
@media (max-width: 480px) {
  .contact { padding: 16px; }
  .contact .addr { flex: 1 1 100%; font-size: 17px; }
}

/* ticker under reduced motion: one tidy wrapped row, no fade, nothing clipped */
@media (prefers-reduced-motion: reduce) {
  .ticker .marquee { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .ticker .marquee-set { flex-wrap: wrap; gap: 16px 40px; padding-right: 0; }
  .ticker .wrap { height: auto; padding-block: 24px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .ticker .marquee-set { gap: 14px 28px; }
  .ticker .src .t { font-size: 18px; }
}
