/* =============================================================================
   LessonCadence — landing page styles (Chroma)
   The CSS :root below is the web half of the design tokens. It is the SAME
   palette as packages/ui/lib/src/tokens/app_colors.dart, expressed twice
   (UI Style Guide §10). Change one → change the other in the same PR.
   The first :root block is a VERBATIM copy of the style guide §10 block and is
   what the token-parity test reads — do not edit it here alone.
   ========================================================================== */

:root {
  /* Chroma core (mirror of app_colors.dart) */
  --lc-canvas:        #FAF7F2;
  --lc-surface:       #FFFFFF;
  --lc-surface-muted: #F1EDE4;
  --lc-ink:           #15181E;
  --lc-ink-muted:     #4A4F5A;
  --lc-ink-faint:     #8C8578;
  --lc-line:          #E7E2D8;
  --lc-line-strong:   #DDD7CB;

  --lc-violet:        #5B4BE8;
  --lc-violet-soft:   #EAE7FF;
  --lc-coral:         #FF6A45;
  --lc-coral-soft:    #FFEDE4;
  --lc-mint:          #12B886;
  --lc-mint-soft:     #DFF6EE;
  --lc-amber:         #FFD166;
  --lc-amber-soft:    #FFF3D6;
  --lc-red:           #C4362C;
  --lc-red-soft:      #FCE9E6;

  /* On-tint foregrounds */
  --lc-on-mint-soft:   #0E6E52;
  --lc-on-amber-soft:  #87611A;
  --lc-on-violet-soft: #4437B8;
  --lc-on-red-soft:    #B3261E;
  --lc-on-coral-soft:  #AD4719;
  --lc-on-surface-muted: #5E626C;
  --lc-coral-pressed:  #E85229;
  --lc-on-action:      #15181E;

  /* Type */
  --lc-font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --lc-font-head: 'Bricolage Grotesque', var(--lc-font-body);
  --lc-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing (4pt) */
  --lc-xs: 4px;  --lc-sm: 8px;  --lc-md: 12px;
  --lc-lg: 16px; --lc-xl: 24px; --lc-xxl: 32px;

  /* Shape */
  --lc-radius-panel:   20px;
  --lc-radius-card:    18px;
  --lc-radius-control: 12px;
  --lc-radius-pill:    999px;
  --lc-maxw: 1200px;
}

/* -----------------------------------------------------------------------------
   Derived values — composed from the tokens above with color-mix(), never new
   brand colors. They live in their own block so the mirror above stays a
   verbatim, machine-comparable copy of the style guide.
   -------------------------------------------------------------------------- */
:root {
  /* Dark grounds (the problem section, the featured plan, the final CTA band,
     the footer) and the text that sits on them. */
  --lc-ink-raised:    color-mix(in srgb, var(--lc-ink) 90%, white);
  --lc-ink-deep:      color-mix(in srgb, var(--lc-ink) 82%, black);
  --lc-on-ink:        var(--lc-canvas);
  --lc-on-ink-muted:  color-mix(in srgb, var(--lc-canvas) 72%, var(--lc-ink));

  /* Violet identity panel (the founding offer). */
  --lc-on-violet:     #FFFFFF;
  --lc-on-violet-mut: color-mix(in srgb, white 86%, var(--lc-violet));

  /* Translucent scrims used on the violet and ink panels. */
  --lc-scrim-12:      color-mix(in srgb, white 12%, transparent);
  --lc-scrim-22:      color-mix(in srgb, white 22%, transparent);

  --lc-focus-ring:    color-mix(in srgb, var(--lc-violet) 26%, transparent);

  /* ink-faint is 3.66:1 on white — fine for resting icons and disabled labels,
     below AA for text. Placeholders are text, so they get a darkened variant
     (5.1:1 on surface, 4.8:1 on canvas). */
  --lc-ink-placeholder: color-mix(in srgb, var(--lc-ink-faint) 78%, var(--lc-ink));
}

/* -----------------------------------------------------------------------------
   Metric-matched fallback faces. The web fonts load with `display=swap`, so
   the page first paints in a local font and reflows when Google Fonts arrive.
   With plain Arial that reflow scored CLS 0.17 on the compare hero (mobile).
   These faces scale Arial/Liberation Sans (metric-identical) to the web
   fonts' measured widths and vertical metrics, so the swap moves nothing.
   Numbers: canvas measureText of a 200-char sample in headless Chrome, and
   hhea ascent/descent read from the served woff2 files (2026-09-09).
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Figtree Fallback'; font-weight: 400 600;
  src: local('Arial'), local('Liberation Sans'), local('Helvetica');
  size-adjust: 99.9%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Figtree Fallback'; font-weight: 700;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arial');
  size-adjust: 95.75%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Bricolage Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arial');
  size-adjust: 92.3%; ascent-override: 93%; descent-override: 27%; line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Liberation Mono'), local('Courier New'), local('Menlo');
  size-adjust: 100%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%;
}
:root {
  /* Same families as the token block above, with the matched fallbacks slotted
     in before the generic stacks. Overrides the verbatim mirror deliberately. */
  --lc-font-body: 'Figtree', 'Figtree Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --lc-font-head: 'Bricolage Grotesque', 'Bricolage Fallback', var(--lc-font-body);
  --lc-font-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--lc-font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--lc-ink);
  background: var(--lc-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Long brand/product names must break rather than push the page sideways
     when OS text scaling blows headings up (style guide section 9). */
  overflow-wrap: break-word;
}

/* JS toggles `hidden` on the counter, the login panel and the login link.
   Component display rules must never win over it. */
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--lc-font-head);
  color: var(--lc-ink);
  line-height: 1.08;
  margin: 0 0 var(--lc-md);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.4vw, 3.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

p { margin: 0 0 var(--lc-md); }
a { color: var(--lc-violet); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { font-weight: 700; }
em { font-style: italic; }

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

/* Visible focus for keyboard users — the violet ring (style guide §6.3, §9). */
:focus-visible {
  outline: 3px solid var(--lc-violet);
  outline-offset: 2px;
  border-radius: var(--lc-xs);
}

.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;
}

.skip-link {
  position: absolute; left: var(--lc-md); top: -60px;
  background: var(--lc-violet); color: var(--lc-on-violet);
  padding: var(--lc-sm) var(--lc-lg); border-radius: var(--lc-radius-control);
  z-index: 100; transition: top .15s ease;
}
.skip-link:focus { top: var(--lc-md); }

