/* MaScenes marketing site (mascenes.com).
   Look: modelled on the Safaricom developer portal, shared with the Ad Studio app
   (see mascenes-ads/DESIGN.md): white pages, one primary green (#35A839), square-ish buttons,
   thin-bordered cards, Figtree at weights tuned to Proxima Nova (350 / 550 / 650). */

/* Light is the default; the header toggle switches to dark. */
:root {
  --bg: #ffffff;            /* page */
  --bg-2: #f7faf7;          /* alternate sections */
  --surface: #ffffff;       /* cards */
  --line: #e0e0e0;
  --line-2: #cfd4cf;
  --text: #212121;
  --text-dim: #666666;
  --heading: #242623;
  --accent: #35a839;        /* the one primary green */
  --accent-hover: #2e9634;
  --accent-ink: #ffffff;    /* text on the green */
  --accent-fg: #35a839;     /* green text, lines, data marks */
  --accent-tint: #eaf7ea;
  --error: #c62828;
  --placeholder: #8a8f8a;
  --header-bg: rgba(255, 255, 255, .92);
  --pill-bg: rgba(255, 255, 255, .9);
  --float-bg: rgba(255, 255, 255, .94);
  --shadow-strong: rgba(20, 24, 30, .18);
  --plat-top: #ffffff;
  --plat-bot: #f4f7f4;

  /* Figtree: closest open design to Proxima Nova (the Safaricom portal's licensed face). */
  --display: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: var(--sans);      /* no monospace labels in the new look */

  --gutter: clamp(20px, 6.5vw, 120px);
  --header-h: 69px;
  --max: 1760px;
  --radius: 8px;            /* cards */

  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1411;
  --bg-2: #131a15;
  --surface: #161d18;
  --line: #243028;
  --line-2: #2f3d33;
  --text: #eef3ef;
  --text-dim: #a3ada6;
  --heading: #f4f8f5;
  --accent-hover: #2e9634;
  --accent-tint: rgba(53, 168, 57, .14);
  --error: #ff8a80;
  --placeholder: #6f7a72;
  --header-bg: rgba(15, 20, 17, .9);
  --pill-bg: rgba(22, 29, 24, .8);
  --float-bg: rgba(22, 29, 24, .92);
  --shadow-strong: rgba(0, 0, 0, .45);
  --plat-top: #161d18;
  --plat-bot: #131a15;
  color-scheme: dark;
}

/* Screens (TVs, phones, ad demos) are dark in both themes */
.device-tv, .device-phone, .player-tv, .ftv, .mini-tv, .fl-tv-screen, .fl-phone, .ln-screen, .pk-phone {
  --bg: #07080a;
  --bg-2: #0b0d10;
  --surface: #111418;
  --line: #1d2228;
  --line-2: #2a3038;
  --text: #f3f5f7;
  --text-dim: #98a1ac;
  --accent-fg: #35a839;
  color: var(--text);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Anchor links stop below the sticky header */
[id] { scroll-margin-top: 84px; }
section[id] { scroll-margin-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* Buttons and fields don't inherit the page font by default */
button, input, select, textarea { font-family: inherit; }

h1, h2, h3 { margin: 0; font-weight: 650; color: var(--heading); letter-spacing: -0.02em; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--text-dim); }

:focus-visible {
  outline: 2px solid var(--accent-fg);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: .6em 1em;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 550;
}
.skip:focus { top: 12px; }


/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7em 1.5em;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 350;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost { border-color: rgba(53, 168, 57, .5); color: var(--accent-fg); background: var(--surface); }
.btn--ghost:hover { background: var(--accent-tint); border-color: var(--accent-fg); }

.btn--small { min-height: 40px; padding: .45em 1.1em; font-size: .9rem; }

.text-link {
  color: var(--text-dim);
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--text); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.55rem;
  letter-spacing: -.02em;
  text-decoration: none;
}

/* Lime tile with a play triangle */
.wordmark-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--accent);
}
.wordmark-mark::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 11px;
  border-left: 12px solid var(--accent-ink);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 1.1em;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}

.header-actions { display: flex; align-items: center; gap: .5rem; }

/* Sun shows in the dark theme (switch to light), moon in the light theme */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.theme-toggle:hover { border-color: var(--text-dim); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
.theme-toggle.is-light .i-sun { display: none; }
.theme-toggle.is-light .i-moon { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: .95rem;
}
@media (min-width: 960px) { .site-nav { margin-left: auto; margin-right: 1rem; } }
.site-nav a:not(.btn) { text-decoration: none; color: var(--text-dim); }
.site-nav a:not(.btn):hover { color: var(--text); }

/* "Apps" dropdown: Connected TV and Mobile */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-dim);
  font: inherit;
  cursor: pointer;
}
.nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { color: var(--text); }
.nav-drop-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-drop-menu { display: grid; gap: .25rem; }
.site-nav .nav-drop-menu a { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--text); }
.nd-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); }
.nd-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nd-t { display: grid; line-height: 1.3; }
.nd-t b { font-weight: 650; }
.nd-t small { color: var(--text-dim); font-size: .82rem; }
@media (min-width: 960px) {
  .nav-drop-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 30;
    width: 300px;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 24px 50px -24px var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
  /* Invisible bridge so the menu stays open while the pointer moves down to it */
  .nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .nav-drop:hover .nav-drop-menu,
  .nav-drop.is-open .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s, transform .18s; }
  .nav-drop-menu a { padding: .6rem; border-radius: 12px; }
  .nav-drop-menu a:hover, .nav-drop-menu a:focus-visible { background: var(--bg-2); }
  .nav-drop-menu a:hover .nd-ico { background: var(--accent); color: var(--accent-ink); }
}

/* Collapse nav only when JS is there to open it */
@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  /* In the phone menu, the Apps items are always listed under their heading */
  .js .site-nav .nav-drop { padding: .9rem 0 .4rem; border-bottom: 1px solid var(--line); }
  .js .site-nav .nav-drop-btn { pointer-events: none; color: var(--text-dim); font-family: var(--mono); font-size: .75rem; text-transform: none; letter-spacing: normal; }
  .js .site-nav .nav-drop-btn svg { display: none; }
  .js .site-nav .nav-drop-menu a { padding: .6rem 0; border-bottom: 0; }
  .js .site-nav .btn { margin-top: 1rem; min-height: 48px; }

  .site-nav { gap: 1rem; font-size: .9rem; }
}

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

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem);
  overflow: hidden; /* also clips the logo marquee */
}

/* Faint grid that fades out towards the bottom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, #000 20%, transparent 75%);
  opacity: .7;
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: .82fr 1.18fr; gap: 3rem; }
}



.hero-title {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}

.hero-lede {
  max-width: 33rem;
  margin-top: 1.5rem;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.25rem;
}

/* Logos take their aspect ratio from the viewBox */
.logo { display: block; width: auto; fill: currentColor; }


/* ---------- Hero devices (illustration) ---------- */

.devices {
  position: relative;
  padding: 7% 7% 12% 4%;
}

.device-tv {
  container-type: inline-size;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #000;
  box-shadow:
    0 50px 140px -40px rgba(53, 168, 57, .25),
    0 40px 80px -30px var(--shadow-strong);
}

/* The stand under every TV illustration. Sized from the TV's width, so it
   scales with the screen; the wrapper must be as wide as the TV. */
.tv-stand {
  display: block;
  width: 24%;
  aspect-ratio: 15 / 1;
  min-height: 6px; /* still visible under the small ad-format TVs */
  margin: 0 auto;
  border-radius: 0 0 4% 4% / 0 0 60% 60%;
  background: #0b0c0e;
}

.app {
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 2.2cqw;
  padding: 2.8cqw 3.2cqw;
  border-radius: 10px;
  background: var(--bg-2);
  font-family: var(--sans);
  font-size: 1.8cqw;
  overflow: hidden;
}

.app-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2cqw; }
.app-logo { font-family: var(--display); font-size: 1.05em; letter-spacing: .02em; color: var(--text); }
.app-logo b { color: var(--accent); font-weight: 550; }
.app-nav { justify-self: center; display: flex; gap: 2.4em; color: var(--text-dim); }
.app-nav i { font-style: normal; }
.app-nav .on { color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: .3em; }
.app-avatar { width: 2.6cqw; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(140deg, #35a839, #3fa184); }

/* Featured show: the same animated dusk scene as the ad break player */
.app-feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 2.8cqw;
  border-radius: 1.2cqw;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1a2e 0%, #2a425c 36%, #b4683a 70%, #e8a259 100%);
}
.app-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 10, .85) 0%, rgba(7, 8, 10, .35) 45%, transparent 70%);
}
.app-feature .show-sun { left: 64%; top: 18%; width: 13cqw; }
.app-feature-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: .55em;
}
.app-tag {
  font-family: var(--mono);
  font-size: .75em;
  text-transform: none;
  letter-spacing: normal;
  color: var(--accent);
}
.app-title { font-family: var(--display); font-size: 2.3em; font-weight: 650; line-height: 1; letter-spacing: -.025em; }
.app-meta { font-size: .8em; color: rgba(255, 255, 255, .75); }
.app-buttons { display: flex; gap: .6em; margin-top: .3em; }
.app-play, .app-add {
  padding: .4em 1.1em;
  border-radius: 999px;
  font-size: .85em;
  font-weight: 550;
}
.app-play { background: var(--text); color: var(--accent-ink); }
.app-add { border: 1px solid rgba(255, 255, 255, .4); }

.app-row-label { color: var(--text-dim); font-size: .85em; margin-bottom: -1.2cqw; }
.app-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4cqw; }

.tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
}
.tile em {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
}
.t1 { background: linear-gradient(140deg, #3a1d4d, #b0456b); }
.t2 { background: linear-gradient(140deg, #0f3d3a, #3fa184); }
.t3 { background: linear-gradient(140deg, #2b2b2b, #8a7a5c); }
.t4 { background: linear-gradient(140deg, #13284d, #4b7bd1); }

.device-phone {
  position: absolute;
  right: 0;
  bottom: 4%;
  width: 22%;
  container-type: inline-size;
  padding: 5px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: #000;
  box-shadow: 0 30px 60px -20px var(--shadow-strong);
}
.app--phone {
  aspect-ratio: 9 / 19;
  display: flex;
  flex-direction: column;
  gap: 5cqw;
  padding: 10cqw 7cqw;
  border-radius: 17px;
  font-size: 8cqw;
}
.app--phone .tile { aspect-ratio: 16 / 9; }
.phone-feature {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1a2e 0%, #2a425c 36%, #b4683a 70%, #e8a259 100%);
}
.phone-feature .show-sun { left: 50%; top: 22%; width: 34cqw; }
.phone-feature .show-hills { animation-duration: 30s; }

/* Floating cards over the devices */
.float {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--float-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -16px var(--shadow-strong);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-8px); } }


.float--earn {
  left: 0;
  bottom: 0;
  display: grid;
  gap: .3rem;
  width: min(280px, 48%);
  padding: 1rem 1.15rem;
  animation-delay: -3s;
}
.float-label { font-family: var(--mono); font-size: .68rem; text-transform: none; letter-spacing: normal; color: var(--text-dim); }
.float-n { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.float-up {
  justify-self: start;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 450;
}
.float--earn svg { width: 100%; height: 36px; margin-top: .3rem; overflow: visible; }
.float--earn .spark-fill { fill: var(--accent-tint); stroke: none; }
.float--earn polyline { fill: none; stroke: var(--accent-fg); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

@media (max-width: 600px) {
  .float--earn { width: auto; padding: .5rem .7rem; bottom: 2%; }
  .float--earn svg, .float-up { display: none; }
  .float-label { font-size: .6rem; }
  .float-n { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
}

/* ---------- Platform logo marquee (bottom of the hero) ---------- */

/* Two strips under the hero line: TV and phone platforms (scrolling) beside
   the social apps where ads run (still). They stack on narrower screens. */
.strips {
  display: grid; gap: 2rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 1100px) {
  .strips { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; }
  .marquee--social { border-left: 1px solid var(--line); padding-left: 2rem; }
}
.marquee { min-width: 0; }
/* Social apps as wordmarks: the icon plus the name, sized to sit level with
   the TV logos (about 30px tall) and set in the logo's brand colour */
.wordlogo { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; color: var(--brand); }
.wordlogo svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.wordlogo span { font-family: var(--display); font-size: 1.375rem; font-weight: var(--w-bold); letter-spacing: -.02em; line-height: 1; }
.marquee--social .marquee-track { animation-duration: 18s; }
.marquee-label {
  margin-bottom: 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -.02em;
  text-align: center;
  color: var(--text);
}
/* A still window with faded edges; the logos move inside it. main.js sizes
   it to one set of logos minus the widest logo, so a platform never shows
   twice. 880px is the fallback without JavaScript. */
.marquee-window {
  max-width: min(100%, 880px);
  margin-inline: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
/* Two identical rows; moving by exactly one row's width loops seamlessly */
.marquee-track {
  display: flex;
  width: max-content;
  padding-block: .35rem .5rem;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0;
  padding: 0 clamp(1.25rem, 2.5vw, 2.25rem);
  list-style: none;
}
.marquee-row li { color: var(--brand, var(--text-dim)); }
.marquee-row .logo { height: 30px; }
.marquee-row .logo--samsung { height: 16px; }
.marquee-row .logo--hisense, .marquee-row .logo--roku { height: 20px; }
.marquee-row .logo--lg, .marquee-row .logo--appletv { height: 26px; }
.marquee-row .logo--firetv { height: 34px; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-window { max-width: none; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-row[aria-hidden="true"] { display: none; }
  .marquee-row { flex-wrap: wrap; justify-content: center; row-gap: 1.5rem; }
}

/* ---------- Creator package: statement + their app on a TV home screen ---------- */

.package {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) { .package { grid-template-columns: 1.15fr 1fr; } }
.package-pitch { display: grid; justify-items: start; gap: .35rem; }
.package-line {
  margin: 0;
  font-family: var(--display);
  max-width: 15ch;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.025em;
}
.package-line--accent { color: var(--accent-fg); }
.package-pitch .btn { margin-top: 2rem; }

/* ---------- Mobile apps: the creator's own phone app ---------- */

/* Mirror of the TV section: phone on the left, statement on the right */
@media (min-width: 900px) {
  .package--flip { grid-template-columns: 1fr 1.15fr; }
  .package--flip .package-pitch { order: 2; }
}
.pocket { justify-self: center; width: 100%; max-width: 560px; margin: 0; container-type: inline-size; }
.pk-stage { position: relative; padding: 3cqw 0; }
.pk-phone {
  width: 44cqw;
  margin: 0 auto;
  padding: 1.3cqw;
  border: 1px solid var(--line-2);
  border-radius: 7cqw;
  background: #000;
  box-shadow: 0 40px 80px -30px var(--shadow-strong);
}
.pk-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.6cqw;
  aspect-ratio: 9 / 18.5;
  overflow: hidden;
  padding: 5.5cqw 3.6cqw;
  border-radius: 5.8cqw;
  background: var(--bg-2);
  font-family: var(--sans);
  font-size: 2.3cqw;
}
.pk-feature {
  position: relative;
  display: block;
  flex: none;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2.4cqw;
  background: linear-gradient(180deg, #0d1a2e 0%, #2a425c 36%, #b4683a 70%, #e8a259 100%);
}
.pk-feature .show-sun { left: 52%; top: 10%; width: 12cqw; }
.pk-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 8, 10, .8) 0%, transparent 55%); }
.pk-feature-t { position: absolute; left: 2.6cqw; bottom: 2.4cqw; z-index: 1; display: grid; gap: .3em; }
.pk-feature-t small { font-family: var(--mono); font-size: .75em; text-transform: none; letter-spacing: normal; color: var(--accent); }
.pk-feature-t b { font-family: var(--display); font-size: 1.6em; font-weight: 650; line-height: 1; letter-spacing: -.02em; }
.pk-h { font-family: var(--mono); font-size: .75em; text-transform: none; letter-spacing: normal; color: var(--text-dim); }
.pk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; }
.pk-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 1.6cqw; }
.pk-t1 { background: linear-gradient(135deg, #5b2a86, #a3487d); }
.pk-t2 { background: linear-gradient(135deg, #1f5f5b, #4f9a6d); }
/* Saved for offline */
.pk-tile i {
  position: absolute;
  right: 1cqw;
  bottom: 1cqw;
  display: grid;
  place-items: center;
  width: 3.8cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .85em;
  font-style: normal;
  font-weight: 650;
}
/* The subscribe sheet that slides up over the app */
.pk-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 1cqw;
  padding: 3.2cqw 3.6cqw 4.2cqw;
  border-top: 1px solid var(--line-2);
  border-radius: 4cqw 4cqw 0 0;
  background: var(--surface);
}
.pk-plan { font-family: var(--mono); font-size: .75em; text-transform: none; letter-spacing: normal; color: var(--text-dim); }
.pk-price { font-family: var(--display); font-size: 1.7em; font-weight: 650; letter-spacing: -.02em; }
.pk-price small { font-family: var(--sans); font-size: .5em; font-weight: 350; color: var(--text-dim); }
.pk-pay { margin-top: 1.2cqw; padding: 1.5cqw; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 650; text-align: center; }

/* Floating over the phone: the new-episode alert and the payment */
.pk-note, .pk-paid {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  background: var(--float-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -16px var(--shadow-strong);
  color: var(--text);
}
.pk-note { top: 20cqw; left: 0; gap: 2.2cqw; width: 54cqw; padding: 2.4cqw 2.8cqw; border-radius: 3.2cqw; font-size: 2.5cqw; }
.pk-note-ico { position: relative; flex: none; width: 6.6cqw; aspect-ratio: 1; border-radius: 1.8cqw; background: var(--accent); }
.pk-note-ico::after { content: ""; position: absolute; inset: 32% 30% 32% 38%; background: var(--accent-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.pk-note-t { display: grid; gap: .2em; min-width: 0; }
.pk-note-t small { font-size: .8em; color: var(--text-dim); }
.pk-note-t b { font-weight: 650; }
.pk-paid { right: 0; bottom: 20cqw; gap: 1.6cqw; padding: 1.8cqw 3cqw 1.8cqw 1.8cqw; border-radius: 999px; font-size: 2.7cqw; font-weight: 650; }
.pk-paid i { display: grid; place-items: center; width: 4.6cqw; aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .8em; font-style: normal; }

/* When the section scrolls in: the alert drops in, the sheet slides up, then it's paid */
.package.reveal .pk-note { opacity: 0; transform: translateY(-40%); }
.package.reveal .pk-sheet { transform: translateY(100%); }
.package.reveal .pk-paid { opacity: 0; transform: scale(.6); }
.package.reveal.is-in .pk-note { animation: pk-in .55s .5s cubic-bezier(.2, .7, .2, 1) forwards; }
.package.reveal.is-in .pk-sheet { animation: pk-up .6s 1.3s cubic-bezier(.2, .7, .2, 1) forwards; }
.package.reveal.is-in .pk-paid { animation: pk-pop .45s 2.3s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes pk-in { to { opacity: 1; transform: none; } }
@keyframes pk-up { to { transform: none; } }
@keyframes pk-pop { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .package.reveal .pk-note, .package.reveal .pk-sheet, .package.reveal .pk-paid { opacity: 1; transform: none; animation: none; }
}

/* A TV home screen. Dark in both themes. The creator's app slides into the
   row of apps, takes focus, and its show fills the banner above. */
.launcher { justify-self: center; width: 100%; max-width: 720px; margin: 0; }
.ln-tv { container-type: inline-size; }
.ln-screen {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1.4cqw solid #0b0c0e;
  border-radius: 2cqw;
  background: #0b0d11;
  box-shadow: 0 50px 90px -50px var(--shadow-strong);
}
.ln-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #0d1a2e 0%, #2a425c 45%, #b4683a 85%, #e8a259 100%); }
.ln-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 10, .85) 0%, rgba(5, 6, 10, 0) 60%), linear-gradient(0deg, #0b0d11 0%, transparent 40%); }
.ln-sun { position: absolute; left: 66%; top: 18%; width: 12cqw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffe2a0 40%, rgba(255, 210, 120, 0) 70%); }
.ln-hills { position: absolute; inset: auto 0 0; height: 45%; background: #2a1c2a; clip-path: polygon(0 50%, 20% 22%, 40% 44%, 60% 12%, 80% 36%, 100% 18%, 100% 100%, 0 100%); }
.ln-hero-t { position: absolute; z-index: 1; left: 5%; top: 50%; display: grid; gap: .8cqw; color: #fff; transform: translateY(-50%); }
.ln-hero-t small { font-family: var(--mono); font-size: 1.4cqw; color: var(--accent); text-transform: none; letter-spacing: normal; }
.ln-hero-t b { font-family: var(--display); font-size: 5.2cqw; font-weight: 650; line-height: 1; letter-spacing: -.03em; }
.ln-play { justify-self: start; margin-top: .6cqw; padding: .7cqw 1.8cqw; border-radius: 99px; background: #fff; color: #111; font-size: 1.5cqw; font-weight: 650; }
.ln-row { display: flex; gap: 1.6cqw; padding: 2cqw 4% 4cqw; }
.ln-tile { flex: none; width: 15cqw; aspect-ratio: 16 / 9; border-radius: 1.2cqw; }
.ln-t1 { background: linear-gradient(135deg, #3a1d5c, #7b3fa8); }
.ln-t2 { background: linear-gradient(135deg, #0e3b52, #1f7aa8); }
.ln-t3 { background: linear-gradient(135deg, #5c1d1d, #a83f3f); }
.ln-t4 { background: linear-gradient(135deg, #1d3f2c, #3f8a5c); }
.ln-t5 { background: linear-gradient(135deg, #4a3a14, #9a7a2a); }
/* The creator's app tile */
.ln-you {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .5cqw;
  background: #111418;
  color: #fff;
  font-family: var(--display);
  font-size: 1.35cqw;
  font-weight: 650;
  letter-spacing: .04em;
  outline: .45cqw solid transparent;
  outline-offset: .5cqw;
}
.ln-you b { display: contents; color: var(--accent); }
.ln-mark { width: 3.4cqw; aspect-ratio: 1; border-radius: .8cqw; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l8.5-5.5z' fill='%2307080a'/%3E%3C/svg%3E") center / 70% no-repeat; }
.ln-tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 1.6cqw);
  padding: .5cqw 1.2cqw;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 1.3cqw;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}
.ln-tag::after { content: ""; position: absolute; left: 50%; top: 100%; border: .7cqw solid transparent; border-top-color: var(--accent); transform: translateX(-50%); }

/* Animation, once the section scrolls in: the tile slides into the row,
   takes focus, then the tag drops in. */
.package.reveal .ln-you { width: 0; opacity: 0; margin-inline: -.8cqw; }
.package.reveal.is-in .ln-you { animation: ln-in .7s .6s cubic-bezier(.2, .7, .2, 1) forwards, ln-focus .4s 1.4s ease forwards; }
@keyframes ln-in { to { width: 15cqw; opacity: 1; margin-inline: 0; } }
@keyframes ln-focus { to { outline-color: #fff; transform: scale(1.08); } }
.package.reveal .ln-tag { opacity: 0; }
.package.reveal.is-in .ln-tag { animation: ln-tag .45s 1.9s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes ln-tag { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) {
  .package.reveal .ln-you { width: 15cqw; opacity: 1; margin-inline: 0; outline-color: #fff; transform: scale(1.08); animation: none !important; }
  .package.reveal .ln-tag { opacity: 1; animation: none !important; }
}

/* ---------- Three steps: one phone and one TV act out the flow ---------- */

.howto { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .howto { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }

.flow-steps { display: grid; gap: .25rem; margin: clamp(1.75rem, 4vh, 2.75rem) 0 0; padding: 0; list-style: none; }
.flow-steps button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: center;
  width: 100%;
  padding: .75rem 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  opacity: .45;
  transition: opacity .3s;
}
.flow-steps button:hover { opacity: .75; }
.flow-steps button[aria-current="true"] { opacity: 1; }
.fs-n {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 650;
  transition: background-color .3s, border-color .3s, color .3s;
}
.flow-steps button[aria-current="true"] .fs-n { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.fs-t { display: grid; }
.fs-t b { font-family: var(--display); font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 650; letter-spacing: -.02em; }
.fs-t span { color: var(--text-dim); }

/* The stage: TV behind, phone in front. Everything inside is dark in both themes. */
.flow-stage { position: relative; width: 100%; aspect-ratio: 16 / 12; container-type: inline-size; }
.fl-tv { position: absolute; left: 0; top: 8%; width: 78%; }
.fl-tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1.2cqw solid #0b0c0e;
  border-radius: 1.6cqw;
  background: #05060a;
  box-shadow: 0 40px 80px -40px var(--shadow-strong);
}
.fl-show { position: absolute; inset: 0; background: linear-gradient(180deg, #0d1a2e 0%, #2a425c 40%, #b4683a 75%, #e8a259 100%); }
.fl-sun { position: absolute; left: 62%; top: 26%; width: 11cqw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffe2a0 40%, rgba(255, 210, 120, 0) 70%); }
.fl-hills { position: absolute; inset: auto 0 0; height: 45%; background: #2a1c2a; clip-path: polygon(0 40%, 18% 18%, 38% 38%, 58% 10%, 80% 34%, 100% 16%, 100% 100%, 0 100%); }
.fl-badge { position: absolute; left: 4%; top: 6%; color: #fff; font-family: var(--display); font-size: 1.6cqw; font-weight: 650; letter-spacing: .04em; }
.fl-badge b { color: var(--accent); }
.fl-ad {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: .9cqw;
  padding: 0 7%;
  background: radial-gradient(circle at 85% 15%, rgba(255, 214, 120, .4), transparent 45%), linear-gradient(135deg, #6e1a10 0%, #b83a0e 50%, #f08c0a 100%);
  color: #fff;
  clip-path: inset(0 0 0 100%);
  transition: clip-path .8s cubic-bezier(.7, 0, .2, 1);
}
.flow-stage[data-step="3"] .fl-ad { clip-path: inset(0); transition-delay: .4s; }
.fl-ad-k { font-family: var(--mono); font-size: 1.3cqw; text-transform: none; letter-spacing: normal; opacity: .85; }
.fl-ad-h { font-family: var(--display); font-size: 6.4cqw; font-weight: 650; line-height: .95; letter-spacing: -.03em; }
.fl-ad-b { font-size: 1.7cqw; opacity: .9; }
.fl-ad-tag { position: absolute; right: 4%; top: 7%; padding: .3cqw 1cqw; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 1.2cqw; }

.fl-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 37%;
  padding: 1cqw;
  border-radius: 4.4cqw;
  background: #0b0c0e;
  box-shadow: 0 40px 70px -30px var(--shadow-strong), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.fl-phone-screen {
  position: relative;
  aspect-ratio: 9 / 17;
  overflow: hidden;
  border-radius: 3.5cqw;
  background: #111418;
  color: #f2f3ee;
  font-size: 1.89cqw;
}
.fl-scr {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 1.43cqw;
  padding: 4.68cqw 3.12cqw 3.12cqw;
  opacity: 0;
  transform: translateX(8%);
  transition: opacity .45s, transform .55s cubic-bezier(.2, .7, .2, 1);
}
.flow-stage[data-step="1"] .fl-scr--1,
.flow-stage[data-step="2"] .fl-scr--2,
.flow-stage[data-step="3"] .fl-scr--3 { opacity: 1; transform: none; }
.fl-app { font-weight: 650; font-size: 2.47cqw; }
.fl-field { display: grid; padding: 1.3cqw 1.69cqw; border-radius: 1.56cqw; background: #1b1f25; font-weight: 650; }
.fl-field small { font-family: var(--mono); font-size: 1.3cqw; color: #9aa0a6; font-weight: 350; text-transform: none; }
.fl-label { margin-top: 1.04cqw; font-family: var(--mono); font-size: 1.37cqw; text-transform: none; letter-spacing: normal; color: #9aa0a6; }
.fl-amount { font-family: var(--display); font-size: 4.68cqw; font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fl-slider { position: relative; height: 0.65cqw; border-radius: 99px; background: #2a3038; }
.fl-slider i { position: absolute; left: 0; top: 0; bottom: 0; width: 55%; border-radius: inherit; background: var(--accent); }
.fl-slider i::after { content: ""; position: absolute; right: -1.43cqw; top: 50%; width: 2.86cqw; aspect-ratio: 1; border-radius: 50%; background: #fff; transform: translateY(-50%); }
.flow-stage[data-step="1"] .fl-slider i { animation: fl-slide 1.6s .4s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes fl-slide { from { width: 15%; } }
.fl-est { color: #9aa0a6; }
.fl-btn { margin-top: auto; padding: 1.43cqw; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 650; text-align: center; }

/* M-Pesa: the PIN prompt, then the confirmation SMS drops in */
.fl-stk { display: grid; gap: 1.3cqw; margin-top: 1.95cqw; padding: 2.34cqw 2.08cqw 1.56cqw; border-radius: 1.3cqw; background: #f4f4f1; color: #16171a; font-size: 1.69cqw; line-height: 1.35; }
.fl-stk-l { font-weight: 650; }
.fl-pin { display: flex; gap: 1.3cqw; padding: 1.04cqw 1.3cqw; border-bottom: 2px solid #3c9a3c; }
.fl-pin i { width: 1.56cqw; aspect-ratio: 1; border-radius: 50%; background: #16171a; opacity: 0; }
.flow-stage[data-step="2"] .fl-pin i { animation: fl-pin .01s both; }
.flow-stage[data-step="2"] .fl-pin i:nth-child(1) { animation-delay: .7s; }
.flow-stage[data-step="2"] .fl-pin i:nth-child(2) { animation-delay: 1s; }
.flow-stage[data-step="2"] .fl-pin i:nth-child(3) { animation-delay: 1.3s; }
.flow-stage[data-step="2"] .fl-pin i:nth-child(4) { animation-delay: 1.6s; }
@keyframes fl-pin { to { opacity: 1; } }
.fl-stk-btns { display: flex; justify-content: flex-end; gap: 3.12cqw; color: #2f7d1f; font-weight: 650; text-transform: none; font-size: 1.49cqw; }
.fl-sms {
  position: absolute;
  left: 1.82cqw;
  right: 1.82cqw;
  top: 1.82cqw;
  padding: 1.56cqw 1.82cqw;
  border-radius: 1.82cqw;
  background: rgba(40, 44, 50, .96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  font-size: 1.49cqw;
  line-height: 1.35;
  transform: translateY(-140%);
}
.fl-sms b { display: block; color: #6ccf5a; font-size: 1.37cqw; letter-spacing: .04em; }
.flow-stage[data-step="2"] .fl-sms { animation: fl-sms .5s 2.3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fl-sms { to { transform: none; } }

/* Live: plays counting, a small bar chart */
.fl-live { display: inline-flex; align-items: center; gap: 1.04cqw; color: var(--accent); font-family: var(--mono); font-size: 1.43cqw; }
.fl-live i { width: 1.3cqw; aspect-ratio: 1; border-radius: 50%; background: var(--accent); animation: live-ping-dot 1.4s ease-in-out infinite; }
@keyframes live-ping-dot { 50% { opacity: .3; } }
.fl-bars { display: flex; align-items: flex-end; gap: 1.04cqw; height: 15.6cqw; margin-top: auto; }
.fl-bars i { flex: 1; height: var(--h); border-radius: 0.78cqw 0.78cqw 0 0; background: #2a3038; }
.fl-bars i:last-child { background: var(--accent); }
.flow-stage[data-step="3"] .fl-bars i { animation: fl-grow .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fl-grow { from { height: 0; } }

@media (prefers-reduced-motion: reduce) {
  .fl-scr, .fl-ad { transition: none; }
  .flow-stage .fl-slider i, .flow-stage .fl-bars i, .fl-live i { animation: none !important; }
  .flow-stage .fl-pin i { opacity: 1; animation: none !important; }
  .flow-stage[data-step="2"] .fl-sms { animation: none; transform: none; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.section { padding-block: clamp(3rem, 9vw, 4.5rem); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-title {
  max-width: 22ch;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.9rem, 4.3vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.section-lede {
  max-width: 36rem;
  margin-top: 1.4rem;
  color: var(--text-dim);
  font-size: 1.125rem;
}

.card-num {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--accent-fg);
}

.split { display: grid; gap: 3.5rem; align-items: center; }
.split--top { align-items: start; }
@media (min-width: 980px) {
  .split { grid-template-columns: 1fr 1.05fr; gap: 4.5rem; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  margin-top: 2.25rem;
}

/* ---------- Live: one creator panel (illustration, example figures) ---------- */

.live {
  display: grid;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; /* figure's default side margins off */
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
@media (min-width: 900px) {
  .live { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .live-feed { border-left: 1px solid var(--line); }
  .live-stats { grid-column: 1 / -1; }
}

.live-main { display: grid; align-content: start; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) 0; }
.live-graph { display: grid; padding: 0 clamp(1.5rem, 3vw, 2.5rem) 1.25rem; }
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .75rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-dim);
}
.live-tag i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fg); }
.live-tag i::after,
.live-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-fg);
  animation: live-ping 2s ease-out infinite;
}
@keyframes live-ping { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }

.live-n {
  margin-top: .9rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.live-sub { margin-top: .6rem; color: var(--text-dim); font-size: 1.05rem; }
.live-sub b { color: var(--accent-fg); font-weight: 550; }

/* Viewers today: one soft curve, bleeding to the panel edges, ending on "now" */
.live-curve {
  position: relative;
  height: clamp(120px, 22vh, 230px);
  margin: clamp(1.25rem, 3vh, 2rem) calc(-1 * clamp(1.5rem, 3vw, 2.5rem)) 0;
  color: var(--accent-fg);
}
.live-curve svg { display: block; width: 100%; height: 100%; overflow: visible; }
.live-line { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.reveal.is-in .live-line { stroke-dasharray: 3000; animation: live-draw 2.2s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes live-draw { from { stroke-dashoffset: 3000; } to { stroke-dashoffset: 0; } }
.live-dot {
  position: absolute;
  right: 0;
  width: 12px;
  height: 12px;
  border: 2.5px solid var(--surface);
  border-radius: 50%;
  background: currentColor;
  transform: translate(50%, -50%);
}
.live-now {
  position: absolute;
  right: clamp(1.25rem, 2vw, 1.75rem);
  transform: translateY(-145%);
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.live-now b { font-family: var(--display); font-size: 1.15rem; font-weight: 650; color: var(--text); margin-right: .25rem; font-variant-numeric: tabular-nums; }
.live-axis {
  display: flex;
  justify-content: space-between;
  margin-top: .6rem;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-dim);
}
/* Axis labels sit where their hours fall: 6am, 12pm (40%), 6pm (80%), now */
.live-axis { position: relative; height: 1rem; }
.live-axis span { position: absolute; }
.live-axis span:nth-child(1) { left: 0; }
.live-axis span:nth-child(2) { left: 40%; transform: translateX(-50%); }
.live-axis span:nth-child(3) { left: 80%; transform: translateX(-50%); }
.live-axis span:nth-child(4) { right: 0; }

/* What's coming in: newest on top, slides in */
.live-feed { display: grid; align-content: center; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.4vw, 2rem); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .live-feed { border-top: 0; } }
.live-feed-h { font-family: var(--mono); font-size: .75rem; text-transform: none; letter-spacing: normal; color: var(--text-dim); }
.live-feed ol { display: grid; margin: .75rem 0 0; padding: 0; list-style: none; }
.live-feed li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.live-feed li:nth-child(5) { border-bottom: 0; }
.live-feed li:nth-child(n+6) { display: none; }
.live-feed li.is-new { animation: ev-in .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ev-in { from { opacity: 0; transform: translateY(-14px); } }
.ev-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  transition: background-color 1s, color 1s;
}
.live-feed li.is-new .ev-ico { background: var(--accent); color: var(--accent-ink); }
.ev-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-t { display: flex; align-items: baseline; gap: .5rem; min-width: 0; }
.ev-t b { flex: none; font-weight: 650; font-size: .95rem; }
.ev-t span { overflow: hidden; color: var(--text-dim); font-size: .85rem; white-space: nowrap; text-overflow: ellipsis; }
.live-feed time { font-family: var(--mono); font-size: .72rem; color: var(--text-dim); }

/* Key numbers along the bottom, divided by hairlines */
.live-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .live-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.live-stats div {
  display: grid;
  gap: .35rem;
  padding: 1.1rem clamp(1.25rem, 2.4vw, 2rem) 1.25rem;
  border-left: 1px solid var(--line);
}
.live-stats div:nth-child(odd) { border-left: 0; }
.live-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .live-stats div:nth-child(odd) { border-left: 1px solid var(--line); }
  .live-stats div:first-child { border-left: 0; }
  .live-stats div:nth-child(n+3) { border-top: 0; }
}
/* Phones: one panel is too much to take in, so each part becomes its own
   card (earnings, viewers, what's coming in, and the four figures) */
@media (max-width: 899px) {
  .live { gap: .75rem; overflow: visible; border: 0; border-radius: 0; background: none; }
  .live-col { display: contents; }
  .live-main, .live-graph, .live-feed, .live-stats div:nth-child(n) {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
  }
  .live-main { padding-bottom: 1.5rem; }
  /* Room above the curve for the "watching now" label; the curve runs to the card's edges */
  .live-graph { overflow: hidden; padding-top: 3.25rem; }
  .live-feed { padding-block: 1.5rem .5rem; }
  .live-feed li:nth-child(n+4) { display: none; }
  .live-feed li:nth-child(3) { border-bottom: 0; }
  /* Name above detail, so long names wrap instead of running into the time */
  .ev-t { display: grid; gap: .15rem; }
  .live-stats { gap: .75rem; border-top: 0; }
  .live-stats div { align-content: start; }
}
.live-stats dt { order: 2; font-family: var(--mono); font-size: .7rem; text-transform: none; letter-spacing: normal; color: var(--text-dim); }
.live-stats dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -.02em;
}

@media (prefers-reduced-motion: reduce) {
  .live-tag i::after, .live-dot::after, .reveal.is-in .live-line, .live-feed li.is-new { animation: none; }
}

/* ---------- Ad formats: full screen, squeeze-back, overlays, mobile app ---------- */

.formats-block { margin-top: 0; }
.formats-head { display: grid; gap: .75rem; }
@media (min-width: 960px) { .formats-head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 4rem; } }
.formats-head .section-lede { margin-top: 0; }
.formats-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.formats { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .formats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 960px) { .formats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }

.fcard {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1.25rem;
  padding: 1rem 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
/* The stand sits right under the TV; the gap moves below it */
.fcard:has(> .tv-stand) { row-gap: 0; }
.fcard > .tv-stand { margin-bottom: 1.25rem; }
.fcard-body { display: grid; align-content: start; gap: .45rem; padding: 0 .5rem; }
.fcard-body h4 { margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; }
.fcard-body p { color: var(--text-dim); font-size: .95rem; line-height: 1.45; }

/* The mini TV every demo plays in */
.ftv {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 6px solid #000;
  border-radius: 14px;
  outline: 1px solid var(--line-2);
  background: #000;
  container-type: inline-size;
  color: #fff;
}
/* Sized from the TV's width (cqw resolves against .ftv for its children) */
.ftv > * { font-size: 3.4cqw; }
.f-show {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1a2e 0%, #2a425c 40%, #b4683a 75%, #e8a259 100%);
}
.f-sun {
  position: absolute;
  left: 58%;
  top: 30%;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd88f 0 40%, rgba(255, 200, 120, .3) 58%, transparent 70%);
}
.f-hill {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 34%;
  background: #140d12;
  clip-path: polygon(0 45%, 18% 20%, 36% 50%, 58% 15%, 78% 45%, 100% 25%, 100% 100%, 0 100%);
}
.f-sub {
  position: absolute;
  left: 50%;
  bottom: 9%;
  padding: .1em .5em;
  border-radius: 3px;
  background: rgba(0, 0, 0, .6);
  font-size: .85em;
  white-space: nowrap;
  transform: translateX(-50%);
}
.f-head { font-family: var(--display); font-weight: 650; letter-spacing: -.025em; line-height: 1; }
.f-brand { font-size: .8em; opacity: .9; }
.f-qr { width: 11cqw; border-radius: 3px; }
.f-chip {
  position: absolute;
  top: 6%;
  left: 5%;
  padding: .2em .6em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: .75em;
}

/* Full screen: the ad wipes over the whole show, then away */
.ftv--full .f-ad {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: .4em;
  padding: 0 8%;
  background: var(--ad-bg);
  clip-path: inset(0);
  animation: f-full 7s cubic-bezier(.7, 0, .2, 1) infinite;
}
.ftv--full .f-head { font-size: 2.6em; }
.ftv--full .f-qr { position: absolute; right: 6%; bottom: 10%; }
@keyframes f-full {
  0%, 25% { clip-path: inset(0 0 0 100%); }
  35%, 80% { clip-path: inset(0); }
  90%, 100% { clip-path: inset(0 100% 0 0); }
}

/* Squeeze-back: the show shrinks to the top-right, the ad fills the L around it */
.f-frame {
  position: absolute;
  inset: 0;
  background: var(--ad-bg);
}
.f-side {
  position: absolute;
  left: 5%;
  top: 12%;
  width: 26%;
  display: grid;
  gap: .4em;
}
.f-side .f-head { font-size: 1.7em; }
.f-bottom {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5em;
  font-size: .9em;
  font-weight: 550;
}
.f-bottom .f-qr { width: 8cqw; }
.ftv--squeeze .f-show {
  transform-origin: 96% 6%;
  transform: scale(.64);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
  animation: f-squeeze 7s cubic-bezier(.6, 0, .2, 1) infinite;
}
.f-frame > * { animation: f-frame-text 7s ease infinite; }
@keyframes f-squeeze {
  0%, 25% { transform: none; border-radius: 0; box-shadow: none; }
  37%, 80% { transform: scale(.64); }
  92%, 100% { transform: none; border-radius: 0; box-shadow: none; }
}
@keyframes f-frame-text {
  0%, 32% { opacity: 0; }
  42%, 78% { opacity: 1; }
  86%, 100% { opacity: 0; }
}

/* Overlay: the show slides left and shrinks; the ad takes a panel on the right.
   Nothing is drawn on top of the picture. */
.ftv--overlay .f-show {
  transform-origin: 0 50%;
  animation: f-make-room 7s cubic-bezier(.6, 0, .2, 1) infinite;
}
@keyframes f-make-room {
  0%, 22% { transform: none; }
  32%, 80% { transform: scale(.68); }
  90%, 100% { transform: none; }
}
.f-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .45em;
  padding: 0 4%;
  background: var(--ad-bg);
  text-align: center;
  animation: f-panel 7s cubic-bezier(.6, 0, .2, 1) infinite;
}
.f-logo {
  display: grid;
  place-items: center;
  width: 2.4em;
  aspect-ratio: 1;
  border-radius: 6px;
  background: #fff;
  color: #163fa8;
  font-family: var(--display);
  font-size: .9em;
  font-weight: 650;
}
.f-ptitle { font-family: var(--display); font-size: 1.05em; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; }
.f-pbrand { font-size: .75em; opacity: .85; }
.f-panel .f-qr { width: 9cqw; margin-top: .2em; }
.f-pcta { font-size: .7em; font-weight: 550; color: var(--accent); }
@keyframes f-panel {
  0%, 22% { transform: translateX(100%); }
  32%, 80% { transform: none; }
  90%, 100% { transform: translateX(100%); }
}

/* Overlay, bottom: the show shrinks up; the ad takes a strip along the bottom */
.ftv--bottom .f-show {
  transform-origin: 50% 0;
  animation: f-make-room-up 7s cubic-bezier(.6, 0, .2, 1) infinite;
}
@keyframes f-make-room-up {
  0%, 22% { transform: none; }
  32%, 80% { transform: scale(.72); }
  90%, 100% { transform: none; }
}
.f-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  display: flex;
  align-items: center;
  gap: .8em;
  padding: 0 4%;
  background: var(--ad-bg);
  animation: f-strip 7s cubic-bezier(.6, 0, .2, 1) infinite;
}
.f-logo--salon { color: #8c2a5c; border-radius: 50%; }
.f-stext { display: grid; flex: 1; line-height: 1.2; }
.f-stext b { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; }
.f-stext span { font-size: .75em; opacity: .85; }
.f-strip .f-qr { width: 9cqw; flex: none; }
.f-strip .f-pcta { flex: none; color: #fff; }
@keyframes f-strip {
  0%, 22% { transform: translateY(100%); }
  32%, 80% { transform: none; }
  90%, 100% { transform: translateY(100%); }
}

/* Two groups: TV formats in a 2x2 grid, mobile formats as upright phones */
.fgroups { display: grid; gap: 2rem; margin-top: 2.25rem; }
@media (min-width: 960px) { .fgroups { gap: 1.5rem; } }
.fgroup { display: grid; gap: .9rem; }
.fgroup-h { margin: 0; font-family: var(--mono); font-size: .75rem; font-weight: 450; text-transform: none; letter-spacing: normal; color: var(--text-dim); }
.fgroups .formats { margin: 0; }
/* Mobile row: three cards, each with the phone beside its name and line */
@media (min-width: 760px) { .formats--mobile { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.fcard--phone { grid-template-rows: none; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.1rem; padding: 1rem; }
.fcard--phone .fphone { width: clamp(118px, 10.5vw, 168px); margin: 0; }
.fcard--phone .fcard-body { padding: 0; }

/* Mobile: an upright phone running the creator's app */
.fphone {
  position: relative;
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 9 / 18;
  margin: 0 auto;
  overflow: hidden;
  border: 5px solid #000;
  border-radius: 24px;
  outline: 1px solid var(--line-2);
  background: #0f1115;
  color: #fff;
  container-type: inline-size;
}
/* Spacing lives on the inner screen so cqw measures the phone, not the page */
.fp-screen { display: flex; flex-direction: column; gap: 4cqw; height: 100%; padding-top: 4cqw; font-size: 5cqw; }
.fp-status { display: flex; justify-content: space-between; align-items: center; padding: 0 7cqw; font-size: 4.2cqw; font-weight: 650; }
.fp-bat { width: 7cqw; height: 3.4cqw; border: 1px solid rgba(255, 255, 255, .7); border-radius: 1cqw; background: linear-gradient(90deg, #fff 70%, transparent 0) content-box; padding: 1px; }
.fp-app { padding: 0 6cqw; font-family: var(--display); font-size: 5cqw; font-weight: 650; letter-spacing: .03em; }
.fp-app b { color: var(--accent); }
.fp-player { position: relative; flex: none; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; }
.fp-player .f-show { font-size: 5cqw; }
.fp-ad {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: .3em;
  padding: 0 8%;
  background: var(--ad-bg);
  font-size: 5cqw;
  animation: f-full 7s cubic-bezier(.7, 0, .2, 1) infinite;
  animation-delay: -3.4s;
}
.fp-ad .f-head { font-size: 2em; }
.fp-ad .f-chip { font-size: .7em; }
/* Overlay: a banner opens up under the video; the show keeps playing above */
.fp-banner {
  display: flex;
  align-items: center;
  gap: 3cqw;
  max-height: 0;
  margin: -4cqw 4cqw 0;
  padding: 0 3cqw;
  overflow: hidden;
  border-radius: 3cqw;
  background: var(--ad-bg);
  animation: fp-banner 7s cubic-bezier(.2, .7, .2, 1) infinite;
  animation-delay: -1s;
}
@keyframes fp-banner {
  0%, 25% { max-height: 0; margin-top: -4cqw; padding-block: 0; }
  35%, 82% { max-height: 22cqw; margin-top: 0; padding-block: 2.6cqw; }
  92%, 100% { max-height: 0; margin-top: -4cqw; padding-block: 0; }
}
.fp-logo { flex: none; display: grid; place-items: center; width: 8cqw; aspect-ratio: 1; border-radius: 50%; background: #fff; color: #8c2a5c; font-family: var(--display); font-weight: 650; font-size: 4.4cqw; }
.fp-btext { display: grid; min-width: 0; line-height: 1.2; }
.fp-btext b { overflow: hidden; font-size: 4.2cqw; white-space: nowrap; text-overflow: ellipsis; }
.fp-btext span { font-size: 3.6cqw; opacity: .85; }
.fp-cta { flex: none; margin-left: auto; padding: 1cqw 3cqw; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 3.8cqw; font-weight: 650; }
/* Full screen vertical: the ad takes the whole phone, story-style */
.fp-full {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2.5cqw;
  padding: 8cqw 7cqw 10cqw;
  background: var(--ad-bg);
  font-size: 5cqw;
  animation: fp-full 7s cubic-bezier(.7, 0, .2, 1) infinite;
  animation-delay: -5.2s;
}
.fp-full-top { position: absolute; top: 8cqw; left: 7cqw; right: 7cqw; height: 1cqw; border-radius: 99px; background: rgba(255, 255, 255, .3); }
.fp-full-top::before { content: ""; position: absolute; inset: 0 40% 0 0; border-radius: inherit; background: #fff; }
.fp-full-top .f-chip { top: 3cqw; left: 0; font-size: 3.6cqw; }
.fp-full-k { font-family: var(--mono); font-size: 3.6cqw; text-transform: none; letter-spacing: normal; opacity: .85; }
.fp-full-h { font-family: var(--display); font-size: 12cqw; font-weight: 650; line-height: .95; letter-spacing: -.03em; }
.fp-full-b { font-size: 4.4cqw; opacity: .9; }
.fp-full-cta { margin-top: 3cqw; padding: 3cqw; border-radius: 99px; background: #fff; color: #16171a; font-size: 4.4cqw; font-weight: 650; text-align: center; }
@keyframes fp-full {
  0%, 25% { clip-path: inset(100% 0 0 0); }
  35%, 82% { clip-path: inset(0); }
  92%, 100% { clip-path: inset(0 0 100% 0); }
}

.fp-title { display: grid; padding: 0 6cqw; line-height: 1.25; }
.fp-title b { font-size: 5.4cqw; font-weight: 650; }
.fp-title span { font-size: 4cqw; color: #9aa0a6; }
.fp-list { display: grid; gap: 3cqw; padding: 0 6cqw; }
.fp-list i { display: block; height: 13cqw; border-radius: 2cqw; background: #1d2128; }

/* Staggered so at least one demo is always showing its ad */
.ftv--squeeze .f-show, .ftv--squeeze .f-frame > * { animation-delay: -2.3s; }
.ftv--overlay .f-show, .ftv--overlay .f-panel { animation-delay: -4.6s; }
.ftv--bottom .f-show, .ftv--bottom .f-strip { animation-delay: -1.2s; }

@media (prefers-reduced-motion: reduce) {
  .ftv--full .f-ad, .fp-ad, .fp-banner, .fp-full, .ftv--squeeze .f-show, .f-frame > *, .f-panel { animation: none; }
  .ftv--overlay .f-show { animation: none; transform: scale(.68); }
  .ftv--bottom .f-show { animation: none; transform: scale(.72); }
  .f-strip { animation: none; }
}

/* ---------- Advertisers: live activity across a dot map of Africa ---------- */

.reach { display: grid; gap: clamp(1.25rem, 3vh, 2rem); justify-items: center; margin: 0; }
.reach-map {
  position: relative;
  /* --ratio is the map's width/height; main.js sets it for a country map */
  width: min(100%, calc((100svh - 330px) * var(--ratio, .99)));
  min-width: min(100%, 300px);
  aspect-ratio: var(--ratio, .99);
}
.reach-map svg { display: block; width: 100%; height: 100%; fill: var(--line-2); }
.city {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-fg);
  transform: translate(-50%, -50%);
}
.city::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid var(--accent-fg);
  border-radius: 50%;
  opacity: 0;
}
.city.is-ping::after { animation: city-ping 1.6s ease-out; }
@keyframes city-ping { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(2.2); } }
/* Event label that pops up beside a city */
.reach-ev {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: .05rem;
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 30px -14px var(--shadow-strong);
  white-space: nowrap;
  pointer-events: none;
  transform: translate(14px, -50%);
  animation: ev-pop 2.8s cubic-bezier(.2, .7, .2, 1) both;
}
.reach-ev.is-left { transform: translate(calc(-100% - 14px), -50%); }
.reach-ev b { font-size: .85rem; font-weight: 650; }
.reach-ev span { font-family: var(--mono); font-size: .68rem; color: var(--text-dim); }
@keyframes ev-pop {
  0% { opacity: 0; margin-top: 8px; }
  12%, 80% { opacity: 1; margin-top: 0; }
  100% { opacity: 0; margin-top: -6px; }
}

.reach-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem clamp(2rem, 4vw, 3.5rem); margin: 0; }
.reach-stats div { display: grid; gap: .2rem; text-align: center; }
.reach-stats dt { order: 2; font-family: var(--mono); font-size: .7rem; text-transform: none; letter-spacing: normal; color: var(--text-dim); }
.reach-stats dd { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- Ways to earn (monetisation models) ---------- */

/* Each model has its own colour (--m), used for marks only, never for text.
   Same validated trio as the Hybrid illustration and the revenue chart. */
.models {
  --h1: #6f9a14;
  --h2: #2a83c4;
  --h3: #c9682a;
  --mix: linear-gradient(90deg, var(--h1) 0 34%, var(--h2) 0 67%, var(--h3) 0);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
#panel-avod, .model-rail li:nth-child(1) { --m: var(--h1); }
#panel-svod, .model-rail li:nth-child(2) { --m: var(--h2); }
#panel-tvod, .model-rail li:nth-child(3) { --m: var(--h3); }
#panel-hybrid, .model-rail li:nth-child(4) { --m: var(--accent-fg); }

/* Phones: models simply stack down the page. Desktop: one model at a time,
   with dots and arrows under the stage. */
.model-nav { display: none; }

.model-viewport { display: grid; gap: 1rem; }
.model-viewport:focus-visible { outline-offset: 4px; border-radius: 24px; }

.model-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.model-copy { padding: clamp(1.5rem, 4vw, 3.25rem); }

.model-art {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 8%;
  overflow: hidden;
  container-type: inline-size;
  background: var(--bg-2);
  background:
    radial-gradient(80% 70% at 50% 100%, color-mix(in oklab, var(--m) 22%, transparent), transparent 70%),
    color-mix(in oklab, var(--m) 7%, var(--bg-2));
}
#panel-hybrid .model-art {
  background:
    radial-gradient(45% 60% at 15% 100%, color-mix(in oklab, var(--h1) 20%, transparent), transparent 70%),
    radial-gradient(45% 60% at 50% 100%, color-mix(in oklab, var(--h2) 18%, transparent), transparent 70%),
    radial-gradient(45% 60% at 85% 100%, color-mix(in oklab, var(--h3) 18%, transparent), transparent 70%),
    var(--bg-2);
}

@media (min-width: 860px) {
  .model-panel { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .model-panel .model-art { order: 2; aspect-ratio: auto; height: 100%; min-height: 360px; }
  .model-copy { align-self: center; }
}

@media (min-width: 960px) {
  .model-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-top: clamp(1rem, 2.5vh, 1.5rem);
  }
  .model-rail { display: flex; align-items: center; gap: .6rem; margin: 0; padding: 0; list-style: none; }
  .model-rail button {
    position: relative;
    display: block;
    width: 10px;
    height: 10px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 99px;
    background: var(--line-2);
    cursor: pointer;
    transition: width .4s cubic-bezier(.2, .7, .2, 1), background-color .3s;
  }
  /* Bigger hit area than the dot */
  .model-rail button::before { content: ""; position: absolute; inset: -12px -4px; }
  .model-rail button:hover { background: var(--text-dim); }
  .model-rail button[aria-current="true"] { width: 44px; background: var(--line-2); }
  .rail-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: var(--text); }
  .model-rail button[aria-current="true"] .rail-fill { width: 100%; }
  .models.is-auto .model-rail button[aria-current="true"] .rail-fill { animation: rail-fill var(--cycle, 6s) linear both; }
  @keyframes rail-fill { from { width: 0; } }
  .model-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: none;
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
  }
  .model-arrow:hover { border-color: var(--text-dim); background: var(--surface); }
  .model-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  /* The stage: one model at a time, always fits on screen. Models slide
     vertically; nothing inside scrolls. */
  .model-viewport {
    position: relative;
    display: block;
    height: clamp(400px, calc(100svh - 390px), 560px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
  }
  .model-panel {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: 0;
    background: none;
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
    transition: opacity .45s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
  }
  .model-panel.is-before { transform: translateY(-40px); }
  .model-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }

  /* Illustration fills the right side edge to edge and scales to the stage height */
  .model-panel .model-art { min-height: 0; padding: 2.5rem; container-type: size; }
  .model-panel .art { width: min(100%, 125cqh); }
  .model-panel .model-copy h3 { font-size: clamp(2rem, 3vw, 3rem); }
}

/* The active model plays its entrance and illustration; the others rest on their end state */
.model-panel.is-active .model-art,
.model-panel.is-active .model-copy > * { animation: panel-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.model-panel.is-active .model-copy > :nth-child(2) { animation-delay: .06s; }
.model-panel.is-active .model-copy > :nth-child(3) { animation-delay: .12s; }
.model-panel.is-active .model-copy > :nth-child(4) { animation-delay: .18s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.model-panel:not(.is-active) .art *,
.model-panel:not(.is-active) .art *::after { animation: none !important; }

.model-full { font-family: var(--mono); font-size: .85rem; color: var(--text-dim); }
.model-full b { color: var(--text); font-weight: 450; }
.model-full b::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: .55rem;
  border-radius: 50%;
  background: var(--m);
  vertical-align: .05em;
}
#panel-hybrid .model-full b::before { background: conic-gradient(var(--h1) 0 33%, var(--h2) 0 66%, var(--h3) 0); }
.model-copy h3 {
  margin-top: .9rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.025em;
}
.model-body { margin-top: 1rem; max-width: 30rem; color: var(--text-dim); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }


/* Model illustrations. Base styles are the end state; animations play in from it. */
.art { display: grid; gap: 5cqw; width: 100%; container-type: inline-size; }
.art > .tv-stand { margin-top: -5cqw; }

/* AVOD: show, ad wipes in, coins flow from business to creator */
.mini-tv {
  position: relative;
  aspect-ratio: 16 / 8;
  border: 1px solid var(--line-2);
  border-radius: 2cqw;
  overflow: hidden;
  background: #000;
}
.mini-scene {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 46%, #ffd88f 0 6%, transparent 16%),
    linear-gradient(180deg, #0d1a2e 0%, #2a425c 40%, #b4683a 75%, #e8a259 100%);
}
.mini-ad {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6e1a10, #b83a0e 50%, #f08c0a);
  font-family: var(--display);
  font-size: max(13px, 4cqw);
  font-weight: 650;
  color: #fff;
  animation: ad-wipe 4.5s cubic-bezier(.7, 0, .2, 1) infinite;
}
@keyframes ad-wipe {
  0%, 30% { clip-path: inset(0 0 0 100%); }
  42%, 78% { clip-path: inset(0); }
  90%, 100% { clip-path: inset(0 100% 0 0); }
}
.flow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3cqw; }
.node {
  display: grid;
  justify-items: center;
  gap: 1.4cqw;
  font-family: var(--mono);
  font-size: max(10px, 2.8cqw);
  color: var(--text-dim);
}
.node b {
  display: grid;
  place-items: center;
  width: 13cqw;
  aspect-ratio: 1;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
}
.node svg { width: 50%; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linejoin: round; }
.node--you b { border-color: var(--accent-fg); box-shadow: 0 0 24px rgba(53, 168, 57, .25); }
.node--you svg { fill: var(--accent-fg); stroke: none; }
.flow-track {
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}
.flow-track i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.4cqw;
  min-width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-fg);
  box-shadow: 0 0 12px rgba(53, 168, 57, .6);
  transform: translate(-50%, -50%);
  animation: coin 2.4s linear infinite;
}
.flow-track i:nth-child(2) { animation-delay: .8s; }
.flow-track i:nth-child(3) { animation-delay: 1.6s; }
@keyframes coin {
  0% { left: 0; opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* SVOD: subscription card, months renew, library unlocks */
.art-svod { justify-items: center; gap: 4.5cqw; }
.sub-card {
  display: grid;
  gap: 1.4cqw;
  width: 68%;
  padding: 4cqw 4.5cqw;
  border: 1px solid color-mix(in srgb, var(--accent-fg) 45%, transparent);
  border-radius: 3cqw;
  background: linear-gradient(140deg, var(--accent-tint), var(--surface) 70%);
  animation: pop .6s cubic-bezier(.2, .7, .2, 1) both;
}
.sub-plan { font-family: var(--mono); font-size: max(10px, 2.8cqw); text-transform: none; letter-spacing: normal; color: var(--accent-fg); }
.sub-price { font-family: var(--display); font-size: max(20px, 7cqw); font-weight: 650; letter-spacing: -.025em; }
.sub-price small { font-family: var(--sans); font-size: .4em; font-weight: 350; color: var(--text-dim); letter-spacing: 0; }
.sub-paid { font-size: max(11px, 3cqw); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } }

.months { display: flex; gap: 2cqw; }
.months span {
  padding: 1.1cqw 2.6cqw;
  border: 1px solid var(--accent-fg);
  border-radius: 999px;
  background: var(--accent-tint);
  font-family: var(--mono);
  font-size: max(10px, 2.7cqw);
  animation: month-on .5s ease both;
}
.months span:nth-child(1) { animation-delay: .5s; }
.months span:nth-child(2) { animation-delay: 1s; }
.months span:nth-child(3) { animation-delay: 1.5s; }
.months span:nth-child(4) { animation-delay: 2s; }
@keyframes month-on {
  from { border-color: var(--line-2); background: transparent; color: var(--text-dim); }
}

.locks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqw; width: 68%; }
.locks i { position: relative; aspect-ratio: 16 / 10; border-radius: 1.4cqw; overflow: hidden; }
.locks i:nth-child(1) { background: linear-gradient(140deg, #3a1d4d, #b0456b); }
.locks i:nth-child(2) { background: linear-gradient(140deg, #0f3d3a, #3fa184); }
.locks i:nth-child(3) { background: linear-gradient(140deg, #2b2b2b, #8a7a5c); }
.locks i:nth-child(4) { background: linear-gradient(140deg, #13284d, #4b7bd1); }
.locks i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 10, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a1ac' stroke-width='2'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 40% no-repeat;
  opacity: 0;
  animation: unlock .4s ease both;
}
.locks i:nth-child(1)::after { animation-delay: 2.4s; }
.locks i:nth-child(2)::after { animation-delay: 2.6s; }
.locks i:nth-child(3)::after { animation-delay: 2.8s; }
.locks i:nth-child(4)::after { animation-delay: 3s; }
@keyframes unlock { from { opacity: 1; } }

/* TVOD: a ticket that unlocks, then a 48-hour timer runs down */
.ticket {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: 86%;
  border: 1px solid var(--line-2);
  border-radius: 3cqw;
  overflow: hidden;
  background: var(--surface);
  animation: pop .6s cubic-bezier(.2, .7, .2, 1) both;
}
.ticket-poster {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1cqw;
  aspect-ratio: 3 / 4;
  padding: 3.5cqw;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 210, 140, .55), transparent 35%),
    linear-gradient(165deg, #20103a, #6b1d4a 55%, #d9532b);
}
.ticket-tag { font-family: var(--mono); font-size: max(9px, 2.5cqw); text-transform: none; letter-spacing: normal; color: var(--accent); }
.ticket-title { color: #fff; font-family: var(--display); font-size: max(16px, 5.2cqw); font-weight: 650; line-height: 1; letter-spacing: -.025em; }
.ticket-side {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5cqw;
  padding: 3cqw;
  border-left: 2px dashed var(--line-2);
}
.ticket-btn {
  display: grid;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: max(11px, 3cqw);
  font-weight: 550;
  white-space: nowrap;
}
.ticket-btn > span { grid-area: 1 / 1; padding: 1.8cqw 3.2cqw; text-align: center; }
.t-rent { opacity: 0; animation: t-rent 1.6s ease both; }
.t-done { animation: t-done 1.6s ease both; }
@keyframes t-rent { 0%, 55% { opacity: 1; transform: none; } 75%, 100% { opacity: 0; transform: translateY(-100%); } }
@keyframes t-done { 0%, 60% { opacity: 0; transform: translateY(100%); } 80%, 100% { opacity: 1; transform: none; } }

.ticket-timer { position: relative; display: grid; place-items: center; width: 17cqw; }
.ticket-timer svg { width: 100%; transform: rotate(-90deg); }
.ticket-timer circle { fill: none; stroke: var(--line-2); stroke-width: 3; }
.ticket-timer .ring {
  stroke: var(--accent-fg);
  stroke-linecap: round;
  stroke-dasharray: 94.25;
  stroke-dashoffset: 30;
  animation: drain 6s 1.6s linear both;
}
@keyframes drain { from { stroke-dashoffset: 0; } }
.ticket-timer > span { position: absolute; font-family: var(--mono); font-size: max(10px, 3cqw); }

/* Hybrid: three kinds of viewer feed one income bar. Colours validated for CVD. */
.art-hybrid { --h1: #6f9a14; --h2: #2a83c4; --h3: #c9682a; gap: 6cqw; }
.lanes { display: grid; gap: 2.6cqw; }
.lane { display: grid; grid-template-columns: 30cqw 1fr; align-items: center; }
.lane-l { font-family: var(--mono); font-size: max(10px, 2.8cqw); color: var(--text-dim); }
.lane-dots { display: flex; gap: 1.8cqw; }
.lane-dots i {
  width: 4.2cqw;
  min-width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: pop .4s ease both;
}
.lane:nth-child(1) i { background: var(--h1); }
.lane:nth-child(2) i { background: var(--h2); }
.lane:nth-child(3) i { background: var(--h3); }
.lane-dots i:nth-child(2) { animation-delay: .1s; }
.lane-dots i:nth-child(3) { animation-delay: .2s; }
.lane-dots i:nth-child(4) { animation-delay: .3s; }
.lane-dots i:nth-child(5) { animation-delay: .4s; }
.lane-dots i:nth-child(6) { animation-delay: .5s; }

.income { display: grid; gap: 2cqw; }
.income-l { font-family: var(--mono); font-size: max(10px, 2.8cqw); text-transform: none; letter-spacing: normal; color: var(--text-dim); }
.income-bar { display: flex; gap: 2px; height: max(14px, 5cqw); }
.income-bar b { height: 100%; animation: grow .8s cubic-bezier(.2, .7, .2, 1) both; }
.income-bar .s1 { width: 48%; background: var(--h1); border-radius: 4px 0 0 4px; animation-delay: .6s; }
.income-bar .s2 { width: 32%; background: var(--h2); animation-delay: .85s; }
.income-bar .s3 { width: 20%; background: var(--h3); border-radius: 0 4px 4px 0; animation-delay: 1.1s; }
@keyframes grow { from { width: 0; } }
.income-key { display: flex; flex-wrap: wrap; gap: 1.5cqw 4cqw; font-size: max(11px, 2.9cqw); color: var(--text-dim); }
.income-key span { display: inline-flex; align-items: center; gap: 1.4cqw; }
.income-key i { width: 2.4cqw; min-width: 8px; aspect-ratio: 1; border-radius: 2px; }
.income-key .s1 { background: var(--h1); }
.income-key .s2 { background: var(--h2); }
.income-key .s3 { background: var(--h3); }

@media (prefers-reduced-motion: reduce) {
  .model-panel.is-active .model-art,
  .model-panel.is-active .model-copy > *,
  .models.is-auto .rail-fill,
  .art *, .art *::after { animation: none !important; }
  .model-panel { transition: opacity .2s ease !important; transform: none !important; }
}

/* ---------- Ad break player (animated illustration) ---------- */

.showcase { padding-bottom: clamp(4rem, 8vw, 6rem); }

.showcase-head { display: grid; gap: 1.25rem; align-items: end; }
.showcase-head .section-lede { margin-top: 0; }
@media (min-width: 960px) {
  .showcase-head { grid-template-columns: 1.25fr 1fr; gap: 4rem; }
}

.player { margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; max-width: min(100%, calc((100svh - 320px) * 16 / 9)); }

.player-tv {
  padding: clamp(5px, 1vw, 10px);
  border: 1px solid var(--line-2);
  border-radius: clamp(14px, 2vw, 22px);
  background: #000;
  box-shadow: 0 60px 140px -60px rgba(53, 168, 57, .22), 0 40px 80px -40px var(--shadow-strong);
}

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(8px, 1.4vw, 14px);
  background: #05060a;
  container-type: inline-size;
  font-family: var(--sans);
  color: #fff;
}

/* The "show": dusk over the hills, panning slowly */
.show {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0d1a2e 0%, #2a425c 36%, #b4683a 70%, #e8a259 100%);
  transition: filter .6s ease, transform .8s ease;
}
.screen[data-phase="bumper"] .show,
.screen[data-phase="ad"] .show,
.screen[data-phase="next"] .show {
  filter: blur(6px) brightness(.45);
  transform: scale(1.05);
}

.show-sun {
  position: absolute;
  left: 60%;
  top: 40%;
  width: 16cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd88f 0 40%, rgba(255, 200, 120, .35) 55%, transparent 70%);
  animation: sun 12s ease-in-out infinite alternate;
}
@keyframes sun { to { transform: translateY(5cqw); } }

.show-hills {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  background-repeat: repeat-x;
  background-size: 50% 100%;
  animation: pan linear infinite;
}
.show-hills--far { height: 46%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 62C40 42 80 30 120 44S200 72 250 42 340 22 400 62V100H0Z' fill='%23382634'/%3E%3C/svg%3E"); animation-duration: 50s; }
.show-hills--near { height: 30%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 50C50 72 92 28 150 44S250 78 300 52 372 38 400 50V100H0Z' fill='%23110b10'/%3E%3C/svg%3E"); animation-duration: 20s; }
@keyframes pan { to { transform: translateX(-50%); } }

.show-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 64% 52%, rgba(255, 190, 110, .28), transparent 70%);
}

.show-sub {
  position: absolute;
  left: 50%;
  bottom: 17%;
  transform: translateX(-50%);
  padding: .15em .6em;
  border-radius: 4px;
  background: rgba(0, 0, 0, .6);
  font-size: max(10px, 2.2cqw);
  white-space: nowrap;
  transition: opacity .3s;
}
.screen[data-phase="bumper"] .show-sub,
.screen[data-phase="ad"] .show-sub,
.screen[data-phase="next"] .show-sub { opacity: 0; }

.show-badge {
  position: absolute;
  top: 5%;
  left: 4%;
  font-family: var(--display);
  font-size: max(9px, 1.5cqw);
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .85);
}
.show-badge b { color: var(--accent); font-weight: 550; }

/* "Ad break" bumper between show and ad */
.bumper {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.2cqw;
  text-align: center;
  opacity: 0;
  transition: opacity .4s;
}
.screen[data-phase="bumper"] .bumper { opacity: 1; }
.bumper-label {
  font-family: var(--display);
  font-size: max(20px, 5cqw);
  font-weight: 650;
  letter-spacing: -.025em;
  color: var(--accent);
}
.bumper-note { font-family: var(--mono); font-size: max(9px, 1.5cqw); color: rgba(255, 255, 255, .75); }

/* "Up next" card after the post-roll */
.next {
  position: absolute;
  left: 50%;
  top: 46%;
  display: grid;
  gap: 1.2cqw;
  width: 44cqw;
  padding: 2.6cqw 3cqw;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1.6cqw;
  background: rgba(7, 8, 10, .72);
  opacity: 0;
  transform: translate(-50%, -40%);
  transition: opacity .4s, transform .5s cubic-bezier(.2, .7, .2, 1);
}
.screen[data-phase="next"] .next { opacity: 1; transform: translate(-50%, -50%); }
.next-label { font-family: var(--mono); font-size: max(9px, 1.4cqw); text-transform: none; letter-spacing: normal; color: var(--accent); }
.next-title { font-family: var(--display); font-size: max(14px, 2.8cqw); font-weight: 650; letter-spacing: -.02em; }
.next-count { height: max(3px, .4cqw); border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.next-count i { display: block; height: 100%; width: 0; background: var(--accent); }

/* The ad itself: wipes in from the right, out to the left */
.ad {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 4cqw;
  padding: 7cqw 6cqw 11cqw;
  background: var(--ad-bg);
  clip-path: inset(0 0 0 100%);
  transition: clip-path .75s cubic-bezier(.7, 0, .2, 1);
}
.screen[data-phase="ad"] .ad { clip-path: inset(0 0 0 0); }
.screen[data-phase="resume"] .ad,
.screen[data-phase="next"] .ad { clip-path: inset(0 100% 0 0); }

.ad-copy { display: grid; gap: 1.4cqw; }
.ad-kicker {
  font-family: var(--mono);
  font-size: max(9px, 1.5cqw);
  text-transform: none;
  letter-spacing: normal;
  color: rgba(255, 255, 255, .8);
}
.ad-head {
  font-family: var(--display);
  font-size: max(24px, 6.6cqw);
  font-weight: 650;
  line-height: .95;
  letter-spacing: -.025em;
}
.ad-brand { font-size: max(11px, 1.9cqw); font-weight: 450; color: rgba(255, 255, 255, .9); }

.ad-copy > *, .ad-offer {
  opacity: 0;
  transform: translateY(2cqw);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.screen[data-phase="ad"] .ad-copy > *,
.screen[data-phase="ad"] .ad-offer { opacity: 1; transform: none; }
.screen[data-phase="ad"] .ad-kicker { transition-delay: .35s; }
.screen[data-phase="ad"] .ad-head { transition-delay: .45s; }
.screen[data-phase="ad"] .ad-brand { transition-delay: .55s; }
.screen[data-phase="ad"] .ad-offer { transition-delay: .7s; }

.ad-offer {
  justify-self: end;
  display: grid;
  justify-items: center;
  gap: 1.3cqw;
  padding: 1.8cqw;
  border-radius: 1.8cqw;
  background: rgba(7, 8, 10, .88);
  text-align: center;
}
.ad-qr {
  width: max(52px, 15cqw);
  border-radius: .6cqw;
  animation: scan-ring 1.8s ease-out infinite;
}
@keyframes scan-ring {
  from { box-shadow: 0 0 0 0 rgba(53, 168, 57, .7); }
  to { box-shadow: 0 0 0 1.6cqw rgba(53, 168, 57, 0); }
}
.ad-offer-text { display: grid; font-size: max(10px, 1.7cqw); line-height: 1.3; }
.ad-offer-text b { color: var(--accent); }
.ad-offer-text small { font-family: var(--mono); font-size: max(8px, 1.2cqw); color: var(--text-dim); }

.ad-sponsor {
  position: absolute;
  top: 5%;
  right: 4%;
  padding: .2em .7em;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  font-family: var(--mono);
  font-size: max(8px, 1.3cqw);
}

/* One look per kind of advertiser, set on .ad */
[data-ad="food"] { --ad-bg: radial-gradient(circle at 85% 15%, rgba(255, 214, 120, .4), transparent 45%), linear-gradient(135deg, #6e1a10 0%, #b83a0e 50%, #f08c0a 100%); }
[data-ad="tech"] { --ad-bg: radial-gradient(circle at 80% 20%, rgba(120, 220, 255, .35), transparent 45%), linear-gradient(135deg, #06132e 0%, #163fa8 55%, #2a8fd6 100%); }
[data-ad="mabati"] { --ad-bg: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 2%, rgba(0, 0, 0, .12) 2% 4%), linear-gradient(160deg, #14202a 0%, #2d4557 55%, #56707f 100%); }
[data-ad="hotel"] { --ad-bg: radial-gradient(circle at 78% 30%, rgba(255, 196, 120, .5), transparent 35%), linear-gradient(175deg, #1a1033 0%, #4f2466 50%, #c9683c 100%); }
[data-ad="bank"] { --ad-bg: radial-gradient(circle at 85% 10%, rgba(150, 240, 200, .25), transparent 45%), linear-gradient(135deg, #031f1d 0%, #0a5446 55%, #128a6a 100%); }
[data-ad="salon"] { --ad-bg: radial-gradient(circle at 80% 20%, rgba(255, 200, 220, .35), transparent 45%), linear-gradient(135deg, #2e0b25 0%, #8c2a5c 55%, #d4567e 100%); }

/* Player controls overlay */
.hud {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 5%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2cqw;
  font-family: var(--mono);
  font-size: max(9px, 1.4cqw);
}
.hud-chip {
  padding: .25em .8em;
  border-radius: 999px;
  background: rgba(0, 0, 0, .6);
  white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.screen[data-phase="ad"] .hud-chip { background: var(--accent); color: var(--accent-ink); }
.hud-bar {
  position: relative;
  height: max(3px, .45cqw);
  border-radius: 99px;
  background: rgba(255, 255, 255, .25);
}
.hud-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 22%;
  border-radius: inherit;
  background: #fff;
}
.screen[data-phase="ad"] .hud-fill { background: var(--accent); }
.hud-marker {
  position: absolute;
  top: 50%;
  width: max(7px, 1cqw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f2c14e;
  transform: translate(-50%, -50%);
}
.screen[data-phase="ad"] .hud-marker { opacity: 0; }
.hud-time { white-space: nowrap; color: rgba(255, 255, 255, .9); }

/* Under the TV: just the pause/play button */
.player-foot { display: flex; justify-content: flex-end; margin-top: 1rem; }
.player-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s;
}
.player-toggle:hover { border-color: var(--text-dim); }
.player-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.player-toggle .i-play { fill: currentColor; stroke-width: 1.5; }
.player-toggle .i-play,
.player.is-stopped .player-toggle .i-pause { display: none; }
.player.is-stopped .player-toggle .i-play { display: block; }

/* Pause every looping animation when the player is paused or off screen */
.player.is-paused .show-hills,
.player.is-paused .show-sun,
.player.is-paused .ad-qr { animation-play-state: paused; }



@media (prefers-reduced-motion: reduce) {
  .show-hills, .show-sun, .ad-qr { animation: none; }
  .ad, .ad-copy > *, .ad-offer, .show { transition: none; }
}

/* ---------- Contact form ---------- */

/* The closing screen: headline beside a chat-style form. The form is a real
   form: each question bubble is the field's label. */
.talk { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .talk { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.talk-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.03em;
}
.talk-lede { margin-top: 1.25rem; max-width: 30rem; color: var(--text-dim); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }

/* WhatsApp: brand green, dark text for contrast */
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.5rem;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  background: #25d366;
  color: #07080a;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 14px 30px -18px rgba(37, 211, 102, .8);
  transition: transform .2s, box-shadow .2s;
}
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(37, 211, 102, .9); }
.wa-btn svg { width: 22px; height: 22px; fill: currentColor; }

.chat {
  --in: var(--surface);
  --out: color-mix(in oklab, var(--accent) 22%, var(--surface));
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-2);
  box-shadow: 0 50px 100px -60px var(--shadow-strong);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.chat-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); }
.chat-avatar svg { width: 16px; height: 16px; fill: var(--accent-ink); }
.chat-who { display: grid; line-height: 1.25; }
.chat-who b { font-weight: 650; }
.chat-who span { color: var(--text-dim); font-size: .82rem; }

.chat-body { display: grid; gap: 1.1rem; padding: 1.4rem 1.25rem 1rem; }
.chat .field { display: grid; gap: .5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
/* Question from MaScenes: left bubble */
.bubble {
  justify-self: start;
  max-width: 85%;
  padding: .6rem .95rem;
  border-radius: 4px 18px 18px 18px;
  background: var(--in);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
  font-size: .98rem;
  font-weight: 450;
  color: var(--text);
}
.chat legend.bubble { float: left; margin-bottom: .5rem; }
.chat fieldset .choices { clear: left; }
/* The visitor's answer: right bubble that you type into */
.reply {
  justify-self: end;
  width: min(100%, 22rem);
  padding: .65rem .95rem;
  border: 1.5px solid transparent;
  border-radius: 18px 4px 18px 18px;
  background: var(--out);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  transition: border-color .2s, background-color .2s;
}
textarea.reply { resize: none; min-height: 3rem; }
.reply::placeholder { color: var(--placeholder); }
.reply:focus-visible { outline: none; border-color: var(--accent-fg); }
.reply[aria-invalid="true"] { border-color: var(--error); }
.chat .field-hint,
.chat .field-error { justify-self: end; margin: 0; font-size: .8rem; text-align: right; }
.chat .field-hint { color: var(--text-dim); }
.chat .field-error { color: var(--error); }
/* Quick replies */
.chat .choices { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.chat .choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  border: 1.5px solid var(--accent-fg);
  border-radius: 999px;
  color: var(--accent-fg);
  font-weight: 650;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.chat .choice input { position: absolute; opacity: 0; pointer-events: none; }
.chat .choice:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chat .choice:has(input:focus-visible) { outline: 2px solid var(--accent-fg); outline-offset: 3px; }

.chat-foot { display: flex; justify-content: flex-end; padding: .25rem 1.25rem 1.25rem; }
.chat-send {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  padding: 0 .55rem 0 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.chat-send::after {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335a839' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.chat-send:hover::after { transform: translateX(2px); }
.chat-send[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; text-align: right; font-size: .9rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
/* Success: a green toast that fades in, then out (main.js removes it) */
.form-status.is-ok {
  justify-self: end;
  max-width: 100%;
  padding: .75rem 1rem;
  border-radius: 14px;
  background: #15803d;
  color: #fff;
  font-weight: 550;
  text-align: left;
  box-shadow: 0 14px 30px -16px rgba(21, 128, 61, .7);
  animation: toast-in .35s cubic-bezier(.2, .7, .2, 1) both;
}
.form-status.is-ok.is-leaving { animation: toast-out .4s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .form-status.is-ok, .form-status.is-ok.is-leaving { animation: none; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* ---------- Next-section button (desktop) ---------- */

/* One round button in the right-hand margin, outside the content.
   Arrow down goes to the next section; on the last one it flips up and
   goes back to the top. */
.secnav {
  position: fixed;
  right: max(12px, calc((var(--gutter) - 44px) / 2));
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 12px 30px -16px var(--shadow-strong);
  transition: background-color .2s, color .2s, border-color .2s;
}
.secnav[hidden] { display: none; }
@media (max-width: 959px) { .secnav { display: none; } }
.secnav:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.secnav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.secnav.is-up svg { transform: rotate(180deg); }

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

.site-footer { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 1px solid var(--line); }

.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: auto; }
}

.footer-brand { display: grid; align-content: start; gap: 1rem; }
.footer-tag { max-width: 30ch; color: var(--text-dim); }

.footer-col { display: grid; align-content: start; gap: .65rem; }
.footer-h {
  margin: 0 0 .4rem;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 450;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-dim);
}
.footer-col a, .footer-col span { color: var(--text); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--accent-fg); }
.footer-about { max-width: 34ch; color: var(--text-dim); font-size: .92rem; line-height: 1.55; }
.footer-loc { display: inline-flex; align-items: center; gap: .45rem; margin-top: .2rem; font-weight: 550; }
.footer-loc svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.footer-col .footer-cta { margin-top: .35rem; color: var(--accent-fg); font-weight: 650; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--text-dim);
}
.footer-base p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-legal a { color: var(--text-dim); text-decoration: none; }
.footer-legal a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- 404 page ---------- */

.notfound { display: grid; justify-items: start; gap: 1rem; padding-block: clamp(5rem, 16vh, 10rem); }
.notfound-code { font-family: var(--mono); font-size: .9rem; color: var(--accent-fg); letter-spacing: .1em; }
.notfound h1 { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 650; line-height: 1.02; letter-spacing: -.03em; }
.notfound p { color: var(--text-dim); font-size: 1.15rem; }
.notfound .btn { margin-top: 1rem; }

/* ---------- Legal pages (privacy, terms) ---------- */

.legal { max-width: 46rem; margin-inline: auto; padding-block: clamp(3rem, 8vw, 6rem); }
.legal-back { display: inline-block; margin-bottom: 2rem; color: var(--text-dim); text-decoration: none; font-size: .9rem; }
.legal-back:hover { color: var(--text); }
.legal h1 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 650; line-height: 1.05; letter-spacing: -.025em; }
.legal-date { margin-top: .75rem; font-family: var(--mono); font-size: .78rem; text-transform: none; letter-spacing: normal; color: var(--text-dim); }
.legal-intro { margin-top: 1.75rem; font-size: 1.15rem; color: var(--text-dim); }
.legal h2 { margin-top: 2.75rem; font-family: var(--display); font-size: 1.4rem; font-weight: 650; letter-spacing: -.015em; }
.legal p, .legal li { line-height: 1.7; }
.legal p { margin-top: .9rem; }
.legal ul, .legal ol { margin: .9rem 0 0; padding-left: 1.25rem; }
.legal h3 { margin-top: 1.75rem; font-size: 1.1rem; font-weight: 650; }
.legal h3 + p { margin-top: .4rem; }
.legal .legal-cta { margin-top: 3rem; }
.legal-cta .btn--primary { color: var(--accent-ink); text-decoration: none; }
.legal li + li { margin-top: .45rem; }
.legal a { color: var(--text); text-decoration-color: var(--accent-fg); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.legal a.btn { text-decoration: none; }
.legal a.btn--primary { color: var(--accent-ink); }
.legal a.btn--ghost { color: var(--accent-fg); }

/* ---------- Motion (JS only) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .devices { animation: rise 1s .2s cubic-bezier(.2, .7, .2, 1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero-copy > *, .js .devices { animation: none; }
}


/* ---------- One section per screen (laptops and desktops) ----------
   Every section is exactly one screen tall with its content centred.
   If the content is taller than the window (short screen or browser zoom),
   main.js scales the .fit box down until it fits. Phones scroll normally. */
@media (min-width: 960px) {
  .hero {
    min-height: calc(100svh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(1.25rem, 4.5vh, 3.5rem);
  }
  /* Other sections take their content's height: a full screen each left too much white space */
  .section { padding-block: clamp(3rem, 7vh, 4.5rem); }
  .fit { width: 100%; margin-inline: auto; }
  /* Hero illustration sized by screen height as well as width */
  .devices { max-width: calc((100svh - 260px) * 1.9); justify-self: end; width: 100%; }
}

@media (min-width: 960px) {
  /* Ad break: one TV, centred and sized to the screen height */
  .player {
    max-width: min(100%, calc((100svh - 345px) * 16 / 9));
    margin-top: clamp(1.25rem, 3.5vh, 2.5rem);
  }
  .player-foot { margin-top: .9rem; }

  /* Live panel: a little tighter on desktop so it fits one screen */
  .live { margin-top: clamp(1.25rem, 3.5vh, 2.5rem); }
  .live-feed li { padding: clamp(.45rem, 1.2vh, .8rem) 0; }

  /* Headings take less height on short screens */
  .section-title { font-size: clamp(1.8rem, min(4.3vw, 7.5vh), 3.4rem); }
  .showcase-head { gap: .75rem 4rem; }
}


/* ---------- New look: shared pieces (see mascenes-ads/DESIGN.md) ---------- */

/* Sub-page header: Get in touch + Sign in to the Ad Studio */
.header-cta { display: flex; align-items: center; gap: .6rem; }
@media (max-width: 420px) { .header-cta .btn--ghost { display: none; } }

/* Section label above a heading: the portal's bold green, normal case */
.eyebrow {
  margin: 0 0 .75rem;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: .02em;
  color: var(--accent-fg);
}

/* Text pages: a row of calls to action */
.legal-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }


/* ---------- Type weights: all five of the portal's ----------
   The portal uses one face in five weights, each with a job. Figtree runs a
   little darker than Proxima Nova, so each weight is tuned down to match
   (Figtree's lightest is 300). Use these tokens, never raw numbers. */
:root {
  --w-light: 300;     /* portal 300: card descriptions */
  --w-regular: 350;   /* portal 400: body, nav, buttons, leads */
  --w-medium: 450;    /* portal 500: "Learn more" links, tags, quote leads */
  --w-semibold: 550;  /* portal 600: section titles, card titles */
  --w-bold: 650;      /* portal 700: the hero headline, page titles, green labels */
}
body { font-weight: var(--w-regular); }
b, strong { font-weight: var(--w-semibold); }

.hero-title, .legal h1, .eyebrow { font-weight: var(--w-bold); }
.section-title, .talk-title, .formats-title, .package-line,
.legal h2, .legal h3, .footer-h { font-weight: var(--w-semibold); }
.section-title { letter-spacing: -.01em; }

.section-lede { font-weight: var(--w-medium); }
.legal-back, .st-who, .st-n { font-weight: var(--w-medium); }

.sstep-copy .section-lede { font-weight: var(--w-medium); }
.legal-intro { font-weight: var(--w-regular); font-size: 1.25rem; }

.site-nav a:not(.btn), .nav-drop-btn { font-weight: var(--w-regular); letter-spacing: .5px; }
.btn { font-weight: var(--w-regular); }
.site-nav a:not(.btn), .nav-drop-btn { font-size: 1rem; }


/* ---------- Two tracks, one page ----------
   App ads (white sections, words on the left) and social ads (green-tint
   sections, words on the right) alternate down the page. The small tag above
   each headline says which track, who it's for, and the step. */
.step-tag { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 1rem; font-size: .9375rem; }
.st-track { font-weight: var(--w-bold); color: var(--accent-fg); }
.st-who, .st-n { padding: .15rem .55rem; border-radius: 4px; font-size: .875rem; }
.st-who { background: var(--accent-tint); color: var(--heading); }
.st-n { border: 1px solid var(--line-2); color: var(--text-dim); }
.section--alt .st-who { background: var(--surface); }
.package-pitch .section-lede { margin: .75rem 0 0; }

/* Social icons in brand colours (Simple Icons, CC0) */
.social-icons { display: flex; gap: .9rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.si { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.si svg { width: 26px; height: 26px; fill: var(--b); }
.si--facebook { --b: #0866ff; } .si--youtube { --b: #ff0000; } .si--tiktok { --b: var(--heading); } .si--instagram { --b: #e4405f; }

.sstep-grid { display: grid; gap: 1.75rem; align-items: center; }
.sstep-copy { order: -1; }
@media (min-width: 900px) {
  .sstep-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .sstep-copy { order: 0; }
}
.sstep-art { margin: 0; display: grid; place-items: center; }

/* Phone (dark in both themes, like the other screens) */
.sph { width: min(300px, 78vw); aspect-ratio: 9 / 18; padding: 10px; border-radius: 36px; background: #0b0e0c; border: 1px solid #2a302b; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.sph-screen { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 22px 16px; border-radius: 27px; background: #121713; color: #eef3ee; font-size: 13px; line-height: 1.35; overflow: hidden; }
.sx-head { margin: 0; font-weight: 550; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; }
.sx-head em, .sp-head em { font-style: normal; font-size: 11px; font-weight: 350; opacity: .6; }
.sx-sub { margin: -6px 0 0; font-size: 12px; opacity: .65; }
.sx-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--b); flex: none; }
.sx-ico svg { width: 17px; height: 17px; fill: #fff; }
.sx-ico--facebook { --b: #0866ff; } .sx-ico--youtube { --b: #ff0000; } .sx-ico--tiktok { --b: #000; box-shadow: inset 0 0 0 1px #3a403b; } .sx-ico--instagram { --b: linear-gradient(45deg, #f9a825, #e4405f 50%, #8e44ad); background: var(--b); }

/* 1. connect */
.sx-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.sx-list li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: #1b211c; }
.sx-name { flex: 1; font-weight: 450; }
.sx-tog { position: relative; width: 36px; height: 20px; border-radius: 10px; background: #3a403b; }
.sx-tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.sx-done { margin: auto 0 0; padding: 10px; border-radius: 10px; background: rgba(53,168,57,.16); color: #8fdc92; text-align: center; opacity: 0; }
.sx-done b { color: #35a839; }
.is-in .sx-tog { animation: sx-tog-bg .3s forwards; animation-delay: calc(.5s + var(--i) * .55s); }
.is-in .sx-tog::after { animation: sx-tog-knob .3s forwards; animation-delay: calc(.5s + var(--i) * .55s); }
.is-in .sx-done { animation: sx-up .45s 3s forwards; }
@keyframes sx-tog-bg { to { background: #35a839; } }
@keyframes sx-tog-knob { to { transform: translateX(16px); } }
@keyframes sx-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sx-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }

/* 2. post: a video with ad breaks */
.sx-video { position: relative; flex: 1; min-height: 0; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #3b2a5e 0%, #c0603a 70%, #e89a4f 100%); }
.sx-video--sm { flex: 0 0 150px; }
.sx-sun { position: absolute; left: 50%; top: 34%; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; background: radial-gradient(circle, #ffe7a1, #ffb84d); box-shadow: 0 0 40px #ffb84d; }
.sx-hills { position: absolute; inset: auto -10% 0; height: 42%; background: #2a1d33; border-radius: 50% 50% 0 0 / 40% 40% 0 0; }
.sx-cap { position: absolute; left: 12px; bottom: 12px; font-size: 12px; font-weight: 550; }
.sx-mark { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 4px; background: #35a839; font-size: 11px; font-weight: 550; }
.sx-ad, .sx-thumb { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 16px; background: linear-gradient(160deg, #f6c445, #e8742c); color: #1d1206; }
.sx-ad { position: absolute; inset: 0; opacity: 0; }
.sx-ad b, .sx-thumb b { font-size: 22px; font-weight: 650; line-height: 1.1; }
.sx-ad span:last-child, .sx-thumb span:last-child { font-size: 12px; font-weight: 450; }
.sx-ad-tag { position: absolute; top: 12px; left: 12px; padding: 2px 7px; border-radius: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 550; }
.sx-track { position: relative; height: 6px; border-radius: 3px; background: #2c332d; }
.sx-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: #eef3ee; }
.sx-track i { position: absolute; top: -3px; width: 6px; height: 12px; border-radius: 2px; background: #35a839; }
.sx-posted { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.sx-posted span { flex: 1; opacity: .7; }
.sx-posted .sx-ico { width: 26px; height: 26px; opacity: 0; }
.sx-posted .sx-ico svg { width: 14px; height: 14px; }
.is-in .sx-fill { animation: sx-progress 8s linear infinite; }
.is-in .sx-ad { animation: sx-adshow 8s infinite; }
.is-in .sx-posted .sx-ico { animation: sx-pop .35s forwards; animation-delay: calc(1.2s + var(--i) * .25s); }
@keyframes sx-progress { 0% { width: 0; } 38% { width: 45%; } 62% { width: 45%; } 100% { width: 100%; } }
@keyframes sx-adshow { 0%, 38% { opacity: 0; transform: translateY(100%); } 42%, 58% { opacity: 1; transform: none; } 62%, 100% { opacity: 0; transform: translateY(-8%); } }

/* 3. earn */
.sx-big { margin: 4px 0 0; font-size: 30px; font-weight: 650; letter-spacing: -.01em; }
.sx-rows { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.sx-rows li { display: flex; align-items: center; gap: 10px; }
.sx-bar { flex: 1; height: 8px; border-radius: 4px; background: #2c332d; overflow: hidden; }
.sx-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: #35a839; }
.sx-v { width: 34px; text-align: right; font-size: 12px; opacity: .75; }
.sx-btn { margin-top: auto; padding: 11px; border-radius: 6px; background: #35a839; color: #fff; text-align: center; font-size: 15px; }
.is-in .sx-bar i { animation: sx-grow 1.1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.3s + var(--i) * .18s); }
.is-in .sx-btn { animation: sx-pulse 2.4s 2s ease-in-out infinite; }
@keyframes sx-grow { to { width: var(--w); } }
@keyframes sx-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(53,168,57,.5); } 50% { box-shadow: 0 0 0 8px rgba(53,168,57,0); } }

/* 4. upload */
.sx-thumb { position: relative; height: 150px; border-radius: 12px; opacity: 0; }
.sx-label { margin: 4px 0 -4px; font-size: 12px; opacity: .65; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sx-chips span { padding: 5px 10px; border-radius: 4px; border: 1px solid #3a403b; font-size: 12px; }
.is-in .sx-thumb { animation: sx-up .5s .3s forwards; }
.is-in .sx-chips .pick { animation: sx-pick .3s forwards; animation-delay: calc(1.1s + var(--i) * .5s); }
@keyframes sx-pick { to { background: #35a839; border-color: #35a839; color: #fff; } }

/* 6. approve */
.sx-req { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: #1b211c; }
.sx-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e8742c; font-weight: 650; flex: none; }
.sx-req b { font-weight: 550; }
.sx-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sx-no, .sx-yes { padding: 10px; border-radius: 6px; text-align: center; font-size: 14px; }
.sx-no { border: 1px solid #3a403b; }
.sx-yes { position: relative; background: #35a839; color: #fff; }
.sx-yes i { font-style: normal; }
.sx-yes i + i { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; background: #2e9634; border-radius: 6px; }
.is-in .sx-yes { animation: sx-press .3s 1.4s; }
.is-in .sx-yes i + i { animation: sx-up .3s 1.6s forwards; }
@keyframes sx-press { 50% { transform: scale(.94); } }

/* Panels (follow the theme) */
.spanel { width: min(470px, 100%); display: grid; gap: 16px; padding: 28px; font-size: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(0,0,0,.35); color: var(--text); }
.sp-head { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font-weight: 550; color: var(--heading); }
.sp-big { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 40px; font-weight: 650; color: var(--heading); letter-spacing: -.01em; }
.sp-unit { font-size: 16px; font-weight: 350; color: var(--text-dim); }
.sp-pop { padding: 4px 9px; border-radius: 4px; background: var(--accent-tint); color: var(--accent-fg); font-size: 13px; font-weight: 550; opacity: 0; }
.sp-row { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.sp-row b { font-weight: 550; color: var(--heading); }
.sp-meter { position: relative; height: 10px; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--line); }
.sp-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 5px; background: var(--accent); }
.sp-limit { position: absolute; top: -6px; bottom: -6px; left: 80%; width: 2px; background: var(--heading); }
.sp-note { margin: 0; font-size: 13px; color: var(--text-dim); }
.sp-codes, .sp-views { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-codes li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg-2); font-size: 14px; opacity: 0; }
.sp-codes code { font-family: var(--sans); font-weight: 650; color: var(--accent-fg); }
.sp-codes span { flex: 1; color: var(--text-dim); }
.sp-codes b { font-weight: 650; color: var(--heading); }
.sp-views { grid-template-columns: repeat(4, 1fr); }
.sp-views li { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: 0; }
.sp-views .sx-ico { width: 24px; height: 24px; border-radius: 6px; }
.sp-views .sx-ico svg { width: 13px; height: 13px; }
.sp-views b { font-weight: 550; color: var(--heading); }
.is-in .sp-pop { animation: sx-pop .4s .5s forwards; }
.is-in .sp-fill { animation: sx-meter 1.6s 1s cubic-bezier(.2,.7,.2,1) forwards; }
.is-in .sp-codes li, .is-in .sp-views li { animation: sx-up .4s forwards; animation-delay: calc(.5s + var(--i) * .3s); }
@keyframes sx-meter { to { width: 62%; } }

/* Reduced motion: show the finished state, nothing moves */
@media (prefers-reduced-motion: reduce) {
  .sstep-art *, .sstep-art *::after { animation: none !important; }
  .sx-done, .sx-thumb, .sx-posted .sx-ico, .sp-pop, .sp-codes li, .sp-views li, .sx-yes i + i { opacity: 1; }
  .sx-tog { background: #35a839; } .sx-tog::after { transform: translateX(16px); }
  .sx-fill { width: 45%; } .sx-ad { opacity: 1; }
  .sx-bar i { width: var(--w); } .sp-fill { width: 62%; }
  .sx-chips .pick { background: #35a839; border-color: #35a839; color: #fff; }
}

/* ---------- Audience switch: creators or businesses ----------
   Under the hero: two choice cards. While scrolling the steps: a small
   floating switch at the bottom centre (no second bar under the header).
   The menu's For creators / For businesses links switch it too. */
.aud-bar { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.aud-bar-in { display: grid; justify-items: center; gap: 1.25rem; }
.aud-q { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: var(--w-semibold); color: var(--heading); text-align: center; }
.aud-cards { display: grid; gap: 1rem; width: min(100%, 46rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.aud-card {
  position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.15rem 3rem 1.15rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  color: var(--text); text-align: left; font: inherit; cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.aud-card:hover { border-color: var(--accent-fg); }
.aud-card:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; }
.aud-card[aria-pressed="true"] { border-color: var(--accent-fg); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-fg); }
.aud-ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-fg); }
.aud-card[aria-pressed="true"] .aud-ico { background: var(--accent); color: var(--accent-ink); }
.aud-ico svg, .aud-float svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aud-t { display: grid; gap: .2rem; }
.aud-t b { font-family: var(--display); font-size: 1.25rem; font-weight: var(--w-semibold); color: var(--heading); }
.aud-t small { font-size: 1rem; font-weight: var(--w-light); color: var(--text); line-height: 1.35; }
.aud-tick { position: absolute; top: 50%; right: 1rem; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.aud-tick svg { width: 14px; height: 14px; fill: none; stroke: transparent; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.aud-card[aria-pressed="true"] .aud-tick { background: var(--accent); border-color: var(--accent); }
.aud-card[aria-pressed="true"] .aud-tick svg { stroke: #fff; }

.aud-float {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 45;
  display: flex; gap: 4px; padding: 5px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.08);
  transform: translate(-50%, calc(100% + 2rem)); opacity: 0;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .2s;
}
.aud-float.is-shown { transform: translate(-50%, 0); opacity: 1; }
.aud-float button {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem;
  border: 0; border-radius: 6px; background: transparent; color: var(--nav-ink, var(--text));
  font: inherit; font-size: 1rem; font-weight: 400; letter-spacing: .5px; cursor: pointer; white-space: nowrap;
}
.aud-float button svg { width: 18px; height: 18px; }
.aud-float button:hover { color: var(--accent-fg); }
.aud-float button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.aud-float button:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; }
@media (max-width: 520px) {
  .aud-float { left: .75rem; right: .75rem; transform: translateY(calc(100% + 2rem)); }
  .aud-float.is-shown { transform: none; }
  .aud-float button { flex: 1; justify-content: center; padding: 0 .5rem; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) { .aud-float { transition: none; } }
section[data-aud] { scroll-margin-top: var(--header-h); }
@media (max-width: 520px) {
  .aud-q { display: none; }
  .aud-switch { width: 100%; }
  .aud-switch button { flex: 1; padding: 0 .5rem; }
}

section[data-aud][hidden] { display: none !important; }
/* The step tag sits above the headline, so the head is one column */
@media (min-width: 960px) { .formats-head { grid-template-columns: 1fr; gap: 0; } }
.formats-head .formats-title { font-size: clamp(1.9rem, 4.3vw, 3.4rem); }

/* ---------- Chapters: a product's steps, side by side, one at a time ----------
   The numbered cards are tabs; the step below slides in. While playing, the
   current card's green line fills over the step's time (chapters.js). */
.chapter { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.chapter--social { background: var(--bg-2); }
.gi-head { max-width: 44rem; }
.gi-head .section-lede { margin-top: .75rem; }
.gi-head .social-icons { margin-top: 1.25rem; }
.ch-bar-row { display: flex; align-items: stretch; gap: .75rem; margin-top: 2rem; }
.ch-tabs { flex: 1; display: grid; gap: .75rem; grid-auto-flow: column; grid-auto-columns: minmax(12.5rem, 1fr); overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ch-tabs::-webkit-scrollbar { display: none; }
.ch-tab {
  position: relative; display: flex; align-items: center; gap: .9rem; min-height: 64px; overflow: hidden;
  padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.ch-tab:hover { border-color: var(--accent-fg); }
.ch-tab:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; }
.ch-tab[aria-selected="true"] { border-color: var(--accent-fg); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-fg); }
.ch-tab .gi-n { font-family: var(--display); font-size: 1.75rem; font-weight: var(--w-bold); line-height: 1; color: var(--accent-fg); font-variant-numeric: tabular-nums; opacity: .55; }
.ch-tab[aria-selected="true"] .gi-n { opacity: 1; }
.ch-tab .gi-t { font-weight: var(--w-medium); line-height: 1.3; }
.ch-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.ch-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.chapter.is-playing .ch-tab[aria-selected="true"] .ch-bar i { animation: ch-fill var(--play-ms, 8s) linear forwards; }
@keyframes ch-fill { to { width: 100%; } }
.ch-pause {
  flex: none; display: grid; place-items: center; width: 48px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.ch-pause:hover { border-color: var(--accent-fg); color: var(--accent-fg); }
.ch-pause:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; }
.ch-pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ch-pause .i-play { display: none; }
.ch-pause[aria-pressed="true"] .i-pause { display: none; }
.ch-pause[aria-pressed="true"] .i-play { display: block; fill: currentColor; }
.ch-stage { margin-top: clamp(1.5rem, 3vw, 2.25rem); overflow-anchor: none; } /* switching steps must not shift the page */
.cstep { animation: ch-slide .45s cubic-bezier(.2,.7,.2,1); }
.js .cstep[hidden] { display: none !important; }
/* Without JavaScript the tabs can't switch, so every step shows, one after another */
html:not(.js) .cstep[hidden] { display: block !important; }
@keyframes ch-slide { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
.cstep.showcase { padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .cstep { animation: none; } }
@media (max-width: 700px) { .ch-tabs { grid-auto-columns: minmax(11rem, 72%); } .ch-pause { width: 44px; } }

/* ---------- Portal type style (measured from developer.safaricom.co.ke) ----------
   Big bold text is spread out (+2%), semibold titles use normal spacing, leads
   are 24px dark grey, header buttons 18px. Section titles keep a 1.2 line
   height (the portal's are single lines at 72px; ours wrap). */
:root { --lead: #2e312e; --nav-ink: #1e293b; }
:root[data-theme="dark"] { --lead: var(--text); --nav-ink: var(--text-dim); }

h1, h2, h3 { letter-spacing: normal; }

/* 700 → bold, +2%: hero 68/72, page titles 56, green labels 28 */
.hero-title { font-size: clamp(2.5rem, 4.7vw, 4.25rem); line-height: 1.06; letter-spacing: .02em; }
.legal h1 { font-size: clamp(2.2rem, 3.9vw, 3.5rem); line-height: 1.15; letter-spacing: .02em; }
.eyebrow { font-size: clamp(1.375rem, 1rem + 1.2vw, 1.75rem); line-height: 1; letter-spacing: .02em; margin-bottom: 1rem; }

/* 600 → semibold, normal spacing: section titles 50 */
.section-title, .formats-head .formats-title, .package-line, .talk-title, .gi-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 3.125rem); line-height: 1.2; letter-spacing: normal;
}
.legal h2 { letter-spacing: normal; }

/* 400 → regular: the lead line under a headline, 24/29 dark grey */
.hero-lede, .section-lede, .talk-lede, .legal-intro, .sstep-copy .section-lede, .gi-head .section-lede {
  font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); line-height: 1.2; font-weight: var(--w-regular); color: var(--lead);
}
.hero-lede { max-width: 36rem; }
.section-lede { max-width: 40rem; }

/* Menu: 16px, +0.5px, slate; header buttons 18px like the portal's Sign Up / Log In */
.site-nav a:not(.btn) { color: var(--nav-ink); }
.site-nav a:not(.btn):hover { color: var(--accent-fg); }
.site-header .btn--small { font-size: 1.125rem; }
/* The wider-spaced hero headline needs a wider copy column to stay at three lines */
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
/* 18px header buttons crowd the menu just above the phone layout */

/* ---------- /ad-studio: Ad Studio only (not the video CMS) ---------- */
.as-hero .legal-back { display: inline-block; margin-bottom: 1.5rem; }
.as-hero .hero-title { max-width: 16ch; }
.as-hero .hero-actions { margin-top: 2rem; }
.as-works { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.as-works .marquee-label { text-align: left; margin-bottom: 1rem; }
.as-logos { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.faq-list { margin-top: 1.75rem; border-top: 1px solid var(--line); max-width: 52rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-size: 1.25rem; font-weight: var(--w-semibold); color: var(--heading);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: var(--w-regular); color: var(--accent-fg); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; }
.faq-item p { margin: 0 0 1.25rem; max-width: 44rem; color: var(--lead); }
.as-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding: 1.75rem; border-radius: var(--radius); background: var(--accent-tint); }
.as-cta-t { margin: 0; font-family: var(--display); font-size: 1.375rem; font-weight: var(--w-semibold); color: var(--heading); }

/* ---------- Header, matched to the portal (measured at 1440px) ----------
   76px tall, no rule underneath, links centred between the logo and the
   buttons, 16px regular slate with +0.5px, current item green; both header
   buttons 37px tall, 18px regular, the solid one with a soft shadow. */
:root { --header-h: 76px; }
.site-header { border-bottom: 0; background: var(--bg); }
.header-inner { min-height: var(--header-h); }
@media (min-width: 960px) {
  .site-nav { flex: 1; margin: 0 0 0 2rem; gap: 0; font-size: 1rem; }
  .site-nav > a:not(.btn) { padding: 6px 8px; border-radius: 6px; }
  .site-nav > a:not(.btn) + a:not(.btn) { margin-left: 2.875rem; }
  .site-nav > a:first-child { margin-left: auto; }
  .site-nav > .btn--ghost { margin-left: auto; }
  .site-nav > .btn + .btn { margin-left: 2.5rem; }
  .header-actions { margin-left: 1rem; }
}
.site-nav a:not(.btn), .nav-drop-btn { font-weight: 400; color: var(--nav-ink); }
.site-nav a:not(.btn):hover, .site-nav a.is-current { color: var(--accent-fg); }
.site-header .btn--small {
  min-height: 37px; padding: 6px 16px; border-radius: 6px;
  font-size: 1.125rem; font-weight: 400; line-height: 1.07;
}
.site-header .btn--small.btn--ghost { border: 1px solid rgba(53, 168, 57, .5); color: var(--accent-fg); background: transparent; }
.site-header .btn--small.btn--primary { box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12); }
.theme-toggle { width: 37px; height: 37px; }
/* Just above the phone layout there's less room: tighter gaps, 16px buttons */
@media (min-width: 960px) and (max-width: 1150px) { .site-header .btn--small { font-size: 1rem; } .site-nav > a:not(.btn) + a:not(.btn) { margin-left: 1.5rem; } .site-nav > .btn + .btn { margin-left: 1rem; } }
