:root { --paper: #fffdf1; --ink: #070707; --accent: #ff2244; --muted: #595950; --line: #d9d8ce; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.025em; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px 20px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 25px; border-bottom: 1px solid var(--line); }
.brand { font-size: 21px; font-weight: 650; line-height: 1.2; padding-block: 5px; }
.brand span { display: block; font-size: 11px; font-weight: 400; letter-spacing: .04em; margin-top: 6px; }
.back-link { font-size: 13px; min-height: 44px; display: flex; align-items: center; gap: 18px; }
.intro { padding: 60px 0 42px; max-width: 900px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 550; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ''; background: var(--accent); width: 6px; height: 6px; flex-shrink: 0; }
h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.03; font-weight: 600; letter-spacing: -.055em; margin-top: 20px; max-width: 24ch; text-wrap: balance; }
.lede { color: var(--muted); font-size: 18px; max-width: 65ch; margin-top: 22px; }
.calculator { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 64px; scroll-margin-top: 20px; }
.inputs { border: 1px solid var(--line); padding: 28px; scroll-margin-top: 20px; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-heading h2 { font-size: 24px; font-weight: 550; letter-spacing: -.04em; }
.section-heading > span { font-size: 11px; color: var(--muted); }
.input-note { color: var(--muted); font-size: 13px; margin-top: 8px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 18px; margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.input-wrap { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #85857c; background: #f5f3e7; padding: 3px 12px; min-height: 50px; }
.input-wrap:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.input-wrap > span { font-size: 11px; letter-spacing: .02em; color: var(--muted); }
input { width: 100%; min-width: 0; min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--ink); font: inherit; font-size: 20px; letter-spacing: -.035em; outline: 0; appearance: textfield; }
input:focus-visible { outline: none; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.field:has([aria-invalid="true"]) .input-wrap { outline: 2px solid #b41e36; outline-offset: 2px; }
.hint { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 7px; letter-spacing: 0; }
.privacy-note { font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 17px; margin-top: 24px; }
.form-error, .no-script { color: #a8152f; font-size: 13px; margin-top: 20px; }
.result-column { min-width: 0; }
.result { padding: 32px; background: var(--ink); color: var(--paper); }
.result .eyebrow { color: #b8b7ae; }
.result h2 { font-size: 16px; font-weight: 400; margin-top: 31px; }
.result-amount { font-size: clamp(34px, 3.6vw, 47px); line-height: 1.2; font-weight: 550; letter-spacing: -.05em; margin-top: 7px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.result-summary { font-size: 13px; color: #c4c3b9; margin-top: 13px; }
.coverage-track { height: 3px; background: #383831; margin-top: 20px; }
.coverage-track span { display: block; height: 100%; background: var(--accent); }
.breakdown { margin-top: 26px; font-size: 13px; }
.breakdown > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.breakdown dt { color: #c4c3b9; }
.breakdown dd { text-align: right; margin: 0; font-variant-numeric: tabular-nums; }
.breakdown .total { border-top: 1px solid #383831; padding-top: 12px; font-weight: 600; }
.breakdown .total dt { color: var(--paper); }
.saving-target { border-top: 1px solid #383831; padding-top: 22px; margin-top: 24px; }
.saving-target h3 { font-size: 13px; font-weight: 400; color: #c4c3b9; }
.saving-target > p:first-of-type { font-size: 27px; line-height: 1.25; font-weight: 550; margin-top: 8px; overflow-wrap: anywhere; }
.saving-target > p:first-of-type span { font-size: 13px; font-weight: 400; white-space: nowrap; color: #c4c3b9; }
#target-note { margin-top: 12px; font-size: 13px; color: #c4c3b9; }
.example-note { color: #b8b7ae; font-size: 11px; margin-top: 24px; }
.edit-link { display: none; }
.product-button { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; margin-top: 12px; padding: 18px 24px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--accent); }
.product-button:hover { background: #f44c65; }
.product-button > span { font-size: 21px; }
.result[data-invalid="true"] #result-content { opacity: .45; }
.explanation, .questions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 70px; padding-block: 50px; border-top: 1px solid var(--line); }
.explanation h2, .questions h2 { font-size: 32px; font-weight: 550; line-height: 1.1; letter-spacing: -.04em; max-width: 20ch; margin-top: 18px; text-wrap: balance; }
.body-copy { font-size: 15px; color: var(--muted); }
.body-copy p + p { margin-top: 16px; }
.body-copy strong { color: var(--ink); font-weight: 550; }
.small-copy { font-size: 13px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; min-height: 56px; padding: 17px 24px 17px 0; font-size: 15px; font-weight: 550; }
details p { font-size: 14px; color: var(--muted); padding: 0 0 22px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 24px; font-size: 12px; color: var(--muted); }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .calculator { gap: 20px; }
  .inputs, .result { padding: 24px; }
  .fields { grid-template-columns: 1fr; gap: 20px; }
  .explanation, .questions { gap: 32px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-block: 18px; }
  .brand { font-size: 19px; }
  .back-link { font-size: 11px; gap: 7px; }
  .brand span { font-size: 10px; }
  .intro { padding: 36px 0 28px; }
  h1 { font-size: clamp(32px, 8.5vw, 44px); }
  .lede { font-size: 15px; margin-top: 18px; }
  .calculator { grid-template-columns: 1fr; padding-bottom: 40px; gap: 24px; }
  .result-column { grid-row: auto; }
  .result { padding: 24px; }
  .result h2 { margin-top: 22px; }
  .result-amount { font-size: clamp(33px, 10vw, 45px); }
  .edit-link { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field:has(#saving), .field:has(#finance) { grid-column: 1 / -1; }
  .inputs { padding: 22px; }
  .explanation, .questions { grid-template-columns: 1fr; gap: 24px; padding-block: 36px; }
  .explanation h2, .questions h2 { font-size: 29px; max-width: 25ch; }
  .site-footer { font-size: 11px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .back-link { max-width: 78px; }
  .inputs, .result { padding: 18px; }
  .fields { grid-template-columns: 1fr; }
  .product-button { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
