:root {
  color-scheme: light;
  --paper: #f7f8f6;
  --white: #fff;
  --ink: #172c35;
  --muted: #5b6c72;
  --line: #dbe3df;
  --teal: #17695b;
  --teal-dark: #105346;
  --teal-soft: #edf5f0;
  --blue-soft: #eff3f6;
  --danger: #9c3d29;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button, input, select, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #509784;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
strong { font-weight: 650; }
.site-shell { width: min(1360px, calc(100% - 96px)); margin: 0 auto; }
.skip-link { position: fixed; top: 10px; left: 10px; padding: 12px 20px; z-index: 20; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.masthead { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.wordmark-divider { padding: 0 9px; color: #a0aaa9; font-weight: 400; }
.wordmark-category { color: var(--muted); font-weight: 450; }
.brand-mark { width: 31px; height: 31px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 7px; border-radius: 8px; background: var(--ink); }
.brand-mark span { width: 4px; background: #c2ddd1; border-radius: 1px 1px 0 0; }
.brand-mark span:nth-child(1) { height: 6px; }
.brand-mark span:nth-child(2) { height: 11px; }
.brand-mark span:nth-child(3) { height: 17px; }
.privacy-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.privacy-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.hero { padding: 66px 0 55px; max-width: 940px; }
.eyebrow { font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--teal); }
h1 { margin-top: 16px; max-width: 950px; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.09; font-weight: 620; letter-spacing: -2.6px; }
.hero-copy { max-width: 670px; margin-top: 22px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.hero-notes { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 12px; color: var(--muted); }
.hero-notes > span { display: flex; align-items: center; gap: 7px; }
.note-check { color: var(--teal); font-size: 14px; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(310px, 1fr); gap: 28px; align-items: start; }
.input-panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel-heading { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.65px; font-weight: 620; }
.panel-heading h2, .results-heading h2 { margin-top: 7px; }
.panel-heading .button { padding: 10px 0; font-size: 12px; flex-shrink: 0; }
.panel-intro { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 14px; max-width: 570px; }
.setup-row { margin-top: 27px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { min-width: 0; }
.field label { display: block; font-size: 12px; font-weight: 650; line-height: 1.45; margin-bottom: 8px; }
.field input, .field select { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #bdcbc5; border-radius: 7px; color: var(--ink); background: var(--white); font-size: 14px; line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
.field select { padding-right: 32px; }
.field input::placeholder { color: #7b878b; opacity: 1; font-size: 13px; }
.field input:hover, .field select:hover { border-color: #6d8c80; }
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #17695b13; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); background: #fffaf7; }
.field-help { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.field-error { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--danger); }
.form-section { min-width: 0; border: 0; border-top: 1px solid var(--line); padding: 25px 0 0; margin: 30px 0 0; }
.form-section legend { float: left; width: 100%; padding: 0; display: flex; align-items: baseline; gap: 11px; font-size: 15px; line-height: 1.45; font-weight: 650; letter-spacing: -.2px; }
.form-section legend + * { clear: both; }
.step-number { color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: .6px; }
.section-copy { padding-top: 10px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.quote-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.quote-card { min-width: 0; padding: 19px 16px; border: 1px solid #dce4e8; background: var(--blue-soft); border-radius: 10px; }
.quote-card-switch { background: var(--teal-soft); border-color: #d7e6dd; }
.quote-card h3 { display: flex; gap: 7px; align-items: baseline; font-size: 12px; line-height: 1.55; font-weight: 650; margin-bottom: 18px; }
.option-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #6b818c; }
.quote-card-switch .option-dot { background: var(--teal); }
.quote-card .field + .field { margin-top: 20px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }
.input-with-unit { position: relative; }
.input-with-unit input { padding-right: 54px; }
.input-with-unit > span { position: absolute; right: 13px; top: 15px; font-size: 11px; line-height: 1.4; color: var(--muted); pointer-events: none; }
.optional-label { display: inline-block; padding: 2px 6px; margin-left: 5px; border-radius: 4px; background: #f1f3f0; color: var(--muted); font-size: 10px; vertical-align: middle; font-weight: 500; letter-spacing: 0; }
.form-actions { display: flex; align-items: center; gap: 18px; padding-top: 28px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 11px 17px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1.45; text-decoration: none; transition: background .15s, border-color .15s; }
.button-primary { min-height: 46px; background: var(--teal); color: white; padding: 12px 23px; }
.button-primary:hover { background: var(--teal-dark); }
.button-primary > span { font-size: 18px; line-height: 1; }
.button-secondary { border-color: #b8cdc2; background: white; color: var(--teal-dark); }
.button-secondary:hover { background: var(--teal-soft); border-color: var(--teal); }
.button-quiet { color: var(--teal); background: transparent; }
.button-quiet:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 4px; }
.button:disabled { cursor: default; opacity: .55; }
.notice { margin-top: 20px; padding: 13px 15px; font-size: 12px; line-height: 1.6; border: 1px solid; border-radius: 7px; }
.example-notice { background: #fffbef; border-color: #e4d7a6; color: #66541d; }
.error-notice { background: #fff6f1; border-color: #e5b4a4; color: #813823; }
.status-message { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.status-message:empty { margin: 0; }

.results-panel { position: sticky; top: 24px; min-width: 0; border: 1px solid #d3e2d9; border-radius: var(--radius); background: #edf3ee; padding: 27px 25px 22px; }
.results-heading { padding-bottom: 21px; border-bottom: 1px solid #cfddd3; }
.results-heading h2 { font-size: 23px; }
#result-title:focus { outline: none; }
#result-title:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
.empty-results { padding: 28px 0 0; }
.empty-illustration { position: relative; height: 92px; width: 132px; margin-bottom: 22px; }
.illustration-baseline { position: absolute; bottom: 0; left: 0; width: 132px; height: 1px; background: #a6bfb0; }
.illustration-bar { position: absolute; bottom: 1px; width: 35px; border-radius: 4px 4px 0 0; }
.bar-stay { left: 14px; height: 49px; background: #c9d8ce; }
.bar-switch { left: 67px; height: 77px; background: #80aa95; }
.illustration-gap { position: absolute; height: 29px; width: 14px; border-top: 1px solid #61826c; border-bottom: 1px solid #61826c; right: 0; top: 14px; }
.illustration-gap::after { content: ""; position: absolute; width: 1px; height: 100%; background: #61826c; left: 50%; }
.empty-results h3 { font-size: 22px; font-weight: 550; line-height: 1.32; letter-spacing: -.6px; }
.empty-results > p { font-size: 12px; line-height: 1.75; color: #566b5d; margin-top: 14px; }
.empty-result-list { display: grid; gap: 14px; margin: 25px 0; padding: 20px 0; border-top: 1px solid #cfddd3; border-bottom: 1px solid #cfddd3; }
.empty-result-list > span { display: flex; align-items: center; gap: 13px; font-size: 12px; }
.empty-result-list > span > span { color: #66816e; font-size: 10px; letter-spacing: .7px; }
.empty-results > .empty-footnote { margin-top: 0; font-size: 11px; }
.results-footnote { margin-top: 25px; padding-top: 18px; border-top: 1px solid #cfddd3; color: #596f60; font-size: 10px; line-height: 1.65; }
.result-summary { margin: 23px 0; }
.result-kicker { font-size: 11px; color: var(--muted); line-height: 1.55; }
.result-amount { display: block; font-size: clamp(27px, 2.6vw, 40px); font-weight: 600; letter-spacing: -1.3px; line-height: 1.2; margin: 8px 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.result-note { color: var(--muted); font-size: 11px; line-height: 1.65; margin-top: 8px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.result-card { min-width: 0; padding: 15px 12px; border-radius: 8px; background: #ffffffb5; border: 1px solid #d5e0d8; }
.result-label { color: var(--muted); font-size: 10px; line-height: 1.55; margin-bottom: 5px; }
.result-value { font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -.6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.amount-currency { display: block; font-size: 10px; line-height: 1.5; letter-spacing: .4px; color: var(--muted); font-weight: 500; }
.result-card > p:not([class]) { margin-top: 5px; font-size: 12px; line-height: 1.45; }
.result-section { border-top: 1px solid #cfddd3; padding-top: 20px; margin-top: 22px; }
.result-section h3 { font-size: 13px; line-height: 1.55; font-weight: 650; }
.result-section h4 { font-size: 12px; line-height: 1.55; margin: 14px 0 6px; }
.result-section > p { font-size: 11px; line-height: 1.65; margin-top: 8px; }
.result-table { border-collapse: collapse; width: 100%; margin-top: 13px; font-size: 11px; line-height: 1.55; }
.result-table th, .result-table td { padding: 10px 0; border-bottom: 1px solid #d7e2d9; vertical-align: top; }
.result-table th { text-align: left; font-weight: 500; color: var(--muted); }
.result-table td { text-align: right; font-variant-numeric: tabular-nums; }
.result-table th + th, .result-table td + td { padding-left: 10px; text-align: right; }
.result-table td:first-child { text-align: left; }
.result-table tbody tr:last-child th, .result-table tbody tr:last-child td { border-bottom: 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.result-actions .button { font-size: 11px; padding: 10px 13px; }
.result-warning { background: #fff7e8; border: 1px solid #e7d8b6; padding: 12px; border-radius: 7px; color: #685228; font-size: 11px; line-height: 1.65; margin-top: 18px; }
.result-positive { color: var(--teal-dark); }
.result-negative { color: #83502d; }

.method { margin: 61px 0 0; border-top: 1px solid var(--line); padding-top: 38px; display: grid; grid-template-columns: 1fr 2.1fr; gap: 50px; }
.method-intro h2 { margin-top: 10px; font-size: 27px; line-height: 1.3; }
.method-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.method-items h3 { font-size: 12px; line-height: 1.5; font-weight: 650; }
.method-items p { margin-top: 10px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); margin-top: 47px; padding: 24px 0 32px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; line-height: 1.6; }

@media (min-width: 1500px) {
  .site-shell { width: min(1400px, calc(100% - 128px)); }
  .workspace { gap: 32px; }
  .input-panel { padding: 34px; }
}

@media (max-width: 1100px) {
  .site-shell { width: calc(100% - 56px); }
  .workspace { grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); gap: 20px; }
  .input-panel { padding: 24px; }
  .panel-heading { display: block; }
  .panel-heading .button { margin-top: 7px; min-height: 35px; }
  .panel-intro { margin-top: 6px; }
  .quote-columns { gap: 10px; }
  .quote-card { padding: 16px 12px; }
  .results-panel { padding: 24px 20px 20px; }
  .field-grid, .setup-row { gap: 18px; }
  .method { gap: 32px; grid-template-columns: .9fr 2fr; }
  .method-items { gap: 20px; }
}

@media (max-width: 860px) {
  .site-shell { width: calc(100% - 48px); }
  .masthead { min-height: 88px; }
  .privacy-note { font-size: 10px; }
  .wordmark { font-size: 13px; }
  .wordmark-divider { padding: 0 4px; }
  .hero { padding: 46px 0 39px; }
  h1 { font-size: 47px; letter-spacing: -1.9px; }
  .hero-copy { font-size: 16px; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .panel-heading { display: flex; }
  .panel-heading .button { margin: 0; }
  .panel-intro { margin-top: 12px; }
  .quote-columns { gap: 18px; }
  .quote-card { padding: 20px; }
  .results-panel { position: static; padding: 26px; }
  .empty-results { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .empty-illustration { grid-column: 1; margin-bottom: 20px; }
  .empty-results h3, .empty-results > p:not(.empty-footnote) { grid-column: 1; }
  .empty-result-list { grid-column: 2; grid-row: 1 / 4; margin: 0; align-content: center; }
  .empty-results > .empty-footnote { grid-column: 1 / -1; margin-top: 20px; }
  .result-amount { font-size: 38px; }
  .result-value { font-size: 23px; }
  .method { grid-template-columns: 1fr; gap: 25px; margin-top: 43px; }
  .method-intro h2 { font-size: 25px; }
  .method-intro h2 br { display: none; }
  .method-items { gap: 26px; }
}

@media (max-width: 540px) {
  .site-shell { width: calc(100% - 32px); }
  .masthead { min-height: 78px; gap: 12px; }
  .wordmark { font-size: 12px; gap: 8px; }
  .brand-mark { width: 27px; height: 27px; padding: 5px; }
  .privacy-note { display: none; }
  .hero { padding: 36px 2px 30px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 1.2px; }
  h1 { margin-top: 13px; font-size: 37px; line-height: 1.13; letter-spacing: -1.6px; }
  .desktop-break { display: none; }
  .hero-copy { margin-top: 18px; font-size: 14px; line-height: 1.7; }
  .hero-notes { margin-top: 20px; flex-direction: column; gap: 9px; font-size: 11px; }
  .input-panel { padding: 22px 17px; border-radius: 11px; }
  .panel-heading { display: block; }
  .panel-heading h2 { font-size: 23px; }
  .panel-heading .button { margin-top: 10px; min-height: 36px; padding-top: 5px; padding-bottom: 5px; }
  .panel-intro { margin-top: 8px; font-size: 11px; }
  .setup-row { margin-top: 24px; gap: 16px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .field label { font-size: 12px; }
  .field input, .field select { font-size: 16px; padding: 11px 10px; }
  .field select { font-size: 13px; padding-left: 8px; padding-right: 24px; }
  .field-help { font-size: 11px; }
  .form-section { margin-top: 25px; padding-top: 23px; }
  .form-section legend { font-size: 14px; gap: 9px; }
  .section-copy { font-size: 11px; }
  .quote-columns { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 16px; }
  .quote-card { padding: 17px; }
  .quote-card h3 { font-size: 13px; margin-bottom: 16px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 16px; }
  .input-with-unit > span { top: 16px; }
  .input-with-unit input { padding-right: 54px; }
  .optional-label { margin-left: 2px; }
  .form-actions { gap: 10px; padding-top: 25px; justify-content: space-between; }
  .button-primary { padding: 12px 17px; }
  .form-actions .button-quiet { padding-right: 0; padding-left: 5px; font-size: 11px; }
  .results-panel { padding: 24px 20px 20px; border-radius: 11px; }
  .empty-results { display: block; padding-top: 25px; }
  .empty-illustration { margin-bottom: 22px; }
  .empty-result-list { margin: 24px 0; padding: 20px 0; }
  .empty-results > .empty-footnote { margin-top: 0; }
  .result-amount { font-size: 34px; }
  .result-card { padding: 13px 10px; }
  .result-value { font-size: 21px; }
  .result-table { font-size: 10px; }
  .result-table th + th, .result-table td + td { padding-left: 8px; }
  .method { margin-top: 34px; padding: 28px 2px 0; gap: 24px; }
  .method-intro h2 { font-size: 24px; }
  .method-items { grid-template-columns: 1fr; gap: 24px; }
  .method-items h3 { font-size: 13px; }
  .method-items p { margin-top: 6px; font-size: 12px; }
  .site-footer { margin-top: 32px; flex-direction: column; gap: 7px; padding: 21px 2px 25px; }
}

.next-step { margin-top: 36px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #edf4f0; }
.next-step h2, .quick-guide h2 { margin: 10px 0 14px; font-size: 24px; line-height: 1.25; }
.next-step p, .quick-guide { font-size: 14px; line-height: 1.7; }
.next-step p { max-width: 85ch; margin-bottom: 16px; }
.next-step .button { display: inline-flex; text-decoration: none; max-width: 100%; white-space: normal; text-align: left; }
.next-step .source-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.quick-guide { margin-top: 28px; }
.quick-guide ol { padding-left: 22px; }
.quick-guide li { padding: 4px 0; }
.quick-guide details { border-top: 1px solid var(--line); padding: 15px 0; }
.quick-guide summary { cursor: pointer; font-weight: 600; }
.quick-guide details p { max-width: 90ch; margin: 12px 0 0; }
@media (max-width: 540px) {
  .next-step { padding: 21px 18px; }
  .next-step p, .quick-guide { font-size: 12px; }
  .next-step h2, .quick-guide h2 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  @page { margin: 16mm; }
  :root { font-size: 11px; }
  body { background: white; color: black; }
  .site-shell { width: 100%; max-width: none; }
  .masthead { min-height: 45px; }
  .privacy-note, .hero-notes, .skip-link, .button, .form-actions, .status-message, .empty-illustration, .method, .next-step, .quick-guide, .site-footer { display: none !important; }
  .hero { padding: 24px 0; }
  .hero .eyebrow { font-size: 9px; }
  h1 { font-size: 29px; line-height: 1.15; letter-spacing: -1px; }
  .hero-copy { font-size: 11px; margin-top: 12px; }
  .desktop-break { display: none; }
  .workspace { display: block; }
  .input-panel, .results-panel { border: 1px solid #aaa; border-radius: 0; padding: 18px; background: white; }
  .results-panel { position: static; margin-top: 20px; break-before: page; }
  .panel-heading h2, .results-heading h2 { font-size: 19px; }
  .panel-intro, .section-copy, .field-help, .field label, .result-note, .result-label { font-size: 9px; }
  .field input, .field select { border-color: #aaa; background: white; min-height: 30px; padding: 6px 8px; font-size: 11px; }
  .setup-row, .field-grid, .quote-columns { grid-template-columns: 1fr 1fr; gap: 12px; }
  .setup-row { margin-top: 17px; }
  .form-section { break-inside: avoid; margin-top: 18px; padding-top: 18px; }
  .form-section legend { font-size: 12px; }
  .quote-card { background: white; border-color: #bbb; padding: 13px; }
  .quote-card h3 { font-size: 10px; margin-bottom: 12px; }
  .quote-card .field + .field { margin-top: 12px; }
  .input-with-unit > span { top: 9px; }
  .notice { font-size: 10px; background: white; border-color: #888; color: black; }
  .result-section, .result-grid, .result-summary { break-inside: avoid; }
  .result-card { background: white; border-color: #bbb; }
  .result-value { font-size: 22px; }
  .result-amount { font-size: 32px; }
  .result-table { font-size: 11px; }
  .results-footnote { font-size: 9px; }
  .empty-results { display: block; }
  .empty-result-list { margin: 18px 0; }
}
