/*
 * content.css — shared styles for prerendered content pages at
 * /calculator/*, /guides/*, /compare/*, /glossary/*.
 *
 * Intentionally a single small stylesheet (no dependency on the main
 * app styles.css) so the pages first-paint immediately on cold cache.
 * Visually consistent with the app's dark theme but self-contained —
 * they need to render correctly even if the main app bundle never
 * downloads (e.g., a visitor from a search engine who bounces).
 */

/* ─── Self-hosted fonts (audit-7 #15, 2026-05-07) ──────────────────
   Replaces Google Fonts CDN to remove the third-party privacy
   surface (no IP fingerprinting via fonts.gstatic.com) and improve
   first-paint (one less DNS + connection). Latin subset only;
   weights match the app's actual usage. ~250KB total, served from
   same origin → cached by the SW precache + immutable headers.
   --------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-800.woff2') format('woff2');
}

:root {
  --bg: #131518;
  --bg-elevated: #191c20;
  --bg-card: #1e2127;
  --text-primary: #e6edf3;
  --text-secondary: #b8c0ca;
  --text-muted: #8b93a0;
  --accent: #2dd4a8;
  --accent-hover: #5eebc1;
  --border: #2a2f36;
  --border-light: #1f242b;
  --warn: #f59e0b;
  --danger: #f87171;
  /* Secondary accents (audit 2026-05-07) — for data viz, research-mode
     pills, and warning callouts that shouldn't fight the primary teal. */
  --accent-data: #6aa9ff;
  --accent-research: #c084fc;
  --accent-soft: rgba(45, 212, 168, 0.14);
  --radius: 10px;
  --radius-sm: 6px;
}

/* Light theme (audit 2026-05-07) — toggle via the moon/sun button in the
   nav. Persists to localStorage('vitalog-theme'); defaults to system
   prefers-color-scheme. Accent darkens slightly to keep ~4.5:1 contrast
   on white backgrounds. */
