:root {
  --bg: #f7f8f5;
  --surface: #fff;
  --surface-subtle: #f0f3ee;
  --ink: #20392e;
  --ink-secondary: #43564b;
  --muted: #617166;
  --line: #dce4da;
  --brand: #286348;
  --brand-dark: #203e2e;
  --brand-hover: #1c4935;
  --brand-subtle: #edf3e9;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  font: 16px / 1.65 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button, input, select, textarea {
  font: inherit;
}

button, a, input, select, summary {
  touch-action: manipulation;
}

a:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

button {
  cursor: pointer;
}

img, svg {
  max-width: 100%;
}

img {
  height: auto;
}

p {
  color: var(--ink-secondary);
  margin: 12px 0;
}

h1, h2, h3 {
  letter-spacing: -.035em;
  line-height: 1.2;
}

h1 {
  margin: 14px 0 18px;
  font-size: clamp(32px, 4.3vw, 48px);
}

h2 {
  margin: 52px 0 18px;
  font-size: 28px;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.site-width {
  width: min(1160px, 100% - 64px);
  margin: auto;
}

main {
  width: min(1040px, 100% - 64px);
  margin: auto;
  padding: 42px 0 64px;
}

.home-page main {
  width: min(1160px, 100% - 64px);
}

.prose {
  max-width: 800px;
  margin: auto;
}

.lede {
  color: var(--muted);
  max-width: 740px;
  font-size: 18px;
}

.muted, .review-line {
  color: var(--muted);
  font-size: 14px;
}

.review-line {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 18px;
}

.skip-link {
  z-index: 100;
  background: #fff;
  padding: 12px;
  position: absolute;
  top: -100px;
  left: 20px;
}

.skip-link:focus {
  top: 12px;
}

header.site {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.brand-row {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 86px;
  display: flex;
}

.brand {
  color: var(--ink);
  letter-spacing: -.05em;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 750;
  display: inline-flex;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  flex-shrink: 0;
}

.brand-badge {
  color: #516344;
  letter-spacing: .02em;
  background: #e9eedf;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
}

.brand-row nav {
  align-items: center;
  gap: 24px;
  display: flex;
}

.brand-row nav a {
  color: var(--ink-secondary);
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
}

.brand-row nav a:last-child {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.breadcrumb {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12px;
  display: flex;
}

.breadcrumb a {
  color: var(--muted);
}

.meta-badge {
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.pulse-dot {
  background: var(--brand);
  border-radius: 50%;
  width: 6px;
  height: 6px;
  display: inline-block;
}

.home-workspace {
  grid-template-columns: .85fr 1.35fr;
  align-items: center;
  gap: 48px;
  margin: 20px 0 38px;
  display: grid;
}

.hero h1 {
  letter-spacing: -.065em;
  margin: 28px 0;
  font: 500 clamp(48px, 5.3vw, 72px) / 1.06 Georgia, Times New Roman, serif;
}

.hero h1 span {
  color: var(--brand);
}

.hero .lede {
  max-width: 350px;
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 28px 0 18px;
  font-size: 13px;
  font-weight: 650;
  display: flex;
}

.button-primary {
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  align-items: center;
  gap: 18px;
  padding: 13px 19px;
  display: inline-flex;
}

.button-primary:hover {
  background: var(--brand-hover);
  text-decoration: none;
}

.hero-note {
  color: var(--muted);
  font-size: 11px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 26px;
}

.calculator-shell {
  background: #fff;
  margin: 28px 0 36px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 40px #233b2e08;
}

.home-workspace .calculator-shell {
  margin: 0;
}

.calc-header-bar {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  display: flex;
}

.calc-header-title {
  font-size: 14px;
  font-weight: 650;
}

.calc-privacy-badge {
  background: var(--brand-subtle);
  color: var(--brand);
  white-space: nowrap;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 10px;
}

.calc-workspace {
  grid-template-columns: 1fr 1fr;
  display: grid;
}

.calc-inputs, .calc-output {
  min-width: 0;
  padding: 24px;
}

.calc-inputs {
  border-right: 1px solid var(--line);
}

.calc-workspace h3 {
  letter-spacing: 0;
  font-size: 13px;
}

.calc-hint {
  color: var(--muted);
  margin: 4px 0 18px;
  font-size: 11px;
}

#calc-form {
  gap: 16px;
  display: grid;
}

#calc-form label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.input-wrapper, .select-wrapper {
  background: #fff;
  border: 1px solid #cbd6c8;
  border-radius: 8px;
  align-items: center;
  min-height: 46px;
  display: flex;
}

.input-wrapper:focus-within, .select-wrapper:focus-within {
  border-color: var(--brand);
  outline: 3px solid #28634825;
}

.input-wrapper input, .select-wrapper select {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  background: none;
  border: 0;
  outline: none;
  padding: 10px;
  font-size: 16px;
}

.select-wrapper select {
  font-size: 14px;
}

.input-prefix, .input-suffix {
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
}

.input-prefix {
  padding-right: 0;
}

.input-suffix {
  padding-left: 0;
}

.preset-wrap {
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 2px;
  display: flex;
}

.preset-label {
  color: var(--muted);
  width: 100%;
  margin-bottom: 2px;
  font-size: 10px;
}

.preset-chip {
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  background: #fff;
  border-radius: 6px;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 11px;
}

.preset-chip:hover, .preset-chip.active {
  background: var(--brand-subtle);
  border-color: var(--brand);
  color: var(--brand);
}

#calc-results {
  margin-top: 18px;
}

.result-primary {
  border-bottom: 1px solid #d1dccb;
  margin-bottom: 10px;
  padding-bottom: 20px;
}

.result-hero-header {
  align-items: center;
  gap: 10px;
  display: flex;
}

.result-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.result-primary .result-value {
  letter-spacing: -.05em;
  color: var(--brand-dark);
  margin-top: 8px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 650;
  line-height: 1.3;
}

.result-value {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.result-secondary-grid {
  gap: 0;
  display: grid;
}

.result-secondary {
  border-bottom: 1px solid #e1e7dc;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  display: flex;
}

.result-secondary .result-value {
  text-align: right;
  font-size: 14px;
  font-weight: 650;
}

.result-secondary .result-label {
  max-width: 60%;
}

.calc-distribution-wrap {
  margin-top: 22px;
}

.dist-bar-track {
  border-radius: 10px;
  height: 7px;
  display: flex;
  overflow: hidden;
}

.dist-bar-fill.net, .legend-dot.net {
  background: var(--brand);
}

.dist-bar-fill.tax, .legend-dot.tax {
  background: #b9c9ac;
}

.dist-bar-legend {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 10px;
  display: flex;
}

.legend-dot {
  border-radius: 50%;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  display: inline-block;
}

.calc-actions {
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px 0;
  display: flex;
}

.btn-action {
  color: var(--muted);
  background: none;
  border: 0;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-right: 12px;
  padding: 6px 0;
  font-size: 11px;
  display: inline-flex;
}

.btn-action:hover {
  color: var(--brand);
}

.action-toast {
  width: 100%;
  color: var(--brand);
  font-size: 12px;
  display: none;
}

.action-toast.show {
  display: block;
}

.trust-note {
  color: var(--muted);
  padding: 12px 24px 20px;
  font-size: 11px;
  line-height: 1.6;
}

.calc-error {
  color: #a32e23;
  font-size: 12px;
}

.input-wrapper:has([aria-invalid="true"]) {
  border-color: #a32e23;
}

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 30px 0 44px;
  padding: 22px 0;
  display: grid;
}

.proof-item {
  border-right: 1px solid var(--line);
  padding: 0 18px;
}

.proof-item:first-child {
  padding-left: 0;
}

.proof-item:last-child {
  border: 0;
}

.proof-tag {
  color: var(--muted);
  letter-spacing: .12em;
  font-size: 9px;
  display: block;
}

.proof-item strong {
  margin: 4px 0;
  font-size: 14px;
  display: block;
}

.proof-item > span:last-child {
  color: var(--muted);
  font-size: 11px;
}

.quick-answer {
  border-left: 3px solid var(--brand);
  margin: 30px 0;
  padding: 4px 20px;
}

.quick-answer strong {
  color: var(--brand);
  font-size: 12px;
}

.quick-answer p {
  font-size: 14px;
}

.tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.tool-link {
  color: inherit;
  display: block;
}

.tool-link:hover {
  text-decoration: none;
}

.tool-link .card {
  border-radius: 12px;
  height: 100%;
  padding: 24px;
  transition: border-color .15s, transform .15s;
}

.tool-link:hover .card {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.tool-link p {
  color: var(--muted);
  font-size: 13px;
}

.tag {
  color: var(--brand);
  margin-bottom: 18px;
  font-size: 10px;
  display: inline-block;
}

.tool-arrow {
  color: var(--brand);
  margin-top: 24px;
  font-size: 12px;
  font-weight: 650;
}

.state-list, .links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.state-list a, .links a {
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  background: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  display: block;
}

.ref-table-wrap {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  margin: 24px 0;
  overflow-x: auto;
}

.ref-table {
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  width: 100%;
  font-size: 13px;
}

.ref-table caption {
  text-align: left;
  color: var(--muted);
  padding: 16px;
  font-size: 12px;
}

.ref-table th {
  background: var(--surface-subtle);
}

.ref-table th, .ref-table td {
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  padding: 12px 16px;
}

.ref-table tr:last-child td {
  border: 0;
}

.faq {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.faq p {
  max-width: 800px;
  font-size: 14px;
}

.next-step-box, .embed-box {
  background: var(--surface-subtle);
  border-radius: 12px;
  margin: 24px 0;
  padding: 24px;
}

.next-step-links {
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  display: flex;
}

.embed-box summary {
  cursor: pointer;
  font-size: 14px;
}

.embed-code {
  border: 1px solid var(--line);
  width: 100%;
  height: 100px;
  margin-top: 10px;
  padding: 12px;
  font: 12px / 1.5 monospace;
}

.embed-footer {
  display: none;
}

.budget-bar-track {
  border-radius: 10px;
  height: 10px;
  margin: 20px 0;
  display: flex;
  overflow: hidden;
}

.budget-bar-fill {
  font-size: 0;
}

.budget-bar-fill.needs {
  background: var(--brand);
}

.budget-bar-fill.wants {
  background: #739086;
}

.budget-bar-fill.savings {
  background: #b9c9ac;
}

.budget-cards-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  display: grid;
}

.budget-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 20px;
}

.budget-category {
  color: var(--muted);
  font-size: 12px;
}

.budget-amount {
  font-size: 25px;
  font-weight: 650;
}

.budget-amount span, .budget-desc {
  font-size: 12px;
}

.principles > div {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.principles span {
  color: var(--muted);
  font-size: 14px;
  display: block;
}

footer.site {
  color: #fff;
  background: #20392e;
  margin-top: 40px;
  padding: 52px 0;
}

.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr .7fr;
  gap: 36px;
  display: grid;
}

footer .brand {
  color: #fff;
}

footer p {
  color: #bdcabe;
  font-size: 12px;
}

footer h2 {
  color: #e2eadb;
  letter-spacing: 0;
  margin: 0 0 18px;
  font-size: 12px;
}

footer a:not(.brand) {
  color: #bdcabe;
  margin: 8px 0;
  font-size: 12px;
  display: block;
}

footer a:hover {
  color: #fff;
}

@media (width >= 1100px) {
  .tool-page .calc-inputs #calc-form {
    grid-template-columns: 1fr 1fr;
  }

  .tool-page .calc-inputs .preset-wrap {
    grid-column: 1 / -1;
  }
}

