/* Homepage only. Calculator styles and rendering contracts remain independent. */
.home-page { background: #f7f8f5; }
.home-page .topbar { background: #fff; }
.home-page .nav { min-height: 82px; }
.home-page .navlink-pill { background: #102d42; border-color: #102d42; color: #fff; }
.home-page .navlink-pill:hover { background: #0b6b61; border-color: #0b6b61; }
.home-hero { background: #102d42; color: #fff; position: relative; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; width: 620px; height: 620px; border: 1px solid #ffffff08; border-radius: 50%; right: -210px; top: -330px; pointer-events: none; box-shadow: 0 0 0 70px #ffffff02, 0 0 0 140px #ffffff02; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr); gap: 70px; align-items: center; padding-top: 58px; padding-bottom: 48px; position: relative; }
.home-kicker { display: flex; align-items: center; gap: 9px; color: #d7e9e2; font-size: .72rem; letter-spacing: .035em; margin: 0 0 25px; }
.home-kicker > span { width: 7px; height: 7px; background: #d9ef83; border-radius: 50%; flex: 0 0 7px; }
.home-hero h1 { color: #fff; font-size: clamp(2.55rem,4.1vw,3.6rem); letter-spacing: -.05em; line-height: 1.13; margin: 0 0 23px; text-wrap: initial; }
.home-hero h1 span { color: #c1e7d8; }
.home-intro { color: #c6d6dc; max-width: 510px; font-size: .99rem; line-height: 1.8; margin: 0 0 30px; }
.home-search label { display: block; color: #fff; font-size: .76rem; font-weight: 600; margin-bottom: 10px; }
.home-search-box { display: flex; align-items: center; padding: 6px; background: #fff; border-radius: 12px; border: 1px solid #fff; box-shadow: 0 8px 26px #041c3220; }
.home-search-box:focus-within { outline: 3px solid #d9ef83; outline-offset: 4px; }
.home-search-box svg { width: 21px; height: 21px; flex: 0 0 21px; margin-left: 12px; color: #61747e; }
.home-search-box input { flex: 1; min-width: 0; background: transparent; padding: 12px; color: #102d42; border: 0; border-radius: 4px; font-size: .88rem; height: 48px; box-shadow: none; outline: none; }
.home-search-box input::placeholder { color: #637580; opacity: 1; }
.home-search-box a { display: flex; align-items: center; gap: 15px; background: #d9ef83; color: #183d32; text-decoration: none; padding: 13px 17px; border-radius: 7px; font-size: .8rem; font-weight: 750; min-height: 48px; }
.home-search-box a:hover { background: #cbe66b; }
.home-search-box a:focus-visible { outline: 3px solid #0b6b61; outline-offset: 2px; }
.home-search-hint { color: #a9c2cc; font-size: .68rem; margin: 9px 0 0; }
.home-shortcuts { margin-top: 25px; }
.home-shortcuts > span { display: block; color: #a8c1cd; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 9px; }
.home-shortcuts nav { display: flex; flex-wrap: wrap; gap: 4px 17px; }
.home-shortcuts a { color: #e8f2ee; font-size: .75rem; padding: 4px 0; text-decoration-color: #587581; }
.home-shortcuts a span { color: #b5c9bd; padding-left: 3px; }
.home-shortcuts a:hover { color: #d9ef83; }
.calculation-preview { padding: 25px; background: #fcfdfb; border: 1px solid #fff; border-radius: 18px; color: #102d42; box-shadow: 0 24px 60px #061e3238; position: relative; }
.preview-heading { display: flex; align-items: center; gap: 11px; }
.preview-icon { display: grid; place-items: center; width: 40px; height: 43px; border-radius: 10px; background: #e8f2ed; color: #0b6b61; font-size: 2rem; line-height: 1; font-weight: 550; }
.preview-heading .eyebrow { font-size: .58rem; letter-spacing: .085em; color: #526c68; margin: 0 0 3px; }
.preview-heading h2 { font-size: 1rem; margin: 0; letter-spacing: -.02em; color: #102d42; }
.example-badge { margin-left: auto; align-self: start; font-size: .59rem; padding: 3px 7px; border: 1px solid #ccd9d3; border-radius: 5px; color: #536d64; background: #f5f8f4; }
.preview-total { padding: 28px 0 24px; margin-top: 22px; border-top: 1px solid #dde5e0; display: flex; align-items: start; flex-direction: column; }
.preview-total > span:first-child { color: #526b75; font-size: .77rem; }
.preview-total > strong { font-size: 3.4rem; line-height: 1.25; font-weight: 650; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.preview-total > strong > span { font-size: 2.35rem; color: #3e5e6a; font-weight: 500; letter-spacing: -.045em; }
.preview-rate { color: #3a6759; font-size: .64rem; font-weight: 600; background: #edf3e8; padding: 3px 8px; border-radius: 5px; margin-top: 5px; }
.preview-breakdown { display: grid; grid-template-columns: 1.4fr 1fr; background: #eaf3ed; border: 1px solid #d1e1d6; border-radius: 10px; padding: 17px 18px; gap: 20px; }
.preview-breakdown > div + div { border-left: 1px solid #c9dbd0; padding-left: 20px; }
.preview-breakdown span { font-size: .7rem; color: #506e60; display: block; margin-bottom: 6px; }
.preview-breakdown strong { display: block; color: #174e3e; font-size: 1.65rem; font-weight: 650; line-height: 1.35; letter-spacing: -.035em; white-space: nowrap; }
.preview-breakdown small { font-size: .8rem; font-weight: 500; }
.preview-explanation { display: flex; align-items: start; gap: 10px; padding: 20px 0; }
.preview-explanation > span { color: #7c9888; font-size: 1.3rem; line-height: 1.2; }
.preview-explanation strong { font-size: .7rem; font-weight: 650; }
.preview-explanation p { font-size: .7rem; line-height: 1.7; color: #526b75; margin: 6px 0 0; }
.preview-open { display: flex; justify-content: space-between; border-top: 1px solid #dde5e0; padding-top: 15px; font-size: .75rem; font-weight: 650; text-decoration: none; }
.home-assurances { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 27px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid #ffffff1c; font-size: .69rem; color: #c0d2d7; }
.home-assurances > span { display: flex; align-items: center; gap: 7px; }
.home-assurances strong { font-weight: 650; color: #fff; }
.home-assurances svg { width: 15px; height: 15px; stroke-width: 1.5; color: #b8d9c5; }
.home-assurances a { margin-left: auto; color: #d9ef83; text-decoration: none; }
.home-assurances a:hover { text-decoration: underline; }
.home-page .catalog { padding-top: 48px; }
.home-page .section-top { align-items: center; margin-bottom: 24px; }
.home-page .section-top h2 { font-size: 1.9rem; }
.home-page #search-count { color: #536b76; font-size: .76rem; border: 1px solid #d9e3dc; background: #edf3ed; border-radius: 30px; padding: 8px 13px; margin: 0; flex: 0 0 auto; }
.home-page .filter-list { gap: 8px; margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid #dce4df; }
.home-page .filter { border-radius: 8px; font-size: .72rem; padding: 8px 12px; }
.home-page .catalog-grid { gap: 15px; }
.home-page .tool-card { border-radius: 12px; padding: 22px; min-height: 225px; box-shadow: none; }
.home-page .tool-card:hover { background: #fcfefb; box-shadow: 0 8px 24px #143a3008; border-color: #83b3a2; }
.home-page .tool-card .card-top { margin-bottom: 16px; gap: 9px; }
.home-page .tool-card h3 { font-size: 1.02rem; line-height: 1.4; }
.home-page .tool-card p { font-size: .77rem; line-height: 1.75; }
.home-page .tool-card .card-link { margin-top: 18px; font-size: .69rem; }
.home-page .home-help { border-radius: 14px; border-left: 4px solid #0b6b61; background: #edf3ee; }
.home-page .home-help h2 { max-width: 600px; }
@media (min-width: 1400px) { .home-hero-grid { gap: 85px; padding-top: 68px; padding-bottom: 58px; } }
@media (max-width: 1050px) { .home-hero-grid { gap: 36px; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); } .calculation-preview { padding: 20px; } .example-badge { display: none; } .home-assurances { gap: 12px 20px; } .home-assurances a { margin-left: 0; } }
@media (max-width: 780px) { .home-hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 35px; padding-bottom: 30px; } .home-hero h1 { font-size: clamp(2.1rem,6.4vw,3rem); } .home-intro { max-width: 560px; } .calculation-preview { max-width: 560px; width: 100%; } .preview-total { padding: 18px 0; margin-top: 18px; } .preview-total > strong { font-size: 2.7rem; } .preview-total > strong > span { font-size: 2rem; } .preview-explanation { padding: 16px 0; } .home-page .section-top { align-items: start; } .home-page #search-count { font-size: .68rem; } .home-assurances { gap: 10px 22px; } }
@media (max-width: 560px) { .home-page .nav { min-height: 76px; } .home-page .wrap, .home-page .catalog.wrap { padding-inline: 20px; } .home-page .navlinks { gap: 0; } .home-page .method-nav { display: none; } .home-kicker { font-size: .64rem; letter-spacing: .01em; margin-bottom: 21px; } .home-hero h1 { font-size: clamp(1.9rem,8.2vw,2.6rem); letter-spacing: -.045em; } .home-intro { font-size: .86rem; line-height: 1.8; margin-bottom: 25px; } .home-search-box { padding: 5px; } .home-search-box svg { margin-left: 7px; width: 18px; flex-basis: 18px; } .home-search-box input { font-size: .8rem; padding-inline: 10px; } .home-search-box a { padding-inline: 12px; gap: 8px; font-size: .74rem; } .home-shortcuts { margin-top: 22px; } .home-shortcuts nav { gap: 4px 15px; } .home-shortcuts a { font-size: .72rem; } .home-hero-grid { gap: 28px; } .calculation-preview { padding: 20px; border-radius: 14px; } .example-badge { display: block; } .home-assurances { font-size: .65rem; padding-block: 18px; } .home-page .catalog { padding-top: 34px; } .home-page .section-top { gap: 15px; flex-direction: column; } .home-page .section-top h2 { font-size: 1.55rem; } .home-page .filter-list { margin-bottom: 23px; padding-bottom: 22px; } .home-page .catalog-grid { gap: 13px; } .home-page .tool-card { min-height: auto; padding: 21px; } .home-page .home-help { width: calc(100% - 40px); padding: 25px 22px; margin-bottom: 40px; } .home-page .home-help h2 { font-size: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .home-page .tool-card { transition: none; transform: none; } }
/* Keep the mobile navigation on one row; leave room for the sample amounts. */
@media (max-width: 560px) {
 .home-page .nav { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px; padding-block: 16px; }
 .home-page .navlinks { width: auto; border: 0; padding: 0; margin: 0; flex-shrink: 0; }
 .preview-breakdown { gap: 12px; padding: 15px 12px; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
 .preview-breakdown > div + div { padding-left: 12px; }
 .preview-breakdown strong { font-size: 1.4rem; }
}
@media (max-width: 360px) { .preview-breakdown strong { font-size: 1.25rem; } }
