/* Navaro core design system.
   Elegant, high-end: neutral black/white graphite grounds with role-based accents.
   Blue handles interaction/info, red handles urgent warnings, green is reserved for verified/positive certainty. */

:root {
  --bg: #090909;
  --bg-deep: #030303;
  --surface: #121212;
  --surface-2: #1b1b1b;
  --surface-3: #242424;
  --ink: #f7f5ef;
  --ink-soft: #d5d1c8;
  --muted: #96938d;
  --border: #2a2a2a;
  --border-strong: #3d3d3d;

  --accent: #5f8fdc;
  --accent-bright: #9bbcff;
  --accent-deep: #20365a;
  --accent-soft: #111827;
  --gold: #d8d2c4;

  --verified: #4aa06e;
  --verified-soft: rgba(74, 160, 110, 0.09);
  --trial: #8fb8ff;
  --trial-soft: #121a28;
  --warning: #f08d8d;
  --warning-soft: #251314;
  --danger: #ff6f7d;
  --danger-soft: #2a1115;
  --unverified: #aaa6a0;
  --unverified-soft: #1b1b1b;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --container: 1180px;
}

/* Single dark theme. A lighter mode is offered but the brand lives in the dark. */
:root[data-theme="light"] {
  --bg: #f5f5f3;
  --bg-deep: #ececea;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --surface-3: #eeeeec;
  --ink: #101010;
  --ink-soft: #3c3c3a;
  --muted: #6b6862;
  --border: #ddddda;
  --border-strong: #bdbdb8;
  --accent: #2f5f9f;
  --accent-bright: #1f4f90;
  --accent-deep: #17365f;
  --accent-soft: #e8effa;
  --gold: #625f58;
  --verified: #2d7650;
  --verified-soft: rgba(45, 118, 80, 0.08);
  --trial: #235a9f;
  --trial-soft: #e8f0fb;
  --warning: #a7333d;
  --warning-soft: #f9e8ea;
  --danger: #9f1d2f;
  --danger-soft: #f8e4e7;
  --unverified: #5f5d58;
  --unverified-soft: #eeeeec;
  --shadow: 0 1px 3px rgba(16, 16, 16, 0.08), 0 1px 20px rgba(16, 16, 16, 0.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(155, 188, 255, 0.07), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 19px;
  letter-spacing: 0.005em;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-bright); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold); text-decoration: none; }
code, .mono { font-family: var(--font-mono); font-size: 0.82em; letter-spacing: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-weight: 900; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9, 9, 9, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="light"] .site-header { background: rgba(245, 245, 243, 0.88); }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; gap: 18px; max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.brand .mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f7f5ef, #a7a5a0 45%, #1a1a1a 100%);
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #050505; font-family: var(--font-display); font-weight: 900; font-size: 0.9rem;
  box-shadow: 0 0 24px rgba(155, 188, 255, 0.18);
}
.brand .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; font-style: italic; }
.main-nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink-soft); font-family: var(--font-body); font-size: 1.02rem; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius); letter-spacing: 0.02em;
}
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a.active { color: var(--accent-bright); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; width: 100%; order: 3; flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .site-header .bar { flex-wrap: wrap; }
}

/* Disclaimer banner */
.disclaimer-banner {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.disclaimer-banner .container { padding: 9px 24px; display: flex; gap: 8px; align-items: center; }
.disclaimer-banner strong { color: var(--ink-soft); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius); font-family: var(--font-body);
  font-weight: 600; font-size: 1.02rem; letter-spacing: 0.03em;
  border: 1px solid transparent; cursor: pointer;
  background: var(--accent); color: var(--bg-deep);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--accent-bright); color: var(--bg-deep); box-shadow: 0 0 30px rgba(155, 188, 255, 0.22); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn.secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--accent); box-shadow: none; }
.btn.block { width: 100%; }

/* Sections */
.section { padding: 76px 0; }
.section.tight { padding: 44px 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.7rem; font-weight: 600;
  color: var(--accent-bright); font-family: var(--font-body);
}
.lede { color: var(--ink-soft); font-size: 1.22rem; max-width: 60ch; line-height: 1.55; }
.muted { color: var(--muted); }

/* Tool tiles */
.tool-tile { display: flex; flex-direction: column; gap: 12px; height: 100%; position: relative; overflow: hidden; }
.tool-tile::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  border: 1px solid transparent; pointer-events: none; transition: border-color 0.2s ease;
}
.tool-tile:hover::after { border-color: var(--accent); }
.tool-tile .icon { font-size: 1.7rem; opacity: 0.9; }
.tool-tile h3 { margin: 0; font-size: 1.3rem; }
.tool-tile p { margin: 0; color: var(--muted); font-size: 1rem; flex: 1; line-height: 1.5; }
.tool-tile .go { font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; color: var(--accent-bright); letter-spacing: 0.03em; }

/* Badges (evidence strength) */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body);
  font-size: 0.74rem; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  white-space: nowrap; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid transparent;
}
.badge.verified { background: var(--verified-soft); color: var(--verified); border-color: rgba(74, 160, 110, 0.28); }
.badge.trial { background: var(--trial-soft); color: var(--trial); border-color: rgba(143, 184, 255, 0.28); }
.badge.warning { background: var(--warning-soft); color: var(--warning); border-color: rgba(240, 141, 141, 0.28); }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 111, 125, 0.28); }
.badge.unverified { background: var(--unverified-soft); color: var(--unverified); border-color: var(--border-strong); }

/* Forms */
label { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; color: var(--ink-soft); letter-spacing: 0.02em; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--bg-deep); color: var(--ink);
  font-size: 1rem; font-family: var(--font-body);
}
:root[data-theme="light"] input, :root[data-theme="light"] select, :root[data-theme="light"] textarea { background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.hint { font-size: 0.86rem; color: var(--muted); margin-top: 5px; font-style: italic; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-family: var(--font-body); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.table-wrap table { margin: 0; }

/* Alerts */
.alert {
  padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border);
  font-size: 0.98rem; line-height: 1.5;
}
.alert.warn { background: var(--warning-soft); border-color: rgba(240, 141, 141, 0.24); color: var(--warning); }
.alert.danger { background: var(--danger-soft); border-color: rgba(255, 111, 125, 0.26); color: var(--danger); }
.alert.info { background: var(--accent-soft); border-color: rgba(155, 188, 255, 0.22); color: var(--accent-bright); }

/* Result panel (calculators) */
.result-panel {
  background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 24px;
}
.result-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
.result-stat:last-child { border-bottom: none; }
.result-stat .value { font-family: var(--font-mono); font-weight: 400; color: var(--accent-bright); font-size: 1.05rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-deep); margin-top: 80px; }
.site-footer .container { padding: 52px 24px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-footer h4 { font-family: var(--font-body); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--ink-soft); font-size: 1rem; }
.site-footer a:hover { color: var(--accent-bright); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 22px 24px; font-size: 0.86rem; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; max-width: var(--container); margin: 0 auto;
}

/* Hero */
.hero { padding: 96px 0 56px; }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); margin: 20px 0 22px; max-width: 16ch; line-height: 1.04; }
.hero .lede { font-size: 1.32rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.stat-strip { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--border); }
.stat-strip .stat b { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-strip .stat span { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.03em; margin-top: 6px; display: block; }

/* Search / filters (codex) */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--border-strong); background: transparent; color: var(--ink-soft);
  padding: 7px 16px; border-radius: 999px; font-family: var(--font-body); font-size: 0.9rem;
  font-weight: 500; cursor: pointer; letter-spacing: 0.02em; transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--bg-deep); }
.compound-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 17px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 9px; transition: border-color 0.15s ease, background 0.15s ease;
}
.compound-row:hover { border-color: var(--accent); background: var(--surface-2); }
.compound-row .name { font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; }
.compound-row .cat { color: var(--muted); font-size: 0.9rem; font-style: italic; }

/* Utility */
.flex { display: flex; gap: 12px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.grid-2 { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Cloudflare visual repair pass.
   Adds a stronger editorial interface layer so pages never read as plain text,
   while keeping green reserved for verified/positive states. */
:root {
  --bg: #080807;
  --bg-deep: #020202;
  --surface: #141312;
  --surface-2: #1e1d1b;
  --surface-3: #2a2825;
  --ink: #faf7ef;
  --ink-soft: #ddd7ca;
  --muted: #a8a096;
  --border: rgba(250, 247, 239, 0.12);
  --border-strong: rgba(250, 247, 239, 0.22);
  --accent: #6f9fe8;
  --accent-bright: #b8d1ff;
  --accent-deep: #1c3150;
  --accent-soft: rgba(111, 159, 232, 0.13);
  --gold: #d7c9aa;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

:root[data-theme="light"] {
  --bg: #efede8;
  --bg-deep: #e2ded6;
  --surface: #fffdfa;
  --surface-2: #f6f2ea;
  --surface-3: #ece5da;
  --ink: #151411;
  --ink-soft: #3f3930;
  --muted: #716a60;
  --border: rgba(35, 31, 26, 0.12);
  --border-strong: rgba(35, 31, 26, 0.24);
  --accent: #275b94;
  --accent-bright: #164a82;
  --accent-deep: #12345c;
  --accent-soft: rgba(39, 91, 148, 0.12);
  --gold: #74654c;
  --shadow: 0 18px 45px rgba(61, 50, 34, 0.13);
}

html { background: var(--bg-deep); }
body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(111, 159, 232, 0.09), transparent 34%),
    linear-gradient(180deg, var(--bg-deep) 0, var(--bg) 340px, var(--bg) 100%);
  color: var(--ink);
  letter-spacing: 0;
}

:root[data-theme="light"] body {
  background:
    linear-gradient(120deg, rgba(39, 91, 148, 0.12), transparent 34%),
    linear-gradient(180deg, #e4ded2 0, var(--bg) 340px, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(250, 247, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 247, 239, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

:root[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(35, 31, 26, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 31, 26, 0.035) 1px, transparent 1px);
}

h1, h2, h3, h4 { letter-spacing: 0; }
h1 { font-size: 4.25rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.38rem; }
h4 { font-size: 1.08rem; }

.site-header {
  background: rgba(8, 8, 7, 0.91);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}
:root[data-theme="light"] .site-header { background: rgba(239, 237, 232, 0.92); }
.site-header .bar { padding-top: 14px; padding-bottom: 14px; }
.main-nav a { border: 1px solid transparent; }
.main-nav a:hover, .main-nav a.active {
  background: var(--surface-2);
  border-color: var(--border);
}

.disclaimer-banner {
  background: linear-gradient(90deg, var(--bg-deep), var(--surface));
  border-bottom-color: rgba(255, 111, 125, 0.32);
}

.hero {
  padding: 76px 0 48px;
  border-bottom: 1px solid var(--border);
}

.hero .container {
  position: relative;
  padding-top: 22px;
  padding-bottom: 28px;
}

.hero .container::before {
  content: "";
  position: absolute;
  inset: 0 24px;
  z-index: -1;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(250, 247, 239, 0.08), rgba(250, 247, 239, 0.02)),
    linear-gradient(90deg, rgba(111, 159, 232, 0.12), transparent 58%);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .hero .container::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.36)),
    linear-gradient(90deg, rgba(39, 91, 148, 0.13), transparent 58%);
}

