/*
  Upstanding — shared web styles (static, no build step).
  Tokens follow director/BIBLE.md §2 exactly (text/danger values per Bible Addendum 4): one role -> one token, dark first, light supported.
  Glass on controls/overlays (header, chips, hero sample, badges); solid surface + 1px hairline for content.

  DIRECTOR? Web-only extensions the bible does not cover (neutral choices, please confirm):
    - Desktop type scale: hero title clamps 34px -> 60px; landing section titles clamp 28px -> 36px.
    - Content widths: 1120px (landing), 760px (legal reading column).
    - Header CTA uses a compact 40px button (bible button = 56px, too tall for a 64px header).
    - Long legal prose uses line-height 1.55 (bible body = 1.4) for readability.
    - Placeholder marker style (.ph) is a dev-only dashed box; it disappears once placeholders are filled.
    - Legal fine print (.fine, footer legal lines) uses textSecondary, not textTertiary: tertiary was 2.8-4.2:1 before Addendum 4
      at 12px (below WCAG AA 4.5:1) and the auto-renewal disclosure must be clearly legible.
*/

:root {
  color-scheme: dark;

  /* Colors — dark (bible §2) */
  --bg: #07090C;
  --bg-elevated: #0E1217;
  --surface: #13181F;
  --surface-high: #1A2029;
  --line: rgba(255, 255, 255, 0.08);
  --glass-fill: rgba(255, 255, 255, 0.07);
  --glass-highlight: rgba(255, 255, 255, 0.12); /* top highlight gradient 12% -> 0% */
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-blur: 24px;
  --text-primary: #F3F5F7;
  --text-secondary: #A3ADB9;
  --text-tertiary: #9099A3; /* Addendum 4 (WCAG AA) */
  --accent: #C8F560;
  --accent-text: #C8F560;
  --on-accent: #0A0D10;
  --aurora-lime: rgba(200, 245, 96, 0.10);
  --aurora-teal: rgba(47, 211, 198, 0.12);
  --aurora-violet: rgba(123, 108, 255, 0.14);
  --stage-bottom: #0D1015;                   /* app ScanStage: lerp(surfaceHigh, bg, 0.7) */
  --stage-glow: rgba(200, 245, 96, 0.06);    /* app ScanStage: accent @ 6% (dark) */
  --band-low: #FF6B57;
  --band-mid: #FFB547;
  --band-good: #5CC8FF;
  --band-high: #C8F560;
  --danger: #FF5A4E;

  /* Layout (bible §2) */
  --gutter: 20px;
  --section-gap: 32px;
  --card-pad: 20px;
  --r-card: 24px;
  --r-btn: 18px;
  --btn-h: 56px;
  --chip-h: 28px;
  --row-min: 60px;
  --header-h: 64px;

  /* Motion (bible §2) */
  --dur: 220ms;
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1); /* easeOutCubic */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --w-wide: 1120px;
  --w-read: 760px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #F2F4F6;
    --bg-elevated: #FFFFFF;
    --surface: #FFFFFF;
    --surface-high: #EEF1F4;
    --line: rgba(12, 15, 19, 0.08);
    --glass-fill: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.70);
    --text-primary: #0C0F13;
    --text-secondary: #4E5866;
    --text-tertiary: #5B6573; /* Addendum 4 (WCAG AA) */
    --accent-text: #476F00; /* accent used as TEXT in light mode (Addendum 4) */
    --danger: #BF2F26; /* danger as text in light mode (Addendum 4) */
    --aurora-lime: rgba(200, 245, 96, 0.08);
    --aurora-teal: rgba(47, 211, 198, 0.07);
    --aurora-violet: rgba(123, 108, 255, 0.08);
    --stage-bottom: #FAFBFC;                 /* lerp(surfaceHigh, bgElevated, 0.7) */
    --stage-glow: rgba(200, 245, 96, 0.10);  /* accent @ 10% (light) */
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.num, table, .price { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--gutter); }
.read { max-width: var(--w-read); }
.wrap-read { width: 100%; max-width: var(--w-read); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Aurora background (static-ish, >= 20s loop, off with Reduce Motion) ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; will-change: transform; }
.aurora .a1 { width: 70vmax; height: 70vmax; left: -22vmax; top: -30vmax; background: radial-gradient(closest-side, var(--aurora-lime), transparent); animation: drift-a 48s ease-in-out infinite alternate; }
.aurora .a2 { width: 64vmax; height: 64vmax; right: -26vmax; top: 4vmax; background: radial-gradient(closest-side, var(--aurora-teal), transparent); animation: drift-b 56s ease-in-out infinite alternate; }
.aurora .a3 { width: 72vmax; height: 72vmax; left: 10vmax; bottom: -44vmax; background: radial-gradient(closest-side, var(--aurora-violet), transparent); animation: drift-c 64s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(8vmax, 6vmax, 0); } }
@keyframes drift-b { to { transform: translate3d(-7vmax, 9vmax, 0); } }
@keyframes drift-c { to { transform: translate3d(6vmax, -7vmax, 0); } }
@media (prefers-reduced-motion: reduce) { .aurora span { animation: none; } }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(180deg, var(--glass-highlight), rgba(255, 255, 255, 0) 60%), var(--glass-fill);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .site-header { background: var(--bg-elevated); }
}

