/* AuditProof marketing page — "The Architectural Ledger" (docs/design.md, light mode).
   Tokens mirror packages/client/src/index.css :root values. Static page: plain CSS,
   mobile-first, no build step. */

:root {
  --surface: 250 249 245;
  --surface-container: 255 255 255;
  --surface-container-c1: 243 241 236;
  --surface-container-c2: 236 234 228;
  --input-background: 255 255 255;
  --primary: 0 108 77;
  --primary-container: 62 180 137;
  --on-primary: 255 255 255;
  --on-surface: 27 28 26;
  --success-container: 236 253 245;
  --on-success-container: 5 150 105;
  --attention-container: 255 240 209;
  --on-attention-container: 121 89 0;
  --error: 186 26 26;
  --error-container: 253 237 237;
  --on-error-container: 153 27 27;

  --lift-border: rgba(60, 40, 20, 0.06);
  --lift-border-hover: rgba(60, 40, 20, 0.12);
  --lift-shadow-rest: 0 1px 2px rgba(60, 40, 20, 0.04);
  --lift-shadow-hover: 0 4px 8px rgba(60, 40, 20, 0.10), 0 10px 18px rgba(60, 40, 20, 0.14);

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --gradient-primary: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--primary-container)));
}

/* Dark palette — mirrors the app's `.dark` block in
   packages/client/src/index.css. Applied two ways: forced via the header
   toggle (html[data-theme="dark"]) or by system preference when the user
   hasn't forced light. The block is duplicated because plain CSS can't
   compose a media query with an attribute fallback. */
:root[data-theme='dark'] {
  --surface: 19 19 19;
  --surface-container: 32 31 31;
  --surface-container-c1: 44 43 43;
  --surface-container-c2: 72 70 70;
  --input-background: 42 42 42;
  --primary: 105 219 173;
  --primary-container: 62 180 137;
  --on-primary: 0 56 39;
  --on-surface: 229 226 225;
  --success-container: 38 78 61;
  --on-success-container: 148 190 169;
  --attention-container: 61 44 0;
  --on-attention-container: 255 191 0;
  --error: 255 180 171;
  --error-container: 65 30 30;
  --on-error-container: 255 180 171;
  --lift-border: rgba(255, 255, 255, 0.08);
  --lift-border-hover: rgba(255, 255, 255, 0.2);
  --lift-shadow-rest: 0 1px 2px rgba(0, 0, 0, 0.3);
  --lift-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.4), 0 10px 18px rgba(0, 0, 0, 0.5);
  --shot-border: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --surface: 19 19 19;
    --surface-container: 32 31 31;
    --surface-container-c1: 44 43 43;
    --surface-container-c2: 72 70 70;
    --input-background: 42 42 42;
    --primary: 105 219 173;
    --primary-container: 62 180 137;
    --on-primary: 0 56 39;
    --on-surface: 229 226 225;
    --success-container: 38 78 61;
    --on-success-container: 148 190 169;
    --attention-container: 61 44 0;
    --on-attention-container: 255 191 0;
    --error: 255 180 171;
    --error-container: 65 30 30;
    --on-error-container: 255 180 171;
    --lift-border: rgba(255, 255, 255, 0.08);
    --lift-border-hover: rgba(255, 255, 255, 0.2);
    --lift-shadow-rest: 0 1px 2px rgba(0, 0, 0, 0.3);
    --lift-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.4), 0 10px 18px rgba(0, 0, 0, 0.5);
    --shot-border: rgba(255, 255, 255, 0.08);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgb(var(--on-surface));
  background: rgb(var(--surface));
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

img { max-width: 100%; display: block; }

/* ---------- Shared bits ---------- */

.kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--primary));
  margin-bottom: 1.1rem;
}

.lede {
  font-size: 1.05rem;
  color: rgb(var(--on-surface) / 0.65);
  max-width: 34rem;
}

/* Inline highlight in body copy — same attention swipe as the pull-quote, but
   tighter padding so it reads as emphasis inside a sentence, not a callout.
   Full on-surface color: the swipe is the point, the dimmed lede tone isn't. */
