/* FinCalcHub homepage — scoped styles (2026-12-03). Loaded only on "/" via $page_css. */
.fh { --cobalt:#2455D9; --cobalt-d:#1B42B0; --navy:#111C35; --emerald:#078557; --emerald-d:#056a45;
      --warm:#FAF7F1; --line:#E6E1D6; --ink:#1F2937; --muted:#4B5563; --amber:#B45309; --amber-bg:#FEF3C7;
      color:var(--ink); }
.fh *, .fh *::before, .fh *::after { box-sizing:border-box; }
.fh-wrap { width:100%; max-width:1180px; margin:0 auto; padding:0 16px; }
@media (min-width:768px){ .fh-wrap{ padding:0 24px; } }
.fh a { color:var(--cobalt); text-underline-offset:3px; }
.fh a:focus-visible, .fh button:focus-visible, .fh select:focus-visible, .fh input:focus-visible, .fh summary:focus-visible {
  outline:3px solid #F59E0B; outline-offset:3px; border-radius:6px; }
.fh h2 { font-size:clamp(1.5rem,1.2rem + 1.4vw,2.15rem); line-height:1.2; font-weight:800; letter-spacing:-0.02em; color:var(--navy); margin:0 0 .75rem; }
.fh h3 { font-size:1.125rem; line-height:1.35; font-weight:700; color:var(--navy); margin:0 0 .5rem; }
.fh p { margin:0 0 1rem; line-height:1.65; }
.fh-eyebrow { display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--emerald); margin-bottom:.6rem; }
.fh-lede { font-size:1.0625rem; color:var(--muted); max-width:62ch; }

/* Buttons */
.fh-btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:48px; padding:.8rem 1.4rem;
  border-radius:12px; font-weight:700; font-size:1rem; text-decoration:none; border:2px solid transparent; cursor:pointer; }
