/* OPSIS marketing site.
 *
 * Brand tokens come from packages/shared/src/tokens.ts. One accent (indigo)
 * carries every primary action; crimson is reserved for the wordmark dot and
 * the hero accent so the page reads as one system. Spacing is an 8px scale,
 * radii are 12/16, and every text container is allowed to wrap anywhere so a
 * long LGA name can never push the page wider than the screen. */

:root {
  --indigo: #241c84;
  --indigo-hover: #1c166a;
  --indigo-mid: #4a41a6;
  --indigo-tint: #eae9f6;
  --crimson: #c4122f;
  --magenta: #e62463;
  --green: #1b9e5a;
  --green-deep: #0f6b3c;
  --tint-green: #e7f6ee;
  --tint-green-border: #bfe7d2;

  --bg: #f8f7fa;
  --bg-alt: #f0eff3;
  --surface: #ffffff;
  --surface-2: #f3f2f7;
  --ink: #14131a;
  --ink-2: #4a4855;
  --ink-3: #726f7d;
  --border: #e2e0e8;
  --border-strong: #c4c1cd;
  --brand: var(--indigo);
  --brand-ink: var(--indigo);
  --focus: #4a41a6;
  --shadow: 0 1px 2px rgba(20, 19, 26, 0.05);
  --shadow-tv: 0 20px 40px rgba(36, 28, 132, 0.25);
  --menu-shadow: 0 16px 32px rgba(20, 19, 26, 0.12);

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --r: 12px;
  --r-lg: 16px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0932;
    --bg-alt: #0a0726;
    --surface: #17123f;
    --surface-2: #1f1a4d;
    --ink: #f4f3f8;
    --ink-2: #c9c6e0;
    --ink-3: #9e99d6;
    --border: #2b2560;
    --border-strong: #3d367c;
    --brand: #6b62d6;
    --brand-ink: #c3bef5;
    --indigo-tint: #231d5e;
    --focus: #cbc8ea;
    --tint-green: #0f2e20;
    --tint-green-border: #1b5c3a;
    --green: #4cc98a;
    --green-deep: #8be0b6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-tv: 0 20px 40px rgba(0, 0, 0, 0.5);
    --menu-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.625rem, 3.4vw, 2.375rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0;
}

a {
  color: var(--brand-ink);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  display: block;
  flex: none;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.money {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: min(100% - var(--s4), var(--max));
  margin-inline: auto;
}

.container.narrow {
  max-width: 720px;
}

.skip-link {
  position: absolute;
  left: var(--s2);
  top: -4rem;
  z-index: 100;
  padding: 10px var(--s2);
  background: var(--indigo);
  color: #fff;
  border-radius: var(--r);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--s2);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font: 700 0.95rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-lg {
  min-height: 56px;
  padding: 12px 24px;
  font-size: 1.05rem;
}

.btn-lg svg {
  width: 24px;
  height: 24px;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
}

.btn-primary:hover {
  background: var(--indigo-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--brand-ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--indigo-tint);
  border-color: var(--brand);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: var(--brand);
  }
  .btn-primary:hover {
    background: #7f77e0;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 68px;
  flex-wrap: nowrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--brand-ink);
  flex: none;
  /* The word OPSIS beside an uploaded mark is text, and a link would underline it. */
  text-decoration: none;
}

.logo .wordmark {
  height: 24px;
  width: auto;
}

/* The logo uploaded in the admin console, swapped in by script.js once it has
 * loaded. Sized by height, the width following the image's own shape: a
 * little taller than the built-in wordmark, because uploaded artwork usually
 * carries some space around it. An unusually wide logo shrinks inside the
 * box rather than push the menu button off a phone. */
.logo .brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}

/* No full logo for this background: the mark beside the word, sized to sit
 * where the wordmark did. */
.logo .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo .brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo .brand-word {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* When the light and dark backgrounds get different logos, script.js draws
 * both and the visitor's colour scheme picks one, so switching the scheme
 * never needs the script. */
.logo .logo-variant {
  display: inline-flex;
  align-items: center;
}

.logo .logo-variant[data-on="dark"] {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .logo .logo-variant[data-on="light"] {
    display: none;
  }
  .logo .logo-variant[data-on="dark"] {
    display: inline-flex;
  }
}

.nav-links {
  display: flex;
  gap: 2px;
  margin-left: var(--s1);
  margin-right: auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r);
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--indigo-tint);
  color: var(--brand-ink);
}

