/* ============================================================
   Ollive Design System v3 — Warm, editorial, product-forward
   Cream canvas · Mona Sans (display + UI weights) · green accents
   ============================================================ */

:root {
  /* ── Palette (Ollive olive-green, clean white canvas) ───── */
  --bg:            #FFFFFF;   /* Pure white — the canvas */
  --bg-alt:        #F7F7F7;   /* Neutral light gray — alternating sections */
  --bg-card:       #FFFFFF;   /* Pure white — cards / product frames */
  --bg-deep:       #EEEEEE;   /* Neutral gray — tracks & subtle fills */

  --ink:           #283618;   /* Black Forest — headings + primary text */
  --ink-soft:      rgba(40, 54, 24, 0.74);
  --ink-muted:     rgba(40, 54, 24, 0.56);
  --ink-faint:     rgba(40, 54, 24, 0.34);

  --accent:        #CCD5AE;   /* Dry Sage — soft highlights, badges, fills */
  --accent-strong: #B9C596;
  --trust:         #606C38;   /* Olive Leaf — primary action, links, active */
  --trust-deep:    #4C5729;

  --border:        #E5E5E5;   /* Neutral gray hairline */
  --border-ink:    rgba(40, 54, 24, 0.16);

  --anchor:        #283618;   /* Black Forest — dark anchor + footer */
  --anchor-2:      #1E2912;
  --on-dark:       #FFFFFF;

  /* ── Type ───────────────────────────────────────────────── */
  /* One typeface, two roles: Mona Sans at a bold display weight for
     headlines, regular/medium weights for UI and body copy. */
  --font-display: 'Mona Sans', system-ui, sans-serif;
  --font-ui:      'Mona Sans', system-ui, sans-serif;
  --weight-display: 700;

  /* ── Space ──────────────────────────────────────────────── */
  --section:       clamp(4.5rem, 9vw, 8rem);
  --gutter:        clamp(1.25rem, 4vw, 2.5rem);
  --max:           1200px;
  --max-prose:     700px;

  /* ── Radii ──────────────────────────────────────────────── */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 9999px;

  /* ── Motion ─────────────────────────────────────────────── */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 200ms;
  --med: 380ms;
  --slow: 700ms;

  /* ── Shadow ─────────────────────────────────────────────── */
  --sh-sm: 0 1px 2px rgba(40,54,24,.05);
  --sh:    0 4px 8px rgba(40,54,24,.04), 0 18px 40px rgba(40,54,24,.08);
  --sh-lg: 0 8px 16px rgba(40,54,24,.06), 0 32px 64px rgba(40,54,24,.12);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }

/* ── Type scale ───────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.04;
}
h1 { font-size: clamp(2.75rem, 7vw, 5rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.06; }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.15; }
h4 { font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
p  { font-size: 1.0625rem; line-height: 1.62; color: var(--ink-soft); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); }
.section--anchor {
  background: var(--anchor);
  color: var(--on-dark);
}
.section--anchor h1, .section--anchor h2, .section--anchor h3 { color: var(--on-dark); }
.section--anchor p { color: rgba(244,239,230,.75); }
.section--anchor .eyebrow { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--trust);
  margin-bottom: 1.4rem;
}

.lede {
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--max-prose);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.section-head .lede { margin: 1.25rem auto 0; }
.section-head--left { margin-left: 0; margin-right: 0; text-align: left; }
.section-head--left .lede { margin-left: 0; }

/* ── Buttons (Tennr-style dark pills) ─────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.65rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform var(--fast) var(--ease),
              background var(--fast) var(--ease-io),
              color var(--fast) var(--ease-io),
              border-color var(--fast) var(--ease-io),
              box-shadow var(--fast) var(--ease-io);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:disabled:hover { transform: none; }

.btn-primary {
  background: var(--ink);
  color: var(--on-dark);
}
.btn-primary:hover { background: var(--ink); box-shadow: 0 12px 28px rgba(40,54,24,.28); }

.btn-accent {
  background: var(--accent);
  color: var(--ink);
}
.btn-accent:hover { background: var(--accent-strong); box-shadow: 0 12px 28px rgba(204,213,174,.4); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-ink);
}
.btn-secondary:hover { border-color: var(--ink); background: rgba(40,54,24,.04); }

/* on dark */
.section--anchor .btn-secondary,
.footer .btn-secondary {
  color: var(--on-dark);
  border-color: rgba(244,239,230,.3);
}
.section--anchor .btn-secondary:hover { background: rgba(244,239,230,.1); border-color: var(--on-dark); }

