:root {
  --blue: #173DB8;
  --blue-dark: #112e8c;
  --gold: #C59A3B;
  --ink: #0B163F;
  --ink-soft: #3a4670;
  --white: #fff;
  --bg-soft: #F4F6FC;
  --line: #dfe4f3;
  --radius: 14px;
  --header-h: 72px;
  --max: 1160px;
  --shadow: 0 10px 30px rgba(11, 22, 63, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--blue); text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 2px; }
.nav a:hover { color: var(--blue); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 24px; height: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; font-family: inherit; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary[disabled] { opacity: .6; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--bg-soft); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.nav .btn { color: #fff; padding: 0 20px; min-height: 44px; }
.nav .btn:hover { color: #fff; }
.nav .btn-ghost, .nav .btn-ghost:hover { color: var(--blue); }

@media (max-width: 920px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
}

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.hero { padding: clamp(40px, 7vw, 88px) 0; background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.trust { font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.visual { border-radius: 20px; background: linear-gradient(135deg, var(--ink), var(--blue)); color: #fff; box-shadow: var(--shadow); overflow: hidden; }
.visual img { width: 100%; }
.visual-ph { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-weight: 700; opacity: .9; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); margin: 0; }
.card .num { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 14px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-top: 14px; }
.badge-live { background: #e6f4ea; color: #1b6b34; }
.badge-planned { background: #f3efe2; color: #7a5a14; }
.card.planned { background: var(--bg-soft); box-shadow: none; }

.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.story .portrait { border-radius: 20px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-weight: 600; text-align: center; padding: 20px; }
.story .portrait img { width: 100%; height: 100%; object-fit: cover; }
.signature { font-weight: 800; margin: 0; }
.signature + p { color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; gap: 28px; } .story .portrait { max-width: 360px; } }

.steps { counter-reset: s; }
.journey { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.journey div { background: #fff; border: 1px dashed var(--blue); border-radius: 12px; padding: 14px; font-weight: 700; font-size: .92rem; text-align: center; }
@media (max-width: 760px) { .journey { grid-template-columns: 1fr 1fr; } }
.note { color: var(--ink-soft); margin-top: 24px; }

.price-card { max-width: 640px; margin: 0 auto; border: 2px solid var(--blue); border-radius: 20px; padding: clamp(24px, 4vw, 40px); background: #fff; box-shadow: var(--shadow); }
.price { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; color: var(--blue); }
.price small { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); }
.checks li::after { content: ""; position: absolute; left: 6px; top: .55em; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
details.more { margin: 16px 0; border-top: 1px solid var(--line); padding-top: 12px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.price-card .btn { width: 100%; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-items: start; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink); padding: 18px 20px; min-height: 56px; display: flex; justify-content: space-between; gap: 12px; cursor: pointer; align-items: center; }
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--blue); flex: none; }
.faq-q[aria-expanded="true"]::after { content: "\2212"; }
.faq-a { padding: 0 20px 18px; color: var(--ink-soft); }
.faq-a[hidden] { display: none; }

.final-cta { background: var(--blue); color: #fff; text-align: center; padding: clamp(56px, 8vw, 88px) 0; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,.9); max-width: 56ch; margin-left: auto; margin-right: auto; }
.final-cta .cta-row { justify-content: center; }
.final-cta .trust, .page-hero .eyebrow { color: #F2D488; } /* light gold: the brand gold fails contrast on royal blue */

.site-footer { background: var(--blue); color: rgba(255,255,255,.88); padding: 56px 0 28px; border-top: 1px solid rgba(255,255,255,.18); }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h3 { color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: .9rem; }

/* forms */
.form-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field textarea { font: inherit; padding: 13px 14px; min-height: 48px; border: 1.5px solid #b9c2df; border-radius: 10px; color: var(--ink); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(23,61,184,.25); border-color: var(--blue); }
.field.invalid input, .field.invalid textarea { border-color: #c0262d; }
.err { color: #c0262d; font-size: .88rem; min-height: 0; margin: 0; }
.hint { color: var(--ink-soft); font-size: .85rem; margin: 0; }
.error-summary { border: 2px solid #c0262d; background: #fdecee; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }
.error-summary h2 { font-size: 1rem; margin: 0 0 6px; color: #8d1a20; }
.error-summary ul { margin: 0; padding-left: 20px; }
.success { border: 2px solid #1b6b34; background: #e6f4ea; border-radius: 12px; padding: 18px 20px; font-weight: 700; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.progress { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.progress li { flex: 1; text-align: center; font-weight: 700; font-size: .88rem; padding: 10px 6px; border-radius: 10px; background: var(--bg-soft); color: var(--ink-soft); }
.progress li[aria-current="step"] { background: var(--blue); color: #fff; }
.progress li.done { background: #e6f4ea; color: #1b6b34; }
.review { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--bg-soft); margin-bottom: 20px; }
.review dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.review dt { color: var(--ink-soft); } .review dd { margin: 0; font-weight: 700; text-align: right; }
.banner { background: #eef2ff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 700; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.page-hero { background: var(--blue); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.page-hero h1, .page-hero .lead { color: #fff; } .page-hero .lead { opacity: .92; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.direct dt { font-weight: 800; margin-top: 14px; } .direct dd { margin: 2px 0 0; color: var(--ink-soft); }
.doc { max-width: 780px; margin: 0 auto; }
.doc h2 { font-size: 1.3rem; margin-top: 1.8em; }
.doc ul { padding-left: 22px; } .doc li { margin-bottom: 6px; }
.doc .meta { color: var(--ink-soft); font-size: .95rem; }
.center { text-align: center; }
.ph-note { background: #fff8e6; border: 1px solid var(--gold); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }

/* dashboard additions */
body.dash { background: var(--bg-soft); min-height: 100vh; }
.dash-main { padding: 32px 0 64px; }
.dash-main h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px) { .dash-grid { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.15rem; margin-bottom: 14px; }
.panel.full { grid-column: 1 / -1; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 12px; }
.kv dt { color: var(--ink-soft); } .kv dd { margin: 0; font-weight: 700; text-align: right; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 800; background: #e8edff; color: var(--blue-dark); }
.pill.ok { background: #e6f4ea; color: #1b6b34; }
.pill.warn { background: #fff3d6; color: #7a5200; }
.pill.bad { background: #fdecee; color: #8d1a20; }
.notice { border: 2px solid var(--gold); background: #fff8e6; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }
.notice.bad { border-color: #c0262d; background: #fdecee; }
.notice.ok { border-color: #1b6b34; background: #e6f4ea; }
.notice strong { display: block; margin-bottom: 4px; }
.notice .row { margin-top: 12px; }
.btn-danger { background: #fff; color: #8d1a20; border-color: #c0262d; }
.btn-danger:hover { background: #fdecee; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.copy-field { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.copy-field input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1.5px solid #b9c2df; border-radius: 10px; background: var(--bg-soft); }
.table-wrap { overflow-x: auto; }
table.history { width: 100%; border-collapse: collapse; min-width: 520px; }
table.history th, table.history td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.history th { font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.empty { color: var(--ink-soft); }
.hero-empty { text-align: center; padding: 36px 24px; }
dialog { border: 0; border-radius: 16px; padding: 28px; max-width: 480px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(11,22,63,.35); }
dialog::backdrop { background: rgba(11,22,63,.55); }
.user-bar { display: flex; align-items: center; gap: 14px; }
.user-bar .who { color: var(--ink-soft); font-size: .9rem; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--blue); border-bottom: 2px solid var(--blue); }
.auth-card { max-width: 460px; margin: 56px auto; }
.nav .who { color: var(--ink-soft); font-size: .9rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Social sign-in buttons and the "or" divider */
.social-btns { display: grid; gap: 10px; margin: 0 0 6px; }
.social-btn { width: 100%; background: #fff; color: var(--ink, #14233b); border-color: var(--line, #d9e1ee); }
.social-btn:hover { background: var(--bg-soft, #f3f7fd); border-color: var(--blue); }
.social-btn:disabled { opacity: .6; cursor: default; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-soft, #5b6b85); font-size: .85rem; margin: 18px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line, #d9e1ee); }

/* Toast: a short confirmation at the top right, dismisses itself (or on the close button). */
.toast { position: fixed; top: 88px; right: 24px; z-index: 50; display: flex; align-items: flex-start; gap: 14px; width: min(380px, calc(100vw - 32px)); padding: 16px 16px 18px 16px; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 0 0 1px rgba(23, 61, 184, .08), 0 18px 40px -12px rgba(11, 22, 63, .35); overflow: hidden; opacity: 0; transform: translateX(24px) scale(.98); transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.toast.show { opacity: 1; transform: none; }
.toast-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e6f6ec; color: #1f8a4c; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { margin: 0; font-weight: 800; font-size: .98rem; line-height: 1.3; }
.toast-sub { margin: 2px 0 0; font-size: .88rem; line-height: 1.4; color: var(--ink-soft); font-weight: 500; }
.toast-close { flex: none; width: 28px; height: 28px; margin: -4px -4px 0 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.toast-close:hover { background: var(--bg-soft); color: var(--ink); }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #1f8a4c, #4cc17f); transform-origin: left; animation: toast-bar 4.5s linear forwards; }
@keyframes toast-bar { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } .toast-bar { animation: none; display: none; } }
@media (max-width: 640px) { .toast { top: 76px; right: 16px; } }
