/* ============================================================
   iptv-stream.tv — DESIGN SYSTEM TOKENS
   Light theme · Editorial crisp · Teal accent
   ============================================================ */

/* Self-hosted fonts (Latin subset only — eliminates Google Fonts round-trip) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: optional;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---------- COLOR ---------- */
  --ink:           #0A1F2E;
  --ink-2:         #1B2F3D;
  --ink-muted:     #4B6275;
  --ink-soft:      #7C8A99;
  --paper:         #FAF7F1;
  --paper-2:       #F2EEE5;
  --surface:       #FFFFFF;
  --surface-2:     #F7F4ED;
  --line:          #E2DCCD;
  --line-strong:   #1A2A35;

  --teal:          #0E7C7F;
  --teal-hover:    #0A6568;
  --teal-bright:   #14B8A6;
  --teal-ink:      #054748;
  --teal-tint:     #E2F1F1;
  --teal-tint-2:   #C8E6E6;

  --signal-amber:  #B45309;
  --signal-rose:   #9F1239;
  --signal-green:  #166534;

  /* ---------- TYPOGRAPHY ---------- */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  clamp(2.5rem, 4.5vw + 0.5rem, 3.75rem);
  --text-5xl:  clamp(3rem, 6vw + 0.5rem, 5.25rem);
  --text-num:  clamp(3.5rem, 8vw, 6rem);

  --leading-tight: 1.05;
  --leading-snug:  1.2;
  --leading-body:  1.6;
  --leading-loose: 1.7;

  --tracking-tight:  -0.02em;
  --tracking-normal: -0.01em;
  --tracking-wide:    0.04em;
  --tracking-eyebrow: 0.18em;

  /* ---------- SPACING ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  80px;
  --space-10: 104px;
  --space-11: 128px;

  --pad-section:       var(--space-9);
  --pad-section-tight: 64px;
  --pad-section-loose: 120px;

  /* ---------- RADIUS ---------- */
  --r-0: 0;
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 14px;
  --r-4: 20px;
  --r-5: 28px;
  --r-pill: 999px;
  --r-card: 14px;
  --r-sharp: 2px;

  /* ---------- SHADOW ---------- */
  --shadow-1: 0 1px 0 rgba(10,31,46,0.04), 0 1px 2px rgba(10,31,46,0.04);
  --shadow-2: 0 2px 0 rgba(10,31,46,0.05), 0 8px 24px -8px rgba(10,31,46,0.10);
  --shadow-3: 0 4px 0 rgba(10,31,46,0.05), 0 24px 48px -16px rgba(10,31,46,0.18);
  --shadow-teal: 0 8px 24px -8px rgba(14,124,127,0.35);

  /* ---------- LAYOUT ---------- */
  --container:    1200px;
  --container-narrow: 880px;
  --gutter:       20px;
  --measure:      68ch;
  --measure-tight: 52ch;

  /* ---------- MOTION ---------- */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 140ms;
  --dur-2: 220ms;
  --dur-3: 360ms;
  --dur-4: 600ms;

  /* ---------- Z ---------- */
  --z-base: 1;
  --z-sticky: 50;
  --z-nav: 100;
  --z-modal: 200;
}

/* ============================================================
   BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-2);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin: 0;
  font-weight: 600;
}
h1 { font-size: var(--text-5xl); line-height: var(--leading-tight); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: var(--text-4xl); font-weight: 600; }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-xl); font-weight: 600; }
p  { margin: 0; max-width: var(--measure); }
small { font-size: var(--text-sm); color: var(--ink-soft); }

::selection { background: var(--teal); color: #fff; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   UTILITIES
   ============================================================ */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.measure { max-width: var(--measure); }
.measure-tight { max-width: var(--measure-tight); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.section { padding-block: var(--pad-section); position: relative; }
.section--tight { padding-block: var(--pad-section-tight); }
.section--loose { padding-block: var(--pad-section-loose); }
.section--alt  { background: var(--paper-2); }
.section--ink   { background: var(--ink); color: #E8EAEC; }
.section--ink h2, .section--ink h3 { color: #fff; }

.divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin-block: var(--space-7);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--r-2);
  z-index: var(--z-modal);
}
.skip-link:focus { left: 8px; top: 8px; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  --btn-bd: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-normal);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out),
              background var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-teal); }
.btn:active { transform: translateY(0); }

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--secondary:hover { background: var(--ink); color: #fff; box-shadow: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-2);
  --btn-bd: transparent;
  padding-inline: 8px;
}
.btn--ghost:hover { background: transparent; color: var(--teal); text-decoration: underline; box-shadow: none; }

