/* AISMesh. Palette round 6: "Deep sea greys". Steel and deep water greys, one accent: the green of a starboard sidelight
   (brighter in dark mode). Matt brass only inside the honours.
   Type: Archivo (display, expanded width), Inter (text, labels, tabular figures), DejaVu Sans Mono (code). All self-hosted, see handoff for licences. */
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DejaVu Sans Mono"; src: url("/fonts/DejaVuSansMono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #eef0f0; --bg2: #e6e9ea; --surface: #f8f9f9; --surface2: #e2e6e7; --raise: #fbfcfc;
  --ink: #1b2225; --ink2: #3d4649; --muted: #5d676b;
  --line: rgba(27, 34, 37, .10); --line2: rgba(27, 34, 37, .18);
  --accent: #0f7550; --accent-rgb: 15, 117, 80; --on-accent: #fff; --accent-text: #0b6343;
  --acc2: #8a969a; --acc2-rgb: 138, 150, 154;
  --sea: #4f5c61; --sea-rgb: 95, 108, 113;
  --brass: #76623a; --brass-rgb: 118, 98, 58;
  --good: #0f7550;
  --sc-bg: #dde3e5; --sc-bg2: #d3dadc; --sc-land: #c9d0d2; --sc-land-dot: #8a969a; --sc-coast: rgba(61, 70, 73, .45);
  --sc-grid: rgba(27, 34, 37, .07); --sc-ink: #1b2225; --sc-muted: #4f5a5e; --sc-vessel: #273034; --sc-vessel-b: #4f5a5e;
  --sc-range: #0f7550; --sc-range-rgb: 15, 117, 80; --sc-trail: 39, 48, 52; --sc-glow: 255, 255, 255;
  --h-ink: #1b2225; --h-acc: #0f7550; --h-brass: #7f6a3c; --h-bronze: #7f6a3c; --h-silver: #5d676b; --h-board: #273034; --h-bg: #f8f9f9;
  --r-navy: #273034; --r-green: #0f7550; --r-white: #e2e6e7; --r-sand: #8a969a;
  --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 22px 50px -32px rgba(27, 34, 37, .30);
  --shadow-lg: 0 40px 90px -40px rgba(27, 34, 37, .38);
  --f: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fd: "Archivo", "Inter", -apple-system, sans-serif;
  --m: "Inter", -apple-system, sans-serif;
  --code: "DejaVu Sans Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grain-o: .045;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15191b; --bg2: #181d1f; --surface: #1c2124; --surface2: #242a2e; --raise: #20262a;
    --ink: #e9edee; --ink2: #b9c1c4; --muted: #8b9599;
    --line: rgba(233, 237, 238, .08); --line2: rgba(233, 237, 238, .15);
    --accent: #34c98b; --accent-rgb: 52, 201, 139; --on-accent: #0d1411; --accent-text: #34c98b;
    --acc2: #6c787c; --acc2-rgb: 108, 120, 124;
    --sea: #a3afb3; --sea-rgb: 143, 156, 161;
    --brass: #c9b27a; --brass-rgb: 201, 178, 122;
    --good: #34c98b;
    --sc-bg: #12171a; --sc-bg2: #171d20; --sc-land: #2a3135; --sc-land-dot: #5b666b; --sc-coast: rgba(150, 165, 170, .35);
    --sc-grid: rgba(200, 215, 220, .07); --sc-ink: #e9edee; --sc-muted: #8b9599; --sc-vessel: #dfe5e7; --sc-vessel-b: #b9c1c4;
    --sc-range: #34c98b; --sc-range-rgb: 52, 201, 139; --sc-trail: 185, 193, 196; --sc-glow: 52, 201, 139;
    --h-ink: #e9edee; --h-acc: #34c98b; --h-brass: #c9b27a; --h-bronze: #c9b27a; --h-silver: #8b9599; --h-board: #2e363a; --h-bg: #1c2124;
    --r-navy: #3a454a; --r-green: #34c98b; --r-white: #c9d0d2; --r-sand: #98a4a8;
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -30px rgba(0, 0, 0, .6);
    --shadow-lg: 0 50px 120px -40px rgba(0, 0, 0, .7);
    --grain-o: .06;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #15191b; --bg2: #181d1f; --surface: #1c2124; --surface2: #242a2e; --raise: #20262a;
    --ink: #e9edee; --ink2: #b9c1c4; --muted: #8b9599;
    --line: rgba(233, 237, 238, .08); --line2: rgba(233, 237, 238, .15);
    --accent: #34c98b; --accent-rgb: 52, 201, 139; --on-accent: #0d1411; --accent-text: #34c98b;
    --acc2: #6c787c; --acc2-rgb: 108, 120, 124;
    --sea: #a3afb3; --sea-rgb: 143, 156, 161;
    --brass: #c9b27a; --brass-rgb: 201, 178, 122;
    --good: #34c98b;
    --sc-bg: #12171a; --sc-bg2: #171d20; --sc-land: #2a3135; --sc-land-dot: #5b666b; --sc-coast: rgba(150, 165, 170, .35);
    --sc-grid: rgba(200, 215, 220, .07); --sc-ink: #e9edee; --sc-muted: #8b9599; --sc-vessel: #dfe5e7; --sc-vessel-b: #b9c1c4;
    --sc-range: #34c98b; --sc-range-rgb: 52, 201, 139; --sc-trail: 185, 193, 196; --sc-glow: 52, 201, 139;
    --h-ink: #e9edee; --h-acc: #34c98b; --h-brass: #c9b27a; --h-bronze: #c9b27a; --h-silver: #8b9599; --h-board: #2e363a; --h-bg: #1c2124;
    --r-navy: #3a454a; --r-green: #34c98b; --r-white: #c9d0d2; --r-sand: #98a4a8;
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -30px rgba(0, 0, 0, .6);
    --shadow-lg: 0 50px 120px -40px rgba(0, 0, 0, .7);
    --grain-o: .06;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink2); font: 400 16.5px/1.6 var(--f); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .4s var(--ease), color .4s var(--ease); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: var(--grain-o);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); mix-blend-mode: overlay; }
