/* Palette comes from the logo: navy tile, gold coin, and the blue of "Fund" in the wordmark.
   Gold is for fills and marks (it is too light for text on white); --gold-ink is the gold for text. */
:root {
  --navy: #0b1b33;
  --navy-2: #16294a;
  --navy-3: #243a61;
  --on-navy: #ffffff;
  --on-navy-2: #c4cede;
  --on-navy-3: #9aa7bd;
  --gold: #e8b64c;
  --gold-hover: #f0c66d;
  --gold-ink: #8a5d0c;
  --gold-tint: #fbf1da;
  --gold-line: #efd9a6;
  --blue: #1f4fbf;
  --blue-dark: #15367f;
  --blue-tint: #e8eefb;
  --blue-line: #cdd9f3;
  --ink: #0b1b33;
  --ink-2: #2c3a52;
  --muted: #5b6578;
  --paper: #faf8f3;
  --paper-2: #f3f0e8;
  --card: #ffffff;
  --line: #e4e0d6;
  --amber: #8f5b08;
  --amber-tint: #fcf0dc;
  --red: #b4412f;
  --red-tint: #f8e4df;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 27, 51, 0.05), 0 10px 30px rgba(11, 27, 51, 0.07);
  --shadow-lg: 0 2px 4px rgba(11, 27, 51, 0.08), 0 30px 60px rgba(3, 10, 24, 0.35);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  /* Short pages (upload, sign, 404) keep the navy footer at the bottom of the screen. */
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; font-weight: 750; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 650 1rem/1 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 1px 2px rgba(11, 27, 51, 0.2); }
.btn-primary:hover { background: var(--navy-3); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 16px rgba(232, 182, 76, 0.25); }
.btn-gold:hover { background: var(--gold-hover); color: var(--navy); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* On navy: the main action turns gold, the secondary one turns outline-white. */
.hero .btn-primary, .cta-band .btn-primary, .calc-results .btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 22px rgba(232, 182, 76, 0.22); }
.hero .btn-primary:hover, .cta-band .btn-primary:hover, .calc-results .btn-primary:hover { background: var(--gold-hover); color: var(--navy); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.06); }
.hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .calc-results :focus-visible { outline-color: var(--gold); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 243, 0.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); text-decoration: none; font-size: 1.1rem; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; }
.brand em { font-style: normal; color: var(--blue); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 550; position: relative; }
.nav a:not(.btn):not(.nav-phone)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.15s; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):not(.nav-phone):hover::after { transform: scaleX(1); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 560px) { section { padding: 52px 0; } .hero { padding: 36px 0 48px; } .cta-band { padding: 32px 22px; } .compare { padding: 16px; } body .eyebrow { border-radius: 12px; font-size: 0.8rem; } }

.nav-phone { font-weight: 700; color: var(--ink) !important; white-space: nowrap; cursor: pointer; }
.call-line { margin: 20px 0 0; color: var(--ink-2); }
.call-line a { font-weight: 700; color: var(--blue); cursor: pointer; }
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(250, 248, 243, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 -8px 24px rgba(11, 27, 51, 0.06); }
  body:has(.mobile-cta) { padding-bottom: 76px; }
}

/* Hero (home page): the navy of the logo tile, with the gold coin as the accent. */
.hero {
  position: relative; overflow: hidden; color: var(--on-navy); padding: 76px 0 88px;
  background:
    radial-gradient(720px 420px at 88% 0%, rgba(31, 79, 191, 0.38), transparent 65%),
    radial-gradient(520px 360px at 0% 100%, rgba(232, 182, 76, 0.10), transparent 70%),
    var(--navy);
}
.hero::before {
  content: ""; position: absolute; width: 560px; height: 560px; right: -170px; bottom: -300px; border-radius: 50%;
  border: 1px solid rgba(232, 182, 76, 0.22); box-shadow: 0 0 0 70px rgba(232, 182, 76, 0.035), 0 0 0 140px rgba(232, 182, 76, 0.02);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--gold); }
