/* SofAds marketing site.
   Palette sampled from the logo: navy #040D1F (ground), signal blue #1F8EFD,
   screen cyan #2AD6FD, near-white. One warm counter-colour ("lamp") marks
   focus and the honest "where we are" notes: the living-room lamp next to the TV. */

@font-face {
  font-family: 'Rubik';
  src: url(/assets/fonts/rubik-latin-600-normal.6182043a.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url(/assets/fonts/rubik-latin-800-normal.8329d791.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-400-normal.5cb240a4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-400-italic.59bc0e96.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-700-normal.0dbe07ed.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-weight: 700;
  font-display: swap;
}

/* Extra subsets: only downloaded when a page uses those characters (Polish, Arabic). */
@font-face {
  font-family: 'Rubik';
  src: url(/assets/fonts/rubik-latin-ext-600-normal.d1268096.woff2) format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  src: url(/assets/fonts/rubik-latin-ext-800-normal.e8d25f05.woff2) format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  src: url(/assets/fonts/rubik-arabic-600-normal.f60c6ef1.woff2) format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Rubik';
  src: url(/assets/fonts/rubik-arabic-800-normal.f24bb692.woff2) format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-ext-400-normal.0f9e4421.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-ext-700-normal.acd5d077.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: oklch(0.155 0.04 262);          /* #040D1F, the logo ground */
  --navy-2: oklch(0.2 0.048 260);
  --navy-3: oklch(0.255 0.055 258);
  --navy-4: oklch(0.33 0.06 256);
  --line: oklch(0.36 0.05 256 / 0.7);
  --ink: oklch(0.965 0.008 250);
  --ink-2: oklch(0.84 0.025 250);
  --ink-3: oklch(0.72 0.035 252);
  --blue: oklch(0.655 0.19 254);          /* #1F8EFD */
  --blue-soft: oklch(0.655 0.19 254 / 0.14);
  --cyan: oklch(0.83 0.135 216);          /* #2AD6FD */
  --cyan-soft: oklch(0.83 0.135 216 / 0.12);
  --lamp: oklch(0.84 0.14 78);
  --lamp-soft: oklch(0.84 0.14 78 / 0.12);

  --font-display: 'Rubik', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-code: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --step--1: clamp(0.88rem, 0.85rem + 0.1vw, 0.94rem);
  --step-0: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
  --step-1: clamp(1.3rem, 1.2rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.65rem, 1.45rem + 0.9vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.7rem + 1.9vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.8rem + 4vw, 5.2rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--cyan); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* TV-style focus: a bright lamp-coloured frame, like a highlighted tile on a TV home screen. */
:focus-visible {
  outline: 3px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.022em; word-spacing: 0.06em; }
h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
p, li, dd { max-width: 68ch; }
strong { color: var(--ink); }

code {
  font-family: var(--font-code);
  font-size: 0.88em;
  background: var(--navy-3);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--lamp);
  color: var(--navy);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus { top: 1rem; }

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--ink-3); }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.9rem;
}
.brand { display: block; border-radius: 6px; }
.brand-logo { width: 132px; height: auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--step--1);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.nav a:hover { background: var(--navy-3); color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 8px 8px 0 0; }
.nav .nav-login { border: 1px solid var(--navy-4); }
@media (max-width: 30rem) {
  .header-inner { justify-content: center; }
  .nav { justify-content: center; }
  .nav a { padding: 0.4rem 0.55rem; }
}

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: var(--navy); }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--navy-4); }
.btn-ghost:hover { background: var(--navy-3); }
.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

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

.hero {
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 8vw, 7rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.hero h1 { max-width: 12ch; }
.hero-demo { margin: 1.25rem 0 0; color: var(--ink-3); font-size: var(--step--1); }
.hero-demo a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: var(--step-0); }
.hero-demo-play {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--cyan-soft);
  box-shadow: inset 0 0 0 1.5px var(--cyan);
  position: relative;
}
.hero-demo-play::after {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0.45rem;
  border-style: solid;
  border-width: 0.35rem 0 0.35rem 0.55rem;
  border-color: transparent transparent transparent var(--cyan);
}
.hero h1 .accent { color: var(--cyan); }
.hero .lead { max-width: 38ch; }

