:root {
  --navy: #1b2a5e;
  --navy-deep: #111c44;
  --teal: #3f8f95;
  --teal-dark: #2f767b;
  --teal-soft: #e3f1f2;
  --gold: #bf9f4a;
  --gold-soft: #f6efdc;
  --red: #d9534f;
  --ink: #18213d;
  --muted: #5d6680;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-alt: #f1f4f7;
  --radius: 20px;
  --max: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); }
h1, h2, h3 { font-family: "Outfit", "Inter", sans-serif; letter-spacing: -.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(24,33,61,.3); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-deep); }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; }
.brand em { font-style: normal; color: var(--teal); }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }

.btn { display: inline-block; padding: 13px 24px; border-radius: 12px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; border: 0; transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(27,42,94,.6); }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: var(--teal-dark); box-shadow: 0 10px 22px -10px rgba(63,143,149,.6); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: #eef1f8; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #fff; box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.75); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.nav .btn { padding: 9px 18px; color: #fff; }

/* Hero */
.hero { padding: 76px 0 88px; background: linear-gradient(180deg, #f6f8fa 0%, #eaf0f4 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 12px; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.06; margin: 18px 0; color: var(--navy-deep); }
h1 .accent { color: var(--teal); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.store-note { margin-top: 16px; font-size: .9rem; color: var(--muted); }

/* Hero lookup card (illustration) */
.lookup { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: 0 40px 80px -42px rgba(17,28,68,.45); max-width: 430px; margin-left: auto; }
.lookup-search { display: flex; align-items: center; gap: 10px; background: var(--bg-alt); border-radius: 999px; padding: 11px 16px; color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.lookup-search svg { width: 18px; height: 18px; flex: 0 0 auto; }
.result-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.result-head .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #c9d4e8, #8fa2c8); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: "Outfit", sans-serif; }
.result-head b { display: block; font-family: "Outfit", sans-serif; font-size: 1.08rem; }
.result-head small { color: var(--muted); }
.result-head .risk { margin-left: auto; font-size: .72rem; font-weight: 700; color: #a3302c; background: #fbe7e6; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.result-rows { background: var(--bg-alt); border-radius: 14px; padding: 6px 14px; }
.result-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #d7dde6; font-size: .9rem; }
.result-rows div:last-child { border-bottom: 0; }
.result-rows span { color: var(--muted); }
.flags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.flag { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 10px; color: #fff; }
.flag.red { background: var(--red); }
.flag.sage { background: #6f9688; }
.flag.gold { background: var(--gold); }
.lookup-note { margin-top: 14px; font-size: .78rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.lookup-note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: var(--teal); }

/* Action tiles (mirrors the app's home tiles) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { border-radius: 18px; padding: 28px; color: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(17,28,68,.55); }
.tile.navy { background: var(--navy); }
.tile.teal { background: var(--teal); }
.tile.gold { background: var(--gold); }
.tile svg { width: 40px; height: 40px; margin-bottom: 16px; }
.tile h3 { margin: 0 0 6px; font-size: 1.3rem; }
.tile p { margin: 0; color: rgba(255,255,255,.88); font-size: .95rem; }

/* Sections */
section { padding: 88px 0; }
.alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; margin: 6px 0 12px; color: var(--navy-deep); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: "Outfit", sans-serif; }
.step h3 { margin: 0 0 6px; font-size: 1.25rem; }
.step p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(17,28,68,.35); }
.icon { width: 46px; height: 46px; border-radius: 12px; background: #e8ecf6; color: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.icon.t { background: var(--teal-soft); color: var(--teal-dark); }
.icon.g { background: var(--gold-soft); color: #8a6f27; }
.icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Reciprocity split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; margin-bottom: 14px; }
.checklist svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.checklist b { display: block; }
.checklist span { color: var(--muted); }
.access { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 30px 60px -40px rgba(17,28,68,.45); }
.access-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; }
.access-row + .access-row { margin-top: 10px; }
.access-row.yes { background: var(--teal-soft); }
.access-row.no { background: var(--bg-alt); }
.access-row .badge { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.access-row.yes .badge { background: var(--teal); }
.access-row.no .badge { background: #9aa3b8; }
.access-row .badge svg { width: 20px; height: 20px; }
.access-row b { display: block; font-family: "Outfit", sans-serif; }
.access-row small { color: var(--muted); }

/* Impact stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; gap: 16px; align-items: flex-start; }
.stat svg { width: 30px; height: 30px; color: #9aa3b8; flex: 0 0 auto; }
.stat b { display: block; font-family: "Outfit", sans-serif; font-size: 1.15rem; }
.stat span { color: var(--muted); font-size: .92rem; }

.trades { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.trades span { background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500; }

/* Trust band */
.trust { background: var(--navy-deep); color: #d6dcef; }
.trust h2 { color: #fff; }
.trust .section-head p { color: #a3add0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 44px; }
.trust-grid div { display: flex; gap: 14px; }
.trust-grid svg { flex: 0 0 24px; width: 24px; height: 24px; color: #e3c674; margin-top: 2px; }
.trust-grid p { margin: 0; }
.trust-grid b { color: #fff; }

/* CTA */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, #24508a 55%, var(--teal) 100%); color: #fff; text-align: center; border-radius: 26px; padding: 64px 28px; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-band .cta-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Content pages */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2.1rem, 4vw, 2.7rem); margin-top: 0; }
.doc h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.doc p, .doc li { color: #3c4560; }
.callout { background: var(--teal-soft); border: 1px solid #cfe4e6; border-radius: 14px; padding: 18px 20px; margin: 24px 0; }
.callout p { margin: 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; }

/* Motion */
.js .hero-in { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s var(--ease); }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > *:nth-child(2) { transition-delay: .08s, .08s, 0s; }
.js .stagger.in > *:nth-child(3) { transition-delay: .16s, .16s, 0s; }
.js .stagger.in > *:nth-child(4) { transition-delay: .24s, .24s, 0s; }
.js .stagger.in > *:nth-child(5) { transition-delay: .32s, .32s, 0s; }
.js .stagger.in > *:nth-child(6) { transition-delay: .40s, .40s, 0s; }
.js .stagger.in > *:hover { transform: translateY(-4px); transition-delay: 0s; }
.js .page-in { animation: rise .7s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-in, .js .reveal, .js .stagger > *, .js .page-in { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .lookup { margin: 0 auto; }
  .features, .stats { grid-template-columns: 1fr 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 44px 0 64px; }
  .tiles, .features, .steps, .stats, .trust-grid { grid-template-columns: 1fr; }
  .brand span { font-size: 1.3rem; }
  .cta-band { border-radius: 20px; padding: 48px 20px; }
}