.nav-cta {
  display: flex;
  gap: var(--s1);
  margin-left: auto;
  flex: none;
}

.nav-cta .btn {
  min-height: 44px;
  padding: 8px 16px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle .ico-close,
.nav-toggle[aria-expanded="true"] .ico-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .ico-close {
  display: block;
}

.nav-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--menu-shadow);
}

.nav-menu .container {
  display: grid;
  gap: 4px;
  padding: var(--s2) 0 var(--s3);
}

.nav-menu > .container > a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--r);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.nav-menu > .container > a:not(.btn):hover {
  background: var(--indigo-tint);
}

.nav-menu .btn {
  margin-top: 4px;
}

.nav-menu .btn-primary {
  margin-top: var(--s2);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(var(--s6), 8vw, 96px);
  scroll-margin-top: 68px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--s5);
}

.section-head p {
  margin-top: 12px;
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(var(--s5), 7vw, 88px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(var(--s4), 5vw, var(--s8));
}

.hero .accent {
  color: var(--crimson);
}

@media (prefers-color-scheme: dark) {
  .hero .accent {
    color: #ff5d7c;
  }
}

.lede {
  margin-top: var(--s2);
  max-width: 32rem;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--ink-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--s4);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
}

.hero-stats li {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hero-stats strong {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-ink);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* A TV on a wall, built from CSS. */

.hero-art {
  position: relative;
  padding-bottom: var(--s6);
  min-width: 0;
}

.tv {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background: #0d0932;
  border: 6px solid #26242e;
  box-shadow: var(--shadow-tv);
  overflow: hidden;
  color: #fff;
}

.tv-stand {
  width: 30%;
  height: 8px;
  margin: 10px auto 0;
  border-radius: 0 0 6px 6px;
  background: #26242e;
}

.tv-stand::before {
  content: "";
  display: block;
  width: 14%;
  height: 12px;
  margin: -12px auto 0;
  background: #26242e;
}

.advert {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(12px, 2.4vw, 24px);
  background:
    radial-gradient(ellipse at 15% 15%, rgba(230, 36, 99, 0.75), transparent 55%),
    linear-gradient(135deg, #c4122f 0%, #e62463 45%, #241c84 100%);
}

.advert-top {
  display: flex;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-paid {
  background: rgba(255, 255, 255, 0.92);
  color: #241c84;
}

.badge-live {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #83d5c6;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.advert-title {
  font-size: clamp(1.1rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.advert-sub {
  margin-top: 4px;
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  opacity: 0.9;
}

.advert-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.62rem, 1.4vw, 0.78rem);
  font-family: var(--mono);
}

.progress {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 999px;
  animation: progress 30s linear infinite;
}

@keyframes progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.float-card {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-tv);
  font-size: 0.9rem;
  font-weight: 700;
  max-width: 100%;
}

.float-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--tint-green);
  color: var(--green);
}

.float-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.25;
}

.float-card b {
  color: var(--green-deep);
}

/* ---------- Two ways ---------- */

.ways-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}

.way-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--s4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  scroll-margin-top: 80px;
}

.way-card h3 {
  font-size: 1.5rem;
}

.way-card > p {
  color: var(--ink-2);
}

.way-icon,
.app-icon,
.tile-icon,
.step-icon {
  display: grid;
  place-items: center;
  border-radius: var(--r);
}

.way-icon,
.app-icon {
  width: 56px;
  height: 56px;
  color: #fff;
}

.way-icon svg,
.app-icon svg {
  width: 28px;
  height: 28px;
}

.way-icon.owner,
.app-icon.owner {
  background: var(--indigo);
}

.way-icon.advertiser,
.app-icon.advertiser {
  background: linear-gradient(135deg, var(--crimson), var(--magenta));
}

.ticks {
  display: grid;
  gap: 10px;
  margin-block: 4px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  min-width: 0;
}

.ticks svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--green);
  stroke-width: 2.25;
}

.way-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- How it works ---------- */

.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: var(--s4);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 100%;
}

.seg-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font: 700 0.9rem var(--font);
  cursor: pointer;
}