html[data-theme="light"] {
  --bg: #fafbfc;
  --bg-elevated: #f1f3f5;
  --bg-card: #ffffff;
  --text-primary: #0f1419;
  --text-secondary: #3a4452;
  --text-muted: #66707d;
  --accent: #0f9670;
  --accent-hover: #0a7a5a;
  --border: #d8dde3;
  --border-light: #e7eaee;
  --warn: #c2710b;
  --danger: #c0392b;
  --accent-data: #2563eb;
  --accent-research: #8b5cf6;
  --accent-soft: rgba(15, 150, 112, 0.10);
}
html[data-theme="light"] body.marketing {
  background: var(--bg);
  color: var(--text-primary);
}
html[data-theme="light"] .marketing-nav {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
html[data-theme="light"] .marketing-nav-cta {
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}
html[data-theme="light"] .marketing-nav-cta:hover { color: #fff !important; }
html[data-theme="light"] .btn { color: #fff; }
html[data-theme="light"] .btn:hover { color: #fff; }
html[data-theme="light"] .btn--ghost { color: var(--accent); }
html[data-theme="light"] .marketing-hero h1 em {
  background: linear-gradient(120deg, var(--accent), #0aaf83 60%, #16c79a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .marketing-final-cta {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--bg-elevated);
}
html[data-theme="light"] .marketing-hero-visual {
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 50%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    var(--bg-card);
}
html[data-theme="light"] .marketing-compare-th-vl,
html[data-theme="light"] .marketing-compare-table tbody td:first-of-type {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
html[data-theme="light"] .marketing-faq-search-input,
html[data-theme="light"] .page-search-input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366707d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
}
html[data-theme="light"] .marketing-architecture {
  background: var(--bg-elevated);
}
html[data-theme="light"] .marketing-architecture svg rect[stroke="#2a2f36"] { stroke: var(--border); }
html[data-theme="light"] .marketing-architecture svg rect[fill="#1e2127"] { fill: var(--bg-card); }
html[data-theme="light"] .marketing-architecture svg rect[stroke="rgba(45,212,168,0.5)"] { stroke: var(--accent); stroke-opacity: 0.5; }
html[data-theme="light"] .marketing-architecture svg text[fill="#e6edf3"] { fill: var(--text-primary); }
html[data-theme="light"] .marketing-architecture svg text[fill="#8b93a0"] { fill: var(--text-muted); }
html[data-theme="light"] .marketing-architecture svg text[fill="#2dd4a8"] { fill: var(--accent); }
/* Inherited fill on the parent <g> — text without an own fill picks it up */
html[data-theme="light"] .marketing-architecture svg g[fill="#e6edf3"] { fill: var(--text-primary); }
/* Arrow markers */
html[data-theme="light"] .marketing-architecture svg path[fill="#2dd4a8"] { fill: var(--accent); }
html[data-theme="light"] .marketing-architecture svg [stroke="#2dd4a8"] { stroke: var(--accent); }
html[data-theme="light"] .marketing-skip-link { color: #fff; }
html[data-theme="light"] .marketing-skip-link:focus,
html[data-theme="light"] .marketing-skip-link:focus-visible { color: #fff; }

/* Theme toggle button — sun/moon swap, lives in the nav */
.marketing-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
  margin-left: -10px;
}
.marketing-theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.marketing-theme-toggle svg { width: 16px; height: 16px; }
.marketing-theme-toggle .icon-moon { display: none; }
.marketing-theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .marketing-theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .marketing-theme-toggle .icon-sun { display: none; }
@media (max-width: 720px) {
  .marketing-theme-toggle { margin-left: 0; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Sticky marketing nav is ~58px tall; bump scroll-padding so hash-link
     jumps clear it on every anchor (audit 2026-05-07). 24px is the older
     value used when content pages had no sticky nav. */
  scroll-padding-top: 88px;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  padding: 0 16px 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 32px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

/* Hero */
h1 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 8px;
}
.byline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.byline a { color: var(--text-muted); text-decoration: underline; }

/* TL;DR / quick-answer block — prime AI-retrieval target */
.tldr {
  background: linear-gradient(180deg, rgba(45, 212, 168, 0.08), rgba(45, 212, 168, 0.02));
  border: 1px solid rgba(45, 212, 168, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 32px;
  font-size: 15.5px;
}
.tldr strong { color: var(--accent); }

/* Headings */
h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 48px 0 16px;
  scroll-margin-top: 24px;
  color: var(--text-primary);
}
h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text-primary);
}
h4 { font-size: 16px; font-weight: 600; margin: 18px 0 6px; }

p { margin: 0 0 16px; color: var(--text-secondary); }
p strong { color: var(--text-primary); font-weight: 600; }

/* Links */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-hover); }

/* Lists */
ul, ol { margin: 0 0 16px 28px; }
li { margin: 0 0 6px; color: var(--text-secondary); }

/* Tables — wrap in a horizontally-scrollable container on narrow
   viewports so wide reference-range tables don't overflow .page and
   trigger a horizontal body scroll. Cleaner than display:block because
   `display:table` row-striping and alignment are preserved up to the
   scroll threshold. */
.page table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14.5px;
}
th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13.5px;
}
td strong { color: var(--text-primary); }

/* Code / math */
code {
  background: var(--bg-elevated);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 14px;
}
pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 12px 0 24px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}
pre code { background: transparent; padding: 0; color: inherit; }

/* Callout */
.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 16px 0 24px;
  font-size: 14.5px;
}
.callout--warn { border-left-color: var(--warn); }
.callout--danger { border-left-color: var(--danger); }
.callout strong { color: var(--text-primary); }

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; font-size: 13.5px; }

/* FAQ */
.faq dt {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
  margin-top: 20px;
}
.faq dd {
  margin: 6px 0 0;
  color: var(--text-secondary);
}

