/* ekgmaster.app — same "ECG paper atlas" tokens as the app (src/styles.css). */
:root {
  --bg: #f4eee3; --surface: #fbf7f0; --surface-2: #ffffff;
  --ink: #1b1a17; --ink-2: #5e584e; --ink-3: #857c6f; --line: #e4dccd;
  --accent: #c2412f; --accent-ink: #ffffff; --accent-soft: #f6dcd5;
  --paper: #fbf6ee; --grid-minor: #f3d6cf; --grid-major: #e2a99d; --trace: #1b1a17;
  --tint-1: #e9d9c4; --tint-2: #f1cfc6; --tint-3: #d6e1d2; --tint-4: #d9d6ea; --tint-5: #ead8b8; --tint-6: #f0c8bd; --tint-7: #cfe0e3;
  --shadow: 0 1px 0 rgba(27, 26, 23, 0.04), 0 8px 24px -12px rgba(27, 26, 23, 0.18);
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
  --font-num: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120e; --surface: #1f1b16; --surface-2: #27221c;
    --ink: #f1eadf; --ink-2: #b9b0a2; --ink-3: #8f8678; --line: #342d25;
    --accent: #ee6a52; --accent-ink: #1a0b07; --accent-soft: #3b1f19;
    --paper: #1b1712; --grid-minor: #3a2822; --grid-major: #6e3d31; --trace: #f3ece0;
    --tint-1: #3a3024; --tint-2: #43271f; --tint-3: #26332a; --tint-4: #2b2a3d; --tint-5: #3d3220; --tint-6: #45261f; --tint-7: #213538;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
:lang(zh-Hant) body, body:lang(zh-Hant) { line-height: 1.7; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
:lang(zh-Hant) h1, :lang(zh-Hant) h2 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-size: 18px; }
.brand:hover { color: inherit; }
.pulse { width: 30px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pulse.tiny { width: 18px; height: 9px; stroke-width: 2.6; }
.pulse.big { width: 64px; height: 32px; stroke-width: 2.2; }
.top nav { display: flex; gap: 4px; align-items: center; font-size: 15px; }
.top nav a { text-decoration: none; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 500; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); background: var(--surface); }
.langs { position: relative; margin-left: 4px; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--ink); background: var(--surface); }
.globe { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 168px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 20; animation: fade 0.18s var(--ease); }
.langs ul a { display: block; padding: 9px 12px; }
.langs ul a[aria-current] { color: var(--accent); background: var(--accent-soft); }
@media (max-width: 440px) { .top nav { gap: 0; font-size: 14.5px; } .top nav a { padding: 8px 7px; } .langs summary { padding: 7px 8px; } .langs .globe { display: none; } }
@media (max-width: 380px) { .brand span { font-size: 17px; } }

/* ---------- type ---------- */
.eyebrow { color: var(--accent); font-weight: 650; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
:lang(zh-Hant) .eyebrow { letter-spacing: 0.12em; font-size: 14px; }
h1 { font-size: clamp(34px, 6.4vw, 72px); font-weight: 750; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 720; }
h3 { font-size: 18px; font-weight: 680; letter-spacing: -0.01em; }
.sub { font-size: clamp(18px, 1.9vw, 21px); color: var(--ink-2); max-width: 36em; margin-top: 20px; }
.lede { font-size: 18px; color: var(--ink-2); margin-top: 16px; max-width: 34em; }

/* ---------- hero ---------- */
.hero { padding: 28px 0 24px; }
@media (min-width: 768px) { .hero { padding: 64px 0 32px; } }
.hero-in h1 { max-width: 14em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px;
  background: var(--ink); color: var(--bg); border-radius: 16px; font-weight: 650; font-size: 16px;
}
.cta .apple { width: 17px; height: 20px; fill: currentColor; }
.cta-note { color: var(--ink-3); font-size: 15px; }

.paper {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); margin: 0; position: relative; overflow: hidden;
}
.hero-paper { margin: 32px auto 0; padding: 0; max-width: 1056px; }
@media (min-width: 768px) { .hero-paper { margin-top: 44px; } }
@media (min-width: 768px) { .hero-paper { width: calc(100% - 64px); } }
@media (max-width: 767px) { .hero-paper { width: calc(100% - 32px); } }
.printhead {
  display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 12px 18px; font-size: 12.5px; color: var(--ink-2);
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.printhead span:nth-child(-n+2) { color: var(--accent); }
.scroller { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--grid-major) transparent; }
.cap { font-size: 13px; color: var(--ink-3); padding: 10px 18px 14px; font-family: var(--font-num); letter-spacing: -0.01em; }