/* ---------- The TV (echoes the frame + antenna in the logo) ---------- */

.tv { margin: 0; }
.tv-set {
  position: relative;
  margin-top: 2.2rem;
  padding: clamp(8px, 1.2vw, 14px);
  border: clamp(3px, 0.45vw, 5px) solid var(--cyan);
  border-color: var(--blue) var(--cyan) var(--cyan) var(--blue);
  border-radius: clamp(14px, 2vw, 26px);
  transform: rotate(-1.2deg);
}
.tv-set::before, .tv-set::after {
  /* the antenna */
  content: '';
  position: absolute;
  top: calc(-2.3rem - clamp(3px, 0.45vw, 5px));
  width: clamp(3px, 0.45vw, 5px);
  height: 2.4rem;
  background: var(--blue);
  border-radius: 99px;
  left: 50%;
}
.tv-set::before, .tv-set::after { transform-origin: bottom center; }
.tv-set::before { transform: translateX(-50%) rotate(-38deg); }
.tv-set::after { transform: translateX(-50%) rotate(38deg); }
.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(6px, 1vw, 12px);
  background: var(--navy-2);
  container-type: inline-size;
}
.tv-screen > svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.tv figcaption {
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--ink-3);
  max-width: 52ch;
}

/* The ad screen, drawn like the SDK's renderer on a 1920x1080 stage: sized in
   container units (1cqw = 19.2 px at 1080p), inside the 5% TV-safe margin
   (96 px = 5cqw left/right, 54 px = 2.8cqw top/bottom). The SDK's default
   accent (#7c5cff) marks the focused Close button and the QR frame. */