/* CTA block */
.cta {
  background: linear-gradient(180deg, rgba(45, 212, 168, 0.10), rgba(45, 212, 168, 0.03));
  border: 1px solid rgba(45, 212, 168, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 40px 0 24px;
}
.cta h2 { margin: 0 0 8px; font-size: 22px; }
.cta p { margin: 0 0 14px; font-size: 15px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #0a1512;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 22px;
  text-decoration: none;
  font-size: 14.5px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; color: #0a1512; }
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* Footer */
.page-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.page-footer a { color: var(--text-muted); text-decoration: underline; }
.page-footer .disclaimer {
  font-size: 12px;
  margin-top: 12px;
  color: var(--text-muted);
  opacity: 0.85;
  line-height: 1.6;
}

/* Simple dark-on-dark citation block */
.cite {
  font-size: 13px;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 12px;
  margin: 12px 0 16px;
  font-style: italic;
}
.cite a { color: var(--text-muted); text-decoration: underline; }

/* Responsive */
@media (max-width: 640px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  body { font-size: 15px; padding: 0 14px 64px; }
  .page { padding-top: 20px; }
  th, td { padding: 8px 10px; font-size: 13.5px; }
}

/* ─── Marketing site (audit 2026-05-06) ─────────────────────────────
   Layered onto the existing content-pages styles. The .page wrapper
   constrains article-style content to 820px; .marketing-page lifts
   that constraint so landing/about/etc. can use full-width sections.
   --------------------------------------------------------------- */

body.marketing { padding: 0 0 0; }

/* Top nav */
.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-light);
}
.marketing-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.marketing-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.marketing-nav-wordmark { color: var(--text-primary); }
.marketing-nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.marketing-nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 120ms ease;
}
.marketing-nav-links a:hover { color: var(--text-primary); }
/* Primary nav CTA — visual hierarchy: this is the conversion button on
   every marketing page, so it needs to look like a button, not a link.
   Audit 2026-05-07: prior version was thin and read as a styled
   nav-link; bumped padding, added subtle shadow + arrow nudge on hover. */
.marketing-nav-cta {
  background: var(--accent);
  color: #0a1512 !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), 0 0 0 0 var(--accent);
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.marketing-nav-cta:hover {
  background: var(--accent-hover);
  color: #0a1512 !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 28%, transparent);
  transform: translateY(-1px);
}
.marketing-nav-cta span {
  display: inline-block;
  transition: transform 160ms ease;
}
.marketing-nav-cta:hover span { transform: translateX(3px); }

/* Canonical secondary-page H1 (audit 2026-05-07): /about/contact/, /faq/,
   /donate/, /cookies/, /accessibility/, /security/, /imprint/ all faked an
   H1 with `<h2 style="font-size: 38px">` at slightly different sizes.
   This class unifies them — single H1 size + consistent margin. Use it
   on the H1 of every secondary page so headings agree across the site. */
.marketing-page-h1 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 16px;
}
@media (max-width: 720px) {
  .marketing-page-h1 { font-size: 32px; }
}

/* Tile grid hover: arrow translate-x for the "Contact →"-style cues */
.marketing-tile h3 { transition: color 140ms ease; }
.marketing-tile:hover h3 { color: var(--accent); }
.marketing-nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.marketing-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  margin: 3px 0;
  border-radius: 2px;
  transition: transform 120ms ease;
}

/* Page chrome */
.marketing-page { max-width: none; padding: 0; }
.marketing-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
}
.marketing-section--narrow {
  max-width: 820px;
}
.marketing-section--alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border-light);
}
.marketing-section h2 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.marketing-section .lead {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 36px;
  max-width: 720px;
}
.marketing-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Hero */
.marketing-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px 72px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.marketing-hero h1 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
}
.marketing-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), #5eebc1 60%, #b9f5e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.marketing-hero p {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 28px;
}
.marketing-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.marketing-hero-meta {
  margin-top: 24px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

/* Concrete-numbers strip (audit 2026-05-07): four bold facts under the
   lead paragraph, before CTAs. Numbers convert. Sits between the
   pitch and the buttons so it's read in the click-decision moment. */
.marketing-hero-numbers {
  list-style: none;
  margin: 4px 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 28px;
  font-size: 14px;
  color: var(--text-secondary);
}
.marketing-hero-numbers li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}
.marketing-hero-numbers li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
@media (max-width: 720px) {
  .marketing-hero-numbers {
    gap: 12px 22px;
    font-size: 13.5px;
    margin: 4px 0 20px;
  }
  .marketing-hero-numbers strong { font-size: 15.5px; }
}
.marketing-hero-numbers strong {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* "No signup needed" mini-CTA under the primary buttons (audit 2026-05-07).
   Drives the demo path explicitly without competing with primary CTA. */
.marketing-hero-no-signup {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
.marketing-hero-no-signup a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.marketing-hero-no-signup a:hover { text-decoration: underline; }
.marketing-hero-meta span::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
}
.marketing-hero-visual {
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 50%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--bg-elevated);
  padding: 32px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marketing-hero-visual-inner {
  width: 100%;
  display: grid;
  gap: 14px;
}

/* Buttons (extends existing .btn) */
.marketing-section .btn { padding: 12px 22px; font-size: 15px; }
.marketing-section .btn--lg { padding: 16px 28px; font-size: 16px; }

/* Pillar cards (3-up feature grid) */
.marketing-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.marketing-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.marketing-pillar:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-2px); }
.marketing-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.marketing-pillar h3 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
}
.marketing-pillar p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* Big numbered correlation showcase */
.marketing-correlation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.marketing-correlation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.marketing-correlation-card .num {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.marketing-correlation-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.marketing-correlation-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Use-case columns */
.marketing-usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.marketing-usecase {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
}
.marketing-usecase h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.marketing-usecase p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Trust strip */
.marketing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}
.marketing-trust-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
}
.marketing-trust-pill::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
}

