/* ==========================================================================
   HivePlainScan — "calm clinic" design system (pass 3)
   Someone just got an MRI and is scared. Every choice here is meant to
   lower heart rates: deep teal/navy, one warm amber accent, generous
   whitespace, honest micro-copy, zero playful-silly motion.
   Vanilla CSS, system font stack, mobile-first, no dependencies.
   ========================================================================== */

:root {
  /* ---- palette ---- */
  --bg:            #f5f8f9;   /* page wash */
  --surface:       #ffffff;   /* cards */
  --surface-tint:  #edf3f4;   /* subtle tinted surface */
  --ink:           #1e2c37;   /* deep navy ink */
  --ink-2:         #33475a;   /* softer ink */
  --muted:         #5c7183;
  --faint:         #8ea1b1;
  --line:          #d9e5e9;
  --line-soft:     #e8f0f2;

  --brand:         #0d6875;   /* deep teal */
  --brand-deep:    #084a54;
  --brand-ink:     #063a42;
  --brand-soft:    #e1eff1;
  --brand-ghost:   #f0f7f8;

  --accent:        #dd7e2f;   /* warm amber — used sparingly */
  --accent-deep:   #b25f1c;
  --accent-soft:   #faf0e3;

  --ok:            #2c7a4b;
  --ok-bg:         #e3f3e8;
  --ok-line:       #bfe0c9;

  --warn-ink:      #7c5c14;
  --warn-bg:       #fdf5e0;
  --warn-line:     #ead49c;

  --err-ink:       #9c3128;
  --err-bg:        #fdecea;
  --err-line:      #f0c0b9;

  --focus:         #0d6875;

  /* severity */
  --sev-mild-bg:   #e3f3e8;  --sev-mild-ink: #2c7a4b;  --sev-mild-bar: #2c7a4b;
  --sev-mod-bg:    #fdf5e0;  --sev-mod-ink: #7c5c14;   --sev-mod-bar: #d9a91e;
  --sev-sev-bg:    #fdecea;  --sev-sev-ink: #9c3128;   --sev-sev-bar: #c0392b;
  --sev-unk-bg:    #eef2f5;  --sev-unk-ink: #5c7183;   --sev-unk-bar: #8ea1b1;

  /* ---- type ---- */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.7rem;
  --text-3xl: clamp(2rem, 5.2vw, 2.6rem);
  --text-4xl: clamp(2.4rem, 7vw, 3.4rem);
  --leading: 1.62;
  --leading-tight: 1.22;

  /* ---- shape & depth ---- */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-sm: 0 1px 3px rgba(13, 60, 70, 0.06);
  --shadow: 0 2px 10px rgba(13, 60, 70, 0.07), 0 8px 28px rgba(13, 60, 70, 0.05);
  --shadow-lg: 0 4px 18px rgba(13, 60, 70, 0.10), 0 18px 44px rgba(13, 60, 70, 0.08);

  /* ---- rhythm ---- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 22px; --space-6: 30px; --space-7: 44px; --space-8: 64px;
  --wrap: 780px;
  --wrap-wide: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-wide { max-width: var(--wrap-wide); }

/* ---- type ---- */
h1, h2, h3, h4 { line-height: var(--leading-tight); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--text-4xl); margin: 0.35em 0 0.5em; font-weight: 800; }
h2 { font-size: var(--text-2xl); margin: 0 0 0.55em; font-weight: 750; }
h3 { font-size: var(--text-xl); margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visible, consistent keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brand-soft); }

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand-ink); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 700; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.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;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.76rem; color: var(--muted); }

.header-nav { display: flex; gap: 6px; font-size: 0.93rem; align-items: center; }
.header-nav a {
  color: var(--muted);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.header-nav a:hover { color: var(--brand-ink); text-decoration: none; background: var(--brand-ghost); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background:
    radial-gradient(1100px 340px at 50% -80px, var(--brand-soft) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding: var(--space-8) 0 var(--space-7);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.hero h1 { max-width: 16em; }
.lede { font-size: var(--text-lg); color: var(--ink-2); max-width: 36em; }

.pricing-line {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  max-width: 40em;
  margin-top: var(--space-4);
}

/* trust badges: small, quiet, factual */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-4);
  list-style: none;
  padding: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
}
.badge svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--ok); }
.badge-accent svg { color: var(--accent-deep); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-5); }