.ad-screen {
  --ad-accent: #7c5cff;
  position: absolute;
  inset: 0;
  color: #fff;
  font-family: var(--font-body);
  line-height: 1.2;
}
.ad-screen p { margin: 0; max-width: none; }
.ad-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ad-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(6 6 20 / 0.94) 0%, rgb(6 6 20 / 0.82) 38%, rgb(6 6 20 / 0.25) 68%, rgb(6 6 20 / 0) 85%);
}
.ad-top {
  position: absolute;
  left: 5cqw;
  top: 2.8cqw;
  display: flex;
  align-items: center;
  gap: 0.9cqw;
  padding: 0.45cqw 1.4cqw 0.45cqw 0.45cqw;
  border-radius: 99cqw;
  background: rgb(10 12 28 / 0.82);
  border: 0.1cqw solid rgb(255 255 255 / 0.12);
}
.ad-badge {
  font-weight: 700;
  font-size: 1.25cqw;
  padding: 0.35cqw 0.85cqw;
  border-radius: 99cqw;
  background: rgb(255 255 255 / 0.16);
}
.ad-logo { display: block; width: 3.3cqw; height: 3.3cqw; padding: 0.35cqw; border-radius: 0.6cqw; background: #fff; }
.ad-logo svg { width: 100%; height: 100%; }
.ad-name { font-family: var(--font-display); font-weight: 600; font-size: 1.55cqw; }
.ad-close-zone {
  position: absolute;
  right: 5cqw;
  top: 2.8cqw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6cqw;
}
.ad-close {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6cqw;
  padding: 0.7cqw 1.7cqw;
  border-radius: 99cqw;
  background: var(--ad-accent);
  box-shadow: 0 0 0 0.25cqw #fff, 0 0 0 0.55cqw rgb(124 92 255 / 0.45);
}
.ad-close-note {
  font-size: 1.2cqw;
  font-weight: 700;
  padding: 0.4cqw 1cqw;
  border-radius: 99cqw;
  background: rgb(10 12 28 / 0.82);
  color: rgb(255 255 255 / 0.88);
}
.ad-copy {
  position: absolute;
  left: 5cqw;
  top: 34%;
  width: 50cqw;
}
.ad-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.9cqw;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ad-body { margin-top: 1.4cqw !important; font-size: 1.8cqw; line-height: 1.35; color: rgb(255 255 255 / 0.9); }
.ad-small { margin-top: 1.6cqw !important; font-size: 1.25cqw; color: rgb(255 255 255 / 0.72); }
.ad-card {
  position: absolute;
  right: 5cqw;
  top: 22%;
  width: 22.5cqw;
  padding: 1.25cqw;
  border-radius: 1.4cqw;
  background: #f5f6fb;
  color: #0b0d1c;
  text-align: center;
  box-shadow: 0 1.5cqw 4cqw rgb(6 6 20 / 0.55);
  animation: card-in 0.9s var(--ease-out) 0.4s both;
}
.ad-card-head { font-family: var(--font-display); font-weight: 800; font-size: 1.9cqw; line-height: 1.15; }
.ad-reward { white-space: nowrap; }
.ad-heart { display: inline-block; width: 1.75cqw; height: 1.75cqw; vertical-align: -0.25cqw; margin-left: 0.25cqw; }
.ad-qr {
  margin-top: 1cqw;
  padding: 2.4cqw;
  aspect-ratio: 1;
  border-radius: 0.9cqw;
  background: #fff;
  border: 0.22cqw solid var(--ad-accent);
}
.ad-qr svg { width: 100%; height: 100%; }
.ad-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6cqw;
  margin-top: 1cqw !important;
  padding-top: 0.9cqw;
  border-top: 0.1cqw solid #dcdfea;
  font-weight: 700;
  font-size: 1.3cqw;
  color: #3a3f58;
}
.ad-dot { width: 0.7cqw; height: 0.7cqw; border-radius: 50%; background: var(--ad-accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes card-in {
  from { opacity: 0; translate: 3cqw 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes pulse {
  50% { opacity: 0.35; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--ink-2); }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

/* Two doors: publishers + advertisers. Deliberately not twins. */
.doors {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 56rem) {
  .doors { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .door-adv { margin-top: 4rem; }
}
.door {
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.door-pub { background: var(--blue-soft); border: 1px solid oklch(0.655 0.19 254 / 0.35); }
.door-adv { background: var(--cyan-soft); border: 1px solid oklch(0.83 0.135 216 / 0.3); }
.door h3 { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.door-pub .kicker { color: var(--blue); }
.door .actions { margin-top: 1.5rem; }

.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 3px;
  background: currentColor;
  color: var(--cyan);
}
.door-pub .ticks li::before { color: var(--blue); }

/* Code */
.code {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-code);
  font-size: clamp(0.8rem, 0.76rem + 0.2vw, 0.92rem);
  line-height: 1.7;
  color: var(--ink-2);
}
.code code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.code .k { color: var(--cyan); }
.code .s { color: var(--lamp); }
.code .c { color: var(--ink-3); }

/* Decision ladder */
.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rung;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.ladder li {
  counter-increment: rung;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.ladder li::before {
  content: counter(rung, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1;
  color: var(--blue);
  margin-bottom: 0.8rem;
}
.ladder li:last-child::before { color: var(--cyan); }
.ladder h3 { margin-bottom: 0.35rem; }
.ladder p { color: var(--ink-2); margin: 0; font-size: var(--step--1); }

/* Platforms */
.platforms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
}
.platforms li {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.platforms li:not(:last-child)::after { content: '/'; color: var(--navy-4); margin-inline: 0.35em; }
.platforms small {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-3);
  vertical-align: super;
  margin-left: 0.25em;
}
.platforms .later { color: var(--ink-3); }
.platforms-more { margin: 1.5rem 0 0; color: var(--ink-2); }

/* Honest status: now / next / later */
.status {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
@media (min-width: 56rem) { .status { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.status h2 .lamp { color: var(--lamp); }
.timeline { margin: 0; display: grid; gap: 0; }
.timeline > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}
.timeline dt { font-family: var(--font-display); font-weight: 600; color: var(--lamp); }
.timeline dd { margin: 0; color: var(--ink-2); }

/* CTA band */
.cta {
  background: var(--navy-2);
  border-top: 1px solid var(--line);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem 3rem;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.cta h2 { margin: 0; max-width: 18ch; }
.cta .actions { margin: 0; }

/* Interior pages */
.page-head { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem); }
.page-head h1 { max-width: 16ch; }
.page-head .lead { max-width: 44ch; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.split > :first-child h2 { position: sticky; top: 1.5rem; }

.defs { margin: 0; }
.defs > div { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.defs > div:last-child { border-bottom: 1px solid var(--line); }
.defs dt { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.25; margin-bottom: 0.35rem; }
.defs dt .tag {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--navy);
  background: var(--cyan);
  border-radius: 99px;
  padding: 0.1em 0.6em;
  margin-left: 0.5rem;
  vertical-align: 0.2em;
}
.defs dd { margin: 0; color: var(--ink-2); }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--blue);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
}
.steps h3 { margin: 0.45rem 0 0.25rem; font-size: var(--step-0); font-family: var(--font-display); }
.steps p { margin: 0; color: var(--ink-2); }

/* Scan flow: TV -> phone -> landing page */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.flow li {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--navy-2);
}
.flow svg { width: 3rem; height: 3rem; margin-bottom: 1rem; color: var(--cyan); }
.flow h3 { font-size: var(--step-0); font-family: var(--font-display); margin-bottom: 0.3rem; }
.flow p { margin: 0; color: var(--ink-2); font-size: var(--step--1); }

.note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--lamp-soft);
  border: 1px solid oklch(0.84 0.14 78 / 0.35);
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--lamp); }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 48rem) { .contact-list li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; } }
.contact-list h2 { font-size: var(--step-2); margin: 0; }
.contact-list p { margin: 0 0 0.75rem; color: var(--ink-2); }
.mail { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); overflow-wrap: anywhere; }

