/* ═══════════════════════════════════════════════════════════
   earnvoy. — shared marketing styles
   Used by every public surface so nav/footer/type stay in lockstep.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink:    #0a2a6b;
  --ink-2:  #1a3d8f;
  --brand:  #1e5fe0;
  --mid:    #5a89ec;
  --soft:   #a8c2f5;
  --pale:   #e6edfb;
  --paper:  #f5f8ff;
  --white:  #ffffff;
  --line:   rgba(10, 42, 107, 0.10);
  --line-2: rgba(10, 42, 107, 0.18);
  /* Solid ink, not 0.55 alpha. The alpha version composited to 3.48:1 on white
     and 3.41:1 on paper — below the 4.5:1 AA floor for normal-size text, which
     is every consumer of this token. Solid #4a5265 is 7.0:1 on white. */
  --mute:   #4a5265;
  --warn:   #d97706;
  --good:   #10b981;
  /* --good is a fill/indicator colour — 2.54:1 on white, so it must never be used
     as text. --good-ink is the text-safe equivalent at 5.02:1 on white. */
  --good-ink: #0a7f57;
  --font:   "Plus Jakarta Sans", system-ui, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ───────── logo ───────── */
/* Official earnvoy lockup (Earnvoy-01/02.svg, 9 Oct 2026): "e" plane mark +
   "arn" navy + "voy" brand blue. Drawn as a background so every existing .logo
   element picks it up with no markup change; the text stays in the DOM, visually
   hidden, as the accessible name. Size follows font-size: 1em tall, ~4.9em wide. */
.logo {
  display: inline-block; flex: none;
  width: 4.91em; height: 1em; line-height: 1;
  background: no-repeat left center/contain url("earnvoy-logo.svg");
  color: transparent; font-size: 30px; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-indent: 110%;
}
.logo::before, .logo .dot { display: none; }
.logo.light { background-image: url("earnvoy-logo-light.svg"); }

/* ───────── nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 248, 255, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 500;
  color: var(--mute);
}
/* Nav items are flex-shrink:1, so without nowrap they compress below their text
   width and multi-word labels break mid-phrase in the band between the mobile
   breakpoint and the ~990px the full bar actually needs. */
.nav-links a, .nav-cta a { white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { font-weight: 600; }
.nav-cta {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600;
}
.nav-cta .btn { padding: 10px 18px; border-radius: 99px; }

.btn {
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--brand); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-blue { background: var(--brand); color: var(--white); }
.btn-blue:hover { background: var(--ink-2); }

/* ───────── shared section primitives ───────── */
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow-mute { color: var(--mute); }

.section-h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 14px 0 0;
  text-wrap: balance;
}

/* page-hero — used at the top of every sub-page */
.page-hero {
  max-width: 1320px; margin: 0 auto;
  padding: 80px 40px 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero .crumb {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mute);
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 28px;
}
.page-hero .crumb a:hover { color: var(--ink); }
.page-hero .crumb .sep { color: var(--line-2); }
.page-hero h1 {
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 24px;
  text-wrap: balance;
  max-width: 18ch;
}
.page-hero h1 .em { color: var(--brand); }
.page-hero .lede {
  font-size: 19px; line-height: 1.5;
  color: var(--mute);
  max-width: 640px;
  margin: 0;
}

/* ───────── a11y utilities ───────── */
.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;
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ───────── footer ───────── */
footer {
  background: var(--ink);
  color: var(--white);
}
.foot-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 80px 40px 40px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
}
.foot-disclosure {
  max-width: 1320px; margin: 0 auto;
  padding: 0 40px 40px;
}

.foot-brand .logo { font-size: 32px; }
.foot-brand p {
  font-size: 14px; color: rgba(255,255,255,0.72);
  line-height: 1.6;
  max-width: 280px;
  margin: 18px 0 0;
}
.foot-col h4 {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: rgba(255,255,255,0.85); font-size: 14px; }
.foot-col a:hover { color: var(--soft); }
.foot-base {
  max-width: 1320px; margin: 0 auto;
  padding: 24px 40px 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,0.72);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ───────── inline cta band (reusable) ───────── */