.btn-arrow::after { content: '→'; font-weight: 400; transition: transform var(--fast) var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
@media (max-width: 560px) { .cta-row .btn { flex: 1 1 100%; } }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease-io);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.card h3 { font-family: var(--font-ui); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 0.55rem; }
.card p { font-size: 0.975rem; line-height: 1.6; }

/* ── Grids ────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.g2, .g3, .g4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .g2 { grid-template-columns: repeat(2,1fr); }
  .g3 { grid-template-columns: repeat(2,1fr); }
  .g4 { grid-template-columns: repeat(2,1fr); }
  .grid { gap: 1.5rem; }
}
@media (min-width: 980px) {
  .g3 { grid-template-columns: repeat(3,1fr); }
  .g4 { grid-template-columns: repeat(4,1fr); }
  .grid { gap: 1.75rem; }
}

/* ── Feature row (alternating text / visual) ─────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 920px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row--flip .feature-visual { order: -1; }
}
.feature-copy h2 { margin-bottom: 1.25rem; }
.feature-copy .lede { margin-bottom: 1.75rem; }

/* ── Product mockup frame (CSS "screenshot") ─────────────── */
.mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-dot:nth-child(2) { background: #E8D9B0; }
.mock-dot:nth-child(3) { background: var(--accent); }
.mock-title {
  margin-left: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(40, 54, 24, 0.72); /* darker than --ink-muted for AA contrast at this small size */
  letter-spacing: 0.01em;
}
.mock-body { padding: 1.25rem; }

/* agent rows inside mock */
.mock-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 0.65rem;
  background: var(--bg-alt);
}
.mock-row:last-child { margin-bottom: 0; }
.mock-row-name { font-weight: 600; font-size: 0.9rem; color: var(--ink); flex-shrink: 0; }
.mock-bar-track {
  flex: 1;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--bg-deep);
  overflow: hidden;
  min-width: 40px;
}
.mock-bar-fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--trust), var(--accent)); }
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.65rem;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.badge--ok   { background: rgba(96,108,56,.16); color: var(--trust-deep); }
.badge--warn { background: rgba(40,54,24,.09); color: var(--ink-muted); }
.badge--live { background: rgba(204,213,174,.55); color: var(--ink); }

/* ── Logo / trust strip ───────────────────────────────────── */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip-inner {
  padding: 2.25rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.trust-strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.trust-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
}
.trust-tag {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--ink-muted);
  padding: 0.2rem 0.5rem;
}