/* ==========================================================================
   Buttons — generous touch targets, honest press states
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 13px 24px;
  min-height: 48px;               /* thumb-friendly */
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.06s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.995); }

.btn-primary {
  background: linear-gradient(180deg, #12808f 0%, var(--brand) 100%);
  border-color: var(--brand-deep);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 104, 117, 0.28);
}
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-ink); color: #fff; box-shadow: 0 3px 12px rgba(13, 104, 117, 0.34); }
.btn-primary:disabled { background: var(--faint); border-color: var(--faint); box-shadow: none; cursor: wait; }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--brand-deep);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-ghost); }
.btn-ghost:disabled { color: var(--faint); cursor: wait; }

.btn-accent {
  background: linear-gradient(180deg, #a95514 0%, var(--accent-deep) 100%);
  border-color: #8f4d12;
  color: #fff;
  box-shadow: 0 2px 8px rgba(221, 126, 47, 0.32);
}
.btn-accent:hover { background: var(--accent-deep); color: #fff; }

.btn-large { padding: 15px 30px; font-size: 1.06rem; min-height: 54px; }
.btn-small { padding: 9px 16px; font-size: var(--text-sm); min-height: 44px; }
.btn-block { display: flex; width: 100%; }
.btn-spaced { margin-top: 10px; }

/* Loading shimmer on the explain button */
.btn-loading { position: relative; overflow: hidden; }
.btn-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.45) 50%, transparent 75%);
  animation: btn-shimmer 1.15s linear infinite;
  pointer-events: none;
}
@keyframes btn-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--space-7) 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-sub { color: var(--muted); max-width: 40em; font-size: var(--text-lg); }
.section-fine { font-size: var(--text-sm); color: var(--muted); max-width: 46em; }
.section-head { max-width: 44em; margin-bottom: var(--space-5); }

/* ==========================================================================
   Forms
   ========================================================================== */
.field-label { display: block; font-weight: 700; font-size: 0.95rem; margin: 20px 0 8px; color: var(--ink); }
.form-label { display: block; font-weight: 700; font-size: 0.95rem; margin: 20px 0 8px; color: var(--ink); }
.form-control {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
}

textarea, input[type="email"], input[type="text"], select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea:focus, input[type="email"]:focus, input[type="text"]:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.form-row { display: flex; flex-direction: column; gap: 0; }
.form-col { flex: 1; }
.form-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.form-status { margin-top: 14px; color: var(--muted); font-size: 0.95rem; min-height: 1.5em; }

/* Honeypot bot trap — present in the DOM, never visible */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Paste zone — the product as a premium instrument
   ========================================================================== */
.paste-zone {
  position: relative;
  margin-top: 14px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.paste-zone:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow);
}
.paste-zone textarea {
  border: 0;
  box-shadow: none;
  border-radius: var(--radius-lg);
  min-height: 220px;
  resize: vertical;
  line-height: 1.6;
  background: transparent;
}
.paste-zone textarea:focus { box-shadow: none; border: 0; }

.paste-drop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: rgba(225, 239, 241, 0.96);
  border: 2px dashed var(--brand);
  border-radius: var(--radius-lg);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: var(--text-lg);
  z-index: 5;
}
.paste-drop[hidden] { display: none; }
.paste-drop small { font-weight: 600; color: var(--muted); font-size: var(--text-sm); }

.paste-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.char-count {
  font-size: var(--text-sm);
  color: var(--muted);   /* pass 4: --faint failed WCAG AA on white; muted passes 5.07:1 */
  font-variant-numeric: tabular-nums;
}
.paste-hint { font-size: var(--text-sm); color: var(--muted); flex: 1; min-width: 200px; }

/* Trust strip near the report textarea — the first fear moment */
.trust-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 600;
  margin: 14px 0 0;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  border-radius: var(--radius);
  padding: 10px 14px;
  max-width: 40em;
}
.trust-strip svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--ok); }

