/* ============================================================
   Life & Death Planner — lifedeathplanner.com
   Palette mirrors the app theme (src/theme/theme.js).
   Fonts are self-hosted (website/fonts/) so no visitor data
   ever goes to a third party — keep it that way.
   ============================================================ */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }

:root {
  --bg: #0F0E0D;
  --bg-secondary: #1A1917;
  --bg-tertiary: #242220;
  --surface: #1E1C1A;

  --gold: #C9A84C;
  --gold-light: #E2C47A;
  --gold-dark: #A8873A;

  --text: #F5F0E8;
  --text-secondary: #B8AFA0;
  --text-muted: #8A8070;

  --border: #2E2B28;
  --border-light: #3A3632;

  --success: #4CAF7D;

  /* Matches the app: system-style sans everywhere; serif only inside the
     L·D seal monogram and binder-cover graphic (logo marks, not text). */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --seal: Georgia, "Times New Roman", serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn:focus-visible { outline-offset: 4px; }
.faq-list summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-md); }

::selection { background: var(--gold); color: #171410; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { scroll-margin-top: 96px; }

/* ---------- Typography ---------- */

/* Type scale mirrors the app theme (theme.js): 13 / 16 / 19 / 26 / 34+.
   One size per role — don't add near-miss sizes. */
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 38px);
  max-width: 620px;
  margin-bottom: 16px;
}

.section-lede {
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.6;
  max-width: 640px;
}

.center { text-align: center; }
.center .section-title, .center .section-lede { margin-left: auto; margin-right: auto; }

.gold-italic {
  font-weight: inherit;
  color: var(--gold-light);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: linear-gradient(160deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #171410;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.25);
}
.btn-gold:hover {
  color: #171410;
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(201, 168, 76, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { border-color: var(--gold-dark); color: var(--gold-light); }

/* "Coming soon" App Store pill */
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  text-align: left;
}
.store-pill .apple-mark { flex: none; }
.store-pill small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.store-pill strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 14, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand svg { flex: none; }
.brand:hover { color: var(--text); }
.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name .amp { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 10px 22px;
  font-size: 14px;
}
/* Inside the fixed bar the glow/lift reads as noise; keep it calm */
.nav-cta, .nav-cta:hover { box-shadow: none; transform: none; }
/* Beat .nav-links a specificity so the gold CTA keeps its dark text */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover {
  color: #171410;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 176px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(201, 168, 76, 0.13), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 14px;
  color: var(--text-secondary);
}
.hero-note strong { color: var(--gold-light); font-weight: 600; }

/* ---------- Phone mockup ---------- */

.phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-wrap::after {
  content: "";
  position: absolute;
  inset: 10% -6% -4% -6%;
  background: radial-gradient(closest-side, rgba(201, 168, 76, 0.10), transparent 72%);
  z-index: 0;
  pointer-events: none;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(310px, calc(100vw - 48px));
  border: 3px solid var(--border-light);
  border-radius: 46px;
  background: var(--bg);
  box-shadow: inset 0 1px 0 rgba(245, 240, 232, 0.06), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0,0,0,0.6);
  padding: 14px;
}

.phone-screen {
  border-radius: 34px;
  background: linear-gradient(180deg, #131211, var(--bg));
  overflow: hidden;
  padding: 10px 18px 26px;
}

.phone-notch {
  width: 108px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  margin: 0 auto 22px;
}

.app-greeting small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.app-greeting strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.app-progress {
  margin: 16px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ring {
  --pct: 62;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--pct) * 1% - 0.5%), var(--bg-tertiary) calc(var(--pct) * 1% + 0.5%));
  display: grid;
  place-items: center;
}
.ring::before {
  content: "62%";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold-light);
}

.app-progress-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.app-progress-copy span { font-size: 11.5px; color: var(--text-secondary); }

.app-next {
  border-left: 3px solid var(--gold);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  margin-bottom: 16px;
}
.app-next small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.app-next span { font-size: 12.5px; color: var(--text); font-weight: 500; }

