/* ───────────────────────────────────────────────────────────────────────────
   By Envelope — marketing & support site
   Editorial paper/ink identity (Instrument Serif + Geist + Geist Mono, cobalt),
   with a deep-navy glass band as a nod to the Sell in May family.
   ─────────────────────────────────────────────────────────────────────────── */

:root, :root.theme-light {
  --paper: #f5f1e8;
  --paper-2: #ede8db;
  --card: #fbf8f0;
  --card-tint: rgba(19, 17, 13, 0.035);
  --ink: #13110d;
  --ink-2: #4a4640;
  --ink-3: #8c887e;
  --ink-4: #b8b3a6;
  --rule: rgba(19, 17, 13, 0.10);
  --rule-2: rgba(19, 17, 13, 0.18);
  --accent: #1d3fb8;
  --accent-fg: #ffffff;
  --accent-soft: rgba(29, 63, 184, 0.10);
  --pos: #2f6a23;
  --neg: #b54416;
  /* envelope category signals (from app) */
  --cat-expenses: #1d3fb8;
  --cat-protected: #2f6a23;
  --cat-retirement: #5a3aa8;
  --cat-taxes: #8a6228;
  --cat-safe: #b54416;
  --cat-goal: #a83a78;
  --shadow-sm: 0 1px 2px rgba(19, 17, 13, 0.04);
  --shadow-md: 0 10px 40px rgba(19, 17, 13, 0.08);
  --shadow-lg: 0 40px 80px rgba(19, 17, 13, 0.14);
  color-scheme: light;
}

:root.theme-dark {
  --paper: #100f0c;
  --paper-2: #181612;
  --card: #1a1814;
  --card-tint: rgba(240, 236, 226, 0.04);
  --ink: #f3eee2;
  --ink-2: #b0aa9c;
  --ink-3: #756f64;
  --ink-4: #4a463f;
  --rule: rgba(240, 236, 226, 0.10);
  --rule-2: rgba(240, 236, 226, 0.18);
  --accent: #93afff;
  --accent-fg: #0c0a06;
  --accent-soft: rgba(147, 175, 255, 0.14);
  --pos: #95c587;
  --neg: #e0784e;
  --cat-expenses: #93afff;
  --cat-protected: #95c587;
  --cat-retirement: #b9a4f0;
  --cat-taxes: #d2a76b;
  --cat-safe: #e0784e;
  --cat-goal: #e89bc5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* The deep navy used by the family band — constant across themes */
:root {
  --navy-1: #16284f;
  --navy-2: #21407e;
  --navy-grad: linear-gradient(150deg, #16284f 0%, #21407e 60%, #2a5298 100%);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-hover: rgba(255, 255, 255, 0.13);
  --glass-border: rgba(255, 255, 255, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geist', -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 300ms ease, color 300ms ease;
}

img { max-width: 100%; }

/* ───────── Type primitives ───────── */
.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.serif em, em.serif { font-style: italic; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; }
.cap {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

a { color: inherit; text-decoration: none; }

/* ───────── Layout ───────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }
section { position: relative; }
.hairline { height: 1px; background: var(--rule); border: none; margin: 0; }

/* ───────── Top nav ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Instrument Serif', serif;
  font-size: 23px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand .mark svg { display: block; }
.nav-mid { display: flex; align-items: center; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background 140ms ease, color 140ms ease;
}
.nav-links a:hover { color: var(--ink); background: var(--card-tint); }
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--card-tint); color: var(--ink); }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
:root.theme-dark .theme-toggle .ic-sun { display: block; }
:root.theme-dark .theme-toggle .ic-moon { display: none; }

/* language pill */
.lang-pill {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--ink-2);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.lang-pill:hover { background: var(--card-tint); color: var(--ink); }
.lang-pill svg { opacity: 0.7; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 140ms ease;
}
.nav-cta:hover { opacity: 0.88; }

.menu-btn { display: none; }

/* mobile drawer */
.drawer { display: none; }

/* ───────── App store badge ───────── */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--paper);
  transition: transform 160ms ease, opacity 160ms ease;
}
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge .glyph { width: 26px; height: 30px; flex-shrink: 0; }
.appstore-badge .txt { display: flex; flex-direction: column; line-height: 1.1; }
.appstore-badge .txt small { font-size: 11px; opacity: 0.85; letter-spacing: 0.01em; }
.appstore-badge .txt span { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; font-family: 'Geist', sans-serif; }
.appstore-badge.on-navy { background: #fff; color: #0c1326; }

/* QR block */
.qr-block { display: flex; align-items: center; gap: 14px; }
.qr-frame {
  width: 92px; height: 92px;
  border-radius: 14px;
  background: #fff;
  padding: 9px;
  border: 1px solid var(--rule-2);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.qr-frame svg, .qr-frame img { display: block; width: 100%; height: 100%; }
.qr-cap { font-size: 13px; color: var(--ink-3); max-width: 13ch; line-height: 1.35; }

/* ───────── Hero ───────── */
.hero { padding: 92px 0 56px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
  padding-bottom: 0.12em;
}
.hero h1 em { font-style: italic; }
.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 28px 0 0;
  max-width: 44ch;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* hero phone stage */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}
.hero-stage .phone { transform: rotate(1.5deg); z-index: 2; }
.hero-stage .phone.behind {
  position: absolute;
  left: 6%;
  top: 8%;
  transform: rotate(-6deg) scale(0.86);
  z-index: 1;
  opacity: 0.92;
  filter: saturate(0.96);
}

/* ───────── Device frames ───────── */
/* iPhone */
.phone {
  width: 270px;
  background: #0a0a0a;
  border-radius: 44px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.04);
}
.phone .screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1242 / 2688;
}
.phone .screen img { display: block; width: 100%; }
.phone .notch {
  position: absolute;
  top: 9px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 26px;
  background: #0a0a0a;
  border-radius: 14px;
  z-index: 3;
}

/* iPad */
.tablet {
  width: 100%;
  max-width: 720px;
  background: #0a0a0a;
  border-radius: 28px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-lg);
}
.tablet .screen {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 2732 / 2048;
}
.tablet .screen img { display: block; width: 100%; }