/* ----------------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--lc-maxw); margin-inline: auto; padding-inline: var(--lc-lg); }
@media (min-width: 840px) { .wrap { padding-inline: var(--lc-xl); } }

section { padding-block: clamp(48px, 8vw, 96px); }

/* Mono eyebrow label — uppercase, tracked, on a soft pill (style guide §4). */
.eyebrow {
  display: inline-block;
  font-family: var(--lc-font-mono);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lc-on-violet-soft);
  background: var(--lc-violet-soft);
  padding: var(--lc-sm) var(--lc-md);
  border-radius: var(--lc-radius-pill);
  margin-bottom: var(--lc-lg);
}
.section-head { max-width: 62ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.lede { font-size: 1.125rem; color: var(--lc-ink-muted); max-width: 62ch; }
.lede strong { color: var(--lc-ink); }

/* ----------------------------------------------------------------------------
   Wordmark — a violet rounded square holding a coral bar with an amber bar
   below it (Chroma mark), next to the name in Bricolage 800.
   ------------------------------------------------------------------------- */
.brand {
  display: inline-flex; align-items: center; gap: var(--lc-sm);
  font-family: var(--lc-font-head); font-weight: 800; font-size: 1.2rem;
  letter-spacing: -0.02em; color: var(--lc-ink); min-height: 44px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: none;
  border-radius: 10px; background: var(--lc-violet);
}
.brand .mark::before {
  content: ""; display: block;
  width: 14px; height: 3px; border-radius: 2px;
  background: var(--lc-coral);
  box-shadow: 0 5px 0 var(--lc-amber);
  /* The amber bar is drawn by the shadow, so nudge the pair to sit centred. */
  transform: translateY(-2.5px);
}
.brand .mark-sm { width: 26px; height: 26px; border-radius: 9px; }

/* ----------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--lc-sm);
  min-height: 44px; padding: 0 var(--lc-xl);
  font-family: var(--lc-font-body); font-size: 1rem; font-weight: 700;
  border-radius: var(--lc-radius-control); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background .15s ease, transform .05s ease, border-color .15s ease;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
/* Disabled wins over .btn-primary on specificity, so it also neutralises the
   coral edge — an inactive control is exempt from 1.4.11 and a coral outline
   around a grey fill would read as active. (#wl-submit takes this state while
   the waitlist POST is in flight.) */
.btn[disabled] {
  background: var(--lc-surface-muted); color: var(--lc-ink-faint);
  border-color: var(--lc-line-strong); cursor: default;
}

/* The single primary action (§6.1). The brand hue is kept exactly as designed
   and the LABEL is set in ink, not white: white on #FF6A45 measures 2.84:1, a
   real AA failure at the 16px/700 label size. Ink on coral measures 6.26:1 and
   ink on coral-pressed 4.80:1 — both clear AA. This matches AppColors.onAction
   in packages/ui, so web and Flutter resolve the identical pair.

   The 1.5px coral-pressed EDGE is load-bearing, not decoration: the coral fill
   is only 2.66:1 against canvas and 2.84:1 against surface, which fails WCAG
   1.4.11 for identifying the control. The edge is 3.47:1 on canvas and 3.70:1
   on surface, so it carries the boundary; against the fill it is 1.31:1, so it
   reads as a soft edge rather than an outline. Mirrored from
   FilledButtonThemeData.side in packages/ui and pinned from both directions in
   contrast_test.dart — do not remove it. */
.btn-primary {
  background: var(--lc-coral); color: var(--lc-on-action);
  border: 1.5px solid var(--lc-coral-pressed);
}
.btn-primary:hover {
  background: var(--lc-coral-pressed); color: var(--lc-on-action);
  border-color: var(--lc-coral-pressed);
}

/* Amber "needs you" action — used on the violet and ink panels (§3.1). */
.btn-warm { background: var(--lc-amber); color: var(--lc-ink); }
.btn-warm:hover { background: color-mix(in srgb, var(--lc-amber) 84%, var(--lc-ink)); }

/* Secondary — surface fill, 1.5px strong hairline (§6.1). */
.btn-outline { background: var(--lc-surface); color: var(--lc-ink); border: 1.5px solid var(--lc-line-strong); font-weight: 600; }
.btn-outline:hover { background: var(--lc-surface-muted); }

.btn-lg { min-height: 52px; font-size: 1.0625rem; padding-inline: var(--lc-xxl); }
/* On phones the generous inline padding can squeeze a full-width label into a
   second line; the target stays ≥44px either way. */
@media (max-width: 599px) {
  .btn { padding-inline: var(--lc-lg); }
  .btn-lg { padding-inline: var(--lc-xl); }
}

/* ----------------------------------------------------------------------------
   Nav
   ------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--lc-canvas) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--lc-line);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
  /* Wrap rather than overflow when the nav is crowded (narrow screens, or OS
     text scaled to 200% — style guide section 9). */
  flex-wrap: wrap; row-gap: var(--lc-sm); padding-block: var(--lc-sm);
}
.nav-links { display: none; gap: var(--lc-lg); align-items: center; }
.nav-links a {
  color: var(--lc-ink-muted); font-weight: 500;
  display: inline-flex; align-items: center; min-height: 44px;
  padding-inline: var(--lc-xs);
}
.nav-links a:hover { color: var(--lc-ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--lc-violet); font-weight: 600; }
.nav-cta { display: inline-flex; }
@media (min-width: 840px) { .nav-links { display: inline-flex; gap: var(--lc-xl); } }

/* ----------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(70% 90% at 88% 4%, color-mix(in srgb, var(--lc-coral-soft) 70%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--lc-violet-soft) 55%, var(--lc-canvas)) 0%, var(--lc-canvas) 72%);
}
.hero .wrap { display: grid; gap: var(--lc-xxl); align-items: center; }
@media (min-width: 840px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
.hero h1 { margin-top: var(--lc-sm); }
.hero .lede { font-size: 1.1875rem; margin-bottom: var(--lc-xl); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--lc-md); align-items: center; }
.hero-micro { margin-top: var(--lc-lg); color: var(--lc-ink-muted); font-size: 0.95rem; }
.hero-micro strong { color: var(--lc-ink); }
.trust-line {
  margin-top: var(--lc-lg); font-family: var(--lc-font-mono); font-size: 0.75rem;
  letter-spacing: 0.04em; color: var(--lc-ink-muted);
  display: flex; gap: var(--lc-md); flex-wrap: wrap; align-items: center;
}
.trust-line span { display: inline-flex; align-items: center; gap: 6px; }

/* ----------------------------------------------------------------------------
   Lesson-loop visual (the signature)
   ------------------------------------------------------------------------- */
.loop {
  background: var(--lc-surface); border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-card); padding: var(--lc-xl);
}
.loop-title {
  font-family: var(--lc-font-mono); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lc-ink-muted); margin-bottom: var(--lc-lg);
}
.loop-steps { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--lc-sm); }
.loop-step {
  flex: 1 1 auto; display: flex; align-items: center; gap: var(--lc-sm);
  padding: var(--lc-md) var(--lc-lg); min-height: 44px;
  background: var(--lc-violet-soft); color: var(--lc-on-violet-soft);
  border-radius: var(--lc-radius-control);
  font-weight: 600; font-size: 0.9375rem; white-space: nowrap;
}
.loop-step .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lc-violet); flex: none; }
/* Money received is mint, everywhere (§3.1). */
.loop-step.paid { background: var(--lc-mint-soft); color: var(--lc-on-mint-soft); }
.loop-step.paid .dot { background: var(--lc-mint); }
/* Times and durations read as data, not prose (§4.2). */
.loop-step.data { font-family: var(--lc-font-mono); font-weight: 500; letter-spacing: 0.02em; }
.loop-arrow { align-self: center; color: var(--lc-line-strong); flex: none; font-size: 1.1rem; }
.loop-caption { margin-top: var(--lc-lg); margin-bottom: 0; color: var(--lc-ink-muted); font-size: 0.9375rem; }