/* Honest progress steps while the explanation generates */
.steps-progress {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 40em;
}
.steps-progress[hidden] { display: none; }
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--muted);   /* pass 4: --faint failed WCAG AA on white */
  transition: color 0.2s ease;
}
.step-item .step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line);
  flex: 0 0 auto;
  transition: background 0.2s ease;
}
.step-item.active { color: var(--brand-ink); font-weight: 700; }
.step-item.active .step-dot { background: var(--brand); animation: pulse-dot 1s ease-in-out infinite; }
.step-item.done { color: var(--muted); }
.step-item.done .step-dot { background: var(--ok); animation: none; }
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* ==========================================================================
   Live before/after demo — the product selling itself
   ========================================================================== */
.demo { padding: var(--space-7) 0; }
.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: var(--space-5);
  align-items: stretch;
}
.demo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.demo-card-jargon { border-top: 4px solid var(--faint); }
.demo-card-plain { border-top: 4px solid var(--brand); }
.demo-label {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-jargon-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-2);
  min-height: 7.5em;
  margin: 0;
  white-space: pre-wrap;
}
.demo-cursor {
  display: inline-block;
  width: 9px; height: 1.15em;
  background: var(--brand);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.demo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  font-size: 1.6rem;
  font-weight: 800;
}
.demo-plain-body { min-height: 7.5em; }
.demo-plain-body .demo-finding {
  border-left: 4px solid var(--sev-mild-bar);
  background: var(--surface-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 0.98rem;
}
.demo-plain-body .demo-ruledout {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
  color: var(--ok);
  font-weight: 600;
}
.demo-plain-body .demo-ruledout svg { width: 16px; height: 16px; flex: 0 0 auto; }
.demo-note { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-4); max-width: 44em; }
.demo-replay-row { margin-top: var(--space-4); }
#demo-after:not([hidden]) { animation: rise-in 0.5s ease both; }

/* ==========================================================================
   Social proof at the anxiety points
   ========================================================================== */
.proof-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: var(--space-5);
}
.proof-quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.proof-quote::before {
  content: "\201C";
  position: absolute;
  top: 2px; left: 14px;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brand-soft);
  font-family: Georgia, serif;
}
.proof-quote blockquote {
  margin: 0 0 10px;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-2);
  position: relative;
}
.proof-name { font-size: var(--text-sm); color: var(--muted); margin: 0; font-weight: 600; }
.proof-flag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--warn-ink);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.proof-inline { margin-top: var(--space-5); }

/* ==========================================================================
   Results — the "aha moment". Should feel like a $9.99 artifact already.
   ========================================================================== */
.results {
  margin-top: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  scroll-margin-top: 90px;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-soft);
}
.results-head h2 { margin: 0; }

/* Fresh nodes stagger in — plays automatically on insert */
.result-block { margin: var(--space-5) 0; animation: rise-in 0.45s ease both; }
.result-block:first-child { margin-top: 10px; }
.result-block:nth-child(2) { animation-delay: 0.06s; }
.result-block:nth-child(3) { animation-delay: 0.12s; }
.result-block:nth-child(4) { animation-delay: 0.18s; }
.result-block:nth-child(5) { animation-delay: 0.24s; }
.result-block:nth-child(n+6) { animation-delay: 0.3s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-block h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 800;
}

.summary-text { font-size: var(--text-lg); color: var(--ink); max-width: 42em; }

