:root {
  color-scheme: light;
  --ink: #101d25;
  --muted: #52636b;
  --paper: #f5f4ef;
  --card: #fff;
  --line: #d9ded9;
  --accent: #147d83;
  --accent-dark: #0d5d64;
  --accent-soft: #e4f2ef;
  --warning: #8e4c17;
  --shadow: 0 20px 55px rgb(16 29 37 / 8%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.65; }
a { color: var(--accent-dark); text-underline-offset: .16em; }
a:hover { color: #063d42; }
button, input, select { font: inherit; }
.skip-link { position: absolute; top: -4rem; left: 1rem; z-index: 2; padding: .6rem 1rem; background: var(--ink); color: white; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.site-header { max-width: 1100px; margin: auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.12rem; letter-spacing: -.03em; }
.brand img { border-radius: .65rem; }
nav { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; color: var(--muted); font-size: .88rem; }
nav a { text-decoration: none; }
nav [aria-current="page"] { color: var(--ink); font-weight: 650; }
main { width: min(100% - 2rem, 860px); margin: 0 auto 5rem; }
.hero { padding: clamp(2rem, 6vw, 4rem) 0 1.7rem; }
.eyebrow { margin: 0 0 .5rem; color: var(--accent-dark); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: .2rem 0 .8rem; font-size: clamp(2.25rem, 7vw, 4.25rem); }
.subtitle { max-width: 700px; margin: 0 0 1.4rem; color: #35474f; font-size: clamp(1.08rem, 2.5vw, 1.28rem); line-height: 1.5; }
.answer-box { border-left: 4px solid var(--accent); border-radius: 0 .8rem .8rem 0; background: var(--accent-soft); padding: 1rem 1.2rem; }
.answer-box strong { display: block; margin-bottom: .25rem; }
.answer-box p { margin: 0; }
.calculator-card { padding: clamp(1.15rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 1.25rem; background: var(--card); box-shadow: var(--shadow); }
.card-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: 1.3rem; }
h2 { margin: 0 0 .75rem; font-size: clamp(1.55rem, 4vw, 2.2rem); }
.card-heading h2 { margin: 0; }
.free-pill { padding: .3rem .65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: .8rem; font-weight: 700; }
fieldset { margin: 0 0 1.2rem; padding: 0; border: 0; }
legend { margin-bottom: .55rem; font-weight: 700; }
.mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.mode-option { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem; border: 1px solid var(--line); border-radius: .8rem; cursor: pointer; }
.mode-option:has(input:checked) { border-color: var(--accent); background: #f4faf8; box-shadow: inset 0 0 0 1px var(--accent); }
.mode-option input { margin: .25rem 0 0; accent-color: var(--accent); }
.mode-option strong, .mode-option small { display: block; }
.mode-option small { margin-top: .2rem; color: var(--muted); line-height: 1.4; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-grid.nested { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .35rem; font-weight: 650; }
.field span { color: var(--muted); font-weight: 500; }
.field input, .field select { width: 100%; min-height: 3rem; padding: .65rem .75rem; border: 1px solid #aebbb8; border-radius: .55rem; background: #fff; color: var(--ink); }
.field small { color: var(--muted); font-size: .8rem; font-weight: 400; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #60b5b0; outline-offset: 2px; }
.primary-button { display: block; width: 100%; min-height: 3.3rem; margin-top: 1.3rem; border: 0; border-radius: .65rem; background: var(--accent-dark); color: white; font-weight: 750; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.primary-button:hover { background: #08484e; transform: translateY(-1px); }
.form-error { margin: .8rem 0 0; color: #9a2727; font-weight: 650; }
.result { margin-top: 1.2rem; padding: 1.2rem; border-radius: .9rem; background: var(--ink); color: white; }
.result .eyebrow { color: #9fe1d7; }
.result-load { margin: 0; color: #c9f2eb; font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.05em; }
.result-load span { font-size: .4em; font-weight: 650; letter-spacing: 0; }
.result-summary { margin: .6rem 0; color: #e7efec; }
.result-details { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 1rem 0 0; }
.result-details div { min-width: 7rem; }
.result-details dt { color: #c1d1ce; font-size: .76rem; }
.result-details dd { margin: .1rem 0 0; font-weight: 700; }
.result-caution { margin: 1rem 0 0; color: #ffe0af; }
.content-section { padding: 2.3rem 0 0; }
.content-section > p { max-width: 78ch; }
.content-section h2 { margin-top: .25rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: .7rem; background: white; }
table { width: 100%; min-width: 550px; border-collapse: collapse; font-size: .94rem; }
caption { padding: .8rem; background: var(--ink); color: white; text-align: left; font-weight: 700; }
th, td { padding: .55rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: #edf1ed; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.fine-print { color: var(--muted); font-size: .9rem; }
code { padding: .12rem .3rem; border-radius: .25rem; background: #e9efec; font-size: .92em; }
.notice { margin: 1.1rem 0; padding: .85rem 1rem; border-left: 4px solid #e2a348; border-radius: 0 .6rem .6rem 0; background: #fff4df; color: #4f3213; font-weight: 700; }
.faq details { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-bottom: 0; }
.sources { margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.45rem; }
.sources li { margin: .6rem 0; }
footer { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.legal { font-size: .82rem; }
[hidden] { display: none !important; }

@media (max-width: 620px) {
  .site-header { align-items: flex-start; flex-direction: column; padding-inline: 1rem; }
  main { width: min(100% - 1.25rem, 860px); }
  .mode-options, .field-grid { grid-template-columns: 1fr; }
  .field-grid.nested { grid-column: auto; }
  .result-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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