/* Landing page styles. Tokens first (light, then dark), then base, then sections. */

/* ===================== tokens ===================== */
:root {
  --bg: #f6f7fb;
  --bg-tint: #eceefb;
  --surface: #ffffff;
  --surface-2: #f3f4f9;
  --border: #dfe2ec;
  --border-strong: #c9cddc;
  --border-input: #868ca3;

  --text: #161a2d;
  --text-2: #3a4058;
  --muted: #545a72;

  --primary: #4338ca;
  --primary-hover: #3730a3;
  --primary-ink: #ffffff;
  --accent: #4338ca;
  --accent-soft: #eef0ff;
  --accent-soft-ink: #3730a3;
  --accent-line: #c7cbfb;
  --grad-a: #4f46e5;
  --grad-b: #7c3aed;
  --brand-grad: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 100%);
  --grad-text: linear-gradient(120deg, #4338ca 0%, #6d28d9 100%);
  --focus: #4338ca;

  --good: #15803d;
  --good-soft: #e5f5eb;
  --good-ink: #14532d;
  --warn: #b45309;
  --warn-soft: #fff3db;
  --warn-ink: #7c3a00;
  --bad: #b91c1c;
  --bad-soft: #fdecec;
  --bad-ink: #8f1414;
  --neutral-soft: #eceef4;
  --neutral-ink: #474d64;

  --chart-bar: #c7cbfb;
  --chart-you: #4338ca;

  --cta-bg: linear-gradient(135deg, #3730a3 0%, #5b21b6 100%);
  --cta-ink: #ffffff;
  --cta-muted: #e0e2ff;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", SFMono-Regular, Consolas, Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --sh-1: 0 1px 2px rgba(22, 26, 45, .06);
  --sh-2: 0 1px 2px rgba(22, 26, 45, .05), 0 8px 24px rgba(22, 26, 45, .07);
  --sh-3: 0 4px 12px rgba(22, 26, 45, .06), 0 24px 60px rgba(67, 56, 202, .14);

  --gutter: 16px;
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f17;
    --bg-tint: #151833;
    --surface: #161925;
    --surface-2: #1d2131;
    --border: #2b3045;
    --border-strong: #3a4060;
    --border-input: #6a7194;

    --text: #eceef7;
    --text-2: #c9cde0;
    --muted: #a4aac2;

    --primary: #8b93ff;
    --primary-hover: #a3aaff;
    --primary-ink: #0d0f17;
    --accent: #aab2ff;
    --accent-soft: #23264a;
    --accent-soft-ink: #cdd2ff;
    --accent-line: #3d4380;
    --grad-a: #6366f1;
    --grad-b: #8b5cf6;
    --grad-text: linear-gradient(120deg, #aab2ff 0%, #c4b5fd 100%);
    --focus: #aab2ff;

    --good: #4ade80;
    --good-soft: #10291b;
    --good-ink: #9ff0bd;
    --warn: #fbbf24;
    --warn-soft: #33270c;
    --warn-ink: #fcd77a;
    --bad: #f87171;
    --bad-soft: #3a1518;
    --bad-ink: #fcaeae;
    --neutral-soft: #262b3e;
    --neutral-ink: #c3c8dc;

    --chart-bar: #3d4380;
    --chart-you: #aab2ff;

    --cta-bg: linear-gradient(135deg, #2a2670 0%, #43207a 100%);
    --cta-ink: #ffffff;
    --cta-muted: #d9dbff;

    --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
    --sh-2: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .3);
    --sh-3: 0 4px 12px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--text);
}
h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 4rem); letter-spacing: -.03em; font-weight: 750; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); letter-spacing: -.025em; font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

#main:focus { outline: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

.section { padding-block: clamp(64px, 5vw + 40px, 112px); }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); font-size: 1.0625rem; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.fine { font-size: .875rem; color: var(--muted); }