@media (width <= 1000px) {
  .home-workspace {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero {
    max-width: 700px;
  }

  .hero h1 br {
    display: none;
  }

  .hero h1 br:after {
    content: " ";
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero .lede {
    max-width: 540px;
  }

  .brand-row nav {
    gap: 16px;
  }

  .brand-row nav a {
    font-size: 12px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 640px) {
  .site-width, main, .home-page main {
    width: calc(100% - 32px);
  }

  main {
    padding-top: 24px;
  }

  .brand-row {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 0;
    padding: 18px 0;
  }

  .brand-row nav {
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .brand-row nav a {
    padding: 4px 0;
    font-size: 11px;
  }

  .brand-row nav a:last-child {
    border: 0;
    padding-left: 0;
  }

  .brand {
    font-size: 20px;
  }

  .home-workspace {
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 1.12;
  }

  .hero .meta-badge {
    font-size: 9px;
  }

  .hero-note {
    font-size: 10px;
  }

  .calc-workspace {
    grid-template-columns: 1fr;
  }

  .calc-inputs {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .calc-inputs, .calc-output {
    padding: 20px;
  }

  .calc-header-bar {
    padding: 16px 20px;
  }

  .calc-header-title {
    font-size: 12px;
  }

  .calc-actions {
    padding: 12px 20px 0;
  }

  .trust-note {
    padding: 10px 20px 18px;
  }

  .tool-grid, .state-list, .links, .budget-cards-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    gap: 12px;
    padding: 18px 0;
  }

  .proof-item {
    padding: 0 8px;
  }

  .proof-tag {
    letter-spacing: .03em;
    font-size: 8px;
  }

  .proof-item strong {
    font-size: 12px;
  }

  .proof-item > span:last-child {
    font-size: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  h2 {
    font-size: 24px;
  }

  .card {
    padding: 20px;
  }

  .calculator-shell {
    padding: 0;
  }

  .meta-badge {
    font-size: 10px;
  }

  .breadcrumb {
    font-size: 11px;
  }

  .result-primary .result-value {
    font-size: 38px;
  }
}

.is-embed body {
  background: none;
}

.is-embed .skip-link, .is-embed header.site, .is-embed footer.site {
  display: none;
}

.is-embed main {
  width: 100%;
  padding: 6px;
}

.is-embed main > :not(.calculator-shell):not(.home-workspace) {
  display: none;
}

.is-embed .home-workspace {
  margin: 0;
  display: block;
}

.is-embed .home-workspace > :not(.calculator-shell) {
  display: none;
}

.is-embed .calculator-shell {
  box-shadow: none;
  margin: 0;
}

.is-embed .embed-footer {
  text-align: center;
  padding: 12px;
  font-size: 11px;
  display: block;
}

.is-embed .calc-actions {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

@media print {
  header.site, footer.site, .hero-actions, .calc-actions, .embed-box, .skip-link {
    display: none;
  }

  body {
    background: #fff;
  }

  main, .home-page main {
    width: 100%;
    padding: 0;
  }

  .home-workspace {
    display: block;
  }

  .hero h1 {
    font-size: 32px;
  }

  .calculator-shell {
    break-inside: avoid;
    box-shadow: none;
  }

  .tool-link .card {
    transform: none;
  }
}

.btn-action:disabled {
  opacity: .45;
  cursor: default;
}

.select-wrapper select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23286348' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center no-repeat;
  border-radius: 7px;
  min-height: 46px;
  padding: 11px 38px 11px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.select-wrapper:hover {
  border-color: #8ba38b;
}

.select-wrapper select option {
  color: var(--ink);
  background: #fff;
}

@supports (appearance: base-select) {
  .select-wrapper select, .select-wrapper select::picker(select) {
    appearance: base-select;
  }

  .select-wrapper select {
    background: none;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-right: 12px;
    display: flex;
  }

  .select-wrapper select::picker-icon {
    color: var(--brand);
    transition: rotate .15s;
  }

  .select-wrapper select:open::picker-icon {
    rotate: 180deg;
  }

  .select-wrapper select::picker(select) {
    border: 1px solid var(--line);
    color: var(--ink);
    background: #fff;
    border-radius: 12px;
    margin-top: 6px;
    padding: 6px;
    font: 14px / 1.5 ui-sans-serif, system-ui, sans-serif;
    box-shadow: 0 12px 32px #20392e20;
  }

  .select-wrapper select option {
    cursor: pointer;
    border-radius: 7px;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px;
    display: flex;
  }

  .select-wrapper select option:hover, .select-wrapper select option:focus-visible {
    background: var(--surface-subtle);
    outline: none;
  }

  .select-wrapper select option:checked {
    background: var(--brand-subtle);
    color: var(--brand-dark);
    font-weight: 650;
  }

  .select-wrapper select option::checkmark {
    color: var(--brand);
  }
}

@media (width <= 640px) {
  .select-wrapper select {
    font-size: 16px;
  }
}

.meta-badge {
  letter-spacing: .06em;
  font-size: 12px;
}

.hero h1 {
  letter-spacing: -.055em;
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 1.12;
}

.hero .lede {
  font-size: 18px;
  line-height: 1.65;
}

.hero-note {
  font-size: 12px;
}

.hero-actions {
  font-size: 14px;
}

.calc-header-title {
  font-size: 16px;
}

.calc-privacy-badge {
  padding: 4px 10px;
  font-size: 12px;
}

.calc-workspace h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.calc-hint {
  margin-bottom: 20px;
  font-size: 13px;
}

#calc-form label {
  font-size: 14px;
}

.input-wrapper, .select-wrapper {
  min-height: 50px;
}

.input-wrapper input {
  padding: 12px;
  font-size: 17px;
}

.input-prefix, .input-suffix {
  font-size: 14px;
}

.select-wrapper select {
  min-height: 50px;
  font-size: 15px;
}

.preset-label {
  margin-bottom: 4px;
  font-size: 12px;
}

.preset-chip {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 12px;
}

.preset-wrap {
  gap: 6px;
}

.calc-output {
  background: #eef3e9;
}

.result-primary {
  background: #203e2e;
  border: none;
  border-radius: 12px;
  margin-bottom: 14px;
  padding: 20px;
}

.result-primary .result-label {
  color: #d1dfc9;
  font-size: 13px;
}

.result-primary .result-value {
  color: #fff;
  margin-top: 10px;
  font-size: clamp(30px, 3vw, 40px);
}

.result-secondary {
  gap: 16px;
  padding: 13px 0;
}

.result-secondary .result-label {
  font-size: 13px;
}

.result-secondary .result-value {
  font-size: 16px;
}

.dist-bar-track {
  height: 9px;
}

.dist-bar-legend {
  font-size: 12px;
  line-height: 1.6;
}

.btn-action {
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 40px;
  margin-right: 0;
  padding: 8px 10px;
  font-size: 13px;
}

.btn-action:hover {
  background: var(--brand-subtle);
  border-color: #8ba38b;
}

.calc-actions {
  gap: 8px;
  padding-bottom: 4px;
}

.trust-note {
  font-size: 12px;
}

.proof-tag {
  font-size: 10px;
}

.proof-item strong {
  font-size: 16px;
}

.proof-item > span:last-child {
  font-size: 13px;
}

.tool-link .card {
  flex-direction: column;
  padding: 26px;
  display: flex;
}

.tool-link h3 {
  font-size: 20px;
}

.tool-link p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
}

.tool-link .tag {
  margin-bottom: 14px;
  font-size: 12px;
}

.tool-link .tool-arrow {
  margin-top: auto;
  font-size: 14px;
}

.tool-grid {
  gap: 20px;
}

.browse-section {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  margin: 20px 0;
}

.browse-section summary {
  cursor: pointer;
  padding: 22px 24px;
  font-size: 18px;
  font-weight: 600;
}

.browse-section summary:hover {
  color: var(--brand);
}

.browse-content {
  padding: 0 24px 24px;
}

.browse-content > p {
  margin-top: 0;
  font-size: 15px;
}

.ref-table th, .ref-table td {
  font-size: 14px;
}

.breadcrumb {
  font-size: 13px;
}

.state-list a, .links a {
  font-size: 15px;
}

footer a:not(.brand), footer p, footer h2 {
  font-size: 14px;
}

@media (width <= 1000px) {
  .hero h1 {
    font-size: 54px;
  }

  .hero .lede {
    max-width: 600px;
  }

  .home-workspace {
    gap: 24px;
  }
}

@media (width <= 640px) {
  .brand-row nav a {
    align-items: center;
    min-height: 36px;
    font-size: 12px;
    display: flex;
  }

  .brand-row {
    gap: 8px;
    padding: 12px 0;
  }

  .hero h1 {
    margin: 16px 0;
    font-size: 39px;
  }

  .hero .meta-badge {
    font-size: 11px;
  }

  .hero .lede {
    margin: 0;
    font-size: 16px;
  }

  .hero-actions {
    gap: 14px;
    margin: 20px 0 12px;
    font-size: 13px;
  }

  .hero-note {
    margin-bottom: 0;
    font-size: 11px;
  }

  .button-primary {
    gap: 10px;
    padding: 12px 14px;
  }

  .home-workspace {
    gap: 22px;
  }

  .calc-header-title {
    font-size: 15px;
  }

  .calc-privacy-badge {
    font-size: 11px;
  }

  .preset-chip {
    min-height: 44px;
    padding: 9px 10px;
  }

  .select-wrapper select {
    font-size: 16px;
  }

  .result-primary .result-value {
    font-size: 38px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 0;
  }

  .proof-item, .proof-item:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }

  .proof-tag {
    display: none;
  }

  .proof-item strong {
    margin-right: 8px;
    font-size: 14px;
    display: inline;
  }

  .proof-item > span:last-child {
    font-size: 12px;
  }

  .browse-section summary {
    padding: 18px;
    font-size: 16px;
  }

  .browse-content {
    padding: 0 18px 18px;
  }
}

@media print {
  .browse-section {
    break-inside: avoid;
  }
}
