/* Outcomewatch landing · v3: the app's visual language (product/design/DESIGN-APP.md), with marketing room.
 * Same tokens as /app: tinted neutrals, green #005037 only as the accent, the logo yellow only for warnings,
 * Atkinson Hyperlegible Next + Mono, tabular figures, 4/8 px grid. Light and dark follow prefers-color-scheme.
 */
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/fonts/ahn-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("/fonts/ahm-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: oklch(98.4% 0.004 165); --surface: oklch(99.6% 0.002 165); --surface-2: oklch(96.2% 0.007 165);
  --border: oklch(90% 0.01 165); --border-strong: oklch(64% 0.016 165);
  --text: oklch(22% 0.02 170); --muted: oklch(46% 0.018 170);
  --accent: oklch(38% 0.08 163); --accent-hover: oklch(32% 0.07 163); --accent-fg: oklch(97.5% 0.01 120); --accent-wash: oklch(95% 0.025 163);
  --ok: oklch(45% 0.1 155); --warn: oklch(48% 0.1 80); --warn-mark: oklch(66% 0.14 85); --warn-wash: oklch(96.5% 0.045 98);
  --crit: oklch(51% 0.17 28); --crit-wash: oklch(96.5% 0.022 28);
  --focus: oklch(55% 0.15 250);
  --lamp: oklch(86% 0.16 98); /* the logo's yellow: in the mark and on warnings, nowhere else */
  color-scheme: light;

  --font: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --t-xs: 0.8125rem;  /* 13 */
  --t-sm: 0.9375rem;  /* 15 */
  --t-md: 1.0625rem;  /* 17 body */
  --t-lg: 1.1875rem;  /* 19 */
  --t-xl: 1.5rem;     /* 24 */
  --t-2xl: clamp(1.625rem, 1vw + 1.3rem, 2rem);
  --t-display: clamp(2.125rem, 2.4vw + 1.4rem, 3rem);
  --r: 6px; --r-lg: 8px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(17.5% 0.012 170); --surface: oklch(20.5% 0.013 170); --surface-2: oklch(23.5% 0.014 170);
    --border: oklch(29% 0.014 170); --border-strong: oklch(52% 0.016 170);
    --text: oklch(93% 0.008 165); --muted: oklch(70% 0.014 165);
    --accent: oklch(74% 0.11 158); --accent-hover: oklch(80% 0.1 158); --accent-fg: oklch(18% 0.03 165); --accent-wash: oklch(26% 0.035 163);
    --ok: oklch(74% 0.12 155); --warn: oklch(86% 0.15 98); --warn-mark: oklch(86% 0.16 98); --warn-wash: oklch(25% 0.03 98);
    --crit: oklch(72% 0.15 28); --crit-wash: oklch(25% 0.035 28);
    --focus: oklch(72% 0.13 250);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--t-md)/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