/* Legal / prose */
.draft-banner {
  margin: 0 0 2.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--lamp-soft);
  border: 1.5px dashed var(--lamp);
}
.draft-banner p { margin: 0; }
.draft-banner strong { color: var(--lamp); }
.prose h2 { font-size: var(--step-2); margin-top: 2.75rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--blue); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); margin: 1.25rem 0 1.75rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.prose td { color: var(--ink-2); }
.table-scroll { overflow-x: auto; }
.todo { color: var(--lamp); font-weight: 700; }
.toc { padding: 1.25rem 1.5rem; background: var(--navy-2); border-radius: var(--radius); margin-bottom: 2rem; }
.toc h2 { font-size: var(--step-0); margin: 0 0 0.5rem; }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2 14rem; }

/* Ad policy (/policies/ads) */
.policy-meta { color: var(--ink-3); font-size: var(--step--1); margin-bottom: 1.5rem; }
.prose .policy-categories {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.6rem;
}
.prose .policy-categories li {
  margin: 0;
  padding: 0.7rem 1rem 0.7rem 2.4rem;
  border-radius: 10px;
  background: var(--navy-2);
  border: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.35;
  position: relative;
}
.prose .policy-categories li::before {
  content: '';
  position: absolute;
  left: 0.95rem;
  top: 1.05rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 2px solid var(--lamp);
  background: linear-gradient(45deg, transparent 44%, var(--lamp) 44%, var(--lamp) 56%, transparent 56%);
}
.policy-sources li { overflow-wrap: anywhere; }
.policy-sources li:target { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }

/* 404 */
.lost { padding-block: clamp(4rem, 12vw, 9rem); }
.lost .static {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 22vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--navy-3);
  margin: 0 0 1rem;
}

/* ---------- Long-form: monetization hub, platform pages, guides ---------- */