.hero h1 {
  max-width: 18ch;
  margin: 20px 0;
  font-size: 4.25rem;
  line-height: 1.02;
}

.hero .lede { max-width: 62ch; color: var(--ink-soft); }
.hero-actions .btn { min-height: 50px; }
.stat-strip {
  gap: 16px;
  border-top: 0;
  padding-top: 12px;
}
.stat-strip .stat {
  min-width: 170px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(250, 247, 239, 0.045);
}
:root[data-theme="light"] .stat-strip .stat { background: rgba(255, 255, 255, 0.55); }

.section {
  position: relative;
  padding: 70px 0;
  border-bottom: 1px solid rgba(250, 247, 239, 0.06);
}
:root[data-theme="light"] .section { border-bottom-color: rgba(35, 31, 26, 0.08); }
.section.tight { padding: 44px 0 62px; }

.section.tight > .container {
  padding-top: 28px;
  padding-bottom: 34px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(250, 247, 239, 0.04), rgba(250, 247, 239, 0.015));
}
:root[data-theme="light"] .section.tight > .container {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34));
}

.section h1,
.section h2 {
  margin-top: 10px;
  text-wrap: balance;
}

.lede {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.card,
.compound-row,
.table-wrap,
.result-panel,
.alert {
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(250, 247, 239, 0.055), rgba(250, 247, 239, 0.02)),
    var(--surface);
}

:root[data-theme="light"] .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    var(--surface);
}

.card::before,
.tool-tile::before,
.myth::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.9;
}

.card:hover,
.compound-row:hover {
  transform: translateY(-1px);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.card-grid { gap: 18px; }
.compound-row {
  background:
    linear-gradient(90deg, rgba(111, 159, 232, 0.08), transparent 45%),
    var(--surface);
}
:root[data-theme="light"] .compound-row {
  background:
    linear-gradient(90deg, rgba(39, 91, 148, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.78);
}

.table-wrap {
  background: var(--surface);
  border-color: var(--border-strong);
}
th {
  background: var(--surface-2);
  color: var(--ink-soft);
}
tbody tr:nth-child(even) td { background: rgba(250, 247, 239, 0.025); }
:root[data-theme="light"] tbody tr:nth-child(even) td { background: rgba(39, 91, 148, 0.035); }
td { vertical-align: top; }

.alert {
  border-left-width: 4px;
  background: var(--surface-2);
}
.alert.info { color: var(--ink-soft); }
.alert.info strong { color: var(--accent-bright); }
.alert.danger strong { color: var(--danger); }
.alert.warn strong { color: var(--warning); }

.badge.verified { box-shadow: 0 0 0 1px rgba(74, 160, 110, 0.1) inset; }
.badge.trial { box-shadow: 0 0 0 1px rgba(143, 184, 255, 0.12) inset; }
.badge.danger, .badge.warning { box-shadow: 0 0 0 1px rgba(255, 111, 125, 0.12) inset; }

.chip {
  background: rgba(250, 247, 239, 0.035);
  box-shadow: 0 1px 0 rgba(250, 247, 239, 0.03) inset;
}
:root[data-theme="light"] .chip { background: rgba(255, 255, 255, 0.58); }

input, select, textarea {
  background: rgba(2, 2, 2, 0.72);
  box-shadow: 0 1px 0 rgba(250, 247, 239, 0.06) inset;
}
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.84);
}

.site-footer {
  margin-top: 0;
  background:
    linear-gradient(180deg, var(--surface), var(--bg-deep));
}

@media (max-width: 900px) {
  h1, .hero h1 { font-size: 3rem; }
  h2 { font-size: 1.85rem; }
  .hero { padding-top: 44px; }
  .hero .container::before { inset: 0 16px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .container { padding-left: 16px; padding-right: 16px; }
  h1, .hero h1 { font-size: 2.45rem; }
  .section { padding: 48px 0; }
  .section.tight > .container { padding-top: 22px; padding-bottom: 26px; }
  .card { padding: 22px; }
  .stat-strip .stat { width: 100%; min-width: 0; }
  .footer-bottom { display: block; }
}

/* Semantic color correction pass.
   The base interface is neutral graphite/white. Blue is reserved for calm
   information and interaction, red for urgent/important warnings, and green
   only for verified or positive certainty states. */
:root {
  --bg: #080808;
  --bg-deep: #010101;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --surface-3: #242424;
  --ink: #f8f8f6;
  --ink-soft: #d7d7d2;
  --muted: #9b9b95;
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.22);
  --accent: #3f7fca;
  --accent-bright: #8fb9f4;
  --accent-deep: #142840;
  --accent-soft: rgba(63, 127, 202, 0.14);
  --gold: #c7c3b8;
  --verified: #4aa06e;
  --verified-soft: rgba(74, 160, 110, 0.09);
  --trial: #6fa4e8;
  --trial-soft: rgba(111, 164, 232, 0.12);
  --warning: #e05763;
  --warning-soft: rgba(224, 87, 99, 0.12);
  --danger: #ff6b78;
  --danger-soft: rgba(255, 107, 120, 0.14);
  --unverified: #aaa9a5;
  --unverified-soft: rgba(255, 255, 255, 0.06);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

:root[data-theme="light"] {
  --bg: #f4f4f3;
  --bg-deep: #e7e7e5;
  --surface: #ffffff;
  --surface-2: #f1f1ef;
  --surface-3: #e7e7e4;
  --ink: #111111;
  --ink-soft: #363634;
  --muted: #696965;
  --border: rgba(17, 17, 17, 0.12);
  --border-strong: rgba(17, 17, 17, 0.22);
  --accent: #245a9d;
  --accent-bright: #164a87;
  --accent-deep: #102f55;
  --accent-soft: rgba(36, 90, 157, 0.11);
  --gold: #5f5d58;
  --verified: #2d7650;
  --verified-soft: rgba(45, 118, 80, 0.08);
  --trial: #285f9f;
  --trial-soft: rgba(40, 95, 159, 0.1);
  --warning: #b82f3f;
  --warning-soft: rgba(184, 47, 63, 0.1);
  --danger: #9f1d2f;
  --danger-soft: rgba(159, 29, 47, 0.11);
  --unverified: #62615d;
  --unverified-soft: rgba(17, 17, 17, 0.05);
  --shadow: 0 16px 44px rgba(17, 17, 17, 0.11);
}

body {
  background:
    linear-gradient(180deg, var(--bg-deep) 0, var(--bg) 320px, var(--bg) 100%);
}

:root[data-theme="light"] body {
  background:
    linear-gradient(180deg, #ebebea 0, var(--bg) 320px, var(--bg) 100%);
}

.brand .mark {
  border-color: var(--border-strong);
  box-shadow: 0 0 20px rgba(143, 185, 244, 0.1);
}

.main-nav a.active {
  color: var(--ink);
  border-color: var(--border-strong);
}

.disclaimer-banner {
  background: var(--bg-deep);
  border-bottom-color: rgba(255, 107, 120, 0.38);
}

.hero .container::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    var(--surface);
}

:root[data-theme="light"] .hero .container::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.52)),
    var(--surface);
}

.eyebrow {
  color: var(--muted);
}

.lede {
  border-left-color: var(--border-strong);
}

.section.tight > .container,
:root[data-theme="light"] .section.tight > .container {
  background: transparent;
}

.card::before,
.tool-tile::before,
.myth::before {
  background: var(--border-strong);
  opacity: 0.7;
}

.card:hover::before,
.tool-tile:hover::before,
.compound-row:hover::before {
  background: var(--accent);
}

.compound-row {
  background: var(--surface);
}

:root[data-theme="light"] .compound-row {
  background: rgba(255, 255, 255, 0.82);
}

tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.022);
}

:root[data-theme="light"] tbody tr:nth-child(even) td {
  background: rgba(17, 17, 17, 0.026);
}

.badge.verified {
  background: var(--verified-soft);
  color: var(--verified);
  border-color: rgba(74, 160, 110, 0.34);
  box-shadow: none;
}

.badge.trial,
.badge.recommendation {
  background: var(--trial-soft);
  color: var(--trial);
  border-color: rgba(111, 164, 232, 0.3);
  box-shadow: none;
}

.badge.warning,
.badge.danger {
  box-shadow: none;
}

.badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: rgba(224, 87, 99, 0.32);
}

.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(255, 107, 120, 0.34);
}

.badge.unverified {
  background: var(--unverified-soft);
  color: var(--unverified);
  border-color: var(--border-strong);
}

.alert {
  background: var(--surface-2);
}

.alert.info {
  background: var(--accent-soft);
  border-color: rgba(63, 127, 202, 0.32);
  color: var(--ink-soft);
}

.alert.warn {
  background: var(--warning-soft);
  border-color: rgba(224, 87, 99, 0.38);
  color: var(--ink-soft);
}

.alert.danger {
  background: var(--danger-soft);
  border-color: rgba(255, 107, 120, 0.42);
  color: var(--ink-soft);
}

.home-page .hero .container {
  text-align: center;
}

.home-page .hero h1,
.home-page .hero .lede {
  margin-left: auto;
  margin-right: auto;
}

.home-page .hero .lede,
.home-page .section > .container > .lede,
.home-page .section-intro .lede {
  padding-left: 0;
  border-left: 0;
}

.home-page .hero-actions,
.home-page .stat-strip,
.home-page .section-intro .flex {
  justify-content: center;
}