/* Mac window */
.mac {
  width: 100%;
  background: #1c1b18;
  border-radius: 14px 14px 12px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mac .bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #2a2825;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mac .dot { width: 12px; height: 12px; border-radius: 999px; }
.mac .dot.r { background: #ff5f57; }
.mac .dot.y { background: #febc2e; }
.mac .dot.g { background: #28c840; }
.mac .bar .title {
  margin-left: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
}
.mac .screen { background: #000; }
.mac .screen img { display: block; width: 100%; }

/* ───────── Trust line ───────── */
.trust {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  color: var(--ink-3);
}
.trust-item { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; }
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ───────── Section heads ───────── */
.sec { padding: 96px 0; }
.sec-head { max-width: 660px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head .cap { display: block; margin-bottom: 16px; }
.sec-head h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  padding-bottom: 0.08em;
}
.sec-head h2 em { font-style: italic; }
.sec-head p {
  font-size: 18px;
  color: var(--ink-2);
  margin: 22px 0 0;
}

/* ───────── Feature rows ───────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
}
.feature:not(:last-child) { border-bottom: 1px solid var(--rule); }
.feature.flip .feature-media { order: -1; }
.feature-media { display: flex; align-items: center; justify-content: center; }
.feature-media .phone { width: 256px; }
.feature-text h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 14px 0 0;
  padding-bottom: 0.04em;
}
.feature-text p {
  font-size: 17px;
  color: var(--ink-2);
  margin: 16px 0 0;
}
.feature-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-2);
}
.feature-list li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* category chips inline */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.cat-chip .d { width: 9px; height: 9px; border-radius: 999px; }

/* ───────── Cards grid ───────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px;
}
.card .icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h4 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.card p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* ───────── Multi-device showcase ───────── */
.showcase { padding: 40px 0 96px; }
.showcase-stage {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
}
.showcase-mac { position: relative; }
.showcase-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: end;
}

/* ───────── Family / navy band ───────── */
.navy-band {
  background: var(--navy-grad);
  color: #f3f2ee;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.navy-band .cap { color: rgba(255,255,255,0.6); }
.navy-band h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  padding-bottom: 0.12em;
  color: #fff;
}
.navy-band h2 em { font-style: italic; }
.navy-band .lede { font-size: 18px; color: rgba(255,255,255,0.78); margin: 26px 0 0; max-width: 52ch; }
.glass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 26px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 300ms ease, background 300ms ease;
}
.glass:hover { transform: translateY(-5px); background: var(--glass-bg-hover); }
.glass .gi {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: #cdd8ff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.glass h4 { font-size: 17px; font-weight: 600; margin: 0 0 8px; color: #fff; }
.glass p { font-size: 14.5px; color: rgba(255,255,255,0.72); margin: 0; }
.navy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}
.navy-stat {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.navy-stat .big {
  font-family: 'Instrument Serif', serif;
  font-size: 50px; line-height: 1;
  letter-spacing: -0.01em; color: #fff;
}
.navy-stat .lbl { font-size: 14px; color: rgba(255,255,255,0.72); margin-top: 10px; }

/* ───────── Sibling / cross-promo ───────── */
.sibling-band { padding: 0 0 96px; }
.sibling-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  background: var(--navy-grad);
  color: #f3f2ee;
  border-radius: 22px;
  padding: 34px 38px;
  box-shadow: var(--shadow-md);
}
.sibling-mark {
  width: 66px; height: 66px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sibling-card .cap { color: rgba(255,255,255,0.6); display: block; }
.sibling-card h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400; font-size: 30px;
  line-height: 1.12; letter-spacing: -0.01em;
  margin: 9px 0 0; color: #fff;
}
.sibling-card h3 em { font-style: italic; }
.sibling-card p { font-size: 15.5px; color: rgba(255,255,255,0.76); margin: 9px 0 0; max-width: 56ch; }
.sibling-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #16284f;
  border-radius: 999px; padding: 13px 22px;
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
  transition: transform 160ms ease;
}
.sibling-cta:hover { transform: translateY(-2px); }
@media (max-width: 760px) {
  .sibling-card { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
}

/* ───────── CTA band ───────── */
.cta-band {
  text-align: center;
  padding: 96px 32px;
  border-top: 1px solid var(--rule);
}
.cta-band h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 auto;
  max-width: 16ch;
  padding-bottom: 0.06em;
}
.cta-band p { font-size: 18px; color: var(--ink-2); margin: 20px auto 0; max-width: 46ch; }
.cta-actions { margin-top: 36px; display: flex; justify-content: center; gap: 24px; align-items: center; flex-wrap: wrap; }

/* ───────── Footer ───────── */
.footer { border-top: 1px solid var(--rule); padding: 56px 0 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--ink-3); max-width: 32ch; margin: 0 0 18px; }
.family-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.03em;
  color: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: 6px 12px;
  transition: background 140ms ease;
}
.family-link:hover { background: var(--card-tint); color: var(--ink); }
.family-link .sm {
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--navy-grad);
  display: inline-block;
}
.footer-col h5 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 16px; font-weight: 400;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--ink-2); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.lang-switch { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.lang-switch a { color: var(--ink-3); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.on { color: var(--ink); font-weight: 500; }
.lang-switch .sep { color: var(--ink-4); }

/* ───────── Content / doc pages ───────── */
.page-hero { padding: 76px 0 44px; border-bottom: 1px solid var(--rule); }
.page-hero .cap { display: block; margin-bottom: 14px; }
.page-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 60px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin: 0;
  padding-bottom: 0.08em;
}
.page-hero h1 em { font-style: italic; }
.page-hero p { font-size: 19px; color: var(--ink-2); margin: 24px 0 0; max-width: 58ch; }

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding: 56px 0 96px;
  align-items: start;
}
.docs-nav { position: sticky; top: 92px; }
.docs-nav h5 {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 12px; font-weight: 400;
}
.docs-nav ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a {
  display: block; padding: 7px 12px; border-radius: 8px;
  font-size: 14.5px; color: var(--ink-2);
  border-left: 2px solid transparent;
}
.docs-nav a:hover { background: var(--card-tint); color: var(--ink); }
.docs-nav a.active { color: var(--ink); border-left-color: var(--accent); font-weight: 500; }

