/* Consult public site. One stylesheet, no inline styles (CSP: style-src 'self').
   Tokens follow the Consult design system; theme follows the system setting. */

/* ---------- Tokens: light (warm ivory) ---------- */
:root {
  color-scheme: light dark;
  --bg: #faf8f5;
  --surface-1: #ffffff;
  --surface-2: #f3f1ec;
  --surface-3: #ece9e1;
  --border: #e6e3dd;
  --border-strong: #d4d0c7;
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #8b8b92;          /* decorative only; fails AA for text */
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --ok: #15803d;
  --ink: #1a1a1c;
  --ink-mid: #4d4d52;
  --hi-yellow: rgba(248, 206, 70, 0.45);
  --rule: #e6e3dd;
  --btn: #4338ca;
  --btn-hover: #3730a3;
  --btn-text: #ffffff;
  --focus: #4f46e5;
  --wash: rgba(79, 70, 229, 0.07);
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 8px 24px -16px rgba(20, 20, 30, 0.12);
  --shadow-soft: 0 4px 14px -8px rgba(20, 20, 30, 0.15);

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --font-serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --font-hand: "Bradley Hand", "Segoe Print", "Comic Neue", cursive; /* mockup stand-in only */
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --fs-hero: clamp(2.5rem, 1.6rem + 3.2vw, 3.5rem);
  --fs-h1: clamp(2.125rem, 1.6rem + 2vw, 2.75rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.25rem);
  --fs-h3: 1.3125rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.8125rem;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section: clamp(64px, 9vw, 112px);
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1120px;

  --r-chip: 6px; --r-sm: 8px; --r-btn: 10px; --r-card: 12px; --r-card-lg: 16px; --r-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 0.15s;
}

/* ---------- Tokens: dark (near-black) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --surface-1: #18181b;
    --surface-2: #232328;
    --surface-3: #2a2a30;
    --border: #2a2a30;
    --border-strong: #3a3a40;
    --text: #f5f5f7;
    --text-2: #a3a3a8;
    --text-3: #6b6b72;
    --accent: #818cf8;
    --accent-strong: #6366f1;
    --accent-soft: rgba(129, 140, 248, 0.14);
    --ok: #22c55e;
    --ink: #e8e8ec;
    --ink-mid: #b4b4ba;
    --hi-yellow: rgba(245, 200, 80, 0.28);
    --rule: #26262b;
    --btn: #4f46e5;
    --btn-hover: #5b54ec;
    --btn-text: #ffffff;
    --focus: #a5b4fc;
    --wash: rgba(129, 140, 248, 0.09);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 6px 20px -10px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
strong { font-weight: 600; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .act:focus-visible { border-radius: var(--r-btn); }

.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 10;
  background: var(--surface-1); color: var(--text);
  padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); border: 1px solid var(--border-strong);
}
.skip:focus { top: var(--s-3); }
.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;
}

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ---------- Icons (SVG files as masks, colored by currentColor) ---------- */
.icon {
  display: inline-block; width: 1em; height: 1em; flex: none;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
.i-check { -webkit-mask-image: url(icons/check.svg); mask-image: url(icons/check.svg); }
.i-x { -webkit-mask-image: url(icons/x.svg); mask-image: url(icons/x.svg); }
.i-bookmark { -webkit-mask-image: url(icons/bookmark.svg); mask-image: url(icons/bookmark.svg); }
.i-arrow-right { -webkit-mask-image: url(icons/arrow-right.svg); mask-image: url(icons/arrow-right.svg); }
.i-arrow-left { -webkit-mask-image: url(icons/arrow-left.svg); mask-image: url(icons/arrow-left.svg); }
.i-chevron-down { -webkit-mask-image: url(icons/chevron-down.svg); mask-image: url(icons/chevron-down.svg); }
.i-clock { -webkit-mask-image: url(icons/clock.svg); mask-image: url(icons/clock.svg); }
.i-play { -webkit-mask-image: url(icons/play.svg); mask-image: url(icons/play.svg); }
.i-lock { -webkit-mask-image: url(icons/lock.svg); mask-image: url(icons/lock.svg); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em;
}
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-dot { fill: var(--accent); }
.brand:hover { color: var(--text); }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); }
.nav a:not(.btn) { color: var(--text-2); text-decoration: none; font-size: var(--fs-small); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-btn); border: 1px solid transparent;
  font: 600 1rem/1 var(--font-text); text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn-sm { min-height: 38px; padding: 0 14px; font-size: var(--fs-small); }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-text); }
