/* ============================================================================
   Spero Intelligence — marketing product sections
   Recreated dashboard mockups, categorizer architecture, comparison matrix, FAQ.
   Matches the dashboard's liquid-glass dark theme (navy-charcoal, gold accent,
   EB Garamond headings). Scoped under the marketing page only.
   ============================================================================ */

:root {
  --pm-bg: #0f1219;
  --pm-surface: #161b26;
  --pm-surface-2: #1c2333;
  --pm-border: rgba(255, 255, 255, 0.08);
  --pm-border-strong: rgba(255, 255, 255, 0.14);
  --pm-text: #e8eaed;
  --pm-muted: #9aa0aa;
  --pm-faint: #6b7280;
  --pm-gold: #c5a55a;
  --pm-gold-soft: rgba(197, 165, 90, 0.16);
  --pm-pos: #6fcf97;
  --pm-neg: #e8eaed;
}

/* ---- Nav: two distinct buttons (Log in ghost + Sign Up gold) ------------- */
.nav__right a.nav__login {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s var(--ease, ease), color 0.2s var(--ease, ease),
    background 0.2s var(--ease, ease);
}
.nav__right a.nav__login:hover {
  border-color: var(--gold-500, #c5a55a);
  color: #fff;
}
.nav.is-light .nav__right a.nav__login {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
}

/* ---- Browser-framed product shot ----------------------------------------- */
.pm-frame {
  border-radius: 14px;
  overflow: hidden;
  background: var(--pm-bg);
  border: 1px solid var(--pm-border-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}
.pm-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #0b0e14;
  border-bottom: 1px solid var(--pm-border);
}
.pm-frame__dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #2a3140;
}
.pm-frame__addr {
  margin-left: 12px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--pm-faint);
  font-family: var(--font-mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
}
.pm-frame__body {
  display: grid;
  grid-template-columns: 162px 1fr;
  min-height: 300px;
}

/* Real product screenshot filling the browser frame (replaces the mock body). */
.pm-shot {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Mini dashboard sidebar (mirrors the live dashboard) ----------------- */
.pm-rail {
  background: linear-gradient(180deg, #11150f 0%, #0f1219 55%);
  border-right: 1px solid var(--pm-border);
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
}
.pm-rail__logo {
  border: 1px solid rgba(197, 165, 90, 0.55);
  border-radius: 8px;
  padding: 9px 6px 7px;
  text-align: center;
  margin: 2px 12px 8px;
}
.pm-rail__logo b {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 19px;
  letter-spacing: 0.07em;
  color: #fff;
  display: block;
  line-height: 1;
}
.pm-rail__logo span {
  font-size: 9px;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-top: 3px;
}
.pm-rail__subtitle {
  text-align: center;
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: var(--pm-gold);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pm-border);
  margin-bottom: 8px;
}
.pm-rail__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pm-rail__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--pm-muted);
  font-size: 12px;
}
.pm-rail__item i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.5;
  flex: none;
}
.pm-rail__item--active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--pm-border);
}
.pm-rail__item--active i {
  opacity: 1;
  background: var(--pm-gold);
}
.pm-rail__item--back {
  color: var(--pm-faint);
}
.pm-rail__collapse {
  margin-top: auto;
  padding: 10px 9px 0;
  border-top: 1px solid var(--pm-border);
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--pm-faint);
  font-size: 12px;
}
.pm-rail__collapse i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.5;
}

/* ---- Mini dashboard content ---------------------------------------------- */
.pm-main {
  padding: 14px 16px 16px;
  min-width: 0;
}
/* App bar: client switcher + notification / theme / account controls */
.pm-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--pm-border);
}
.pm-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pm-border-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--pm-text);
  background: var(--pm-surface);
}
.pm-switch .home {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--pm-gold);
  opacity: 0.85;
}
.pm-switch .chev {
  color: var(--pm-muted);
}
.pm-icons {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.pm-ico {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--pm-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-muted);
  font-size: 12px;
}
.pm-ico--avatar {
  background: var(--pm-surface-2);
  border-color: var(--pm-border-strong);
}
.pm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.pm-pillbtn {
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--pm-muted);
  background: var(--pm-surface);
}
.pm-pillbtn--gold {
  background: var(--pm-gold);
  color: #1a1205;
  border-color: var(--pm-gold);
  font-weight: 600;
}
.pm-h {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 22px;
  color: #fff;
  line-height: 1.1;
  margin: 0;
}
.pm-sub {
  font-size: 12px;
  color: var(--pm-muted);
  margin-top: 2px;
}