.hero .lede { color: var(--on-navy-2); }
.hero .ticks { color: var(--on-navy-2); }
.hero .call-line { color: var(--on-navy-2); }
.hero .call-line a { color: var(--gold); }
.hero .call-line a:hover { color: var(--gold-hover); }
.hero .eyebrow { color: #f3d896; background: rgba(232, 182, 76, 0.12); border-color: rgba(232, 182, 76, 0.32); }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--gold-ink); background: var(--gold-tint); border: 1px solid var(--gold-line); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.cta-row.center { justify-content: center; margin: 36px 0 0; }
@media (max-width: 560px) { .cta-row .btn { flex: 1 1 100%; } }
/* Trust row: each point gets a small gold coin with a check. */
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-size: 0.95rem; color: var(--ink-2); }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks li::before, .ticks-list li::before {
  content: "✓"; display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-size: 0.72rem; font-weight: 900; line-height: 1;
}
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 44px; } }

/* Compare card */
.compare { background: var(--card); color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 24px; display: grid; gap: 14px; margin: 0; }
.compare-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 750; }
.panel { border-radius: 14px; padding: 16px 18px; border: 1px solid var(--line); }
.panel-bank { background: #f6f5f1; }
.panel-us { background: var(--blue-tint); border-color: var(--blue-line); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
.panel-title { font-weight: 750; font-size: 0.95rem; white-space: nowrap; }
.score { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--muted); }
.stamp { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.stamp-no { color: var(--red); background: var(--red-tint); }
.stamp-yes { color: var(--gold-ink); background: var(--gold-tint); border: 1px solid var(--gold-line); }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; height: 100px; margin: 10px 0 6px; }
.bar { background: linear-gradient(180deg, var(--navy-3), var(--navy)); border-radius: 7px 7px 2px 2px; position: relative; }
.bar::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--blue-tint); }
.bar span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 0.75rem; color: var(--ink-2); }
.bar-1 { height: 92%; } .bar-2 { height: 70%; } .bar-3 { height: 78%; } .bar-4 { height: 60%; }
.avg { margin-top: 30px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.avg b { font-size: 1.5rem; letter-spacing: -0.02em; color: var(--navy); }
.example-note { font-size: 0.75rem; color: var(--muted); margin: 0; }

/* Sections */
section { padding: 80px 0; scroll-margin-top: 76px; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero + .section-alt { border-top: 0; }
.section-head { max-width: 660px; margin-bottom: 36px; }
.section-head::before, .faq > h2::before, #faq h2::before {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; margin-bottom: 18px;
  background: linear-gradient(90deg, var(--gold) 0 70%, var(--navy) 70% 100%);
}
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(11, 27, 51, 0.04); }
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.45em; }
.stat { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.025em; color: var(--navy); margin-bottom: 6px; line-height: 1.2; }
.stat::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 850; font-size: 1.05rem; margin-bottom: 16px; box-shadow: inset 0 -3px 0 rgba(11, 27, 51, 0.12), 0 0 0 5px var(--gold-tint); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { background: var(--card); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; font-size: 0.95rem; font-weight: 550; transition: border-color 0.15s, box-shadow 0.15s; }

/* Track record: icons sit in a navy tile, like the logo. */
.track-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 10px; transition: border-color 0.15s; }
.faq details[open] { border-color: #d6d0c2; box-shadow: 0 1px 2px rgba(11, 27, 51, 0.04); }
.faq summary { cursor: pointer; font-weight: 700; padding: 19px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-ink); font-size: 1.1rem; line-height: 1; font-weight: 700; }
.faq details[open] summary::after { content: "–"; background: var(--navy); color: var(--gold); }
.faq details > div { padding-bottom: 20px; color: var(--ink-2); }

/* CTA band: navy, with the logo's cup and coin drawn large in gold. */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(600px 300px at 100% 0%, rgba(31, 79, 191, 0.4), transparent 70%), var(--navy);
  color: #fff; border-radius: 28px; padding: 48px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.cta-band::before { width: 320px; height: 320px; right: -110px; top: -190px; border: 1px solid rgba(232, 182, 76, 0.3); box-shadow: 0 0 0 46px rgba(232, 182, 76, 0.05), 0 0 0 92px rgba(232, 182, 76, 0.025); }