/* ECG strips: units are millimetres in the viewBox; stroke is screen pixels */
.strip { display: block; width: 100%; height: auto; }
.gm { fill: none; stroke: var(--grid-minor); stroke-width: 0.12; }
.gM { fill: none; stroke: var(--grid-major); stroke-width: 0.22; }
.strip g path { fill: none; stroke: var(--trace); stroke-width: 1.6px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.strip .lead { font: 600 3.4px var(--font); fill: var(--accent); }
/* keep about 4 mm per 13 px on phones: scroll the strip sideways instead of squeezing it */
.hero-strip { min-width: 900px; }
.mid-strip { min-width: 640px; }
@media (min-width: 900px) { .hero-strip, .mid-strip { min-width: 0; } }
.strip.draw g path { clip-path: inset(-20% 100% -20% 0); animation: draw 3.2s cubic-bezier(0.3, 0.1, 0.3, 1) 0.2s forwards; }
@keyframes draw { to { clip-path: inset(-20% 0 -20% 0); } }
@media (prefers-reduced-motion: reduce) {
  .strip.draw g path { animation: none; clip-path: none; }
  html { scroll-behavior: auto; }
}


/* ---------- sections ---------- */
.band { padding: 72px 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .band { padding: 104px 0; } }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 6fr; gap: 64px; } .split.rev { grid-template-columns: 6fr 5fr; } .split.rev > :first-child { order: 2; } .split > figure { width: 100%; } }

