/* ==========================================================================
   Ondervale design system — COMPONENTS (v1, full visual redesign)
   --------------------------------------------------------------------------
   Depends on design/tokens.css (loaded FIRST). Pages are assembled from
   these classes; new patterns need design sign-off (route through Pam).

   BREAKPOINTS (mobile-first)
   - Base targets 360px phones: one column, no horizontal overflow, primary
     targets >= 44px (header CTA 40px — still above WCAG 2.5.8 AA 24px).
   - 720px: the structural breakpoint (grids go multi-column, header is
     one row, footer columns).
   - 880px: ONE narrow exception — .hero--split (text | visual) needs real
     room; below it the visual stacks under the copy. Nothing else uses it.
   - Content caps at 72rem (1152px); wider viewports only add margin.

   v1 ADDITIONS over v0 (all AA-checked, tokens only, no new raw colors):
   .skip-link .kicker .section--band/--ink .trust-row .hero--split + hero
   visual mocks (.mock-*), .card-grid/.card, .stat-band, .steps, .chip,
   .cta-band, .prose (legal), header/footer ink variants, [data-reveal].
   Every v0 class still works — older pages inherit v1 for free.
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-display);
  color: var(--color-text);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: var(--leading-solid); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-4); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.4em; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
}

[hidden] { display: none !important; }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

/* ---- Skip link (a11y, visible on focus) ----------------------------------- */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-5);
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-radius: var(--radius-pill);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: top var(--motion-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-3); color: var(--color-on-ink); }

/* ---- Layout --------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--space-5), 72rem);
  margin-inline: auto;
}
.container--narrow { max-width: 46rem; }

/* Section rhythm: one scale everywhere (phones 56px → desktop 104px). */
.section { padding-block: var(--section-pad); }
.section--tight { padding-block: calc(var(--section-pad) * 0.55); }
/* Light band alternation (subtle contrast, not stripes). */
.section--band { background: var(--color-surface-band); }
/* Dark ink band — for footer-adjacent CTA sections and dark heroes. */
.section--ink,
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--color-on-ink); }
.section--ink {
  background:
    radial-gradient(60rem 30rem at 85% -20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--color-ink);
}
.section--ink p { color: var(--color-on-ink-muted); }

/* ---- Kicker — small tracked label above headings (the references' signature) */
.kicker {
  display: inline-block;
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-3);
}
.kicker--on-ink { color: var(--accent-bright); }

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

/* Screen-reader-only text (a heading for landmark-only sections, etc.). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Tool-result math footnote line (calculator pattern). */
.result-math {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  margin: var(--space-2) 0 var(--space-5);
}

/* Section intro sentence: one muted line under the H2, ~52ch. */
.section-intro { color: var(--color-text-muted); max-width: 52ch; margin-bottom: var(--space-8); }
.section-intro:last-child { margin-bottom: 0; }

/* ==========================================================================
   BUTTONS — 48px primary targets, arrow affordance, quiet lift on hover.
   <a class="btn"> navigates; <button class="btn"> submits inside forms.
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--motion-fast) ease,
              border-color var(--motion-fast) ease,
              color var(--motion-fast) ease,
              transform var(--motion-fast) var(--ease-out),
              box-shadow var(--motion-fast) ease;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-deep);
  color: var(--accent-contrast);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Ghost: the secondary path on LIGHT surfaces. */