/* ===================== buttons and chips ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 18px rgba(67, 56, 202, .25); }
.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-light { background: #ffffff; color: #3730a3; }
.btn-light:hover { background: #eef0ff; }
.btn-light:focus-visible { outline-color: #ffffff; }

.btn-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg .btn-icon { fill: currentColor; stroke-width: 1.5; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip-good { background: var(--good-soft); color: var(--good-ink); }
.chip-warn { background: var(--warn-soft); color: var(--warn-ink); }
.chip-accent { background: var(--accent-soft); color: var(--accent-soft-ink); }
.chip-neutral { background: var(--neutral-soft); color: var(--neutral-ink); }

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 650;
  vertical-align: 1px;
}
.tag-soon { background: var(--warn-soft); color: var(--warn-ink); }

.spinner {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -.02em;
}
.brand-mark { width: 30px; height: 30px; flex: none; }

.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 550;
  font-size: .9375rem;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 899px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-2);
  }
  .js .site-nav.is-open { display: flex; }
  .js .nav-links { flex-direction: column; }
  .js .nav-links a { display: block; padding: 12px; }
  .js .nav-actions { justify-content: space-between; }
  .header-inner { position: relative; }

  /* Without JS: links wrap onto their own row. */
  .no-js .header-inner { flex-wrap: wrap; padding-block: 8px; }
  .no-js .site-nav { flex-wrap: wrap; gap: 8px; margin-left: 0; width: 100%; }
  .no-js .nav-links { flex-wrap: wrap; }
}

/* ===================== hero ===================== */
.hero {
  position: relative;
  padding-block: clamp(48px, 6vw + 24px, 104px) clamp(56px, 6vw + 24px, 112px);
  background:
    radial-gradient(60% 55% at 85% 20%, color-mix(in srgb, var(--grad-b) 16%, transparent) 0%, transparent 70%),
    radial-gradient(50% 50% at 10% 0%, color-mix(in srgb, var(--grad-a) 14%, transparent) 0%, transparent 70%);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (forced-colors: active) { .grad-text { color: CanvasText; background: none; } }

.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--text-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.reassure {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .9375rem; color: var(--muted); margin: 0;
}
.reassure svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--good); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.mock-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-title { margin-left: 10px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.mock-list { list-style: none; padding: 8px; }
.mock-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
}
.mock-list li + li { border-top: 1px solid var(--border); }
.mock-role { font-weight: 600; font-size: .9375rem; min-width: 0; }
.mock-role small { display: block; font-weight: 500; font-size: .8125rem; color: var(--muted); }
.mock-ask {
  margin: 0 16px 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--warn-soft);
  color: var(--warn-ink);
  font-size: .875rem;
}
.mock-ask p { margin: 0; }
.mock-ask-a { margin-top: 4px !important; opacity: .95; }

/* ===================== speed chart ===================== */
.speed { background: var(--surface); border-block: 1px solid var(--border); }
.speed-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .speed-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.speed-grid > div p:not(.eyebrow) { color: var(--text-2); font-size: 1.0625rem; max-width: 34em; }

.chart-card {
  margin: 0;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.pile-chart { display: block; width: 100%; height: auto; }
.pile-chart .axis { stroke: var(--border-strong); stroke-width: 1.5; }
.pile-chart .bar { fill: var(--chart-bar); }
.pile-chart .bar-you { fill: var(--chart-you); }
.pile-chart text { font-family: var(--font); fill: var(--muted); font-size: 13px; text-anchor: middle; }
.pile-chart .axis-title { text-anchor: start; font-weight: 600; fill: var(--text-2); font-size: 14px; }
.pile-chart .you-marker line { stroke: var(--chart-you); stroke-width: 2; stroke-dasharray: 4 4; }
.pile-chart .you-marker circle { fill: var(--chart-you); }
.pile-chart .you-marker rect { fill: var(--chart-you); }
.pile-chart .you-marker text { fill: var(--primary-ink); font-weight: 700; font-size: 14px; }
@media (max-width: 599px) {
  .pile-chart .day-labels text { font-size: 17px; }
  .pile-chart .axis-title { font-size: 19px; }
}
.chart-card figcaption { margin-top: 12px; font-size: .875rem; color: var(--muted); }

/* ===================== demo ===================== */
.demo-shell { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .demo-shell { grid-template-columns: 1fr 1fr; gap: 40px; } }

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--sh-2);
}
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.job-role { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; margin: 0; }
.job-host { font-family: var(--mono); font-size: .8125rem; color: var(--muted); margin: 2px 0 0; overflow-wrap: anywhere; }