b, strong { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums slashed-zero; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-style: normal; margin: 0; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.small { font-size: var(--t-sm); }
.lede { font-size: var(--t-lg); line-height: 1.55; max-width: 36rem; color: var(--muted); }
.lede b { color: var(--text); }
svg { max-width: 100%; }
.hero-copy, .offer, form, .report-copy, .thumb, .step, .versus td, .peek { min-width: 0; }

/* Masthead: neutral bar with a rule, like the app's chrome */
.masthead { background: var(--bg); border-bottom: 1px solid var(--border); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding-top: var(--s2); padding-bottom: var(--s2); }
.mark { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 700; font-size: 1.0625rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.mark:hover { color: var(--text); }
.mark svg { width: 22px; height: 22px; color: var(--accent); }
.mark rect { fill: oklch(38% 0.08 163); stroke: none; }
.mark .lamp { fill: var(--lamp); stroke: none; }
nav { display: flex; gap: var(--s1); align-items: center; }
.navlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: var(--t-sm); white-space: nowrap; color: var(--muted); transition: background-color 120ms var(--ease), color 120ms var(--ease); }
.navlink:hover { color: var(--text); background: var(--surface-2); }
.navlink.strong { color: var(--accent); }

/* Buttons: one primary (accent), one secondary (outline) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: var(--r); border: 1px solid transparent; font: 700 var(--t-md)/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 120ms var(--ease), border-color 120ms var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-fg); }
.btn-signal { background: var(--accent); color: var(--accent-fg); width: 100%; }
.btn-signal:hover { background: var(--accent-hover); color: var(--accent-fg); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); color: var(--text); border-color: var(--text); }
.btn[disabled] { background: var(--surface-2); color: var(--muted); cursor: progress; transform: none; }
.textlink { font-weight: 700; white-space: nowrap; text-decoration: underline; }
.textlink:hover { text-decoration-thickness: 2px; }

/* Hero: copy + a fragment of the real dashboard */
.hero { padding: var(--s8) 0 var(--s9); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s7); align-items: center; }
.hero h1 { font-size: var(--t-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch; }
.hero .lede { margin-top: var(--s5); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; margin: var(--s6) 0 var(--s4); }
.hero .small { color: var(--muted); max-width: 34rem; }

/* App fragment (same markup and rules as /app's dashboard table) */
.peek { margin: 0; }
.peek-frame { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.peek-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s1) var(--s4); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); }
.peek-head b { font-size: var(--t-md); font-weight: 650; }
.peek-head span { font-size: var(--t-xs); color: var(--muted); }
.peek-sum { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); padding: var(--s2) var(--s4); font-size: var(--t-xs); color: var(--muted); border-bottom: 1px solid var(--border); }
.peek-sum b { font-variant-numeric: tabular-nums; color: var(--text); margin-right: 4px; }
.peek-sum .crit, .peek-sum .crit b { color: var(--crit); }
.peek-sum .warn, .peek-sum .warn b { color: var(--warn); }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-xs); line-height: 1.45; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.75rem; padding: var(--s2) var(--s3); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table th.num { font-family: var(--font); }
.table .name { font-weight: 600; display: block; }
.table .client { color: var(--muted); white-space: nowrap; }
.table .issue { display: block; margin-top: 2px; }
.table .issue.crit { color: var(--crit); }
.table .issue.warn { color: var(--warn); }
.table .none { color: var(--border-strong); }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; flex: none; }
.status.ok { color: var(--ok); } .status.ok::before { border-radius: 50%; background: var(--ok); }
.status.critical { color: var(--crit); } .status.critical::before { background: var(--crit); width: 9px; height: 9px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.status.warning { color: var(--warn); } .status.warning::before { background: var(--warn-mark); width: 9px; height: 9px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.peek figcaption, .slack figcaption { margin-top: var(--s3); font-size: var(--t-xs); color: var(--muted); }

/* Problem: log vs reality */
.problem { padding-top: var(--s9); padding-bottom: var(--s8); border-top: 1px solid var(--border); }
.problem h2, .how h2, .report h2 { font-size: var(--t-2xl); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
.problem h2 { max-width: 44rem; }
.versus { width: 100%; border-collapse: collapse; margin-top: var(--s6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; border-spacing: 0; }
.versus th { text-align: left; font-size: var(--t-xs); font-weight: 500; color: var(--muted); padding: var(--s2) var(--s4); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.versus td { vertical-align: top; padding: var(--s4); border-bottom: 1px solid var(--border); }
.versus tr:last-child td { border-bottom: 0; }
.logcell { width: 30%; }
.logcell code { display: block; font-size: var(--t-sm); line-height: 1.7; color: var(--warn); overflow-wrap: anywhere; }
.versus h3 { font-size: var(--t-md); font-weight: 700; line-height: 1.35; }
.versus p { color: var(--muted); margin-top: var(--s1); max-width: 40rem; }
.aside-link { margin-top: var(--s5); }
.aside-link .textlink { white-space: normal; }

/* How: numbered steps (like the app's setup checklist) + the real alert */
.how { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--s8) 0; }
.how .lede { margin-top: var(--s3); }
.how-flow { margin-top: var(--s6); max-width: 44rem; }
.how-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s7); align-items: start; margin-top: var(--s6); }
.flow { margin: 0; }
.flow-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.step { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--s1) var(--s3); align-items: baseline; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: 0; }
.step::before { content: counter(step, decimal-leading-zero); font: 500 var(--t-sm)/1.4 var(--mono); color: var(--muted); }
.step-label { font-weight: 600; line-height: 1.4; }
.step-state { font: 500 var(--t-xs)/1.4 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.step.ok .step-state { color: var(--ok); }
.step.miss .step-state { color: var(--crit); }
.step.alert .step-state { color: var(--text); }
.assure { list-style: none; margin: var(--s5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--t-sm); color: var(--muted); }
.assure li { display: inline-flex; align-items: center; gap: var(--s2); }
.assure li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

/* Example Slack alert (the product's real payload, demo data) */
.slack { margin: 0; max-width: 100%; min-width: 0; }
.slack-body { min-width: 0; overflow-wrap: anywhere; }
.slack-msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s3); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s4); }
.slack-avatar { width: 36px; height: 36px; border-radius: 8px; background: oklch(38% 0.08 163); position: relative; }
.slack-avatar::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--lamp); }
.slack-body p { font-size: var(--t-sm); line-height: 1.55; margin: 0 0 var(--s1); }
.slack-meta { display: flex; align-items: center; gap: var(--s2); }
.slack-meta b { font-size: var(--t-md); }
.slack-app { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 3px; padding: 1px 5px; }
.slack-head { font-weight: 700; font-size: var(--t-md) !important; line-height: 1.4 !important; margin-bottom: var(--s2) !important; }