/* Funnel split — broad vs niche */
.marketing-funnel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.marketing-funnel-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: var(--bg-card);
}
.marketing-funnel-card h3 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
}
.marketing-funnel-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 16px;
}
.marketing-funnel-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.marketing-funnel-card li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.marketing-funnel-card li::before {
  content: '→ ';
  color: var(--accent);
  font-weight: 700;
}

/* Final CTA band */
.marketing-final-cta {
  text-align: center;
  padding: 80px 24px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    var(--bg-elevated);
  border-block: 1px solid var(--border-light);
}
.marketing-final-cta h2 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.marketing-final-cta p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 28px;
}

/* Footer */
.marketing-footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg);
  padding: 56px 24px 28px;
}
.marketing-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 3fr;
  gap: 48px;
}
.marketing-footer-brand { max-width: 280px; }
.marketing-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 12px;
}
.marketing-footer-tagline {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0 0 6px;
}
.marketing-footer-jurisdiction {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}
.marketing-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.marketing-footer-col-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  margin: 0 0 14px;
}
.marketing-footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  transition: color 120ms ease;
}
.marketing-footer-col a:hover { color: var(--text-primary); }
.marketing-footer-strip {
  max-width: 1180px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}
.marketing-footer-copy {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}
.marketing-footer-disclaimer {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* About-page hubs (tile grid linking to subpages) */
.marketing-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.marketing-tile {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 160ms ease, transform 160ms ease;
}
.marketing-tile:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-2px); }
.marketing-tile h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.marketing-tile p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.55; }

/* Donation page — wallet cards */
.marketing-wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.marketing-wallet {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.marketing-wallet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.marketing-wallet-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--accent);
}
.marketing-wallet h3 { font-size: 16px; font-weight: 700; margin: 0; }
.marketing-wallet-net { font-size: 12px; color: var(--text-muted); }
.marketing-wallet-addr {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
  color: var(--text-secondary);
}
.marketing-wallet-copy {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.marketing-wallet-copy:hover { color: var(--accent); border-color: var(--accent); }
.marketing-wallet-qr {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.marketing-wallet-qr canvas { background: #fff; padding: 8px; border-radius: 6px; }

/* FAQ */
.marketing-faq-cat { margin-top: 32px; }
.marketing-faq-cat h3 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--accent);
}
.marketing-faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}
.marketing-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 600;
  padding-right: 24px;
  position: relative;
}
.marketing-faq-item summary::-webkit-details-marker { display: none; }
.marketing-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: -1px;
  font-size: 22px;
  color: var(--text-muted);
  font-weight: 400;
  transition: transform 160ms ease;
}
.marketing-faq-item[open] summary::after { content: '−'; color: var(--accent); }
.marketing-faq-item p {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive — collapse to single column at common breakpoints */
@media (max-width: 960px) {
  .marketing-hero { grid-template-columns: 1fr; padding: 48px 20px; gap: 32px; }
  .marketing-hero h1 { font-size: 40px; }
  .marketing-pillars { grid-template-columns: 1fr; }
  .marketing-correlation { grid-template-columns: 1fr; }
  .marketing-usecases { grid-template-columns: 1fr; }
  .marketing-funnel { grid-template-columns: 1fr; }
  .marketing-tile-grid { grid-template-columns: 1fr; }
  .marketing-wallet-grid { grid-template-columns: 1fr; }
  .marketing-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .marketing-footer-cols { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .marketing-footer-strip { grid-template-columns: 1fr; }
  .marketing-section { padding: 48px 20px; }
  .marketing-section h2 { font-size: 26px; }
  .marketing-final-cta h2 { font-size: 28px; }
}
@media (max-width: 720px) {
  .marketing-nav-toggle { display: block; }
  .marketing-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    gap: 4px;
  }
  .marketing-nav-links.open { display: flex; }
  .marketing-nav-links a { padding: 12px 0; font-size: 15px; }
  .marketing-nav-cta { text-align: center; margin-top: 8px; padding: 12px 16px; }
  .marketing-nav-inner { position: relative; }
}

/* Brand selection color (audit 2026-05-07) — text the user selects gets
   a brand-tinted highlight rather than the default OS blue/grey.
   Applied site-wide (article + marketing pages). */
::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text-primary);
}
::-moz-selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text-primary);
}