.track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  list-style: none;
  margin-bottom: 20px;
}
.track li {
  position: relative;
  padding-top: 14px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.track li::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  transition: background-color .3s ease;
}
.track li.is-done::before { background: var(--accent); }
.track li.is-current { color: var(--text); }
.track li.is-current::before { background: var(--accent); }
.track li.is-current[data-stage="2"]::before { background: var(--warn); }
.track li.is-current[data-stage="3"]::before { background: var(--good); }

.fields { list-style: none; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.fields li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  font-size: .875rem;
  transition: background-color .3s ease;
}
.fields li + li { border-top: 1px solid var(--border); }
.fields li > span:first-child { color: var(--text-2); }
.field-val { color: var(--muted); text-align: right; }
.fields li.is-filled .field-val { color: var(--good-ink); font-weight: 600; }
.fields li.is-asking { background: var(--warn-soft); }
.fields li.is-asking .field-val { color: var(--warn-ink); font-weight: 600; }

.job-log {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--text-2);
  min-height: 3.2em;
}

.stage-notes { list-style: none; display: grid; gap: 12px; }
.stage-notes li {
  padding: 16px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.stage-notes h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 1rem; }
.stage-notes p { margin: 0; color: var(--muted); font-size: .9375rem; }
.step-num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
  font-size: .8125rem;
  font-weight: 700;
}
.is-demo .stage-notes li.is-current { opacity: 1; border-color: var(--accent); box-shadow: var(--sh-2); }
.is-demo .stage-notes li.is-current .step-num { background: var(--primary); color: var(--primary-ink); }

.demo-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.demo-controls[hidden] { display: none; }
.demo-controls [data-demo="play"] { min-width: 88px; }

/* ===================== steps ===================== */
.steps { list-style: none; display: grid; gap: 20px; counter-reset: none; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.step p { color: var(--muted); margin: 0; }
.step-badge {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); /* fixed stops: white text stays above 4.5:1 in both themes */
  color: #ffffff;
  font-weight: 700;
  font-size: 1.0625rem;
}

/* ===================== principles ===================== */
.principles { background: var(--bg-tint); }
.principle-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .principle-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .principle-grid { grid-template-columns: repeat(4, 1fr); } }
.principle {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.principle p { margin: 0; color: var(--muted); font-size: .9375rem; }
.p-icon, .f-icon {
  width: 40px; height: 40px;
  padding: 9px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===================== features ===================== */
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.feature {
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--accent-line); }
.feature h3 { font-size: 1.0625rem; }
.feature p { margin: 0; color: var(--muted); font-size: .9375rem; }
.subhead { margin: 48px 0 16px; font-size: 1.25rem; }
.feature-planned { background: transparent; border-style: dashed; border-color: var(--border-strong); }
.feature-planned .tag { margin-bottom: 10px; }

/* ===================== apps ===================== */
.apps { background: var(--surface); border-block: 1px solid var(--border); overflow: hidden; }
.apps-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .apps-grid { grid-template-columns: 1.2fr .8fr; } }
.apps-grid > div > p:not(.eyebrow):not(.fine) { color: var(--text-2); font-size: 1.0625rem; max-width: 34em; }
.soon-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.soon-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 650;
  line-height: 1.25;
}
.soon-btn small { display: block; font-weight: 500; font-size: .8125rem; opacity: .85; }
.soon-btn svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.soon-btn:hover { background: var(--text-2); }

.phone {
  justify-self: center;
  width: min(280px, 100%);
  padding: 12px;
  border-radius: 40px;
  background: #161a2d;
  box-shadow: var(--sh-3);
}
.phone-screen {
  border-radius: 30px;
  background: var(--bg);
  padding: 18px 16px 28px;
  min-height: 420px;
}
.phone-time { text-align: center; font-size: .8125rem; font-weight: 650; margin: 0 0 18px; }
.phone-h { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; margin: 0 0 14px; }
.phone-card {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.phone-q { font-weight: 600; font-size: .9375rem; margin: 0 0 4px; }
.phone-meta { font-size: .8125rem; color: var(--muted); margin: 0; }
.phone-btns { display: flex; gap: 8px; margin-top: 12px; }
.phone-btns span {
  flex: 1; text-align: center;
  padding: 8px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-soft-ink);
  font-weight: 650; font-size: .875rem;
}
.phone-btns span:first-child { background: var(--primary); color: var(--primary-ink); }
.phone-card-dim { background: var(--warn-soft); border-color: transparent; }
.phone-card-dim .phone-q, .phone-card-dim .phone-meta { color: var(--warn-ink); }

