:root {
  /* Dark palette (D-1 — locked 2026-07-31) */
  --bg: #0B0B14;
  --surface: #12121F;
  --border: #26263A;
  --text: #f4f4f5;
  --muted: #9d9da6;
  --accent: #8B5CF6;
  --accent-text: #F4F4F5;
  --error: #f87171;

  /* Full token set */
  --primary: #8B5CF6;
  --primary-deep: #7C3AED;
  --blue: #3B82F6;
  --accent-cyan: #22D3EE;
  --success: #34D399;

  /* mkt-3: waveform/live element accent — cyan for live/voice elements only. */
  --voice-accent: #22D3EE;

  /* Derived interaction tokens — referenced outside :root so no hex leaks. */
  --border-focus: #52525b;
  --cta-border: #6b6b74;

  /* Landing type scale (mkt-2): five fluid steps, each ≥3px apart from its
     neighbours at every viewport width. Hero 42.5→68px, title 29→40px,
     card 20px, body 17px, small 14px. */
  --text-hero: clamp(2.5rem, 1.6rem + 4.5vw, 4.25rem);
  /* L5: section voice raised 40px -> ~58px at 1280 (>=2.5:1 over card h3). */
  --text-title: clamp(1.85rem, 1.2rem + 3vw, 3.625rem);
  --text-card: 1.25rem;
  --text-body: 1.0625rem;
  --text-small: 0.875rem;

  /* Landing vertical rhythm: 54px at 375px, ~85px at 768px, 104px at wide.
     L5 adds role-based steps: --band (tight stats strip) and --close (the
     final CTA gets the biggest beat, > every other section). */
  --section-pad: clamp(3rem, 1.5rem + 8vw, 6.5rem);
  --section-pad-band: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
  --section-pad-close: clamp(4.5rem, 2.5rem + 10vw, 9rem);

  /* L5: dark ambient wash — violet-tinted glow over the near-black ground,
     darkest at the edges. Token stops only; all stops darker than --text. */
  --wash-core: color-mix(in srgb, var(--primary) 13%, transparent);

  /* L4: stat-numeral gradient. Starts at --primary (not --primary-deep):
     the deep stop measures ~2.8:1 on --surface-raised, below the 3:1
     large-text floor; --primary measures ~3.8:1. */
  --grad-stat: linear-gradient(135deg, var(--primary) 0%, var(--blue) 55%, var(--accent-cyan) 100%);

  /* L1: Elevation — shadow + luminosity steps for dark ground.
     On near-black, shadow alone is invisible; raised surfaces must also be
     lighter than the ground (color-mix from existing tokens, no new hex). */
  --surface-raised: color-mix(in srgb, var(--text) 8%, var(--surface));
  --border-raised: color-mix(in srgb, var(--text) 15%, var(--border));
  --lift: 0 1px 4px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.25);
  --lift-lg: 0 4px 20px rgba(0, 0, 0, 0.55), 0 12px 40px rgba(0, 0, 0, 0.35);
  /* D4 (composition-fix-1): a 1px top edge-light on raised surfaces — an
     inset highlight reading as a light source from above, layered with the
     existing shadow so cards read as lifted rather than merely tinted. */
  --edge-light: inset 0 1px 0 color-mix(in srgb, var(--text) 12%, transparent);

  /* L1: Radius scale */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;

  /* L1: Gradient system — violet-to-blue-to-cyan for text-clip headlines;
     button fill uses violet-to-dark-blue (both stops >= 4.5:1 on --text). */
  --grad-btn-dark: #1D4ED8;
  --grad: linear-gradient(135deg, var(--primary-deep) 0%, var(--blue) 50%, var(--accent-cyan) 100%);
  --grad-btn: linear-gradient(135deg, var(--primary-deep) 0%, var(--grad-btn-dark) 100%);
}

/* TODO(fonts): self-hosted Poppins via @fontsource/poppins (synced by scripts/sync-fonts.js).
   Three latin woff2 files (400/600/800 normal) are committed under public/fonts/.
   If the sandbox lacked npm/network access at the time this was written, fall
   back path was: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif. */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/poppins-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  /* Mobile containment: nothing may ever push the page wider than the
     viewport (375px included). Pixel-verified in the Tier-B visual leg. */
  overflow-x: hidden;
  max-width: 100vw;
  color-scheme: dark;
}

/* body must not be height-capped at the viewport — that would make body its
   own scroll container and leave window.scrollY stuck at 0. min-height
   preserves the 100% reference for .page/.landing while letting body grow. */
body {
  min-height: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg);
  /* L5 ambient wash: one non-repeating violet glow bleeding down from the
     top edge — the .hero::before glow's page-scale sibling. Not
     background-attachment:fixed (scroll-repaint jank at 375px). */
  background-image: radial-gradient(90rem 64rem at 50% -12%, var(--wash-core), transparent 62%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* L5: body carries the 17px/1.62 reference voice (was 16px inherited/1.5). */
  font-size: var(--text-body);
  line-height: 1.62;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 2rem;
  gap: 2rem;
}

.card {
  width: 100%;
  max-width: 26rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.25rem 2rem;
}

