@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --paper: #f2f5fa;
    --surface: #fbfcfe;
    --ink: #182b49;
    --muted: #596a82;
    --line: #d9e1ee;
    --brand: #2c57c5;
    --tint: #eaf0fc;
    --gold: #a7772b;
}
* { box-sizing: border-box; }
body { background: var(--paper); }
main.wrap { color: var(--ink); font: 15px/1.55 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
main a { color: var(--brand); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.wrap { width: min(1050px, calc(100% - 48px)); margin: auto; }
main.wrap { padding-top: 76px; }
main section { padding: 0; overflow: visible; }
main section::before { content: none; }
.intro { padding: 42px 0 27px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
main :is(h1, h2, h3) { font-family: 'Manrope', sans-serif; line-height: 1.25; margin: 0; }
h1 { max-width: 760px; font-size: clamp(34px, 4.2vw, 48px); letter-spacing: -1.5px; font-weight: 800; }
.intro > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.selection { margin-bottom: 21px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
main h2 { font-size: 17px; letter-spacing: -.35px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.product-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.product-card { min-height: 58px; padding: 14px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.product-card:hover { transform: translateY(-1px); border-color: #9bafd9; }
.product-card:has(input:checked) { border-color: var(--brand); background: var(--tint); box-shadow: inset 0 0 0 1px var(--brand); }
.product-card input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.product-card strong { display: block; font-size: 13px; line-height: 1.35; }
.disclaimer a { color: inherit; }
.product-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); gap: 17px; align-items: start; }
.questions, .results { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.questions { padding: 21px 22px; }
.questions-title { margin-bottom: 13px; }
.control-panel { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.control-panel h3 { font-size: 14px; margin-bottom: 8px; }
.control-panel .panel-sub { margin-top: 18px; }
.panel-note { margin: 4px 0 13px; color: var(--muted); font-size: 12px; }
.range-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
input[type="range"] { width: 100%; min-width: 0; height: 24px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.range-value { min-width: 96px; padding: 7px 10px; border-radius: 4px; background: var(--tint); color: var(--ink); text-align: right; font: 700 14px 'Manrope', sans-serif; font-variant-numeric: tabular-nums; }
.range-bounds { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 1px; }
.jail-note { padding: 15px; border-radius: 4px; background: #f1f4f9; color: var(--muted); font-size: 13px; }
.results { overflow: hidden; }
.result-inner { padding: 22px; }
.result-kicker { margin: 0 0 5px; color: var(--brand); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 700; }
.result-heading { font-size: 18px; }
.total { margin: 17px 0 0; padding: 18px; border-radius: 4px; background: var(--tint); }
.total-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.total-value { margin-top: 3px; font: 800 clamp(31px, 4vw, 39px)/1.2 'Manrope', sans-serif; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.monthly-note { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.breakdown { margin: 15px 0 0; padding: 0; list-style: none; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.breakdown li:last-child { border-bottom: 0; }
.breakdown strong { text-align: right; font-variant-numeric: tabular-nums; }
.subtotal-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.result-empty { min-height: 165px; display: grid; align-content: center; padding: 18px 0; color: var(--muted); }
.result-empty strong { color: var(--ink); font: 700 17px 'Manrope', sans-serif; }
.result-empty p { margin: 6px 0 0; font-size: 13px; }
.result-footer { padding: 17px 22px 19px; border-top: 1px solid var(--line); background: #f0f4fb; }
.quote-link { display: block; padding: 12px 14px; border-radius: 4px; background: var(--brand); color: #fff; text-align: center; text-decoration: none; font-size: 13px; font-weight: 700; transition: background .15s ease, transform .15s ease; }
.quote-link:hover { background: #244aa9; transform: translateY(-1px); }
.no-email { margin: 8px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.disclaimer { max-width: 860px; padding: 18px 0 27px; color: var(--muted); font-size: 11px; }
.load-error { margin: 20px 0; padding: 18px; border: 1px solid #e3c999; border-radius: 4px; background: #faf3e5; }
.load-error h2 { font-size: 16px; }
.load-error p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.load-error button { margin-top: 12px; padding: 7px 12px; border: 1px solid var(--brand); border-radius: 4px; background: var(--surface); color: var(--ink); cursor: pointer; }
@media (max-width: 1000px) { .product-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .wrap { width: calc(100% - 32px); }
    .intro { padding: 31px 0 22px; }
    .product-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .product-card { min-height: auto; padding: 12px 14px; }
    .workspace { grid-template-columns: 1fr; }
    .questions { padding: 18px; }
    .result-inner { padding: 19px; }
}
@media (max-width: 390px) {
    .wrap { width: calc(100% - 24px); }
    .range-row { grid-template-columns: minmax(0, 1fr) 88px; gap: 8px; }
    .range-value { min-width: 0; padding: 7px 6px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