.home-page .section > .container > .eyebrow,
.home-page .section > .container > h1,
.home-page .section > .container > h2,
.home-page .section > .container > .lede,
.home-page .section-intro .eyebrow,
.home-page .section-intro h2,
.home-page .section-intro .lede {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.home-page .section-intro {
  text-align: center;
}

.home-page .section > .container > .grid-2 {
  margin-top: 28px;
}

.home-page .evidence-card {
  max-width: 760px;
  margin: 28px auto 0;
}

.philosophy-grid {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.source-step {
  min-height: 245px;
}

.source-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0;
}

@media (max-width: 560px) {
  .home-page .section > .container > .lede,
  .home-page .section-intro .lede {
    max-width: 34ch;
  }
}

/* Resource reference visual pass */
:root {
  --bg: #f3eee6;
  --bg-deep: #06171a;
  --surface: #fffaf3;
  --surface-2: #f8f1e8;
  --surface-3: #ede3d5;
  --ink: #111716;
  --ink-soft: #373a35;
  --muted: #756d62;
  --border: rgba(17, 23, 22, 0.13);
  --border-strong: rgba(17, 23, 22, 0.24);
  --accent: #071c20;
  --accent-bright: #123842;
  --accent-deep: #041114;
  --accent-soft: rgba(30, 84, 125, 0.12);
  --gold: #846640;
  --verified: #2f7a52;
  --verified-soft: rgba(47, 122, 82, 0.1);
  --trial: #2a628f;
  --trial-soft: rgba(42, 98, 143, 0.11);
  --warning: #b6403d;
  --warning-soft: rgba(182, 64, 61, 0.12);
  --danger: #9f2834;
  --danger-soft: rgba(159, 40, 52, 0.12);
  --unverified: #625c53;
  --unverified-soft: rgba(17, 23, 22, 0.06);
  --shadow: 0 18px 48px rgba(52, 42, 30, 0.12);
  --radius: 4px;
  --radius-lg: 8px;
}

:root[data-theme="dark"] {
  --bg: #081012;
  --bg-deep: #020809;
  --surface: #101718;
  --surface-2: #172021;
  --surface-3: #1f2b2d;
  --ink: #f7f1e7;
  --ink-soft: #ddd3c5;
  --muted: #a79989;
  --border: rgba(247, 241, 231, 0.13);
  --border-strong: rgba(247, 241, 231, 0.24);
  --accent: #d8c7a7;
  --accent-bright: #f2e0bd;
  --accent-deep: #071c20;
  --accent-soft: rgba(216, 199, 167, 0.12);
  --gold: #d0b17a;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
}

html { background: var(--bg); }
body {
  background: var(--bg);
  background-image: linear-gradient(180deg, #faf6ef 0, var(--bg) 410px, #f8f3eb 100%);
  background-attachment: scroll;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
}

:root[data-theme="dark"] body {
  background-image: linear-gradient(180deg, #101819 0, var(--bg) 410px, #081012 100%);
}

body::before { display: none; }
h1, h2, h3, h4, .btn, .badge, .eyebrow, .main-nav a { letter-spacing: 0; }
a { color: var(--accent-bright); }
a:hover { color: var(--gold); }

.disclaimer-banner {
  background: #06171a;
  color: #eee4d7;
  border: 0;
  text-align: center;
  font-size: 0.78rem;
}

.disclaimer-banner .container {
  justify-content: center;
  padding-top: 7px;
  padding-bottom: 7px;
}

.disclaimer-banner strong,
.disclaimer-banner a { color: #fff7ea; }

.site-header {
  background: rgba(250, 247, 240, 0.94);
  border-bottom: 1px solid rgba(17, 23, 22, 0.1);
  box-shadow: 0 12px 34px rgba(34, 27, 18, 0.08);
}

:root[data-theme="dark"] .site-header {
  background: rgba(8, 16, 18, 0.92);
  border-bottom-color: rgba(247, 241, 231, 0.12);
}

.site-header .bar {
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand .mark {
  position: relative;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  font-size: 0;
}

.brand .mark::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 13px;
  top: 13px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow:
    -10px 0 0 var(--accent),
    10px 0 0 var(--accent),
    0 -10px 0 var(--accent),
    0 10px 0 var(--accent),
    -7px -7px 0 var(--accent),
    7px -7px 0 var(--accent),
    -7px 7px 0 var(--accent),
    7px 7px 0 var(--accent);
}

.brand .brand-name {
  font-size: 1.14rem;
  line-height: 1;
}

.brand small { display: none; }
.main-nav { gap: 10px; }
.main-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  padding: 8px 10px;
}

.main-nav a:hover,
.main-nav a.active {
  background: transparent;
  border-color: transparent;
  color: var(--accent-bright);
}

.btn {
  background: #06171a;
  color: #fff7ea;
  border-color: #06171a;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(6, 23, 26, 0.18);
}

.btn:hover {
  background: #0d3037;
  color: #fff7ea;
  box-shadow: 0 12px 28px rgba(6, 23, 26, 0.22);
}

.btn.secondary {
  background: rgba(255, 250, 243, 0.76);
  color: var(--ink);
  border-color: rgba(17, 23, 22, 0.26);
  box-shadow: none;
}

.btn.secondary:hover {
  background: #fffaf3;
  border-color: var(--accent);
  color: var(--accent);
}

.hero.resource-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 0;
  border-bottom: 0;
  background:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.96) 39%, rgba(247, 241, 231, 0.62) 56%, rgba(247, 241, 231, 0.08) 76%),
    url("../images/hero-lab-vial.jpg") center right / cover no-repeat;
}

:root[data-theme="dark"] .hero.resource-hero {
  background:
    linear-gradient(90deg, rgba(8, 16, 18, 0.98) 0%, rgba(8, 16, 18, 0.94) 42%, rgba(8, 16, 18, 0.62) 62%, rgba(8, 16, 18, 0.16) 78%),
    url("../images/hero-lab-vial.jpg") center right / cover no-repeat;
}

.hero.resource-hero .container {
  position: relative;
  padding-top: 70px;
  padding-bottom: 52px;
}

.hero.resource-hero .container::before { content: none; }
.home-page .resource-hero .container { text-align: left; }
.resource-hero .hero-copy { max-width: 590px; }

.home-page .resource-hero h1,
.home-page .resource-hero .lede {
  margin-left: 0;
  margin-right: 0;
}

.resource-hero h1 {
  max-width: 10ch;
  margin: 18px 0 24px;
  font-size: clamp(3.3rem, 7vw, 5.8rem);
  line-height: 0.94;
}

.resource-hero h1 em {
  display: block;
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
}

.resource-hero .lede {
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.28rem;
  line-height: 1.5;
  padding: 0;
  border: 0;
}

.home-page .resource-hero .hero-actions {
  justify-content: flex-start;
}

.hero-proof-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 76px;
  max-width: 650px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  color: var(--ink);
  font-size: 0.95rem;
}

.proof-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid rgba(132, 102, 64, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.62);
}

.section {
  border-bottom: 0;
  padding: 66px 0;
}

.section.tight {
  padding: 30px 0 28px;
}

.section.tight > .container {
  border: 0;
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.home-page .section > .container > .eyebrow,
.home-page .section > .container > h1,
.home-page .section > .container > h2,
.home-page .section > .container > .lede,
.home-page .section-intro .eyebrow,
.home-page .section-intro h2,
.home-page .section-intro .lede {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(132, 102, 64, 0.1);
  color: #6e5838;
  font-size: 0.72rem;
  font-weight: 700;
}

:root[data-theme="dark"] .eyebrow {
  background: rgba(208, 177, 122, 0.12);
  color: #d8c7a7;
}

.home-page .section > .container > .eyebrow,
.home-page .section-intro .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.card,
.compound-row,
.table-wrap,
.result-panel {
  background: rgba(255, 250, 243, 0.86);
  border-color: rgba(17, 23, 22, 0.11);
  box-shadow: 0 18px 42px rgba(44, 34, 21, 0.09);
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .compound-row,
:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .result-panel {
  background: rgba(16, 23, 24, 0.92);
  border-color: rgba(247, 241, 231, 0.12);
}

.card::before,
.tool-tile::before,
.myth::before { background: rgba(17, 23, 22, 0.18); }

.source-step {
  min-height: 0;
  padding: 26px;
}

.source-step .step-index {
  color: var(--gold);
  border-color: rgba(132, 102, 64, 0.28);
  background: rgba(132, 102, 64, 0.08);
}

.featured-grid,
.article-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-card,
.article-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: 8px;
  color: #fff7ea;
  background-color: #07171b;
  box-shadow: 0 18px 42px rgba(35, 25, 15, 0.18);
  isolation: isolate;
}

.article-card { min-height: 170px; }

.featured-card::before,
.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 13, 16, 0.08), rgba(4, 13, 16, 0.88));
}

.featured-card::after,
.article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.28s ease;
}

.featured-card:hover::after,
.article-card:hover::after { transform: scale(1.045); }

.featured-card:hover,
.article-card:hover { color: #fff7ea; }

.card-bpc,
.card-nad,
.article-molecule { background-image: url("../images/molecule-card.jpg"); }
.card-selank,
.article-brain { background-image: url("../images/brain-card.jpg"); }
.card-tb { background-image: url("../images/fiber-card.jpg"); }
.article-pipette { background-image: url("../images/pipette-card.jpg"); }

.featured-tag {
  align-self: flex-start;
  padding: 6px 10px;
  border: 1px solid rgba(255, 247, 234, 0.28);
  border-radius: 999px;
  background: rgba(6, 23, 26, 0.58);
  color: #fff7ea;
  font-size: 0.78rem;
}

.featured-card h3,
.article-card h3 {
  margin: 18px 0 8px;
  color: #fff7ea;
  font-size: 1.65rem;
}

.article-card h3 { font-size: 1.25rem; }
.featured-card p {
  margin: 0 0 18px;
  max-width: 22ch;
  color: rgba(255, 247, 234, 0.86);
  line-height: 1.35;
}

.featured-link {
  color: #fff7ea;
  font-weight: 700;
  font-size: 0.92rem;
}

.tool-showcase { padding-top: 24px; }
.tool-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
  min-height: 330px;
  padding: 48px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(237, 243, 244, 0.98) 0%, rgba(237, 243, 244, 0.92) 47%, rgba(237, 243, 244, 0.58) 69%, rgba(237, 243, 244, 0.34) 100%),
    url("../images/pipette-card.jpg") center right / cover no-repeat;
  box-shadow: 0 22px 52px rgba(44, 34, 21, 0.1);
}

:root[data-theme="dark"] .tool-feature {
  background:
    linear-gradient(90deg, rgba(10, 24, 27, 0.98) 0%, rgba(10, 24, 27, 0.9) 48%, rgba(10, 24, 27, 0.62) 74%, rgba(10, 24, 27, 0.36) 100%),
    url("../images/pipette-card.jpg") center right / cover no-repeat;
}

.tool-feature-copy h2 {
  margin: 16px 0 12px;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}

.tool-feature-copy p {
  max-width: 34ch;
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.calculator-mockup {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin-left: auto;
  padding: 24px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 18px 38px rgba(30, 42, 46, 0.16);
}

:root[data-theme="dark"] .calculator-mockup {
  background: rgba(16, 23, 24, 0.9);
  border-color: rgba(247, 241, 231, 0.12);
}

.mock-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mock-field,
.mock-result {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.52);
}

:root[data-theme="dark"] .mock-field,
:root[data-theme="dark"] .mock-result {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(247, 241, 231, 0.12);
}

.mock-field span,
.mock-result span {
  color: var(--muted);
  font-size: 0.82rem;
}