/* stat row */
.pm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.pm-stat {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  padding: 9px 11px;
}
.pm-stat__l {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pm-faint);
}
.pm-stat__v {
  font-size: 21px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  font-family: "EB Garamond", Georgia, serif;
}
.pm-stat__d {
  font-size: 11px;
  margin-top: 3px;
  color: var(--pm-pos);
}
.pm-stat__d--muted {
  color: var(--pm-muted);
}

/* ---- Categorizer table --------------------------------------------------- */
.pm-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.pm-tbl th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pm-faint);
  font-weight: 500;
  padding: 7px 10px;
  border-bottom: 1px solid var(--pm-border);
}
.pm-tbl td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--pm-border);
  color: var(--pm-text);
  vertical-align: middle;
}
.pm-tbl td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pm-payee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pm-logo {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #1a1205;
  flex: none;
}
.pm-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--pm-border-strong);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  color: var(--pm-text);
  background: var(--pm-surface);
  white-space: nowrap;
}
.pm-cat i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--pm-gold);
}
.pm-src {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pm-muted);
}
.pm-src b {
  color: var(--pm-pos);
  font-weight: 700;
}
.pm-src--rule b { color: #7aa2ff; }
.pm-src--pattern b { color: var(--pm-gold); }
.pm-src--ai b { color: #c792ea; }
.pm-pos { color: var(--pm-pos); }

/* ---- Monthly report statement -------------------------------------------- */
.pm-stmt { font-size: 13px; }
.pm-stmt__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 2px;
  border-bottom: 1px solid var(--pm-border);
  color: var(--pm-text);
}
.pm-stmt__row span:last-child { font-variant-numeric: tabular-nums; }
.pm-stmt__row--head {
  color: var(--pm-gold);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--pm-border-strong);
  padding-top: 12px;
}
.pm-stmt__row--total {
  border-top: 1px solid var(--pm-border-strong);
  border-bottom: none;
  margin-top: 4px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 16px;
  color: #fff;
}
.pm-stmt__row--total span:last-child { color: var(--pm-pos); }
.pm-stmt__sub { color: var(--pm-muted); padding-left: 12px; }

/* ---- Net-worth area chart ------------------------------------------------ */
.pm-chart { margin-top: 6px; }
.pm-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.pm-tab {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--pm-muted);
  border: 1px solid transparent;
}
.pm-tab--active {
  background: var(--pm-gold-soft);
  color: var(--pm-gold);
  border-color: rgba(197, 165, 90, 0.4);
}

/* ============================================================================
   Walkthrough layout — alternating copy + mockup
   ============================================================================ */