.crumbs ol { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0; font-size: var(--step--1); color: var(--ink-3); }
.crumbs li { max-width: none; }
.crumbs li + li::before { content: '/'; margin-inline: 0.5em; color: var(--navy-4); }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink-3); }

.article-head h1 { max-width: 20ch; font-size: clamp(2.3rem, 1.7rem + 3vw, 4.2rem); }
.article-head .lead { max-width: 52ch; }
.article-head .lead p { max-width: none; }
.byline { margin-top: 1.5rem; font-size: var(--step--1); color: var(--ink-3); }

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
@media (min-width: 64rem) {
  .article-grid { grid-template-columns: 15rem minmax(0, 47rem); gap: clamp(3rem, 5vw, 5rem); }
}

.article-toc { font-size: var(--step--1); align-self: start; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 64rem) { .article-toc { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; } }
.article-toc h2 { font-size: var(--step--1); font-family: var(--font-display); font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin: 0 0 0.75rem; }
.article-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
@media (max-width: 63.99rem) { .article-toc ol { columns: 2 15rem; display: block; } .article-toc li { break-inside: avoid; margin-bottom: 0.3rem; } }
.article-toc li { counter-increment: toc; display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); line-height: 1.35; }
.article-toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-display); font-weight: 600; color: var(--blue); padding-top: 0.3rem; }
.article-toc a { display: block; padding: 0.3rem 0; color: var(--ink-2); text-decoration: none; }
.article-toc a:hover { color: var(--cyan); text-decoration: underline; }

.article { line-height: 1.72; }
.article > section { scroll-margin-top: 1.5rem; }
.article > section + section { margin-top: clamp(2.75rem, 6vw, 4rem); }
.article h2 { font-size: var(--step-2); margin: 0 0 0.85rem; }
.article h3 { margin: 2rem 0 0.6rem; }
.article p, .article li { color: var(--ink-2); }
.article strong { color: var(--ink); }
.article ul, .article ol { padding-left: 1.25rem; }
.article li { margin-bottom: 0.45rem; }
.article li::marker { color: var(--blue); }
.article .code { margin: 1.25rem 0 1.5rem; }
.article blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.4rem;
  background: var(--navy-2);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--step-1);
  line-height: 1.45;
}
.article blockquote p { color: var(--ink); margin-bottom: 0.5rem; }
.article blockquote footer { font-size: var(--step--1); color: var(--ink-3); }
.article table caption { text-align: left; font-size: var(--step--1); color: var(--ink-3); padding-bottom: 0.5rem; }
.article table thead th { border-bottom: 1.5px solid var(--navy-4); }
.article table tbody th { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.glance th { width: 34%; }

/* "How SofAds fits": the one sales box per page, set apart by colour, not a side stripe. */
.fits {
  padding: clamp(1.4rem, 3.5vw, 2.25rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--blue-soft);
  border: 1px solid oklch(0.655 0.19 254 / 0.38);
}
.fits-tag {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.15em 0.75em;
  border-radius: 99px;
  background: var(--blue);
  color: var(--navy);
  font-size: var(--step--1);
  font-weight: 700;
}
.fits .code { background: var(--navy); }
.fits > :last-child { margin-bottom: 0; }

.callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  background: var(--lamp-soft);
  border: 1px solid oklch(0.84 0.14 78 / 0.35);
}
.callout p { color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--lamp); }

.faq-list { counter-reset: faq; border-top: 1px solid var(--line); }
.faq-item { counter-increment: faq; padding: 1.35rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.75rem; }
.faq-item::before { content: 'Q' counter(faq); grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 800; color: var(--cyan); line-height: 1.5; font-size: var(--step--1); }
.article .faq-q { margin: 0 0 0.45rem; font-size: var(--step-0); font-weight: 600; line-height: 1.4; }
.faq-a p:last-child { margin-bottom: 0; }

.sources { font-size: var(--step--1); }
.sources h2 { font-size: var(--step-1); }
.sources ol { padding-left: 1.4rem; }
.sources li { margin-bottom: 0.35rem; overflow-wrap: anywhere; }