.mock-field strong { font-size: 1rem; }
.mock-result strong {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.mock-result small {
  color: var(--muted);
  font-size: 0.9rem;
}

.alert.warn {
  background: rgba(182, 64, 61, 0.09);
  border-color: rgba(182, 64, 61, 0.28);
}

.alert.info {
  background: rgba(42, 98, 143, 0.1);
  border-color: rgba(42, 98, 143, 0.28);
}

.badge.verified {
  background: var(--verified-soft);
  color: var(--verified);
  border-color: rgba(47, 122, 82, 0.3);
}

.badge.trial,
.badge.recommendation {
  background: var(--trial-soft);
  color: var(--trial);
  border-color: rgba(42, 98, 143, 0.28);
}

.lede {
  padding-left: 0;
  border-left: 0;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border-color: rgba(17, 23, 22, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.62) inset;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: rgba(2, 8, 9, 0.7);
  color: var(--ink);
  border-color: rgba(247, 241, 231, 0.22);
  box-shadow: 0 1px 0 rgba(247, 241, 231, 0.06) inset;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--trial);
  box-shadow: 0 0 0 3px rgba(42, 98, 143, 0.12);
}

.chip {
  background: rgba(255, 250, 243, 0.72);
  color: var(--ink-soft);
  box-shadow: none;
}

:root[data-theme="dark"] .chip {
  background: rgba(247, 241, 231, 0.05);
}

tbody tr:nth-child(even) td {
  background: rgba(17, 23, 22, 0.026);
}

:root[data-theme="dark"] tbody tr:nth-child(even) td {
  background: rgba(247, 241, 231, 0.035);
}

.site-footer {
  margin-top: 0;
  background: #06171a;
  color: #eee4d7;
}

.site-footer h4,
.site-footer .muted,
.site-footer a,
.footer-bottom {
  color: rgba(238, 228, 215, 0.78);
}

.site-footer a:hover { color: #fff7ea; }
.footer-bottom { border-top-color: rgba(238, 228, 215, 0.13); }

@media (max-width: 1000px) {
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-feature { grid-template-columns: 1fr; }
  .calculator-mockup { margin-left: 0; }
}

@media (max-width: 760px) {
  .site-header .bar { gap: 12px; }
  .hero.resource-hero {
    min-height: 680px;
    align-items: flex-start;
    background:
      linear-gradient(180deg, rgba(247, 241, 231, 0.99) 0%, rgba(247, 241, 231, 0.94) 53%, rgba(247, 241, 231, 0.34) 100%),
      url("../images/hero-lab-vial.jpg") bottom center / cover no-repeat;
  }

  :root[data-theme="dark"] .hero.resource-hero {
    background:
      linear-gradient(180deg, rgba(8, 16, 18, 0.99) 0%, rgba(8, 16, 18, 0.94) 55%, rgba(8, 16, 18, 0.3) 100%),
      url("../images/hero-lab-vial.jpg") bottom center / cover no-repeat;
  }

  .hero.resource-hero .container {
    padding-top: 46px;
  }

  .resource-hero h1 { max-width: 8.5ch; }
  .hero-proof-row {
    gap: 14px;
    margin-top: 42px;
  }

  .featured-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .tool-feature {
    padding: 26px;
  }

  .mock-row { grid-template-columns: 1fr; }
}

/* Screenshot-led page system */
.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;
}

#themeToggle { display: none; }

.site-header .bar {
  max-width: 1320px;
}

.main-nav {
  flex: 1;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a {
  font-size: 0.86rem;
  padding: 7px 9px;
  white-space: nowrap;
}

.main-nav .nav-cta {
  margin-left: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #06171a;
  color: #fff7ea;
  border: 1px solid #06171a;
  box-shadow: 0 10px 24px rgba(6, 23, 26, 0.18);
}

.main-nav .nav-cta:hover {
  background: #0d3037;
  color: #fff7ea;
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  background-color: #f5efe6;
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid rgba(17, 23, 22, 0.08);
}

.page-hero .container {
  width: 100%;
  padding-top: 56px;
  padding-bottom: 58px;
}

.page-hero-copy {
  max-width: 640px;
}

.page-hero h1 {
  margin: 18px 0 18px;
  max-width: 12ch;
  font-size: clamp(3rem, 5.7vw, 5.1rem);
  line-height: 0.96;
}

.page-hero h1 em {
  display: inline;
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
}

.page-hero .lede {
  max-width: 45ch;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.tools-hero,
.guides-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 42%, rgba(247, 241, 231, 0.45) 66%, rgba(247, 241, 231, 0.06) 86%),
    url("../images/hero-lab-vial.jpg");
}

.myths-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 41%, rgba(247, 241, 231, 0.3) 68%, rgba(247, 241, 231, 0.02) 88%),
    url("../images/myths-hero-scale.jpg");
}

.about-hero {
  min-height: 390px;
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.88) 34%, rgba(247, 241, 231, 0.22) 66%, rgba(247, 241, 231, 0.02) 100%),
    url("../images/about-hero-wellness.jpg");
}

.library-hero {
  min-height: 330px;
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 42%, rgba(247, 241, 231, 0.25) 70%, rgba(247, 241, 231, 0.02) 90%),
    url("../images/library-hero-books.jpg");
}

.contact-hero {
  min-height: 300px;
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.92) 45%, rgba(247, 241, 231, 0.22) 80%),
    url("../images/blog-feature-petri.jpg");
}

.page-panel-section {
  padding-top: 0;
  margin-top: -32px;
}

.page-panel {
  position: relative;
  z-index: 2;
  padding: 32px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.94);
  box-shadow: 0 24px 70px rgba(44, 34, 21, 0.12);
}

.page-panel > h2,
.page-panel .process-section h2 {
  margin: 0 0 18px;
  font-size: 1.75rem;
  text-align: left;
}

.page-panel > h2:not(:first-child) {
  margin-top: 34px;
}

.tool-card-grid,
.guide-feature-grid,
.secondary-guide-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.tool-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.secondary-guide-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(240, 234, 225, 0.84)),
    var(--surface);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(44, 34, 21, 0.07);
}

.tool-card::before { display: none; }
.tool-card:hover {
  color: var(--ink);
  transform: translateY(-2px);
  border-color: rgba(6, 23, 26, 0.22);
}

.line-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(132, 102, 64, 0.24);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 250, 243, 0.68);
  font-size: 1.1rem;
}

.tool-card h3,
.guide-feature h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.08;
}

.tool-card p,
.guide-feature p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.tool-card .go,
.guide-feature .go {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
}

.image-card {
  min-height: 210px;
  color: #fff7ea;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 17, 20, 0.88), rgba(4, 17, 20, 0.28));
}

.image-card h3,
.image-card p,
.image-card .go {
  color: #fff7ea;
}

.nutrition-card { background-image: url("../images/about-hero-wellness.jpg"); }
.body-card { background-image: url("../images/molecule-card.jpg"); }

.trust-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(120px, 0.7fr));
  gap: 18px;
  align-items: center;
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(237, 232, 224, 0.88), rgba(255, 250, 243, 0.86));
  border: 1px solid rgba(17, 23, 22, 0.08);
}

.trust-strip h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.trust-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.trust-strip > span {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.guide-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-feature {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background-size: cover;
  background-position: center right;
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(44, 34, 21, 0.08);
  isolation: isolate;
}

.guide-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 250, 243, 0.94), rgba(255, 250, 243, 0.58), rgba(255, 250, 243, 0.08));
}

.guide-symptom-card { background-image: url("../images/guide-symptom.jpg"); }
.guide-coach-card { background-image: url("../images/guide-coach.jpg"); }
.guide-blood-card { background-image: url("../images/guide-bloodwork.jpg"); }

.btn.mini {
  align-self: flex-start;
  min-height: 0;
  padding: 9px 13px;
  font-size: 0.82rem;
  margin: 4px 0 18px;
}

.guide-feature ul {
  margin: auto 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.process-section {
  padding-top: 38px;
  margin-top: 34px;
  border-top: 1px solid rgba(17, 23, 22, 0.09);
}

.process-section > div:first-child p {
  margin-top: -10px;
  color: var(--muted);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.process-steps div {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink-soft);
}

.process-steps b {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(132, 102, 64, 0.12);
  color: var(--gold);
}

.wide-cta {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px;
  border-radius: 8px;
  color: #fff7ea;
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.94), rgba(4, 17, 20, 0.5)),
    url("../images/blog-feature-petri.jpg") center / cover no-repeat;
}

.wide-cta:hover { color: #fff7ea; }

.privacy-note {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  background: rgba(42, 98, 143, 0.08);
  border: 1px solid rgba(42, 98, 143, 0.18);
  color: var(--ink-soft);
}

.library-section {
  padding-top: 28px;
}

.library-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.library-search-row input {
  min-height: 54px;
  border-radius: 8px;
}

.library-view-controls {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.78);
  color: var(--muted);
  font-size: 0.9rem;
}

.library-browser {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
}

.library-sidebar {
  align-self: start;
  position: sticky;
  top: 98px;
}

.library-sidebar h2 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.library-sidebar .filter-bar {
  display: grid;
  gap: 6px;
}

.library-sidebar .chip {
  justify-content: space-between;
  width: 100%;
  border-radius: 6px;
  padding: 9px 10px;
  background: rgba(255, 250, 243, 0.86);
  text-align: left;
}

.library-sidebar .chip.active {
  background: #06171a;
  color: #fff7ea;
  border-color: #06171a;
}

.library-note,
.newsletter-card,
.popular-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(17, 23, 22, 0.09);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.78);
}

.library-note h3,
.newsletter-card h3,
.popular-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.library-note p,
.newsletter-card p,
.popular-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.library-page #compoundList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 18px;
}

.compound-card {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  min-height: 190px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.9);
}

.compound-card .compound-thumb {
  min-height: 100%;
  background-size: cover;
  background-position: center;
}

.compound-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.compound-card .name {
  font-size: 1.28rem;
  line-height: 1.05;
}

.compound-card .cat {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
}

.compound-card .dose {
  display: grid;
  margin-top: auto;
  color: var(--ink);
  font-weight: 700;
}

.compound-card .dose small {
  color: var(--muted);
  font-weight: 500;
}

.myth-proof-row,
.about-proof-row,
.mini-proof-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.myth-proof-row span,
.about-proof-row span,
.mini-proof-row span {
  padding: 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 250, 243, 0.64);
  border: 1px solid rgba(17, 23, 22, 0.08);
  font-size: 0.9rem;
}

.myth-toolbar,
.section-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.myth-toolbar .field {
  margin: 0;
  min-width: min(100%, 320px);
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.myths-page #mythList {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.myths-page .myth {
  margin-bottom: 0 !important;
  min-height: 210px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(44, 34, 21, 0.08);
}

.myths-page .myth h3 {
  font-size: 1.24rem;
}

.myths-page .myth p {
  font-size: 0.94rem;
  line-height: 1.38;
}

.myth-closing-strip {
  margin-top: 22px;
}

.blog-hero-section {
  padding: 56px 0 26px;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(420px, 1.25fr);
  gap: 48px;
  align-items: center;
}