.card-paper .scroller { border-bottom: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); }
.metrics div { padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.metrics div + div { border-left: 1px solid var(--line); }
.metrics .k { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.metrics .v { font-size: 28px; font-weight: 600; line-height: 1.1; }
.metrics small { font-size: 13px; color: var(--ink-3); margin-left: 3px; font-family: var(--font); }


.tutor-card .scroller { border-bottom: 1px solid var(--line); }
.strip .sep { stroke: var(--ink-3); stroke-width: 0.25; }
.ami-strip { min-width: 0; }
@media (min-width: 900px) { .ami-strip { min-width: 0; } }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg .who { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; letter-spacing: 0.04em; }

.tiers li { padding: 24px 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.tiers li.main { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tiers li.main p { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); }
.tiers h3 { font-size: 20px; }
.tiers p { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; }
.fine-note { color: var(--ink-3); font-size: 14px; margin-top: 16px; }

.faq { margin-top: 28px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 640; font-size: 17.5px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-2); padding: 0 0 20px; max-width: 40em; }
.faq details[open] p { animation: fade 0.3s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }

.final { padding: 88px 0 96px; border-top: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px), linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 8px 8px; background-position: center;
}
.final-in { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final-in > * { position: relative; }
.final .wrap { background: color-mix(in srgb, var(--bg) 92%, transparent); border-radius: var(--r-lg); padding: 40px 20px; max-width: 760px; border: 1px solid var(--line); width: calc(100% - 32px); }
.final p { color: var(--ink-2); font-size: 18px; max-width: 30em; }
.final .cta { margin-top: 8px; }

/* ---------- docs ---------- */
.doc { padding: 48px 0 88px; }
@media (min-width: 768px) { .doc { padding: 72px 0 112px; } }
.doc h1 { font-size: clamp(34px, 5vw, 52px); }
.crumb { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.crumb a { text-decoration: none; }
.crumb a::before { content: "← "; }
.answer { color: var(--ink); font-size: 19px; font-weight: 500; }
.prose { margin-top: 28px; }
.prose h2, .legal h2 { font-size: 21px; margin: 32px 0 10px; letter-spacing: -0.01em; }
.prose p, .legal p { margin: 10px 0; color: var(--ink-2); }
.prose b { color: var(--ink); font-weight: 650; }
.prose ol, .prose ul { padding-left: 0; margin: 14px 0; list-style: none; counter-reset: s; }
.prose li { position: relative; padding: 8px 0 8px 42px; color: var(--ink-2); }
.prose ol li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: 7px; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 600 14px var(--font-num);
}
.prose ul li::before { content: ""; position: absolute; left: 11px; top: 19px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.meta { color: var(--ink-3); font-size: 14px; margin-top: 28px; }
.legal .meta { margin-top: 12px; }
.legal section { margin-top: 8px; }
.stuck { margin-top: 32px; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.stuck b { color: var(--ink); }
.more-h, .faq-h { font-size: 13px; margin-top: 48px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 650; }
:lang(zh-Hant) .more-h, :lang(zh-Hant) .faq-h { font-size: 14px; }
.doc .faq-h { font-size: 22px; color: var(--ink); text-transform: none; letter-spacing: -0.01em; }

.article-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.article-list a {
  display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r-md); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s var(--ease);
}
.article-list a:hover { color: inherit; border-color: var(--grid-major); transform: translateX(3px); }
.article-list .no { flex: none; color: var(--accent); font-weight: 600; font-size: 15px; }
.article-list .txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.article-list small { color: var(--ink-2); font-size: 15px; }
.article-list .arrow { color: var(--ink-3); flex: none; }
.article-list.compact { margin-top: 16px; }

.mail-card {
  display: flex; flex-direction: column; gap: 4px; margin-top: 32px; padding: 24px; border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); text-decoration: none; transition: transform 0.2s var(--ease), border-color 0.2s;
}
.mail-card:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.mail-card .v { color: var(--accent); }
.mail-card .k { font-size: 13px; opacity: 0.7; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.mail-card .v { font-size: clamp(20px, 5vw, 28px); font-weight: 650; word-break: break-all; }
.nf { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; background: var(--surface); font-size: 14.5px; color: var(--ink-2); }
.foot .safety { color: var(--ink); font-weight: 600; max-width: 44em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0; }
.foot nav a { text-decoration: none; }
.foot .fine { color: var(--ink-3); font-size: 13px; margin-top: 6px; }

/* header fits 320–375 without wrapping */
.brand, .top nav a { white-space: nowrap; }
.top nav .short { display: none; }
@media (max-width: 420px) {
  .top nav .long { display: none; }
  .top nav .short { display: inline; }
  .top nav { font-size: 14.5px; gap: 0; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0 0; padding: 0; }
.stats div { border-top: 2px solid var(--ink); padding-top: 12px; min-width: 0; }
.stats dt { font-size: clamp(30px, 5vw, 52px); font-weight: 600; line-height: 1; }
.stats dd { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.35; }
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .stats div:first-child { grid-column: span 2; }
  .stats dt { font-size: 40px; }
}

/* ---------- course: a table of contents, not a card grid ---------- */
.units { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.units li {
  display: grid; grid-template-columns: 48px 1fr; gap: 2px 12px; padding: 18px 0; border-bottom: 1px solid var(--line);
  transition: background-color 0.2s;
}
.units .no { grid-row: span 2; color: var(--accent); font-size: 15px; font-weight: 600; padding-top: 3px; }
.units p { grid-column: 2; color: var(--ink-2); font-size: 15.5px; }
@media (min-width: 900px) {
  .units li { grid-template-columns: 64px minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; padding: 22px 0; }
  .units .no { grid-row: auto; padding-top: 0; }
  .units h3 { font-size: 20px; }
  .units p { grid-column: 3; font-size: 16px; }
}
@media (hover: hover) and (pointer: fine) { .units li:hover { background: var(--surface); } }

/* ---------- practice: 2 × 2, icon beside title ---------- */
.modes { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .modes { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1040px) { .modes { grid-template-columns: repeat(4, 1fr); } }

/* ---------- pricing: Lifetime leads, the other two follow ---------- */
.tiers { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) {
  .tiers { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 14px; }
  .tiers li.main { grid-column: 1; grid-row: 1 / span 2; order: -1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 32px; }
  .tiers li.main h3 { font-size: 30px; }
  .tiers li.main p { font-size: 17px; max-width: 24em; }
}

/* dark mode: no ivory slabs; the recommended plan is marked in red instead */
@media (prefers-color-scheme: dark) {
  .tiers li.main { background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--accent); }
  .tiers li.main h3 { color: var(--accent); }
  .tiers li.main p { color: var(--ink-2); }
  .msg.me { background: var(--accent-soft); color: var(--ink); }
}

/* FAQ: heading left, answers right on wide screens */
@media (min-width: 960px) {
  #faq .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  #faq .faq { margin-top: 0; max-width: none; }
  #faq h2 { position: sticky; top: 96px; }
}

/* practice: a spec sheet, same language as the stats and course list */
.modes li { padding: 16px 0 4px; border-top: 2px solid var(--ink); }
.mode-h { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.modes .ico { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modes p { color: var(--ink-2); font-size: 15.5px; margin-top: 6px; }
@media (min-width: 720px) { .modes { gap: 28px 24px; } }
@media (max-width: 719px) {
  .mode-h { flex-direction: row; align-items: center; }
  .modes li { padding-bottom: 8px; }
}

/* phone: print-head metrics in a neat 3 × 2 grid */
@media (max-width: 560px) {
  .printhead { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 4px 12px; }
}

/* the email card sits on the same millimetre paper as the strips */
.paper-bg {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px), linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  background-position: -1px -1px;
}
.mail-card .v { font-family: var(--font-num); letter-spacing: -0.02em; background: var(--paper); align-self: flex-start; padding: 2px 6px; margin-left: -6px; border-radius: 6px; }
.mail-card .k { background: var(--paper); align-self: flex-start; padding: 0 6px; margin-left: -6px; border-radius: 4px; color: var(--ink-2); opacity: 1; }

/* ---------- ECG guides (/learn/) ---------- */
.guide .lede.answer { max-width: 40em; }
.guide-paper { margin: 28px auto 0; max-width: 1056px; width: calc(100% - 32px); }
@media (min-width: 768px) { .guide-paper { width: calc(100% - 64px); } }
.prose .guide-paper { width: 100%; margin: 16px 0 0; }
/* about 4 mm per 13 px on phones: long rhythm strips scroll sideways rather than shrink */
.learn-strip.rhythm { min-width: 820px; }
.learn-strip.leads { min-width: 560px; }
.learn-strip.twelve { min-width: 860px; }
@media (min-width: 900px) { .learn-strip.rhythm, .learn-strip.leads, .learn-strip.twelve { min-width: 0; } }
.prose ul.crit li { color: var(--ink); font-weight: 500; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 15px; }
table.diff { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
table.diff th, table.diff td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); }
table.diff thead th { font-size: 13px; color: var(--ink-3); font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
table.diff tbody th { width: 34%; font-weight: 650; color: var(--ink); padding-right: 16px; }
table.diff td { color: var(--ink-2); }
@media (max-width: 560px) {
  table.diff thead { display: none; }
  table.diff tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.diff th, table.diff td { display: block; width: auto; border: 0; padding: 2px 0; }
  table.diff tbody th { width: auto; }
}
.quiz { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.quiz button {
  font: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 16px; min-height: 46px; cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.quiz button:hover:not(:disabled) { border-color: var(--grid-major); transform: translateY(-1px); }
.quiz button:disabled { cursor: default; opacity: 0.55; }
.quiz button.ok { opacity: 1; border-color: #2f8a57; background: color-mix(in srgb, #2f8a57 14%, var(--surface-2)); }
.quiz button.no { opacity: 1; border-color: var(--accent); background: var(--accent-soft); }
.quiz-out { animation: fade 0.3s var(--ease); }
.quiz-out b { margin-right: 4px; }
.prose ol.refs { counter-reset: s; font-size: 14.5px; }
.prose ol.refs li { padding: 6px 0 6px 34px; overflow-wrap: anywhere; }
.prose ol.refs li::before { width: 22px; height: 22px; font-size: 12px; top: 7px; }
.prose ol.steps { counter-reset: none; margin-top: 8px; }
.prose ol.steps > li { padding: 0; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; color: inherit; }
.prose ol.steps > li::before { display: none; }
.prose ol.steps > li h2 { margin-top: 0; }
.prose ol.steps .eyebrow { margin-bottom: 6px; }
.prose .hook { color: var(--ink); }
.prose .you { margin-top: 14px; font-weight: 600; color: var(--ink); }
.guide-cta { margin-top: 0; }