/* Findings "cards": table rows restyled with severity rails */
.table-scroll { overflow-x: visible; border: 0; border-radius: var(--radius); }
table.findings {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  font-size: 0.96rem;
}
table.findings caption {
  text-align: left;
  font-weight: 800;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 4px 2px 6px;
  caption-side: top;
}
/* card layout carries its own visual labels; keep headers for AT */
table.findings thead {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
table.findings tbody tr {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table.findings td {
  text-align: left;
  padding: 14px 16px;
  vertical-align: top;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
table.findings td:first-child {
  border-left: 1px solid var(--line);
  border-radius: var(--radius) 0 0 var(--radius);
  font-weight: 700;
  width: 24%;
  white-space: normal;
}
table.findings td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.92rem;
}
/* severity rail on the finding-name cell */
table.findings tr.sevrow-mild td:first-child    { box-shadow: inset 4px 0 0 var(--sev-mild-bar); }
table.findings tr.sevrow-moderate td:first-child { box-shadow: inset 4px 0 0 var(--sev-mod-bar); }
table.findings tr.sevrow-severe td:first-child   { box-shadow: inset 4px 0 0 var(--sev-sev-bar); }
table.findings tr.sevrow-unknown td:first-child  { box-shadow: inset 4px 0 0 var(--sev-unk-bar); }

/* Mobile: stack each finding into a true card with inline labels */
@media (max-width: 640px) {
  table.findings, table.findings tbody, table.findings tr, table.findings td { display: block; width: 100%; }
  table.findings { border-spacing: 0 14px; }
  table.findings tbody tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  table.findings td, table.findings td:first-child, table.findings td:last-child {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 10px 16px;
    white-space: normal;
  }
  table.findings tr.sevrow-mild,
  table.findings tr.sevrow-moderate,
  table.findings tr.sevrow-severe,
  table.findings tr.sevrow-unknown { border-left: 5px solid var(--sev-unk-bar); }
  table.findings tr.sevrow-mild { border-left-color: var(--sev-mild-bar); }
  table.findings tr.sevrow-moderate { border-left-color: var(--sev-mod-bar); }
  table.findings tr.sevrow-severe { border-left-color: var(--sev-sev-bar); }
  table.findings td:first-child { padding-top: 14px; font-size: 1.04rem; }
  table.findings td:last-child { padding-bottom: 14px; }
  table.findings td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);   /* pass 4: --faint failed WCAG AA on white */
    margin-bottom: 2px;
  }
  table.findings td:first-child::before { display: none; }
}

.sev {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.sev-mild { background: var(--sev-mild-bg); color: var(--sev-mild-ink); }
.sev-moderate { background: var(--sev-mod-bg); color: var(--sev-mod-ink); }
.sev-severe { background: var(--sev-sev-bg); color: var(--sev-sev-ink); }
.sev-unknown { background: var(--sev-unk-bg); color: var(--sev-unk-ink); }

/* Ruled-out: distinctly calm, checklist-like, green */
.ruled-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ruled-out li {
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  border-radius: var(--radius);
  padding: 11px 15px 11px 42px;
  font-size: 0.97rem;
  position: relative;
}
.ruled-out li::before {
  content: "";
  position: absolute;
  left: 15px; top: 16px;
  width: 11px; height: 7px;
  border-left: 3px solid var(--ok);
  border-bottom: 3px solid var(--ok);
  transform: rotate(-45deg);
}
.ruled-out li strong { color: var(--ok); }

.checklist { margin: 0; padding-left: 24px; }
.checklist li { margin-bottom: 10px; }
.checklist li::marker { color: var(--brand); }

.figure-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  background: var(--surface-tint);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.figure-wrap svg { max-width: 220px; height: auto; }
.figure-caption { font-size: var(--text-sm); color: var(--muted); text-align: center; max-width: 28em; }

.disclaimer-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  margin: var(--space-5) 0 8px;
  font-size: 0.98rem;
}
.disclaimer-box strong { color: var(--warn-ink); }

.zero-findings {
  background: var(--brand-ghost);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  font-size: 1.02rem;
}

/* ==========================================================================
   Email capture
   ========================================================================== */
.email-capture {
  margin-top: var(--space-6);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--space-5);
}
.email-capture p { color: var(--muted); font-size: 0.96rem; }
.email-row { display: flex; flex-direction: column; gap: 10px; }
.email-status { margin-top: 10px; font-size: 0.95rem; min-height: 1.4em; }
.email-status.ok { color: var(--ok); font-weight: 700; }
.email-status.err { color: var(--err-ink); font-weight: 600; }

.hero-email {
  margin-top: var(--space-5);
  max-width: 40em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-email .field-label { margin-top: 0; }
.hero-email .email-row { position: relative; }

/* ==========================================================================
   Pricing — stated plainly, with an honest guarantee
   ========================================================================== */
.pricing-note {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 13px 18px;
  margin-bottom: 20px;
  color: var(--warn-ink);
  font-weight: 700;
}

.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: var(--space-5); }

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.price-card-featured {
  border: 2px solid var(--brand);
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-ghost) 100%);
  box-shadow: var(--shadow);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 20px;
  background: linear-gradient(180deg, #a95514 0%, var(--accent-deep) 100%);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0;
  box-shadow: 0 2px 8px rgba(221, 126, 47, 0.4);
}