.related-wrap { background: var(--navy-2); border-top: 1px solid var(--line); }
.related-h { font-size: var(--step-2); }
.related { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 2rem; }
.related li { padding: 1.1rem 0; border-top: 1px solid var(--line); max-width: none; }
.related a { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.25; }
.related p { margin: 0.4rem 0 0; color: var(--ink-3); font-size: var(--step--1); }

/* Hub: platform index rows */
.platform-rows { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.article .platform-rows li { margin: 0; padding: 1.25rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem 1.5rem; }
@media (min-width: 40rem) { .article .platform-rows li { grid-template-columns: 11rem minmax(0, 1fr); } }
.platform-rows a { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.2; }
.platform-rows small { display: block; font-size: var(--step--1); color: var(--ink-3); font-weight: 400; font-family: var(--font-body); margin-top: 0.2rem; }
.platform-rows p { margin: 0; }

/* A real QR code on the page (QR guide) */
.qr-demo { margin: 1.75rem 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: center; }
@media (min-width: 36rem) { .qr-demo { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; } }
.qr-demo-code { width: 11rem; padding: 1rem; background: oklch(0.975 0.008 250); border-radius: var(--radius); }
.qr-demo-code svg { width: 100%; height: auto; }
.qr-demo figcaption { font-size: var(--step--1); color: var(--ink-3); }

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

.site-footer { border-top: 1px solid var(--line); padding-top: 3rem; font-size: var(--step--1); color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2rem; }
.footer-tag { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--ink); line-height: 1.25; max-width: 18ch; }
.footer-h { font-size: var(--step--1); font-family: var(--font-display); font-weight: 600; letter-spacing: 0; color: var(--ink); margin: 0 0 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--cyan); }
.footer-fine { margin-top: 3rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); }
.footer-fine p { margin: 0 0 0.4rem; max-width: none; }

/* ---------- Load motion (one orchestrated entrance, respects reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.8s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .tv { animation: rise 1s var(--ease-out) 0.15s both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header nav, .cta, .tv, .article-toc, .related-wrap { display: none; }
}

/* Spacing helpers */
.defs-after { margin-top: 2rem; }
.after { margin-top: 1.25rem; }

/* ---- /test-scan: the phone page after scanning a SofAds test ad ---------- */
.scan {
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 8vw, 6rem) 1.25rem;
}
.scan-card {
  width: min(100%, 36rem);
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: calc(var(--radius) * 2);
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  border: 1px solid var(--line);
  text-align: center;
}
.scan-mark { color: var(--cyan); display: block; margin: 0 auto 1.25rem; }
.scan-card .scan-kicker { margin-bottom: 0.5rem; }
.scan-card h1 { margin: 0 auto 0.75rem; max-width: none; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); line-height: 1.1; }
.scan-message { font-size: var(--step-1); color: var(--ink); margin-bottom: 0.25rem; }
.scan-next { color: var(--ink-2); }
.scan-about {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--step--1);
  text-align: start;
}
.scan-about p:last-child { margin-bottom: 0; }
/* Arabic has no Atkinson subset: use Rubik's Arabic for body text too. */
.scan-card:lang(ar), [lang='ar'] { font-family: var(--font-display); font-weight: 600; }
.scan-card:lang(ar) h1 { font-weight: 800; }

/* Template wording for app privacy policies (docs pages). */
.article .policy-lines {
  font-size: var(--step-0);
  margin: 0.75rem 0 1.25rem;
  padding: 1rem 1.25rem;
  border-inline-start: 3px solid var(--cyan);
  background: var(--cyan-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article .policy-lines p { margin: 0; color: var(--ink); font-style: normal; }

/* ---------- Network numbers: homepage block and /media-kit/ ---------- */
/* Charts are one series in the advertiser accent (cyan); the hour-of-week map is
   one sequential hue from the surface up to cyan. Text never wears the data
   colour: labels and values use the ink tokens. */

.numbers-soon {
  max-width: 46rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  border: 1px dashed var(--navy-4);
  background: var(--navy-2);
}
.numbers-soon p { color: var(--ink-2); }
.numbers-soon p:last-child, .numbers-soon .ticks:last-child { margin-bottom: 0; }
.numbers-soon h2 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--lamp) !important;
  margin-bottom: 0.75rem;
}
.soon-badge .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 4px var(--lamp-soft); }