/* Report thumbnail */
.report { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s7); align-items: center; padding-top: var(--s9); padding-bottom: var(--s8); }
.report .lede { margin-top: var(--s4); }
.platforms { font-size: var(--t-md); font-weight: 700; line-height: 1.5; margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border); max-width: 30rem; }
.platforms span { font-weight: 400; color: var(--muted); }
.thumb { display: block; text-decoration: none; color: var(--text); }
.thumb img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.thumb-cta { display: inline-block; margin-top: var(--s3); font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
.thumb:hover .thumb-cta { color: var(--accent-hover); }

/* Demo video */
.demo { padding-top: var(--s4); padding-bottom: var(--s9); }
.demo h2 { font-size: var(--t-xl); font-weight: 700; line-height: 1.25; max-width: 32ch; }
.demo figure { margin: var(--s5) 0 0; min-width: 0; }
.demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.demo figcaption { color: var(--muted); font-size: var(--t-sm); margin-top: var(--s3); }

/* Pilot: offer on the left, form on the right */
.pilot { background: var(--surface-2); border-top: 1px solid var(--border); padding: var(--s8) 0; }
.pilot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s7); align-items: start; }
.pilot h2 { font-size: var(--t-2xl); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
.price { margin-top: var(--s4); display: flex; align-items: baseline; gap: var(--s3); }
.amount { font-size: clamp(2.5rem, 4vw, 3.25rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.per { color: var(--muted); font-size: var(--t-lg); }
.promise { margin-top: var(--s4); font-size: var(--t-md); font-weight: 700; line-height: 1.45; max-width: 28rem; padding: var(--s3) var(--s4); background: var(--accent-wash); border: 1px solid var(--border); border-radius: var(--r); }
.terms { list-style: none; margin: var(--s4) 0; padding: 0; border-top: 1px solid var(--border); }
.terms li { padding: var(--s3) 0 var(--s3) var(--s5); border-bottom: 1px solid var(--border); position: relative; }
.terms li::before { content: ""; position: absolute; left: 2px; top: calc(var(--s3) + 0.6em); width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.offer .small { color: var(--muted); max-width: 28rem; }
.audit-offer { padding-bottom: var(--s6); margin-bottom: var(--s6); border-bottom: 1px solid var(--border); }
.pilot-h { font-size: var(--t-lg); font-weight: 700; line-height: 1.3; max-width: 28rem; }
.self-serve { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--border); }
.self-serve .small { margin-top: var(--s3); }
.self-serve .btn { margin-top: var(--s4); }

form { display: grid; gap: var(--s4); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s6); }
form h3 { font-size: var(--t-xl); font-weight: 700; line-height: 1.25; }
.field { display: grid; gap: var(--s1); }
.field label { font-size: var(--t-sm); font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: 400 var(--t-md)/1.4 var(--font); color: var(--text); width: 100%; min-height: 48px; padding: var(--s3) var(--s4); background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r); transition: border-color 120ms var(--ease); }
textarea { min-height: 104px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--text); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
input:user-invalid, select:user-invalid { border-color: var(--crit); background: var(--crit-wash); }
input::placeholder, textarea::placeholder { color: var(--muted); }
select { appearance: none; -webkit-appearance: none; padding-right: var(--s7); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23778a84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--s4) center; background-size: 20px 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#turnstile { min-height: 65px; }
form .small { color: var(--muted); }
.msg { display: none; border-radius: var(--r); padding: var(--s3) var(--s4); font-size: var(--t-sm); }
.msg.err { display: block; background: var(--crit-wash); color: var(--text); border: 1px solid var(--crit); }
.msg.ok { display: block; background: var(--accent-wash); color: var(--text); border: 1px solid var(--ok); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); padding-top: var(--s5); padding-bottom: var(--s6); font-size: var(--t-sm); color: var(--muted); }
.foot-name { font-weight: 700; color: var(--text); }
.foot-note { flex: 1 1 auto; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); color: var(--text); white-space: nowrap; }
.foot nav a:hover { color: var(--accent); }

