/* Landing and policy pages. The landing leads with one full-bleed picture of the Namsan climb,
   then answers "why WATTU instead of Zwift" in three cards. Colours follow the app
   (src/index.css): ink is neutral, volt marks the main button, "me" and the words that matter in
   the headline, grade colours mean gradient and nothing else. Dark only, like the app. */
:root {
  --ink-950: #0c0e11; --ink-900: #14171b; --ink-800: #1c2026; --ink-700: #2a2f36; --ink-600: #3a4048;
  --ink-500: #6a717a; --ink-400: #9aa1a9; --ink-300: #c9ced3; --ink-200: #e1e4e2; --ink-100: #f2f3f0;
  --volt: #d7ff3e; --volt-hover: #e3ff6e;
  --ok: #5ed19a;
  --bg: var(--ink-950);
  --text: var(--ink-100);
  --text2: rgba(242, 243, 240, 0.68);
  --text3: rgba(242, 243, 240, 0.46);
  --line: rgba(255, 255, 255, 0.1);
  --line2: rgba(255, 255, 255, 0.18);
  --soft: #13161a;
  --sans: 'Pretendard Variable', Pretendard, system-ui, -apple-system, sans-serif;
  --num: 'Barlow Condensed', 'Pretendard Variable', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
.num { font-family: var(--num); font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 800px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--volt); color: var(--ink-950);
  font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }

/* ---------- top */
.langbar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 44px; font-size: 13px;
  background: #050608; color: var(--ink-300); position: relative; z-index: 6; border-bottom: 1px solid var(--line); }
.langbar[hidden] { display: none; }
.langbar a { color: var(--volt); font-weight: 600; text-decoration: none; }
.langbar button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: none;
  color: var(--ink-400); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.top { position: relative; z-index: 5; }
/* over the hero: no `top`, so it stays right under the language bar when that is shown */
.top.over { position: absolute; left: 0; right: 0; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.logo { font-family: var(--num); font-weight: 700; font-style: italic; font-size: 28px; text-decoration: none; letter-spacing: 0.01em; line-height: 1; color: var(--text); }
.logo b { background: var(--volt); color: var(--ink-950); padding: 0 3px; margin-left: -1px; border-radius: 3px; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 550; }
.nav a { padding: 8px 13px; border-radius: 12px; text-decoration: none; color: var(--text2); }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.top.over .nav a.lang { color: rgba(242, 243, 240, 0.85); }
.nav .nav-cta { padding: 9px 16px; background: var(--volt); color: var(--ink-950); font-weight: 700; }
.nav .nav-cta:hover { background: var(--volt-hover); color: var(--ink-950); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border-radius: 14px;
  background: var(--volt); color: var(--ink-950); font-weight: 700; font-size: 16.5px; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px -10px rgba(215, 255, 62, 0.55);
  transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { background: var(--volt-hover); }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: rgba(255, 255, 255, 0.1); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.16); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.cta-note { margin-top: 12px; color: var(--text3); font-size: 13.5px; font-weight: 500; text-align: center; }

/* ---------- shared section pieces */
.section { padding-top: 112px; }
@media (min-width: 720px) { .section { padding-top: 150px; } }
.center-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.center-head h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.18; }
.center-head .lead { margin-top: 14px; font-size: clamp(16px, 1.6vw, 17.5px); line-height: 1.7; color: var(--text2); }
.eyebrow { display: block; margin-bottom: 14px; color: var(--volt); font-size: 14px; font-weight: 650; letter-spacing: 0.01em; }
.profile { display: block; width: 100%; overflow: visible; }
.profile polyline { fill: none; stroke-width: var(--lw); stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.profile .area { fill: rgba(255, 255, 255, 0.07); }
/* a browser window drawn around a picture or a card */
.bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--ink-800); }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-600); }
.url { flex: 1; min-width: 0; margin-left: 8px; padding: 5px 12px; border-radius: 8px; background: var(--ink-950); font-size: 13.5px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- hero: the Namsan climb, full bleed */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 680px; height: 100vh; height: 100svh; max-height: 1100px; overflow: hidden; }
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
/* The loop starts on the picture's frame, so fading it in over the picture shows no jump. */
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.hero-video.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(90deg, rgba(12, 14, 17, 0.86) 0%, rgba(12, 14, 17, 0.5) 36%, rgba(12, 14, 17, 0) 62%),
  linear-gradient(0deg, var(--bg) 0%, rgba(12, 14, 17, 0) 32%),
  linear-gradient(180deg, rgba(12, 14, 17, 0.55) 0%, rgba(12, 14, 17, 0) 16%); }