.blog-intro h1 {
  max-width: 11ch;
  margin: 16px 0;
  font-size: clamp(3rem, 5.2vw, 4.7rem);
  line-height: 0.96;
}

.blog-intro h1 em {
  display: block;
  color: #385743;
  font-style: italic;
  font-weight: 600;
}

.featured-blog-card,
.blog-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  padding: 30px;
  border-radius: 8px;
  color: #fff7ea;
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.9), rgba(4, 17, 20, 0.28)),
    url("../images/blog-feature-petri.jpg") center / cover no-repeat;
}

.featured-blog-card h2,
.blog-card h3 {
  color: #fff7ea;
}

.featured-blog-card p,
.blog-card p,
.blog-card small {
  color: rgba(255, 247, 234, 0.86);
}

.blog-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
}

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  min-height: 300px;
  padding: 22px;
}

.blog-sidebar {
  align-self: start;
  position: sticky;
  top: 98px;
}

.newsletter-card input {
  margin: 8px 0 12px;
}

.popular-card {
  display: grid;
  gap: 10px;
}

.popular-card a {
  color: var(--ink);
  font-weight: 700;
}

.about-section {
  padding-top: 34px;
}

.about-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 18px;
}

.about-image-card,
.about-beliefs {
  min-height: 260px;
  padding: 30px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 18px 42px rgba(44, 34, 21, 0.08);
}

.about-image-card {
  color: #fff7ea;
  background-size: cover;
  background-position: center;
}

.mission-card {
  background-image:
    linear-gradient(90deg, rgba(4, 17, 20, 0.9), rgba(4, 17, 20, 0.35)),
    url("../images/molecule-card.jpg");
}

.vision-card {
  color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(255, 250, 243, 0.94), rgba(255, 250, 243, 0.44)),
    url("../images/about-hero-wellness.jpg");
}

.mission-card h2,
.mission-card p { color: #fff7ea; }

.about-beliefs {
  display: grid;
  gap: 16px;
}

.about-beliefs h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.about-beliefs p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.contact-grid .card {
  min-height: 220px;
}

.contact-note {
  margin-top: 22px;
}

.compound-page .section.tight {
  padding-top: 0;
  background:
    linear-gradient(180deg, rgba(247, 241, 231, 0.42), rgba(247, 241, 231, 0) 410px),
    var(--bg);
}

.compound-page .section.tight .container {
  max-width: 1240px !important;
  padding-top: 40px;
}

.compound-layout-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.compound-side-panel {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 18px 42px rgba(44, 34, 21, 0.08);
}

.compound-side-panel .back-link {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.compound-side-thumb {
  min-height: 150px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.08), rgba(4, 17, 20, 0.36)),
    url("../images/compound-copper-peptide.jpg") center / cover no-repeat;
}

.compound-side-panel small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
}

.compound-side-panel strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.05;
}

.side-pill {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(132, 102, 64, 0.1);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.jump-nav {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 23, 22, 0.09);
}

.jump-nav span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
}

.jump-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  background: rgba(17, 23, 22, 0.035);
  font-size: 0.9rem;
}

.jump-nav a:hover {
  color: var(--accent);
  background: rgba(42, 98, 143, 0.08);
}

.research-note {
  padding: 14px;
  border-radius: 6px;
  background: rgba(42, 98, 143, 0.08);
  color: var(--ink-soft);
}

.research-note strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.research-note p {
  margin: 0;
  font-size: 0.88rem;
}

.compound-page .section.tight .container > .eyebrow,
.compound-page .compound-content > .eyebrow {
  margin-bottom: 14px;
}

.compound-page .section.tight .container > .flex-between,
.compound-page .compound-content > .flex-between {
  min-height: 250px;
  align-items: flex-start;
  padding: 34px;
  margin: 0 0 26px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.96), rgba(255, 250, 243, 0.74) 46%, rgba(255, 250, 243, 0.22) 78%),
    url("../images/compound-copper-peptide.jpg") center right / cover no-repeat;
  box-shadow: 0 20px 50px rgba(44, 34, 21, 0.11);
}

.compound-page h1 {
  max-width: 14ch;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.compound-page .alert.warn {
  border-radius: 8px;
  box-shadow: none;
}

.compound-page .card,
.compound-page .table-wrap,
.tool-detail-page .card,
.guide-detail-page .card,
.blog-post-page .card {
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.9);
}

.compound-page h3 {
  margin-top: 36px;
}

.tool-detail-page .section.tight .container,
.guide-detail-page .section.tight .container,
.blog-post-page .section.tight .container {
  max-width: 1120px !important;
  padding-top: 36px;
}

.tool-detail-page h1,
.guide-detail-page h1,
.blog-post-page h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
}

@media (max-width: 1180px) {
  .tool-card-grid,
  .myths-page #mythList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-card-grid,
  .guide-feature-grid,
  .about-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .main-nav {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .main-nav .nav-cta {
    margin-left: 0;
  }

  .blog-hero-grid,
  .blog-content-grid,
  .library-browser,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .library-sidebar,
  .blog-sidebar {
    position: static;
  }

  .process-steps,
  .myth-proof-row,
  .about-proof-row,
  .mini-proof-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-hero {
    min-height: 520px;
    align-items: flex-start;
    background-position: bottom center;
  }

  .page-hero h1 {
    font-size: 3rem;
  }

  .tools-hero,
  .guides-hero,
  .myths-hero,
  .about-hero,
  .library-hero,
  .contact-hero {
    background-image:
      linear-gradient(180deg, rgba(247, 241, 231, 0.99) 0%, rgba(247, 241, 231, 0.92) 56%, rgba(247, 241, 231, 0.26) 100%),
      var(--mobile-hero-image);
  }

  .tools-hero,
  .guides-hero { --mobile-hero-image: url("../images/hero-lab-vial.jpg"); }
  .myths-hero { --mobile-hero-image: url("../images/myths-hero-scale.jpg"); }
  .about-hero { --mobile-hero-image: url("../images/about-hero-wellness.jpg"); }
  .library-hero { --mobile-hero-image: url("../images/library-hero-books.jpg"); }
  .contact-hero { --mobile-hero-image: url("../images/blog-feature-petri.jpg"); }

  .page-panel {
    padding: 20px;
  }

  .tool-card-grid,
  .secondary-guide-grid,
  .contact-grid,
  .myths-page #mythList,
  .process-steps,
  .myth-proof-row,
  .about-proof-row,
  .mini-proof-row,
  .article-card-grid {
    grid-template-columns: 1fr;
  }

  .library-search-row,
  .compound-card {
    grid-template-columns: 1fr;
  }

  .compound-card .compound-thumb {
    min-height: 150px;
  }

  .compound-page .section.tight .container > .flex-between {
    padding: 24px;
    background:
      linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 250, 243, 0.7)),
      url("../images/compound-copper-peptide.jpg") center / cover no-repeat;
  }

  .compound-layout-shell {
    grid-template-columns: 1fr;
  }

  .compound-side-panel {
    position: static;
  }

  .compound-page .compound-content > .flex-between {
    padding: 24px;
    background:
      linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 250, 243, 0.7)),
      url("../images/compound-copper-peptide.jpg") center / cover no-repeat;
  }
}

/* Screenshot reference repair pass */
.tools-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 43%, rgba(247, 241, 231, 0.38) 67%, rgba(247, 241, 231, 0.03) 90%),
    url("../images/ref-tools-hero.jpg");
}

.guides-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 42%, rgba(247, 241, 231, 0.38) 68%, rgba(247, 241, 231, 0.03) 90%),
    url("../images/generated-guides-hero.jpg");
}

.myths-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 38%, rgba(247, 241, 231, 0.24) 66%, rgba(247, 241, 231, 0.02) 90%),
    url("../images/ref-myths-hero.jpg");
}

.about-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.9) 35%, rgba(247, 241, 231, 0.22) 66%, rgba(247, 241, 231, 0.02) 100%),
    url("../images/ref-about-hero.jpg");
}

.library-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 40%, rgba(247, 241, 231, 0.24) 68%, rgba(247, 241, 231, 0.01) 92%),
    url("../images/ref-library-hero.jpg");
}

.page-hero {
  min-height: 315px;
}

.page-hero h1 {
  max-width: 13ch;
}

.page-panel {
  box-shadow: 0 22px 58px rgba(42, 32, 22, 0.1);
}

.guide-symptom-card { background-image: url("../images/generated-guide-symptom.jpg"); }
.guide-coach-card { background-image: url("../images/generated-guide-coach.jpg"); }
.guide-blood-card { background-image: url("../images/generated-guide-bloodwork.jpg"); }

.library-page .container {
  max-width: 1260px;
}

.library-page #compoundList {
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
  gap: 16px;
}

.compound-card {
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 184px;
  border: 1px solid rgba(17, 23, 22, 0.11);
  box-shadow: 0 12px 28px rgba(42, 32, 22, 0.06);
  color: var(--ink);
}

.compound-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 23, 26, 0.24);
  box-shadow: 0 18px 36px rgba(42, 32, 22, 0.1);
  color: var(--ink);
}

.compound-card-body {
  gap: 7px;
  padding: 13px;
}

.compound-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.category-pill,
.compound-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.category-pill {
  background: rgba(6, 23, 26, 0.08);
  color: #06171a;
}

.compound-tag {
  background: rgba(42, 98, 143, 0.09);
  color: #2a628f;
}

.compound-card .name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.06;
}

.compound-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.28;
}

.compound-card .dose {
  font-size: 0.86rem;
  line-height: 1.2;
}

.compound-card .dose small {
  margin-bottom: 2px;
  font-size: 0.68rem;
  text-transform: none;
}

.compound-card .go {
  margin-top: 2px;
  color: #06171a;
  font-size: 0.78rem;
  font-weight: 800;
}

.myth-proof-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -4px 0 24px;
}

.myth-proof-row span,
.mini-proof-row span {
  background: transparent;
  border: 0;
  padding: 8px 4px;
}

.myth-toolbar {
  padding: 14px 0;
  border-top: 1px solid rgba(17, 23, 22, 0.08);
  border-bottom: 1px solid rgba(17, 23, 22, 0.08);
}

.myths-page .myth {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid rgba(17, 23, 22, 0.09);
  background: rgba(255, 250, 243, 0.86);
}

.myths-page .myth::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border: 1px solid rgba(132, 102, 64, 0.22);
  border-radius: 999px;
  background: rgba(132, 102, 64, 0.08);
}

.myths-page .myth .badge {
  order: 2;
}

.myths-page .myth h3 {
  font-size: 1.2rem;
}

.featured-blog-card {
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.88), rgba(4, 17, 20, 0.25)),
    url("../images/ref-blog-feature.jpg") center / cover no-repeat;
  box-shadow: 0 18px 40px rgba(42, 32, 22, 0.12);
}