/* ----------------------------------------------------------------------------
   Hero product mock — a teacher's Today view, drawn in HTML so it costs no
   bytes to load. Illustrative figures; aria-hidden in the markup.
   ------------------------------------------------------------------------- */
.mock {
  background: var(--lc-surface); border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-card); padding: var(--lc-lg);
  display: grid; gap: var(--lc-md);
}
.mock-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--lc-md); }
.mock-title { font-family: var(--lc-font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.mock-pill {
  font-family: var(--lc-font-mono); font-size: 0.75rem; letter-spacing: 0.04em;
  background: var(--lc-surface-muted); color: var(--lc-on-surface-muted);
  padding: 4px var(--lc-md); border-radius: var(--lc-radius-pill);
}
.mock-lesson {
  display: grid; gap: var(--lc-sm);
  border: 1px solid var(--lc-line); border-radius: var(--lc-radius-control);
  padding: var(--lc-md) var(--lc-lg);
  border-left: 4px solid var(--lc-violet);
}
.mock-lesson + .mock-lesson { border-left-color: var(--lc-coral); }
@media (min-width: 600px) { .mock-lesson { grid-template-columns: auto 1fr; gap: var(--lc-lg); } }
.mock-time { font-family: var(--lc-font-mono); font-size: 0.8125rem; font-weight: 500; color: var(--lc-ink-muted); white-space: nowrap; padding-top: 3px; }
.mock-name { font-weight: 700; margin-bottom: var(--lc-sm); }
.mock-name span { font-weight: 500; color: var(--lc-ink-muted); }
.mock-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-chip {
  font-size: 0.8125rem; font-weight: 600; padding: 4px 10px;
  border-radius: var(--lc-radius-pill); line-height: 1.4;
}
.mock-chip.violet { background: var(--lc-violet-soft); color: var(--lc-on-violet-soft); }
.mock-chip.amber  { background: var(--lc-amber-soft);  color: var(--lc-on-amber-soft); }
.mock-chip.mint   { background: var(--lc-mint-soft);   color: var(--lc-on-mint-soft); }
.mock-chip.coral  { background: var(--lc-coral-soft);  color: var(--lc-on-coral-soft); }
.mock-foot {
  display: flex; flex-wrap: wrap; gap: var(--lc-sm) var(--lc-lg);
  padding-top: var(--lc-md); border-top: 1px solid var(--lc-line);
  font-family: var(--lc-font-mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--lc-ink-muted);
}
.mock-foot strong { font-family: var(--lc-font-head); font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; color: var(--lc-ink); font-variant-numeric: tabular-nums; }
.mock-foot .mint strong { color: var(--lc-on-mint-soft); }

/* ----------------------------------------------------------------------------
   How it works — the six numbered steps under the loop
   ------------------------------------------------------------------------- */
.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 0;
  display: grid; gap: var(--lc-md);
}
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step; position: relative;
  background: var(--lc-surface); border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-card); padding: var(--lc-lg) var(--lc-lg) var(--lc-lg) 60px;
  color: var(--lc-ink-muted); font-size: 0.9375rem;
}
.steps li strong { color: var(--lc-ink); }
.steps li::before {
  content: counter(step); position: absolute; left: var(--lc-lg); top: var(--lc-lg);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--lc-font-mono); font-size: 0.8125rem; font-weight: 500;
  background: var(--lc-violet-soft); color: var(--lc-on-violet-soft);
}
.steps li:last-child::before { background: var(--lc-mint-soft); color: var(--lc-on-mint-soft); }

/* ----------------------------------------------------------------------------
   Feature grid — the whole suite, one card per area
   ------------------------------------------------------------------------- */
.feature-grid { display: grid; gap: var(--lc-lg); grid-template-columns: 1fr; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  /* Ten cards on a three-column grid: the last one (import / own your data)
     closes the section as a full-width band with its list in two columns. */
  .feature:nth-child(3n+1):last-child { grid-column: 1 / -1; }
  .feature:nth-child(3n+1):last-child ul { columns: 2; column-gap: var(--lc-xl); }
  .feature:nth-child(3n+1):last-child li { break-inside: avoid; }
}
.feature ul { list-style: none; padding: 0; margin: 0; color: var(--lc-ink-muted); font-size: 0.9375rem; }
.feature li { padding-left: 22px; position: relative; margin-bottom: var(--lc-sm); }
.feature li:last-child { margin-bottom: 0; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px;
  border-radius: 50%; background: color-mix(in srgb, var(--lc-violet) 28%, transparent);
}
.feature:nth-child(3n+2) .icon-badge { background: var(--lc-coral-soft); }
.feature:nth-child(3n+3) .icon-badge { background: var(--lc-mint-soft); }
.feature:nth-child(3n+2) li::before { background: color-mix(in srgb, var(--lc-coral) 32%, transparent); }
.feature:nth-child(3n+3) li::before { background: color-mix(in srgb, var(--lc-mint) 36%, transparent); }

/* Stacked chips inside a band visual. */
.mini-stack { display: grid; gap: var(--lc-sm); width: 100%; }
.mini-stack .loop-step { justify-content: flex-start; }

/* Trust strip cards share the persona accent bars. */
.trust-grid .card h3 { font-size: 1.125rem; }

/* ----------------------------------------------------------------------------
   Cards / grids
   ------------------------------------------------------------------------- */
.card {
  background: var(--lc-surface); border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-card); padding: var(--lc-xl);
}
.grid { display: grid; gap: var(--lc-lg); }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 840px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.icon-badge {
  width: 44px; height: 44px; border-radius: var(--lc-radius-control);
  display: grid; place-items: center; font-size: 1.25rem; line-height: 1;
  background: var(--lc-violet-soft); margin-bottom: var(--lc-lg);
}
.card h3 { margin-bottom: var(--lc-sm); }
.card p { color: var(--lc-ink-muted); margin-bottom: 0; }

.section-alt { background: var(--lc-surface-muted); border-block: 1px solid var(--lc-line); }

/* The one deliberate dark contrast moment above the fold's fold: the problem. */
.section-dark { background: var(--lc-ink); color: var(--lc-on-ink); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--lc-on-ink); }
.section-dark p, .section-dark .lede { color: var(--lc-on-ink-muted); }
.section-dark .eyebrow {
  color: var(--lc-amber);
  background: color-mix(in srgb, var(--lc-amber) 16%, transparent);
}
.section-dark .card {
  background: var(--lc-ink-raised); border-color: color-mix(in srgb, white 10%, transparent);
}
.section-dark .card p { color: var(--lc-on-ink-muted); }
/* Each problem gets its own accent square — decorative only; the heading
   carries the meaning (§3.4, never colour alone). */
.section-dark .card:nth-of-type(1) .icon-badge { background: var(--lc-coral); }
.section-dark .card:nth-of-type(2) .icon-badge { background: var(--lc-violet); }
.section-dark .card:nth-of-type(3) .icon-badge { background: var(--lc-mint); }