/* ---------- Header (glass) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, var(--glass-highlight), rgba(255, 255, 255, 0)), var(--glass-fill);
  border-bottom: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
}
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); padding: 8px 0; }
.brand:hover { text-decoration: none; }
.mark { width: 40px; height: 20px; flex: none; }
.mark .vial { fill: var(--glass-fill); stroke: var(--text-secondary); }
.mark .tick { stroke: var(--text-tertiary); }
.mark .bubble { fill: var(--accent); }
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text-secondary); font-size: 15px; font-weight: 500; padding: 8px 0; } /* padding: 24px+ tap target (WCAG 2.5.8) */
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-primary); text-decoration: none; }
.header-row .btn { margin-left: 4px; }
@media (max-width: 760px) {
  .nav { display: none; }
  .header-row .btn { margin-left: auto; }
}
@media (max-width: 360px) {
  .header-row { gap: 12px; }
  .wordmark { font-size: 19px; }
  .btn-sm { padding: 0 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 24px; border-radius: var(--r-btn);
  font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #D4FA78; } /* DIRECTOR? hover tint not in bible */
.btn-ghost { color: var(--text-primary); }
.btn-ghost.glass:hover { border-color: var(--text-tertiary); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Store availability (pre-launch note; official badges replace it at launch) ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.soon {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: var(--btn-h); margin: 0; padding: 8px 18px; border-radius: 14px;
  border: 1px solid var(--glass-border); color: var(--text-primary);
  background: var(--glass-fill);
}
.soon small { font-size: 11px; font-weight: 600; color: var(--accent-text); letter-spacing: 0.06em; text-transform: uppercase; }
.soon strong { font-size: 17px; font-weight: 600; line-height: 1.2; }

/* ---------- Typography ---------- */
.display { font-size: clamp(34px, 5.6vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.title { font-size: 34px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
.h-section { font-size: clamp(28px, 3.4vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.h-card { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0; }
.lead { font-size: 18px; color: var(--text-secondary); line-height: 1.45; margin: 0; } /* DIRECTOR? 18px lead is a web-only size */
.secondary { font-size: 14px; color: var(--text-secondary); }
.caption { font-size: 12px; font-weight: 500; color: var(--text-tertiary); letter-spacing: 0.02em; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--accent-text); letter-spacing: 0.02em; margin: 0 0 12px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: var(--section-gap); }
.section-head p { margin: 12px 0 0; color: var(--text-secondary); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
@media (max-width: 760px) { .section { padding: 48px 0; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--card-pad); }
.card-glass { border-radius: var(--r-card); padding: var(--card-pad); }
/* Card that opens something: always a chevron (bible §2 ListRow rule). */
a.link-card { position: relative; display: block; color: inherit; padding-right: 48px; min-height: var(--row-min); transition: border-color var(--dur) var(--ease); }
a.link-card:hover { text-decoration: none; border-color: var(--glass-border); }
a.link-card::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--text-tertiary); border-top: 2px solid var(--text-tertiary); transform: translateY(-50%) rotate(45deg); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--chip-h); padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
  color: var(--text-primary);
}
.chip-solid { background: var(--surface-high); border: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-low { background: var(--band-low); }
.dot-mid { background: var(--band-mid); }
.dot-good { background: var(--band-good); }
.dot-high { background: var(--band-high); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.delta .arrow-down { color: var(--band-low); }
.delta .arrow-up { color: var(--accent-text); } /* delta up = "strong" band color; accent-as-text in light mode (Addendum 4) */

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
.hero-copy { padding-top: 48px; } /* centers the copy on the scan stage, not on stage + finding */
.hero-copy .lead { margin-top: 20px; max-width: 540px; }
.hero-cta { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero-cta .caption { margin: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero { padding: 40px 0 32px; } .hero-copy { padding-top: 0; } }

/* Sample body scan: the app's ScanFigure export on a stage (same gradient + lime glow as the
   app's ScanStage), a glass result card over it (like PhotoOverlayCard), the finding below. */
.scan-hero { margin: 0; width: 100%; max-width: 400px; justify-self: center; display: grid; gap: 16px; }
.scan-stage {
  position: relative; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line);
  background:
    radial-gradient(75% 60% at 50% 42%, var(--stage-glow), rgba(200, 245, 96, 0) 70%),
    linear-gradient(180deg, var(--surface-high), var(--stage-bottom));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: light) { .scan-stage { box-shadow: 0 24px 64px rgba(12, 15, 19, 0.10); } }
.scan-img { width: 100%; height: auto; }
.view-chip { position: absolute; top: 14px; left: 14px; z-index: 1; }
.scan-result {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px;
}
.scan-result-text { min-width: 0; }
.scan-result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.scan-result .sample-headline { margin: 8px 0 0; font-size: 16px; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.ring .track { stroke: var(--line); }
.ring .value { stroke: var(--band-mid); }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ring.ring-sm, .ring.ring-sm svg { width: 76px; height: 76px; }
.ring.ring-sm .ring-num { font-size: 30px; } /* DIRECTOR? web-only size: small ring on the glass result card */
.sample-headline { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0 0 16px; }
.finding { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.finding .finding-label { margin: 0 0 6px; font-size: 12px; font-weight: 500; color: var(--text-tertiary); letter-spacing: 0.02em; }
.finding-title { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.finding-title .pts { color: var(--text-secondary); font-variant-numeric: tabular-nums; flex: none; }
.finding p { margin: 0 0 10px; font-size: 14px; color: var(--text-secondary); line-height: 1.45; }
.finding p:last-child { margin-bottom: 0; }
.finding strong { color: var(--text-primary); font-weight: 600; }
.sample-foot { margin: 14px 0 0; }

/* ---------- Steps ---------- */
.step-num { font-size: 40px; font-weight: 800; color: var(--accent-text); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-bottom: 16px; }
.step p, .check p { margin: 8px 0 0; color: var(--text-secondary); font-size: 15px; line-height: 1.45; }
.check { display: flex; flex-direction: column; gap: 12px; }
.check .chip { align-self: flex-start; }
.check p { margin: 0; }
.check .note { margin-top: auto; padding-top: 8px; }

/* ---------- Inside the app: 3-up store frames (scroll-snap row on phones, no JS) ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.shots:focus-visible { outline-offset: 6px; border-radius: var(--r-card); }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--text-secondary); line-height: 1.45; }
.shot figcaption strong { color: var(--text-primary); font-weight: 600; }
@media (max-width: 760px) {
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter);
  }
  .shot { scroll-snap-align: start; }
}

/* ---------- Principles / privacy strip ---------- */
.point h3 { margin: 0 0 6px; }
.point p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.45; }

/* ---------- Price ---------- */
.price-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.price { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.price small { font-size: 20px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0; }
.price-sub { margin: 12px 0 0; font-size: 17px; font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-primary); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 7px; height: 4px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg); }
.fine { font-size: 12px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.02em; line-height: 1.5; margin: 16px 0 0; }
@media (max-width: 760px) { .price-card { grid-template-columns: 1fr; gap: 24px; } .price { font-size: 60px; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; font-weight: 500; color: var(--text-tertiary); letter-spacing: 0.02em; background: var(--surface-high); }
td.cost { white-space: nowrap; font-weight: 600; }
/* Phones: stack table rows into labelled blocks (labels come from data-label). */
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: block; padding: 0; border: 0; }
  table.stack td:first-child { color: var(--text-primary); }
  table.stack td + td { margin-top: 8px; }
  table.stack td + td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 500; color: var(--text-tertiary); letter-spacing: 0.02em; margin-bottom: 2px; }
  td.cost { white-space: normal; }
}

/* ---------- FAQ (details/summary, no JS) ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--row-min); padding: 16px 0; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--text-tertiary); border-bottom: 2px solid var(--text-tertiary); transform: rotate(45deg); transition: transform var(--dur) var(--ease); flex: none; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--text-secondary); max-width: 680px; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band p { margin: 8px 0 0; color: var(--text-secondary); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 24px; background: var(--bg-elevated); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-tag { margin: 12px 0 0; color: var(--text-secondary); font-size: 14px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-cols h2 { font-size: 12px; font-weight: 500; color: var(--text-tertiary); letter-spacing: 0.02em; margin: 0 0 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-cols a { color: var(--text-secondary); font-size: 14px; }
.footer-cols a:hover { color: var(--text-primary); }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.footer-legal p { margin: 0; font-size: 12px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.02em; line-height: 1.5; }

/* ---------- Legal / long-form pages ---------- */
.page-head { padding: 48px 0 8px; }
.page-head .meta { margin: 12px 0 0; }
.summary { margin: 28px 0 8px; }
.summary h2 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
.summary ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-secondary); }
.toc { margin: 24px 0 8px; }
.toc h2 { font-size: 12px; font-weight: 500; color: var(--text-tertiary); letter-spacing: 0.02em; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 0 0 8px; break-inside: avoid; font-size: 15px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.prose { padding-bottom: 48px; }
.prose section { padding-top: 32px; }
.prose h2 { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 0 0 12px; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
.prose p, .prose li { line-height: 1.55; color: var(--text-secondary); }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose a, .faq a, .secondary a { overflow-wrap: anywhere; }
.prose .table-wrap { margin: 8px 0 16px; }
.prose td { color: var(--text-secondary); }
.prose td strong { color: var(--text-primary); }
.callout { border-radius: 18px; padding: 16px 18px; margin: 8px 0 16px; background: var(--surface-high); border: 1px solid var(--line); }
.callout p:last-child { margin-bottom: 0; }
.steps-list { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 40px; min-height: 28px; margin-bottom: 12px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--accent); color: var(--on-accent); font-variant-numeric: tabular-nums; }

/* ---------- Placeholders (dev-only marker; remove when filled) ---------- */
.ph { display: inline; padding: 0 6px; border: 1px dashed var(--text-tertiary); border-radius: 6px; background: var(--surface-high); color: var(--text-primary); font-weight: 600; font-size: 0.95em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Pack prices (pricing) ---------- */
.price.price-pack { font-size: 44px; margin: 0; }

/* ---------- Utilities ----------
   Replace the old inline style="" attributes so the Content-Security-Policy
   can stay style-src 'self' (vercel.json). !important keeps the precedence
   the inline styles had. */
.u-pt0 { padding-top: 0 !important; }
.u-pt32 { padding-top: 32px !important; }
.u-pt40 { padding-top: 40px !important; }
.u-pb0 { padding-bottom: 0 !important; }
.u-m0 { margin: 0 !important; }
.u-m6 { margin: 6px 0 0 !important; }
.u-m8 { margin: 8px 0 0 !important; }
.u-m10 { margin: 10px 0 0 !important; }
.u-m12 { margin: 12px 0 0 !important; }
.u-m16 { margin: 16px 0 0 !important; }
.u-mt12 { margin-top: 12px !important; }
.u-mt16 { margin-top: 16px !important; }
.u-mt24 { margin-top: 24px !important; }
.u-mb16 { margin-bottom: 16px !important; }
.u-mb48 { margin-bottom: 48px !important; }
.u-maxw720 { max-width: 720px !important; }
.u-list-reset { list-style: none !important; padding: 0 !important; margin: 0 !important; }