.btn-secondary { background: var(--surface-1); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block;
  font: 600 var(--fs-eyebrow)/1.3 var(--font-text);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); }
.muted { color: var(--text-2); }
.h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.02em; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.015em; }

/* ---------- Hero (direction 1b) ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-grid {
  display: grid; gap: clamp(40px, 5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.hero-copy { display: flex; flex-direction: column; gap: var(--s-5); }
.hero h1 { font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -0.03em; }
.hero .btn-row { margin-top: var(--s-2); }

.hero-visual { position: relative; display: flex; flex-direction: column; max-width: 600px; justify-self: end; width: 100%; margin: 0; }
.ink-page {
  width: min(100%, 460px);
  background-color: var(--surface-1);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
  background-position: 0 63px;
  border: 1px solid var(--border); border-radius: var(--r-card-lg);
  box-shadow: var(--shadow);
  padding: 22px 28px 72px; margin: 0;
}
.ink-meta { font-size: 0.8125rem; color: var(--text-2); font-variant-numeric: tabular-nums; height: 41px; }
/* The handwriting slot. Final art: ink-hero-light.png / ink-hero-dark.png, 808 × 384 (2x of 404 × 192). */
.ink-slot { aspect-ratio: 404 / 192; width: 100%; }
.ink-slot img { width: 100%; height: 100%; }
.ink-standin { font-family: var(--font-hand); color: var(--ink); font-size: 21px; line-height: 32px; }
.ink-standin .ind { padding-left: 20px; }
.ink-standin .mid { color: var(--ink-mid); }
.ink-standin mark { background: var(--hi-yellow); color: inherit; padding: 0 4px; border-radius: 2px; }

.qcard {
  position: relative; align-self: flex-end; width: min(88%, 360px); margin-top: -48px;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: 14px; padding: 16px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent), var(--shadow-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.qcard-head { display: flex; align-items: center; gap: var(--s-2); }
.chip {
  display: inline-block; padding: 3px 8px; border-radius: var(--r-chip);
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.4;
}
.urg { margin-left: auto; display: inline-flex; gap: 3px; }
.urg span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-strong); }
.urg span.off { background: var(--surface-3); }
.qcard-q { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.005em; color: var(--text); }
.qcard-why { font-size: 0.8125rem; line-height: 1.45; color: var(--text-2); }
.qcard-foot { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.qcard-time { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--text-2); font-variant-numeric: tabular-nums; margin-right: auto; }
.act {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--text-2); font-size: 14px;
}
.act-save { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.act-accept { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, var(--border)); }

/* Who it's for strip */
.who {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6);
  padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.who p { font-size: var(--fs-small); line-height: 1.55; color: var(--text-2); }
.who strong { color: var(--text); }