/* ----------------------------------------------------------------------------
   Value bands (alternating tinted panels: violet → coral → mint)
   ------------------------------------------------------------------------- */
.bands .wrap { display: flex; flex-direction: column; gap: var(--lc-xl); }
.pillar {
  display: grid; gap: var(--lc-xl); align-items: center;
  border-radius: var(--lc-radius-panel);
  padding: var(--lc-xl);
}
@media (min-width: 840px) {
  .pillar { grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px; }
  .pillar.reverse .pillar-visual { order: -1; }
}
.pillar h2 { margin-bottom: var(--lc-md); }
.pillar .lede { color: var(--lc-ink-muted); margin-bottom: 0; }
.pillar .eyebrow { background: var(--lc-surface); }

.pillar:nth-of-type(1) { background: var(--lc-violet-soft); }
.pillar:nth-of-type(1) .eyebrow { color: var(--lc-on-violet-soft); }
.pillar:nth-of-type(2) { background: var(--lc-coral-soft); }
.pillar:nth-of-type(2) .eyebrow { color: var(--lc-on-coral-soft); }
.pillar:nth-of-type(3) { background: var(--lc-mint-soft); }
.pillar:nth-of-type(3) .eyebrow { color: var(--lc-on-mint-soft); }
.pillar:nth-of-type(4) { background: var(--lc-amber-soft); }
.pillar:nth-of-type(4) .eyebrow { color: var(--lc-on-amber-soft); }
.pillar:nth-of-type(5) { background: var(--lc-surface-muted); }
.pillar:nth-of-type(5) .eyebrow { color: var(--lc-on-surface-muted); }

.pillar-visual {
  background: var(--lc-surface); border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-card); min-height: 200px;
  display: grid; place-items: center; padding: var(--lc-xl);
}
/* The band visuals reuse .loop-step but carry full sentences, so they must
   wrap — the nowrap that keeps the lesson-loop chain tidy would push the page
   sideways at 200% text scale. */
.pillar-visual .loop-step { white-space: normal; flex: 0 1 auto; font-size: 1.0625rem; }

/* ----------------------------------------------------------------------------
   Personas
   ------------------------------------------------------------------------- */
.persona { position: relative; padding-top: var(--lc-xl); }
.persona h3 { font-size: 1.125rem; }
.persona::before {
  content: ""; position: absolute; top: 0; left: var(--lc-xl); right: var(--lc-xl);
  height: 4px; border-radius: 0 0 var(--lc-xs) var(--lc-xs); background: var(--lc-violet);
}
.persona:nth-of-type(2)::before { background: var(--lc-coral); }
.persona:nth-of-type(3)::before { background: var(--lc-mint); }
.persona:nth-of-type(4)::before { background: var(--lc-amber); }

/* ----------------------------------------------------------------------------
   Founding offer / counter — the violet identity panel
   ------------------------------------------------------------------------- */
.offer { background: var(--lc-canvas); }
.offer-panel {
  background: var(--lc-violet); color: var(--lc-on-violet);
  border-radius: 24px; padding: var(--lc-xl);
  display: grid; gap: var(--lc-xl); align-items: center;
}
@media (min-width: 840px) {
  .offer-panel { grid-template-columns: 1.2fr 0.8fr; gap: 48px; padding: 48px; }
}
.offer-panel h2 { color: var(--lc-on-violet); }
.offer-panel .lede { color: var(--lc-on-violet-mut); margin-bottom: 0; }
.offer-panel .lede strong { color: var(--lc-on-violet); }
/* A light scrim over violet lands at #7f73ed — 3.76:1 under white 12px mono
   text, an AA failure. An ink scrim darkens the pill instead: white on it is
   above 6:1, and it still reads as a chip on the panel. */
.offer-panel .eyebrow { color: var(--lc-on-violet); background: color-mix(in srgb, var(--lc-ink) 22%, transparent); }
.offer-panel .section-head { margin-bottom: 0; }

.offer-aside {
  background: var(--lc-scrim-12); border-radius: var(--lc-radius-card);
  padding: var(--lc-xl);
}
.offer-aside .btn { width: 100%; }
.counter { margin: 0 0 var(--lc-lg); }
.counter-label {
  font-family: var(--lc-font-mono); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--lc-on-violet); margin-bottom: var(--lc-md);
}
.counter-bar {
  height: 12px; border-radius: var(--lc-radius-pill);
  background: var(--lc-scrim-22); overflow: hidden;
}
.counter-fill { height: 100%; width: 0; border-radius: var(--lc-radius-pill); background: var(--lc-amber); transition: width .6s ease; }
@media (prefers-reduced-motion: reduce) { .counter-fill { transition: none; } }

/* ----------------------------------------------------------------------------
   Waitlist form
   ------------------------------------------------------------------------- */
.signup {
  background: var(--lc-surface); border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-panel); padding: var(--lc-xl);
}
@media (min-width: 840px) { .signup { padding: var(--lc-xxl); } }
.form-row { display: grid; gap: var(--lc-md); }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
/* min-width:0 stops an input's default intrinsic width from widening its grid
   column (and the page) once OS text scaling kicks in. */
.form-row > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* Always a visible label above the field — a placeholder is never a label. */
.field label { font-size: 0.875rem; font-weight: 600; color: var(--lc-ink); }
.field label .opt { color: var(--lc-ink-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--lc-font-body); font-size: 1rem; color: var(--lc-ink);
  padding: 12px var(--lc-lg); border: 1.5px solid var(--lc-line-strong);
  border-radius: var(--lc-radius-control); background: var(--lc-surface); min-height: 44px;
  width: 100%; min-width: 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--lc-ink-placeholder); }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--lc-violet); outline: none;
  box-shadow: 0 0 0 3px var(--lc-focus-ring);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--lc-red); }
.field-error { display: none; align-items: center; gap: 6px; color: var(--lc-on-red-soft); font-size: 0.85rem; }
.field-error.show { display: flex; }
/* The design-partner opt-in: a checkbox and its label on one row. */
.field-check { flex-direction: row; align-items: center; gap: var(--lc-sm); margin-top: var(--lc-lg); }
.field-check input { width: 18px; height: 18px; min-height: auto; accent-color: var(--lc-violet); flex: none; }
/* The box itself is 18px, so the label carries the 44px hit area (§9). */
.field-check label { font-weight: 500; display: flex; align-items: center; min-height: 44px; cursor: pointer; }
.form-actions { margin-top: var(--lc-lg); }
.form-note {
  font-family: var(--lc-font-mono); font-size: 0.75rem; line-height: 1.6;
  letter-spacing: 0.02em; color: var(--lc-ink-muted);
  margin-top: var(--lc-lg); margin-bottom: 0;
}
.dp-fields { display: none; }
.dp-fields.show { display: grid; gap: var(--lc-md); margin-top: var(--lc-md); }