.cta-band {
  background: var(--brand);
  color: var(--white);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 90% 100%, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 90px 40px;
  position: relative;
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 60px; align-items: center;
}
.cta-band h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
.cta-band h2 .lite { color: rgba(255,255,255,0.72); font-weight: 500; }
.cta-band-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.cta-band-actions .btn { padding: 18px 28px; border-radius: 99px; font-size: 15px; justify-content: center; }
.cta-band-actions .btn-primary { background: var(--ink); color: var(--white); }
.cta-band-actions .btn-primary:hover { background: var(--white); color: var(--ink); }
.cta-band-actions .btn-secondary { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.cta-band-actions .meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  text-align: center;
}

/* ───────── responsive ───────── */
/* ───────── mobile nav toggle ───────── */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; flex: none;
  margin-left: auto;
  background: transparent; border: 1px solid var(--line-2);
  border-radius: 11px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; display: block;
  width: 17px; height: 2px; border-radius: 2px;
  background: var(--ink);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-inner { padding: 14px 20px; gap: 14px; flex-wrap: wrap; }
  .nav-toggle { display: flex; order: 2; }
  .nav-cta { order: 3; }
  /* Links stay in the DOM and are revealed by the toggle rather than removed.
     Absolutely positioned so opening the panel never changes the nav's height
     (which --navh is measured from) and never shifts the page. */
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 4px 20px 12px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(10,42,107,0.14);
  }
  .nav-links[data-open] { display: flex; }
  /* Specificity must beat per-page transparent-nav overrides like
     `.nav-links a { color: rgba(255,255,255,.82) }` on index.html. */
  .nav .nav-links[data-open] a,
  .nav.solid .nav-links[data-open] a {
    color: var(--ink);
    padding: 15px 2px; font-size: 16px; min-height: 44px;
    display: flex; align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .nav .nav-links[data-open] a:last-child { border-bottom: 0; }
  .nav .nav-links[data-open] a.active { color: var(--brand); font-weight: 600; }
  .page-hero { padding: 56px 20px 40px; }
  .foot-inner { grid-template-columns: 1fr 1fr; padding: 60px 20px 30px; }
  .foot-disclosure { padding: 0 20px 30px; }
  .foot-base { padding: 20px 20px 30px; flex-direction: column; gap: 10px; align-items: flex-start; }
  .cta-band-inner { grid-template-columns: 1fr; padding: 60px 20px; gap: 30px; }
}

/* tri-jurisdiction entity addresses (footer) */
.foot-entities{max-width:1320px;margin:0 auto;box-sizing:border-box;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;padding:32px 40px}
.foot-entities>div{border-top:1px solid rgba(255,255,255,0.14);padding-top:16px}
.foot-entities b{display:block;font-size:13px;font-weight:600;color:#fff}
.foot-entities span{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,0.72);margin:3px 0 6px}
.foot-entities address{font-style:normal;font-size:13px;line-height:1.55;color:rgba(255,255,255,0.8)}
@media (max-width:1000px){.foot-entities{padding:24px 20px;gap:24px}}
@media (max-width:760px){.foot-entities{grid-template-columns:1fr;gap:20px}}

/* structural disclosure — replaces the fine-print paragraph */
.foot-disclosure{box-sizing:border-box}
.foot-disclosure .fd-label{margin:0 0 14px;font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,0.72)}
.fd-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.fd-list li{display:flex;flex-direction:column;gap:5px;padding:16px 18px;border-radius:12px;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.12)}
.fd-list b{font-size:14px;font-weight:600;color:#fff}
.fd-list span{font-size:13px;line-height:1.5;color:rgba(255,255,255,0.8);text-wrap:pretty}
@media (max-width:760px){.fd-list{grid-template-columns:1fr}}