.hero-in { padding-top: 120px; padding-bottom: 88px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 99px; background: rgba(12, 14, 17, 0.6);
  box-shadow: inset 0 0 0 1px var(--line2); font-size: 13.5px; font-weight: 600; color: var(--text2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: #f29e4c; }
.tag [data-scene] { display: inline-flex; align-items: center; gap: 8px; }
.tag [data-scene][hidden] { display: none; }
.tag .num { margin-left: 2px; font-size: 15px; color: var(--text); }
/* Ride numbers over the loop, as the app showed them (site/heroTelemetry.ts). One row at the
   bottom right, below the rider and right of the buttons; a block under the logo on narrower
   screens; a column at the top right on phones, where N Seoul Tower stands left of the middle. */
.hero-hud { position: absolute; right: 40px; bottom: 88px; z-index: 1; display: flex; border-radius: 16px; background: rgba(12, 14, 17, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 40px rgba(0, 0, 0, 0.25); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  pointer-events: none; animation: hud-in 0.6s ease; }
.hero-hud[hidden], .hero-hud [hidden] { display: none; }
@keyframes hud-in { from { opacity: 0; } }
.hh-elev { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; width: 200px; padding: 12px 16px; }
.hh-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ink-400); }
.hh-head .num { font-size: 13px; color: var(--ink-300); }
.hh-head i { font-style: normal; color: var(--text); }
.hh-graph { position: relative; height: 36px; }
.hh-prof, .hh-prof svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hh-mark { position: absolute; top: 0; bottom: 0; border-left: 1.2px dashed #22d3ee; }
.hh-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--volt); }
.hh-m { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-width: 86px; padding: 13px 18px 12px; box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08); }
.hh-m > span { font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ink-400); }
.hh-m b { display: flex; align-items: baseline; gap: 4px; font-size: 34px; line-height: 1; color: var(--text); }
/* Fixed number widths, so the panel doesn't twitch as digits and signs change. */
.hh-m i { display: inline-block; min-width: 3ch; font-style: normal; text-align: right; }
.hh-m:nth-child(3) i, .hh-m:nth-child(4) i { min-width: 4ch; }
.hh-m small { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-400); }
.hh-w b { font-size: 44px; color: var(--volt); }
@media (max-width: 1099px) {
  .hero-hud { right: auto; bottom: auto; left: 32px; top: 84px; display: grid; grid-template-columns: auto auto; border-radius: 14px; }
  .hh-elev { grid-column: 1 / -1; width: auto; gap: 4px; padding: 9px 12px 8px; }
  .hh-head { font-size: 11px; }
  .hh-head .num { font-size: 12px; }
  .hh-graph { height: 28px; }
  .hh-m { min-width: 74px; gap: 2px; padding: 8px 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
  .hh-m:nth-child(odd) { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
  .hh-m > span { font-size: 11px; }
  .hh-m b, .hh-w b { gap: 3px; font-size: 22px; }
  .hh-m small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .hero-hud { display: none; } }
h1 { font-size: clamp(34px, 5.4vw, 72px); line-height: 1.1; letter-spacing: -0.04em; }
.hero h1 { margin-top: 22px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
html[lang='en'] .hero h1 { font-size: clamp(34px, 5vw, 68px); }
h1 em { font-style: normal; color: var(--volt); }
.hero .lead { margin-top: 20px; max-width: 560px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: rgba(242, 243, 240, 0.86); }
.hero .cta { justify-content: flex-start; margin-top: 30px; }
.hero .cta-note { text-align: left; color: rgba(242, 243, 240, 0.6); }

/* ---------- why: three cards */
.why-cards { display: grid; gap: 16px; }
@media (min-width: 960px) { .why-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why-card { display: flex; flex-direction: column; padding: 28px; border-radius: 24px; background: var(--soft); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
@media (min-width: 960px) { .why-card { min-height: 470px; } }
.why-card .vis { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 8px; }
.why-card h3 { margin-top: 24px; font-size: 23px; }
.why-card > p { margin-top: 10px; font-size: 15.5px; line-height: 1.7; color: var(--text2); }
.roads-mini li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.roads-mini li:first-child { padding-top: 0; }
.roads-mini b { font-size: 26px; letter-spacing: -0.03em; line-height: 1.2; }
.roads-mini .profile { height: 26px; }
.roads-mini .num { font-size: 17px; color: var(--text2); white-space: nowrap; }
html[lang='en'] .roads-mini li { grid-template-columns: 96px minmax(0, 1fr) auto; }
html[lang='en'] .roads-mini b { font-size: 21px; }
.browser { border-radius: 14px; overflow: hidden; background: var(--ink-900); box-shadow: 0 0 0 1px var(--line2), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.devices { display: grid; gap: 10px; padding: 22px 18px; }
.devices li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ink-950); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px; font-weight: 600; }
.devices small { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ok); }
.devices .bt { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); font-size: 13px; }
.zero { font-size: 150px; line-height: 0.9; font-weight: 700; letter-spacing: -0.02em; }
.zero small { margin-left: 4px; font-family: var(--sans); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.prices { display: grid; gap: 6px; margin-top: 18px; font-size: 14px; }
.prices li { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); color: var(--text2); }
.prices b { font-size: 17px; color: var(--text); }
.prices li.me { background: rgba(215, 255, 62, 0.1); color: var(--text); font-weight: 650; }
.prices li.me b { color: var(--volt); }
.src { margin-top: 9px; font-size: 12px; color: var(--text3); }
.src a { color: var(--text2); text-underline-offset: 2px; }
@media (max-width: 959px) {
  .why-card .vis { padding: 4px 0 8px; }
  .zero { font-size: 110px; }
}

/* ---------- roads: pictures, then every course */
.photos { display: grid; gap: 16px; }
@media (min-width: 960px) { .photos { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: 300px 300px; } }
.photo { position: relative; min-height: 260px; border-radius: 24px; overflow: hidden; background: var(--ink-900); }
.photo.big { min-height: 380px; }
@media (min-width: 960px) { .photo.big { grid-row: span 2; } }
.photo picture { position: absolute; inset: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 14, 17, 0.85), rgba(12, 14, 17, 0) 55%); }
.photo figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; }
.photo figcaption b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; }
.photo.big figcaption b { font-size: clamp(26px, 3vw, 36px); }
.photo figcaption .num { font-size: 18px; color: var(--text2); }
.list-title { margin-top: 56px; font-size: 15px; font-weight: 650; color: var(--text3); }
.course-list { display: grid; gap: 8px 24px; margin-top: 14px; }
@media (min-width: 880px) { .course-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.course-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: var(--soft); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.course-list img, .course-list .ph { width: 64px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--ink-800); }
.course-list .t { min-width: 0; }
.course-list .t b, .course-list .t small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-list .t b { font-size: 14.5px; font-weight: 650; }
.course-list .t small { margin-top: 1px; font-size: 12.5px; color: var(--text3); }
.course-list .s { display: grid; gap: 4px; }
.course-list .s .num { font-size: 15px; color: var(--text2); text-align: right; }
.course-list .profile { height: 22px; }