.form-status { display: none; border-radius: var(--lc-radius-control); padding: var(--lc-lg); gap: var(--lc-sm); align-items: flex-start; }
.form-status.show { display: flex; }
.form-status.success { background: var(--lc-mint-soft); border: 1px solid var(--lc-mint); color: var(--lc-on-mint-soft); }
.form-status.info { background: var(--lc-violet-soft); border: 1px solid var(--lc-violet); color: var(--lc-on-violet-soft); }
.form-status.error { background: var(--lc-red-soft); border: 1px solid var(--lc-red); color: var(--lc-on-red-soft); }
.form-status strong { display: block; margin-bottom: 2px; }

/* Site-wide confirmed banner (after email confirm redirect). Mint is money and
   good news; the ink label keeps it at 6.9:1. */
.confirm-banner { display: none; background: var(--lc-mint); color: var(--lc-ink); text-align: center; padding: var(--lc-md) var(--lc-lg); font-weight: 600; }
.confirm-banner.show { display: block; }
.confirm-banner a { color: var(--lc-ink); text-decoration: underline; }

/* ----------------------------------------------------------------------------
   Pricing
   ------------------------------------------------------------------------- */
.plans { display: grid; gap: var(--lc-lg); align-items: start; }
/* Four tiers: 2-up on tablets, 4-up once there is room for them. */
@media (min-width: 840px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; border-radius: var(--lc-radius-panel); }
.plan h3 { font-size: 1.25rem; margin-bottom: 0; }
/* The featured tier is the dark money card (§6.2). */
.plan.featured {
  position: relative; background: var(--lc-ink); border-color: var(--lc-ink);
  color: var(--lc-on-ink); margin-top: var(--lc-md);
}
.plan.featured h3 { color: var(--lc-on-ink); }
.plan.featured .price { color: var(--lc-on-ink); }
.plan.featured .price small { color: var(--lc-on-ink-muted); }
.plan.featured .founding { color: var(--lc-amber); }
.plan.featured ul { color: var(--lc-on-ink-muted); }
.plan.featured li::before { background: color-mix(in srgb, var(--lc-amber) 55%, transparent); }
.plan .tag {
  align-self: flex-start;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  background: var(--lc-amber); color: var(--lc-ink);
  padding: 6px var(--lc-md); border-radius: var(--lc-radius-pill);
  margin-bottom: var(--lc-md);
}
.plan.featured .tag { position: absolute; top: -14px; left: var(--lc-xl); margin: 0; }
.plan.featured h3 { margin-top: var(--lc-sm); }
/* Money is Bricolage 800 and always tabular (§4.2). */
.plan .price {
  font-family: var(--lc-font-head); font-size: 2.6rem; font-weight: 800;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  margin: var(--lc-sm) 0 2px;
}
.plan .price small { font-family: var(--lc-font-body); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; color: var(--lc-ink-muted); }
.plan .founding { color: var(--lc-on-violet-soft); font-weight: 600; font-size: 0.9rem; margin-bottom: var(--lc-lg); }
.plan ul { list-style: none; padding: 0; margin: 0; color: var(--lc-ink-muted); font-size: 0.9375rem; }
.plan li { padding-left: 26px; position: relative; margin-bottom: var(--lc-sm); }
.plan li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: color-mix(in srgb, var(--lc-violet) 24%, transparent); }
.pricing-note {
  text-align: center; font-family: var(--lc-font-mono); font-size: 0.75rem;
  line-height: 1.7; letter-spacing: 0.02em;
  color: var(--lc-ink-muted); margin-top: var(--lc-xl); margin-bottom: 0;
}

/* ----------------------------------------------------------------------------
   Comparison teaser strip (amber)
   ------------------------------------------------------------------------- */
.teaser {
  background: var(--lc-amber-soft);
  border: 1.5px solid color-mix(in srgb, var(--lc-amber) 70%, var(--lc-line));
  border-radius: var(--lc-radius-panel);
  padding: var(--lc-xl) var(--lc-xxl);
}
.teaser .teaser-lead { margin: 0 0 var(--lc-sm); font-size: 1.0625rem; color: var(--lc-ink); }
.teaser .teaser-note { margin: 0; font-family: var(--lc-font-mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--lc-on-amber-soft); }
.teaser a { color: var(--lc-on-violet-soft); font-weight: 600; text-decoration: underline; }

/* ----------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--lc-line); border-radius: var(--lc-radius-card);
  background: var(--lc-surface); margin-bottom: var(--lc-md);
}
.faq summary {
  cursor: pointer; padding: var(--lc-lg) var(--lc-xl); min-height: 44px;
  font-family: var(--lc-font-head); font-weight: 700; font-size: 1.0625rem;
  letter-spacing: -0.01em;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--lc-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--lc-font-mono); font-size: 1.25rem; color: var(--lc-violet); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 var(--lc-xl) var(--lc-xl); margin: 0; color: var(--lc-ink-muted); }

/* ----------------------------------------------------------------------------
   Final CTA band + footer
   ------------------------------------------------------------------------- */
.cta-band { background: var(--lc-ink); color: var(--lc-on-ink); text-align: center; }
.cta-band h2 { color: var(--lc-on-ink); font-size: clamp(2rem, 4.6vw, 3.25rem); }
.cta-band p { color: var(--lc-on-ink-muted); font-size: 1.125rem; }
.cta-band .btn { margin-top: var(--lc-md); }

.footer {
  background: var(--lc-ink-deep); color: var(--lc-on-ink-muted);
  padding-block: var(--lc-xxl); font-size: 0.9rem;
}
.footer .wrap { display: grid; gap: var(--lc-lg); }
@media (min-width: 600px) { .footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.footer .brand { color: var(--lc-on-ink); font-size: 1.05rem; }
.footer-links { display: flex; gap: var(--lc-lg); flex-wrap: wrap; }
.footer-links a { color: var(--lc-on-ink-muted); display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--lc-on-ink); }
.footer .mission { max-width: 44ch; margin: var(--lc-md) 0 var(--lc-sm); }

/* ----------------------------------------------------------------------------
   Scroll-reveal (opt-in; JS adds .reveal, reduced-motion disables)
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------------------------------------------
   Legal / prose pages (privacy, terms)
   ------------------------------------------------------------------------- */
.legal { max-width: 760px; margin-inline: auto; }
.legal .updated { font-family: var(--lc-font-mono); font-size: 0.8125rem; color: var(--lc-ink-muted); margin-top: calc(-1 * var(--lc-sm)); }
.legal h2 { font-size: 1.4rem; margin-top: var(--lc-xxl); }
.legal h3 { font-size: 1.1rem; margin-top: var(--lc-xl); }
.legal p, .legal li { color: var(--lc-ink-muted); }
.legal ul { padding-left: var(--lc-xl); margin: 0 0 var(--lc-md); }
.legal li { margin-bottom: var(--lc-sm); }
.legal a { text-decoration: underline; }
.legal .toc { background: var(--lc-surface); border: 1px solid var(--lc-line); border-radius: var(--lc-radius-card); padding: var(--lc-lg) var(--lc-xl); margin-bottom: var(--lc-xl); }
.legal .toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--lc-xs); }
.legal .toc a { color: var(--lc-violet); }
.legal .note {
  background: var(--lc-amber-soft);
  border: 1.5px solid color-mix(in srgb, var(--lc-amber) 70%, var(--lc-line));
  border-radius: var(--lc-radius-card); padding: var(--lc-lg); font-size: 0.9rem;
}
.legal .note p { color: var(--lc-ink); margin: 0; }
.legal .back { display: inline-flex; align-items: center; gap: var(--lc-xs); min-height: 44px; margin-bottom: var(--lc-sm); font-weight: 600; text-decoration: none; }

