/*
  tokens.css is the only file allowed to hold colour literals.

  Palette provenance. Every value was clustered with k-means over decoded pixels
  and then snapped to the nearest real pixel, coordinates are (x,y) in the source file.
    --ink    brand/LOGO STRUCTURE PNG...png  glyph cluster (alpha >= 240, 321071 px), snapped at (1137,567); IHDR colourtype 6
    --peak   brand/LOGO STRUCTURE PNG.png    background cluster (91.7 percent of pixels), snapped at (0,0)
    --tint   reference/SAMPUL STRUCTURE JPG  lightest field cluster (43 percent), snapped at (596,0)
    --mid    reference/SAMPUL STRUCTURE JPG  large shape cluster (33 percent), snapped at (16,0)
    --soft   reference/STRUCTURE 1           corner shape cluster (8 percent), snapped at (1404,159)
    --paper  reference/STRUCTURE 1           card field cluster (25 percent), snapped at (66,29)
  The transparent logo holds 3,652,828 fully transparent pixels with RGB 0,0,0, so every
  resize of it is premultiplied (scripts/prep-assets.py).
*/
:root {
  --ink: #041928;
  --peak: #6ec2fe;
  --tint: #b5e1fc;
  --mid: #63baef;
  --soft: #87c8f0;
  --paper: #c4e8fe;

  --ink-80: color-mix(in srgb, var(--ink) 80%, transparent);
  --ink-60: color-mix(in srgb, var(--ink) 66%, transparent);
  --ink-14: color-mix(in srgb, var(--ink) 14%, transparent);
  --ink-07: color-mix(in srgb, var(--ink) 7%, transparent);

  --font-sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --sp-2xs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 20px;
  --sp-xl: 24px;
  --sp-2xl: 32px;
  --sp-3xl: 40px;
  --sp-4xl: 64px;
  --sp-page: 8px;
  --sp-inset: 20px;
  --radius: 8px;
  --tap: 44px;

  --t-h1: 36px;   --lh-h1: 40px;
  --t-h2: 32px;   --lh-h2: 38px;
  --t-h4: 18px;   --lh-h4: 22px;
  --t-b1: 16px;   --lh-b1: 20px;
  --t-b2: 14px;   --lh-b2: 22px;
  --t-b3: 12px;   --lh-b3: 16px;

  --ease-out-soft: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out-strong: cubic-bezier(.65, 0, .35, 1);
  --dur-reveal: 600ms;
}
@media (min-width: 768px) {
  :root {
    --t-h1: 64px; --lh-h1: 72px;
    --t-h2: 48px; --lh-h2: 56px;
    --t-h4: 20px; --lh-h4: 24px;
    --t-b1: 18px; --lh-b1: 24px;
    --t-b2: 16px; --lh-b2: 26px;
    --t-b3: 14px; --lh-b3: 16px;
    --sp-page: 16px;
    --sp-inset: 56px;
  }
}

/* Layout and motion values measured off the reference: 8px radius, 16px page gutter (8px under 768),
   20px / 56px inset, 600ms ease-out-soft fade-up of 8px, 1.4s strong ease-in-out, 600ms ripple. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 160px; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-b1); line-height: var(--lh-b1);
  background: var(--tint); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip { min-height: var(--tap); display: inline-flex; align-items: center; position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { left: 8px; }

/* progress */
#progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }

/* header + CA slot */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--tint) 88%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--ink-14); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); padding: 6px var(--sp-md) 6px var(--sp-page); min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: var(--sp-xs); min-height: var(--tap); padding: 0 var(--sp-xs); border-radius: var(--radius); }
.brand__mark { width: 40px; height: 40px; }
.brand__word { font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.socials { display: flex; align-items: center; gap: var(--sp-2xs); margin-left: auto; }
.icon-btn { width: var(--tap); height: var(--tap); display: inline-grid; place-items: center; border-radius: var(--radius); transition: background-color 200ms var(--ease-out-soft), transform 200ms var(--ease-out-soft); position: relative; overflow: hidden; }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
a.icon-btn:hover { background: var(--ink-07); transform: translateY(-1px); }
.icon-btn.is-inert { opacity: .38; cursor: not-allowed; }

.ca { display: flex; align-items: center; gap: var(--sp-2xs) var(--sp-sm); flex-wrap: wrap; padding: 6px var(--sp-md) 10px var(--sp-md); position: relative; }
.ca__label { font-size: var(--t-b3); line-height: var(--lh-b3); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); flex: none; }
.ca__value { display: flex; align-items: center; gap: var(--sp-sm); min-height: var(--tap); flex: 1 1 280px; min-width: 0; padding: 4px var(--sp-md); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--ink-14); text-align: left; position: relative; overflow: hidden; transition: background-color 200ms var(--ease-out-soft), border-color 200ms var(--ease-out-soft); }
.ca__addr { font-family: var(--font-mono); font-weight: 600; font-size: 17px; line-height: 22px; letter-spacing: -.01em; overflow-wrap: anywhere; word-break: break-all; flex: 1; min-width: 0; }
.ca__hint { flex: none; font-size: var(--t-b3); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); }
button.ca__value:hover { background: var(--peak); border-color: var(--ink); }
.ca__value.is-inert { cursor: not-allowed; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--ink-60); border-style: dashed; }
.ca__value.is-copied .ca__hint { background: var(--peak); color: var(--ink); }
.ca__toast { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* layout */
.page { padding: var(--sp-page); }
.stack { display: flex; flex-direction: column; gap: var(--sp-page); max-width: 1600px; margin: 0 auto; }
.first { display: flex; flex-direction: column; gap: var(--sp-page); min-height: calc(100svh - 2 * var(--sp-page) - 120px); }
.card { background: var(--paper); border-radius: var(--radius); }
.section { padding: var(--sp-3xl) var(--sp-inset); }
@media (min-width: 768px) { .section { padding: var(--sp-4xl) var(--sp-inset); } }
.head { display: flex; flex-direction: column; gap: var(--sp-lg); max-width: 960px; margin-bottom: var(--sp-3xl); }
.h1 { font-size: var(--t-h1); line-height: var(--lh-h1); letter-spacing: -.02em; font-weight: 700; max-width: 840px; }
.h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: -.02em; font-weight: 700; }
.h4 { font-size: var(--t-h4); line-height: var(--lh-h4); font-weight: 600; }
.sub { font-size: var(--t-h4); line-height: var(--lh-h4); color: var(--ink-60); font-weight: 400; }
.lead { font-size: var(--t-b1); line-height: var(--lh-b1); max-width: 560px; }
.body { font-size: var(--t-b1); line-height: var(--lh-b1); color: var(--ink-80); }
.eyebrow { font-size: var(--t-b3); line-height: var(--lh-b3); color: var(--ink-60); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); background: var(--peak); flex: 1; min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--sp-xl) var(--sp-inset) var(--sp-3xl); }
@media (min-width: 768px) { .hero { padding: var(--sp-3xl) var(--sp-inset) var(--sp-4xl); min-height: 560px; } }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.mesh { position: absolute; inset: -20%; filter: blur(60px); }
.mesh i { position: absolute; border-radius: 50%; display: block; will-change: transform; }
.mesh__a { width: 55%; height: 70%; left: 4%; top: 6%; background: radial-gradient(closest-side, var(--tint), transparent); animation: drift-a 18s var(--ease-in-out-strong) infinite alternate; }
.mesh__b { width: 50%; height: 60%; right: 2%; top: 20%; background: radial-gradient(closest-side, var(--paper), transparent); animation: drift-b 22s var(--ease-in-out-strong) infinite alternate; }
.mesh__c { width: 45%; height: 55%; left: 30%; bottom: -8%; background: radial-gradient(closest-side, var(--mid), transparent); animation: drift-c 26s var(--ease-in-out-strong) infinite alternate; }
@keyframes drift-a { to { transform: translate3d(14%, 10%, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-16%, -8%, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(-10%, -14%, 0) scale(1.2); } }
.hero__shapes { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shapes g { will-change: transform; }
.shape { fill: var(--mid); opacity: .85; }
.shape--right { fill: var(--soft); }
.shape--low { fill: var(--tint); opacity: .7; }
.hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); opacity: .06; mask-image: linear-gradient(180deg, transparent, var(--ink) 40%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, var(--ink) 40%, transparent); }
.hero__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-md); will-change: transform; }
@media (min-width: 768px) { .hero__body { gap: var(--sp-xl); } }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }

.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 4px 14px 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 72%, transparent); border: 1px solid var(--ink-14); font-size: var(--t-b3); line-height: var(--lh-b3); font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(6px); }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; animation: pulse 1.8s var(--ease-out-soft) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.pill[data-state="stale"] .dot, .pill[data-state="down"] .dot { background: transparent; border: 2px solid var(--ink); }
.pill[data-state="down"] .dot::after, .pill[data-state="stale"] .dot::after, .pill[data-state="idle"] .dot::after { animation: none; }

/* buttons */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 var(--sp-lg); border-radius: var(--radius); font-weight: 600; font-size: var(--t-b1); white-space: nowrap; transition: background-color 200ms var(--ease-out-soft), color 200ms var(--ease-out-soft), transform 200ms var(--ease-out-soft); }
@media (min-width: 768px) { .btn { min-height: 48px; padding: 0 var(--sp-xl); } }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--ink-80); }
.btn--ghost { border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.ripple { position: absolute; border-radius: 999px; background: currentColor; opacity: .2; pointer-events: none; transform: scale(0); animation: ripple 600ms var(--ease-out-soft) forwards; }
@keyframes ripple { to { opacity: 0; transform: scale(1); } }

/* strip */
.strip { display: flex; flex-direction: column; gap: var(--sp-lg); padding: var(--sp-md) var(--sp-inset); }
@media (min-width: 768px) { .strip { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--sp-xl) var(--sp-inset); } }
.strip__left { display: flex; flex-direction: column; gap: var(--sp-sm); }
@media (min-width: 768px) { .strip__left { flex-direction: row; align-items: center; gap: var(--sp-xl); } }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-xs); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--tint); border: 1px solid var(--ink-14); font-size: var(--t-b2); line-height: 1; font-weight: 600; }
.chip__k { color: var(--ink-60); font-weight: 500; }
.chip--inert { border-style: dashed; background: transparent; color: var(--ink-60); }
.link { display: inline-flex; align-items: center; gap: var(--sp-2xs); min-height: var(--tap); font-weight: 600; font-size: var(--t-b2); text-decoration: underline; text-decoration-color: var(--ink-60); text-underline-offset: 4px; transition: text-decoration-color 200ms var(--ease-out-soft); }
.link:hover { text-decoration-color: currentColor; }
.arrow { width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v10M3.5 8 8 12.5 12.5 8' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v10M3.5 8 8 12.5 12.5 8' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat; }