a { color: inherit; }
p a, li a, td a, dd a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .55); text-underline-offset: 3px; }
p a:hover, li a:hover { text-decoration-color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -.018em; line-height: 1.1; }
h1, h2, .disp { font-family: var(--fd); font-stretch: 112%; font-weight: 700; }
h1 { font-size: clamp(44px, 6.6vw, 92px); line-height: .96; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1; letter-spacing: -.03em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--code); font-size: .85em; }
.num, .kpi b, .lb td, .pod .big, .standings b, .recs b { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.w { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 780px; }
@media (max-width: 600px) { .w { padding: 0 16px; } body { font-size: 16px; } }

/* Header */
.top { position: sticky; top: 0; z-index: 50; transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); box-shadow: 0 1px 0 var(--line); }
.top.scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(0, 0, 0, .35); }
.top .w { display: flex; align-items: center; gap: 20px; height: 68px; max-width: 1400px; transition: height .4s var(--ease); }
.top.scrolled .w { height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg.lockup { height: 35.7px; width: auto; flex: none; display: block; margin: -2.85px 0; }
.top nav { display: flex; gap: 2px; align-items: center; flex: 1; }
.top nav .links { display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--surface2) 60%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.top nav .links a { text-decoration: none; font: 500 14px/1 var(--f); color: var(--ink2); padding: 10px 15px; border-radius: 999px; transition: background .25s var(--ease), color .25s var(--ease); white-space: nowrap; }
.top nav .links a:hover { color: var(--ink); }
.top nav .links a[aria-current="page"] { color: var(--ink); background: var(--raise); box-shadow: 0 1px 2px rgba(0,0,0,.1), inset 0 0 0 1px var(--line2); }
.top nav .cta { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-accent); background: var(--accent); font: 600 14px/1 var(--f); border-radius: 999px; padding: 12px 18px; box-shadow: 0 10px 26px -12px rgba(var(--accent-rgb), .9), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .3s var(--ease), filter .3s; white-space: nowrap; }
.top nav .cta svg { width: 14px; height: 14px; }
.top nav .cta:hover { transform: translateY(-1px); filter: brightness(1.07); }
.theme { border: 0; background: transparent; color: var(--ink2); width: 44px; height: 44px; border-radius: 999px; cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line2); flex: none; transition: color .2s, background .2s; }
.theme:hover { color: var(--ink); background: var(--surface2); }
.theme svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .3s; }
.theme .moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="dark"] .theme .sun { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="dark"] .theme .moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { opacity: 0; transform: rotate(60deg) scale(.6); }
  :root:not([data-theme="light"]) .theme .moon { opacity: 1; transform: none; }
}
.menu { display: none; border: 0; background: transparent; color: var(--ink); width: 44px; height: 44px; cursor: pointer; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); }
.menu svg { width: 20px; height: 20px; }
.menu .x { display: none; }
.menu[aria-expanded="true"] .x { display: block; } .menu[aria-expanded="true"] .bars { display: none; }
.top .tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1081px) { .top .tools .theme.m { display: none; } }
@media (max-width: 1080px) {
  .menu { display: grid; place-items: center; }
  .top nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100svh - 100%); overflow: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 20px 16px 28px; background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
  .top nav.open { opacity: 1; visibility: visible; transform: none; }
  .top nav .links { flex-direction: column; margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .top nav .links a { font: 650 28px/1.1 var(--fd); font-stretch: 112%; letter-spacing: -.02em; padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .top nav .links a[aria-current="page"] { background: none; box-shadow: none; color: var(--accent); }
  .top nav .cta { margin-top: 24px; justify-content: center; padding: 18px; font-size: 16px; }
  .top nav .theme { display: none; }
  .top .tools .theme.m { display: grid; }
}
.cta-s { display: none; }
@media (max-width: 1080px) { .cta-s { display: inline-flex; text-decoration: none; font: 600 13.5px/1 var(--f); color: var(--on-accent); background: var(--accent); padding: 12px 15px; border-radius: 999px; box-shadow: 0 8px 20px -10px rgba(var(--accent-rgb), .9); white-space: nowrap; } }
@media (max-width: 480px) {
  .top .tools .theme.m { display: none; }
  .top nav .theme { display: grid; margin-top: 18px; align-self: flex-start; width: 46px; height: 46px; }
  .brand svg.lockup { height: 31px; margin: -2.5px 0; }
}
body.home .top:not(.scrolled):not(.open) { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.home main { margin-top: -68px; }

/* Small parts */
.kick { display: inline-flex; align-items: center; gap: 10px; font: 600 11.5px/1 var(--m); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.kick::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--ink2); max-width: 580px; }
.b { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font: 600 15.5px/1 var(--f); text-decoration: none; transition: transform .3s var(--ease), filter .3s var(--ease), background .3s var(--ease), box-shadow .3s; cursor: pointer; border: 0; }
.b:hover { transform: translateY(-2px); }
.b.p { background: var(--accent); color: var(--on-accent); box-shadow: 0 16px 36px -14px rgba(var(--accent-rgb), .85), inset 0 1px 0 rgba(255,255,255,.25); }
.b.p:hover { filter: brightness(1.07); }
.b.g { background: color-mix(in srgb, var(--surface) 55%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.b.g:hover { background: var(--surface2); }
.b svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.b:hover svg { transform: translateX(3px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--m); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; color: var(--ink); background: rgba(var(--acc2-rgb), .22); white-space: nowrap; }
.tag.soon { color: var(--accent-text); background: rgba(var(--accent-rgb), .12); }
.tag.demo { color: var(--ink2); background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
.todo { background: rgba(var(--accent-rgb), .12); color: var(--accent-text); padding: 1px 6px; border-radius: 4px; font-family: var(--code); font-size: .85em; }
.lbl { font: 600 11px/1.3 var(--m); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); } }

section { padding: 120px 0; position: relative; }
@media (max-width: 600px) { section { padding: 72px 0; } }
.head { max-width: 780px; margin-bottom: 56px; }
.head p { margin-top: 20px; color: var(--ink2); font-size: 18px; max-width: 600px; }

/* Home hero: living globe */
.hero { min-height: 100svh; padding: 0; display: grid; align-items: center; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 72% 42%, var(--bg2), var(--bg) 70%); }
.hero canvas.globe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 72%, transparent) 32%, transparent 58%), linear-gradient(0deg, var(--bg) 0%, transparent 24%); }
.hero .w { width: 100%; max-width: 1400px; padding-top: 140px; padding-bottom: 100px; }
.hero h1 { max-width: 820px; font-size: clamp(46px, 7vw, 104px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.2s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero .lede { margin: 30px 0 38px; opacity: 0; animation: fade 1s .5s var(--ease) forwards; }
.hero .btns { opacity: 0; animation: fade 1s .65s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hud { position: absolute; z-index: 2; font: 600 11px/1.7 var(--m); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.hud b { color: var(--ink); font-weight: 600; }
.hud.br { right: 32px; bottom: 28px; text-align: right; }
.hud.bl { left: 32px; bottom: 28px; display: flex; align-items: center; gap: 12px; }
.hud.bl i { width: 1px; height: 34px; background: linear-gradient(var(--muted), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .hero { align-items: end; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 10%, color-mix(in srgb, var(--bg) 84%, transparent) 46%, transparent 70%); }
  .hero .w { padding-top: 48svh; padding-bottom: 64px; }
  .hud.bl { display: none; }
  .hud.br { right: 16px; bottom: 16px; }
}

/* Why: bento of live tiles */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile { position: relative; grid-column: span 4; background: linear-gradient(180deg, var(--raise), var(--surface)); border: 1px solid var(--line); border-radius: 24px; padding: 30px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; min-height: 380px; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease); }
a.tile:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .35); box-shadow: var(--shadow-lg); }
.tile.wide { grid-column: span 7; }
.tile.mid { grid-column: span 5; }
.tile.third { grid-column: span 4; min-height: 320px; }
.tile h3 { font: 700 28px/1.05 var(--fd); font-stretch: 110%; letter-spacing: -.03em; margin: 4px 0 12px; }
.tile p { margin: 0; font-size: 15.5px; color: var(--ink2); max-width: 430px; }
.tile .more { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.tile .more svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
a.tile:hover .more svg { transform: translateX(4px); }
.tile .vis { position: relative; margin: 22px -30px 0; flex: 1; min-height: 180px; }
.tile .vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 980px) { .tile, .tile.wide, .tile.mid, .tile.third { grid-column: 1 / -1; } }
@media (max-width: 600px) { .tile { padding: 22px; border-radius: 20px; min-height: 0; } .tile .vis { margin: 18px -22px 0; } .tile h3 { font-size: 25px; } }

.ranks-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; margin-top: 22px; }
.ranks-row figure { margin: 0; text-align: center; }
.ranks-row :is(img, svg) { width: 100%; max-width: 44px; aspect-ratio: 26 / 24; object-fit: contain; display: block; margin: 0 auto 10px; transition: transform .6s var(--ease); }
.ranks-row figcaption { font-size: 11px; line-height: 1.3; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ranks-row figure.on figcaption { color: var(--ink); }
.ranks-row figure.on :is(img, svg) { transform: translateY(-8px); }
.prog { position: relative; height: 4px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--brass))); border-radius: 4px; transition: width 1.6s var(--ease); }