/* ---------- Zigzag rows (direction 1a) ---------- */
.rows { display: flex; flex-direction: column; gap: clamp(64px, 9vw, 104px); }
.row {
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.row-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row-flip .row-copy { order: 2; }
.row-copy { display: flex; flex-direction: column; gap: var(--s-4); }
.row-copy .h2 .eyebrow { margin-bottom: var(--s-3); }
.row-copy p { color: var(--text-2); }

/* Screenshot frame */
.shot { margin: 0; }
.shot img {
  width: 100%; border-radius: var(--r-card-lg);
  border: 1px solid var(--border); background: var(--surface-2); box-shadow: var(--shadow);
}
.shot-phone img { border-radius: 28px; }

/* ---------- Notes stay yours ---------- */
.yours {
  background-color: var(--surface-1);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.yours .wrap { max-width: calc(760px + 2 * var(--gutter)); display: flex; flex-direction: column; gap: var(--s-5); }
.yours p { font-family: var(--font-serif); font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem); line-height: 1.6; color: var(--text); }
.section + .yours, .yours + .section { border-top: 0; }

/* ---------- Three apps ---------- */
.section-head { display: flex; flex-direction: column; gap: var(--s-3); max-width: 680px; margin-bottom: var(--s-7); }
.apps { list-style: none; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.15fr) minmax(0, 0.75fr); grid-template-rows: auto auto; gap: var(--s-5) var(--s-6); }
.app { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: var(--s-5); }
.app .shot { align-self: end; }
.app .shot-phone { width: 70%; }
.app-copy { display: flex; flex-direction: column; gap: var(--s-2); }
.app-copy p { font-size: var(--fs-small); color: var(--text-2); }

/* ---------- Privacy band ---------- */
.privacy-band {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-5); align-items: center;
  padding: clamp(24px, 4vw, 40px); border: 1px solid var(--border); border-radius: var(--r-card-lg);
  background: var(--surface-1); box-shadow: var(--shadow);
}
.privacy-band .badge {
  width: 48px; height: 48px; border-radius: var(--r-btn); background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
}
.privacy-band .copy { display: flex; flex-direction: column; gap: var(--s-2); }
.privacy-band p { color: var(--text-2); max-width: 620px; }

/* ---------- FAQ (native details) ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-7); }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 18px 0; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-2); transition: transform var(--dur-fast) var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:hover .icon { color: var(--text); }
.faq details p { padding: 0 0 20px; color: var(--text-2); max-width: 620px; }

/* ---------- Get the app (hero card wash) ---------- */
.get-card {
  position: relative; overflow: hidden;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--border); border-radius: var(--r-card-lg);
  background-color: var(--surface-1);
  background-image: linear-gradient(135deg, var(--wash) 0%, transparent 45%);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.get-card p { color: var(--text-2); max-width: 640px; }
.get-card .btn-row { margin-top: var(--s-3); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: var(--s-6) 0; font-size: var(--fs-small); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .copy { margin-left: auto; color: var(--text-2); }

/* =========================================================
   Guide
   ========================================================= */
.page-head { padding: clamp(48px, 7vw, 80px) 0 var(--s-7); display: flex; flex-direction: column; gap: var(--s-4); max-width: 720px; }
.page-head h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -0.025em; }

.crumbs { font-size: var(--fs-small); color: var(--text-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }

.chapters { list-style: none; border-top: 1px solid var(--border); margin-bottom: var(--section); }
.chapters li { border-bottom: 1px solid var(--border); }
.chapters a {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s-4); align-items: baseline;
  padding: 20px var(--s-2); color: var(--text); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}
.chapters a:hover { background: var(--surface-1); }
.chapters .num { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--text-2); font-variant-numeric: tabular-nums; }
.chapters .title { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; }
.chapters .desc { grid-column: 2; font-size: var(--fs-small); color: var(--text-2); margin-top: 2px; }
.chapters .meta { grid-row: 1; grid-column: 3; display: inline-flex; align-items: center; gap: var(--s-2); }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.75rem; font-weight: 600; line-height: 1.6;
}

.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-bottom: var(--section); }
.toc { position: sticky; top: var(--s-5); align-self: start; padding-top: clamp(48px, 7vw, 80px); }
.toc h2 { font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-bottom: var(--s-3); }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: flex; gap: var(--s-3); padding: 7px 10px; border-radius: var(--r-sm);
  color: var(--text-2); text-decoration: none; font-size: var(--fs-small); line-height: 1.4;
}
.toc a span { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--surface-1); color: var(--text); }
.toc a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.chapter { max-width: 760px; }
.chapter .page-head { padding-bottom: var(--s-6); }