/* ---------- how: the ride screen in a browser window, three steps */
.window { border-radius: 18px; overflow: hidden; background: var(--ink-900);
  box-shadow: 0 0 0 1px var(--line2), 0 50px 120px -50px rgba(30, 80, 200, 0.45), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.window img { width: 100%; }
.steps { display: grid; gap: 28px; margin-top: 40px; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.steps li { padding-top: 18px; border-top: 1px solid var(--line2); }
.steps .num { font-size: 18px; color: var(--text3); }
.steps h3 { margin-top: 6px; font-size: 21px; }
.steps p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--text2); }

/* ---------- more: small features */
.more { display: grid; gap: 12px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 720px) { .more { grid-template-columns: repeat(2, minmax(0, 1fr)); } .more li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.more li { padding: 26px 26px 28px; border-radius: 20px; background: var(--soft); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.more h3 { font-size: 19px; letter-spacing: -0.02em; }
.more p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--text2); }

/* ---------- faq */
.faq-list { max-width: 760px; margin: 0 auto; border-radius: 24px; background: var(--soft); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
details + details { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 19px 52px 19px 22px; font-size: 16px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-400);
  border-bottom: 2px solid var(--ink-400); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 52px 20px 22px; font-size: 15.5px; line-height: 1.75; color: var(--text2); }