.btn--soft {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
}
.btn--soft:hover { background: color-mix(in srgb, var(--accent) 14%, #ffffff); color: var(--accent-deep); }

/* Outline: the secondary path on INK surfaces. */
.btn--ghost {
  background: transparent;
  color: var(--color-on-ink);
  border-color: var(--ink-border);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); color: var(--color-on-ink); border-color: rgba(255, 255, 255, 0.28); }

.btn--small { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: var(--text-small); }
.btn--block { width: 100%; }

/* Arrow nudge (decorative; announce nothing to AT). */
.btn__arrow {
  transition: transform var(--motion-fast) var(--ease-out);
  font-size: 1.05em;
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Label span inside buttons: form.js swaps its text for "Sending…". */
.btn__label { flex: 0 1 auto; text-align: center; }

/* ==========================================================================
   SITE HEADER — translucent sticky, wordmark + ≤3 nav links + ONE CTA.
   Variant .site-header--ink for pages whose hero is an ink band.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: color-mix(in srgb, var(--color-surface-raised) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header--ink {
  background: color-mix(in srgb, var(--color-ink) 78%, transparent);
  border-bottom: 1px solid var(--ink-border);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-3);
}
.site-header__wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-display);
  font-size: var(--text-h3);
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
  margin-right: auto;
}
.site-header__wordmark:hover { color: var(--color-text); text-decoration: none; }
.site-header--ink .site-header__wordmark { color: var(--color-on-ink); }
.site-header__wordmark svg { width: 26px; height: 26px; flex: none; }

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
}
.site-header__nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: var(--weight-medium);
  font-size: var(--text-small);
  padding: var(--space-2) var(--space-1);
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast) ease;
}
.site-header__nav a:hover { color: var(--color-text); text-decoration: none; }
.site-header--ink .site-header__nav a { color: var(--color-on-ink-muted); }
.site-header--ink .site-header__nav a:hover { color: var(--color-on-ink); }

@media (max-width: 719px) {
  .site-header__nav { display: none; }
}

/* ==========================================================================
   HERO — v1 split: copy | CSS-only visual. Variants:
     .hero            plain centered/left copy (default, also v0 pages)
     .hero--split     two columns >= 880px (the ONE extra breakpoint)
     .hero--ink       dark band hero (adds the section--ink background)
   Anatomy per Pam's rules: kicker, H1 (trade + pain), ONE lead, one primary
   CTA + one soft/ghost path, trust row. Max copy measure ~30ch for H1.
   ========================================================================== */
.hero {
  padding-block: calc(var(--section-pad) * 0.9) calc(var(--section-pad) * 0.7);
  position: relative;
  overflow: clip;                      /* decorative glows may bleed; page may not */
}
.hero--ink {
  background:
    radial-gradient(55rem 28rem at 12% -10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    radial-gradient(40rem 24rem at 95% 110%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--color-ink);
  color: var(--color-on-ink);
}
.hero--ink h1, .hero--ink .hero__title { color: var(--color-on-ink); }
.hero--ink .hero__lead { color: var(--color-on-ink-muted); }

.hero__inner { max-width: 64ch; }
.hero--split .hero__inner {
  display: grid;
  gap: var(--space-10) var(--space-16);
  align-items: center;
  max-width: none;
}
@media (min-width: 880px) {
  .hero--split .hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.hero__title {
  font-size: var(--text-display);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-solid);
  margin-bottom: var(--space-5);
  max-width: 21ch;
}
.hero__lead {
  font-size: var(--text-lead);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-8);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 720px) { .hero__actions .btn { flex: 0 0 auto; } }

/* Trust row: dot-separated TRUE micro-facts under the CTAs. */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-5) 0 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
.trust-row li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.trust-row li + li::before {
  content: "·";
  color: var(--gray-400);
}
.hero--ink .trust-row { color: var(--color-on-ink-muted); }
.hero--ink .trust-row li + li::before { color: var(--ink-border); }

/* ==========================================================================
   HERO VISUAL MOCKS — pure HTML/CSS product hints (no images, no requests).
   .mock = raised card chassis; compose page-specific mock-* blocks on top.
   ========================================================================== */
.hero__visual { position: relative; }
.mock {
  position: relative;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  font-size: var(--text-small);
}
.hero--ink .mock {
  background: var(--color-ink-raised);
  border-color: var(--ink-border);
  color: var(--color-on-ink-muted);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.mock__title {
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin: 0 0 var(--space-1);
  font-size: var(--text-body);
}
.hero--ink .mock__title { color: var(--color-on-ink); }
.mock__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}
.hero--ink .mock__row { border-color: var(--ink-border); }
.mock__row:last-of-type { border-bottom: 0; }
.mock__value { font-weight: var(--weight-bold); color: var(--color-text); font-variant-numeric: tabular-nums; }
.hero--ink .mock__value { color: var(--color-on-ink); }
/* Tiny CSS bar chart (result mock): heights set inline per bar. */
.mock__bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 56px;
  margin: var(--space-4) 0 var(--space-2);
}
.mock__bars span {
  flex: 1;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: color-mix(in srgb, var(--accent) 22%, var(--gray-200));
}
.mock__bars span:last-child { background: var(--accent); }
.mock__stat {
  font-size: var(--text-h3);
  font-weight: var(--weight-display);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.mock__note { margin: 0; color: var(--color-text-muted); }
.hero--ink .mock__note { color: var(--color-on-ink-muted); }
/* Ink mocks swap raw accents for the AA-safe bright mix. */
.hero--ink .mock__stat { color: var(--accent-bright); }
.hero--ink .mock__bars span {
  background: color-mix(in srgb, var(--accent-bright) 20%, var(--color-ink-raised));
}
.hero--ink .mock__bars span:last-child { background: var(--accent-bright); }

/* ---- Flagship hero elevation (Pam flagship pass 2026-08-26) ----------------
   The booking system IS the product: hero split gets more room for the visual,
   tighter headline measure, a price+queue lockup, and a demo CTA that reads
   as a product trial, not a contact form. No new colors — token-driven only.
   Visual elevation: larger window, deeper shadow, subtle perspective tilt on
   desktop, overlay CTA to the interactive demo. */
.hero--flagship .hero__inner {
  align-items: start;
}
@media (min-width: 880px) {
  .hero--flagship .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-8) var(--space-10); }
}
.hero--flagship .hero__title {
  max-width: 16ch;
  font-size: clamp(2.75rem, 1.9rem + 3.6vw, 4.5rem);
  line-height: 0.98;
}
.hero--flagship .hero__lead { max-width: 48ch; }
.hero__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  color: var(--color-on-ink);
}
.hero__price strong { color: var(--color-on-ink); font-weight: 800; letter-spacing: -0.01em; }
.hero__price .dot { color: var(--color-on-ink-muted); }
.hero__price a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.hero__price a:hover { color: var(--color-on-ink); }
@media (max-width: 640px) {
  .hero__price { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .hero__price .dot { display: none; }
}
.hero__queue {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-pill);
  padding: 0.35em 0.8em;
}
.hero__queue::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-bright) 18%, transparent);
}
.hero__visual--elevated .app-mockup { max-width: 38em; }
.hero__visual--elevated .am-browser {
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 8px 24px rgba(0,0,0,0.35);
  transform: perspective(900px) rotateY(-2deg) rotateX(1deg);
  transition: transform var(--motion-fast) var(--ease-out);
}
@media (max-width: 880px) {
  .hero__visual--elevated .am-browser { transform: none; }
}
.hero__visual--elevated:hover .am-browser { transform: perspective(900px) rotateY(-1deg) rotateX(0.5deg) translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .hero__visual--elevated .am-browser { transform: none; }
}
.hero__visual-cta {
  position: absolute;
  left: 50%; bottom: var(--space-4);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: var(--radius-pill);
  font-size: var(--text-small);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  white-space: nowrap;
  z-index: 4;
}
.hero__visual-cta:hover { background: var(--accent-deep); color: var(--accent-contrast); text-decoration: none; }
.hero__visual-caption {
  margin-top: var(--space-3);
  text-align: center;
  font-size: var(--text-small);
  color: var(--color-on-ink-muted);
}
.hero__visual-caption a { color: var(--accent-bright); }

