/* Self-hosted fonts (SIL Open Font License): Fraunces and Inter, Latin subset, variable weight. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600 650; font-display: swap; src: url("/assets/fonts/fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }

:root {
  --navy: #0f2340;
  --navy-2: #1c3a66;
  --ink: #16202e;
  --muted: #5a6677;
  --line: #e4ddd0;
  --cream: #faf7f1;
  --paper: #ffffff;
  --gold: #f0a53a;
  --gold-2: #d9722b;
  --grad: linear-gradient(120deg, #ffd76a 0%, #f0a53a 45%, #e0662b 100%);
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(15, 35, 64, .35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 650; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a24d17; margin-bottom: .6em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }
:root { --control-line: #8a8f99; }
/* Two-tone focus ring: navy on light surfaces, gold on dark ones (WCAG 2.2 focus visibility). */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.hero :focus-visible, .about :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible { outline-color: var(--gold); box-shadow: none; }
.quiz :focus-visible { outline-color: var(--navy); box-shadow: 0 0 0 5px #fff; }
.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; }
html { scroll-padding-top: 88px; }
[id], .quiz { scroll-margin-top: 88px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 999px; padding: .85em 1.5em; font: 600 1rem var(--sans); cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn-primary { background: var(--grad); color: #1d1206; box-shadow: 0 10px 24px -10px rgba(224, 102, 43, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(224, 102, 43, .8); }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn-link { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 241, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 38px; height: 43px; }
.brand-name { font-family: var(--serif); font-weight: 650; font-size: 1.2rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--gold-2); }
.nav .btn { padding: .6em 1.2em; font-size: .92rem; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15, 35, 64, .96) 30%, rgba(15, 35, 64, .55) 75%, rgba(15, 35, 64, .35)); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; bottom: -260px; border-radius: 50%; background: var(--grad); filter: blur(90px); opacity: .45; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero .lede { color: #d6deea; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: #e8edf5; }
.hero-points li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--grad) ; -webkit-mask: radial-gradient(circle, #000 0 4px, transparent 5px), linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hero-slant { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; z-index: 1; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; gap: 32px; } }

/* Questionnaire card */
.quiz { background: var(--paper); color: var(--ink); border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); padding: 28px; position: relative; min-height: 440px; display: flex; flex-direction: column; }
.quiz::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 22px 22px 0 0; background: var(--grad); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.quiz-section { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a24d17; }
.hero .eyebrow, .about .eyebrow, .page-hero .eyebrow { color: var(--gold-2); }
.progress { height: 6px; background: #f0ebe1; border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .35s ease; }
.quiz h2 { font-size: 1.45rem; margin-bottom: .35em; }
.quiz .helper { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.options { display: grid; gap: 10px; }
.opt { text-align: left; background: #fbfaf7; border: 1.5px solid var(--control-line); border-radius: 14px; padding: 14px 16px; font: 500 1rem var(--sans); color: var(--ink); cursor: pointer; display: flex; gap: 12px; align-items: center; transition: border-color .15s, background .15s, transform .1s; }
.opt:hover { border-color: var(--gold); background: #fff8ec; }
.opt:active { transform: scale(.99); }
.opt[aria-pressed="true"] { border-color: var(--gold-2); background: #fff3e0; }
.opt .k { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.quiz-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; }
.quiz-foot .btn-link:disabled { visibility: hidden; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
label.f { display: grid; gap: 4px; font-size: .86rem; font-weight: 600; color: var(--navy); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: 400 1rem var(--sans); padding: 11px 13px; border: 1.5px solid var(--control-line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); box-shadow: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.field-err { color: #b3261e; font-size: .82rem; font-weight: 600; }
.opt[aria-pressed="true"]::after { content: "✓ Selected"; margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--navy); }
textarea { min-height: 90px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 1px; width: 24px; height: 24px; flex: none; accent-color: var(--gold-2); }
.fine { font-size: .76rem; color: var(--muted); line-height: 1.45; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: .9rem; margin-top: 8px; }
.form-msg.err { color: #b3261e; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .quiz { padding: 22px 18px; } }

/* Results */
.result-list { display: grid; gap: 10px; margin: 14px 0; }
.result-item { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.result-item strong { color: var(--navy); }
.result-item p { margin: 4px 0 0; font-size: .92rem; color: var(--muted); }

/* Sections */
section.block { padding: 88px 0; }
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.trust div { font-weight: 600; color: var(--navy); font-size: .95rem; display: flex; gap: 10px; align-items: center; }
.trust svg { flex: none; }
@media (max-width: 820px) { .trust .wrap { grid-template-columns: 1fr 1fr; } }

.spectrum { margin-top: 40px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.spectrum-bar { height: 12px; border-radius: 99px; background: linear-gradient(90deg, #e0662b, #f0a53a 40%, #6d8fbf 75%, #1c3a66); margin: 18px 0 8px; }
.spectrum-ends { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.card .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; margin-bottom: 12px; }
.tag.now { background: #fde7d6; color: #9a3f10; }
.tag.mid { background: #fff1d1; color: #7a5200; }
.tag.later { background: #dfe7f3; color: #1c3a66; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card .fit { margin-top: 12px; font-size: .86rem; color: var(--ink); }
@media (max-width: 920px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; margin-top: 30px; }
.step { counter-increment: s; padding-top: 58px; position: relative; }
.step::before { content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 14px; background: var(--navy); color: #fff; font: 700 1.1rem var(--serif); display: grid; place-items: center; box-shadow: 6px 6px 0 var(--gold); }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.about { background: var(--navy); color: #dfe6f0; position: relative; overflow: hidden; }
.about h2 { color: #fff; }
.about::before { content: ""; position: absolute; width: 440px; height: 440px; left: -160px; top: -180px; border-radius: 42% 58% 60% 40%; background: var(--grad); opacity: .18; filter: blur(10px); }
.about .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-photo { border-radius: 26px 26px 26px 120px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about .partner { margin-top: 24px; padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.about .partner h3 { color: #fff; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; } }

.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--gold-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.cta-band { background: var(--grad); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #1d1206; }
.cta-band p { color: #3d2410; margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-band .btn-dark { background: var(--navy); color: #fff; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 30px 22px; } .cta-band .actions { justify-content: flex-start; } }

.help-lines { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 14px; margin-top: 22px; }

/* Footer */
.site-footer { background: #0a1830; color: #9fb0c8; font-size: .88rem; padding: 50px 0 30px; margin-top: 88px; }
.site-footer a { color: #d6deea; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h2 { font-family: var(--sans); color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-sub { color: #9fb0c8; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 30px; padding-top: 18px; font-size: .78rem; line-height: 1.55; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Inner pages */
.page-hero { background: var(--navy); color: #fff; padding: 60px 0 50px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: var(--grad); filter: blur(80px); opacity: .4; }
.prose { max-width: 760px; padding: 50px 20px 0; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose li { margin: 6px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; padding-top: 50px; }
.contact-card h2 { font-size: 1.2rem; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.quiz-foot .btn-link { min-height: 44px; padding: 10px 4px; }
.btn[aria-disabled="true"] { opacity: .7; cursor: progress; }
.terms-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; background: var(--paper); }
.terms-table th, .terms-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.terms-table th { width: 55%; color: var(--navy); background: var(--cream); font-weight: 600; }
.prose .cta-band h2 { margin-top: 0; font-size: 1.5rem; }