.brand {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.brand span {
  color: var(--text);
}

h1 {
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.price-line {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.dot {
  margin: 0 0.35rem;
  opacity: 0.6;
}

.field {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.optional {
  opacity: 0.65;
}

/* Text inputs: 16px so iOS Safari does not auto-zoom on focus, and a 44px
   minimum tap target. */
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  min-height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  color: var(--text);
  font-size: 16px;
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 120ms ease;
}

input:focus {
  border-color: var(--border-focus);
}

button {
  width: 100%;
  min-height: 44px;
  margin-top: 0.5rem;
  /* AA fix 2026-08-02: white on --accent is 3.85:1; --primary-deep is 5.7:1. */
  background: var(--primary-deep);
  color: var(--accent-text);
  border: none;
  border-radius: 0.55rem;
  font-size: 16px;
  font-weight: 600;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: opacity 120ms ease;
}

button:hover {
  opacity: 0.88;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.field-error {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--error);
}

.form-error {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--error);
  text-align: center;
}

.footer {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.8;
}

/* Success page */
.success-card {
  text-align: center;
}

.success-card h1 {
  margin-bottom: 1rem;
}

.success-card .lede {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.next-steps {
  text-align: left;
  list-style: none;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.9rem;
}

.next-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}

.next-steps .step-num {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text);
}

a.home-link {
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}

a.home-link:hover {
  border-color: var(--text);
}

/* --- Slice 2: plan toggle (monthly / yearly) ------------------------------ */
.plan-toggle {
  border: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.plan-toggle-legend {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  padding: 0;
}

.plan-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px; /* tap target */
  margin-bottom: 0;
  padding: 0.55rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  cursor: pointer;
  transition: border-color 120ms ease;
}

.plan-option:has(input:checked) {
  border-color: var(--text);
}

.plan-option input[type="radio"] {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--text);
}

.plan-option-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.plan-option-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.plan-option-price {
  font-size: 0.8rem;
  color: var(--muted);
}

.plan-hint {
  display: inline-block;
  margin-left: 0.25rem;
  color: var(--text);
  opacity: 0.85;
}

/* --- Slice 2: required Terms & Conditions consent row --------------------- */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px; /* tap target */
  margin: 0.25rem 0 0.9rem;
}

.terms-row input[type="checkbox"] {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--text);
  cursor: pointer;
}

.terms-row label {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.terms-row a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Slice 2: success page manage/cancel (Billing Portal) ----------------- */
.portal-block {
  margin: 0 0 1.5rem;
}

.portal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* tap target */
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 120ms ease, opacity 120ms ease;
}

.portal-link:hover {
  border-color: var(--text);
}

.portal-link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.portal-link.is-busy {
  opacity: 0.7;
  cursor: progress;
}

.portal-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--error);
}

.portal-hint {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Slice 2: /terms draft page + DRAFT watermark -------------------------- */
.draft-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  font-size: clamp(4rem, 18vw, 10rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--text) 7%, transparent);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