/* spotlight */
.spot { position: relative; overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms var(--ease-out-soft); background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--peak) 70%, transparent), transparent 70%); z-index: 0; }
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-xs); margin-bottom: var(--sp-xs); }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--paper); border-radius: var(--radius); padding: var(--sp-md); min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-xs); }
@media (min-width: 768px) { .tile { padding: var(--sp-xl); min-height: 128px; } }
.tile__k { font-size: var(--t-b3); line-height: var(--lh-b3); color: var(--ink-60); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.tile__v { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (min-width: 768px) { .tile__v { font-size: 32px; line-height: 38px; } }

/* ticker */
.ticker { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--paper); margin-bottom: var(--sp-xs); mask-image: linear-gradient(90deg, transparent, var(--ink) 40px, var(--ink) calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 40px, var(--ink) calc(100% - 40px), transparent); }
.ticker__track { display: flex; gap: var(--sp-2xl); width: max-content; padding: 0 var(--sp-xl); min-height: 52px; align-items: center; animation: marquee var(--marquee, 60s) linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.tick { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-b2); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tick__chg { opacity: .8; font-weight: 500; }
.tick .tile-logo { width: 22px; height: 22px; font-size: 11px; }

/* logo tiles */
.tile-logo { width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--peak); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 15px; overflow: hidden; position: relative; text-transform: uppercase; }
.tile-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* board */
.board { padding: var(--sp-xs); }
.board__head, .row { display: grid; grid-template-columns: 36px minmax(180px, 2.2fr) repeat(4, minmax(90px, 1fr)) var(--tap); align-items: center; column-gap: var(--sp-md); }
.board__head { display: none; padding: var(--sp-xs) var(--sp-md); font-size: var(--t-b3); line-height: var(--lh-b3); color: var(--ink-60); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
@media (min-width: 900px) { .board__head { display: grid; } }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.rows { display: flex; flex-direction: column; }
.row { position: relative; min-height: 64px; padding: var(--sp-xs) var(--sp-md); border-radius: var(--radius); transition: background-color 200ms var(--ease-out-soft); }
.row + .row { border-top: 1px solid var(--ink-07); }
.row::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms var(--ease-out-soft); background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--peak) 65%, transparent), transparent 70%); }
.row:hover::before { opacity: 1; }
.row > * { position: relative; }
.row__rank { font-size: var(--t-b3); color: var(--ink-60); font-weight: 600; font-variant-numeric: tabular-nums; }
.row__token { display: flex; align-items: center; gap: var(--sp-sm); min-width: 0; }
.row__names { display: flex; flex-direction: column; min-width: 0; }
.row__sym { font-weight: 700; font-size: var(--t-b1); line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__name { font-size: var(--t-b3); line-height: var(--lh-b3); color: var(--ink-60); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell { font-size: var(--t-b2); line-height: 22px; font-weight: 600; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.cell__k { display: none; }
.chg { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.chg[data-dir="up"] { background: var(--ink); color: var(--paper); }
.chg[data-dir="down"] { border: 1.5px solid var(--ink); }
.copy { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: var(--radius); transition: background-color 200ms var(--ease-out-soft); }
.copy:hover { background: var(--ink-07); }
.copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy.is-copied { background: var(--ink); color: var(--paper); }

@media (max-width: 899px) {
  .row { grid-template-columns: 32px minmax(0, 1fr) auto var(--tap); grid-template-areas: "rank token price copy" "stats stats stats stats"; row-gap: var(--sp-xs); padding: var(--sp-sm) var(--sp-xs); }
  .row__rank { grid-area: rank; }
  .row__token { grid-area: token; }
  .row .c-price { grid-area: price; }
  .row .copy { grid-area: copy; }
  .row__stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-xs); padding-left: 32px; }
  .cell__k { display: block; font-size: var(--t-b3); line-height: var(--lh-b3); color: var(--ink-60); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
  .row__stats .cell { margin: 0; padding: 0; text-align: left; }
}
@media (min-width: 900px) { .row__stats { display: contents; } }

/* skeleton */
.sk { display: block; border-radius: 6px; background: linear-gradient(100deg, var(--ink-07) 30%, var(--ink-14) 50%, var(--ink-07) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
.sk--tile { height: 32px; width: 70%; }
.sk--tick { height: 18px; width: 140px; background: var(--ink-14); }
.sk--cell { height: 18px; width: 100%; max-width: 88px; margin-left: auto; }
.sk--sym { height: 16px; width: 80px; }
.sk--name { height: 12px; width: 120px; margin-top: 4px; }
.sk--logo { width: 36px; height: 36px; border-radius: 50%; }
@keyframes shimmer { to { background-position: -300% 0; } }
.rows .row.is-skeleton { pointer-events: none; }
.fadein { animation: fadein 500ms var(--ease-out-soft) both; animation-delay: var(--d, 0ms); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }
.board__error { padding: var(--sp-3xl) var(--sp-lg); display: flex; flex-direction: column; align-items: center; gap: var(--sp-sm); text-align: center; }
.board__err-title { font-weight: 700; font-size: var(--t-h4); }
.board__err-text { color: var(--ink-60); max-width: 420px; }

/* briefing */
.doc { display: grid; gap: var(--sp-2xl); }
@media (min-width: 768px) { .doc { grid-template-columns: 1fr 2fr; gap: var(--sp-4xl) var(--sp-2xl); } }
.toc { display: none; }
@media (min-width: 768px) { .toc { display: block; } .toc ul { position: sticky; top: 180px; display: flex; flex-direction: column; gap: var(--sp-xs); font-size: var(--t-b2); line-height: var(--lh-b2); color: var(--ink-60); } }
.toc a { display: inline-flex; align-items: center; min-height: var(--tap); transition: color 200ms var(--ease-out-soft), transform 200ms var(--ease-out-soft); }
.toc a:hover, .toc a.is-active { color: var(--ink); transform: translateX(4px); }
.doc__body { display: flex; flex-direction: column; gap: var(--sp-sm); }
.doc__body .h4 { margin-top: var(--sp-sm); }
.doc__body .h4:first-child { margin-top: 0; }
.list { display: flex; flex-direction: column; gap: var(--sp-2xs); padding-left: var(--sp-xl); list-style: disc; color: var(--ink-80); }

/* tabs */
.tabs { margin: var(--sp-sm) 0; }
.tabs__list { position: relative; display: flex; gap: var(--sp-2xs); padding: 4px; background: var(--ink-07); border-radius: var(--radius); width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { position: relative; z-index: 1; min-height: var(--tap); min-width: var(--tap); padding: 0 var(--sp-lg); border-radius: 6px; font-weight: 600; font-size: var(--t-b2); color: var(--ink-60); transition: color 200ms var(--ease-out-soft); }
.tab[aria-selected="true"] { color: var(--ink); }
.tabs__ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 6px; background: var(--paper); transition: transform 400ms var(--ease-out-soft), width 400ms var(--ease-out-soft); }
.panel { display: grid; gap: var(--sp-xs); margin-top: var(--sp-sm); }
@media (min-width: 1024px) { .panel { grid-template-columns: repeat(3, 1fr); } }
.panel[hidden] { display: none; }
.panel .card { padding: var(--sp-lg); display: flex; flex-direction: column; gap: var(--sp-xs); }
.panel .card h4 { font-size: var(--t-h4); line-height: var(--lh-h4); }
.panel .card p { color: var(--ink-80); font-size: var(--t-b2); line-height: var(--lh-b2); }
.panel:not([hidden]) .card { animation: fadein 500ms var(--ease-out-soft) both; }
.panel:not([hidden]) .card:nth-child(2) { animation-delay: 70ms; }
.panel:not([hidden]) .card:nth-child(3) { animation-delay: 140ms; }

/* steps */
.steps { display: grid; gap: var(--sp-xs); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps .card { padding: var(--sp-xl); display: flex; flex-direction: column; gap: var(--sp-xs); min-height: 220px; }
.steps__n { font-family: var(--font-mono); font-weight: 700; font-size: 28px; line-height: 32px; color: var(--ink-60); margin-bottom: auto; }
.steps h4 { font-size: var(--t-h4); line-height: var(--lh-h4); }
.steps p { color: var(--ink-80); font-size: var(--t-b2); line-height: var(--lh-b2); }

/* footer */
.foot { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-lg) var(--sp-inset); border-top: 1px solid var(--ink-07); margin-top: var(--sp-lg); max-width: 1600px; margin-inline: auto; }
.foot__brand { min-width: var(--tap); min-height: var(--tap); display: grid; place-items: center; }
.foot__brand img { width: 24px; height: 24px; }
.foot__site { font-size: var(--t-b2); font-weight: 600; }

/* reveal (class js guards against no-script) */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { opacity: 1; }

/* reduced motion: instant everywhere */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ticker { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
  .ticker__track { transform: none !important; }
  .ticker__track [data-dup] { display: none; }
  .spot::before, .row::before { display: none; }
}