/* ----------------------------------------------------------------------------
   Login area (nav dropdown panel)
   The marketing site never handles credentials: the panel is an *entry point*
   that hands off to the app's own sign-in screen on the app origin. See
   compare/README notes and PRD 07 FR-MKT-13.
   ------------------------------------------------------------------------- */
.nav-auth { position: relative; display: inline-flex; align-items: center; gap: var(--lc-sm); flex-wrap: wrap; }
.login-toggle {
  background: var(--lc-surface); color: var(--lc-ink);
  border: 1.5px solid var(--lc-line-strong); font-weight: 600;
  padding-inline: var(--lc-lg);
}
.login-toggle:hover { background: var(--lc-surface-muted); }
.login-toggle .chev { transition: transform .15s ease; }
.login-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .login-toggle .chev { transition: none; } }

.login-panel {
  position: absolute; top: calc(100% + var(--lc-sm)); right: 0; z-index: 60;
  width: min(320px, calc(100vw - var(--lc-xl)));
  background: var(--lc-surface); border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-panel); padding: var(--lc-xl);
  /* A transient floating layer — the one place a shadow is allowed (§5.3). */
  box-shadow: 0 30px 60px -25px color-mix(in srgb, var(--lc-ink) 40%, transparent);
}
.login-panel .login-title { font-family: var(--lc-font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--lc-ink); margin-bottom: var(--lc-xs); }
.login-panel p { font-size: 0.9rem; color: var(--lc-ink-muted); }
.login-panel .btn { width: 100%; }
.login-panel .login-alt { margin: var(--lc-md) 0 0; font-size: 0.85rem; }
.login-panel hr { border: 0; border-top: 1px solid var(--lc-line); margin: var(--lc-lg) 0; }
.login-note {
  display: flex; gap: var(--lc-sm); align-items: flex-start;
  background: var(--lc-surface-muted); border-radius: var(--lc-radius-control);
  padding: var(--lc-md); font-size: 0.8125rem; color: var(--lc-ink-muted);
  margin: var(--lc-md) 0 0;
}
/* Pre-launch state: no public app yet, so we say so instead of linking nowhere. */
.login-panel .prelaunch {
  background: var(--lc-amber-soft);
  border: 1px solid color-mix(in srgb, var(--lc-amber) 70%, var(--lc-line));
}
.login-panel .prelaunch p { color: var(--lc-ink); margin: 0; }

/* On phones the panel drops to full width under the sticky nav. */
@media (max-width: 599px) {
  .login-panel { position: fixed; left: var(--lc-md); right: var(--lc-md); width: auto; top: 76px; }
}

/* ----------------------------------------------------------------------------
   Comparison page (compare.html)
   ------------------------------------------------------------------------- */
.compare-hero {
  background: linear-gradient(180deg, color-mix(in srgb, var(--lc-violet-soft) 55%, var(--lc-canvas)) 0%, var(--lc-canvas) 80%);
}
.compare-hero .wrap { max-width: 840px; }

/* Every claim on the page is dated + sourced; this is the standing disclosure. */
.verified {
  display: flex; gap: var(--lc-sm); align-items: flex-start;
  background: var(--lc-surface); border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-card); padding: var(--lc-lg);
  font-size: 0.9rem; color: var(--lc-ink-muted);
  margin-top: var(--lc-xl);
}
.verified strong { color: var(--lc-ink); }
/* Links inside running text need more than colour to be found (WCAG 1.4.1). */
.verified a { text-decoration: underline; }

/* Wide table scrolls inside its own container — the page never scrolls sideways. */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-card);
  background: var(--lc-surface);
  -webkit-overflow-scrolling: touch;
}
.table-scroll:focus-visible { outline: 3px solid var(--lc-violet); outline-offset: 2px; }
.table-hint { font-family: var(--lc-font-mono); font-size: 0.75rem; color: var(--lc-ink-muted); margin: var(--lc-sm) 0 0; }
@media (min-width: 1040px) { .table-hint { display: none; } }

table.compare {
  border-collapse: collapse; width: 100%; min-width: 1080px;
  font-size: 0.9rem; text-align: left;
}
table.compare caption { text-align: left; padding: var(--lc-lg) var(--lc-lg) 0; font-family: var(--lc-font-mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--lc-ink-muted); }
table.compare th, table.compare td {
  padding: var(--lc-md) var(--lc-lg);
  border-bottom: 1px solid var(--lc-line);
  vertical-align: top;
}
table.compare thead th {
  background: var(--lc-surface-muted); color: var(--lc-ink);
  font-family: var(--lc-font-head); font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--lc-line-strong);
}
table.compare tbody th {
  font-weight: 600; color: var(--lc-ink);
  background: var(--lc-surface); white-space: nowrap;
}
table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td { border-bottom: 0; }
/* Our own column, gently highlighted — not shouted. */
table.compare .col-lc { background: color-mix(in srgb, var(--lc-violet) 6%, var(--lc-surface)); }
table.compare thead .col-lc { background: color-mix(in srgb, var(--lc-violet) 14%, var(--lc-surface-muted)); }
table.compare td small { display: block; color: var(--lc-ink-muted); font-size: 0.8125rem; margin-top: 2px; }
.vendor-sub { display: block; font-weight: 500; font-size: 0.78rem; color: var(--lc-ink-muted); }

/* Status marks — always icon + text, never colour alone (§3.4, §6.4). */
.mark-yes, .mark-no, .mark-partial { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 600; }
.mark-yes { color: var(--lc-on-mint-soft); }
.mark-no { color: var(--lc-ink-muted); font-weight: 500; }
.mark-partial { color: var(--lc-on-amber-soft); }

/* Worked cost scenarios */
.scenarios { display: grid; gap: var(--lc-lg); margin-top: var(--lc-xl); }
@media (min-width: 840px) { .scenarios { grid-template-columns: repeat(3, 1fr); } }
.scenario h3 { font-size: 1.125rem; margin-bottom: var(--lc-xs); }
.scenario .setup { font-family: var(--lc-font-mono); font-size: 0.75rem; line-height: 1.7; letter-spacing: 0.02em; color: var(--lc-ink-muted); margin-bottom: var(--lc-lg); }
.cost-list { list-style: none; padding: 0; margin: 0; }
.cost-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--lc-md);
  padding: var(--lc-sm) 0; border-bottom: 1px solid var(--lc-line);
  font-size: 0.9rem; color: var(--lc-ink-muted);
}
.cost-list li:last-child { border-bottom: 0; }
.cost-list .amount { font-family: var(--lc-font-head); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--lc-ink); }
.cost-list li.us { color: var(--lc-ink); font-weight: 600; }
.cost-list li.us .amount { color: var(--lc-on-violet-soft); }
.scenario .math { font-size: 0.8125rem; color: var(--lc-ink-muted); margin: var(--lc-md) 0 0; }