.app-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 12px 12px;
}
.app-tile span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 28px;
}
.app-tile .bar {
  height: 4px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  overflow: hidden;
}
.app-tile .bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}

/* ---------- Trust strip ---------- */

.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.trust-item svg { flex: none; }

/* ---------- Sections spacing ---------- */

.block { padding: 104px 0; }
.block-tight { padding: 84px 0; }
.flush-top { padding-top: 0; }

/* Left-aligned grids inside .center wrappers */
.steps, .security-grid, .quotes, .faq-list { text-align: left; }

.heritage .section-lede { margin-bottom: 18px; }
.heritage p { color: var(--text-secondary); }

.footer-bottom.plain { border-top: none; padding-top: 0; }

/* ---------- Feature (section) cards ---------- */

.cards-8 {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: inset 0 1px 0 rgba(245, 240, 232, 0.05);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(201, 168, 76, 0.09);
  border: 1px solid rgba(201, 168, 76, 0.22);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card h3,
.support-grid .card h2 {
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- How it works ---------- */

.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: inset 0 1px 0 rgba(245, 240, 232, 0.05);
}

.step-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--text-secondary); font-size: 15px; }

/* ---------- Split feature rows (sharing / executor) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split + .split { margin-top: 96px; }

.split h2 { font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 16px; }
.split > div > p { color: var(--text-secondary); font-size: 16px; }

.feature-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 14px;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 15px;
}
.feature-list li svg { flex: none; margin-top: 3px; }
.feature-list li strong { color: var(--text); font-weight: 600; }

/* Illustration panels used in split rows */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(245, 240, 232, 0.06), 0 24px 60px rgba(0, 0, 0, 0.4);
}

.panel-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.viewer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.viewer-row:last-child { border-bottom: none; }

.avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--gold-light);
}

.viewer-row .who { flex: 1; min-width: 0; }
.viewer-row .who strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.viewer-row .who span { font-size: 12.5px; color: var(--text-secondary); }

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-gold { color: var(--gold-light); background: rgba(201, 168, 76, 0.12); border: 1px solid rgba(201, 168, 76, 0.3); }
.tag-dim { color: var(--text-secondary); background: var(--bg-tertiary); border: 1px solid var(--border-light); }
.tag-green { color: var(--success); background: rgba(76, 175, 125, 0.1); border: 1px solid rgba(76, 175, 125, 0.3); }

.check-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}
.check-row:last-child { border-bottom: none; }
.check-row.done { color: var(--text-muted); }
.checkbox {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  border: 1.5px solid var(--border-light);
  display: grid;
  place-items: center;
}
.checkbox.checked { background: var(--gold); border-color: var(--gold); }

/* ---------- Security ---------- */

.security { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.security-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.security-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.security-item h3 { font-size: 19px; margin: 14px 0 8px; }
.security-item p { font-size: 15px; color: var(--text-secondary); }

/* ---------- Binder heritage ---------- */

.heritage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.binder-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.binder {
  width: 280px;
  height: 360px;
  border-radius: 10px 18px 18px 10px;
  background: linear-gradient(150deg, #262320, #17150f);
  border: 1px solid var(--border-light);
  border-left: 14px solid #2E2A22;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 32px;
}

.binder-plate {
  border: 1px solid var(--gold-dark);
  border-radius: 6px;
  padding: 26px 20px;
  text-align: center;
  width: 100%;
}
.binder-plate small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.binder-plate span {
  font-family: var(--seal);
  font-size: 24px;
  line-height: 1.3;
  color: var(--gold-light);
  display: block;
}

/* ---------- Testimonials ---------- */

.quotes {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: inset 0 1px 0 rgba(245, 240, 232, 0.05);
}

.quote .stars { display: flex; gap: 3px; }

.quote blockquote {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
}

.quote figcaption {
  font-size: 13px;
  color: var(--text-secondary);
}
.quote figcaption strong { color: var(--text); font-weight: 600; display: block; }

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-list details[open] { border-color: var(--gold-dark); }
.faq-list details:not([open]):hover { border-color: var(--gold-dark); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  content: "+" / ""; /* alt-text syntax: decorative, hidden from screen readers */
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list .answer {
  padding: 0 24px 22px;
  max-width: 62ch;
  color: var(--text-secondary);
  font-size: 15px;
}
.faq-list .answer a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Final CTA ---------- */

.final-cta {
  position: relative;
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  bottom: -360px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(201, 168, 76, 0.14), transparent 70%);
  pointer-events: none;
}
.final-cta h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  max-width: 640px;
  margin: 0 auto 20px;
}
.final-cta p {
  color: var(--text-secondary);
  font-size: 19px;
  max-width: 540px;
  margin: 0 auto 40px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 56px 0 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
}

.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }

.footer-col h3 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { color: var(--text-secondary); font-size: 14px; display: inline-block; padding: 4px 0; }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom a { display: inline-block; padding: 6px 2px; margin: -6px -2px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Legal / prose pages ---------- */

.page-hero {
  padding: 160px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 12px; }
.page-hero .meta { color: var(--text-muted); font-size: 15px; }

.prose {
  max-width: 760px;
  padding: 56px 0 96px;
}
.prose h2 {
  font-size: 19px;
  margin: 44px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-secondary); margin-bottom: 16px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 15px;
  margin-bottom: 36px;
}

/* Support page cards */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 56px 0 40px;
}
.support-grid .card h3 { margin-bottom: 10px; }
.support-grid .card p { font-size: 15px; }
.support-grid .card a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 150px; }
  .hero-lede { max-width: 620px; }
  .cards-8 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split, .heritage { grid-template-columns: 1fr; gap: 48px; }
  /* When stacked, text always precedes its illustration */
  .split > .panel { order: 2; }
  .heritage .binder-visual { order: 2; }
  .security-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .trust-item { justify-content: flex-start; }
  .nav-links li.hide-mobile { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .block { padding: 72px 0; }
  .block-tight { padding: 60px 0; }
  .cards-8 { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .nav-inner { height: 64px; gap: 12px; padding: 0 16px; }
  .brand { gap: 9px; }
  .brand svg { width: 28px; height: 28px; }
  .brand-name { font-size: 16px; }
  .nav-links { gap: 12px; }
  .nav-cta { padding: 9px 16px; font-size: 13px; }
  .hero { padding-top: 128px; }
  .hero-ctas .btn, .hero-ctas .store-pill { width: 100%; justify-content: center; }
  .footer-cols { gap: 40px; }
}

/* 320px-class devices: keep the brand + CTA on one uncut line */
@media (max-width: 400px) {
  .nav-inner { padding: 0 12px; gap: 8px; }
  .brand { gap: 7px; }
  .brand svg { width: 24px; height: 24px; }
  .brand-name { font-size: 14px; }
  .nav-links { gap: 8px; }
  .nav-cta { padding: 8px 13px; font-size: 12.5px; }
}

/* ---------- Print (legal pages especially) ---------- */

@media print {
  :root {
    --bg: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f2f0ec;
    --surface: #ffffff;
    --gold: #8a6d1f;
    --gold-light: #8a6d1f;
    --gold-dark: #6e5619;
    --text: #111111;
    --text-secondary: #333333;
    --text-muted: #555555;
    --border: #cccccc;
    --border-light: #bbbbbb;
  }
  html { scroll-behavior: auto; }
  body { background: #ffffff; }
  .nav, .hero-ctas, .store-pill, .btn, .final-cta,
  .phone-wrap, .binder-visual, footer { display: none; }
  .hero, .page-hero { padding: 24px 0; }
  .page-hero { border-bottom: 1px solid #cccccc; }
  a { color: #111111; text-decoration: underline; }
  .prose { padding: 24px 0; }
  .prose .note { background: #f5f4f0; }
  .card, .quote, .step, .security-item, .faq-list details { border-color: #cccccc; }
}