.tiles {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tile { background: var(--navy); padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: 0.35rem; align-content: start; }
.tile dt { font-size: var(--step--1); color: var(--ink-2); }
.tile dd { margin: 0; display: grid; gap: 0.25rem; }
.tile-value { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.tile-help { font-size: var(--step--1); color: var(--ink-3); }
.numbers-mix { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.4rem; color: var(--ink-2); }
.numbers-mix strong { color: var(--ink); margin-right: 0.5rem; }
.numbers-fine { font-size: var(--step--1); color: var(--ink-3); margin-top: 1rem; }
.text-link { font-weight: 700; }

.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.chart {
  margin: 0;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-2);
  min-width: 0;
}
.chart figcaption h3 { font-size: var(--step-1); margin: 0 0 1rem; }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.bar-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9.5rem) minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--step--1);
  max-width: none;
}
.bar-label { color: var(--ink-2); overflow-wrap: anywhere; }
.bar-track { display: block; height: 14px; }
.bar { display: block; height: 100%; min-width: 3px; background: var(--cyan); border-radius: 0 4px 4px 0; }
.bar-row:hover .bar { background: oklch(0.9 0.11 216); }
.bar-value { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

.heatmap { display: grid; gap: 2px; overflow-x: auto; padding-bottom: 0.25rem; }
.hm-row, .hm-axis { display: grid; grid-template-columns: 2.75rem repeat(24, minmax(0.9rem, 1fr)); gap: 2px; align-items: center; min-width: 30rem; }
.hm-day { font-size: var(--step--1); color: var(--ink-2); }
.hm-cell { display: block; height: 1.6rem; border-radius: 3px; }
.hm-axis span { font-size: 0.75rem; color: var(--ink-3); white-space: nowrap; }
.hm-cell.s0 { background: oklch(0.255 0.04 240); }
.hm-cell.s1 { background: oklch(0.36 0.06 232); }
.hm-cell.s2 { background: oklch(0.47 0.08 226); }
.hm-cell.s3 { background: oklch(0.6 0.1 220); }
.hm-cell.s4 { background: oklch(0.72 0.12 217); }
.hm-cell.s5 { background: oklch(0.85 0.135 216); }
.hm-row .hm-cell:hover { outline: 2px solid var(--ink); outline-offset: 0; }
.hm-legend { display: flex; align-items: center; gap: 3px; margin-top: 1rem; font-size: var(--step--1); color: var(--ink-3); }
.hm-legend .hm-cell { width: 1.5rem; height: 0.8rem; }
.hm-legend span:first-child { margin-right: 0.5rem; }
.hm-legend span:last-child { margin-left: 0.5rem; }

.table-view { margin-top: 1rem; font-size: var(--step--1); color: var(--ink-2); }
.table-view summary { cursor: pointer; color: var(--cyan); }
.table-scroll { overflow-x: auto; margin-top: 0.75rem; }
.table-view table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table-view caption { text-align: left; color: var(--ink-3); padding-bottom: 0.5rem; }
.table-view th, .table-view td { padding: 0.2rem 0.4rem; border-bottom: 1px solid var(--line); text-align: right; }
.table-view th[scope='row'] { text-align: left; }

.chart-tip {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  max-width: 18rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--navy);
  font-size: var(--step--1);
  box-shadow: 0 6px 20px oklch(0 0 0 / 0.4);
}
.chart-tip[hidden] { display: none; }

/* The line under the homepage snippet ("Plus the script include ..."). */
.code-note { margin: 0.65rem 0 0; font-size: var(--step--1); color: var(--ink-3); }
