/* HerArc / Astravia Analytics */
:root {
  --ink: #12262b;
  --ink-soft: #2a4147;
  --paper: #f6f1ea;
  --white: #fffdf9;
  --line: rgba(18, 38, 43, 0.1);
  --line-strong: rgba(18, 38, 43, 0.18);
  --teal: #1f5f5a;
  --terra: #c45c4a;
  --muted: #5d6e73;
  --shadow: 0 24px 60px rgba(18, 38, 43, 0.08);
  --radius: 22px;
  --max: 1180px;
  --header: 76px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.skip { position: absolute; left: 12px; top: -40px; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--terra); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.1rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; }
h3 { font-size: 1.35rem; line-height: 1.25; }
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header); display: flex; align-items: center; backdrop-filter: blur(16px); background: rgba(246, 241, 234, 0.86); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(246, 241, 234, 0.96); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; color: var(--ink); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 0.98rem; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; font-size: 0.92rem; font-weight: 500; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover, .menu-briefing { display: none; }
.nav-links a.active { color: var(--ink); }
.nav-cta, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; padding: 0.85rem 1.25rem; font-weight: 600; transition: transform 0.2s ease; }
.nav-cta, .btn-primary { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-terra { background: var(--terra); color: var(--white); }
.btn:hover, .nav-cta:hover { transform: translateY(-1px); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; }
.hero { padding: 48px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin: 16px 0 22px; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 0.88rem; }
.hero-meta strong { display: block; color: var(--ink); font-size: 0.95rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.arc-card { padding: 28px; }
.arc-svg { width: 100%; height: auto; }
.arc-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 0.78rem; color: var(--muted); }
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; margin: 36px 0 8px; }
.ticker-track { display: flex; gap: 42px; width: max-content; animation: ticker 32s linear infinite; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.ticker b { color: var(--terra); font-weight: 700; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
section { padding: 88px 0; }
.section-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; margin-bottom: 42px; align-items: end; }
.grid-3, .grid-4, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card h3 { margin: 8px 0 10px; }
.num { font-family: var(--serif); font-size: 1.8rem; color: var(--terra); }
.problem { background: radial-gradient(circle at 10% 20%, rgba(31, 95, 90, 0.08), transparent 28%), var(--paper); }
.compare { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.compare-col { padding: 32px; }
.compare-col + .compare-col { background: var(--ink); color: #e8efe8; }
.compare-col + .compare-col .muted { color: rgba(232, 239, 232, 0.7); }
.compare li { margin: 12px 0; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.4rem; color: var(--teal); }
.report { padding: 0; overflow: hidden; }
.report-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--ink); color: var(--white); font-size: 0.8rem; }
.report-body { padding: 22px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pill-a { background: #dcefe6; color: #1a5a3c; }
.pill-aplus { background: #cfe4dc; color: #144a3a; }
.pill-b { background: #f3e6c8; color: #6b4e12; }
.risk-row { display: grid; grid-template-columns: 1.2fr 0.6fr 0.7fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.risk-row strong { font-family: var(--serif); font-size: 1.15rem; }
.engine { background: var(--ink); color: #edf3f0; }
.engine .eyebrow { color: #d7c2a8; }
.engine .eyebrow::before { background: var(--terra); }
.engine .lede, .engine .muted { color: rgba(237, 243, 240, 0.74); }
.engine-card { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 24px; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 22px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; margin: 8px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.92rem; }
th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: #faf7f2; }
.pathway { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.path-node { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.path-arrow { align-self: center; color: var(--terra); font-size: 1.4rem; }
.cta-band { background: linear-gradient(135deg, #164844 0%, #1f5f5a 48%, #2b4c55 100%); color: #f7f3ec; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; align-items: center; }
.cta-band .btn-primary { background: var(--white); color: var(--ink); }
.form { display: grid; gap: 12px; }
.form input, .form textarea, .form select { width: 100%; border: 1px solid var(--line-strong); background: var(--white); border-radius: 12px; padding: 12px 14px; }
.form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.82rem; }
.success { display: none; padding: 14px; background: #dcefe6; color: #1a5a3c; border-radius: 12px; }
.page-hero { padding: 56px 0 20px; }
.breadcrumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-links { display: grid; gap: 8px; }
.legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); }
.disclaimer { font-size: 0.82rem; color: var(--muted); max-width: 80ch; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: var(--header); left: 0; right: 0; background: var(--paper); padding: 20px 24px 28px; border-bottom: 1px solid var(--line); align-items: flex-start; }
  .nav.open .nav-cta { display: none; }
  .nav.open .nav-links { z-index: 60; gap: 18px; }
  .menu-briefing { display: none; }
  .nav.open .menu-briefing { display: inline-flex; margin-top: 8px; background: var(--ink); color: var(--white); border-radius: 999px; padding: 0.85rem 1.25rem; }
  .hero-grid, .section-head, .grid-3, .grid-4, .grid-2, .compare, .split, .stat-strip, .pathway, .cta-band, .footer-grid { grid-template-columns: 1fr; }
  .path-arrow { transform: rotate(90deg); justify-self: center; }
  section { padding: 64px 0; }
}

.site-header { position: sticky; }
.nav { position: relative; }
.card:hover { border-color: var(--line-strong); }
.hero-grid { min-height: 62vh; }
.ticker-track span { white-space: nowrap; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

html { scroll-padding-top: 88px; }
section, #briefing, #product { scroll-margin-top: 88px; }
.nav-links a.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--terra); padding-bottom: 4px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cta-band .eyebrow { color: #e8d5c4; }
.cta-band .eyebrow::before { background: #e8d5c4; }
.cta-band .lede { color: rgba(247, 243, 236, 0.86); }
.cta-band .form-note { color: rgba(247, 243, 236, 0.7); }
.risk-row { align-items: start; }
.risk-row span:first-child { max-width: 28ch; }
.compare ul { padding-left: 18px; }
@media (max-width: 900px) {
  .hero-meta { grid-template-columns: 1fr; }
  .risk-row { grid-template-columns: 1fr; }
}

.brand-name { font-size: 0.92rem; letter-spacing: -0.01em; }
.product-spot { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; overflow: hidden; }
.product-spot-copy { padding: 36px; }
.product-spot-side { padding: 36px; background: var(--ink); color: #edf3f0; }
.product-spot-side .muted { color: rgba(237, 243, 240, 0.7); }
.product-spot-side .btn-primary { background: var(--white); color: var(--ink); margin-top: 18px; }
.module-tag { display: inline-flex; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--terra); margin-bottom: 8px; }
@media (max-width: 900px) {
  .product-spot { grid-template-columns: 1fr; }
}