.price-card h3 { margin-bottom: 2px; }
.price { margin: 8px 0 14px; }
.price-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;   /* prices never wobble */
}
.price-per { color: var(--muted); font-size: 0.95rem; margin-left: 6px; }

.price-features { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.price-features li { padding: 7px 0 7px 28px; position: relative; font-size: 0.97rem; }
.price-features li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 14px;
  width: 11px;
  height: 6px;
  border-left: 3px solid var(--ok);
  border-bottom: 3px solid var(--ok);
  transform: rotate(-45deg);
}

.pricing-error {
  margin-top: 18px;
  background: var(--err-bg);
  border: 1px solid var(--err-line);
  color: var(--err-ink);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-weight: 600;
}

/* honest guarantee — candor, no hype */
.guarantee-line {
  margin-top: var(--space-5);
  background: var(--surface);
  border: 1px dashed var(--brand);
  border-radius: var(--radius);
  padding: 15px 20px;
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 46em;
}
.guarantee-line strong { color: var(--brand-ink); }

/* annual option strip — appears under the pricing grid once configured */
.annual-strip {
  margin-top: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 18px 22px;
  max-width: 46em;
}
.annual-strip p { margin: 0 0 12px; color: var(--ink-2); }
.annual-strip .btn { max-width: 24em; }

/* checkout trust badges — the second fear moment */
.checkout-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
}

/* ==========================================================================
   Steps / how it works
   ========================================================================== */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 2px 0 22px 60px;
  max-width: 42em;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }

/* ==========================================================================
   FAQ accordion — smooth, calm
   ========================================================================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  padding: 15px 20px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brand);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "–"; transform: rotate(180deg); }
.faq-item summary:hover { background: var(--brand-ghost); }
.faq-item > div, .faq-item p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--brand-ink);
  color: #cfe0e4;
  padding: 40px 0 24px;
  margin-top: var(--space-6);
}
.site-footer .brand-name { color: #fff; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-tag { color: #9db8bf; font-size: 0.93rem; margin: 6px 0 0; }
.footer-nav { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 0.95rem; }
.footer-nav a { color: #cfe0e4; padding: 10px 0; }   /* pass 4: 44px+ tap targets */
.footer-nav a:hover { color: #fff; }
.footer-legal p { font-size: 0.84rem; color: #8ba6ad; margin: 22px 0 0; max-width: 56em; }

/* ==========================================================================
   Static pages
   ========================================================================== */
.page-hero { padding: var(--space-7) 0 var(--space-3); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-body { padding: 10px 0 var(--space-7); }
.page-body h2 { margin-top: 1.7em; }
.page-body ul { padding-left: 24px; }
.page-body li { margin-bottom: 10px; }
.page-body p, .page-body li { max-width: 46em; }

.notice-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  margin: 26px 0;
}
.notice-card h1 { margin-top: 0; font-size: var(--text-2xl); }
.notice-card h2 { font-size: var(--text-xl); }
.notice-card .actions, .notice-card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ==========================================================================
   Server-rendered pages (glossary / share) — same system, no page left behind
   ========================================================================== */
.crumbs { font-size: var(--text-sm); color: var(--muted); margin: 18px 0 6px; }
.crumbs a { color: var(--brand); font-weight: 600; }

.cta-box {
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-sm);
}
.cta-box h2 { margin-top: 0; }
.cta-box p { color: var(--ink-2); }

.glossary-list { list-style: none; margin: var(--space-4) 0; padding: 0; display: grid; gap: 10px; }
.glossary-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.glossary-list li a:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); }
.glossary-list li a::after { content: "→"; color: var(--brand); font-weight: 800; }

.hub-link {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  margin: 0 8px 10px 0;
  font-weight: 700;
  color: var(--brand-deep);
  box-shadow: var(--shadow-sm);
}
.hub-link:hover { text-decoration: none; border-color: var(--brand); background: var(--brand-ghost); }

.share-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-ink);
  color: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.share-findings { display: grid; gap: 12px; margin: var(--space-4) 0; }
.share-plain {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 13px 18px;
  box-shadow: var(--shadow-sm);
}
.share-loc { color: var(--muted); font-size: var(--text-sm); font-weight: 600; }