/* ---------- closing call over the Namsan road */
.final { position: relative; overflow: hidden; border-radius: 28px; text-align: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.final picture { position: absolute; inset: 0; }
.final picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.final::after { content: ''; position: absolute; inset: 0; background: radial-gradient(48% 62% at 50% 52%, rgba(12, 14, 17, 0.6), rgba(12, 14, 17, 0) 100%),
  linear-gradient(180deg, rgba(12, 14, 17, 0.35), rgba(12, 14, 17, 0.78)); }
.final-in { position: relative; z-index: 1; padding: 120px 24px 120px; }
.final h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.1; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4); }
.final-in > p { margin-top: 14px; color: rgba(242, 243, 240, 0.86); font-size: 17.5px; }
.final .cta-note { color: rgba(242, 243, 240, 0.6); }
@media (max-width: 719px) { .final { border-radius: 20px; } .final-in { padding: 80px 18px 84px; } }

/* ---------- footer */
.foot { margin-top: 120px; border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 13px; color: var(--text3); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.foot-brand p { margin-top: 10px; font-size: 14px; color: var(--text2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--text2); }
.foot-links a { text-decoration: none; }
.foot-links b { color: var(--text); font-weight: 650; }
.foot-links a:hover { color: var(--text); }
.foot-langs { display: flex; gap: 16px; margin-top: 28px; font-size: 13.5px; }
.foot-langs a { text-decoration: none; color: var(--text2); }
.foot-langs a[aria-current] { color: var(--text); font-weight: 650; }
.fine { margin-top: 22px; }
.copy { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.copy a, .fine a { text-underline-offset: 2px; }

/* ---------- policy */
.doc { padding: 48px 0 40px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.2; letter-spacing: -0.03em; }
.doc .meta { margin-top: 10px; color: var(--text3); font-size: 14px; }
.doc .intro { margin-top: 28px; font-size: 16px; line-height: 1.8; color: var(--text2); }
.summary { margin-top: 32px; background: var(--soft); border-radius: 20px; padding: 26px 28px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.summary h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.summary ul { margin-top: 14px; display: grid; gap: 10px; }
.summary li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.7; color: var(--text2); }
.summary li::before { content: ''; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 6px; border-radius: 2px; background: var(--ink-300); }
.notice p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--text2); }
.notice a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.toc { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; text-decoration: none; color: var(--text2); border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--text); }
.toc a::before { content: counter(t); font-family: var(--num); font-weight: 700; color: var(--text3); min-width: 18px; }
.doc section { margin-top: 56px; }
.doc section h2 { font-size: 22px; letter-spacing: -0.025em; margin: 0; }
.doc section h3 { margin-top: 26px; font-size: 16px; }
.doc section p, .doc section li { margin-top: 12px; font-size: 15px; line-height: 1.8; color: var(--text2); }
.doc section ul { margin-top: 12px; }
.doc section ul li { position: relative; padding-left: 16px; margin-top: 6px; }
.doc section ul li::before { content: '–'; position: absolute; left: 0; color: var(--text3); }
.doc section ol { margin-top: 12px; counter-reset: item; }
.doc section ol li { position: relative; padding-left: 24px; margin-top: 6px; counter-increment: item; }
.doc section ol li::before { content: counter(item) '.'; position: absolute; left: 0; font-family: var(--num); color: var(--text3); }
.doc .facts { margin-top: 14px; border-top: 1px solid var(--line); }
.doc .facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc .facts dt { font-size: 14px; font-weight: 700; color: var(--text); }
.doc .facts dd { font-size: 15px; line-height: 1.75; color: var(--text2); }
.doc a { color: var(--text); text-underline-offset: 2px; }

.lost { padding: 96px 0 40px; text-align: center; }
.lost .lead { margin-top: 16px; color: var(--text2); font-size: 18px; }