/* Prose (privacy, thanks) */
.prose { max-width: 44rem; padding-top: var(--s7); padding-bottom: var(--s8); }
.prose h1 { font-size: var(--t-2xl); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; margin-bottom: var(--s5); }
.prose h2 { font-size: var(--t-lg); font-weight: 700; margin: var(--s6) 0 var(--s2); padding-top: var(--s5); border-top: 1px solid var(--border); }
.prose p { margin: 0 0 var(--s4); max-width: 40rem; }
.prose .small { color: var(--muted); font-family: var(--mono); font-size: var(--t-xs); }

@media (max-width: 900px) {
  .hero-grid, .pilot-grid, .how-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .report { grid-template-columns: minmax(0, 1fr); padding-top: var(--s8); padding-bottom: var(--s7); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 var(--s4); }
  .hero { padding: var(--s6) 0 var(--s7); }
  .navlink:not(.strong) { display: none; }
  .actions .btn { width: 100%; }
  .peek .client-col { display: none; }
  .table .when-col { display: none; }
  .versus thead { display: none; }
  .versus tr { display: block; padding: var(--s4); border-bottom: 1px solid var(--border); }
  .versus tr:last-child { border-bottom: 0; }
  .versus td { display: block; padding: 0; border: 0; width: auto; }
  .logcell { margin-bottom: var(--s2); }
  .logcell code { display: inline; margin-right: var(--s3); }
  .problem { padding-top: var(--s8); padding-bottom: var(--s7); }
  .step { grid-template-columns: 28px minmax(0, 1fr); }
  .step-state { grid-column: 2; text-align: left; }
  form { padding: var(--s5); }
  .foot nav { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .wrap { padding: 0 var(--s3); }
  form { padding: var(--s4); }
  .table th, .table td { padding: var(--s2); }
}

/* Checklist page (/checklist) */
.doc { max-width: 46rem; padding-top: var(--s7); padding-bottom: var(--s8); }
.doc h1 { font-size: var(--t-2xl); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
.doc > .lede { margin-top: var(--s4); }
.doc-actions { margin-top: var(--s5); }
.doc-actions .btn { width: auto; }
.btn .i { width: 20px; height: 20px; }
.checks { list-style: none; counter-reset: chk; margin: var(--s7) 0 0; padding: 0; border-top: 1px solid var(--border-strong); }
.checks li { counter-increment: chk; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--s3); padding: var(--s5) 0; border-bottom: 1px solid var(--border); break-inside: avoid; }
.checks li::before { content: counter(chk, decimal-leading-zero); grid-row: span 4; font: 500 var(--t-lg)/1.3 var(--mono); color: var(--muted); }
.checks h2 { font-size: var(--t-lg); font-weight: 700; line-height: 1.3; margin-bottom: var(--s2); }
.checks p { margin: 0 0 var(--s2); max-width: 40rem; }
.checks p b { color: var(--text); }
.doc-cta { margin-top: var(--s7); padding: var(--s6); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); }
.doc-cta h2 { font-size: var(--t-xl); font-weight: 700; }
.doc-cta p { margin-top: var(--s3); color: var(--muted); max-width: 36rem; }
.doc-cta .textlink { margin-left: var(--s4); }
@media (max-width: 560px) { .checks li { grid-template-columns: minmax(0, 1fr); } .checks li::before { grid-row: auto; } .doc-cta .textlink { display: inline-block; margin: var(--s3) 0 0; } .doc-cta { padding: var(--s5); } }
@page { size: A4; margin: 16mm 16mm 18mm; }
@media print {
  :root { color-scheme: light; --bg: #fbfdfc; --surface: #fff; --surface-2: #f1f5f3; --border: #dbe3df; --border-strong: #8a9a94; --text: #1d2a26; --muted: #56655f; --accent: #005037; --ok: #1f6b47; }
  body.doc-page { background: #fbfdfc; color: #1d2a26; font-size: 10.5pt; }
  .doc-page .masthead, .doc-page .foot nav, .doc-page .doc-actions { display: none; }
  .doc { padding: 0; max-width: none; }
  .doc-cta { -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; }
  .checks li { padding: 10pt 0; }
}

/* Guides (/guides/ and /guides/<slug>) */
.guide .crumbs { font-size: var(--t-sm); margin-bottom: var(--s3); }
.guide h1, .guides-index h1 { font-size: var(--t-2xl); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
.guide-video { margin: var(--s6) 0 0; }
.guide-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.guide-video figcaption { margin-top: var(--s2); font-size: var(--t-sm); color: var(--muted); }
h2.sec { font-size: var(--t-xl); font-weight: 700; line-height: 1.25; margin: var(--s7) 0 var(--s4); }
.steps-list { list-style: none; counter-reset: st; margin: 0; padding: 0; border-top: 1px solid var(--border-strong); }
.steps-list li { counter-increment: st; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--s3); padding: var(--s5) 0; border-bottom: 1px solid var(--border); }
.steps-list li::before { content: counter(st, decimal-leading-zero); grid-row: span 3; font: 500 var(--t-lg)/1.3 var(--mono); color: var(--muted); }
.steps-list h3, .mistakes h3 { font-size: var(--t-lg); font-weight: 700; line-height: 1.3; margin-bottom: var(--s1); }
.step-shot { margin: var(--s4) 0 0; }
.step-shot img { display: block; border: 1px solid var(--border); border-radius: var(--r-lg); }
.mistakes { list-style: none; margin: 0; padding: 0; }
.mistakes li { padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
.mistakes li:first-child { border-top: 1px solid var(--border); }
.mistakes p, .steps-list p { color: var(--text); max-width: 40rem; }
.transcript { padding: var(--s4) var(--s5); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--muted); }
.transcript p + p { margin-top: var(--s3); }
.related { list-style: none; margin: 0; padding: 0; }
.related li { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--border); }
.related .mono, .g-len { color: var(--muted); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.g-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-strong); }
.g-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: baseline; padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
.g-list a { text-decoration: none; color: var(--text); display: grid; gap: var(--s1); }
.g-list a:hover .g-title { color: var(--accent); text-decoration: underline; }
.g-title { font-weight: 700; font-size: var(--t-lg); line-height: 1.35; }
.g-desc { color: var(--muted); font-size: var(--t-sm); max-width: 42rem; }
@media (max-width: 560px) { .steps-list li { grid-template-columns: minmax(0, 1fr); } .steps-list li::before { grid-row: auto; } .transcript { padding: var(--s4); } }