.blog-card {
  justify-content: flex-start;
  min-height: 0;
  padding: 0 0 18px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  background: rgba(255, 250, 243, 0.92);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(42, 32, 22, 0.06);
}

.blog-card::before {
  content: "";
  display: block;
  height: 150px;
  margin-bottom: 16px;
  background: url("../images/ref-library-card-molecule.jpg") center / cover no-repeat;
}

.blog-card.article-pipette::before {
  background-image: url("../images/ref-blog-feature.jpg");
}

.blog-card.article-brain::before {
  background-image: url("../images/brain-card.jpg");
}

.blog-card h3,
.blog-card p,
.blog-card small,
.blog-card .featured-tag {
  margin-left: 18px;
  margin-right: 18px;
}

.blog-card h3 {
  color: var(--ink);
  font-size: 1.28rem;
}

.blog-card p,
.blog-card small {
  color: var(--ink-soft);
}

.blog-card .featured-tag {
  color: var(--muted);
  border-color: rgba(17, 23, 22, 0.1);
  background: rgba(17, 23, 22, 0.04);
}

.compound-side-thumb {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.05), rgba(4, 17, 20, 0.22)),
    url("../images/ref-compound-hero.jpg") center / cover no-repeat;
}

.compound-page .section.tight .container > .flex-between,
.compound-page .compound-content > .flex-between {
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.97), rgba(255, 250, 243, 0.72) 45%, rgba(255, 250, 243, 0.14) 80%),
    url("../images/ref-compound-hero.jpg") center right / cover no-repeat;
}

.upload-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 20px;
  border: 1px dashed rgba(42, 98, 143, 0.35);
  border-radius: 8px;
  background: rgba(42, 98, 143, 0.06);
}

.upload-panel input[type="file"] {
  min-height: 0;
  padding: 12px;
  background: rgba(255, 250, 243, 0.9);
}

.upload-preview {
  display: grid;
  gap: 10px;
}

.upload-preview img {
  max-height: 220px;
  width: auto;
  border-radius: 8px;
  border: 1px solid rgba(17, 23, 22, 0.12);
}

.ocr-text {
  padding: 12px 14px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.72);
}

.ocr-text summary {
  cursor: pointer;
  font-weight: 700;
}

.ocr-text pre {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .tools-hero,
  .guides-hero,
  .myths-hero,
  .about-hero,
  .library-hero,
  .contact-hero {
    background-image:
      linear-gradient(180deg, rgba(247, 241, 231, 0.99) 0%, rgba(247, 241, 231, 0.92) 56%, rgba(247, 241, 231, 0.26) 100%),
      var(--mobile-hero-image);
  }

  .tools-hero { --mobile-hero-image: url("../images/ref-tools-hero.jpg"); }
  .guides-hero { --mobile-hero-image: url("../images/generated-guides-hero.jpg"); }
  .myths-hero { --mobile-hero-image: url("../images/ref-myths-hero.jpg"); }
  .about-hero { --mobile-hero-image: url("../images/ref-about-hero.jpg"); }
  .library-hero { --mobile-hero-image: url("../images/ref-library-hero.jpg"); }
}

/* Centered-title and library cleanup pass */
.page-hero-copy {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-hero h1,
.page-hero .lede,
.blog-intro h1,
.blog-intro .lede,
main .section > .container > h1,
main .section > .container > h2,
main .section > .container > .lede {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

main .section > .container > .eyebrow,
.page-hero .eyebrow {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-panel > h2,
.page-panel .process-section h2,
.process-section > div:first-child,
.section-intro,
.section-row,
.blog-intro {
  text-align: center;
}

.section-row,
.myth-toolbar,
.blog-hero-grid .mini-proof-row {
  justify-content: center;
}

.blog-intro .btn {
  margin-left: auto;
  margin-right: auto;
}

.guides-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 42%, rgba(247, 241, 231, 0.38) 68%, rgba(247, 241, 231, 0.03) 90%),
    url("../images/generated-guides-hero.jpg");
}

.guide-symptom-card { background-image: url("../images/generated-guide-symptom.jpg"); }
.guide-coach-card { background-image: url("../images/generated-guide-coach.jpg"); }
.guide-blood-card { background-image: url("../images/generated-guide-bloodwork.jpg"); }

.library-sidebar .chip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  justify-content: start;
  align-items: center;
  width: 100%;
  min-height: 58px;
  gap: 10px;
  border-radius: 6px;
  padding: 8px;
  background: rgba(255, 250, 243, 0.86);
  text-align: left;
}

.library-sidebar .chip b {
  display: none !important;
}

.category-chip-thumb {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: rgba(6, 23, 26, 0.08) center / cover no-repeat;
}

.category-chip-thumb.all-thumb {
  background-image: url("../images/ref-library-hero.jpg");
}

.library-page #compoundList {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.compound-card {
  grid-template-columns: 1fr !important;
  min-height: 172px;
}

.compound-card .compound-thumb {
  display: none !important;
}

.myth::before,
.myths-page .myth::before {
  content: none !important;
  display: none !important;
}

@media (max-width: 640px) {
  .guides-hero {
    --mobile-hero-image: url("../images/generated-guides-hero.jpg");
  }
}

/* Homepage + tool polish pass */
.center-action {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.nav-toggle.btn {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle.btn {
    display: inline-flex;
  }
}

.home-start-section,
.home-guides-section,
.home-tools-section,
.home-library-section,
.home-standard-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.home-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(246, 239, 229, 0.86)),
    var(--surface);
  box-shadow: 0 22px 54px rgba(44, 34, 21, 0.1);
}

.home-start-copy {
  display: grid;
  align-content: center;
  padding: clamp(22px, 4vw, 44px);
}

.home-start-copy .eyebrow,
.home-start-copy h2,
.home-start-copy .lede {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-start-copy h2,
.home-guides-section h2,
.home-tools-section h2,
.home-library-section h2,
.home-standard-section h2 {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.02;
}

.home-symptom-box {
  max-width: 680px;
  width: 100%;
  margin: 22px auto 0;
  padding: 20px;
  border: 1px solid rgba(17, 23, 22, 0.11);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.92);
  box-shadow: 0 14px 34px rgba(44, 34, 21, 0.08);
}

.home-symptom-box label {
  text-align: left;
}

.home-symptom-box select {
  background: rgba(255, 250, 243, 0.98);
}

.home-symptom-box .chip {
  margin-top: 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #fffaf3;
}

.home-symptom-output {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.home-output-card {
  padding: 16px;
  border: 1px solid rgba(42, 98, 143, 0.16);
  border-radius: 8px;
  background: rgba(42, 98, 143, 0.06);
}

.home-output-card h3 {
  margin: 0 0 10px;
  text-align: left;
  font-size: 1.35rem;
}

.home-output-card ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-output-card li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.home-output-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(17, 23, 22, 0.14);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.home-output-card strong {
  display: block;
  margin-top: 6px;
  line-height: 1.25;
}

.home-output-card small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.38;
}

.home-start-image {
  min-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(6, 23, 26, 0.12), rgba(6, 23, 26, 0.02)),
    url("../images/generated-guide-symptom.jpg") center / cover no-repeat;
}

.home-feature-grid,
.home-library-grid,
.home-mini-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.home-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-image-card,
.home-mini-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 14px 34px rgba(44, 34, 21, 0.08);
  isolation: isolate;
}

.home-image-card {
  justify-content: flex-end;
  color: #fffaf3;
  background-size: cover;
  background-position: center;
}

.home-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 17, 20, 0.08), rgba(4, 17, 20, 0.86));
}

.home-image-card .line-icon,
.home-image-card h3,
.home-image-card p,
.home-image-card .go {
  color: #fffaf3;
}

.home-image-card h3,
.home-mini-card h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.home-image-card p,
.home-mini-card p {
  margin: 0 0 18px;
  color: inherit;
  line-height: 1.4;
}

.home-image-card .go,
.home-mini-card .go {
  margin-top: auto;
  font-weight: 800;
}

.home-section-visual {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(239, 232, 222, 0.82)),
    var(--surface);
  box-shadow: 0 20px 48px rgba(44, 34, 21, 0.09);
}

.home-section-visual > div:first-child {
  text-align: center;
}

.home-section-visual .lede {
  margin-left: auto;
  margin-right: auto;
}

.home-tool-art {
  min-height: 280px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(6, 23, 26, 0.1), rgba(6, 23, 26, 0.02)),
    url("../images/generated-tools-workspace.jpg") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(17, 23, 22, 0.08);
}

.home-mini-card {
  min-height: 200px;
}

.home-mini-card:hover,
.home-image-card:hover {
  color: inherit;
  transform: translateY(-2px);
  border-color: rgba(6, 23, 26, 0.22);
  box-shadow: 0 22px 44px rgba(44, 34, 21, 0.12);
}

.library-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.home-standard-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0), rgba(232, 225, 216, 0.72), rgba(255, 250, 243, 0));
}

.home-standard-section .lede {
  max-width: 760px;
}

.home-standard-section .source-step {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(247, 241, 231, 0.84)),
    var(--surface);
}

.home-standard-section .source-step::after {
  content: "";
  position: absolute;
  inset: auto 20px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--gold), rgba(42, 98, 143, 0.75));
}

.home-standard-section .source-step:nth-child(3)::after,
.home-standard-section .source-step:nth-child(4)::after {
  background: linear-gradient(90deg, rgba(42, 98, 143, 0.75), rgba(159, 40, 52, 0.65));
}

.library-results {
  scroll-margin-top: 110px;
  border-radius: 8px;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.library-results.filter-pulse {
  background: rgba(42, 98, 143, 0.06);
  box-shadow: 0 0 0 3px rgba(42, 98, 143, 0.16), 0 18px 40px rgba(44, 34, 21, 0.08);
}

.library-sidebar .chip {
  min-height: 64px;
}

.category-chip-thumb {
  box-shadow: inset 0 0 0 1px rgba(255, 250, 243, 0.38);
}

.compound-card {
  padding: 0;
}

.tool-detail-page > .section.tight:first-child {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  background:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.9) 42%, rgba(247, 241, 231, 0.34) 72%, rgba(247, 241, 231, 0.08) 100%),
    url("../images/generated-tools-workspace.jpg") center right / cover no-repeat;
  border-bottom: 1px solid rgba(17, 23, 22, 0.08);
}

.tool-detail-page > .section.tight:first-child .container {
  max-width: 980px !important;
  text-align: center;
}

.tool-detail-page > .section.tight:first-child .eyebrow,
.tool-detail-page > .section.tight:first-child h1,
.tool-detail-page > .section.tight:first-child .lede {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tool-detail-page > .section.tight:nth-child(2) {
  padding-top: 36px;
}

.tool-detail-page > .section.tight:nth-child(2) .container {
  max-width: 1120px !important;
}

.tool-detail-page .grid-2 {
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(17, 23, 22, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.82), rgba(238, 232, 224, 0.62));
  box-shadow: 0 22px 52px rgba(44, 34, 21, 0.08);
}