/* Demo tease band — sits between pricing and free tools; reuses card + mock */
.demo-tease {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 880px) { .demo-tease { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.demo-tease__copy .kicker { margin-bottom: var(--space-3); }
.demo-tease__title { font-size: var(--text-h1); margin-bottom: var(--space-3); max-width: 18ch; }
.demo-tease__text { color: var(--color-text-muted); max-width: 52ch; margin-bottom: var(--space-6); }
.section--ink .demo-tease__text { color: var(--color-on-ink-muted); }

/* Price + queue card — the unmissable flagship offer */
.price-card {
  max-width: 38rem;
  margin-inline: auto;
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--accent-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.price-card__kicker { margin-bottom: var(--space-3); }
.price-card__price {
  font-size: var(--text-stat);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-solid);
  margin: 0 0 var(--space-2);
  font-variant-numeric: tabular-nums;
}
.price-card__price small { font-size: var(--text-body); font-weight: 600; color: var(--color-text-muted); }
.price-card__sub { color: var(--color-text-muted); font-size: var(--text-small); margin: 0 0 var(--space-6); }
.price-card__perks {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: grid;
  gap: var(--space-2);
  text-align: left;
}
.price-card__perks li { display: flex; gap: var(--space-2); align-items: baseline; font-size: var(--text-small); }
.price-card__perks li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.price-card__queue {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-6);
}
.price-card__queue::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent);
}
.price-card__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.price-card__actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .price-card__actions .btn { flex: 0 0 auto; } }
.price-card__micro { margin-top: var(--space-4); font-size: var(--text-small); color: var(--color-text-muted); }