/* Answer pages: direct answer first, comparison table, FAQ, sources */
.answer { margin-top: var(--s5); padding: var(--s4) var(--s5); background: var(--accent-wash); border: 1px solid var(--border); border-radius: var(--r-lg); font-size: var(--t-lg); line-height: 1.55; }
.answer p + p { margin-top: var(--s3); }
.article .sec + p, .article p + p { margin-top: var(--s3); }
.frame-scroll { margin-top: var(--s6); overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 34rem; }
.cmp caption { text-align: left; padding: var(--s3) var(--s4); font-weight: 600; border-bottom: 1px solid var(--border); }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: var(--s2) var(--s4); border-bottom: 1px solid var(--border); }
.cmp thead th { font-size: var(--t-xs); font-weight: 500; color: var(--muted); background: var(--surface-2); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody th { font-weight: 600; }
.faq { margin: 0; border-top: 1px solid var(--border-strong); }
.faq dt { font-weight: 700; font-size: var(--t-lg); line-height: 1.35; padding-top: var(--s4); }
.faq dd { margin: var(--s1) 0 0; padding-bottom: var(--s4); border-bottom: 1px solid var(--border); max-width: 42rem; }
.sources { padding-left: var(--s5); font-size: var(--t-sm); }
.sources li + li { margin-top: var(--s1); }
.muted-note { color: var(--muted); margin-top: var(--s5); font-family: var(--mono); font-size: var(--t-xs); }

/* Topic clusters: pillar and cluster pages */
.crumbs { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s3); }
.crumbs a { color: var(--muted); }
.topic-page h1 { font-size: var(--t-2xl); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
.updated { margin-top: var(--s3); font-size: var(--t-xs); color: var(--muted); font-family: var(--mono); }
.topic-page > p, .topic p { max-width: 42rem; }
.topic-page > p + p, .topic p + p { margin-top: var(--s3); }
.topic-page > p:not(.updated):not(.next):not(.crumbs) { margin-top: var(--s4); }
.topic h2 { font-size: var(--t-xl); font-weight: 700; line-height: 1.25; margin: var(--s7) 0 var(--s2); }
.topic .lead { font-weight: 600; margin-bottom: var(--s3); }
.points { margin: var(--s3) 0 0; padding-left: var(--s5); max-width: 42rem; }
.points li + li { margin-top: var(--s2); }
.pillar-link { margin-top: var(--s4); font-size: var(--t-sm); color: var(--muted); }
.author { margin-top: var(--s7); padding: var(--s4) var(--s5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); font-size: var(--t-sm); }
.author p { margin-top: var(--s1); color: var(--muted); }
.next { margin-top: var(--s5); font-weight: 600; }
.topic-page code, .article code { font-size: 0.9em; padding: 1px 4px; border-radius: 4px; background: var(--surface-2); overflow-wrap: anywhere; }
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--s5); }
.topics h3 { font-size: var(--t-md); font-weight: 700; line-height: 1.35; }
.topics ul { margin: var(--s2) 0 0; padding-left: var(--s5); font-size: var(--t-sm); }
.topics li + li { margin-top: var(--s1); }
.topic .points + p { margin-top: var(--s3); }