.walk { display: flex; flex-direction: column; gap: 72px; }
.walk__row {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 48px;
  align-items: center;
}
/* Flip keeps the mockup in the WIDER track, just visually on the left. */
.walk__row--flip { grid-template-columns: 1.28fr 0.72fr; }
.walk__row--flip .walk__copy { order: 2; }
.walk__row--flip .walk__mock { order: 1; }
.walk__step {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500, #c5a55a);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.walk__step b {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(197, 165, 90, 0.5);
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.walk__copy h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  color: var(--charcoal, #1a1a1a);
  margin: 0 0 14px;
}
.walk__copy p {
  color: rgba(0, 0, 0, 0.6);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.walk__list { list-style: none; margin: 0; padding: 0; }
.walk__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(0, 0, 0, 0.74);
  font-size: 14.5px;
  padding: 5px 0;
}
.walk__list .check { color: var(--gold-500, #c5a55a); flex: none; }

@media (max-width: 860px) {
  .walk__row,
  .walk__row--flip { grid-template-columns: 1fr; gap: 26px; }
  .walk__row--flip .walk__copy,
  .walk__row--flip .walk__mock { order: 0; }
  .pm-frame__body { grid-template-columns: 58px 1fr; }
  .pm-rail__item span,
  .pm-rail__collapse span,
  .pm-rail__subtitle,
  .pm-rail__logo span { display: none; }
}

/* ============================================================================
   Categorizer architecture — the multi-layer engine
   ============================================================================ */
.catarch__coa {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto 26px;
  padding: 20px 24px;
  background: rgba(197, 165, 90, 0.08);
  border: 1px solid rgba(197, 165, 90, 0.32);
  border-radius: 14px;
}
.catarch__coa-tag {
  flex: none;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-500, #c5a55a);
}
.catarch__coa p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}
.catarch__coa strong { color: #fff; font-weight: 700; }
@media (max-width: 640px) {
  .catarch__coa { flex-direction: column; gap: 8px; }
}
.catarch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.catarch__layer {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 22px 20px;
}
.catarch__num {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-500, #c5a55a);
  text-transform: uppercase;
}
.catarch__layer h4 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 20px;
  color: #fff;
  margin: 8px 0 8px;
}
.catarch__layer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}
.catarch__layer::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(197, 165, 90, 0.6);
  font-size: 18px;
  z-index: 2;
}
.catarch__layer:last-child::after { display: none; }
@media (max-width: 860px) {
  .catarch { grid-template-columns: 1fr; }
  .catarch__layer::after {
    content: "↓";
    right: 50%;
    top: auto;
    bottom: -22px;
    transform: translateX(50%);
  }
}

/* ============================================================================
   Comparison matrix
   ============================================================================ */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}