.stories { display: grid; gap: 16px; margin: var(--space-5) 0; }
.story {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.story blockquote { margin: 0 0 10px; font-style: italic; font-size: 1.05rem; color: var(--ink-2); }
.story .story-author { margin: 0; color: var(--muted); font-size: var(--text-sm); font-weight: 600; }

/* Testimonial wall (stories page) */
.story-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}
.story-card blockquote { margin: 0 0 12px; font-size: 1.06rem; font-style: italic; color: var(--ink-2); }
.story-author { color: var(--muted); font-size: 0.95rem; margin: 0; font-weight: 600; }
.example-flag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--warn-ink);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  padding: 3px 11px;
  margin: 0 0 12px;
}

/* Referral box (success page) */
.referral-box { margin-top: 20px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.referral-box h2 { margin-top: 0; }
.referral-code {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: inline-block;
  max-width: 100%;          /* pass 4: 16-char codes must not overflow at 360px */
  overflow-wrap: break-word;
  word-break: break-all;
  padding: 10px 22px;
  border-radius: var(--radius);
  margin: 8px 0 14px;
  border: 1px dashed var(--brand);
  font-variant-numeric: tabular-nums;
}
.referral-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.referral-status { font-size: 0.95rem; color: var(--muted); margin-top: 12px; min-height: 1.4em; }

/* Save offer (cancel page) */
.save-offer { border: 2px solid var(--brand); }
.save-offer[hidden] { display: none; }

/* Clinic one-pager */
.link-box {
  background: var(--surface);
  border: 2px dashed var(--brand);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin: 20px 0;
}
.link-box .link-url { font-size: 1.35rem; font-weight: 800; color: var(--brand-deep); letter-spacing: 0.02em; }

/* Growth leftovers: feedback, share, nudge, history, sticky CTA */
.feedback-row .thumb-btns { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.thumb-btn { display: inline-flex; align-items: center; gap: 8px; }
.thumb-btn svg { width: 18px; height: 18px; }
.thumb-btn.selected { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.feedback-status { margin-top: 10px; font-size: 0.95rem; color: var(--muted); min-height: 1.4em; }

.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; }
.share-btn svg { width: 18px; height: 18px; }
.share-status { margin-top: 10px; font-size: 0.95rem; color: var(--muted); min-height: 1.4em; }
.share-nudge { border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-ghost); padding: 15px 18px; margin: 16px 0; }
.share-nudge p { margin: 0 0 10px; }

.nudge-banner {
  margin-top: 22px;
  background: var(--accent-soft);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.nudge-banner[hidden] { display: none; }
.nudge-banner p { margin: 0 0 14px; }
.nudge-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.push-prompt { border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-ghost); padding: 15px 18px; margin: 16px 0; }
.push-prompt p { margin: 0 0 12px; }
.push-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.history-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.94rem;
  background: var(--surface);
}
.history-terms { color: var(--muted); }
.diff-line {
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}

.card-highlight { outline: 3px solid var(--brand); outline-offset: 4px; }

/* Sticky mobile CTA (small screens only, shown after results render) */
#sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;   /* pass 4: never squeeze text/CTA/close at 360px */
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#sticky-cta[hidden] { display: none !important; }
#sticky-cta .sticky-text { font-weight: 700; font-size: 0.95rem; flex: 1; }
#sticky-cta .btn { flex: 0 0 auto; }
.sticky-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);   /* pass 4: --faint failed WCAG AA on white */
  font-size: 1.5rem;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.sticky-close:hover { color: var(--ink); }
body.has-sticky-cta { padding-bottom: 136px; }   /* pass 4: wrapped CTA is taller at 360px */
@media (min-width: 760px) {
  #sticky-cta { display: none !important; }
  body.has-sticky-cta { padding-bottom: 0; }
}

#print-view { display: none; }
.glossary-link { font-size: 0.85em; font-weight: 600; }

/* ==========================================================================
   Print — the results page should print like a $9.99 artifact
   ========================================================================== */