.seg-btn:hover {
  color: var(--brand-ink);
}

.seg-btn[aria-selected="true"] {
  background: var(--indigo);
  color: #fff;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s2);
}

.step {
  position: relative;
  display: grid;
  gap: 12px;
  padding: var(--s3);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 0;
}

.step-num {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--indigo-tint);
  color: var(--brand-ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: var(--indigo-tint);
  color: var(--brand-ink);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step h3 {
  font-size: 1.05rem;
  padding-right: 40px;
}

.step p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ---------- Verified ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s2);
}

.tile {
  display: grid;
  gap: 12px;
  padding: var(--s3);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 0;
}

.tile-icon {
  width: 48px;
  height: 48px;
  background: var(--tint-green);
  color: var(--green);
}

.tile-icon svg {
  width: 24px;
  height: 24px;
}

.tile h3 {
  font-size: 1.05rem;
}

.tile p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
  align-items: stretch;
}

.price-card {
  display: grid;
  gap: var(--s2);
  align-content: start;
  padding: var(--s4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 0;
}

.price-card.owner {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.price-who {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.price-num {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.price-num .money {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand-ink);
}

.price-num small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
}

.price-card .ticks li {
  font-size: 0.95rem;
}

/* The slot table: what each advert length costs, and what the owner keeps. */
.slot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.slot-table th,
.slot-table td {
  padding: 6px 0;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.slot-table th:first-child,
.slot-table td:first-child {
  text-align: left;
  font-weight: 700;
}

.slot-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.slot-table td.money {
  font-family: var(--mono);
  font-weight: 700;
}

.slot-table tbody tr:last-child td {
  border-bottom: 0;
}

.calc {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: var(--s4);
  border-radius: var(--r-lg);
  background: var(--indigo);
  color: #fff;
  min-width: 0;
}

.calc label {
  font-weight: 700;
  font-size: 1.05rem;
}

.calc-input {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-radius: var(--r);
  background: #fff;
  color: #14131a;
  overflow: hidden;
}

.calc-input span {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 14px;
  font-family: var(--mono);
  font-weight: 700;
  border-right: 1px solid #e2e0e8;
  color: #55525f;
}

.calc-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 700 1.15rem var(--mono);
  padding: 0 12px;
  min-height: 50px;
}

.calc-input input:focus {
  outline: none;
}

.calc-input:focus-within {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.calc-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.calc-slot {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 700 0.85rem var(--mono);
  cursor: pointer;
}

.calc-slot[aria-checked="true"] {
  background: #fff;
  color: var(--indigo);
  border-color: #fff;
}

.calc-slot:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.calc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.calc-check input {
  width: 18px;
  height: 18px;
  accent-color: #fff;
}

.calc-out {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.calc-stat {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.12);
  min-width: 0;
}

.calc-stat strong {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.calc-stat span {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ---------- Coverage ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 16px;
  border-radius: var(--r);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-weight: 700;
  max-width: 100%;
}

.chip em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--indigo-tint);
  color: var(--brand-ink);
}

.chip.live {
  border-color: var(--tint-green-border);
  background: var(--tint-green);
}

.chip.live em {
  background: var(--green);
  color: #fff;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.coverage-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: var(--s3);
  max-width: 640px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.coverage-note svg {
  width: 22px;
  height: 22px;
  color: var(--green);
  margin-top: 1px;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 14px var(--s2);
  min-height: 52px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary svg {
  width: 22px;
  height: 22px;
  color: var(--ink-3);
  transition: transform 0.15s ease;
}

details[open] summary svg {
  transform: rotate(180deg);
}

details p {
  padding: 0 var(--s2) var(--s2);
  color: var(--ink-2);
}

/* ---------- Apps ---------- */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--s4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  scroll-margin-top: 80px;
  min-width: 0;
}

.app-card h3 {
  font-size: 1.375rem;
}

.app-card > p {
  color: var(--ink-2);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px 0 12px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  line-height: 1.1;
}

.store-btn:hover {
  filter: brightness(1.2);
}

.store-btn svg {
  width: 24px;
  height: 24px;
}

.store-btn small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.8;
}

.store-btn b {
  font-size: 0.95rem;
  font-weight: 700;
}

.store-note {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.app-card .btn {
  align-self: flex-start;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: var(--s5) 0 var(--s4);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.9rem;
  color: var(--ink-2);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.footer-links a,
.footer-brand a:not(.logo) {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
}

.footer-links a:hover,
.footer-brand a:not(.logo):hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

/* The support contacts sit inside the links row and wrap with it. */
.footer-support {
  display: contents;
}

.footer-links .support-hours {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: var(--ink-3);
}

.footer-copy {
  flex-basis: 100%;
  padding-top: var(--s2);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .nav-links a {
    padding: 0 10px;
    font-size: 0.9rem;
  }
  .nav-cta .btn {
    padding: 8px 12px;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
  .stepper,
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calc {
    grid-column: 1 / -1;
  }
}

/* Header never wraps. 960px and up: logo, links, two buttons. 760–959px: the
 * links move into a menu, the buttons stay. Below 760px: everything but the
 * logo is in the menu. */
@media (max-width: 959px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: 0;
  }
  .nav-menu:not([hidden]) {
    display: block;
  }
  .nav-menu .btn {
    display: none;
  }
}

@media (max-width: 759px) {
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    margin-left: auto;
  }
  .nav-menu .btn {
    display: inline-flex;
  }
}

@media (min-width: 960px) {
  .nav-menu {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .hero-cta .btn {
    flex: 1 1 100%;
  }
  .ways-grid,
  .price-grid,
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .way-card,
  .app-card,
  .price-card,
  .calc {
    padding: var(--s3);
  }
  .way-card .btn,
  .app-card .btn {
    align-self: stretch;
  }
  .store-btn {
    flex: 1 1 100%;
  }
  .float-card {
    position: static;
    margin-top: var(--s2);
    width: 100%;
    justify-content: center;
  }
  .hero-art {
    padding-bottom: 0;
  }
  .section-head {
    margin-bottom: var(--s4);
  }
}

@media (max-width: 480px) {
  .stepper,
  .tiles {
    grid-template-columns: 1fr;
  }
  .step {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: var(--s2);
    row-gap: 4px;
    align-items: start;
  }
  .step-icon {
    grid-row: 1 / 3;
  }
  .step h3 {
    padding-right: 0;
  }
  .step-num {
    position: static;
    grid-column: 3;
    grid-row: 1;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .step {
    grid-template-columns: 48px minmax(0, 1fr) 28px;
  }
  .hero-stats {
    display: grid;
    gap: 10px;
  }
  .hero-stats li {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .hero-stats strong {
    font-size: 1.3rem;
    min-width: 3ch;
  }
  .hero-stats span {
    font-size: 0.95rem;
  }
  .calc-out {
    grid-template-columns: 1fr;
  }
  .seg {
    display: flex;
  }
  .seg-btn {
    flex: 1;
    padding: 0 8px;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - var(--s3));
  }
  .chip {
    padding: 0 12px;
  }
}

/* One honest line under a tile grid, e.g. how audience figures are made. */
.section-note {
  margin: 20px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Info tips ---------- */

/* The small "i" beside anything a visitor might not understand. Tap or click
   it, or focus it and press Enter, and one or two plain sentences appear;
   tap anywhere else or press Escape and they go. script.js does the opening;
   the words are in the button's title, so without JavaScript a mouse still
   shows them. The bubble is fixed to the window, so opening it never moves
   the page. */
span.info-tip {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-inline-start: 6px;
  line-height: 1;
}

button.info-tip-btn {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-ink);
  font: 800 12px/18px var(--font);
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  cursor: pointer;
}

/* A bigger target than it looks, without moving anything around it. The
   element selectors outrank rules such as `.calc-stat span` around them. */
.info-tip-btn::after {
  content: "";
  position: absolute;
  inset: -12px;
}

.info-tip-btn:hover,
.info-tip-btn[aria-expanded="true"] {
  border-color: var(--brand);
  background: var(--indigo-tint);
}

span.info-tip-bubble:empty {
  display: none;
}

span.info-tip-bubble {
  position: fixed;
  z-index: 120;
  display: block;
  width: max-content;
  max-width: min(300px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--menu-shadow);
  color: var(--ink);
  font: 500 0.875rem/1.45 var(--font);
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  opacity: 1;
}