.terms-page-main {
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.terms-card {
  max-width: 40rem;
  text-align: left;
}

.terms-card h1 {
  margin-bottom: 0.5rem;
}

.terms-status {
  color: var(--error);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.terms-updated {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.terms-card h2 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 1.35rem 0 0.4rem;
}

.terms-card p,
.terms-card li {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.terms-card ul {
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
}

.terms-card strong {
  color: var(--text);
}

.terms-back {
  margin-top: 1.5rem;
}

/* Small screens: keep everything on one narrow column. */
@media (max-width: 420px) {
  .card {
    padding: 1.75rem 1.25rem;
  }

  .plan-toggle {
    grid-template-columns: 1fr;
  }
}

/* --- Slice 5: marketing landing page (`/`) --------------------------------- */
/* Same palette/vocabulary as the checkout; the page is pure static links, so
   no script file is needed (CSP stays script-src 'self' with zero inline). */

.landing {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* L2: full-bleed sticky bar. Background is the L1 raised-glass surface (NOT
   the reference's full gradient fill) plus a thin gradient accent edge —
   this is the CONTEXT paragraph's "raised dark glass bar with a gradient
   accent edge" resolution. It keeps nav text sitting on a near-black
   surface (trivially >= 4.5:1) instead of on a moving violet->cyan fill,
   which is the dark-gradient AA trap the parent spec calls out; the
   reference's color is still present as the accent edge. */
.landing-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border-raised);
}

@supports (backdrop-filter: blur(12px)) {
  .landing-nav-wrap {
    background: color-mix(in srgb, var(--surface-raised) 82%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.landing-nav-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--grad);
}

/* Scrolled state: no JS is possible here (constraint 9 — CSP is
   script-src 'self', hash-free, no unsafe-inline; landing.html has no
   existing <script> to extend and this slice may not add one), so the
   distinct "scrolled" state is expressed as a pure-CSS scroll-linked
   box-shadow rather than a JS-toggled class: the bar is shadow-less at the
   top of the page and gains --lift once the page has scrolled a short
   distance, staying at --lift for the remainder of the scroll (animation
   fill: both). Chromium (this project's Playwright runtime) supports
   animation-timeline: scroll(); the @supports fallback below keeps the
   bar functional (no shadow, same as top-of-page) on engines that don't. */
.landing-nav-wrap {
  animation: landing-nav-scrolled linear both;
  animation-timeline: scroll(root block);
  animation-range: 0 64px;
}

@keyframes landing-nav-scrolled {
  from { box-shadow: none; }
  to { box-shadow: var(--lift); }
}

.landing-nav {
  width: 100%;
  max-width: 64rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.landing-nav .brand {
  margin-bottom: 0;
}

/* L2: section anchors. Desktop: inline links between brand and CTA.
   Mobile: no JS and no <details> (a closed details hides its content at the
   slot level — CSS on the children cannot reveal it, so the "CSS-forced
   open" desktop pattern silently renders no links). The links simply WRAP
   to a second row, which L2 criterion 6 sanctions. */
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.landing-nav-link {
  color: var(--text);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.landing-nav-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Mobile: brand + CTA stay on the first row; the links wrap onto a full-
   width second row. Every link stays visible, tabbable, and tappable. */
@media (max-width: 767px) {
  .landing-nav {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  .landing-nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.4rem 1.1rem;
    padding-bottom: 0.35rem;
  }
}

/* The "247" suffix carries the brand gradient. */
.landing-nav .brand span {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Restrained CTA: thin border on transparent fill, high-contrast text. Still
   unmistakably a button (border, radius, padding, 44px target) and the
   highest-contrast interactive element in every section it appears in. */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* tap target */
  background: transparent;
  color: var(--text);
  border: 1px solid var(--cta-border); /* 3.7:1 against --bg — visible without filling */
  border-radius: 0.55rem;
  font-size: var(--text-body);
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.cta:hover {
  background: color-mix(in srgb, var(--text) 7%, transparent);
  border-color: var(--text);
}

.cta:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.cta-small {
  font-size: var(--text-small);
  padding: 0.55rem 1.1rem;
}

/* The hero CTA is a filled gradient pill — violet-to-dark-blue fill,
   white text, hover lifts 2px with shadow bloom (killed under reduced-motion). */
.cta-hero {
  padding: 0.95rem 2rem;
  font-weight: 650;
  background: var(--grad-btn);
  border: none;
  color: var(--text);
  border-radius: var(--r-md);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.cta-hero:hover {
  background: var(--grad-btn);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--lift-lg);
}

/* L1: Glass-raised surface primitive.
   Solid --surface-raised fallback is always present; backdrop-filter is
   layered on top only when the browser supports it (@supports prevents
   a glass-with-no-fallback failure mode). */
.glass-raised {
  background: var(--surface-raised);
  border: 1px solid var(--border-raised);
  box-shadow: var(--lift);
}

@supports (backdrop-filter: blur(12px)) {
  .glass-raised {
    background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* L1: Micro-label — mono stack, uppercase, reserved for inline stats and
   category labels. Consumed by L2–L5 slices. */
.micro-label {
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-section {
  width: 100%;
  max-width: 64rem;
  padding: var(--section-pad) 1.25rem;
}

.section-title {
  font-size: var(--text-title);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-align: center;
  margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}

/* D6: second-tier accent — a short gradient divider under every section
   title, so accent shows up as a recurring structural marker, not only on
   the headline and the button. */
.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: var(--grad);
}

/* Hero (L3): two-column per dark-hero.jpg — copy left, raised console frame
   right. Left-aligned weight-800 headline with a per-line accent system. */
.hero {
  max-width: 64rem;
  text-align: left;
  padding-top: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
  position: relative;
}

/* D2 (composition-fix-1): named grid areas so the call panel ("visual") can
   sit BETWEEN the CTA row and the fact row on mobile — eyebrow/h1/sub/CTA
   ("copy"), then the panel, then the fact row ("fact") — without duplicating
   markup per breakpoint. Mobile-first: single column, three stacked areas.
   >=1024px: two columns, "visual" spans both rows so the panel's height
   naturally matches the combined height of copy+fact in the left column. */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "visual"
    "fact";
  gap: clamp(2rem, 1rem + 3vw, 3rem);
}

.hero-copy {
  grid-area: copy;
}

.hero-visual {
  grid-area: visual;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "copy visual"
      "fact visual";
    column-gap: clamp(2rem, 1rem + 3vw, 4.5rem);
    row-gap: 0;
    align-items: start;
  }

  .hero-visual {
    align-self: stretch;
  }
}

/* L3 eyebrow pill: micro-label tier on a translucent raised ground, with a
   live cyan dot (the reference's shape; our own cleared string). */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border: 1px solid var(--border-raised);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--voice-accent);
}

/* Per-line accent: solid --accent everywhere; gradient text-clip only where
   supported, so the fallback is structural rather than assumed. */
.accent-line {
  color: var(--accent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .accent-line {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

/* D1 (composition-fix-1): raised glass card framing the call panel — was a
   layout-only frame around a waveform when the panel's content was T7-gated;
   the panel now ships (see .call-panel below), so padding is tuned for a
   content-rich card rather than a tall empty spacer. */
.hero-console {
  background: var(--surface-raised);
  border: 1px solid var(--border-raised);
  border-radius: var(--r-xl);
  box-shadow: var(--edge-light), var(--lift-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

@supports (backdrop-filter: blur(12px)) {
  .hero-console {
    background: color-mix(in srgb, var(--surface-raised) 82%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Ambient violet glow (8–12% opacity) behind the hero — radial, never flat. */
.hero::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  height: 75%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* L3: solid --text headline, weight 800, left-aligned; the accent lives in
   the per-line .accent-line span, not a whole-headline clip. */
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  text-wrap: balance;
  color: var(--text);
}

.hero-sub {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.6;
  max-width: 34rem; /* ~60ch — never runs full-width on desktop */
  margin: 0 0 1.75rem;
}

/* L3 fact row (hero-scoped — the final CTA reuses .hero-smallprint with its
   dots visible): the four facts on a border-top rule with CSS checkmarks.
   The .dot separators stay in the DOM (site-v2-hero.spec.ts asserts the
   dotted string by equality) but are hidden visually here. */
.hero-smallprint {
  margin-top: 1.25rem;
  font-size: var(--text-small);
  color: var(--muted);
}

/* D2: direct grid child of .hero-grid (moved out of .hero-copy in the
   markup) so it can be placed in its own "fact" area, after "visual" on
   mobile and below "copy" on desktop. */
.hero-smallprint {
  grid-area: fact;
}

.hero .hero-smallprint {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.hero .hero-smallprint .dot {
  display: none;
}

.hero .fact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero .fact::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* The hidden hero dots still report the global .dot computed opacity (0.6)
   to the site-v2-hero opacity gate — pin them at 1 (zero visual effect;
   they are display:none in the hero fact row). */
.hero .dot {
  opacity: 1;
}

.hero-secondary {
  display: inline-block;
  font-size: var(--text-body);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-secondary:hover {
  color: var(--text);
  text-decoration: underline;
}

/* D1 (composition-fix-1): the simulated call panel — replaces the waveform
   placeholder that shipped with zero text nodes while its content was
   T7-gated. Static markup only (CSP: no inline <script>, no JS-driven
   states) — this renders the panel's single resting frame, not a scripted
   playback. The "SIMULATED CALL" label is mandatory and non-removable
   (constraint D1) so it reads as an honest illustration, never a recorded
   call. No caller phone number is rendered anywhere in this panel — the
   page-wide phone-number sweep in claims-ledger.spec.ts (protected,
   must-pass-unmodified) checks the ENTIRE served HTML outside
   [data-demo-slot], and [data-demo-slot] does not exist in the default
   (unset DEMO_PHONE_E164) boot that ships — so "Charlotte, NC · Inbound"
   carries the caller-context line instead of a formatted NANP number. */
.call-panel {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.call-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.call-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.call-panel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--voice-accent);
}

.call-panel-clock {
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Radial dial: a conic-gradient ring (accent -> primary -> accent) with a
   solid core punched out via ::before — pure CSS, no SVG/canvas. Static;
   the box-shadow pulse below is decorative and killed under
   reduced-motion (it never touches the `opacity` property, so it can't
   trip the hero's opacity>=0.9-under-reduced-motion gate either way). */
.call-dial {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0.25rem auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from -90deg, var(--voice-accent), var(--primary) 55%, var(--voice-accent) 100%);
  padding: 4px;
  animation: call-dial-pulse 2.8s ease-in-out infinite;
}

.call-dial::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--surface-raised);
}

.call-dial-core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.call-dial-status {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}

.call-dial-time {
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

@keyframes call-dial-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--voice-accent) 22%, transparent); }
  50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--voice-accent) 0%, transparent); }
}

.call-panel-caller {
  text-align: center;
  font-weight: 700;
  font-size: var(--text-body);
  color: var(--text);
}

.call-transcript {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.call-turn {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.call-who {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--r-sm);
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.call-turn-ai .call-who {
  color: var(--voice-accent);
  background: color-mix(in srgb, var(--voice-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--voice-accent) 35%, transparent);
}

.call-turn-caller .call-who {
  color: var(--muted);
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid var(--border-raised);
}

.call-turn p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

.call-turn-caller p {
  color: var(--muted);
}

.call-confirm {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--success) 45%, transparent);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--success) 8%, transparent);
}

.call-confirm-check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-confirm-text b {
  display: block;
  font-size: 0.85rem;
}

.call-confirm-text small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.call-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.call-panel-sim {
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* A <span>, not a <button> — CSP (script-src 'self', hash-free) rules out a
   click handler, and a control with no possible behavior is a false
   affordance. Styled to read as the reference's pill button; aria-hidden
   because it triggers nothing an assistive-tech user could act on. */
.call-panel-replay {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-raised);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

/* Hard kill-switch: reduced motion halts every decorative animation on the
   page — the dial pulse, the (retired) waveform bars' successor, the CTA
   hover lift, and the scroll-linked nav shadow. */
@media (prefers-reduced-motion: reduce) {
  .call-dial {
    animation: none;
    box-shadow: none;
  }
  /* .dot separators in hero smallprint inherit opacity:0.6 from the global
     rule; reset here so no hero element sits below 0.9 (criterion 8). */
  .hero .dot {
    opacity: 1;
  }
  /* Kill .cta-hero hover lift under reduced-motion (finding B-1). */
  .cta-hero {
    transition: none;
  }
  .cta-hero:hover {
    transform: none;
    box-shadow: none;
  }
  /* L2: kill the scroll-linked nav shadow animation. */
  .landing-nav-wrap {
    animation: none;
    box-shadow: none;
  }
}

/* Value props */
.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.prop-card {
  /* L4/D4: raised on dark — luminosity step + lightened border + shadow +
     a 1px top edge-light so the card reads as lifted, not just tinted. */
  background: var(--surface-raised);
  border: 1px solid var(--border-raised);
  border-radius: var(--r-md);
  box-shadow: var(--edge-light), var(--lift);
  padding: 1.75rem;
}

/* mkt-3: inline SVG line icons — monochrome via currentColor, no emoji,
   no raster, no icon font. Decorative (aria-hidden in the markup). */
.prop-icon {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.prop-card h2 {
  font-size: var(--text-card);
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.prop-card p {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.55;
  max-width: 65ch;
}

/* How it works — mirrors the success page's step-num vocabulary. */
.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
}

/* D6: second-tier accent — the step numeral border/text now carries the
   accent hue instead of the plain neutral border, so accent appears beyond
   just the headline and the button. */
.step-card .step-num {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-small);
  color: var(--accent);
  font-weight: 700;
}

.step-card h3 {
  font-size: var(--text-card);
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.step-card p {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.55;
  max-width: 65ch;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
}

.plan-card {
  /* L4/D4: raised on dark — luminosity step + lightened border + shadow +
     1px top edge-light. */
  background: var(--surface-raised);
  border: 1px solid var(--border-raised);
  border-radius: var(--r-md);
  box-shadow: var(--edge-light), var(--lift);
  padding: 2rem 1.75rem;
  text-align: center;
}

.plan-card h3 {
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.plan-card-price {
  font-size: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.plan-card-note {
  color: var(--muted);
  font-size: var(--text-small);
}

.pricing-line {
  text-align: center;
  color: var(--muted);
  font-size: var(--text-small);
  margin-bottom: 1.75rem;
}

.pricing-cta {
  text-align: center;
}

/* S6: included-minutes disclosure line — same visual weight as the price. */
.pricing-minutes {
  text-align: center;
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* S6: rollover hook — empty until M3 ships and honours annual rollover. */
.plan-rollover {
  display: none;
}

/* S6: checkout page minutes disclosure (one line, before submit). */
.checkout-minutes {
  margin: 0.75rem 0 0.5rem;
  font-size: var(--text-small);
  color: var(--muted);
  text-align: center;
}

/* Comparison (mkt-4) — implicit price defense with checkable arithmetic.
   Desktop ≥768px renders a real scoped <table>; below 768px the table swaps
   for stacked per-option cards carrying the same content (a table cannot be
   transposed by CSS, so both renderings exist and exactly one is displayed
   per breakpoint — display:none also keeps the hidden one out of the AT tree).
   Same palette, type scale, and card vocabulary as the rest of the page;
   the OnCall247 column/card gets only a restrained grayscale emphasis —
   the mkt-3 accent hue stays reserved for the hero. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* D3: section-edge glow bleed — a second, quieter ambient wash so the page
   keeps reading as lit past the hero, not just at the very top and the
   final CTA. Token-only (--wash-core, already used by .hero::before and
   body's top wash); position:relative + negative z-index keeps it behind
   the section's raised-card children. */
.compare {
  position: relative;
}

.compare::before {
  content: "";
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 640px;
  height: 60%;
  background: radial-gradient(ellipse at center, var(--wash-core), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.compare .section-title {
  margin-bottom: 0.75rem;
}

.compare-lede {
  text-align: center;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.6;
  max-width: 34rem;
  margin: 0 auto clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}

.compare-table-wrap {
  /* L4/D4: raised on dark — luminosity step + lightened border + shadow +
     1px top edge-light. */
  background: var(--surface-raised);
  border: 1px solid var(--border-raised);
  border-radius: var(--r-md);
  box-shadow: var(--edge-light), var(--lift);
  overflow: hidden; /* clips the table's corners to the radius */
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body);
}

.compare-table th,
.compare-table td {
  padding: 1.1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
}

.compare-table thead th,
.compare-table thead td {
  border-top: none;
}

.compare-table thead th {
  font-size: var(--text-small);
  font-weight: 650;
  letter-spacing: 0.02em;
}

.compare-table tbody th[scope="row"] {
  font-weight: 650;
  white-space: nowrap;
}

.compare-option-sub {
  display: block;
  font-weight: 500;
  color: var(--muted);
}

.compare-math {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--text-small);
  color: var(--muted);
}

/* Own column: a whisper of fill, no accent hue, no border games.
   color-mix keeps this token-only: var(--text) at 4.5% opacity. */
.compare-own {
  background: color-mix(in srgb, var(--text) 4.5%, transparent);
}

.compare-cards {
  display: none;
}

.compare-card {
  /* L4/D4: raised on dark — luminosity step + lightened border + shadow +
     1px top edge-light. */
  background: var(--surface-raised);
  border: 1px solid var(--border-raised);
  border-radius: var(--r-md);
  box-shadow: var(--edge-light), var(--lift);
  padding: 1.75rem;
}

.compare-card h3 {
  font-size: var(--text-card);
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.compare-card dl {
  display: grid;
  gap: 0.9rem;
}

.compare-card dt {
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.compare-card dd {
  font-size: var(--text-body);
  line-height: 1.55;
}

.compare-card-own {
  border-color: var(--cta-border);
}

.compare-footnote {
  margin-top: 1.75rem;
  font-size: var(--text-small);
  color: var(--muted);
  line-height: 1.6;
  max-width: 46rem;
}

/* FAQ */
.faq {
  max-width: 46rem;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-item h3 {
  font-size: var(--text-card);
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.55;
  max-width: 65ch; /* body-copy measure: 60–75 characters */
}

/* Final CTA + footer */
.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-size: var(--text-title);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  text-wrap: balance;
}

.landing-footer {
  width: 100%;
  max-width: 64rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: var(--text-small);
  color: var(--muted);
}

/* Mobile: single column everywhere; the fluid clamps handle spacing. */
@media (max-width: 640px) {
  .props-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .landing-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Below 768px the comparison table swaps for stacked per-option cards. */
@media (max-width: 767px) {
  .compare-table-wrap {
    display: none;
  }

  .compare-cards {
    display: grid;
    gap: 1.25rem;
  }
}

/* Demo-number slot (S7) — present only when DEMO_PHONE_E164 is set at boot. */
.demo-slot {
  text-align: center;
  padding: var(--section-pad) 1.25rem;
  border-top: 1px solid var(--border);
}

.demo-slot-label {
  font-size: var(--text-body);
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.demo-slot-number {
  font-size: var(--text-card);
  font-weight: 600;
}

.demo-slot-number a {
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.demo-slot-number a:hover {
  text-decoration: underline;
}

/* ── L4/D5: stats band — a full-bleed strip (edge-to-edge background,
   content still readable at a contained max-width) with oversized gradient
   numerals over mono micro-labels, per dark-marquee-stats.jpg. ".landing"
   is already full viewport width (flex column, no max-width — see the nav
   bar's identical width:100% precedent above), so overriding this one
   section's own max-width/width is enough to bleed it edge to edge; no
   100vw/negative-margin trick needed. ── */
.landing-section--band {
  width: 100%;
  max-width: 100%;
  padding-block: var(--section-pad-band);
  background: var(--surface-raised);
  border-top: 1px solid var(--border-raised);
  border-bottom: 1px solid var(--border-raised);
  box-shadow: var(--edge-light);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

.stat {
  text-align: left;
  padding-left: clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid var(--border);
}

.stat:first-child {
  padding-left: 0;
  border-left: none;
}

/* Oversized per D5 ("full-bleed strip with oversized numerals") — solid
   --accent fallback; gradient clip only where supported (same
   structural-fallback pattern as .accent-line). */
.stat-num {
  font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stat-num {
    background: var(--grad-stat);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.stat-label {
  margin-top: 0.4rem;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.75rem;
  }

  .stat:nth-child(2n+1) {
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 560px) {
  .stats-band {
    grid-template-columns: 1fr;
  }

  .stat {
    padding-left: 0;
    border-left: none;
    text-align: center;
  }
}

/* ── L5: role-based rhythm + the closing beat ── */

/* Raised section panel — elevation alternation without a new hue. */
.landing-section--raised {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
  padding-inline: clamp(1.5rem, 1rem + 3vw, 4rem);
  margin-block: clamp(1rem, 2vw, 2rem);
}

/* Section headings: constrained measure (<= 80ch leg). */
.section-title {
  max-width: 76ch;
  margin-inline: auto;
}

/* The close is the biggest beat: largest padding on the page, hero-scale
   heading (accent span carries the gradient treatment), concentric-ring
   ornament + violet glow per dark-final-cta.jpg — static, pure CSS. */
.final-cta {
  padding-block: var(--section-pad-close);
  position: relative;
}

.final-cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(46rem, 92vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--wash-core), transparent 72%),
    repeating-radial-gradient(circle,
      transparent 0 110px,
      color-mix(in srgb, var(--text) 5%, transparent) 110px 111px);
  pointer-events: none;
  z-index: -1;
}

.final-cta h2 {
  font-size: var(--text-hero);
  font-weight: 800;
}

/* Final-CTA smallprint (renamed from .hero-smallprint so that class is
   hero-unique): the mono micro tier — copy untouched, dots visible. */
.closing-smallprint {
  margin-top: 1.5rem;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Nav CTA sizing: .cta-hero is declared after .cta-small, so its padding
   would win on the nav's `cta cta-hero cta-small` combo — re-assert the
   small metrics so the nav CTA stays measurably subordinate to the hero's. */
.cta-hero.cta-small {
  font-size: var(--text-small);
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-sm);
}

/* ── Admin console (Console S1) ────────────────────────────────────────────
   Internal tool: plain, dense, readable. Reuses existing tokens only — no
   new hex values, no new font. Ugly-but-clear beats styled-but-slow. */

.admin-body {
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  margin: 0;
}

.admin-main {
  /* S1-3 fix: 1080px + white-space:nowrap cells pushed the table wider than
     its container, hiding the Created column behind the table-wrap's own
     scrollbar at 1280-1440px. Widened container + Contact-column wrapping
     (below) together keep all six columns visible with no scroll. */
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.admin-header-row h1 {
  margin: 0;
}

.admin-main h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.admin-count {
  color: var(--muted);
  font-size: var(--text-small);
  margin: 0 0 1.25rem;
}

.admin-table-wrap {
  background: var(--surface-raised);
  border: 1px solid var(--border-raised);
  border-radius: var(--r-md);
  box-shadow: var(--lift);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}

/* S1-3 fix: every column that renders a free-text, user-supplied string must
   be bounded and allowed to wrap. Left unbounded, one long value makes the
   table wider than .admin-main and pushes Number/Status/Created behind the
   table-wrap's horizontal scrollbar — and, because a table's column widths
   are set by its widest row, squeezes the other columns for *every* row.
   Business (col 1, business_name, up to 120 chars) and Contact (col 2,
   contact_name + contact_email, up to 120 + 200 chars) are the only two:
   Plan and Status render fixed enum labels, Number is E.164-validated to at
   most 16 characters, and Created is a formatted date.
   Col 1 was missed on the first pass — a 120-character business name (which
   the new-account form accepts) blew the table out to 1546px inside a 1190px
   container and collapsed Contact to ~65px (qa-behavior, 2026-08-02).
   :not(.admin-empty) because the zero-accounts row is a single colspan="6"
   cell, which is td:nth-child(1) as well — this rule is about *data*
   columns and has no business bounding it. Chromium ignores max-width on a
   display:table-cell box, so the exclusion changes nothing there today (the
   empty state's real defect was a specificity loss on .admin-empty, fixed
   below); it is stated because other engines need not ignore it.
   td:nth-child(2) needs no such guard: that row has no second cell. */
.admin-table th:nth-child(1),
.admin-table td:nth-child(1):not(.admin-empty) {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 18rem;
}

.admin-table td:nth-child(2) {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 22rem;
}

.admin-table thead th {
  border-top: none;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.admin-muted {
  color: var(--muted);
}

/* Scoped as `.admin-table td.admin-empty`, not the bare `.admin-empty`,
   because `.admin-table td` above (0,1,1) outranks a lone class (0,1,0):
   `text-align: center` and `white-space: normal` were both losing to the
   generic cell rule, so the zero-accounts row has rendered left-aligned
   since Console S1 shipped it. Source order does not save it — specificity
   is compared first. Only ever applied to that one colspan=6 cell
   (src/admin/admin-page.js), so the tighter selector changes nothing else. */
.admin-table td.admin-empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem 1rem;
  white-space: normal;
}

.admin-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-raised);
  color: var(--text);
}

.admin-badge-active {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 45%, var(--border-raised));
}

.admin-badge-draft {
  color: var(--muted);
}

.admin-badge-suspended {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--border-raised));
}

.admin-badge-cancelled {
  color: var(--error);
  border-color: color-mix(in srgb, var(--error) 45%, var(--border-raised));
}

/* ── Admin console: new-account form + flash (Console S2) ─────────────────
   Reuses .field / .field-error / label / input[type] from the checkout
   card above (those rules are global, not scoped to .card) — only the
   pieces that page doesn't already have (select, textarea, buttons that
   aren't full-width, the flash banner, the "+ New account" action) are
   added here. */

.admin-btn {
  display: inline-block;
  background: var(--primary-deep);
  color: var(--accent-text);
  border: none;
  border-radius: var(--r-sm);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 1rem;
  white-space: nowrap;
}

.admin-btn:hover {
  opacity: 0.88;
}

.admin-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-raised);
}

.admin-flash {
  background: color-mix(in srgb, var(--success) 16%, var(--surface-raised));
  border: 1px solid color-mix(in srgb, var(--success) 45%, var(--border-raised));
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  margin: 0.75rem 0 1rem;
  font-size: var(--text-small);
}

.admin-form {
  max-width: 32rem;
}

.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  color: var(--text);
  font-size: 16px;
  padding: 0.7rem 0.85rem;
  outline: none;
  font-family: inherit;
  transition: border-color 120ms ease;
}

.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--border-focus);
}

.admin-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.admin-form .field-hint {
  opacity: 0.65;
  font-weight: 400;
}

.admin-form button[type="submit"] {
  width: auto;
  min-width: 12rem;
}

/* ── Admin console: responsive / phone-width layout (Console S3) ──────────
   Scoped entirely inside this media query — nothing above this point is
   touched, so the 1280px desktop layout (S1-3/S2 regression guard) stays
   pixel-identical. Breakpoint matches the rest of the site's mobile rules
   (.landing-nav, .compare-table, both `max-width: 767px`).

   Card layout: the <table> markup is unchanged (no parallel DOM) — rows
   become block-level cards and each <td> gets a CSS-generated label from
   its `data-label` attribute (added in src/admin/admin-page.js). All
   escaping happens server-side before this CSS ever runs, so the label
   path never becomes an unescaped sink — it renders a fixed, literal
   string ("Business", "Contact", ...), never DB-sourced content. */
@media (max-width: 767px) {
  .admin-main {
    padding: 1.75rem 1rem 3rem;
  }

  .admin-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-header-row .admin-btn {
    text-align: center;
  }

  /* The table-wrap becomes a plain vertical stack of row-cards; the card
     chrome (background/border/radius/shadow) moves onto each <tr> below,
     so the wrap itself goes chromeless to avoid double-boxing. */
  .admin-table-wrap {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow-x: visible;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr {
    display: block;
    width: 100%;
  }

  /* Column headers are redundant once every cell carries its own label. */
  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    margin-bottom: 1rem;
    background: var(--surface-raised);
    border: 1px solid var(--border-raised);
    border-radius: var(--r-md);
    box-shadow: var(--lift);
    padding: 0.25rem 1rem;
  }

  .admin-table tr:last-child {
    margin-bottom: 0;
  }

  .admin-table td {
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 0.6rem 0;
    border-top: 1px solid var(--border);
  }

  .admin-table tr td:first-child {
    border-top: none;
  }

  /* Trap (see spec): `.admin-table td:nth-child(1):not(.admin-empty)` and
     `.admin-table td:nth-child(2)` are more specific than a bare
     `.admin-table td`, so their desktop `max-width: 18rem`/`22rem` would
     otherwise survive into this block-layout card (where, unlike the
     table-cell display Chromium ignores it under, max-width really does
     apply and would visibly narrow just those two fields). Matched at
     equal specificity here, later in the file, to win on source order. */
  .admin-table td:nth-child(1):not(.admin-empty),
  .admin-table td:nth-child(2) {
    max-width: none;
  }

  .admin-table td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--text-small);
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--muted);
    margin-bottom: 0.25rem;
  }

  /* Empty state: one plain card, centred text, no per-field label (it has
     no data-label attribute — this just also removes the ::before's
     margin-bottom so nothing centres off-axis). Specificity note: this
     selector (.admin-table td.admin-empty, 0,2,1) already outranks the
     bare `.admin-table td` card rules above (0,1,1), so no further bump is
     needed here — same fix S1-3/S2 already established for this cell. */
  .admin-table td.admin-empty {
    border-top: none;
    padding: 2rem 1rem;
  }

  .admin-table td.admin-empty::before {
    content: none;
  }

  /* Form: fields are already full-width/labels-above via the global
     `.field`/input/select/textarea rules reused from the checkout card, at
     every viewport width. The one desktop-only override left to undo here
     is the submit button, which is intentionally NOT full-width above
     767px (`width: auto; min-width: 12rem`). */
  .admin-form button[type="submit"] {
    width: 100%;
  }
}

/* ── Admin console: 768–1023px tablet band (Console S3, attempt 2) ────────
   qa-behavior (2026-08-02) reproduced a real defect with the plain fixture
   rows this file's own gate seeds (28-29 char business names, no
   adversarial input needed): at 768px the four `white-space: nowrap` data
   columns (Plan 237px + Number 159px + Status 96px + Created 117px = 609px)
   ate almost all of the 718px content box, leaving so little for
   Business+Contact that they collapsed to ~46px and wrapped one or two
   characters per line, and the table's own overflow pushed
   wrap.scrollWidth (749px) past wrap.clientWidth (718px) — the Created
   column's right edge landed at x=774, clipped outside the 768px viewport.
   Confirmed broken window: 768-~790px; clean again from 800px up, and at
   1280px (untouched, outside this band).

   Fix: let Plan wrap onto two lines (its label is the longest of the four
   nowrap columns and the only one with real slack — "Starter — $247/mo ·
   300 min" has three natural break points at the spaces/dot) and trim cell
   and page padding slightly. This band sits strictly between the <768px
   card breakpoint and the >=1024px desktop rules — neither is touched. */
@media (min-width: 768px) and (max-width: 1023px) {
  .admin-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.65rem 0.6rem;
  }

  .admin-table td:nth-child(3) {
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 8rem;
  }
}

/* --- Auth / console shell --- (Console A: /login, the 403 "access denied"
   page, the "sign-in not configured" 503 page, and the three placeholder
   role-home pages /app and /owner). Reuses the same tokens and the
   checkout page's .card / .field / label / input[type] rules above rather
   than inventing new colors — .auth-card only adds what those don't already
   cover (password input, the centered shell, the role-home page). */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 2rem;
}

.auth-card {
  width: 100%;
  max-width: 26rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.25rem 2rem;
  margin: 0 auto;
}

.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  min-height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  color: var(--text);
  font-size: 16px;
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 120ms ease;
}