/* Visually-hidden — for labels we want to ship for a11y but hide visually.
   Used on the hub-page search inputs that have a placeholder doing the
   visible label work. Mirrors the marketing-faq-search-label trick. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hub-page card filter (audit 2026-05-07) — search input on /glossary/,
   /guides/, /compare/ that filters .grid > .card cards and hides H2
   sections with zero visible cards. Same pattern as the FAQ search
   but adapted to the article-style page chrome. */
.page-search {
  margin: 14px 0 28px;
  position: relative;
}
.page-search-input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 16px 12px 42px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px 16px;
}
.page-search-input::placeholder { color: var(--text-muted); }
.page-search-input:focus,
.page-search-input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.page-search-empty {
  margin: 14px 4px 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
.page-search-empty[hidden] { display: none; }

/* Smooth theme transition (audit 2026-05-07) — when the user toggles
   light/dark, the toggle script adds .theme-transitioning to <html>
   for ~220ms. Scoped to body.marketing chrome elements only — applying
   to `*` would fight the logo path-draw, scroll-reveal animations, and
   hover transforms with universal `!important` transitions. */
html.theme-transitioning body.marketing,
html.theme-transitioning .marketing-nav,
html.theme-transitioning .marketing-section,
html.theme-transitioning .marketing-section--alt,
html.theme-transitioning .marketing-pillar,
html.theme-transitioning .marketing-tile,
html.theme-transitioning .marketing-correlation-card,
html.theme-transitioning .marketing-funnel-card,
html.theme-transitioning .marketing-trust-pill,
html.theme-transitioning .marketing-wallet,
html.theme-transitioning .marketing-faq-item,
html.theme-transitioning .marketing-architecture,
html.theme-transitioning .marketing-final-cta,
html.theme-transitioning .marketing-footer,
html.theme-transitioning .marketing-toc,
html.theme-transitioning .marketing-scroll-top,
html.theme-transitioning .marketing-faq-search-input,
html.theme-transitioning .page-search-input,
html.theme-transitioning .marketing-compare,
html.theme-transitioning .marketing-compare-table th,
html.theme-transitioning .marketing-compare-table td,
html.theme-transitioning .btn,
html.theme-transitioning .btn--ghost,
html.theme-transitioning .marketing-nav-cta {
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease !important;
}

/* Heading anchor links (audit 2026-05-07) — the ¶ pilcrow appears on
   heading hover, copies the deep URL to clipboard on click. */
.marketing-anchor-link {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.75em;
  color: var(--text-muted);
  opacity: 0;
  text-decoration: none;
  transition: opacity 140ms ease, color 140ms ease;
  vertical-align: 0.05em;
}
body.marketing > section h2:hover .marketing-anchor-link,
body.marketing > section h3:hover .marketing-anchor-link,
.marketing-anchor-link:focus,
.marketing-anchor-link:focus-visible {
  opacity: 1;
}
.marketing-anchor-link:hover { color: var(--accent); }
.marketing-anchor-link.is-copied {
  opacity: 1;
  color: var(--accent);
}
.marketing-anchor-link.is-copied::after {
  content: ' link copied';
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-left: 6px;
  text-transform: uppercase;
}

/* Scroll-to-top button (audit 2026-05-07) — auto-injected by nav.html.
   Hidden until the user scrolls 800px down, then fades in. Bottom-right
   on desktop, sits above the sticky-mobile-CTA on small screens. */
.marketing-scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease, color 140ms ease, border-color 140ms ease;
  z-index: 35;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.marketing-scroll-top.is-shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.marketing-scroll-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 720px) {
  .marketing-scroll-top { bottom: 84px; right: 16px; }
}