/* Head-to-head cards */
.h2h { display: grid; gap: var(--lc-lg); margin-top: var(--lc-xl); }
@media (min-width: 840px) { .h2h { grid-template-columns: repeat(2, 1fr); } }
.h2h .card { display: flex; flex-direction: column; }
.h2h h3 { margin-bottom: var(--lc-sm); }
.h2h .verdict { color: var(--lc-ink); font-weight: 400; }
/* Sources */
.sources { max-width: 840px; margin-inline: auto; }
.sources ol { padding-left: var(--lc-xl); margin: 0; color: var(--lc-ink-muted); font-size: 0.875rem; }
.sources li { margin-bottom: var(--lc-sm); }
.sources a { text-decoration: underline; word-break: break-word; }
.sources .trademarks { margin-top: var(--lc-lg); font-size: 0.8125rem; color: var(--lc-ink-muted); }

/* ----------------------------------------------------------------------------
   Content hubs — /blog, /templates, /tools (FR-MKT-16). Pages under these
   paths are generated by build-site.py from the markdown in
   docs/06 - Content and SEO/; the classes below are the only styling they get,
   so the site reads as one system. Prose measures are capped at ~70ch.
   ------------------------------------------------------------------------- */
.hub-hero, .post-hero {
  background: linear-gradient(180deg, color-mix(in srgb, var(--lc-violet-soft) 55%, var(--lc-canvas)) 0%, var(--lc-canvas) 85%);
  padding-block: var(--lc-xxl) var(--lc-xl);
}
@media (min-width: 840px) { .hub-hero, .post-hero { padding-block: 56px var(--lc-xxl); } }
.hub-hero .wrap, .post-hero .wrap { max-width: 840px; }
.hub-hero h1, .post-hero h1 { margin-top: var(--lc-sm); }
.post-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }

.crumbs { font-family: var(--lc-font-mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--lc-ink-muted); margin-bottom: var(--lc-md); }
.crumbs a { color: var(--lc-ink-muted); }
.crumbs a:hover { color: var(--lc-violet); }
.crumbs span { margin-inline: var(--lc-xs); }

.post-meta { display: flex; flex-wrap: wrap; gap: var(--lc-xs) var(--lc-sm); font-size: 0.9rem; color: var(--lc-ink-muted); margin: 0; }
.post-meta time { color: var(--lc-ink); font-weight: 600; }
.post-download { margin: var(--lc-lg) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--lc-md); }
.post-download-note { font-size: 0.875rem; color: var(--lc-ink-muted); }

/* Two-column reading layout: sticky "on this page" rail + a 70ch measure. */
.post-layout { display: grid; gap: var(--lc-xl); padding-block: var(--lc-xl) 56px; }
@media (min-width: 1040px) {
  .post-layout { grid-template-columns: 240px minmax(0, 720px); gap: 56px; justify-content: center; }
  .post-layout-single { grid-template-columns: minmax(0, 760px); }
}
.post-toc {
  background: var(--lc-surface); border: 1px solid var(--lc-line); border-radius: var(--lc-radius-card);
  padding: var(--lc-lg) var(--lc-xl); font-size: 0.9rem; align-self: start;
}
@media (min-width: 1040px) { .post-toc { position: sticky; top: 88px; } }
.post-toc-title {
  font-family: var(--lc-font-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--lc-ink-muted); margin: 0 0 var(--lc-sm); padding: 0; background: none; border: 0; cursor: pointer;
  width: 100%; min-height: 28px; display: flex; align-items: center; gap: var(--lc-sm); text-align: left;
}
.post-toc-title::after { content: "+"; font-size: 1rem; color: var(--lc-violet); margin-left: auto; }
.post-toc[data-open] .post-toc-title::after { content: "\2212"; }
/* Collapsed on phones by default (decided in CSS, so nothing shifts after paint);
   always open on desktop, where the button is inert. */
@media (max-width: 1039px) { .post-toc:not([data-open]) ul { display: none; } }
@media (min-width: 1040px) { .post-toc-title { pointer-events: none; cursor: default; } .post-toc-title::after { display: none; } }
.post-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--lc-xs); }
.post-toc a { color: var(--lc-ink-muted); display: block; padding: 3px 0; }
.post-toc a:hover { color: var(--lc-violet); text-decoration: none; }

/* Prose. Article sections are document structure, not page bands — undo the
   global `section` band padding for them. */
.post-body { min-width: 0; font-size: 1.0625rem; line-height: 1.65; }
.post-body section { padding-block: 0; }
.post-body > p:first-child { font-size: 1.1875rem; color: var(--lc-ink); }
.post-body p, .post-body li { color: var(--lc-ink-muted); }
.post-body p strong, .post-body li strong { color: var(--lc-ink); }
.post-body h2 { font-size: clamp(1.5rem, 2.8vw, 1.9rem); margin-top: 48px; scroll-margin-top: 88px; }
.post-body h3 { font-size: 1.2rem; margin-top: var(--lc-xxl); scroll-margin-top: 88px; }
.post-body section:first-of-type h2 { margin-top: var(--lc-xl); }
.post-body a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--lc-violet) 40%, transparent); text-underline-offset: 2px; }
.post-body a:hover { text-decoration-color: currentColor; }
.post-body ul, .post-body ol { padding-left: var(--lc-xl); margin: 0 0 var(--lc-lg); }
.post-body li { margin-bottom: var(--lc-sm); }
.post-body li > ul, .post-body li > ol { margin: var(--lc-sm) 0 0; }
.post-body li.task { list-style: none; margin-left: calc(-1 * var(--lc-xl)); padding-left: var(--lc-xl); position: relative; }
.post-body li.task label { display: block; cursor: default; }
.post-body li.task input { position: absolute; left: 0; top: 6px; accent-color: var(--lc-violet); }
.post-body hr { border: 0; border-top: 1px solid var(--lc-line); margin: var(--lc-xxl) 0; }
.post-body code { font-family: var(--lc-font-mono); font-size: 0.875em; background: var(--lc-surface-muted); border-radius: 6px; padding: 1px 6px; color: var(--lc-ink); }
.post-body pre {
  background: var(--lc-surface); border: 1px solid var(--lc-line); border-radius: var(--lc-radius-card);
  padding: var(--lc-lg) var(--lc-xl); overflow-x: auto; margin: 0 0 var(--lc-lg); position: relative;
  font-size: 0.9rem; line-height: 1.55;
}
.post-body pre code { background: none; padding: 0; font-size: inherit; color: var(--lc-ink); white-space: pre; }
.post-body figure { margin: var(--lc-xl) 0; }
.post-body figure img { border-radius: var(--lc-radius-card); border: 1px solid var(--lc-line); display: block; }
.post-body figcaption { font-size: 0.85rem; color: var(--lc-ink-muted); margin-top: var(--lc-sm); }