.btn--lg { min-height: 56px; padding: 14px 28px; font-size: var(--text-md); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: var(--text-sm); }

.btn .arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: var(--space-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  min-height: 44px;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand__logo {
  width: 32px; height: 32px;
  border-radius: var(--r-sharp);
  object-fit: contain;
  flex-shrink: 0;
}
.brand__mark::after {
  content: "";
  width: 10px; height: 10px;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--teal);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--teal); }
  50%      { box-shadow: 0 0 0 7px rgba(14,124,127,0.0); }
}
.brand__name { display: inline; }
.brand__name b { font-weight: 700; }
.brand__name span { color: var(--teal); }

.nav__links {
  display: none;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
}
.nav__links a:hover { background: var(--paper-2); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--teal); }

.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__cta .btn--sm { min-height: 44px; }

.nav__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  color: var(--ink);
}
.nav__burger svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .mobile-drawer { display: none; }
}

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: 68px 0 0 0;
  background: var(--paper);
  z-index: var(--z-nav);
  transform: translateY(-100%);
  transition: transform var(--dur-3) var(--ease-out);
  overflow-y: auto;
  padding: var(--space-6) var(--gutter);
  border-top: 1px solid var(--line);
  pointer-events: none;
  visibility: hidden;
}
.mobile-drawer[data-open="true"] { transform: translateY(0); pointer-events: auto; visibility: visible; }
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mobile-drawer a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--r-2);
  color: var(--ink-2);
  font-size: var(--text-md);
  font-weight: 500;
}
.mobile-drawer a:hover { background: var(--paper-2); text-decoration: none; }
.mobile-drawer .btn { width: 100%; margin-top: var(--space-5); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding-block: var(--space-10) var(--space-9);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 85% -10%, var(--teal-tint), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, var(--paper-2), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--space-8); }

.hero__copy { max-width: 720px; }
.hero h1 {
  margin-top: var(--space-5);
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 .accent { color: var(--teal); }
.hero h1 .strike { position: relative; }
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  top: 52%;
  height: 6px;
  background: var(--teal-bright);
  opacity: 0.55;
  transform: rotate(-2deg);
}
.hero__lede {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--ink-muted);
  max-width: 60ch;
  line-height: var(--leading-loose);
}
.hero__cta { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: 12px; }
.hero__micro {
  margin-top: var(--space-5);
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: var(--text-sm); color: var(--ink-soft);
}
.hero__micro span { display: inline-flex; align-items: center; gap: 6px; }
.hero__micro svg { width: 14px; height: 14px; color: var(--teal); flex: none; }

.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--r-4);
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.hero__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,31,46,0.55) 100%);
  pointer-events: none;
}
.hero__live {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(10,31,46,0.75);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
}
.hero__live .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 0 var(--teal-bright);
  animation: pulse-dot 1.6s var(--ease-in-out) infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(20,184,166,0.7); }
  100% { box-shadow: 0 0 0 10px rgba(20,184,166,0); }
}
.hero__stat {
  position: absolute;
  right: 16px; bottom: 16px;
  display: grid; gap: 2px;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-2);
  text-align: right;
  min-width: 168px;
}
.hero__stat .label { font-size: var(--text-xs); color: var(--ink-soft); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.hero__stat .value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--teal-ink); }
.hero__stat .value small { font-size: 0.875rem; color: var(--ink-muted); font-weight: 500; margin-left: 4px; }

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: var(--space-10);
  }
  .hero { padding-block: var(--space-11) var(--space-9); }
}

/* ============================================================
   PROBLEM / TRUST
   ============================================================ */

.trust { padding-block: var(--pad-section); }
.trust__head { max-width: 760px; margin-bottom: var(--space-8); }
.trust h2 { margin-top: var(--space-4); text-wrap: balance; }
.trust__lede { margin-top: var(--space-4); color: var(--ink-muted); font-size: var(--text-lg); }

.trust__grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.trust__row {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
}
.trust__row + .trust__row { border-top: 1px solid var(--line); }
.trust__cell { padding: var(--space-6) var(--space-5); }
.trust__cell h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
.trust__cell h3 svg { width: 18px; height: 18px; color: var(--signal-rose); flex: none; }
.trust__cell--answer h3 { color: var(--teal); }
.trust__cell--answer h3 svg { color: var(--teal); }
.trust__cell p { font-size: var(--text-md); color: var(--ink-2); line-height: 1.55; }
.trust__cell p + p { margin-top: 6px; color: var(--ink-muted); }

@media (min-width: 800px) {
  .trust__row { grid-template-columns: 1fr 1fr; }
  .trust__cell + .trust__cell { border-left: 1px solid var(--line); }
}