.lede mark {
  background: rgb(var(--attention-container));
  color: rgb(var(--on-surface));
  padding: 0.04em 0.22em;
  border-radius: 0.25em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Lifted-surface triplet (design.md §5/§6): hairline + base shadow at rest,
   hover-up + dual-layer shadow, squish only on press. No shrink-on-hover. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--lift-border);
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  box-shadow: var(--lift-shadow-rest);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.btn:hover {
  border-color: var(--lift-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--lift-shadow-hover);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn-primary {
  background: var(--gradient-primary);
  color: rgb(var(--on-primary));
}

.btn-secondary {
  background: rgb(var(--surface-container));
  color: rgb(var(--primary));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme toggle — shows the theme you'd switch TO: moon while the page is
   effectively light, sun while effectively dark. "Effective" = the forced
   data-theme when set, otherwise the system preference. */
.theme-toggle { padding: 0.55rem 0.65rem; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon,
.theme-toggle .icon-sun { display: none; }
:root[data-theme='light'] .theme-toggle .icon-moon { display: inline-flex; align-items: center; gap: 0.5rem; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: inline-flex; align-items: center; gap: 0.5rem; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-moon { display: inline-flex; align-items: center; gap: 0.5rem; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: inline-flex; align-items: center; gap: 0.5rem; }
}

/* Hamburger + slide-down panel (narrow displays). Desktop shows the inline
   Log in + theme buttons and hides both the hamburger and the panel. */
.menu-toggle { display: none; padding: 0.55rem 0.65rem; }
.menu-toggle svg { width: 16px; height: 16px; }

.menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: clamp(1.25rem, 5vw, 3.5rem);
  flex-direction: column;
  gap: 0.5rem;
  background: rgb(var(--surface-container));
  border: 1px solid var(--lift-border);
  border-radius: 0.75rem;
  box-shadow: var(--lift-shadow-hover);
  padding: 0.75rem;
  min-width: 11rem;
}

.menu-panel .btn { justify-content: flex-start; }

@media (max-width: 640px) {
  .header-only { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.menu-open .menu-panel { display: flex; }
}

.btn-sm { padding: 0.55rem 1rem; font-size: 0.8rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem clamp(1.25rem, 5vw, 3.5rem);
  background: rgb(var(--surface-container-c2) / 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: rgb(var(--on-surface));
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

/* ---------- Wordmark ---------- */

/* "Audit" in text colour, "Proof" in brand green — everywhere the name appears.
   No font-weight here on purpose: the header and footer set their own, and
   overriding would flatten them. Body copy gets its bump below. */
.wordmark { color: rgb(var(--on-surface)); }
.wordmark-proof { color: rgb(var(--primary)); }

/* Inline in running text the name would otherwise dissolve into the dimmed
   body colour, so it gets full contrast plus a half-step of weight. */
p .wordmark,
figcaption .wordmark {
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 2.5rem;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
  max-width: 72rem;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero .lede { margin-bottom: 2.25rem; }

/* ---------- Waitlist form ---------- */

.waitlist-form .field-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 30rem;
}

.waitlist-form input[type='email'] {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgb(var(--on-surface));
  background: rgb(var(--input-background));
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0.375rem 0.375rem 0 0;
  padding: 0.85rem 1rem;
  outline: none;
  box-shadow: var(--lift-shadow-rest);
}

.waitlist-form input[type='email']:focus {
  border-bottom-color: rgb(var(--primary));
}

.waitlist-form.has-error input[type='email'] {
  border: 2px solid rgb(var(--error));
  border-radius: 0.375rem;
}

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

.microcopy {
  font-size: 0.78rem;
  color: rgb(var(--on-surface) / 0.5);
  margin-top: 0.75rem;
}

.waitlist-success {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgb(var(--success-container));
  color: rgb(var(--on-success-container));
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  max-width: 30rem;
}

.waitlist-success[hidden] { display: none; }
.waitlist-success svg { width: 22px; height: 22px; flex-shrink: 0; }
.waitlist-success strong { display: block; font-size: 0.9rem; }
.waitlist-success span { font-size: 0.8rem; opacity: 0.85; }

/* ---------- Photo frames (placeholders until real imagery lands) ---------- */

.photo-frame {
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(150deg, rgb(var(--surface-container-c1)), rgb(var(--surface-container-c2)));
  box-shadow: var(--lift-shadow-rest);
}

.photo-frame img:not(.watermark) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo { aspect-ratio: 4 / 5; }
.spotlight-photo { aspect-ratio: 3 / 2; }

.photo-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder .watermark {
  width: 28%;
  opacity: 0.12;
}

.ph-label {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--on-surface) / 0.35);
}

/* ---------- Audience strip ---------- */

.audience {
  background: rgb(var(--surface-container-c1));
  padding: 2.25rem clamp(1.25rem, 5vw, 3.5rem);
  text-align: center;
}

.audience .kicker { margin-bottom: 0.6rem; }

.audience-line {
  font-size: 0.95rem;
  color: rgb(var(--on-surface) / 0.65);
  max-width: 34rem;
  margin: 0 auto 1.1rem;
}

.audience-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.6rem;
  max-width: 56rem;
  margin: 0 auto;
}

.audience-chips li {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgb(var(--on-success-container));
  background: rgb(var(--success-container));
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

/* ---------- How it works ---------- */

.steps {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3.5rem);
}

.steps h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 2.25rem;
}

.step-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: rgb(var(--surface-container));
  border: 1px solid var(--lift-border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: var(--lift-shadow-rest);
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: rgb(var(--surface-container-c2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.icon-box svg {
  width: 20px;
  height: 20px;
  color: rgb(var(--primary));
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p { color: rgb(var(--on-surface) / 0.65); font-size: 0.875rem; }

/* ---------- Scores (the fear killer) ---------- */

/* Card crops are captured on the app's `surface` canvas (#faf9f5 — same token
   as this page's background), so they sit here with no visible seam. */
.scores {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3.5rem);
}

.scores-intro { max-width: 40rem; }

.scores-intro h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.scores-intro p {
  color: rgb(var(--on-surface) / 0.65);
  margin-bottom: 1rem;
}

.scores-intro em { font-style: italic; color: rgb(var(--on-surface)); }

/* The scannable centerpiece — the one line a skimmer should catch. Display
   type + a highlighter swipe on the payoff clause (attention tokens, so the
   dark theme swaps to its amber automatically). */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: rgb(var(--on-surface)) !important;
  margin: 1.5rem 0;
  text-wrap: balance;
}

/* Falls back to the attention swipe before the animation runs (or without JS);
   once it does, --tone carries the readiness card's current grade colour. */
.pull-quote mark {
  background: var(--tone, rgb(var(--attention-container)));
  color: inherit;
  padding: 0.08em 0.28em;
  border-radius: 0.3em;
  transition: background-color 0.45s ease;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.score-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.25rem;
}

.score-card { margin: 0; }

/* Live re-creations of the app's dashboard stat cards. Built from tokens so one
   markup serves both themes — and so scores.js can animate the numbers and
   re-tone the card as grades change.

   Scripting off: the widget never renders and the <noscript> screenshot pair
   takes its place, so the section still shows real dashboard cards rather than
   an animation that can't run. The `js` class is stamped on <html> pre-paint by
   the inline head script, so there's no flash of the wrong one. */
.score-widget { display: none; }
:root.js .score-widget { display: block; }

.score-card noscript img { width: 100%; max-width: 26rem; border-radius: 1rem; }

/* Theme-matched crops: the light one rides the light canvas, the dark one the
   dark canvas, so each reads seamlessly with no framing border. Only the media
   query matters here — the header's theme toggle can't have run in a no-script
   context, so `data-theme` is never set. */
.score-card noscript .shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .score-card noscript .shot-light { display: none; }
  .score-card noscript .shot-dark { display: block; }
}

.score-widget {
  max-width: 26rem;
  background: rgb(var(--surface-container));
  border: 1px solid var(--lift-border);
  border-radius: 1rem;
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: var(--lift-shadow-rest);

  /* Band tone, swapped by scores.js via [data-band]. Defaults to attention so
     the card is legible before the script runs (or if it never does). */
  --tone: rgb(var(--attention-container));
  --on-tone: rgb(var(--on-attention-container));

  /* Footprint metrics for the two possible last rows — the grade pill and the
     "worst case" line. Named so the height-matching calc below stays honest
     when either one is restyled. (1.6 is the inherited body line-height.) */
  --grade-gap: 0.9rem;
  --grade-pad-y: 0.3rem;
  --grade-font: 0.85rem;
  --sub-gap: 0.55rem;
  --sub-font: 0.95rem;
}

/* scores.js stamps the live band on the section too, so the pull-quote's
   highlight travels red → amber → green with the cards below it. */
.score-widget[data-band='bad'],
.scores[data-band='bad'] {
  --tone: rgb(var(--error-container));
  --on-tone: rgb(var(--on-error-container));
}
.score-widget[data-band='mid'],
.scores[data-band='mid'] {
  --tone: rgb(var(--attention-container));
  --on-tone: rgb(var(--on-attention-container));
}
.score-widget[data-band='good'],
.scores[data-band='good'] {
  --tone: rgb(var(--success-container));
  --on-tone: rgb(var(--on-success-container));
}

.widget-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.widget-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: var(--tone);
  color: var(--on-tone);
  transition: background-color 0.45s ease, color 0.45s ease;
}
.widget-icon svg { width: 1.05rem; height: 1.05rem; }

.widget-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-tone);
  transition: color 0.45s ease;
}