.auth-card input:focus {
  border-color: var(--border-focus);
}

.auth-card button[type="submit"] {
  width: 100%;
  min-height: 44px;
  margin-top: 0.5rem;
  background: var(--primary-deep);
  color: var(--accent-text);
  border: none;
  border-radius: 0.55rem;
  font-size: 16px;
  font-weight: 600;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.auth-card button[type="submit"]:hover {
  opacity: 0.88;
}

.auth-card .form-error {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--error);
  text-align: center;
}

.role-home {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.role-home .logout-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: var(--text-small);
}

/* --- Console shell (Console B customer console `/app`; slices C/D reuse
   this same chrome via src/console/shell.js) --- Reuses the admin-* tokens
   and classes above (.admin-body, .admin-badge, .admin-btn, .admin-form,
   .admin-flash, .field / .field-error from the global rules further up)
   rather than inventing a parallel set — only the topbar/nav/card
   structure those don't already cover is added here. */
.console-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.console-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.console-wordmark {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.console-wordmark span {
  color: var(--primary);
}

.console-nav {
  display: flex;
  gap: 1.25rem;
  flex: 1;
}

.console-nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-small);
  font-weight: 600;
}

.console-nav-link:hover {
  color: var(--text);
}

.console-nav-active {
  color: var(--text);
}