.fh-btn-primary { background:var(--cobalt); color:#fff !important; }
.fh-btn-primary:hover { background:var(--cobalt-d); }
.fh-btn-ghost { background:#fff; color:var(--navy) !important; border-color:#CBD5E1; }
.fh-btn-ghost:hover { border-color:var(--cobalt); color:var(--cobalt) !important; }

/* Hero */
.fh-hero { background:linear-gradient(180deg,#F2F5FF 0%, var(--warm) 100%); border-bottom:1px solid var(--line); padding:32px 0 36px; }
.fh-hero-grid { display:grid; gap:28px; align-items:center; }
@media (min-width:992px){ .fh-hero { padding:56px 0 64px; } .fh-hero-grid { grid-template-columns: 1.02fr 1fr; gap:48px; } }
.fh-hero h1 { font-size:clamp(2rem,1.45rem + 2.6vw,3.35rem); line-height:1.08; letter-spacing:-0.03em; font-weight:800; color:var(--navy); margin:0 0 1rem; }
.fh-hero h1 span { color:var(--cobalt); display:block; }
.fh-hero-intro { font-size:1.125rem; color:var(--muted); max-width:46ch; margin-bottom:1.5rem; }
.fh-cta-row { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:1.25rem; }
.fh-benefits { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px 18px; font-size:.95rem; color:var(--navy); font-weight:600; }
.fh-benefits li { display:flex; align-items:center; gap:8px; }
.fh-benefits li::before { content:""; width:18px; height:18px; flex:0 0 18px; border-radius:50%;
  background:var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.fh-hero-figure { margin:0; border-radius:20px; overflow:hidden; background:#F3EDE2; box-shadow:0 18px 40px -22px rgba(17,28,53,.45); aspect-ratio:16/9; }
.fh-hero-figure img { display:block; width:100%; height:auto; aspect-ratio:16/9; }

/* Finder */
.fh-finder { padding:28px 0 8px; }
.fh-finder-card { background:#fff; border:1px solid var(--line); border-radius:18px; padding:20px; box-shadow:0 10px 30px -20px rgba(17,28,53,.35); }
@media (min-width:768px){ .fh-finder { margin-top:-28px; position:relative; } .fh-finder-card { padding:26px 28px; } }
.fh-finder-card h2 { font-size:1.35rem; margin-bottom:.35rem; }
.fh-finder-form { display:grid; gap:10px; margin-top:.9rem; }
@media (min-width:768px){ .fh-finder-form { grid-template-columns: 1fr auto; align-items:end; } }
.fh-label { display:block; font-weight:700; color:var(--navy); margin-bottom:6px; font-size:.95rem; }
.fh-select, .fh-input { width:100%; min-height:48px; border:1.5px solid #94A3B8; border-radius:12px; padding:.65rem .85rem; font-size:1rem; background:#fff; color:var(--ink); }
.fh-note { font-size:.875rem; color:var(--muted); margin:.6rem 0 0; }

/* Decisions */
.fh-section { padding:56px 0; }
@media (min-width:1024px){ .fh-section { padding:72px 0; } }
.fh-head { max-width:760px; margin-bottom:28px; }
.fh-filter { display:flex; flex-wrap:wrap; align-items:end; gap:10px 16px; margin:0 0 22px; max-width:520px; }
.fh-filter > div { flex:1 1 260px; }
.fh-empty { margin:0 0 18px; padding:14px 16px; border-radius:12px; background:var(--amber-bg); color:#78350F; font-weight:600; }
.fh-decisions { display:grid; gap:16px; list-style:none; padding:0; margin:0; }
@media (min-width:768px){ .fh-decisions { grid-template-columns:repeat(2,1fr); gap:18px; } }
@media (min-width:1100px){ .fh-decisions { grid-template-columns:repeat(3,1fr); } }
.fh-decision { position:relative; background:#fff; border:1px solid var(--line); border-radius:16px; padding:22px 22px 18px; display:flex; flex-direction:column; }
.fh-decision::before { content:""; position:absolute; left:0; top:18px; bottom:18px; width:4px; border-radius:0 4px 4px 0; background:var(--accent,var(--cobalt)); }
.fh-decision[data-tone="green"] { --accent:var(--emerald); }
.fh-decision[data-tone="navy"] { --accent:var(--navy); }
.fh-decision[data-tone="amber"] { --accent:#D97706; }
.fh-num { font-size:.75rem; font-weight:800; letter-spacing:.08em; color:var(--muted); text-transform:uppercase; margin-bottom:.35rem; }
.fh-decision p { color:var(--muted); font-size:.95rem; }
.fh-tools { list-style:none; padding:0; margin:0 0 14px; display:grid; gap:6px; }
.fh-tools a { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; padding:.55rem .8rem; border-radius:10px;
  background:#F4F6FD; color:var(--navy); font-weight:600; text-decoration:none; }
.fh-tools a::after { content:"\2192"; color:var(--cobalt); font-weight:800; }
.fh-tools a:hover { background:#E6ECFC; color:var(--cobalt); }
.fh-hub { margin-top:auto; font-size:.92rem; font-weight:700; display:inline-flex; align-items:center; min-height:44px; align-self:flex-start; }
.fh-library { margin-top:22px; font-weight:600; }

/* Country band */
.fh-band { background:var(--navy); color:#E5E9F2; }
.fh-band h2, .fh-band h3 { color:#fff; }
.fh-band p, .fh-band li { color:#CDD5E3; }
.fh-band a { color:#9DB8FF; }
.fh-countries { display:grid; gap:14px; list-style:none; padding:0; margin:22px 0 26px; }
@media (min-width:768px){ .fh-countries { grid-template-columns:repeat(2,1fr); } }
@media (min-width:1100px){ .fh-countries { grid-template-columns:repeat(4,1fr); } }
.fh-country { border:1px solid rgba(255,255,255,.14); border-radius:14px; padding:18px; background:rgba(255,255,255,.04); }
.fh-country h3 { font-size:1.05rem; }
.fh-country p { font-size:.92rem; margin:0; }
.fh-caveats { display:grid; gap:10px; padding-left:1.15rem; margin:0; }
.fh-caveats li { line-height:1.6; }

/* Method / trust */
.fh-warm { background:var(--warm); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.fh-method { display:grid; gap:28px; }
@media (min-width:1024px){ .fh-method { grid-template-columns: 1.3fr 1fr; gap:48px; } }
.fh-steps { counter-reset:s; list-style:none; padding:0; margin:0; display:grid; gap:14px; }
.fh-steps li { counter-increment:s; position:relative; padding-left:46px; line-height:1.6; color:var(--muted); }
.fh-steps li::before { content:counter(s); position:absolute; left:0; top:0; width:32px; height:32px; border-radius:50%; background:var(--emerald); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; }
.fh-steps strong { color:var(--navy); }
.fh-trust { background:#fff; border:1px solid var(--line); border-radius:16px; padding:22px; }
.fh-trust ul { list-style:none; padding:0; margin:0; display:grid; gap:4px; }
.fh-trust a { display:block; padding:.6rem .25rem; font-weight:700; text-decoration:none; border-bottom:1px solid #EEF0F4; }
.fh-trust a span { display:block; font-weight:500; color:var(--muted); font-size:.875rem; }
.fh-trust li:last-child a { border-bottom:0; }

/* Guides */
.fh-guides { display:grid; gap:20px; list-style:none; padding:0; margin:0; }
@media (min-width:1024px){ .fh-guides { grid-template-columns:repeat(3,1fr); gap:28px; } }
.fh-guide { border-top:4px solid var(--navy); padding-top:16px; }
.fh-guide .fh-eyebrow { color:var(--amber); }
.fh-guide h3 a { color:var(--navy); text-decoration:none; }
.fh-guide h3 a:hover { color:var(--cobalt); text-decoration:underline; }
.fh-guide p { color:var(--muted); font-size:.97rem; }
.fh-guide-links { display:flex; flex-wrap:wrap; gap:4px 18px; font-weight:700; font-size:.95rem; }
.fh-guide-links a { display:inline-flex; align-items:center; min-height:44px; }
.fh-guide h3 a { display:inline-block; padding:4px 0; }

/* FAQ */
.fh-faq { max-width:860px; }
.fh-faq details { border:1px solid var(--line); border-radius:14px; background:#fff; margin-bottom:10px; }
.fh-faq summary { cursor:pointer; list-style:none; padding:16px 52px 16px 18px; font-weight:700; color:var(--navy); position:relative; min-height:48px; line-height:1.45; }
.fh-faq summary::-webkit-details-marker { display:none; }
.fh-faq summary::after { content:"+"; position:absolute; right:18px; top:50%; transform:translateY(-50%); font-size:1.4rem; color:var(--cobalt); font-weight:600; }
.fh-faq details[open] summary::after { content:"\2212"; }
.fh-faq .fh-answer { padding:0 18px 16px; color:var(--muted); }
.fh-faq .fh-answer p { margin:0; }

/* Final CTA */
.fh-final { background:linear-gradient(120deg, var(--cobalt) 0%, #1B3FA8 60%, var(--emerald-d) 130%); color:#fff; text-align:center; padding:56px 0; }
.fh-final h2 { color:#fff; }
.fh-final p { color:#E3EAFF; max-width:58ch; margin:0 auto 1.4rem; }
.fh-final .fh-btn-primary { background:#fff; color:var(--cobalt-d) !important; }
.fh-final .fh-btn-primary:hover { background:#EEF3FF; }
.fh-final .fh-btn-ghost { background:transparent; color:#fff !important; border-color:rgba(255,255,255,.6); }

@media (prefers-reduced-motion: no-preference) {
  .fh-btn, .fh-tools a, .fh-guide h3 a { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}
[hidden] { display:none !important; }