.cta-band::after { width: 18px; height: 18px; right: 150px; top: 18px; background: var(--gold); box-shadow: 0 0 0 6px rgba(232, 182, 76, 0.18); }
.cta-band > div { max-width: 640px; }
.cta-band h2 { margin: 0; color: #fff; }
.cta-band p { margin: 8px 0 0; color: var(--on-navy-2); }
.cta-band a:not(.btn) { color: var(--gold); }
@media (max-width: 560px) { .cta-band::after { display: none; } .cta-band .btn { flex: 1 1 100%; } }

/* Footer: navy, with the reversed mark. */
.site-footer { padding: 56px 0 44px; background: var(--navy); color: var(--on-navy-2); font-size: 0.92rem; }
.site-footer a { color: #fff; text-decoration: none; cursor: pointer; }
.site-footer a:hover { color: var(--gold); }
.site-footer strong { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.site-footer strong::before { content: ""; width: 32px; height: 32px; flex: none; background: url("/mark-reverse.svg") center / contain no-repeat; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--navy-3); }
.footer-links a { color: var(--on-navy-2); font-weight: 550; }
.site-footer .muted { color: var(--on-navy-2); }
.disclaimer { font-size: 0.8rem; line-height: 1.6; color: var(--on-navy-3); margin: 0; }

/* Chat */
dialog.chat { width: min(440px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 24px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 64px rgba(11, 27, 51, 0.25); background: var(--card); color: var(--ink); }
dialog.chat[open] { display: flex; flex-direction: column; }
dialog.chat::backdrop { background: rgba(11, 27, 51, 0.5); }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--navy); color: #fff; border-radius: 19px 19px 0 0; }
.chat-head strong { display: block; }
.chat-head .small { color: var(--on-navy-2); }
.chat-head .icon-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--ink-2); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 0.97rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-bot { background: #f1efe9; border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-typing { display: inline-flex; gap: 4px; align-items: center; padding: 14px 16px; }
.msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite ease-in-out; }
.msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.msg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .msg-typing span { animation: none; } .btn, .card-link, .nav a::after { transition: none; } }
.chat-starters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { border: 1px solid var(--blue-line); background: var(--blue-tint); color: var(--blue-dark); border-radius: 999px; padding: 8px 14px; font: 600 0.88rem var(--font); cursor: pointer; }
.chip-btn:hover { background: #dbe5f8; }
.msg-action { align-self: flex-start; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }
.chat-foot { padding: 0 16px 12px; font-size: 0.75rem; color: var(--muted); }

/* Forms */
label { display: block; font-weight: 650; font-size: 0.95rem; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid #cfcabd; border-radius: 10px; padding: 11px 12px; min-height: 48px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 96px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #b9b3a4; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 79, 191, 0.18); }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--navy); box-shadow: none; }
fieldset { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 24px; margin: 0 0 18px; box-shadow: 0 1px 2px rgba(11, 27, 51, 0.04); }
legend { font-weight: 800; font-size: 1.1rem; padding: 0 8px; letter-spacing: -0.01em; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 0.92rem; color: var(--ink-2); margin-bottom: 14px; }
.notice { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: 0.95rem; }
.notice-info { background: var(--blue-tint); border: 1px solid var(--blue-line); }
.notice-warn { background: var(--amber-tint); border: 1px solid #f1d6a8; }
.notice-error { background: var(--red-tint); border: 1px solid #efc3b9; color: #6d2418; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 0.9rem; color: var(--ink-2); }
.file-list li::before { content: "📄 "; }
.page-head { padding: 52px 0 16px; }
.page-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
.success { text-align: center; padding: 48px 22px; }
.success .big-check { width: 68px; height: 68px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin: 0 auto 18px; box-shadow: 0 0 0 6px var(--gold-tint); }

/* Legal pages */
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal li { margin-bottom: 0.4em; }

/* Admin sign-in (served before the admin stylesheet is reachable) */
.login-title { font-size: 1.4rem; }
.login-btn { margin-top: 16px; }
.login-field { margin-top: 14px; }
.login-error { margin: 12px 0 0; }

/* E-signature */
@font-face { font-family: "Dancing Script"; src: url("/fonts/dancing-script-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
.secure-badge { font-size: 0.85rem; color: var(--navy); font-weight: 700; white-space: nowrap; }
.sign-main { padding-bottom: 40px; }
.sign-step { margin-bottom: 18px; }
.sign-step h2 { font-size: 1.35rem; }
.step-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.ersd { border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin: 14px 0 18px; max-height: 340px; overflow: auto; background: #fbfaf7; }
.ersd summary { cursor: pointer; font-weight: 650; padding: 12px 0; }
.ersd h3 { font-size: 0.95rem; margin: 12px 0 4px; }
.ersd p { font-size: 0.9rem; color: var(--ink-2); }
.doc-frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #e9e6df; margin: 6px 0 8px; }
.doc-frame iframe { width: 100%; height: min(70vh, 660px); border: 0; display: block; }
.adopt-title { margin-top: 28px; }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 12px; background: #fff; }
.tab { border: 0; background: transparent; padding: 8px 20px; border-radius: 999px; font: 600 0.95rem var(--font); cursor: pointer; color: var(--ink-2); }
.tab.on { background: var(--navy); color: #fff; }
.sig-pad-wrap, .sig-preview-wrap { position: relative; border: 1.5px dashed #b9b3a4; border-radius: 12px; background: #fff; margin: 0 0 10px; }
.sig-pad { width: 100%; height: 170px; display: block; touch-action: none; cursor: crosshair; }
.sig-hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; font-size: 0.95rem; }
.sig-preview { width: 100%; height: auto; aspect-ratio: 5 / 1; display: block; }
#pane-type input { margin-bottom: 10px; }
.legal-line { margin-top: 18px; }
.btn-wide { width: 100%; }
.decline { margin-top: 18px; }
.decline summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.decline textarea { margin: 8px 0; }
.sign-cta { margin-top: 18px; }

/* Generated SEO pages */
.page-hero { position: relative; overflow: hidden; padding: 48px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -150px; top: -190px; border-radius: 50%;
  border: 1px solid var(--gold-line); box-shadow: 0 0 0 56px rgba(232, 182, 76, 0.06); pointer-events: none;
}
.page-hero > .wrap { position: relative; }
@media (max-width: 640px) { .page-hero::before { width: 220px; height: 220px; right: -120px; top: -120px; box-shadow: 0 0 0 30px rgba(232, 182, 76, 0.05); } }
.page-hero h1 { font-size: clamp(1.95rem, 4.4vw, 3rem); }
.page-hero + .section-alt { border-top: 0; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.ticks-list { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks-list li { padding: 5px 0 5px 32px; position: relative; }
.ticks-list li::before { position: absolute; left: 0; top: 8px; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.card-link:hover { color: inherit; border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-more { color: var(--blue); font-weight: 700; font-size: 0.92rem; }
.guide-card { margin-bottom: 12px; }
.center-note { text-align: center; margin-top: 24px; }
.guide-note { margin-top: 28px; }
.cta-phone { color: var(--gold); font-weight: 700; cursor: pointer; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; align-items: start; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs label { margin-top: 12px; }
.calc-inputs label:first-child { margin-top: 0; }
.calc-results { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow); }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.calc-row strong { font-size: 1.15rem; }
.calc-results .muted { color: var(--on-navy-2); }
.calc-results a:not(.btn) { color: var(--gold); }
.calc-results .btn { margin-top: 14px; }
.chips a { color: inherit; text-decoration: none; }
.chips li:has(a):hover { border-color: var(--navy); box-shadow: 0 2px 8px rgba(11, 27, 51, 0.06); }

/* Tap targets: at least 24px (WCAG 2.2) */
.footer-links a, .crumbs a { display: inline-block; padding: 4px 0; min-height: 24px; }
input[type="checkbox"] { width: 22px; height: 22px; }

/* Upload-later page */
.upload-card { display: grid; gap: 14px; }
.upload-card > p { margin: 0; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 18px; border: 2px dashed #d6d0c2; border-radius: var(--radius); background: var(--paper); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.dropzone:hover, .dropzone:focus-within, .dropzone.dragging { border-color: var(--blue); background: var(--blue-tint); }
.dropzone-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-size: 1.3rem; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-card .btn { justify-self: start; }

/* Phones: the header carries the brand, Log in and Apply on one line. */
.btn { white-space: nowrap; }
@media (max-width: 480px) {
  .site-header .nav { gap: 8px; }
  .site-header .nav .btn-sm { min-height: 36px; padding: 0 12px; font-size: 0.86rem; }
  .brand { font-size: 0.98rem; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
}
@media (max-width: 360px) {
  .brand span { display: none; }
}