/* ---------- small screens */
@media (max-width: 719px) {
  .top-in { height: 60px; }
  .logo { font-size: 26px; }
  .nav a { padding: 7px 10px; }
  .nav .nav-cta { padding: 8px 13px; font-size: 14px; }
  .langbar { justify-content: flex-start; padding-left: 16px; }
  .hero { min-height: 640px; max-height: none; }
  .hero picture img, .hero-video { object-position: 50% 0; }
  .hero::after { background:
    linear-gradient(0deg, var(--bg) 0%, rgba(12, 14, 17, 0.88) 34%, rgba(12, 14, 17, 0.2) 62%, rgba(12, 14, 17, 0) 74%),
    linear-gradient(180deg, rgba(12, 14, 17, 0.5) 0%, rgba(12, 14, 17, 0) 14%); }
  .hero-in { padding-bottom: 36px; }
  .hero-hud { left: auto; right: 16px; top: 70px; width: 128px; grid-template-columns: minmax(0, 1fr); }
  .hh-head { justify-content: flex-end; }
  .hh-head > span:first-child { display: none; }
  .hh-m, .hh-m:nth-child(odd) { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 6px; min-width: 0; padding: 6px 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
  .hh-m b { font-size: 20px; }
  .hh-w b { font-size: 22px; }
  .hh-m small { font-size: 9.5px; }
  .hero h1 { margin-top: 16px; }
  .hero .lead br { display: none; }
  .hero .cta { margin-top: 24px; }
  .hero .btn { flex: 1; padding: 0 14px; }
  .why-card { padding: 22px; border-radius: 20px; }
  .why-card h3 { font-size: 21px; }
  .roads-mini li { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; }
  .roads-mini b { font-size: 22px; }
  html[lang='en'] .roads-mini li { grid-template-columns: 84px minmax(0, 1fr) auto; }
  html[lang='en'] .roads-mini b { font-size: 18px; }
  .roads-mini .num { font-size: 15.5px; }
  .photo { border-radius: 20px; min-height: 220px; }
  .photo.big { min-height: 320px; }
  .photo figcaption { left: 18px; right: 18px; bottom: 16px; }
  .photo figcaption b { font-size: 21px; }
  .photo figcaption .num { font-size: 16px; }
  .course-list li { grid-template-columns: 56px minmax(0, 1fr) 96px; gap: 12px; }
  .course-list img, .course-list .ph { width: 56px; height: 40px; }
  .course-list .s .num { font-size: 13.5px; }
  .window { border-radius: 12px; }
  .window .bar { padding: 8px 10px; gap: 5px; }
  .window .bar i { width: 8px; height: 8px; }
  .window .url { font-size: 12px; padding: 3px 9px; }
  .more li { padding: 20px 20px 22px; }
  .course-list .t b { white-space: normal; line-height: 1.35; }
  .foot { margin-top: 96px; }
  .doc .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .toc { grid-template-columns: minmax(0, 1fr); }
  summary { padding-left: 18px; }
  details p { padding-left: 18px; padding-right: 22px; }
}

/* ---------- admin (/admin/): numbers and a member table, nothing decorative */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin { padding: 24px 0 64px; }
.admin [hidden] { display: none !important; }
.admin h1 { font-size: 32px; }
.admin h2 { margin-top: 48px; font-size: 20px; display: flex; align-items: baseline; gap: 10px; }
.admin h2 .num { color: var(--text3); font-size: 18px; }
.admin-who { color: var(--text3); font-size: 14px; }
.admin-state { margin-top: 24px; color: var(--text2); line-height: 2; }
.admin-state .btn { margin-top: 12px; }
.admin-stats { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (min-width: 720px) { .admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .admin-stats { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
/* seven figures: the last one fills the row in the 2- and 4-column layouts */
.admin-stats div:last-child { grid-column: span 2; }
@media (min-width: 1100px) { .admin-stats div:last-child { grid-column: auto; } }
.admin-stats div { background: var(--ink-950); padding: 16px 18px; }
.admin-stats dt { font-size: 13px; color: var(--text3); }
.admin-stats dd { margin: 4px 0 0; font-size: 28px; line-height: 1.1; }
.admin-table { position: relative; margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.admin th { text-align: left; font-weight: 600; color: var(--text3); font-size: 13px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.admin td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--text2); }
.admin td:first-child { color: var(--text); }
.admin td.num { font-size: 16px; }
.admin tbody tr:last-child td { border-bottom: 0; }
.admin .del { border: 1px solid var(--line2); background: none; border-radius: 10px; padding: 5px 11px; font-size: 13px; cursor: pointer; color: var(--text2); }
.admin .del:hover { color: var(--text); border-color: var(--text3); }
.admin .del.armed { background: #e94f37; border-color: #e94f37; color: #fff; }
.admin #admin-more { margin-top: 16px; height: 44px; }
.admin-note { margin-top: 16px; font-size: 13px; color: var(--text3); }

/* ---------- admin analytics tab (src/analytics/adminView.ts) */
.admin-tabs { display: flex; align-items: center; margin-top: 28px; border-bottom: 1px solid var(--line); }
.admin-tabs [role='tab'] { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text3); padding: 10px 2px; margin-right: 20px;
  font-size: 15px; font-weight: 600; cursor: pointer; }
.admin-tabs [role='tab']:hover { color: var(--text); }
.admin-tabs [role='tab'][aria-selected='true'] { color: var(--text); border-bottom-color: var(--volt); }

.av-card { margin-top: 40px; }
.av-card h2 { margin-top: 0; }
.av-sub { font-size: 13px; color: var(--text3); margin: 6px 0 16px; }
.av-note { margin-top: 12px; font-size: 13.5px; color: var(--text3); }
.av-empty { margin-top: 40px; color: var(--text2); }
.av-body > .del { margin-top: 12px; }

.av-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.av-ranges { display: flex; gap: 6px; }
.av-toggle { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: none; color: var(--text2); cursor: pointer; }
.av-toggle:hover { color: var(--text); border-color: var(--text3); }
.av-toggle[aria-pressed='true'] { background: var(--volt); border-color: var(--volt); color: var(--ink-950); }
.av-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); cursor: pointer; }
.av-check input { accent-color: var(--volt); }
.av-stamp { margin-left: auto; font-size: 13px; color: var(--text3); }
.av-body.av-loading { opacity: 0.5; }

.av-funnel, .av-source-bars { position: relative; display: flex; flex-direction: column; gap: 6px; }
.av-frow { display: grid; grid-template-columns: 116px minmax(0, 1fr) 48px 54px; align-items: center; gap: 10px; }
.av-srow { display: grid; grid-template-columns: 112px minmax(0, 1fr) 60px; align-items: center; gap: 10px; }
.av-flabel, .av-slabel { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-track { height: 18px; background: rgba(255, 255, 255, 0.05); }
.av-bar { height: 18px; border-radius: 0 4px 4px 0; }
.av-fvalue, .av-svalue { text-align: right; font-size: 16px; }
.av-fprev { text-align: right; font-size: 15px; color: var(--text3); }

.av-splits { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 22px; }
@media (min-width: 720px) { .av-splits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.av-splits .admin-table { margin-top: 8px; }
.av-card caption { text-align: left; padding: 10px 14px 0; font-size: 13px; color: var(--text3); }
.av-ellipsis { display: block; overflow: hidden; max-width: 340px; text-overflow: ellipsis; }

.av-legend { display: flex; align-items: center; gap: 18px; margin: 4px 0 12px; font-size: 13px; color: var(--text2); }
.av-key { display: inline-flex; align-items: center; gap: 6px; }
.av-key i { display: inline-block; width: 16px; height: 2px; border-radius: 1px; }
.av-chart { position: relative; width: 100%; }
.av-chart svg { display: block; }
.av-table-view { margin-top: 16px; font-size: 13.5px; color: var(--text2); }
.av-table-view summary { cursor: pointer; color: var(--text3); }

.av-tip { position: absolute; z-index: 5; pointer-events: none; max-width: 240px; padding: 8px 10px; border-radius: 10px;
  background: var(--ink-800); box-shadow: 0 0 0 1px var(--line2), 0 8px 24px rgba(0, 0, 0, 0.5); color: var(--text);
  font-size: 12.5px; line-height: 1.5; }
.av-tip-title { margin-bottom: 4px; color: var(--text2); }
.av-tip-row { display: flex; align-items: center; gap: 6px; }
.av-tip-key { flex: none; width: 12px; height: 2px; border-radius: 1px; }
.av-tip-name { color: var(--text3); }
.av-tip-note { margin-top: 2px; color: var(--text3); }

.av-cohort-controls { display: flex; gap: 6px; margin-bottom: 12px; }

.av-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 4px 0 8px; }
@media (min-width: 560px) { .av-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.av-tile { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-900); }
.av-tile-label { font-size: 13px; color: var(--text3); }
.av-tile-value { margin-top: 4px; font-size: 32px; line-height: 1.15; font-variant-numeric: proportional-nums; }
.av-tile-note { margin-top: 2px; font-size: 13px; color: var(--text2); }

.av-person-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.av-person-head h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.av-events { max-height: 480px; overflow-y: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; }
.av-event { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; }
.av-event:last-child { border-bottom: 0; }
.av-event-time { color: var(--text3); }
.av-event-name { font-weight: 600; }
.av-event-path { overflow: hidden; max-width: 100%; color: var(--text3); text-overflow: ellipsis; }
.av-event-tag { padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--text3); font-size: 11.5px; }
.av-event-props { flex-basis: 100%; color: var(--text2); overflow-wrap: anywhere; }

/* the privacy policy's usage-records switch (site/content/privacy-*.ts, src/analytics/site.ts) */
.optout { margin: 16px 0 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.optout[hidden] { display: none; }
.optout p { margin: 0; flex: 1 1 220px; color: var(--text2); }
.optout .btn { height: 44px; padding: 0 18px; font-size: 15px; }