/* Sticky right-rail TOC (audit 2026-05-07) — auto-injected by nav.html
   on long pages (≥3 h2). Shows on viewports ≥1280px (1180 content +
   margin). Hidden on narrower screens; the page reads top-down anyway. */
.marketing-toc {
  position: fixed;
  top: 100px;
  right: 24px;
  max-width: 220px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  z-index: 30;
  padding: 14px 14px 14px 18px;
  border-left: 2px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}
.marketing-toc-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.marketing-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.marketing-toc li { margin: 0; padding: 4px 0; }
.marketing-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 2px 0;
  border-left: 2px solid transparent;
  margin-left: -20px;
  padding-left: 18px;
  transition: color 140ms ease, border-color 140ms ease;
}
.marketing-toc a:hover { color: var(--text-primary); }
.marketing-toc a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}
@media (max-width: 1280px) {
  .marketing-toc { display: none; }
}

/* Logo waveform polish (audit 2026-05-07) — gentle path-draw on mount,
   small hover lift. Subtle delight without being noisy. */
.marketing-nav-logo-svg path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: vlPathDraw 1.05s cubic-bezier(0.4, 0, 0.2, 1) 200ms forwards;
  transition: stroke-width 200ms ease;
}
.marketing-nav-logo:hover .marketing-nav-logo-svg path {
  stroke-width: 3.0;
}
.marketing-nav-logo-svg {
  transition: transform 200ms ease;
}
.marketing-nav-logo:hover .marketing-nav-logo-svg {
  transform: scale(1.06);
}
@keyframes vlPathDraw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-nav-logo-svg path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ─── Article-page chrome (audit-6 M10 migration) ──────────────────
   Article-style content pages (/glossary/*, /guides/*, /compare/*,
   /calculator/<slug>/) used to live in their own .page wrapper with
   a hand-rolled .breadcrumb + .page-footer. They now wrap their
   content in <main id="main-content"><section class="marketing-
   section marketing-section--narrow article-page">...</section>
   </main> so they share the marketing nav + footer + theme toggle +
   auto-breadcrumb + scroll-top + prefetch + everything.

   .article-page tightens the section to article-readable width,
   restores subtitle / byline / tldr / table-overflow / callout / cite
   typography, and keeps every .page-era class working (.faq, .grid,
   .card, .cta, etc.) so existing markup doesn't have to change.
   --------------------------------------------------------------- */
.article-page {
  /* article-section--narrow already gives 820px; keep top padding
     visually-symmetric with the marketing-page-h1 line-height */
  padding-top: 56px;
  padding-bottom: 56px;
}
.article-page > h1.marketing-page-h1 { margin: 0 0 12px; }
.article-page .subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 8px;
}
.article-page .byline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.article-page .byline a { color: var(--text-muted); text-decoration: underline; }

/* TL;DR block — prime AI-retrieval target */
.article-page .tldr {
  background: linear-gradient(180deg, rgba(45, 212, 168, 0.08), rgba(45, 212, 168, 0.02));
  border: 1px solid rgba(45, 212, 168, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 32px;
  font-size: 15.5px;
  color: var(--text-secondary);
}
.article-page .tldr strong { color: var(--accent); }

/* Article body typography */
.article-page h2 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 48px 0 16px;
  scroll-margin-top: 88px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.article-page h3 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text-primary);
}
.article-page h4 { font-size: 16px; font-weight: 600; margin: 18px 0 6px; color: var(--text-primary); }
.article-page p { margin: 0 0 16px; color: var(--text-secondary); line-height: 1.7; }
.article-page p strong { color: var(--text-primary); font-weight: 600; }
.article-page ul, .article-page ol { margin: 0 0 16px 28px; }
.article-page li { margin: 0 0 6px; color: var(--text-secondary); line-height: 1.7; }

/* Tables wrap in horizontal-scroll on narrow viewports */
.article-page table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14.5px;
}
.article-page th, .article-page td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.article-page th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}
.article-page td strong { color: var(--text-primary); }

/* Code / math */
.article-page code {
  background: var(--bg-elevated);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 14px;
}
.article-page pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 12px 0 24px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}
.article-page pre code { background: transparent; padding: 0; color: inherit; }

/* Callout */
.article-page .callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 16px 0 24px;
  font-size: 14.5px;
}
.article-page .callout--warn { border-left-color: var(--warn); }
.article-page .callout--danger { border-left-color: var(--danger); }
.article-page .callout strong { color: var(--text-primary); }

