:root { font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif; color: #102847; background: #f3f8fc; --navy: #071d38; --blue: #0b3765; --green: #168c2b; --muted: #52677c; --line: #ccdae5; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: linear-gradient(180deg, #fff, #f3f8fc 28rem, #fff); line-height: 1.5; }
button, input, select { font: inherit; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #61bd69; outline-offset: 3px; }
.page-width { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; background: #fff; border-radius: 7px; }
.skip-link:focus { transform: none; }
.brand-bar { background: #fff; border-bottom: 1px solid #e2ebf1; }
.brand-bar .page-width { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--blue); text-decoration: none; }
.brand-mark { width: 26px; height: 31px; display: flex; align-items: flex-end; gap: 3px; }
.brand-mark i { display: block; width: 6px; border-radius: 2px 2px 0 0; background: var(--blue); }
.brand-mark i:nth-child(1) { height: 17px; }.brand-mark i:nth-child(2) { height: 25px; background: var(--green); }.brand-mark i:nth-child(3) { height: 31px; }
.brand-name { font-size: 1.23rem; letter-spacing: -.025em; white-space: nowrap; }.brand-name strong { font-weight: 850; }.brand-name em { color: var(--green); font-style: normal; font-weight: 800; }
.library-link { color: var(--blue); font-size: .9rem; font-weight: 750; text-decoration: none; white-space: nowrap; }.library-link:hover, .text-link:hover { text-decoration: underline; }
.hero { background: var(--blue); color: #fff; }.hero .page-width { padding: 34px 0 38px; }
.eyebrow { display: block; color: #a6e98e; font-size: .76rem; font-weight: 850; letter-spacing: .12em; }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; margin: 9px 0 10px; }.hero p { max-width: 700px; color: #e0ebf5; font-size: 1.07rem; margin: 0; }
main.page-width { padding: 25px 0 55px; }.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 20px; align-items: start; }
.card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(22, 62, 96, .07); }.inputs { padding: 25px; }
.card h2 { color: var(--navy); font-size: 1.45rem; letter-spacing: -.02em; margin: 0; }.intro-copy { color: var(--muted); margin: 7px 0 22px; }
.inputs fieldset { border: 0; padding: 0; margin: 0 0 24px; }.inputs legend { width: 100%; border-bottom: 1px solid var(--line); padding: 0 0 9px; margin-bottom: 14px; color: var(--blue); font-weight: 800; font-size: 1.08rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.fields label { font-size: .88rem; font-weight: 750; }.fields label span { color: var(--muted); font-weight: 500; }
.fields input, .fields select { display: block; width: 100%; height: 47px; margin-top: 6px; padding: 8px 11px; border: 1px solid #9fb6c8; border-radius: 8px; background: #fff; color: #102847; font-size: 1rem; }
.fields input:focus, .fields select:focus { border-color: var(--green); }.help { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border: 0; border-radius: 8px; font-weight: 800; text-decoration: none; }.button.primary { background: var(--green); color: #fff; cursor: pointer; }.button.primary:hover { background: #0d6f20; }.button.primary:disabled { opacity: .65; cursor: wait; }
.button.quiet { background: #eef4f7; color: var(--blue); cursor: pointer; }.button.pending { background: #e8eef2; color: #536b7e; cursor: not-allowed; font-size: .9rem; }.error { margin: 14px 0 0; color: #a22525; font-weight: 700; }
.results { overflow: hidden; position: sticky; top: 18px; }.results-head { background: var(--navy); color: #fff; padding: 19px 23px; }.results-head h2 { color: #fff; margin: 4px 0 0; }.empty-state { padding: 28px 23px; color: var(--muted); }
.headline { padding: 23px; border-bottom: 1px solid var(--line); background: #f3faf2; }.headline span { display: block; color: var(--muted); font-size: .84rem; font-weight: 750; }.headline strong { display: block; margin: 3px 0 6px; color: var(--blue); font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.15; }.headline p { margin: 0; color: var(--muted); font-size: .84rem; }
.result-list { margin: 0; }.result-list div { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 22px; border-bottom: 1px solid var(--line); }.result-list dt { color: var(--muted); }.result-list dd { margin: 0; color: var(--blue); font-weight: 800; text-align: right; overflow-wrap: anywhere; }.result-note { color: var(--muted); font-size: .85rem; margin: 15px 21px; }
.breakdown { border-top: 1px solid var(--line); }.breakdown summary { cursor: pointer; padding: 14px 22px; color: var(--blue); font-weight: 750; }.breakdown .result-list { background: #f8fbfd; }
.after-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }.after-grid .card { padding: 23px; }.after-grid p { color: var(--muted); margin: 9px 0 16px; }.text-link { font-weight: 800; text-underline-offset: 3px; }.deeper-card { background: #edf5fb; }.method-note { color: var(--muted); font-size: .84rem; max-width: 900px; margin: 22px 0 0; }
.guide-layout { max-width: 840px; }.guide-section { padding: 25px; margin-bottom: 18px; }.guide-section p, .guide-section ul { color: #344a60; }.guide-section p { margin: 10px 0; }.guide-section ul { padding-left: 22px; }.guide-section li + li { margin-top: 7px; }.guide-section .button { margin-top: 6px; }
footer { padding: 25px 20px; background: var(--navy); color: #dce7ee; text-align: center; font-size: .85rem; }[hidden] { display: none !important; }
@media (max-width: 850px) { .calculator-grid { grid-template-columns: 1fr; }.results { position: static; }.after-grid { grid-template-columns: 1fr; } }
@media (max-width: 550px) { .page-width { width: calc(100% - 28px); }.brand-bar .page-width { min-height: 58px; }.brand-name { font-size: 1.02rem; }.library-link { font-size: .78rem; }.hero .page-width { padding: 28px 0; }.hero h1 { font-size: 2.1rem; }.inputs, .after-grid .card, .guide-section { padding: 19px; }.fields { grid-template-columns: 1fr; gap: 14px; }.result-list div { display: block; padding: 12px 16px; }.result-list dd { margin-top: 3px; text-align: left; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