.cmp th, .cmp td {
  padding: 16px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.cmp thead th {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 500;
  vertical-align: bottom;
}
.cmp tbody td:first-child,
.cmp thead th:first-child {
  text-align: left;
  color: #1a1a1a;
  font-size: 14px;
  width: 30%;
}
.cmp__us {
  background: rgba(197, 165, 90, 0.07);
  border-left: 1px solid rgba(197, 165, 90, 0.35);
  border-right: 1px solid rgba(197, 165, 90, 0.35);
}
.cmp thead .cmp__us {
  border-top: 1px solid rgba(197, 165, 90, 0.35);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.cmp tbody tr:last-child .cmp__us {
  border-bottom: 1px solid rgba(197, 165, 90, 0.35);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
.cmp__name {
  display: block;
  line-height: 1.15;
  color: #1a1a1a;
  font-size: 14px;
  margin-bottom: 3px;
}
.cmp__brand {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  color: var(--gold-800, #8a6d2f);
  line-height: 1.1;
}
.cmp__tag {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
}
.cmp .yes { color: #2e9e63; font-size: 17px; font-weight: 700; }
.cmp .no { color: rgba(0, 0, 0, 0.55); font-size: 16px; }
.cmp .half { color: var(--gold-800, #8a6d2f); font-size: 16px; font-weight: 600; }
.cmp__legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
}
.cmp__legend span { margin-right: 5px; }
.cmp__rowlabel small {
  display: block;
  color: rgba(0, 0, 0, 0.42);
  font-size: 12px;
  margin-top: 2px;
}

/* ============================================================================
   FAQ
   ============================================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 19px;
  color: var(--charcoal, #1a1a1a);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: system-ui, sans-serif;
  font-size: 22px;
  color: var(--gold-800, #8a6d2f);
  transition: transform 0.2s var(--ease, ease);
  flex: none;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  margin: 0;
  padding: 0 4px 24px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 70ch;
}
/* FAQ on a dark band */
.section.band-green .faq__item { border-bottom-color: rgba(255, 255, 255, 0.1); }
.section.band-green .faq__item summary { color: #fff; }
.section.band-green .faq__item summary::after { color: var(--gold-500, #c5a55a); }
.section.band-green .faq__item p { color: rgba(255, 255, 255, 0.6); }

/* ============================================================================
   Hero proof line — social proof directly under the hero CTAs
   ============================================================================ */
.hero__proof {
  margin-top: 22px;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.7);
}
.hero__proof strong {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  color: var(--gold-500, #c5a55a);
  margin-right: 2px;
}

/* ============================================================================
   Trust / security band — sits directly under the hero
   ============================================================================ */
.trust-band {
  background: var(--offwhite, #f6f4ef);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 22px 0;
}
.trust-band__inner {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.trust-band__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.6);
}
.trust-band__item strong {
  display: block;
  color: #1a1a1a;
  font-size: 14px;
  margin-bottom: 2px;
}
.trust-band__icon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1.3;
  color: var(--gold-800, #8a6d2f);
}
@media (max-width: 720px) {
  .trust-band__inner { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================================
   Comparison matrix — mobile-stacked variant
   ============================================================================ */
.cmp-cards { display: none; }
.cmp-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 16px 16px 12px;
  margin-bottom: 14px;
}
.cmp-card__cap {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}
.cmp-card__cap small {
  display: block;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  margin-top: 2px;
}
.cmp-card__spero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(197, 165, 90, 0.1);
  border: 1px solid rgba(197, 165, 90, 0.35);
}
.cmp-card__brand {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 17px;
  color: var(--gold-800, #8a6d2f);
}
.cmp-card__others {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  margin-top: 12px;
}
.cmp-card__other {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 4px;
}
.cmp-card .yes { color: #2e9e63; font-weight: 700; }
.cmp-card .no { color: rgba(0, 0, 0, 0.35); }
.cmp-card .half { color: var(--gold-800, #8a6d2f); font-weight: 600; }
@media (max-width: 720px) {
  .cmp-wrap { display: none; }
  .cmp-cards { display: block; }
}

/* ============================================================================
   Capabilities grid — responsive (UX-13). Was a hard-coded inline 1fr/1fr that
   stayed 2-col and cramped on tablet/phone; now stacks below 760px.
   ============================================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .cap-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================================
   Hero contrast floor (UX-20). The lede is light text over a gradient that
   varies in brightness; a soft text-shadow guarantees legibility on the light
   end without altering the layout or color.
   ============================================================================ */
.division-hero h1,
.division-hero .lede,
.hero__proof {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

/* Footer Sign-Up CTA (UX-18) — give it room from the brand blurb. */
.footer__cta { margin-top: 18px; }

/* ============================================================================
   iOS standalone PWA — mobile safe-area + touch-target pass.
   Additive overrides only. The one unconditional rule (.nav__inner) uses
   env(safe-area-inset-top), which resolves to 0 on desktop, so desktop
   rendering is byte-identical (padding-top stays 18px). Everything else is
   gated behind @media (max-width: 720px), matching the existing marketing
   mobile breakpoints in this file, so nothing above 720px is affected.
   ============================================================================ */

/* Fixed nav clears the iOS status bar / Dynamic Island. On desktop
   env(safe-area-inset-top) = 0 → padding-top = 18px, identical to spero.css. */
.nav__inner {
  padding-top: calc(18px + env(safe-area-inset-top));
}

@media (max-width: 720px) {
  /* Re-show the Sign Up pill: spero.css hides it below 720px in favor of a
     hamburger these React pages never render. Both pills fit at 390px. */
  .nav__right a.nav__contact {
    display: inline-flex;
  }

  /* Nav auth pills reach a ~44px touch target (spero.css uses 6px 16px) and
     never wrap their label ("Log in" / "Sign Up") to a second line. */
  .nav__right a.nav__login,
  .nav__right a.nav__contact {
    padding: 10px 16px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Tighten the pill gap so both fit beside the wordmark at 390px. */
  .nav__inner > .nav__right {
    gap: 10px;
  }

  /* Compensate the landing hero clearance for the taller safe-area nav.
     (The legal-hero equivalent lives in legal-page.tsx's scoped <style>.) */
  .division-hero {
    padding-top: calc(130px + env(safe-area-inset-top));
  }

  /* Drop the 64px dead band spero.css reserves for a mobile-contact bar these
     pages never render; respect the home indicator instead. */
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Footer bottom row stacks instead of cramming into a ~113px column. */
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
  }
  .footer__bottom > span:first-child {
    flex: none;
  }

  /* Footer link tap targets. */
  .footer__col a {
    display: inline-block;
    padding: 6px 0;
  }
  .footer__col ul {
    gap: 4px;
  }

  /* Smooth-scroll anchor clears the fixed nav + safe area. */
  #walkthrough {
    scroll-margin-top: calc(84px + env(safe-area-inset-top));
  }
}