/* ===================== compare ===================== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.table-hint { display: none; margin: 0 0 8px; font-size: .875rem; color: var(--muted); }
@media (max-width: 699px) { .table-hint { display: block; } }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9375rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: var(--font-display); font-size: 1rem; background: var(--surface-2); }
.compare tbody th { font-weight: 600; color: var(--text); width: 30%; }
.compare td { color: var(--muted); }
.compare .col-us { background: var(--accent-soft); color: var(--text-2); }
.compare thead .col-us { color: var(--accent-soft-ink); background: var(--accent-soft); }
.yes, .no, .part, .soon, .na { font-weight: 650; }
.yes { color: var(--good-ink); }
.yes::before { content: "\2713\00a0"; }
.no { color: var(--bad-ink); }
.no::before { content: "\2715\00a0"; }
.part { color: var(--warn-ink); }
.soon { color: var(--warn-ink); }
.na { color: var(--muted); }

/* ===================== pricing ===================== */
.pricing { background: var(--bg-tint); }
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 32px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
}
.billing-toggle[hidden] { display: none; }
.billing-toggle label {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
  color: var(--text-2);
}
.billing-toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.billing-toggle label:has(input:checked) { background: var(--primary); color: var(--primary-ink); }
.billing-toggle label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.billing-toggle .save {
  font-size: .75rem; padding: 1px 8px; border-radius: 999px;
  background: var(--good-soft); color: var(--good-ink);
}

.plan-grid { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-grid.plan-grid-single { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
}
.plan-status {
  margin: 0;
  padding: 12px;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  text-align: center;
  font-weight: 600;
  font-size: .9375rem;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan-for { color: var(--muted); font-size: .9375rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.amount { font-family: var(--font-display); font-size: 2.75rem; font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.per { color: var(--muted); font-size: .9375rem; }
.plan-list { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; flex: 1; }
.plan-list li { position: relative; padding-left: 26px; font-size: .9375rem; color: var(--text-2); }
.plan-list li::before {
  content: "";
  position: absolute; left: 2px; top: .45em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ===================== FAQ ===================== */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.faq details[open] { border-color: var(--accent-line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 20px;
  font-weight: 650;
  font-size: 1.0625rem;
  border-radius: var(--r-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 22px; top: 50%;
  width: 10px; height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent); }
.faq-body { padding: 0 20px 18px; }
.faq-body p { margin: 0; color: var(--text-2); }

/* ===================== final CTA ===================== */
.final-cta { padding-top: 0; }
.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--cta-bg);
  color: var(--cta-ink);
  text-align: center;
}
.cta-card h2 { color: var(--cta-ink); }
.cta-card > p { color: var(--cta-muted); font-size: 1.0625rem; max-width: 34em; margin-inline: auto; }
.signup-form {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 520px;
  margin: 28px auto 0;
}
.signup-form input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  font: inherit;
}
.signup-form input::placeholder { color: #d9dbff; opacity: 1; }
.signup-form input:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
.signup-form .btn { min-height: 48px; }
.signup-note { min-height: 1.6em; margin: 16px 0 0; font-weight: 600; color: #ffffff; }

/* ===================== footer ===================== */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 760px) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: .9375rem; max-width: 22em; }
.footer-col h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; font-family: var(--font); }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding: 4px 0; color: var(--text-2); text-decoration: none; font-size: .9375rem; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-base {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid; gap: 8px;
  font-size: .8125rem; color: var(--muted);
}
.footer-base p { margin: 0; }

/* ===================== toast (placeholder links) ===================== */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: .9375rem;
  box-shadow: var(--sh-3);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ===================== motion ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .spinner { animation: none; border-right-color: currentColor; }
}