@media print {
  body.printing > *:not(#print-view) { display: none !important; }
  body.printing #print-view { display: block !important; }
  #print-view { font-size: 12pt; color: #000; font-family: Georgia, "Times New Roman", serif; }
  #print-view h1 { font-size: 22pt; margin-bottom: 4px; color: #000; }
  #print-view h2 { font-size: 14pt; margin-top: 18pt; border-bottom: 2px solid #0d6875; padding-bottom: 4pt; color: #0d6875; }
  #print-view table { width: 100%; border-collapse: collapse; margin-top: 8pt; }
  #print-view th, #print-view td { border: 1px solid #999; padding: 6pt 8pt; text-align: left; vertical-align: top; }
  #print-view .pv-meta { color: #444; font-size: 10pt; }
  #print-view .pv-disclaimer { border: 2px solid #000; padding: 10pt; margin-top: 16pt; font-weight: bold; }
  #print-view .pv-badge { margin-top: 14pt; font-size: 10pt; color: #444; border-top: 1px solid #999; padding-top: 8pt; }
  #print-view ul { padding-left: 18pt; }
  .no-print { display: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 560px) {
  .form-row { flex-direction: row; gap: 14px; }
  .form-actions { flex-direction: row; align-items: center; }
  .email-row { flex-direction: row; }
  .email-row input { flex: 1; }
  .email-row .btn { white-space: nowrap; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .demo-arrow { transform: rotate(0deg); }
}

@media (min-width: 760px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .price-card-featured { transform: scale(1.03); }
  .price-card-featured:hover { transform: scale(1.03) translateY(-2px); }
  .results { padding: var(--space-6) var(--space-6); }
  .proof-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 559px) {
  /* pass 4: header must wrap at 360px — brand (~190px) + 3 nowrap nav links
     (~420px) overflow a 320px content box without wrapping */
  .header-inner { flex-wrap: wrap; row-gap: 2px; padding-top: 8px; padding-bottom: 8px; }
  .header-nav { flex-wrap: wrap; row-gap: 2px; }
  .header-nav a { padding: 12px 8px; font-size: 0.86rem; }   /* 44px+ tap targets on small screens */
  .brand-tag { display: none; }
  .demo-arrow { transform: rotate(90deg); margin: -4px 0; }
}

/* ==========================================================================
   Reduced motion — calm means calm.
   Covers: CSS smooth scrolling, all animations/transitions, parallax-style
   background motion (none currently used; guarded anyway), and JS smooth
   scrolling (app.js checks matchMedia and passes behavior:'auto').
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
    background-attachment: scroll !important;
  }
  .result-block { animation: none; }
  .btn-loading::after { animation: none; }
  .demo-cursor { animation: none; }
  .step-item.active .step-dot { animation: none; }
}
/* ==========================================================================
   Pass 4 SEO — quotable definition blocks + stat callouts (AI-citation
   formatted) + related-conditions link mesh. Same calm-clinic system.
   ========================================================================== */
.definition {
  background: var(--brand-ghost);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 16px 20px;
  margin: var(--space-5) 0;
  box-shadow: var(--shadow-sm);
}
.definition-text { font-size: var(--text-lg); color: var(--ink); margin: 0 0 8px; }
.definition-src { font-size: var(--text-xs); color: var(--muted); margin: 0; }

.stat-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: var(--space-5) 0;
  box-shadow: var(--shadow-sm);
}
.stat-callout ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.stat-callout li { font-size: var(--text-sm); color: var(--ink-2); padding-left: 22px; position: relative; }
.stat-callout li::before { content: "✓"; color: var(--ok); font-weight: 800; position: absolute; left: 0; }
.stat-callout li strong { color: var(--ink); }
.stat-src { font-size: var(--text-xs); color: var(--muted); margin: 0; }

.related-conditions { list-style: none; margin: var(--space-4) 0; padding: 0; display: grid; gap: 10px; }
.related-conditions li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.related-conditions li a:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); }

/* Sourced editorial guides */
.article-body{max-width:74ch;padding-block:2rem 4rem;line-height:1.75;overflow-wrap:anywhere}.article-body h1{font-size:clamp(1.8rem,5vw,2.8rem);line-height:1.15}.article-body h2{margin-top:2rem;line-height:1.3}.article-body li{margin-block:.65rem}.article-body aside{padding:1.3rem;background:#edf7f6;border-radius:12px;margin-block:2rem}.article-body .btn{white-space:normal}