.mini-lb { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.mini-lb li { position: absolute; left: 0; right: 0; height: 46px; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 0 14px; border-radius: 12px; transition: transform .9s var(--ease), background .4s; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.mini-lb li.me { background: rgba(var(--accent-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .25); }
.mini-lb .pos { font: 600 12px/1 var(--m); color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-lb .val { font: 600 13px/1 var(--m); color: var(--ink2); font-variant-numeric: tabular-nums; }
.mini-lb small { color: var(--muted); font-size: 12px; margin-left: 6px; font-weight: 400; }

.medals { display: flex; gap: 4px; margin: 18px -6px 0; }
.medals :is(img, svg) { width: 25%; max-width: 110px; aspect-ratio: 1; flex: 1 1 22%; transition: transform .6s var(--ease); }
.medals :is(img, svg):hover { transform: translateY(-4px) rotate(-3deg); }
.rack-demo { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 320px; }
.rack-demo :is(img, svg) { width: 100%; display: block; }

.coming { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.coming div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-radius: 14px; border: 1px dashed var(--line2); color: var(--ink); font-weight: 500; font-size: 15px; }

/* How: three steps */
.how { background: linear-gradient(180deg, var(--bg), var(--bg2)); border-top: 1px solid var(--line); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step3 { counter-increment: s; position: relative; padding: 30px 28px 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.step3::before { content: counter(s, decimal-leading-zero); display: block; font: 700 54px/1 var(--fd); font-stretch: 118%; letter-spacing: -.04em; color: var(--accent); margin-bottom: 26px; }
.step3 h3 { font-size: 20px; margin-bottom: 10px; }
.step3 p { font-size: 15.5px; margin: 0; }
.step3 pre { margin: 18px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips span { font: 500 12.5px/1 var(--f); padding: 8px 11px; border-radius: 999px; background: var(--surface2); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); }
.how .final { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 38px; border-radius: 28px; background: linear-gradient(120deg, rgba(var(--accent-rgb), .14), rgba(var(--sea-rgb), .08)); border: 1px solid rgba(var(--accent-rgb), .25); }
.how .final h2 { font-size: clamp(28px, 3.2vw, 42px); }
.how .final p { margin: 10px 0 0; }
@media (max-width: 900px) { .steps3 { grid-template-columns: 1fr; } .how .final { padding: 26px 22px; } }

/* Page heads */
.pagehead { padding: 84px 0 44px; position: relative; overflow: hidden; }
.pagehead .lede { margin-top: 22px; }
.demo-band { display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 999px; background: rgba(var(--accent-rgb), .08); color: var(--ink); font-size: 13.5px; box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .18); max-width: 100%; margin-top: 28px; }
.demo-band svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
@media (max-width: 600px) { .pagehead { padding: 48px 0 24px; } .demo-band { border-radius: 14px; align-items: flex-start; } }

/* Segmented controls */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: 500 13.5px/1 var(--f); color: var(--ink2); padding: 10px 14px; border-radius: 999px; cursor: pointer; transition: color .3s, background .3s; white-space: nowrap; }
.seg button[aria-pressed="true"] { color: var(--ink); background: var(--raise); box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 0 0 1px var(--line2); }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.controls select { appearance: none; -webkit-appearance: none; font: 500 13.5px/1 var(--f); color: var(--ink); background: var(--surface2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23888' stroke-width='1.5'><path d='M3 4.5l3 3 3-3'/></svg>") no-repeat right 12px center / 12px; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 12px 34px 12px 16px; cursor: pointer; }

/* Hall */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; margin-bottom: 18px; }
.pod { position: relative; text-align: center; padding: 22px 18px; border-radius: 24px; background: linear-gradient(180deg, var(--raise), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .6s var(--ease); }
.pod.first { padding-top: 32px; border-color: rgba(var(--brass-rgb), .45); }
.pod.first::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, rgba(var(--brass-rgb), .18), transparent 70%); pointer-events: none; }
.pod :is(img, svg) { width: 58px; height: 116px; object-fit: contain; display: block; margin: 0 auto 12px; }
.pod .place { font: 700 40px/1 var(--fd); font-stretch: 118%; color: var(--brass); letter-spacing: -.04em; }
.pod h3 { margin: 8px 0 4px; font-size: 18px; }
.pod .meta { font-size: 13px; color: var(--muted); }
.pod .big { margin-top: 12px; font: 650 26px/1 var(--f); color: var(--ink); letter-spacing: -.02em; }
.pod .big small { font-size: 12px; color: var(--muted); margin-left: 4px; font-weight: 500; letter-spacing: 0; }
@media (max-width: 760px) { .podium { grid-template-columns: 1fr; } .pod.first { order: -1; } .pod { display: grid; grid-template-columns: 44px 1fr auto; text-align: left; align-items: center; gap: 12px; padding: 14px 16px; } .pod.first { padding-top: 14px; } .pod :is(img, svg) { width: 36px; height: 72px; margin: 0; } .pod .place { display: none; } .pod .big { margin: 0; font-size: 18px; } }

.lb { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.lb th { text-align: left; font: 600 11px/1 var(--m); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px; border-bottom: 1px solid var(--line2); }
.lb td { padding: 0 14px; height: 58px; border-bottom: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.lb tbody tr:last-child td { border-bottom: 0; }
.lb tbody tr { transition: background .3s; }
.lb tbody tr:hover { background: rgba(var(--accent-rgb), .04); }
.lb tr.me td { background: rgba(var(--accent-rgb), .07); }
.lb .pos { font: 600 13px/1 var(--m); color: var(--muted); width: 48px; }
.lb .st { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb .st :is(img, svg) { width: 18px; height: 36px; object-fit: contain; flex: none; }
.lb .st b { font-weight: 600; }
.lb .st small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.lb .val { font: 600 14.5px/1 var(--f); text-align: right; }
.lb th.r { text-align: right; }
.lb .tr { font: 600 12px/1 var(--m); width: 56px; text-align: right; }
.lb .up { color: var(--good); } .lb .dn { color: var(--ink2); } .lb .eq { color: var(--muted); }
.lb .bar { width: 22%; }
.lb .bar i { display: block; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(var(--sea-rgb), .25), var(--sea)); transition: width 1s var(--ease); }
.tablewrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
@media (max-width: 760px) { .lb .bar, .lb .rg, .lb .tr { display: none; } .lb td, .lb th { padding-left: 10px; padding-right: 10px; } }

.chal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chal > div { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chal h3 { margin: 12px 0 8px; font: 700 22px/1.1 var(--fd); font-stretch: 110%; letter-spacing: -.025em; }
.chal p { font-size: 14.5px; margin: 0 0 18px; }
.chal .row { display: flex; justify-content: space-between; font: 600 11px/1 var(--m); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
@media (max-width: 900px) { .chal { grid-template-columns: 1fr; } }

.ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ladder > div { text-align: center; padding: 24px 12px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.ladder :is(img, svg) { width: 64px; height: 60px; object-fit: contain; display: block; margin: 0 auto 14px; }
.ladder h3 { font-size: 15px; margin-bottom: 6px; }
.ladder p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.45; }
@media (max-width: 900px) { .ladder { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .ladder { grid-template-columns: repeat(2, 1fr); } }

/* Ribbons and badges */
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.award { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.award .medal { width: 100px; height: 100px; }
.award .rib { width: 100px; height: auto; }
.award h3 { font-size: 16px; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.award p { font-size: 13.5px; margin: 0; color: var(--ink2); line-height: 1.45; }
.award.locked :is(img, svg) { filter: grayscale(1) brightness(.8); opacity: .5; }
.award .how2 { display: block; margin-top: 8px; font: 600 11px/1.4 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.group-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 72px 0 22px; }
.group-h h2 { font-size: clamp(28px, 3.2vw, 42px); }
.group-h p { margin: 0; max-width: 520px; color: var(--ink2); }
.rack { display: grid; grid-template-columns: repeat(4, auto); gap: 3px; justify-content: start; }
.rack :is(img, svg) { width: 50px; display: block; }
.rack .locked { filter: grayscale(1); opacity: .2; }

/* Station dashboard: one screen on desktop */
.dash { height: calc(100svh - 68px); min-height: 680px; display: grid; gap: 12px; padding: 12px 16px 14px; max-width: 1720px; margin: 0 auto;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(310px, .95fr);
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr) 46px;
  grid-template-areas: "head head head" "map polar comp" "map hours comp" "tick tick tick"; }
.pn { position: relative; background: linear-gradient(180deg, var(--raise), var(--surface)); border: 1px solid var(--line); border-radius: 18px; min-width: 0; min-height: 0; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pn > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px 0; flex: none; }
.pn > header h2 { font: 650 13.5px/1.2 var(--f); letter-spacing: -.005em; color: var(--ink); font-stretch: 100%; }
.pn .body { position: relative; flex: 1; min-height: 0; }
.pn canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.d-head { grid-area: head; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 2px 4px 0; }
.d-id { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }
.d-id :is(img, svg) { width: 28px; height: 56px; object-fit: contain; }
.d-id h1 { font-size: 32px; letter-spacing: -.03em; line-height: 1; }
.d-id .sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.kpis { display: flex; gap: 6px; flex-wrap: wrap; }
.kpi { padding: 9px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 116px; }
.kpi b { display: block; font: 650 21px/1.1 var(--f); color: var(--ink); margin-top: 4px; letter-spacing: -.02em; }
.kpi b small { font-size: 12px; color: var(--muted); margin-left: 3px; font-weight: 500; letter-spacing: 0; }
.d-map { grid-area: map; background: var(--sc-bg); }
.d-map > header { position: absolute; z-index: 2; left: 0; right: 0; top: 0; padding: 14px 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--sc-bg) 88%, transparent), transparent); }
.d-map > header h2 { color: var(--sc-ink); }
.d-map .body { position: absolute; inset: 0; }
.map-key { position: absolute; z-index: 2; left: 14px; bottom: 12px; display: flex; gap: 14px; flex-wrap: wrap; font: 600 11px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--sc-muted); pointer-events: none; }
.map-key i { display: inline-block; width: 14px; height: 6px; margin-right: 6px; vertical-align: 1px; clip-path: polygon(0 50%, 22% 0, 100% 0, 100% 100%, 22% 100%); }
.map-zoom { position: absolute; z-index: 3; right: 12px; bottom: 12px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line2), 0 8px 20px -8px rgba(0,0,0,.4); background: color-mix(in srgb, var(--sc-bg2) 85%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.map-zoom button { width: 38px; height: 38px; border: 0; background: transparent; color: var(--sc-ink); font: 400 20px/1 var(--f); cursor: pointer; }
.map-zoom button + button { border-top: 1px solid var(--line2); }
.map-zoom button:hover { background: rgba(var(--sc-glow), .1); }
.vcard { position: absolute; z-index: 3; right: 12px; top: 52px; width: 230px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--sc-bg2) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--line2), 0 18px 40px -20px rgba(0,0,0,.5); color: var(--sc-ink); font-size: 12.5px; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.vcard.off { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.vcard b { font-size: 14px; display: block; margin-bottom: 6px; }
.vcard dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.vcard dt { color: var(--sc-muted); } .vcard dd { margin: 0; text-align: right; }
.d-polar { grid-area: polar; }
.d-hours { grid-area: hours; }
.d-hours .body { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.d-hours .hm { position: relative; min-height: 0; }
.recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.recs div { background: var(--surface); padding: 9px 12px; min-width: 0; }
.recs b { display: block; font: 650 14px/1.2 var(--f); color: var(--ink); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-comp { grid-area: comp; }
.d-comp .body { overflow: auto; padding: 6px 16px 14px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.rankcard { display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: linear-gradient(120deg, rgba(var(--brass-rgb), .13), transparent 70%); border: 1px solid rgba(var(--brass-rgb), .26); }
.rankcard :is(img, svg) { width: 50px; height: 100px; object-fit: contain; }
.rankcard h3 { font: 700 22px/1 var(--fd); font-stretch: 110%; letter-spacing: -.025em; }
.rankcard .row { display: flex; justify-content: space-between; font: 600 11px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 7px; gap: 8px; }
.standings { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.standings div { padding: 10px 12px; border-radius: 12px; background: var(--surface2); }
.standings b { display: flex; align-items: baseline; gap: 6px; font: 650 20px/1.1 var(--f); color: var(--ink); margin-top: 4px; }
.standings b small { font-size: 11px; color: var(--good); font-weight: 600; }
.standings b small.dn { color: var(--ink2); }
.chal-mini { padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.chal-mini h3 { font-size: 13.5px; margin: 5px 0 9px; display: flex; justify-content: space-between; gap: 8px; }
.chal-mini h3 span { font: 500 11.5px/1.3 var(--f); color: var(--muted); }
.badge-row { display: flex; gap: 2px; flex-wrap: wrap; }
.badge-row :is(img, svg) { width: 46px; height: 46px; transition: transform .4s var(--ease); }
.badge-row .locked { filter: grayscale(1); opacity: .3; }
.badge-row :is(img, svg):hover { transform: translateY(-3px); }
.d-tick { grid-area: tick; flex-direction: row; align-items: center; padding: 0 0 0 16px; }
.d-tick .lbl { flex: none; margin-right: 14px; }
.tick { position: relative; flex: 1; height: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.tick .track { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; gap: 40px; white-space: nowrap; will-change: transform; font: 500 12.5px/1 var(--f); color: var(--ink2); font-variant-numeric: tabular-nums; }
.tick .track b { color: var(--ink); font-weight: 600; }
.tick .track i { font-style: normal; font-weight: 600; color: var(--sea); margin-right: 8px; font-size: 11px; letter-spacing: .08em; }
.tick .track em { font-style: normal; font-weight: 600; color: var(--accent); margin-right: 8px; font-size: 11px; letter-spacing: .08em; }
@media (max-width: 1180px), (max-height: 640px) {
  .dash { height: auto; min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: auto 480px 330px auto 46px; grid-template-areas: "head head" "map map" "polar hours" "comp comp" "tick tick"; }
  .d-comp .body { overflow: visible; }
}
@media (max-width: 700px) {
  .dash { padding: 10px 10px 14px; grid-template-columns: 1fr; grid-template-rows: auto 440px 340px 320px auto 46px; grid-template-areas: "head" "map" "polar" "hours" "comp" "tick"; }
  .d-id h1 { font-size: 28px; }
  .kpis { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .kpi { min-width: 0; }
}

/* Setup page */
.steps { counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { counter-increment: s; display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.step::before { content: counter(s, decimal-leading-zero); font: 700 34px/1 var(--fd); font-stretch: 118%; letter-spacing: -.04em; color: var(--accent); }
.step h3 { margin-bottom: 8px; font-size: 20px; }
.step p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .step { grid-template-columns: 48px 1fr; gap: 12px; } .step::before { font-size: 26px; } }
pre { margin: 12px 0 18px; padding: 16px 18px; background: var(--sc-bg); color: var(--sc-ink); border-radius: 14px; font: 12.5px/1.7 var(--code); overflow-x: auto; white-space: pre; box-shadow: inset 0 0 0 1px var(--line); }
pre .c { color: var(--sc-muted); }
pre .v { color: var(--sc-range); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15px; margin: 8px 0 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--code); font-size: 13px; color: var(--ink); word-break: break-all; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { font: 500 14px/1 var(--f); padding: 11px 15px; border-radius: 999px; border: 0; background: var(--surface2); color: var(--ink2); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.panel[hidden] { display: none; }
@media (max-width: 600px) { .panel { padding: 20px 16px; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 18px 0 18px 34px; border-bottom: 1px solid var(--line); position: relative; }
.list li::before { content: ""; position: absolute; left: 4px; top: 29px; width: 14px; height: 1.5px; background: var(--accent); }
.list li b { color: var(--ink); font-weight: 600; }
.list .tag { margin-left: 8px; vertical-align: 2px; }
.hero.plain { min-height: 0; display: block; padding: 90px 0 40px; background: none; }
.hero.plain::before { display: none; }
.hero.plain .w { padding: 0 32px; display: grid; gap: 26px; }
@media (max-width: 600px) { .hero.plain { padding-top: 48px; } .hero.plain .w { padding: 0 16px; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 17px/1.35 var(--f); color: var(--ink); letter-spacing: -.01em; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; position: absolute; right: 6px; top: 29px; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(-135deg); top: 34px; }
details > div { padding: 0 0 22px; max-width: 680px; }
.faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 30px; margin-bottom: 8px; }

/* Legal */
.legal { padding: 72px 0 110px; }
.legal h1 { font-size: clamp(40px, 5.4vw, 68px); margin-bottom: 14px; }
.legal .ver { font: 500 12.5px/1.5 var(--f); color: var(--muted); margin-bottom: 40px; }
.legal h2 { font: 650 19px/1.3 var(--f); letter-spacing: -.01em; margin: 44px 0 12px; font-stretch: 100%; }
.legal ol, .legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.short { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 30px; margin-bottom: 12px; box-shadow: var(--shadow); }
.short h2 { margin-top: 0; }
.short ul { margin: 0; }
.subnav { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 44px; flex-wrap: wrap; }
.subnav a { text-decoration: none; font-size: 13.5px; padding: 9px 14px; border-radius: 999px; color: var(--ink2); }
.subnav a[aria-current="page"] { background: var(--raise); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 0 0 1px var(--line2); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 64px 0 64px; font-size: 14px; color: var(--muted); background: var(--bg2); }
footer .w { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
footer h2.fh { font: 600 11px/1 var(--m); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 9px; }
footer a { text-decoration: none; color: var(--ink2); }
footer a:hover { color: var(--ink); }
footer p { margin: 16px 0 0; max-width: 380px; }
footer .demo-note { font-size: 12.5px; }
footer .wordmark { font: 750 clamp(64px, 12vw, 168px)/.8 var(--fd); font-stretch: 125%; letter-spacing: -.05em; color: var(--ink); opacity: .06; margin-top: 48px; grid-column: 1 / -1; white-space: nowrap; overflow: hidden; user-select: none; }
footer .wordmark span { color: var(--accent); }
body.dashpage footer { display: none; }
@media (max-width: 760px) { footer .w { grid-template-columns: 1fr 1fr; } footer .w > div:first-child { grid-column: 1 / -1; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero h1 .line > span, .hero .lede, .hero .btns { opacity: 1; transform: none; transition: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* Home: worldwide feed tile */
.tile.feed { background: radial-gradient(120% 80% at 100% 0%, rgba(var(--sea-rgb), .12), transparent 60%), linear-gradient(180deg, var(--raise), var(--surface)); }
.tile.feed h3 { font-size: 34px; }
.feedbox { position: relative; margin: 22px 0 0; border-radius: 16px; background: var(--sc-bg); box-shadow: inset 0 0 0 1px var(--line); padding: 12px 12px 34px; overflow: hidden; }
.feedbox .seg { background: color-mix(in srgb, var(--sc-bg2) 80%, transparent); }
.feedbox .seg button { padding: 8px 12px; font-size: 12.5px; color: var(--sc-muted); }
.feedbox .seg button[aria-pressed="true"] { color: var(--sc-ink); background: var(--sc-bg); }
.stream { height: 176px; margin-top: 10px; overflow: hidden; display: flex; flex-direction: column; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.stream .ln { font: 12px/22px var(--code); color: var(--sc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 0; opacity: 0; transform: translateY(-6px); transition: max-height .6s var(--ease), opacity .6s var(--ease), transform .6s var(--ease); flex: none; }
.stream .ln.in { max-height: 22px; opacity: 1; transform: none; }
.stream .ln i { font-style: normal; color: var(--sc-range); }
.stream .ln b { font-weight: 400; color: var(--sc-muted); }
.stream-note { position: absolute; left: 14px; bottom: 12px; color: var(--sc-muted); }
.tile .fine { margin-top: 16px; font-size: 13px; color: var(--muted); max-width: none; line-height: 1.5; }
.tile.slim { min-height: 0; }
.mini-lb li { opacity: 0; transition: transform .9s var(--ease), opacity .6s var(--ease), background .4s; }
@media (max-width: 600px) { .tile.feed h3 { font-size: 27px; } .stream .ln { font-size: 11px; } }
.tile > .tag { align-self: flex-start; margin-bottom: 14px; }
.ranks-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ranks-row figcaption { font-size: 9.5px; }
.rack.pr { justify-content: center; margin-top: 12px; grid-template-columns: repeat(3, auto); }
.rack.pr :is(img, svg) { width: 44px; }
@media (max-width: 760px) { .rack.pr { justify-content: start; } }
.pagehead h1 { font-size: clamp(40px, 5.6vw, 76px); }
.rackshow { display: grid; grid-template-columns: 1fr auto auto; gap: 34px; align-items: center; padding: 28px 32px; border-radius: 26px; background: radial-gradient(90% 120% at 0% 0%, rgba(var(--brass-rgb), .12), transparent 60%), linear-gradient(180deg, var(--raise), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rack.big { grid-template-columns: repeat(5, auto); gap: 4px; margin-top: 14px; }
.rack.big :is(img, svg) { width: 104px; }
.rs-board { width: 54px; }
.rs-medals { display: flex; gap: 2px; }
.rs-medals :is(img, svg) { width: 74px; height: 74px; }
@media (max-width: 860px) { .rackshow { grid-template-columns: 1fr; gap: 18px; padding: 22px; } .rack.big :is(img, svg) { width: 56px; } .rs-board { display: none; } .rs-medals :is(img, svg) { width: 64px; height: 64px; } }
.award .rib { width: 100px; }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12px; color: var(--ink); }
.checks li { position: relative; padding-left: 16px; }
.checks li::before { content: ""; position: absolute; left: 1px; top: 4px; width: 8px; height: 4px; border-left: 1.5px solid var(--good); border-bottom: 1.5px solid var(--good); transform: rotate(-45deg); }
.checks i { display: block; font-style: normal; color: var(--muted); font-size: 11px; }
.checks li.off { color: var(--muted); }
.checks li.off::before { width: 8px; height: 0; top: 7px; border-left: 0; border-bottom: 1.5px solid var(--muted); transform: none; }
.keybox .b:disabled { opacity: .5; cursor: not-allowed; }
.d-comp .rack { grid-template-columns: repeat(5, auto); }
.d-comp .rack :is(img, svg) { width: 52px; }
body.dashpage .top { position: sticky; }
.pod .rack :is(img, svg) { width: 44px; height: auto; margin: 0; object-fit: fill; }
.mini-lb li > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 600px) {
  .controls .seg { flex-wrap: wrap; max-width: 100%; border-radius: 24px; }
  .controls .seg::-webkit-scrollbar { display: none; }
  .d-map > header .lbl { display: none; }
}

/* Feeders menu */
.dd { position: relative; }
.dd-b { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font: 500 14px/1 var(--f); color: var(--ink2); padding: 10px 15px; border-radius: 999px; cursor: pointer; }
.dd-b svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.dd-b:hover, .dd-b[aria-expanded="true"] { color: var(--ink); }
.dd-b[data-cur] { color: var(--ink); background: var(--raise); box-shadow: 0 1px 2px rgba(0,0,0,.1), inset 0 0 0 1px var(--line2); }
.dd-b[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-p { position: absolute; top: calc(100% + 12px); left: -8px; width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px; border-radius: 20px; background: color-mix(in srgb, var(--raise) 96%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 0 0 1px var(--line2), 0 30px 70px -30px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; z-index: 60; }
.dd.open .dd-p { opacity: 1; visibility: visible; transform: none; }
.top nav .links .dd-p a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; transition: background .2s; white-space: normal; box-shadow: none; color: inherit; font: inherit; border-bottom: 0; }
.top nav .links .dd-p a:hover, .top nav .links .dd-p a[aria-current="page"] { background: var(--surface2); box-shadow: none; }
.dd-p a b { display: block; font: 600 14px/1.2 var(--f); color: var(--ink); }
.dd-p a span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.top nav .links a .soon-dot { margin-left: 7px; font: 600 10.5px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); padding: 3px 6px; border-radius: 999px; background: rgba(var(--accent-rgb), .12); vertical-align: 1px; }
@media (max-width: 1080px) {
  .dd-b { display: none; }
  .dd-p { position: static; width: auto; opacity: 1; visibility: inherit; transform: none; display: block; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top nav .links .dd-p a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .dd-p a b { font: 650 20px/1.2 var(--fd); font-stretch: 110%; }
}

/* Get started */
.gsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 26px; }
.gsteps > div { background: var(--surface); padding: 22px 24px; }
.gsteps span { font: 700 13px/1 var(--fd); color: var(--accent); letter-spacing: .02em; }
.gsteps b { display: block; font: 650 17px/1.2 var(--f); color: var(--ink); margin: 10px 0 6px; }
.gsteps p { margin: 0; font-size: 14.5px; }
.gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gcard { display: flex; flex-direction: column; padding: 26px; border-radius: 22px; background: linear-gradient(180deg, var(--raise), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s; min-height: 230px; }
.gcard:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .35); box-shadow: var(--shadow-lg); }
.gico { width: 40px; height: 40px; color: var(--accent); margin-bottom: 18px; }
.gcard h3 { font: 700 21px/1.15 var(--fd); font-stretch: 108%; letter-spacing: -.02em; margin-bottom: 8px; }
.gcard p { font-size: 14.5px; margin: 0; }
.gcard .more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.gcard .more svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.gcard:hover .more svg { transform: translateX(4px); }
.gfoot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.gside { display: block; padding: 22px 24px; border-radius: 20px; border: 1px dashed var(--line2); text-decoration: none; transition: background .3s; }
.gside:hover { background: var(--surface); }
.gside b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.gside span { font-size: 14px; color: var(--ink2); }
@media (max-width: 900px) { .gsteps, .gcards, .gfoot { grid-template-columns: 1fr; } }
.guide { display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: start; }
.gnav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.gnav .lbl { margin-bottom: 8px; }
.gnav a { text-decoration: none; font-size: 14px; color: var(--ink2); padding: 8px 12px; border-radius: 10px; }
.gnav a:hover { background: var(--surface2); color: var(--ink); }
.gnav a[aria-current="page"] { background: var(--raise); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); font-weight: 600; }
.gsec { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 30px 0; border-top: 1px solid var(--line); }
.gsec:first-child { border-top: 0; padding-top: 0; }
.gnum { font: 700 26px/1 var(--fd); font-stretch: 118%; letter-spacing: -.03em; color: var(--accent); }
.gsec h2 { font-size: 26px; margin-bottom: 12px; }
.gbody { max-width: 760px; }
@media (max-width: 900px) { .guide { grid-template-columns: minmax(0, 1fr); gap: 20px; } .guide > * { min-width: 0; } .gnav { position: static; flex-direction: row; flex-wrap: wrap; } .gnav .lbl { width: 100%; } .gsec { grid-template-columns: minmax(0, 1fr); gap: 8px; } .gsec > * { min-width: 0; } }

/* Hardware */
.builds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.build { display: flex; flex-direction: column; padding: 26px; border-radius: 22px; background: linear-gradient(180deg, var(--raise), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.build h3 { font: 700 22px/1.15 var(--fd); font-stretch: 108%; letter-spacing: -.02em; margin: 10px 0 14px; }
.build ul { list-style: none; padding: 0; margin: 0 0 14px; }
.build li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.build li b { white-space: nowrap; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.build p { font-size: 14.5px; margin: 0; }
.build .more { margin-top: auto; padding-top: 16px; display: inline-flex; gap: 8px; align-items: center; font: 600 12px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.build .more svg { width: 14px; height: 14px; }
.horizon { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.hz-in { padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.hz-in label { display: block; }
.hz-in label b { display: block; font: 650 28px/1.1 var(--f); color: var(--ink); margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.hz-in input[type=range] { width: 100%; accent-color: var(--accent); }
.note { font-size: 13px; color: var(--muted); margin: 0; }
.hz-out { position: relative; min-height: 300px; background: linear-gradient(180deg, var(--bg2), var(--surface2)); }
.hz-out canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hz-big { position: absolute; left: 26px; top: 22px; }
.hz-big b { display: block; font: 700 64px/1 var(--fd); font-stretch: 118%; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hz-big span { font-size: 13px; color: var(--muted); }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tips > div { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.tips h3 { margin-bottom: 8px; }
.tips p { font-size: 14.5px; margin: 0; }
@media (max-width: 900px) { .builds, .tips, .horizon { grid-template-columns: 1fr; } }

/* My station */
.ms-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); margin-top: 16px; }
.ms-meta b { color: var(--ink); }
.ms-tabs { margin-bottom: 16px; }
.ms-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 22px; }
.ms-grid .kpi { min-width: 0; }
.ms-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; }
.ms h3 { font-size: 15px; margin-bottom: 12px; }
.spark { width: 100%; height: 160px; display: block; }
.checks.big { grid-template-columns: 1fr; font-size: 14px; gap: 10px; }
.checks.big li::before { top: 6px; }
.checks.big li.off::before { top: 10px; }
.keybox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--surface2); margin: 18px 0 8px; }
.keybox .lbl { width: 100%; }
.keybox code { flex: 1; font-size: 14px; color: var(--ink); }
.list.sm li { padding: 10px 0 10px 30px; font-size: 14.5px; }
.list.sm li::before { top: 21px; }
.ladder-r { display: grid; gap: 8px; }
.ladder-r > div { display: grid; grid-template-columns: 90px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); opacity: .55; }
.ladder-r > div.on { opacity: 1; border-color: rgba(var(--accent-rgb), .3); background: rgba(var(--accent-rgb), .05); }
.ladder-r :is(img, svg) { grid-row: 1 / 3; width: 52px; justify-self: center; }
.ladder-r b { color: var(--ink); font-size: 14.5px; }
.ladder-r span { font-size: 12.5px; color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; max-width: 820px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form input:not([type=checkbox]), .form select { font: 500 15px/1.2 var(--f); color: var(--ink); background: var(--surface2); border: 0; box-shadow: inset 0 0 0 1px var(--line2); border-radius: 12px; padding: 13px 14px; }
.form .sw { flex-direction: row; align-items: center; gap: 10px; grid-column: 1 / -1; font-size: 14.5px; color: var(--ink); }
.form .sw input { width: 18px; height: 18px; accent-color: var(--accent); }
@media (max-width: 900px) { .ms-grid { grid-template-columns: repeat(2, 1fr); } .ms-two, .form { grid-template-columns: 1fr; } }

/* Feed status */
.checker { display: flex; gap: 10px; margin-top: 28px; }
.checker input { flex: 1; min-width: 0; font: 500 16px/1 var(--f); color: var(--ink); background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--line2), var(--shadow); border-radius: 999px; padding: 0 22px; height: 54px; }
.checker + .note { margin-top: 10px; }
.chk-out { margin-top: 22px; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chk-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.chk-h b { font: 650 18px/1 var(--f); color: var(--ink); }
.chk-l { list-style: none; margin: 0; padding: 0; }
.chk-l li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.chk-l li.in { opacity: 1; transform: none; }
.chk-l li b { color: var(--ink); font-variant-numeric: tabular-nums; }
.chk-ok { margin-top: 14px; font-size: 14.5px; color: var(--ink); display: flex; gap: 12px; align-items: center; }
.bad { color: var(--ink); font-weight: 600; margin: 0; padding-left: 12px; border-left: 2px solid var(--ink); }

/* News */
.news { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line2); }
.news li { position: relative; padding: 0 0 40px 30px; }
.news li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.news time { font: 600 12px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 10px; }
.news h2 { font-size: 26px; margin: 12px 0 8px; }
.hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.2%, -.8%, 0); } }
.hero:has(.hero-img)::before { background: linear-gradient(90deg, rgba(6,12,18,.82) 0%, rgba(6,12,18,.55) 36%, rgba(6,12,18,0) 64%), linear-gradient(0deg, var(--bg) 0%, transparent 26%); }
.hero:has(.hero-img) h1, .hero:has(.hero-img) .lede, .hero:has(.hero-img) .kick { color: #f3f6f8; }
.hero:has(.hero-img) h1 em { color: var(--accent); }
.hero:has(.hero-img) .lede { color: rgba(236, 242, 246, .86); }
.hero:has(.hero-img) .b.g { color: #f3f6f8; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.hero:has(.hero-img) .hud { color: rgba(236,242,246,.7); }
.hero:has(.hero-img) .hud b { color: #fff; }
body.home .top:not(.scrolled):not(.open) .brand, body.home .top:not(.scrolled):not(.open) .theme, body.home .top:not(.scrolled):not(.open) .menu { color: #f3f6f8; }
body.home .top:not(.scrolled):not(.open) .links { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
body.home .top:not(.scrolled):not(.open) .links > a, body.home .top:not(.scrolled):not(.open) .dd-b { color: rgba(243,246,248,.88); }
@media (max-width: 760px) { .hero:has(.hero-img)::before { background: linear-gradient(0deg, rgba(6,12,18,.92) 30%, rgba(6,12,18,.4) 65%, rgba(6,12,18,.1)); } .hero .w { padding-top: 40svh; } .hero .hero-img { object-position: 80% 72%; height: 70%; } }
@media (prefers-reduced-motion: reduce) { .hero .hero-img { animation: none; } }
@media (max-width: 1080px) { .top nav .links > a { font-size: 20px; padding: 14px 4px; } .top nav .links .dd-p::before { content: "Feeders"; display: block; font: 600 11px/1 var(--m); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 4px 8px; } }

/* Home opening, typography only (no hero, Erdem 21 Nov) */
.intro { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; }
.intro h1 { font-size: clamp(48px, 7.2vw, 108px); line-height: .94; letter-spacing: -.04em; }
.intro .lede { margin: 0 0 30px; }
.facts { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line2); counter-reset: f; }
.facts li { counter-increment: f; padding: 22px 22px 0 0; }
.facts li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.facts li::before { content: counter(f, decimal-leading-zero); display: block; font: 600 12px/1 var(--m); letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }
.facts b { display: block; font: 650 17px/1.25 var(--f); color: var(--ink); margin-bottom: 6px; }
.facts span { font-size: 14.5px; color: var(--ink2); }
@media (max-width: 900px) { .intro { padding: 56px 0 48px; } .intro-grid { grid-template-columns: 1fr; gap: 26px; } .facts { grid-template-columns: 1fr 1fr; margin-top: 48px; } .facts li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Flat honours (round 6), drawn inline so they follow the palette in light and dark */
:where(svg.hon-badge, svg.hon-rank, svg.hon-ribbon) { display: block; height: auto; overflow: visible; flex: none; }
:where(svg.hon-badge) { width: 48px; } :where(svg.hon-rank) { width: 32px; } :where(svg.hon-ribbon) { width: 50px; }

/* Docs layout (round 7: Feed API, Relay guide) */
.api-hl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 34px; border-top: 1px solid var(--line2); }
.api-hl > div { padding: 18px 18px 4px 0; }
.api-hl > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.api-hl b { display: block; font: 700 22px/1.1 var(--fd); font-stretch: 112%; color: var(--ink); letter-spacing: -.02em; margin-bottom: 6px; }
.api-hl span { font-size: 14px; color: var(--ink2); }
@media (max-width: 760px) { .api-hl { grid-template-columns: 1fr 1fr; } .api-hl > div:nth-child(3) { padding-left: 0; border-left: 0; } }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.dside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.dside .lbl { margin-bottom: 10px; }
.dside a { text-decoration: none; font-size: 14px; color: var(--ink2); padding: 8px 12px; border-radius: 10px; border-left: 2px solid transparent; transition: background .2s, color .2s; }
.dside a:hover { background: var(--surface2); color: var(--ink); }
.dside a[aria-current="true"] { color: var(--ink); background: var(--raise); box-shadow: inset 0 0 0 1px var(--line2); font-weight: 600; }
.dside-note { margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.dside-note p { font-size: 13px; color: var(--ink2); margin: 10px 0 0; line-height: 1.5; }
.dbody { min-width: 0; max-width: 860px; }
.dsec { padding: 8px 0 56px; scroll-margin-top: 88px; }
.dsec + .dsec { border-top: 1px solid var(--line); padding-top: 48px; }
.dsec h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 16px; }
.dsec h3 { font-size: 17px; margin: 30px 0 10px; }
.dsec h3 code { font-size: .8em; }
.dsec > p { max-width: 700px; }
.dnote { font-size: 14px; color: var(--ink2); padding-left: 14px; border-left: 2px solid var(--line2); margin-top: 16px; }
.dlist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.dlist li { position: relative; padding-left: 22px; }
.dlist li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dlist b { color: var(--ink); }
.dsteps { margin: 10px 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.dsteps li::marker { color: var(--accent); font-weight: 700; }
.new { display: inline-block; font: 600 10.5px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); background: rgba(var(--accent-rgb), .12); padding: 3px 6px; border-radius: 999px; vertical-align: 1px; }
.muted { color: var(--muted); }
.dtabs { margin-top: 18px; }
.dtabs .tabs { margin-bottom: 10px; }
.dtabs .tabs button { font-size: 13px; padding: 9px 13px; }
.code { border-radius: 16px; background: var(--sc-bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin: 14px 0; }
.code-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); font: 600 11px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--sc-muted); }
.code pre { margin: 0; border-radius: 0; box-shadow: none; max-height: 460px; overflow: auto; }
.copy { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: 600 12px/1 var(--f); letter-spacing: 0; text-transform: none; color: var(--sc-ink); background: transparent; padding: 8px 10px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line2); transition: background .2s, color .2s; }
.copy:hover { background: var(--surface2); }
.copy svg { width: 14px; height: 14px; }
.copy.done { color: var(--accent-text); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .5); }
.endpoint { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin: 6px 0 18px; }
.endpoint code { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink); overflow-x: auto; white-space: nowrap; }
.meth { font: 700 11px/1 var(--m); letter-spacing: .1em; color: var(--on-accent); background: var(--accent); padding: 7px 9px; border-radius: 8px; flex: none; }
.endpoint .copy { color: var(--ink); flex: none; }
.dtable-wrap { overflow-x: auto; margin: 12px 0 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th { text-align: left; font: 600 11px/1.3 var(--m); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line2); background: var(--surface2); white-space: nowrap; }
.dtable td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink2); line-height: 1.5; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable td:first-child { color: var(--ink); white-space: nowrap; }
.dtable code { font-size: .86em; color: var(--ink); background: var(--surface2); padding: 1px 5px; border-radius: 5px; }
.dtable.fields td:nth-child(2), .dtable.fields td:nth-child(3), .dtable.fields td:nth-child(4) { white-space: nowrap; }
.dtable.codes td:first-child { width: 110px; }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 16px; }
.limits > div { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.limits b { color: var(--ink); display: block; margin-bottom: 6px; }
.limits p { margin: 0; font-size: 14.5px; }
@media (max-width: 1000px) { .docs { grid-template-columns: minmax(0, 1fr); gap: 16px; } .dside { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; } .dside .lbl { width: 100%; margin-bottom: 4px; } .dside a { padding: 7px 11px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); } .dside-note { display: none; } }
@media (max-width: 600px) { .limits { grid-template-columns: 1fr; } .dtable { font-size: 13px; } .dtable td, .dtable th { padding: 10px 11px; } .endpoint code { font-size: 12px; } }

/* Relay */
.flow { margin: 8px 0 0; padding: 32px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.flow svg { display: block; width: 100%; height: auto; }
.flow-tall { display: none !important; }
@media (max-width: 760px) { .flow { padding: 20px 16px; } .flow-wide { display: none !important; } .flow-tall { display: block !important; max-width: 380px; margin: 0 auto; } }
.fl-k { font: 600 11px/1 var(--m); letter-spacing: .14em; fill: var(--muted); }
.fl-t { font: 600 16px/1 var(--f); fill: var(--ink); }
.fl-s { font: 400 13px/1 var(--f); fill: var(--ink2); }
.fl-box rect { fill: var(--raise); stroke: var(--line2); stroke-width: 1; }
.fl-box.on rect { fill: rgba(var(--accent-rgb), .07); stroke: var(--accent); stroke-width: 1.4; }
.fl-core > rect { fill: var(--surface2); stroke: var(--line2); }
.fl-step rect { fill: var(--raise); stroke: var(--line); }
.fl-l { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.fl-l.g { stroke: var(--accent); stroke-width: 1.8; }
.rfeat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 28px; border-radius: 22px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.rfeat > div { background: var(--bg); padding: 26px 26px 22px; }
.rfeat b { display: block; font: 700 19px/1.2 var(--fd); font-stretch: 108%; letter-spacing: -.015em; color: var(--ink); margin-bottom: 8px; }
.rfeat p { margin: 0; font-size: 14.5px; }
@media (max-width: 900px) { .rfeat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rfeat { grid-template-columns: 1fr; } }
.rdash { margin-top: 18px; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line2); box-shadow: var(--shadow-lg); }
.rd-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--surface2); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.rd-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); }
.rd-bar span:first-of-type { margin-left: 10px; flex: 1; }
.rd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 6px; flex-wrap: wrap; }
.rd-brand { display: flex; align-items: center; gap: 14px; }
.rd-brand b { color: var(--ink); font-size: 16px; }
.rd-brand .live { font-size: 13px; color: var(--ink2); }
.rd-btn { height: 40px; padding: 0 16px; font-size: 13.5px; }
.rd-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 18px; }
.rd-kpi > div { padding: 12px 14px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line); }
.rd-kpi b { display: block; font: 650 22px/1.1 var(--f); color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; }
.rd-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; padding: 0 18px 18px; }
.rd-map { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); min-height: 260px; }
.rd-map .lbl { position: absolute; left: 12px; top: 12px; z-index: 1; color: var(--sc-muted); }
.rd-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rd-side { display: grid; gap: 10px; }
.rd-card { padding: 12px 14px; border-radius: 14px; background: var(--raise); border: 1px solid var(--line); }
.rd-card svg { display: block; width: 100%; height: 60px; margin-top: 8px; }
.rd-out, .rd-stat { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.rd-out li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); }
.rd-out li:first-child { border-top: 0; }
.rd-out b { color: var(--ink); }
.rd-out span { color: var(--muted); }
.rd-out i { font-style: normal; font-weight: 600; color: var(--accent-text); }
.rd-stat li { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink2); }
.rd-stat b { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .rd-kpi { grid-template-columns: 1fr 1fr; } .rd-grid { grid-template-columns: minmax(0, 1fr); } .rd-bar .tag { display: none; } }
.code.full pre { max-height: none; }

/* Sign-up mock and consent (round 8) */
.form.signup { grid-template-columns: 1fr 1fr; margin: 18px 0 6px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 640px; }
.form.signup fieldset { display: contents; border: 0; margin: 0; padding: 0; }
.signup-h { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form.signup input:not([type=checkbox]):disabled { opacity: 1; color: var(--muted); cursor: not-allowed; }
.form .tick { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.form .tick input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.form .tick input:disabled { opacity: 1; }
.form .tick b { font-weight: 600; }
.form .tick em { font-style: normal; color: var(--ink2); }
.form .tick + .tick { padding-top: 14px; border-top: 1px solid var(--line); }
.tick-note { grid-column: 1 / -1; margin: -4px 0 0 32px; font-size: 13px; color: var(--ink2); line-height: 1.5; }
.form.signup .btns { grid-column: 1 / -1; }
.form.signup .b.p:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.consent { grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; background: var(--surface2); }
.consent p { margin: 8px 0 0 28px; font-size: 13px; color: var(--ink2); line-height: 1.5; }
@media (max-width: 600px) { .form.signup { grid-template-columns: 1fr; padding: 18px 16px; } .tick-note { margin-left: 0; } .consent p { margin-left: 0; } }
.form .tick input, .consent input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 6px; background: var(--raise); box-shadow: inset 0 0 0 1.5px var(--ink2); display: grid; place-items: center; cursor: pointer; flex: none; }
.form .tick input:checked, .consent input[type=checkbox]:checked { background: var(--accent); box-shadow: none; }
.form .tick input:checked::after, .consent input[type=checkbox]:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: translateY(-1px) rotate(-45deg); }
.form .tick input:disabled { cursor: not-allowed; }
@media (max-width: 600px) { .step { grid-template-columns: minmax(0, 1fr); gap: 10px; } .step > * { min-width: 0; } }

/* Contributor terms (round 8) */
.terms .preamble { font-size: 15.5px; color: var(--ink2); }
.terms .preamble b { color: var(--ink); }
.terms .preamble + .preamble { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); color: var(--ink); }
.toc { margin: 30px 0 10px; padding: 18px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 14px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.toc a { color: var(--ink2); text-decoration: none; } .toc a:hover { color: var(--ink); text-decoration: underline; }
.terms h2 { scroll-margin-top: 90px; }
.terms p { position: relative; padding-left: 44px; }
.terms p.preamble, .terms p.ver { padding-left: 0; }
.terms .cl { position: absolute; left: 0; top: 0; font: 600 13.5px/1.75 var(--f); color: var(--muted); font-variant-numeric: tabular-nums; }
.terms p.key { color: var(--ink); }
.terms .defs { margin: 6px 0 16px 44px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; }
.terms .defs dt { color: var(--ink); font-weight: 600; } .terms .defs dd { margin: 0; color: var(--ink2); }
.terms ol.sub { list-style: none; padding-left: 44px; }
@media (max-width: 600px) { .toc ol { columns: 1; } .terms p { padding-left: 36px; } .terms .defs { grid-template-columns: 1fr; margin-left: 0; gap: 2px; } .terms .defs dd { margin-bottom: 8px; } .terms ol.sub { padding-left: 16px; } }

/* Relay page: real dashboard screenshots, light or dark copy follows the theme */
.rshot { margin: 18px 0 0; }
.rshot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line2); box-shadow: var(--shadow-lg); }
.rshot figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.th-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .th-dark { display: block !important; } :root:not([data-theme="light"]) .th-light { display: none !important; } }
:root[data-theme="dark"] .th-dark { display: block !important; }
:root[data-theme="dark"] .th-light { display: none !important; }
.rlink { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
.rshot.phone { margin-top: 6px; }
.rshot.phone img { border-radius: 22px; }
@media (max-width: 560px) { .rlink { grid-template-columns: minmax(0, 1fr); } .rshot.phone { max-width: 240px; } }

/* Tap targets of at least 44 px on phones and touch screens (overnight pass 22 Nov) */
.brand { min-height: 44px; }
@media (pointer: coarse), (max-width: 760px) {
  .tabs button, .dtabs .tabs button { min-height: 44px; }
  .copy { min-height: 44px; min-width: 44px; justify-content: center; }
  .map-zoom button { min-width: 44px; min-height: 44px; }
  .kick a, a.lbl { display: inline-flex; align-items: center; min-height: 44px; }
  .tile .more, .gcard .more, .build .more, a.more { min-height: 44px; padding-top: 12px; }
  input[type="range"] { min-height: 44px; }
  .dside a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 380px) {
  .top .w { gap: 10px; }
  .top .tools { gap: 6px; }
  .cta-s { padding: 12px 12px; font-size: 13px; }
}
@media (pointer: coarse), (max-width: 760px) { .seg button { min-height: 44px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 400px) { .rackshow { grid-template-columns: minmax(0, 1fr); padding: 18px; } .rack.big :is(img, svg) { width: 44px; } .rs-medals { flex-wrap: wrap; } .rs-medals :is(img, svg) { width: 52px; height: 52px; } }
html.still .reveal { transition: none; }
.legal code { overflow-wrap: anywhere; }

[hidden] { display: none !important; }

/* live station page: honest empty states instead of demo figures */
.live-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--muted); }
.d-map .live-empty { color: var(--sc-muted); max-width: 420px; margin: auto; }
.live.off::before { background: var(--muted); animation: none; }
.rack.pr .rk { grid-column: 1 / -1; font-size: 11px; line-height: 1.3; color: var(--muted); text-align: center; margin-top: 2px; }