.console-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.console-user-email {
  color: var(--muted);
  font-size: var(--text-small);
}

.console-logout-btn {
  background: transparent;
  border: 1px solid var(--border-raised);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.85rem;
  font-size: var(--text-small);
  cursor: pointer;
  width: auto;
  min-height: auto;
  margin-top: 0;
}

.console-logout-btn:hover {
  opacity: 0.88;
}

.console-imp-banner {
  background: color-mix(in srgb, var(--error) 20%, var(--surface-raised));
  border-bottom: 1px solid color-mix(in srgb, var(--error) 45%, var(--border-raised));
  color: var(--text);
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--text-small);
  text-align: center;
}

.console-imp-stop {
  background: var(--primary-deep);
  color: var(--accent-text);
  border: none;
  border-radius: var(--r-sm);
  padding: 0.4rem 0.85rem;
  font-size: var(--text-small);
  font-weight: 600;
  cursor: pointer;
  width: auto;
  min-height: auto;
  margin-top: 0;
}

.console-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.console-header-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.console-header-row h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.console-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-raised);
  border-radius: var(--r-md);
  box-shadow: var(--lift);
  padding: 1.25rem 1.4rem;
}

.console-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 650;
}

.console-muted {
  color: var(--muted);
  font-size: var(--text-small);
  margin: 0;
}

.console-number {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 0;
}

.console-plan-label {
  font-size: 1rem;
  font-weight: 650;
  margin: 0 0 0.3rem;
}

.console-usage-line {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 0.3rem 0;
}

.console-overage {
  color: var(--error);
  font-size: var(--text-small);
  margin: 0.5rem 0 0;
}

.console-empty {
  color: var(--muted);
  font-size: var(--text-small);
  margin: 0.75rem 0 0;
}

@media (max-width: 767px) {
  .console-main {
    padding: 1.75rem 1rem 3rem;
  }

  .console-topbar-inner {
    padding: 1rem;
  }

  .console-nav {
    order: 3;
    width: 100%;
    gap: 1rem;
  }

  .console-topbar-right {
    margin-left: 0;
  }
}