.widget-value {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgb(var(--on-surface));
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

/* "flags" / "worst case" trailing text rides the big number's baseline box. */
.widget-value .value-unit {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgb(var(--on-surface) / 0.5);
  align-self: flex-end;
  padding-bottom: 0.15rem;
}

.widget-sub {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: var(--sub-gap);
  font-size: var(--sub-font);
  color: rgb(var(--on-surface) / 0.5);
}
.widget-sub strong { font-weight: 700; color: rgb(var(--on-surface) / 0.75); }

.widget-grade {
  display: inline-block;
  margin-top: var(--grade-gap);
  padding: var(--grade-pad-y) 0.8rem;
  border-radius: 999px;
  background: var(--tone);
  color: var(--on-tone);
  font-size: var(--grade-font);
  font-weight: 700;
  transition: background-color 0.45s ease, color 0.45s ease;
}

/* The dollars card ends with the "worst case" line where the other two end
   with a grade pill, which left it sitting ~18px short. Make up exactly the
   difference between the two footprints so all three finish flush — derived
   rather than hard-coded, so resizing the pill keeps them aligned. */
.score-widget[data-score-card='dollars'] {
  padding-bottom: calc(
    1.5rem + (var(--grade-gap) + var(--grade-pad-y) * 2 + var(--grade-font) * 1.6) -
      (var(--sub-gap) + var(--sub-font) * 1.6)
  );
}

/* ---------- Odometer ---------- */

/* Each digit is a window onto a 0-9-0 reel; scores.js sets a fractional offset
   so the reels roll continuously like a mechanical counter rather than
   snapping between values. Symbols ($ , %) sit in matching boxes so digits and
   punctuation share one alignment box — inline-block + overflow:hidden puts an
   element's baseline at its bottom edge, which would otherwise float the
   digits above the symbols. */
.odometer {
  --od-cell: 1.15em;
  display: inline-flex;
  align-items: flex-start;
  font-variant-numeric: tabular-nums;
}

.od-digit {
  display: block;
  height: var(--od-cell);
  overflow: hidden;
}

.od-reel {
  display: block;
  will-change: transform;
}

.od-reel span,
.od-sym {
  display: block;
  height: var(--od-cell);
  line-height: var(--od-cell);
}

.od-hidden { display: none; }

.score-card figcaption {
  font-size: 0.85rem;
  color: rgb(var(--on-surface) / 0.65);
  margin-top: 0.75rem;
  max-width: 26rem;
}

.score-card figcaption strong {
  display: block;
  color: rgb(var(--on-surface));
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.score-note {
  font-size: 0.72rem;
  color: rgb(var(--on-surface) / 0.4);
  margin-top: 1.5rem;
}

/* ---------- Spotlight ---------- */

.spotlight {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
}

.spotlight-copy h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.spotlight-copy p {
  color: rgb(var(--on-surface) / 0.65);
  margin-bottom: 1rem;
  max-width: 30rem;
}

/* ---------- Trust band ---------- */

.trust {
  background: rgb(var(--surface-container-c1));
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
  display: grid;
  gap: 1rem;
}

.trust-card {
  background: rgb(var(--surface-container));
  border-radius: 1rem;
  padding: 1.75rem;
  max-width: 34rem;
  width: 100%;
  margin: 0 auto;
}

.trust-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.trust-card p { color: rgb(var(--on-surface) / 0.65); font-size: 0.875rem; }

/* ---------- Closing CTA ---------- */

.closing {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3.5rem);
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.closing .lede { margin: 0 auto 2rem; }

.closing-form .field-row { margin: 0 auto; }
.closing .waitlist-success { margin: 0 auto; text-align: left; }
.closing .field-error { text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: rgb(var(--surface-container-c2));
  padding: 1.75rem clamp(1.25rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgb(var(--on-surface) / 0.6);
}

.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; }

.footer-link {
  color: rgb(var(--primary));
  font-weight: 500;
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }

/* ---------- Desktop ---------- */

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5.5rem);
  }

  .waitlist-form .field-row { flex-direction: row; }
  .waitlist-form .field-row input { flex: 1; }

  .step-grid { grid-template-columns: repeat(3, 1fr); }

  .score-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

  .spotlight { grid-template-columns: 6fr 6fr; }

  /* Columns cap at the card width and the PAIR centers as a unit — with
     plain 1fr columns + margin:0 cards, the left card hugged the page edge
     while the right card's column started at the centerline, so only one of
     them looked centered on wide screens. */
  .trust {
    grid-template-columns: repeat(2, minmax(0, 34rem));
    justify-content: center;
    gap: 1.25rem;
  }
  .trust-card { margin: 0; }

  .closing-form .field-row { justify-content: center; }
  .closing .waitlist-success { max-width: 26rem; }
}