.tool-detail-page .card,
.tool-detail-page .result-panel,
.tool-detail-page .table-wrap {
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.94);
}

.tool-detail-page .card h3,
.tool-detail-page .result-panel h3,
.tool-detail-page #budgetOutput h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-detail-page .card h3::before,
.tool-detail-page .result-panel h3::before,
.tool-detail-page #budgetOutput h3::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(132, 102, 64, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(132, 102, 64, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 35%, rgba(42, 98, 143, 0.26) 0 2px, transparent 3px),
    rgba(255, 250, 243, 0.76);
}

.tool-detail-page input,
.tool-detail-page select,
.tool-detail-page textarea {
  border-color: rgba(17, 23, 22, 0.18);
  background: #fffdfa;
}

.tool-detail-page .result-panel {
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(44, 34, 21, 0.08);
}

.tool-detail-page .result-stat .value {
  color: var(--trial);
}

.tool-detail-page svg {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(238, 232, 224, 0.9)) !important;
  border-color: rgba(17, 23, 22, 0.12) !important;
  box-shadow: 0 14px 30px rgba(44, 34, 21, 0.08);
}

.tool-detail-page .alert.warn {
  border-color: rgba(159, 40, 52, 0.22);
  background: rgba(159, 40, 52, 0.08);
  color: #73313a;
}

@media (max-width: 980px) {
  .home-start-grid,
  .home-section-visual,
  .home-feature-grid,
  .home-library-grid,
  .home-mini-grid {
    grid-template-columns: 1fr;
  }

  .home-start-image,
  .home-tool-art {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .home-start-section,
  .home-guides-section,
  .home-tools-section,
  .home-library-section,
  .home-standard-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .home-start-grid,
  .home-section-visual,
  .tool-detail-page .grid-2 {
    padding: 12px;
  }

  .home-start-copy {
    padding: 18px;
  }

  .home-symptom-box {
    padding: 16px;
  }

  .home-image-card,
  .home-mini-card {
    min-height: 220px;
  }

  .tool-detail-page > .section.tight:first-child {
    min-height: 430px;
    background:
      linear-gradient(180deg, rgba(247, 241, 231, 0.99) 0%, rgba(247, 241, 231, 0.9) 58%, rgba(247, 241, 231, 0.32) 100%),
      url("../images/generated-tools-workspace.jpg") center bottom / cover no-repeat;
  }
}

/* Site-wide hero and editorial polish pass */
.chip.active,
.pill-row .chip.active,
.myth-toolbar .chip.active,
.blog-page .chip.active {
  background: #06171a !important;
  border-color: #06171a !important;
  color: #fffaf3 !important;
}

.hero.resource-hero {
  min-height: clamp(620px, 78vh, 820px);
}

.home-page .resource-hero .container,
.hero.resource-hero .container {
  display: grid;
  place-items: center;
  text-align: center;
}

.resource-hero .hero-copy {
  max-width: min(1040px, 100%);
  margin: 0 auto;
}

.home-page .resource-hero h1,
.home-page .resource-hero .lede,
.home-page .resource-hero .hero-actions {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.resource-hero h1 {
  max-width: 15ch;
  font-size: clamp(4rem, 8.6vw, 7.4rem);
  line-height: 0.96;
}

.resource-hero h1 em {
  display: inline;
}

.resource-hero .lede {
  max-width: 58ch;
}

.home-page .resource-hero .hero-actions,
.home-page .resource-hero .hero-proof-row {
  justify-content: center;
}

.page-hero {
  min-height: clamp(380px, 44vw, 520px);
}

.page-hero-copy {
  max-width: min(1040px, 100%);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(3.8rem, 7.4vw, 6.9rem);
  line-height: 0.96;
}

.page-hero .lede {
  max-width: 62ch;
}

.blog-intro {
  max-width: 720px;
  margin: 0 auto;
}

.blog-intro h1 {
  max-width: 15ch;
  font-size: clamp(3.7rem, 6.6vw, 6.4rem);
  line-height: 0.96;
}

.blog-intro h1 em {
  display: inline;
  color: var(--gold);
}

.tool-detail-page > .section.tight:first-child h1 {
  max-width: 18ch;
  font-size: clamp(3.7rem, 7.2vw, 6.7rem);
  line-height: 0.96;
}

.home-feature-grid .home-image-card {
  min-height: 340px;
  justify-content: flex-end;
  padding: 28px;
  background-size: cover;
  background-position: center;
}

.home-feature-grid .guide-symptom-card {
  background-image: url("../images/generated-guide-symptom.jpg") !important;
}

.home-feature-grid .guide-coach-card {
  background-image: url("../images/generated-guide-coach.jpg") !important;
}

.home-feature-grid .guide-blood-card {
  background-image: url("../images/generated-guide-bloodwork.jpg") !important;
}

.home-feature-grid .home-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  backdrop-filter: saturate(1.03);
}

.home-feature-grid .home-image-card::after {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.26) 46%, rgba(4, 17, 20, 0.9) 100%),
    linear-gradient(90deg, rgba(255, 250, 243, 0.08), rgba(255, 250, 243, 0));
}

.home-feature-grid .home-image-card h3 {
  max-width: 13ch;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.home-feature-grid .home-image-card p {
  max-width: 28ch;
  opacity: 0.92;
}

.home-feature-grid .home-image-card .go {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 250, 243, 0.32);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
}

.myths-list-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0), rgba(236, 229, 219, 0.58), rgba(255, 250, 243, 0));
}

.myth-proof-row,
.mini-proof-row {
  gap: 12px;
}

.myth-proof-row span,
.mini-proof-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 16px !important;
  border: 1px solid rgba(17, 23, 22, 0.1) !important;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.78) !important;
  color: var(--ink-soft);
  box-shadow: 0 10px 24px rgba(44, 34, 21, 0.05);
}

.myth-proof-row span::before,
.mini-proof-row span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--trial);
  box-shadow: 0 0 0 4px rgba(42, 98, 143, 0.1);
}

.myth-proof-row span:first-child::before,
.mini-proof-row span:first-child::before {
  background: var(--verified);
  box-shadow: 0 0 0 4px rgba(47, 122, 82, 0.1);
}

.myth-proof-row span:last-child::before,
.mini-proof-row span:last-child::before {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(132, 102, 64, 0.12);
}

.myth-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin: 30px 0;
}

.myth-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  color: #fffaf3;
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 50px rgba(44, 34, 21, 0.12);
  isolation: isolate;
}

.myth-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.03), rgba(4, 17, 20, 0.82)),
    linear-gradient(90deg, rgba(4, 17, 20, 0.72), rgba(4, 17, 20, 0.12));
}

.myth-common-feature {
  background-image: url("../images/ref-myths-hero.jpg");
}

.myth-unbelievable-feature {
  background-image: url("../images/ref-library-card-purple.jpg");
}

.feature-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 250, 243, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.14);
  color: #fffaf3;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.myth-feature-card h2 {
  max-width: 12ch;
  margin: 0 0 12px;
  color: #fffaf3;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.myth-feature-card p {
  max-width: 42ch;
  margin: 0 0 18px;
  color: rgba(255, 250, 243, 0.9);
}

.feature-link {
  font-weight: 800;
  color: #fffaf3;
}

.myth-toolbar {
  align-items: center;
  gap: 16px;
  margin: 26px 0 18px;
  padding: 18px !important;
  border: 1px solid rgba(17, 23, 22, 0.1) !important;
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.76);
  box-shadow: 0 14px 34px rgba(44, 34, 21, 0.06);
}

.myths-page #mythList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.myths-page #mythList .myth {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  margin-bottom: 0 !important;
  padding: 24px !important;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 250, 243, 0.96), rgba(246, 239, 229, 0.86)),
    var(--surface);
  box-shadow: 0 15px 34px rgba(44, 34, 21, 0.08);
}

.myths-page #mythList .myth::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -18px;
  width: 148px;
  height: 112px;
  border-radius: 8px 0 0 0;
  opacity: 0.18;
  background: url("../images/ref-myths-hero.jpg") center / cover no-repeat;
  filter: grayscale(0.15);
  pointer-events: none;
}

.myths-page #mythList .myth:nth-child(3n + 2)::after {
  background-image: url("../images/ref-library-card-molecule.jpg");
}

.myths-page #mythList .myth:nth-child(3n + 3)::after {
  background-image: url("../images/ref-blog-feature.jpg");
}

.myths-page #mythList .myth .flex {
  display: grid !important;
  gap: 12px !important;
}

.myths-page #mythList .myth h3 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.28rem, 2vw, 1.6rem);
  line-height: 1.08;
}

.myths-page #mythList .myth p {
  position: relative;
  z-index: 1;
  color: var(--ink-soft) !important;
  font-size: 1rem;
  line-height: 1.46;
}

.blog-hero-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(244, 238, 229, 0.84));
}

.blog-hero-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 34px;
}

.blog-page .mini-proof-row {
  margin-top: 28px;
}

.blog-page .blog-intro {
  max-width: min(1040px, 100%);
}

.blog-page .blog-intro h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.blog-page .featured-blog-card {
  width: min(920px, 100%);
  min-height: 380px;
  margin: 0 auto;
}

.blog-page .section-row {
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.74);
}

@media (max-width: 1100px) {
  .myths-page #mythList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .resource-hero h1,
  .page-hero h1,
  .blog-intro h1,
  .tool-detail-page > .section.tight:first-child h1 {
    max-width: 12ch;
    font-size: clamp(3.1rem, 13vw, 4.7rem);
  }

  .myth-feature-grid,
  .myths-page #mythList {
    grid-template-columns: 1fr;
  }

  .myth-toolbar {
    align-items: stretch;
  }
}

/* Scoped final fixes: blog/tools imagery, 2x2 standard grid, and cleaner heading breaks */
h1,
h2,
h3,
.lede,
.page-hero-copy,
.blog-intro {
  text-wrap: balance;
}

p,
.tool-card p,
.blog-card p,
.myth p {
  text-wrap: pretty;
}

.myths-hero h1 span,
.myths-hero h1 em {
  display: block;
}

.myths-hero h1 em {
  white-space: nowrap;
}

.home-standard-section .philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.blog-hero-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.95) 0%, rgba(255, 250, 243, 0.82) 48%, rgba(255, 250, 243, 0.98) 100%),
    url("../images/generated-blog-hero.png") center top / cover no-repeat;
}

.blog-hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0), rgba(255, 250, 243, 1));
  pointer-events: none;
}

.blog-hero-section > .container {
  position: relative;
  z-index: 1;
}

.featured-blog-card {
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.9), rgba(4, 17, 20, 0.28)),
    url("../images/generated-blog-evidence.png") center / cover no-repeat !important;
}