/* Feature grid (.grid > .card) — article-internal cards */
.article-page .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}
.article-page .card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.article-page .card h3 { margin: 0 0 6px; font-size: 16px; }
.article-page .card p { margin: 0; font-size: 13.5px; }

/* FAQ definition list */
.article-page .faq dt {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
  margin-top: 20px;
}
.article-page .faq dd {
  margin: 6px 0 0;
  color: var(--text-secondary);
}

/* CTA block */
.article-page .cta {
  background: linear-gradient(180deg, rgba(45, 212, 168, 0.10), rgba(45, 212, 168, 0.03));
  border: 1px solid rgba(45, 212, 168, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 40px 0 24px;
}
.article-page .cta h2 { margin: 0 0 8px; font-size: 22px; }
.article-page .cta p { margin: 0 0 14px; font-size: 15px; }

/* Citation block */
.article-page .cite {
  font-size: 13px;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 12px;
  margin: 12px 0 16px;
  font-style: italic;
}
.article-page .cite a { color: var(--text-muted); text-decoration: underline; }

@media (max-width: 640px) {
  .article-page { padding-top: 28px; padding-bottom: 36px; }
  .article-page h2 { font-size: 22px; }
  .article-page th, .article-page td { padding: 8px 10px; font-size: 13.5px; }
}

/* Marketing breadcrumb (audit 2026-05-07) — auto-rendered by nav.html
   from location.pathname. Sits above the page H1 / eyebrow. */
.marketing-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.marketing-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.marketing-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text-muted);
}
.marketing-breadcrumb li + li::before {
  content: '/';
  color: var(--text-muted);
  opacity: 0.5;
  margin-right: 0;
}
.marketing-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 140ms ease;
}
.marketing-breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.marketing-breadcrumb [aria-current="page"] { color: var(--text-secondary); font-weight: 600; }

/* Footer trust strip (audit 2026-05-07) — sub-processor wordmarks above
   the footer columns. Text-based marks (no logo image needed); link to
   the security page where each is described. */
.marketing-footer-trust {
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.marketing-footer-trust-label {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  font-size: 10.5px;
  margin-right: 4px;
}
.marketing-footer-trust-mark {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 140ms ease;
}
.marketing-footer-trust-mark:hover { color: var(--accent); text-decoration: none; }
.marketing-footer-trust-mark--ghost {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.marketing-footer-trust-sep { color: var(--text-muted); opacity: 0.6; }
.marketing-footer-trust-divider {
  flex: 1;
  min-width: 16px;
  border-top: 1px dashed var(--border-light);
  margin: 0 6px;
}
@media (max-width: 640px) {
  .marketing-footer-trust { gap: 10px; padding: 12px 16px; }
  .marketing-footer-trust-divider { display: none; }
  .marketing-footer-trust-mark--ghost { width: 100%; margin-top: 4px; }
}

/* Architecture diagram (audit 2026-05-07) — SVG flow on /about/security/.
   Card-bordered figure with caption. Responsive via SVG viewBox. */
.marketing-architecture {
  margin: 28px 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 18px 18px;
}
.marketing-architecture svg {
  width: 100%;
  height: auto;
  max-height: 280px;
  display: block;
}
.marketing-architecture-cap {
  margin: 14px 8px 4px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
}

/* FAQ search input (audit 2026-05-07) — substring filter, lives at top
   of /faq/. Visible label for a11y, hidden visually. */
.marketing-faq-search { margin-top: 18px; position: relative; }
.marketing-faq-search-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.marketing-faq-search-input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 14px 18px 14px 46px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 18px 18px;
}
.marketing-faq-search-input::placeholder { color: var(--text-muted); }
.marketing-faq-search-input:focus,
.marketing-faq-search-input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.marketing-faq-search-empty {
  margin: 14px 4px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.marketing-faq-search-empty a { color: var(--accent); }

/* Comparison table (audit 2026-05-07) — landing-page "what other apps
   don't do" matrix. Horizontal-scroll on narrow screens (table is wide
   by nature). Highlight VitaLog column visually. */
.marketing-compare {
  margin: 28px 0 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
}
.marketing-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.marketing-compare-table thead th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.marketing-compare-table th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  padding: 12px 14px;
  background: transparent;
  font-size: 13.5px;
  white-space: normal;
}
.marketing-compare-table td {
  text-align: center;
  padding: 12px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.marketing-compare-table tbody tr:last-child th,
.marketing-compare-table tbody tr:last-child td { border-bottom: none; }
.marketing-compare-table tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}
.marketing-compare-th-feature { text-align: left !important; }
.marketing-compare-th-vl,
.marketing-compare-table tbody td:first-of-type {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--text-primary);
  font-weight: 700;
}
.marketing-compare-yes {
  color: var(--accent) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
}
/* "Not available" cell — muted en-dash. Replaces the literal em-dash
   that the em-dash sweep accidentally turned into ", " (audit fix
   2026-05-07). Class also lets light-theme tune the muted color. */