/* ============================================================
   FEATURES
   ============================================================ */

.features { padding-block: var(--pad-section-loose); }
.features__head { max-width: 720px; margin-bottom: var(--space-8); }
.features h2 { margin-top: var(--space-4); text-wrap: balance; }
.features__lede { margin-top: var(--space-4); color: var(--ink-muted); font-size: var(--text-lg); }

.features__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.feature {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.feature__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--teal-tint);
  color: var(--teal-ink);
  border-radius: var(--r-2);
  margin-bottom: var(--space-5);
}
.feature__icon svg { width: 24px; height: 24px; stroke-width: 1.6; }
.feature h3 { font-size: var(--text-xl); margin-bottom: 8px; }
.feature p { color: var(--ink-muted); font-size: var(--text-base); line-height: 1.6; }
.feature__num {
  position: absolute; top: var(--space-5); right: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-soft);
  letter-spacing: var(--tracking-wide);
}

@media (min-width: 640px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .features__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.steps { padding-block: var(--pad-section); background: var(--paper-2); }
.steps__head { max-width: 720px; margin-bottom: var(--space-8); }
.steps h2 { margin-top: var(--space-4); }
.steps__lede { margin-top: var(--space-4); color: var(--ink-muted); font-size: var(--text-lg); }

.steps__list {
  counter-reset: step;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-5);
  background: var(--surface);
}
.step__num {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--teal-tint-2);
  line-height: 1;
  min-width: 52px;
}
.step__body h3 { font-size: var(--text-xl); margin-bottom: 4px; }
.step__body p { color: var(--ink-muted); font-size: var(--text-base); line-height: 1.5; }
.step__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  white-space: nowrap;
}
.step__time svg { width: 14px; height: 14px; }

@media (max-width: 639px) {
  .step { grid-template-columns: auto 1fr; }
  .step__time { grid-column: 2; margin-top: 4px; }
}

/* ============================================================
   DEVICES
   ============================================================ */

.devices { padding-block: var(--pad-section-loose) var(--pad-section); }
.devices__head { max-width: 720px; margin-bottom: var(--space-8); }
.devices h2 { margin-top: var(--space-4); text-wrap: balance; }
.devices__lede { margin-top: var(--space-4); color: var(--ink-muted); font-size: var(--text-lg); }

.devices__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.device {
  padding: var(--space-6) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
}
.device__icon {
  width: 64px; height: 64px;
  margin-bottom: var(--space-4);
}
.device__icon svg { width: 64px; height: 64px; stroke: var(--ink-muted); }
.device h3 { font-size: var(--text-xl); margin-bottom: 6px; }
.device p { color: var(--ink-muted); font-size: var(--text-base); line-height: 1.5; }

.devices__cta { margin-top: var(--space-7); }

@media (min-width: 640px) {
  .devices__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .devices__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   PRICING
   ============================================================ */

.pricing { padding-block: var(--pad-section-loose); }
.pricing__inner { text-align: center; }
.pricing__head { max-width: 720px; margin-inline: auto; margin-bottom: var(--space-8); }
.pricing h2 { margin-top: var(--space-4); }
.pricing__lede { margin-top: var(--space-4); color: var(--ink-muted); font-size: var(--text-lg); margin-inline: auto; }

.pricing__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 1080px;
  margin-inline: auto;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--space-7) var(--space-5);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.plan header h3 { font-size: var(--text-2xl); }
.plan header .plan__term { color: var(--ink-muted); font-size: var(--text-sm); margin-top: 4px; }
.plan__price {
  font-family: var(--font-display);
  font-size: var(--text-num);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.plan__price .currency { font-size: 0.5em; vertical-align: super; color: var(--ink-muted); margin-right: 2px; }
.plan__price .per { font-size: 0.3em; color: var(--ink-soft); font-weight: 500; margin-left: 4px; }
.plan__price .strike { font-size: 0.35em; color: var(--ink-soft); text-decoration: line-through; margin-right: 8px; }
.plan__save { font-size: var(--text-sm); color: var(--teal); font-weight: 600; margin-top: 4px; }

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.plan li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-base);
  color: var(--ink-2);
}
.plan li svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

.plan__trial {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  padding: 10px 14px;
  background: var(--teal-tint);
  border-radius: var(--r-2);
}
.plan__trial svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

.plan__cta { margin-top: auto; width: 100%; }

.plan--featured {
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
}
.plan--featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--teal);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--r-pill);
}

.pricing__fine {
  margin-top: var(--space-7);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-align: center;
  max-width: none;
}