/* Video slot: poster + caption + transcript. Swap the img for <video> when media-src is allowed. */
.video { margin: 0 0 var(--s-7); border: 1px solid var(--border); border-radius: var(--r-card-lg); overflow: hidden; background: var(--surface-1); box-shadow: var(--shadow); }
.video-poster { position: relative; }
.video-poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--surface-2); }
.video figcaption { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-1); border-top: 1px solid var(--border); }
.video figcaption .t { font-weight: 600; }
.video figcaption .m { font-size: var(--fs-small); color: var(--text-2); font-variant-numeric: tabular-nums; }
/* Landing page trailer: the guide's video figure, centered under the hero. */
.trailer { padding-top: 0; }
.trailer .video { max-width: 960px; margin: 0 auto; }
.transcript { border-top: 1px solid var(--border); }
.transcript summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s-2);
  padding: 0 var(--s-5); min-height: 48px; font-weight: 600; font-size: var(--fs-small); color: var(--text);
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary .icon { color: var(--text-2); transition: transform var(--dur-fast) var(--ease); }
.transcript[open] summary .icon { transform: rotate(180deg); }
.transcript ol { list-style: none; padding: 0 var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.transcript li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-3); font-size: var(--fs-small); color: var(--text-2); }
.transcript time { font-family: var(--font-mono); color: var(--text-2); font-variant-numeric: tabular-nums; }

.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: var(--s-8); }
.step { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-4) var(--s-5); }
.step::before {
  content: counter(step);
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: var(--fs-small); font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.step-body { display: flex; flex-direction: column; gap: var(--s-3); }
.step-body p { color: var(--text-2); }
.step .shot { margin-top: var(--s-3); }
/* Lists inside guide steps and notes (lead, 2026-11-18; logged for Claude Design): the reset zeroes list padding. */
.step-body ul, .step-body ol, .note ul, .chapter-intro ul, .chapter-intro ol { padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--s-2); color: var(--text-2); }
.step-body li ul { margin-top: var(--s-2); }
.note { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-6); }
.chapter-intro { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-6); color: var(--text-2); }
.note {
  padding: var(--s-4) var(--s-5); border-radius: var(--r-card);
  background: var(--surface-1); border: 1px solid var(--border);
  font-size: var(--fs-small); color: var(--text-2);
}
.note strong { color: var(--text); }
kbd, .ui {
  font-family: var(--font-text); font-weight: 600; color: var(--text);
}

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.pager a {
  display: flex; flex-direction: column; gap: 2px; padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-1);
  text-decoration: none; color: var(--text);
  transition: background-color var(--dur-fast) var(--ease);
}
.pager a:hover { background: var(--surface-2); }
.pager .dir { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--text-2); }
.pager .name { font-weight: 600; }
.pager .next { text-align: right; align-items: flex-end; grid-column: 2; }

/* =========================================================
   Privacy (prose)
   ========================================================= */
.prose { max-width: 700px; padding-bottom: var(--section); }
.prose h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -0.025em; }
.prose .updated { margin-top: var(--s-3); color: var(--text-2); font-size: var(--fs-small); }
.prose .intro { margin-top: var(--s-6); font-size: var(--fs-lead); line-height: 1.6; }
.prose h2 { font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.25; margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.prose h2 + * { margin-top: var(--s-4); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: var(--s-4); }
.prose ul { padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--s-2); }
.prose li { padding-left: 4px; }
.prose li::marker { color: var(--text-2); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { justify-self: start; }
  .row, .row-flip { grid-template-columns: minmax(0, 1fr); }
  .row-flip .row-copy { order: 0; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .apps { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: var(--s-7); }
  .app { grid-row: auto; grid-template-rows: none; }
  .app .shot-phone { width: 46%; }
  .privacy-band { grid-template-columns: minmax(0, 1fr); }
  .chapters a { grid-template-columns: 40px minmax(0, 1fr); }
  .chapters .meta { grid-column: 2; grid-row: auto; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { grid-column: 1; }
  .nav .nav-guide { display: none; }
}
@media (max-width: 480px) {
  .who { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .ink-page { width: calc(100% - 24px); }
  .step { grid-template-columns: minmax(0, 1fr); }
  .site-footer .copy { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