.blog-card::before {
  background: url("../images/generated-blog-evidence.png") center / cover no-repeat !important;
}

.blog-card.article-pipette::before {
  background-image: url("../images/generated-blog-safety.png") !important;
}

.blog-card.article-brain::before {
  background-image: url("../images/generated-blog-protocols.png") !important;
}

.popular-tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0 34px;
}

.popular-tool-card {
  min-height: 340px;
  padding: 34px;
  justify-content: flex-end;
}

.popular-tool-card h3 {
  max-width: 13ch;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
}

.popular-tool-card p {
  max-width: 34ch;
}

.tdee-popular-card,
.nutrition-card {
  background-image: url("../images/generated-tool-tdee.png") !important;
  background-position: center;
}

.dosage-popular-card {
  background-image: url("../images/generated-tool-dosage.png") !important;
  background-position: center;
}

.body-card {
  background-image: url("../images/generated-tool-tdee.png") !important;
  background-position: left center;
}

@media (max-width: 760px) {
  .home-standard-section .philosophy-grid,
  .popular-tool-grid {
    grid-template-columns: 1fr;
  }

  .myths-hero h1 em {
    white-space: normal;
  }
}

/* Final targeted polish: title rag, card imagery, myth rows, and centered proof chips */
.no-break {
  white-space: nowrap;
}

.library-page .page-hero-copy {
  max-width: min(1120px, 100%);
}

.library-page .page-hero h1 {
  max-width: min(1120px, 100%);
}

.library-page .page-hero h1 em {
  display: block;
  white-space: normal;
}

.blog-hero-section {
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.12), rgba(4, 17, 20, 0.28)),
    linear-gradient(180deg, rgba(255, 250, 243, 0.7) 0%, rgba(244, 238, 229, 0.52) 48%, rgba(255, 250, 243, 0.96) 100%),
    url("../images/generated-blog-hero.png") center top / cover no-repeat !important;
}

.blog-page .mini-proof-row {
  grid-template-columns: repeat(3, minmax(170px, 230px));
  justify-content: center;
  justify-items: center;
}

.blog-page .mini-proof-row span {
  width: 100%;
  text-align: center;
}

.guide-more-heading {
  margin: 34px 0 16px;
  text-align: center;
}

.guides-page .secondary-guide-grid {
  margin-top: 0;
}

.guides-page .secondary-guide-grid .tool-card,
.tools-page .tool-card:not(.popular-tool-card),
.home-tools-section .home-mini-card {
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
  min-height: 220px;
  color: #fffaf3 !important;
  background-size: cover;
  background-position: center;
  border-color: rgba(255, 250, 243, 0.18);
  isolation: isolate;
}

.tools-page .tool-card:not(.popular-tool-card) {
  padding: 22px;
}

.guides-page .secondary-guide-grid .tool-card::after,
.tools-page .tool-card:not(.popular-tool-card)::after,
.home-tools-section .home-mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08));
}

.guides-page .secondary-guide-grid .tool-card > *,
.tools-page .tool-card:not(.popular-tool-card) > *,
.home-tools-section .home-mini-card > * {
  position: relative;
  z-index: 1;
}

.guides-page .secondary-guide-grid .tool-card h3,
.guides-page .secondary-guide-grid .tool-card p,
.guides-page .secondary-guide-grid .tool-card .go,
.guides-page .secondary-guide-grid .tool-card .line-icon,
.tools-page .tool-card:not(.popular-tool-card) h3,
.tools-page .tool-card:not(.popular-tool-card) p,
.tools-page .tool-card:not(.popular-tool-card) .go,
.tools-page .tool-card:not(.popular-tool-card) .line-icon,
.home-tools-section .home-mini-card h3,
.home-tools-section .home-mini-card p,
.home-tools-section .home-mini-card .line-icon {
  color: #fffaf3 !important;
}

.guides-page .secondary-guide-grid .tool-card .go,
.tools-page .tool-card:not(.popular-tool-card) .go {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 250, 243, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
}

.guides-page .secondary-guide-grid .tool-card[href$="stack-builder.html"] {
  background-image: url("../images/generated-guide-protocol.png");
}

.guides-page .secondary-guide-grid .tool-card[href$="stack-optimizer.html"] {
  background-image: url("../images/generated-guide-stack.png");
}

.guides-page .secondary-guide-grid .tool-card[href$="peptide-qa.html"] {
  background-image: url("../images/generated-guide-qa.png");
}

.tools-page .tool-card[href$="titration-planner.html"] {
  background-image: url("../images/generated-tool-titration.png");
}

.tools-page .tool-card[href$="dosing-calculator.html"],
.home-tools-section .home-mini-card[href*="dosing-calculator.html"] {
  background-image: url("../images/generated-tool-dosage.png");
}

.tools-page .tool-card[href$="half-life-visualizer.html"] {
  background-image: url("../images/generated-tool-halflife.png");
}

.tools-page .tool-card[href$="consumables-forecaster.html"] {
  background-image: url("../images/generated-tool-supplies.png");
}

.tools-page .tool-card[href$="vendor-value-analyzer.html"] {
  background-image: url("../images/generated-tool-cost.png");
}

.tools-page .tool-card[href$="budget-planner.html"],
.home-tools-section .home-mini-card[href*="budget-planner.html"] {
  background-image: url("../images/generated-tool-budget.png");
}

.tools-page .tool-card[href$="compatibility-matrix.html"],
.home-tools-section .home-mini-card[href*="compatibility-matrix.html"] {
  background-image: url("../images/generated-tool-compatibility.png");
}

.tools-page .tool-card[href$="tdee-macro-calculator.html"],
.home-tools-section .home-mini-card[href*="tdee-macro-calculator.html"] {
  background-image: url("../images/generated-tool-tdee.png");
}

.tools-page .body-card {
  background-image: url("../images/generated-tool-bodyfat.png") !important;
}

.myths-page #mythList {
  grid-template-columns: 1fr !important;
  max-width: 1080px;
  margin: 18px auto 0;
}

.myths-page #mythList .myth {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 20px 28px;
  min-height: 0;
  padding: 24px !important;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.98), rgba(246, 239, 229, 0.9)),
    var(--surface) !important;
}

.myths-page #mythList .myth::after,
.myths-page #mythList .myth:nth-child(3n + 2)::after,
.myths-page #mythList .myth:nth-child(3n + 3)::after {
  content: none !important;
  display: none !important;
}

.myths-page #mythList .myth .flex {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px !important;
  align-content: start;
}

.myths-page #mythList .myth .badge {
  width: fit-content;
  justify-self: start;
}

.myths-page #mythList .myth h3 {
  margin: 0 !important;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.06;
}

.myths-page #mythList .myth p {
  margin: 0 !important;
  max-width: 78ch;
  align-self: start;
  font-size: 1.03rem;
}

.myths-page #mythList .myth.is-collapsed p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.myth-toggle {
  grid-column: 2;
  width: fit-content;
  margin-top: -4px;
  padding: 8px 13px;
  border: 1px solid rgba(6, 23, 26, 0.14);
  border-radius: 999px;
  color: #fffaf3;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.myth-toggle:hover {
  background: var(--accent-strong);
}

@media (max-width: 900px) {
  .blog-page .mini-proof-row {
    grid-template-columns: 1fr;
  }

  .myths-page #mythList .myth {
    grid-template-columns: 1fr;
  }

  .myth-toggle {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .library-page .page-hero h1 {
    font-size: clamp(2.75rem, 11.5vw, 3.55rem);
    max-width: calc(100vw - 32px);
  }

  .library-page .page-hero h1 .no-break {
    display: block;
  }

  .myths-page .myth-proof-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .myths-page .myth-proof-row span {
    width: 100%;
    min-height: 58px;
    padding: 12px 10px !important;
    border-radius: 8px;
    text-align: center;
  }
}

/* Additive image pass for individual tool and guide pages */
.detail-image-pass > .section.tight:nth-child(2) .container::before,
.blog-post-page.detail-image-pass > .section:first-child .container::before {
  content: "";
  display: block;
  height: clamp(170px, 22vw, 270px);
  margin: 0 0 24px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.5), rgba(4, 17, 20, 0.08)),
    linear-gradient(180deg, rgba(255, 250, 243, 0.02), rgba(255, 250, 243, 0.22)),
    var(--detail-image) center / cover no-repeat;
  box-shadow: 0 22px 48px rgba(44, 34, 21, 0.1);
}

.detail-wellness {
  --detail-image: url("../images/generated-detail-wellness-research.png");
}

.detail-bloodwork {
  --detail-image: url("../images/generated-detail-bloodwork.png");
}

.detail-calculator {
  --detail-image: url("../images/generated-detail-calculator-bench.png");
}

.detail-planning {
  --detail-image: url("../images/generated-detail-planning.png");
}

.detail-qa {
  --detail-image: url("../images/generated-detail-qa.png");
}

.detail-metabolic {
  --detail-image: url("../images/generated-detail-metabolic.png");
}

.detail-library-research {
  --detail-image: url("../images/generated-detail-library-research.png");
}

@media (max-width: 760px) {
  .detail-image-pass > .section.tight:nth-child(2) .container::before,
  .blog-post-page.detail-image-pass > .section:first-child .container::before {
    height: 180px;
    margin-bottom: 18px;
    background-position: center;
  }
}

/* Navaro brand assets */
.brand .mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  border-radius: 10px;
  background: url("../images/navaro-icon.png") center / cover no-repeat;
  box-shadow: 0 10px 24px rgba(34, 27, 18, 0.14);
  color: transparent;
  font-size: 0;
}

.brand .mark::before {
  content: none;
}

.site-footer .container > div:first-child h4 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer .container > div:first-child h4::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background: url("../images/navaro-icon.png") center / cover no-repeat;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.navaro-story {
  margin-top: 24px;
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(244, 239, 230, 0.86)),
    var(--surface);
  box-shadow: 0 22px 48px rgba(44, 34, 21, 0.08);
}

.navaro-story-logo {
  width: min(360px, 100%);
  margin: 0 auto 22px;
  border-radius: 8px;
}

.navaro-story h2 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.navaro-story p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.navaro-story p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 600;
}

.navaro-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.navaro-pillars div {
  min-height: 104px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.navaro-pillars strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}

.navaro-pillars span {
  font-weight: 700;
  color: var(--ink);
}

:root[data-theme="dark"] .navaro-story {
  background:
    linear-gradient(135deg, rgba(19, 19, 18, 0.96), rgba(30, 29, 27, 0.88)),
    var(--surface);
  border-color: rgba(247, 241, 231, 0.12);
}

:root[data-theme="dark"] .navaro-pillars div {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(247, 241, 231, 0.12);
}

@media (max-width: 860px) {
  .navaro-story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand .mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .navaro-pillars {
    grid-template-columns: 1fr;
  }
}