.prose { max-width: 700px; }
.prose > section { scroll-margin-top: 92px; }
.prose h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400; font-size: 38px;
  line-height: 1.1; letter-spacing: -0.01em;
  margin: 60px 0 0;
  padding-bottom: 0.06em;
}
.prose h2 em { font-style: italic; }
.prose > section:first-child h2 { margin-top: 0; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 36px 0 0; }
.prose p { font-size: 16.5px; color: var(--ink-2); margin: 16px 0 0; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 22px; }
.prose li { font-size: 16.5px; color: var(--ink-2); margin: 8px 0; line-height: 1.55; }
.prose li strong, .prose p strong { color: var(--ink); font-weight: 600; }
.prose a.inline { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.prose a.inline:hover { border-bottom-color: var(--accent); }
.prose code {
  font-family: 'Geist Mono', monospace; font-size: 0.88em;
  background: var(--card-tint); padding: 2px 6px; border-radius: 6px;
}

.callout {
  margin-top: 28px;
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  padding: 20px 22px;
  background: var(--card);
  display: flex; gap: 14px; align-items: flex-start;
}
.callout svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.callout .body { font-size: 15px; color: var(--ink-2); }
.callout .body strong { color: var(--ink); }

/* Steps */
.steps { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num {
  flex-shrink: 0; width: 30px; height: 30px;
  border-radius: 999px; border: 1px solid var(--rule-2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--ink);
}
.step .txt h3 { margin: 0; font-size: 17px; }
.step .txt p { margin: 4px 0 0; font-size: 15px; }

/* FAQ */
.faq { margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 4px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 20px; height: 20px; position: relative; flex-shrink: 0; transition: transform 200ms ease; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ''; position: absolute; background: var(--ink-3); top: 50%; left: 50%;
}
.faq summary .plus::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq summary .plus::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 0 20px; }
.faq .answer p { margin: 0; font-size: 16px; color: var(--ink-2); }
.faq .answer p + p { margin-top: 12px; }

/* Support cards */
.support-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 8px;
}
.support-card {
  border: 1px solid var(--rule); border-radius: 18px;
  padding: 28px; background: var(--card);
  display: flex; flex-direction: column; gap: 10px;
}
.support-card .icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.support-card h3 { margin: 0; font-size: 19px; }
.support-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.support-card a.link {
  margin-top: auto; color: var(--accent); font-size: 15px; font-weight: 500;
  padding-top: 8px; display: inline-flex; align-items: center; gap: 6px;
}
.support-card a.link:hover { gap: 9px; }