/* A blockquote in an article is a copy-paste artifact (policy text, an email
   script), not a pull quote — so it is styled as a document, with a copy button. */
.post-body blockquote {
  position: relative; margin: 0 0 var(--lc-lg);
  background: var(--lc-surface); border: 1px solid var(--lc-line); border-left: 4px solid var(--lc-violet);
  border-radius: var(--lc-radius-card); padding: var(--lc-lg) var(--lc-xl);
}
.post-body blockquote p { color: var(--lc-ink); }
.post-body blockquote p:last-child, .post-body blockquote ul:last-child { margin-bottom: 0; }
.post-body blockquote strong { color: var(--lc-ink); }
.copy-btn {
  position: absolute; top: var(--lc-sm); right: var(--lc-sm);
  min-height: 32px; padding: 0 var(--lc-md); font-size: 0.8rem; font-weight: 600;
  background: var(--lc-surface-muted); color: var(--lc-ink-muted); border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-pill); cursor: pointer; font-family: var(--lc-font-body);
}
.copy-btn:hover { background: var(--lc-violet-soft); color: var(--lc-on-violet-soft); border-color: transparent; }
.copy-btn[data-copied] { background: var(--lc-mint-soft); color: var(--lc-on-mint-soft); border-color: transparent; }
.post-body blockquote:has(.copy-btn) { padding-top: 48px; }
.post-body pre:has(.copy-btn) { padding-top: 48px; }

/* Prose tables share the compare page's scroll container. */
.post-body .table-scroll { margin: 0 0 var(--lc-lg); }
table.prose-table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; text-align: left; }
table.prose-table th, table.prose-table td { padding: var(--lc-md) var(--lc-lg); border-bottom: 1px solid var(--lc-line); vertical-align: top; color: var(--lc-ink-muted); }
table.prose-table thead th { background: var(--lc-surface-muted); color: var(--lc-ink); font-family: var(--lc-font-head); font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em; border-bottom: 1px solid var(--lc-line-strong); }
table.prose-table tbody th { font-weight: 600; color: var(--lc-ink); }
table.prose-table tbody tr:last-child th, table.prose-table tbody tr:last-child td { border-bottom: 0; }

.callout { border-radius: var(--lc-radius-card); padding: var(--lc-lg); margin: 0 0 var(--lc-lg); font-size: 0.95rem; background: var(--lc-surface-muted); border: 1px solid var(--lc-line); }
.callout-tip { background: var(--lc-mint-soft); border-color: color-mix(in srgb, var(--lc-mint) 40%, var(--lc-line)); }
.callout-warning { background: var(--lc-amber-soft); border-color: color-mix(in srgb, var(--lc-amber) 70%, var(--lc-line)); }
.callout p { color: var(--lc-ink); }
.callout p:last-child { margin-bottom: 0; }

/* The one closing call-to-action (Master Plan §9) — a violet identity panel. */
.cta-card {
  background: var(--lc-violet); color: var(--lc-on-violet); border-radius: var(--lc-radius-panel);
  padding: var(--lc-xl); margin: var(--lc-xxl) 0;
}
@media (min-width: 600px) { .cta-card { padding: var(--lc-xxl); } }
.cta-card h2, .cta-card h3 { color: var(--lc-on-violet); margin-top: 0; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.cta-card p { color: var(--lc-on-violet-mut); }
.cta-card p strong { color: var(--lc-on-violet); }
.cta-card a { color: var(--lc-on-violet); text-decoration-color: color-mix(in srgb, white 50%, transparent); }
.cta-card .cta-action { margin: var(--lc-lg) 0 0; }
.cta-card .cta-action .btn { text-decoration: none; }
/* The coral button keeps its ink label on the violet panel — white on coral is below AA. */
.cta-card .btn-primary { color: var(--lc-on-action); }

.post-faq h3 { font-size: 1.1rem; margin-top: var(--lc-xl); }
.post-sources { margin-top: 48px; padding-top: var(--lc-xl); border-top: 1px solid var(--lc-line); font-size: 0.875rem; }
.post-sources h2 { font-size: 1.1rem; margin-top: 0; }
.post-sources li { margin-bottom: var(--lc-xs); }
.post-sources a { word-break: break-all; }
.post-reviewed { font-size: 0.85rem; color: var(--lc-ink-muted); margin-top: var(--lc-lg); font-style: italic; }

/* Cards on the hubs and the "keep reading" strip */
.hub { padding-block: var(--lc-xl) 56px; }
.post-group { font-size: 1.25rem; margin: var(--lc-xxl) 0 var(--lc-lg); }
.post-group:first-child { margin-top: 0; }
.post-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--lc-lg); }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-grid > li > a {
  display: flex; flex-direction: column; gap: var(--lc-sm); height: 100%;
  background: var(--lc-surface); border: 1px solid var(--lc-line); border-radius: var(--lc-radius-card);
  padding: var(--lc-xl); color: var(--lc-ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.post-grid > li > a:hover { border-color: var(--lc-violet); text-decoration: none; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .post-grid > li > a { transition: none; } .post-grid > li > a:hover { transform: none; } }
.post-grid strong { font-family: var(--lc-font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.post-card-tag { font-family: var(--lc-font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lc-on-violet-soft); }
.post-card-desc { color: var(--lc-ink-muted); font-size: 0.9375rem; }
.post-card-meta { margin-top: auto; padding-top: var(--lc-sm); font-size: 0.8125rem; color: var(--lc-ink-muted); }
.hub-foot { margin: var(--lc-xxl) 0 0; color: var(--lc-ink-muted); }
.read-next { padding-block: 48px; }
.read-next h2 { font-size: 1.5rem; margin-bottom: var(--lc-lg); }

/* In-page calculators (/tools) — reuse the waitlist field styles. */
.calc { background: var(--lc-surface); border: 1px solid var(--lc-line); border-radius: var(--lc-radius-panel); padding: var(--lc-xl); margin: var(--lc-lg) 0 var(--lc-xl); }
.calc .form-row { margin-bottom: var(--lc-md); }
.calc .field .hint { font-size: 0.8rem; color: var(--lc-ink-muted); font-weight: 400; }
.calc-result { display: grid; gap: var(--lc-md); margin-top: var(--lc-lg); padding-top: var(--lc-lg); border-top: 1px solid var(--lc-line); }
@media (min-width: 600px) { .calc-result { grid-template-columns: repeat(3, 1fr); } }
.calc-stat { background: var(--lc-surface-muted); border-radius: var(--lc-radius-card); padding: var(--lc-lg); }
.calc-stat .label { display: block; font-size: 0.8rem; color: var(--lc-ink-muted); margin-bottom: var(--lc-xs); }
.calc-stat output, .calc-stat .value { display: block; font-family: var(--lc-font-head); font-weight: 800; font-size: 1.75rem; letter-spacing: -0.03em; color: var(--lc-ink); font-variant-numeric: tabular-nums; }
.calc-stat.hero { background: var(--lc-violet-soft); }
.calc-stat.hero output { color: var(--lc-on-violet-soft); }
.calc-note { font-size: 0.85rem; color: var(--lc-ink-muted); margin: var(--lc-md) 0 0; }