/* ==========================================================================
   FEATURE LIST (v0 component, v1 restyle) — icon + bold outcome + sentence.
   Auto-fit grid: 1 column at 360px, 2–3 columns >= 720px.
   ========================================================================== */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .feature-list:not(.feature-list--problem) {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }
}
.feature-item { min-width: 0; }
.feature-item__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--space-4);
  border: 1px solid var(--accent-line);
}
.feature-item__icon svg { width: 21px; height: 21px; }
.feature-item__marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  margin-top: var(--space-3);
}
.feature-item__title {
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  margin: 0 0 var(--space-2);
}
.feature-item__text { margin: 0; color: var(--color-text-muted); }
.section--ink .feature-item__text { color: var(--color-on-ink-muted); }

/* ==========================================================================
   CARD GRID + CARD — generic surface for products / tools / problems.
   DO: one card = one idea, ≤ 60 words. DON'T: nest cards.
   ========================================================================== */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
}
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-6);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--motion-fast) var(--ease-out),
              box-shadow var(--motion-fast) ease,
              border-color var(--motion-fast) ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-line);
}
.section--band .card { background: var(--color-surface-raised); }
.section--ink .card {
  background: var(--color-ink-raised);
  border-color: var(--ink-border);
  box-shadow: none;
}
.card > .card__title { margin: 0; }
.card__title { font-size: var(--text-h3); letter-spacing: -0.01em; }
.card__text { margin: 0; color: var(--color-text-muted); font-size: var(--text-small); }
.section--ink .card__text { color: var(--color-on-ink-muted); }
.card__footer {
  margin-top: auto;
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.card__price { font-weight: var(--weight-bold); color: var(--color-text); }
.section--ink .card__price { color: var(--color-on-ink); }
/* Meta row (price | status chip) pushed to the card foot, link row above it. */
.card__meta {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.section--ink .card__meta { border-color: var(--ink-border); }
.card__link-row { margin: 0 0 var(--space-3); }
.card__link {
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.card__link:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.section--ink .card__link { color: var(--accent-bright); }

/* Chips — status / meta labels. Only TRUE statements. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.2em 0.7em;
  border-radius: var(--radius-pill);
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.chip--status {                      /* "In validation" — gray-700 on gray-100: 8.9:1 */
  background: var(--gray-100);
  color: var(--gray-700);
}
.chip--live {                        /* honest "live" only when true */
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.chip--free {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}

/* ==========================================================================
   STAT BAND — big numerals with labels. Numbers must be REAL (no invented
   social proof; honest internal facts only — see design-notes).
   ========================================================================== */
.stat-band {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 720px) {
  .stat-band { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
}
.stat-band__value {
  font-size: var(--text-stat);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-tight);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: var(--leading-solid);
  display: block;
}
.section--ink .stat-band__value { color: var(--accent-bright); }
.stat-band__label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
.section--ink .stat-band__label { color: var(--color-on-ink-muted); }

/* ==========================================================================
   STEPS — numbered 01/02/03 process rows (references' shared trait).
   ========================================================================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
}
.step { counter-increment: step; }
.step::before {
  content: "0" counter(step);
  display: block;
  font-size: var(--text-h3);
  font-weight: var(--weight-display);
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}
.section--ink .step::before { color: var(--accent-bright); }
.step__title { font-size: var(--text-body); font-weight: var(--weight-bold); margin: 0 0 var(--space-1); }
.step__text { margin: 0; color: var(--color-text-muted); font-size: var(--text-small); }
.section--ink .step__text { color: var(--color-on-ink-muted); }

/* ==========================================================================
   OFFER CARD (v0 component, v1 restyle) — price, perks, CTA, note.
   DO: real numbers only. DON'T: fake countdowns or invented scarcity.
   ========================================================================== */
.offer-card {
  max-width: 28rem;
  margin-inline: auto;
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.section--band .offer-card { border-color: transparent; }
.offer-card__title { text-align: center; }
.offer-card__price {
  font-size: var(--text-stat);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-tight);
  text-align: center;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.offer-card__price-was {
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-weight: 400;
  font-size: var(--text-body);
  margin-left: var(--space-2);
}
.offer-card__counter {
  text-align: center;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.offer-card__counter strong { color: var(--color-text); }
.offer-card__perks {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.offer-card__perks li {
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
}
.offer-card__perks li::before {
  content: "✓";
  color: var(--accent);
  font-weight: var(--weight-bold);
}
.offer-card__cta { margin-bottom: var(--space-3); }
.offer-card__note {
  text-align: center;
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin: 0;
}

/* ==========================================================================
   FORM (EMAIL CAPTURE / CALCULATOR INPUTS) — all FOUR states ship styled:
   (1) default (2) loading (.is-loading) (3) error (.has-error + __error)
   (4) success (__success). Works as a plain POST without JS (form.js
   upgrades it; contract frozen — see design-notes).
   ========================================================================== */
.signup-form {
  max-width: 26rem;
  margin-inline: auto;
  padding: var(--space-6);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.section--band .signup-form { border-color: transparent; }
.signup-form__fields,
.signup-form__field { min-width: 0; }
.signup-form__field { margin-bottom: var(--space-5); }
.signup-form__label {
  display: block;
  font-weight: 600;
  font-size: var(--text-small);
  margin-bottom: var(--space-2);
}
.signup-form__input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: var(--space-3);
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface-raised);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.signup-form__input::placeholder { color: var(--gray-500); }
.signup-form__input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.signup-form__input[aria-invalid="true"],
.has-error .signup-form__input { border-color: var(--color-error); }

.signup-form__submit { margin-top: var(--space-2); }

.signup-form__consent {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin: var(--space-4) 0 0;
}

/* State 3 — error: inline message next to the field. */
.signup-form__error {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-error);
}
.has-error .signup-form__label { color: var(--color-error); }

/* State 2 — loading: button disabled + spinner (pure CSS). */
.signup-form.is-loading .signup-form__submit {
  opacity: 0.7;
  cursor: progress;
}
.spinner {
  display: none;
  width: 1em;
  height: 1em;
  border: 2px solid color-mix(in srgb, var(--accent-contrast), transparent 60%);
  border-top-color: var(--accent-contrast);
  border-radius: 50%;
  animation: spinner-spin 700ms linear infinite;
}
.signup-form.is-loading .spinner { display: inline-block; }
@keyframes spinner-spin { to { transform: rotate(360deg); } }

/* State 4 — success: replaces the fields visually (JS toggles hidden). */
.signup-form__success {
  padding: var(--space-5);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--color-text);
  margin: 0;
}
.signup-form__success-title {
  display: block;
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-1);
}
.signup-form__success p { margin: 0; font-size: var(--text-small); }

/* ==========================================================================
   CTA BAND — the single closing ask on every page (ink background).
   ========================================================================== */
.cta-band__inner { text-align: center; max-width: 44rem; }
.cta-band__inner .kicker { margin-bottom: var(--space-4); }
.cta-band__title {
  font-size: var(--text-h1);
  margin-bottom: var(--space-5);
  max-width: 26ch;
  margin-inline: auto;
}
.cta-band__text {
  color: var(--color-on-ink-muted);
  font-size: var(--text-lead);
  max-width: 38ch;
  margin: 0 auto var(--space-8);
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
.cta-band__actions .btn { flex: 1 1 auto; }
@media (min-width: 720px) { .cta-band__actions .btn { flex: 0 0 auto; } }
.cta-band__micro {
  margin: var(--space-5) 0 0;
  font-size: var(--text-small);
  color: var(--color-on-ink-muted);
}

/* ==========================================================================
   FAQ (page kit) — details/summary with animated indicator (Pam gate).
   Legacy dl/dt/dd still styled for backward compat; new markup is
   <details class="faq__item"><summary class="faq__question">Q</summary>
   <div class="faq__answer"><div class="faq__answer-inner">A</div></div>
   Animation uses grid-template-rows 0fr→1fr (no height guess).
   Fallback: without grid support the answer simply appears.
   ========================================================================== */
.faq { max-width: 64ch; margin-inline: auto; }

/* — legacy dl support (kept, will be removed once all pages migrate) — */
.faq dl { margin: 0; display: grid; gap: 0; padding: 0; }
.faq dt { font-weight: var(--weight-bold); background: var(--color-surface-raised); border: 1px solid var(--color-border); border-radius: var(--radius-md) var(--radius-md) 0 0; border-bottom: 0; padding: var(--space-4) var(--space-5); margin: var(--space-3) 0 0; }
.faq dt:first-of-type { margin-top: 0; }
.faq dd { margin: 0; padding: var(--space-3) var(--space-5) var(--space-4); background: var(--color-surface-raised); border: 1px solid var(--color-border); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); color: var(--color-text-muted); font-size: var(--text-small); }
.faq dd:last-of-type { padding-bottom: var(--space-5); }

/* — new details/summary — */
.faq__list { margin: 0; display: grid; gap: var(--space-3); padding: 0; }
.faq__item {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: clip;
}
.faq__item[open] { border-color: var(--accent-line); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  font-weight: var(--weight-bold);
  font-size: var(--text-body);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2333608C' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) ease;
}
.faq__item[open] > .faq__question::after { transform: rotate(180deg); background-color: var(--accent-soft); }
.faq__question:hover::after { background-color: color-mix(in srgb, var(--accent) 14%, #ffffff); }
.faq__question:focus-visible { outline: var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms var(--ease-out);
}
.faq__item[open] > .faq__answer { grid-template-rows: 1fr; }
.faq__answer-inner {
  overflow: hidden;
  padding: 0 var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: var(--leading-body);
}
.faq__item[open] > .faq__answer > .faq__answer-inner { padding-bottom: var(--space-5); }
.faq__answer a { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .faq__answer { transition: none; }
  .faq__question::after { transition: none; }
}
/* section-level asymmetry for FAQ: wider container when used in split */
.faq--in-split { max-width: none; margin-inline: 0; }

/* ==========================================================================
   LANGUAGE SWITCHER — accessible dropdown (Pam gate).
   Header lives in .site-header--ink (dark) or sticky (light). The switcher
   is one disclosure: current language button + menu. No JS fallback = plain
   links. Adding a language is one object in site/shared/lang-switch.js.
   ========================================================================== */
.lang-switch { position: relative; display: inline-flex; }
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-small);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.lang-switch__btn:hover { background: var(--gray-50); border-color: var(--gray-300); }
.lang-switch__btn[aria-expanded="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.lang-switch__btn:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.lang-switch__label { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch__globe { width: 14px; height: 14px; opacity: 0.85; }
.lang-switch__chevron {
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
  transition: transform var(--motion-fast) var(--ease-out);
  opacity: 0.7;
}
.lang-switch__btn[aria-expanded="true"] .lang-switch__chevron { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 192px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.lang-switch__menu[hidden] { display: none !important; }
.lang-switch__menu li { margin: 0; }
.lang-switch__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-small);
  transition: background var(--motion-fast) ease;
}
.lang-switch__menu a:hover { background: var(--gray-50); text-decoration: none; color: var(--color-text); }
.lang-switch__menu a:focus-visible { outline: var(--focus-ring); outline-offset: -2px; }
.lang-switch__menu a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.lang-switch__menu a[aria-current="true"]::after {
  content: "✓";
  font-weight: 800;
  color: var(--accent);
}
.lang-switch__code { font-size: var(--text-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 700; }
.lang-switch__menu a[aria-current="true"] .lang-switch__code { color: var(--accent); }
/* ink header variant */
.site-header--ink .lang-switch__btn {
  background: rgba(255,255,255,0.08);
  border-color: var(--ink-border);
  color: var(--color-on-ink);
}
.site-header--ink .lang-switch__btn:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); }
.site-header--ink .lang-switch__btn[aria-expanded="true"] { background: rgba(255,255,255,0.14); color: var(--color-on-ink); border-color: rgba(255,255,255,0.28); }

/* ==========================================================================
   COMPOSITION HELPERS — break the everything-centered monotony (z-pattern).
   .split   = left copy / right media, stacks at <860. Use for pricing,
              FAQ, etc. Alternating gives the rhythm the references use.
   .cta-band--split keeps the closing band left-leaning, not centered.
   ========================================================================== */
.split {
  display: grid;
  gap: var(--space-8) var(--space-10);
  align-items: start;
}
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .split--reverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .split--in-ink { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.split__heading { margin-bottom: var(--space-3); }
.split__intro { color: var(--color-text-muted); max-width: none; margin-bottom: var(--space-6); }
.section--ink .split__intro { color: var(--color-on-ink-muted); }
.split__card-wrap { min-width: 0; }
.price-card--in-split { margin-inline: 0; max-width: none; text-align: left; }
.price-card--in-split .price-card__actions { justify-content: flex-start; }
.cta-band--split { text-align: left; max-width: none; }
.cta-band--split .cta-band__title { margin-inline: 0; max-width: 18ch; }
.cta-band--split .cta-band__text { margin-inline: 0; max-width: 42ch; }
.cta-band--split .cta-band__actions { justify-content: flex-start; }
@media (max-width: 859px) {
  .cta-band--split { text-align: center; }
  .cta-band--split .cta-band__title,
  .cta-band--split .cta-band__text { margin-inline: auto; }
  .cta-band--split .cta-band__actions { justify-content: center; }
}
/* pricing split micro: keep the queue badge left-aligned when in split */
.price-card--in-split .price-card__queue { margin-inline: 0; }
/* subtle left rule for split headings on light bands (not on ink) */
.split__heading--ruled {
  padding-left: var(--space-4);
  border-left: 3px solid var(--accent-line);
}

/* ==========================================================================
   PROSE — legal pages. Narrow measure, quiet rhythm, content unchanged.
   ========================================================================== */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--text-h2); margin-top: var(--space-10); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--color-text-muted); }
.prose li + li { margin-top: var(--space-2); }
.prose strong { color: var(--color-text); }

/* ==========================================================================
   SITE FOOTER (v0 component, v1 ink restyle) — brand + link columns +
   imprint + bottom bar. Same three facts as v0 (imprint / legal / family),
   darker and structured. Old .site-footer__grid markup still renders.
   ========================================================================== */
.site-footer {
  background: var(--color-ink);
  color: var(--color-on-ink-muted);
  padding-block: var(--space-16) var(--space-8);
  font-size: var(--text-small);
  border-top: 1px solid var(--ink-border);
}
.site-footer a { color: var(--color-on-ink-muted); }
.site-footer a:hover { color: var(--color-on-ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer h2, .site-footer h3 {
  color: var(--color-on-ink);
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
}
.site-footer__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-10);
}
/* auto-fit: new footers (brand + 3 columns) and legacy 3-group footers
   (attorneys/tutors pages, v0 markup) both fill their row evenly. */
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.site-footer__wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-h3);
  font-weight: var(--weight-display);
  letter-spacing: -0.02em;
  color: var(--color-on-ink);
  text-decoration: none;
}
.site-footer__wordmark:hover { color: var(--color-on-ink); text-decoration: none; }
.site-footer__wordmark svg { width: 26px; height: 26px; }
.site-footer__tagline { margin: 0; max-width: 30ch; }
.site-footer__group p { margin: 0 0 var(--space-1); }
.site-footer__legal,
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.site-footer__family { margin: 0; }
.site-footer__disclaimer { margin: var(--space-2) 0 0; color: var(--gray-500); }
/* Legacy tool pages declare their own disclaimer border on the v0 light
   footer; on the v1 ink footer it must use the ink hairline instead. */
.site-footer .site-footer__disclaimer { border-top-color: var(--ink-border); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--ink-border);
  margin: 0;
}
.site-footer__bottom p { margin: 0; }

/* ---- .badge-demo (payment-placeholder marker, STAGING ONLY) ----------------
   Marks CTAs whose Stripe link does not exist yet; auto-hides once
   SITE_CONFIG.stripe*Url is set. Muted text on accent tint, both AA. */
.badge-demo {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 0 var(--space-2);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--gray-600);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   SCROLL REVEAL — subtle fade-up (references' signature motion).
   reveal.js adds .js to <html> + .is-in to [data-reveal] on intersection.
   Without JS nothing is ever hidden. Reduced motion: no transform, instant.
   ========================================================================== */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--motion-reveal) var(--ease-out),
              transform var(--motion-reveal) var(--ease-out);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js [data-reveal][data-reveal="delay"] { transition-delay: 90ms; }

/* ---- Motion safety ---------------------------------------------------------
   Everything animated is cosmetic; off means OFF (not faster). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