@media (min-width: 800px) {
  .pricing__grid { grid-template-columns: repeat(3, 1fr); }
  .plan--featured { transform: scale(1.03); }
}

/* ============================================================
   CLOSE (proof + FAQ + final CTA)
   ============================================================ */

.close { padding-block: var(--pad-section-loose) var(--pad-section); }
.close__head { max-width: 720px; margin-bottom: var(--space-8); }
.close h2 { margin-top: var(--space-4); }
.close__lede { margin-top: var(--space-4); color: var(--ink-muted); font-size: var(--text-lg); }

/* testimonials */
.proof {
  display: grid;
  gap: 20px;
  margin-bottom: var(--space-9);
}
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--space-6) var(--space-5);
}
.quote__stars { display: flex; gap: 2px; margin-bottom: var(--space-4); }
.quote__stars svg { width: 16px; height: 16px; color: var(--signal-amber); }
.quote blockquote {
  margin: 0;
  font-size: var(--text-md);
  color: var(--ink-2);
  line-height: 1.6;
  font-style: italic;
}
.quote__cite {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-5);
}
.quote__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-ink);
  font-size: var(--text-xs);
  font-weight: 700;
  display: grid; place-items: center;
}
.quote__who { font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.quote__meta { font-size: var(--text-xs); color: var(--ink-soft); }

@media (min-width: 800px) {
  .proof { grid-template-columns: repeat(3, 1fr); }
}

/* FAQ */
.faq { margin-bottom: var(--space-9); }
.faq__title { margin-bottom: var(--space-6); }
.faq__title h3 { margin-top: var(--space-3); }
.faq__title p { margin-top: var(--space-3); color: var(--ink-muted); }

.faq__list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
.faq details {
  background: var(--surface);
  padding: 0;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--ink-soft);
  transition: transform var(--dur-2) var(--ease-out);
}
.faq details[open] summary::after { content: "−"; color: var(--teal); }
.faq details p {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--ink-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* final CTA */
.final-cta {
  background: var(--paper-2);
  border-radius: var(--r-4);
  padding: var(--space-9) var(--space-6);
  text-align: center;
}
.final-cta__inner { max-width: 640px; margin-inline: auto; }
.final-cta h2 { margin-top: var(--space-4); }
.final-cta p { margin-top: var(--space-4); color: var(--ink-muted); font-size: var(--text-lg); margin-inline: auto; }
.final-cta__row { margin-top: var(--space-6); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final-cta__micro {
  margin-top: var(--space-5);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  font-size: var(--text-sm); color: var(--ink-soft);
}
.final-cta__micro span { display: inline-flex; align-items: center; gap: 6px; }
.final-cta__micro svg { width: 14px; height: 14px; color: var(--teal); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: #B0BEC5;
  padding-block: var(--space-9) var(--space-7);
}
.site-footer a { color: #CFD8DC; }
.site-footer a:hover { color: #fff; }

.footer__grid {
  display: grid;
  gap: var(--space-8);
}
.footer__brand { max-width: 320px; }
.footer__brand .brand { color: #fff; margin-bottom: var(--space-4); }
.footer__brand .brand__logo { width: 28px; height: 28px; }
.footer__brand p { font-size: var(--text-sm); color: #90A4AE; line-height: 1.6; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col li a { font-size: var(--text-sm); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-xs);
  color: #78909C;
}

@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.2fr 2fr; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   MOBILE GUTTER OVERRIDE (24px minimum at ≤480px)
   ============================================================ */

@media (max-width: 480px) {
  :root { --gutter: 24px; }
}

/* Checkmark via CSS — replaces inline SVGs */
.plan__features li::before{content:"✓";color:var(--teal);font-weight:700;margin-right:8px;font-size:1.1em}
.final-cta__micro span::before{content:"✓";color:var(--teal);font-weight:700;margin-right:4px}

/* ============================================================
   PRICING TABS + GRID (rendered by js/pricing.js)
   ============================================================ */

.pricing-tabs,
.pricing__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-7);
}

.conn-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
}
.conn-tab:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.conn-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.pricing-grid,
.pricing__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 1080px;
  margin-inline: auto;
  min-height: 420px; /* reserve space for JS-rendered cards — prevents CLS */
}
@media (min-width: 640px) {
  .pricing-grid,
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .pricing-grid,
  .pricing__grid { grid-template-columns: repeat(4, 1fr); }
}

.plan__duration {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: var(--space-2);
}

.plan__per {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}

.plan--popular {
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
  position: relative;
}
.plan--popular::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--teal);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* ============================================================
   PERFORMANCE: skip rendering of off-screen sections
   ============================================================ */
.section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
