/* Family Saver — shared design system
   Palette: deep trust-blue + warm marigold accent on cool paper, not the
   cream/terracotta/serif default. Fraunces for warmth in headlines, Inter
   for everything that needs to be read quickly under stress. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #12203A;
  --muted: #5B6B85;
  --trust: #1B4D8F;
  --trust-deep: #0F3566;
  --warmth: #E8973C;
  --warmth-deep: #C97A22;
  --paper: #F6F8FB;
  --card: #FFFFFF;
  --line: #E1E6EE;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18,32,58,0.04), 0 8px 24px -12px rgba(18,32,58,0.12);
  --max: 1120px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: var(--trust); text-decoration: none; }
a:hover { color: var(--trust-deep); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--warmth);
  outline-offset: 3px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,248,251,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 19px; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--trust); color: #fff !important; padding: 10px 20px;
  border-radius: 999px; font-weight: 600; font-size: 14px;
}
.nav-cta:hover { background: var(--trust-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--trust); color: #fff; }
.btn-primary:hover { background: var(--trust-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--trust); color: var(--trust); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--warmth-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--warmth); }
.hero h1 { font-size: 52px; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--trust); }
.hero p.lede { font-size: 19px; color: var(--muted); margin: 22px 0 32px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Signature visual: family members held around a shield */
.hero-art { position: relative; aspect-ratio: 1 / 1; }
.hero-art svg { width: 100%; height: 100%; }
.thread { stroke: var(--line); stroke-width: 2; fill: none; }
.node-ring { fill: var(--card); stroke: var(--trust); stroke-width: 2; }
.node-dot { fill: var(--trust); }
.node-dot.warm { fill: var(--warmth); }
.shield-fill { fill: var(--trust); }
.shield-glow { fill: var(--warmth); opacity: 0.16; }
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 3.2s ease-in-out infinite; transform-origin: center; }
  @keyframes pulse { 0%,100% { transform: scale(1); opacity: .16; } 50% { transform: scale(1.12); opacity: .28; } }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: 34px; color: var(--ink); }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--paper);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card h3 { font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; margin: 0; }
.feature-card .tag {
  display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600;
  color: var(--warmth-deep); background: rgba(232,151,60,0.12); padding: 4px 10px; border-radius: 999px;
}

/* How it works — a real sequence, numbers earn their keep here */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  counter-increment: step; font-family: 'Fraunces', serif; font-size: 26px; color: var(--trust);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 18px; margin-bottom: 6px; color: var(--ink); }
.step p { color: var(--muted); margin: 0; font-size: 15px; max-width: 60ch; }

/* CTA band */
.cta-band {
  background: var(--trust); border-radius: 24px; padding: 56px; text-align: center; margin: 0 24px;
  max-width: calc(var(--max) - 48px); margin-left: auto; margin-right: auto;
}
.cta-band h2 { color: #fff; font-size: 32px; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 14px 0 30px; font-size: 16px; }
.cta-band .btn-primary { background: #fff; color: var(--trust-deep); }
.cta-band .btn-primary:hover { background: var(--paper); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.footer-note { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 56px 0 24px; border-bottom: 1px solid var(--line); }
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-hero h1 { font-size: 38px; }
.legal-hero .updated { color: var(--muted); font-size: 14px; margin-top: 12px; }
.legal-body { padding: 48px 0 80px; max-width: 760px; }
.legal-body h2 { font-size: 22px; color: var(--ink); margin: 40px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 16px; margin: 0 0 14px; }
.legal-body ul { padding-left: 22px; }
.legal-body strong { color: var(--ink); }
.legal-callout {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--warmth);
  border-radius: 10px; padding: 18px 20px; margin: 28px 0; font-size: 15px; color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; margin: 0 auto; }
  .hero h1 { font-size: 38px; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; margin: 0 16px; }
  .footer-grid { flex-direction: column; }
}