/* ── Stat row ─────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3,1fr); } }
.stat { background: var(--bg-card); padding: 2rem 1.5rem; text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(2rem,4vw,2.75rem); color: var(--ink); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; color: var(--ink-muted); letter-spacing: 0.02em; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--med), background var(--med), transform var(--med) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,.92); }
.nav.nav--hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 66px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; color: var(--ink); letter-spacing: -0.02em;
}
.nav-logo-img {
  width: 30px; height: 30px;
  display: block;
}
.nav-links { display: none; align-items: center; gap: 2.25rem; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-link {
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
  background: none; border: none; padding: 0.5rem 0;
  transition: color var(--fast);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--trust); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-dropdown-trigger::after {
  content: ''; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--fast);
}
.nav-dropdown[aria-expanded="true"] .nav-dropdown-trigger::after { transform: translateY(1px) rotate(-135deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 320px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 0.5rem; box-shadow: var(--sh);
  opacity: 0; visibility: hidden; transition: opacity var(--fast), transform var(--fast), visibility var(--fast);
}
.nav-dropdown[aria-expanded="true"] .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-item { display: block; padding: 0.85rem 0.95rem; border-radius: 10px; color: var(--ink); transition: background var(--fast); }
.nav-dropdown-item:hover { background: var(--bg-alt); }
.nav-dropdown-item-title { font-weight: 700; display: block; margin-bottom: 0.15rem; font-size: 0.95rem; }
.nav-dropdown-item-desc { font-size: 0.82rem; color: var(--ink-muted); line-height: 1.4; }
.nav-cta { padding: 0.65rem 1.25rem; font-size: 0.925rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card);
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform var(--fast), opacity var(--fast);
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { content:''; position:absolute; top:-6px; left:0; }
.nav-toggle-bar::after { content:''; position:absolute; top:6px; left:0; }
[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

.nav-mobile { display: none; padding: 0.5rem var(--gutter) 1.5rem; border-top: 1px solid var(--border); background: var(--bg); }
.nav-mobile.open { display: block; }
.nav-mobile-group { padding: 0.5rem 0; }
.nav-mobile-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); padding: 0.75rem 0.25rem 0.25rem; }
.nav-mobile a { display: block; padding: 0.9rem 0.25rem; font-size: 1rem; color: var(--ink); border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .btn { display: flex; width: 100%; margin-top: 1rem; border-bottom: none; }
.nav-mobile a.btn-primary { color: var(--on-dark); }
.nav-mobile a.btn-accent { color: var(--ink); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--anchor); color: var(--on-dark);
  padding: clamp(4rem,8vw,5.5rem) 0 2rem; margin-top: 0;
  position: relative; overflow: hidden;
}
.footer::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity:.4; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; } }
.footer h4 { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,239,230,.7); margin-bottom: 1.15rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.7rem; }
.footer a { font-size: 0.925rem; color: rgba(244,239,230,.72); transition: color var(--fast); }
.footer a:hover { color: var(--accent); }
.footer-brand .nav-logo { color: var(--on-dark); font-size: 1.45rem; }
.footer-brand p { color: rgba(244,239,230,.65); font-size: 0.925rem; margin: 0.9rem 0 1.35rem; max-width: 320px; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(244,239,230,.15); display: inline-flex; align-items: center; justify-content: center; color: rgba(244,239,230,.75); }
.footer-social a:hover { background: rgba(244,239,230,.08); border-color: var(--accent); color: var(--accent); }
.newsletter { display: flex; flex-direction: column; gap: 0.75rem; }
.newsletter-input-wrapper { display: flex; flex-direction: column; gap: 0.6rem; }
.newsletter input { width: 100%; padding: 0.85rem 1rem; font: inherit; font-size: 0.925rem; color: var(--on-dark); background: rgba(244,239,230,.06); border: 1px solid rgba(244,239,230,.18); border-radius: var(--r-sm); outline: none; transition: border-color var(--fast), background var(--fast), box-shadow var(--fast); }
.newsletter input::placeholder { color: rgba(244,239,230,.4); }
.newsletter input:focus { border-color: var(--accent); background: rgba(244,239,230,.1); box-shadow: 0 0 0 3px rgba(148,222,165,.15); }
.newsletter button { width: 100%; padding: 0.85rem 1.25rem; font: inherit; font-weight: 700; font-size: 0.925rem; color: var(--ink); background: var(--accent); border: none; border-radius: var(--r-sm); cursor: pointer; transition: background var(--fast), transform var(--fast); }
.newsletter button:hover { background: var(--accent-strong); transform: translateY(-1px); }
.newsletter button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; background: var(--accent); }
.newsletter input.field-invalid { border-color: #b3492f; }
.newsletter-success { padding: 0.85rem 1rem; border-radius: var(--r-sm); background: rgba(204,213,174,.14); border: 1px solid rgba(204,213,174,.32); color: var(--accent); font-size: 0.9rem; }

/* ── Honeypot (shared) — off-screen field bots auto-fill, humans never see ── */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer-bottom { max-width: var(--max); margin: 3rem auto 0; padding: 1.75rem var(--gutter) 0; border-top: 1px solid rgba(244,239,230,.1); font-size: 0.82rem; color: rgba(244,239,230,.6); text-align: center; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { max-width: var(--max-prose); margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; padding: 1.7rem 0;
  font-family: var(--font-ui); font-weight: 600; font-size: 1.1rem; color: var(--ink);
  background: none; border: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: color var(--fast);
}
.faq-question:hover { color: var(--trust); }
.faq-question::after {
  content: '+'; font-family: var(--font-ui); font-weight: 400; font-size: 1.6rem;
  color: var(--trust); line-height: 1; transition: transform var(--fast); flex-shrink: 0;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--med) var(--ease-io); }
.faq-item.open .faq-answer { max-height: 520px; }
.faq-answer-inner { padding: 0 0 1.7rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.62; }

/* ── Toast ────────────────────────────────────────────────── */
.ollive-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--anchor);
  color: var(--on-dark);
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--sh-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
}
.ollive-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }

/* ── Glossary (shared across index + all term detail pages) ── */
.glossary-crumb {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--trust);
  margin-bottom: 1.4rem;
}
.glossary-crumb a { color: var(--trust); text-decoration: none; }
.glossary-crumb a:hover { color: var(--trust-deep); }
.glossary-crumb span[aria-current] { color: var(--ink); }

.glossary-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--border); }
.glossary-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); margin-bottom: 1rem; max-width: 22ch; }
.glossary-hero .lede { max-width: 62ch; margin-bottom: 0; }

.glossary-search { position: relative; max-width: 420px; margin: clamp(2rem, 4vw, 2.5rem) 0 0; }
.glossary-search input {
  width: 100%; font: inherit; font-size: 0.95rem; padding: 0.8rem 1rem 0.8rem 2.5rem;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--bg-alt); color: var(--ink); outline: none;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}
.glossary-search input:focus { border-color: var(--trust); background: var(--bg-card); box-shadow: 0 0 0 3px rgba(96,108,56,.12); }
.glossary-search svg { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-muted); pointer-events: none; }
.glossary-search-empty { display: none; padding: 2.5rem 0; text-align: center; color: var(--ink-muted); font-size: 0.95rem; }

.glossary-az { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.glossary-az a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; font-size: 0.8rem; font-weight: 700;
  color: var(--ink-muted); text-decoration: none; transition: background var(--fast), color var(--fast);
}
.glossary-az a:hover { background: var(--bg-alt); color: var(--trust); }

.glossary-group { padding: clamp(2rem, 4vw, 2.75rem) 0; border-bottom: 1px solid var(--border); }
.glossary-group:last-child { border-bottom: none; }
.glossary-group-letter { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 1.5rem; color: var(--trust); margin-bottom: 1.25rem; }
.glossary-list { display: grid; gap: 0.9rem; }
.glossary-list-item {
  display: block; padding: 1.1rem 1.35rem; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-card); text-decoration: none; transition: border-color var(--fast), transform var(--fast), box-shadow var(--fast);
}
.glossary-list-item:hover { border-color: var(--trust); transform: translateY(-2px); box-shadow: var(--sh); }
.glossary-list-term { font-family: var(--font-ui); font-weight: 700; font-size: 1.02rem; color: var(--ink); margin-bottom: 0.3rem; }
.glossary-list-meaning { font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }
.glossary-hidden { display: none !important; }

.glossary-detail-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem); }
.glossary-detail-hero .eyebrow { color: var(--trust); }
.glossary-detail-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.75rem 0 1rem; max-width: 26ch; }
.glossary-detail-hero .lede { max-width: 68ch; margin-bottom: 0; }

.glossary-body { max-width: 720px; margin: 0 auto; padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 4rem); }
.glossary-body h2 { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(1.3rem, 2.8vw, 1.7rem); color: var(--ink); margin: 2.25rem 0 1rem; }
.glossary-body h2:first-of-type { margin-top: 0; }
.glossary-body p { font-size: 1rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 1.1rem; }

.glossary-related { max-width: 720px; margin: 0 auto; padding: 0 0 clamp(2rem, 4vw, 3rem); }
.glossary-related h3 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ink-muted); margin-bottom: 0.9rem; }
.glossary-pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.glossary-pill {
  display: inline-flex; align-items: center; font-size: 0.85rem; font-weight: 600; color: var(--ink);
  padding: 0.5rem 0.95rem; border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--bg-alt); text-decoration: none; transition: border-color var(--fast), color var(--fast), background var(--fast);
}
.glossary-pill:hover { border-color: var(--trust); color: var(--trust-deep); background: var(--bg-card); }

.glossary-pager { max-width: 720px; margin: 0 auto; padding: clamp(1.5rem, 3vw, 2rem) 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; }
.glossary-pager a { flex: 1; text-decoration: none; }
.glossary-pager a:last-child { text-align: right; }
.glossary-pager-label { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ink-muted); margin-bottom: 0.3rem; }
.glossary-pager-term { font-size: 0.95rem; font-weight: 700; color: var(--ink); transition: color var(--fast); }
.glossary-pager a:hover .glossary-pager-term { color: var(--trust); }

@media (max-width: 640px) {
  .glossary-az { gap: 0.25rem; }
  .glossary-az a { width: 26px; height: 26px; font-size: 0.74rem; }
}