/* Privacy stat trio */
.privacy-hero-stat {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 48px;
}
.pstat {
  border: 1px solid var(--rule); border-radius: 18px;
  padding: 28px; background: var(--card); text-align: center;
}
.pstat .big {
  font-family: 'Instrument Serif', serif; font-size: 52px;
  line-height: 1; letter-spacing: -0.01em; color: var(--ink);
}
.pstat .lbl { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

/* compliance table */
.compare {
  margin-top: 28px; width: 100%; border-collapse: collapse;
  border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
}
.compare th, .compare td {
  text-align: left; padding: 14px 18px; font-size: 15px;
  border-bottom: 1px solid var(--rule);
}
.compare th {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 400;
}
.compare td:first-child { color: var(--ink); }
.compare td { color: var(--ink-2); }
.compare tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--pos); font-weight: 600; }
.compare .no { color: var(--ink-4); }

/* ───────── Contact form ───────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 0.85fr;
  gap: 64px; padding: 56px 0 96px; align-items: start;
}
.form-card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 20px; padding: 32px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 9px;
}
.field input, .field textarea, .field select {
  width: 100%; font-family: 'Geist', sans-serif; font-size: 15.5px;
  color: var(--ink); background: var(--card-tint);
  border: 1px solid var(--rule-2); border-radius: 10px;
  padding: 12px 14px; transition: border-color 140ms ease, background 140ms ease;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: var(--card);
}
.field .err { display: none; color: var(--neg); font-size: 13px; margin-top: 6px; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--neg); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--paper);
  border: none; border-radius: 999px;
  font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 500;
  padding: 13px 24px; cursor: pointer; transition: opacity 140ms ease, transform 140ms ease;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.form-success {
  display: none; align-items: center; gap: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent);
  color: var(--ink); border-radius: 12px; padding: 16px 18px;
  font-size: 15px; margin-bottom: 20px;
}
.form-success.show { display: flex; }
.form-success svg { color: var(--accent); flex-shrink: 0; }

.contact-aside .aside-block { margin-bottom: 36px; }
.contact-aside h4 {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 12px; font-weight: 400;
}
.contact-aside p { font-size: 15.5px; color: var(--ink-2); margin: 0 0 8px; }
.contact-aside a.inline { color: var(--accent); }

.utility-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.utility-list a {
  display: flex; align-items: center; gap: 10px;
  font-size: 15.5px; color: var(--ink-2);
}
.utility-list a:hover { color: var(--ink); }
.utility-list svg { color: var(--accent); }

.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.spacer-l { height: 40px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ───────── Responsive ───────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stage { min-height: 0; margin-top: 8px; }
  .hero-stage .phone.behind { display: none; }
  .hero-stage .phone { transform: none; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-media { order: 0; }
  .feature-media { order: -1; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .glass-grid { grid-template-columns: 1fr; }
  .navy-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; }
  .docs-nav ul { flex-direction: row; flex-wrap: wrap; }
  .privacy-hero-stat { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .showcase-row { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .nav-mid { display: none; }
  .menu-btn { display: flex; }
}

@media (max-width: 560px) {
  .container, .container-narrow { padding: 0 22px; }
  .nav-inner { padding: 0 22px; }
  .hero { padding: 56px 0 44px; }
  .hero-actions { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .sec { padding: 72px 0; }
  .navy-band { padding: 76px 0; }
}

/* ───────── Mobile drawer ───────── */
.drawer-open { overflow: hidden; }
.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper);
  padding: 24px 28px;
  flex-direction: column;
  gap: 6px;
}
.drawer.show { display: flex; }
.drawer .drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; height: 44px; }
.drawer a.dlink {
  font-family: 'Instrument Serif', serif; font-size: 30px;
  padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink);
}
.drawer .drawer-actions { margin-top: 28px; display: flex; gap: 14px; align-items: center; }