.marketing-compare-no {
  color: var(--text-muted) !important;
  opacity: 0.55;
  font-size: 18px !important;
  line-height: 1;
}

/* ─── A11y + perf foundation (audit 2026-05-07) ─────────────────────
   Skip-link, focus-visible polish, prefers-reduced-motion, print
   stylesheet, scroll-reveal hooks. Loaded onto every marketing page
   via content.css. -------------------------------------------------- */

/* Skip-to-content link — visible on focus only; mandatory for keyboard
   and screen-reader users to bypass the nav on every page. */
.marketing-skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--accent);
  color: #0a1512;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 100;
  transition: top 140ms ease;
}
.marketing-skip-link:focus,
.marketing-skip-link:focus-visible {
  top: 8px;
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
  text-decoration: none;
  color: #0a1512;
}

/* Focus-visible — keyboard-only focus rings. Mouse focus stays clean. */
body.marketing :focus { outline: none; }
body.marketing a:focus-visible,
body.marketing button:focus-visible,
body.marketing summary:focus-visible,
body.marketing input:focus-visible,
body.marketing textarea:focus-visible,
body.marketing [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
body.marketing .btn:focus-visible,
body.marketing .marketing-nav-cta:focus-visible {
  outline-offset: 3px;
}

/* Scroll-reveal hooks — class added by reveal.js IntersectionObserver
   shim. Initial state hides; .is-visible plays the animation. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky mobile CTA — appears at bottom on small screens after the user
   has scrolled past the hero. Hidden by default; shown via .is-shown
   class set by sticky-cta.js at scroll threshold. */
.marketing-sticky-cta {
  display: none;
}
@media (max-width: 720px) {
  .marketing-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-top: 1px solid var(--border-light);
    transform: translateY(110%);
    transition: transform 240ms ease;
    pointer-events: none;
  }
  .marketing-sticky-cta.is-shown {
    transform: translateY(0);
    pointer-events: auto;
  }
  .marketing-sticky-cta .btn {
    flex: 1;
    text-align: center;
    padding: 14px 16px;
    font-size: 15px;
  }
  /* Make room for the sticky bar so final CTA isn't covered */
  body.marketing { padding-bottom: 80px; }
}

/* Reduced-motion — respect OS-level "reduce motion" preference. Cancels
   transforms, shimmer, and scroll-reveal animations site-wide. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marketing-pillar:hover,
  .marketing-tile:hover,
  .marketing-nav-cta:hover { transform: none; }
}

/* Print — strip backgrounds, hide nav/footer/sticky, ink-on-paper. */
@media print {
  body.marketing {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
  }
  .marketing-nav,
  .marketing-skip-link,
  .marketing-sticky-cta,
  .marketing-final-cta,
  .marketing-footer,
  .marketing-hero-cta,
  .marketing-nav-toggle { display: none !important; }
  .marketing-section,
  .marketing-hero {
    max-width: none !important;
    padding: 12px 0 !important;
    background: none !important;
    border: none !important;
    page-break-inside: avoid;
  }
  .marketing-section h2,
  .marketing-hero h1,
  .marketing-page-h1,
  .marketing-correlation-card h3,
  .marketing-pillar h3 {
    color: #000 !important;
    background: none !important;
    -webkit-text-fill-color: #000 !important;
  }
  .marketing-section p,
  .marketing-section li,
  .marketing-section .lead { color: #222 !important; }
  a { color: #000 !important; text-decoration: underline !important; }
  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
    color: #555;
  }
  a[href^="#"]::after,
  a[href^="mailto:"]::after { content: ''; }
}
