.calc-page { padding-bottom: 80px; }
.calc-intro { padding-top: clamp(56px, 6vw, 88px); }
.calc-intro .eyebrow { margin-bottom: 14px; }
.calc-intro h1 { max-width: 790px; font-size: clamp(40px, 5vw, 68px); }
.calc-lede { max-width: 760px; margin-top: 20px; color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55; }
.calc-beta-note { margin-top: 8px; color: var(--muted); font-size: 14px; }
.calc-workspace { padding-top: 36px; }
.calc-tabs { display: inline-flex; max-width: 100%; padding: 4px; margin-bottom: 24px; border-radius: 999px; background: var(--gray); }
.calc-tabs button { min-width: 128px; min-height: 46px; padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--graphite); font-size: 15px; font-weight: 700; cursor: pointer; }
.calc-tabs button[aria-selected="true"] { background: var(--navy); color: var(--cream); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; gap: 28px; }
.calc-input-card, .calc-result-card { min-width: 0; padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.calc-panel { min-height: 290px; }
.calc-panel[hidden] { display: none; }
.calc-panel fieldset { margin: 0; padding: 0 0 24px; border: 0; }
.calc-panel fieldset + fieldset { padding-top: 28px; border-top: 1px solid var(--line); }
.calc-panel legend { width: 100%; margin-bottom: 22px; padding: 0; color: var(--navy); font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.calc-field + .calc-field { margin-top: 22px; }
.calc-field label, .calc-stress-field label { display: block; margin-bottom: 8px; color: var(--graphite); font-weight: 700; }
.calc-control { display: flex; min-width: 0; min-height: 50px; overflow: hidden; border: 1px solid #bbb7b1; border-radius: 10px; background: #fff; }
.calc-control:focus-within { border-color: var(--navy); outline: 2px solid var(--turquoise); outline-offset: 1px; }
.calc-control span { display: flex; align-items: center; padding: 0 14px; background: #faf3ee; color: var(--muted); font-weight: 700; }
.calc-control input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 0; background: transparent; color: var(--graphite); font: inherit; }
.calc-control input:focus { outline: 0; }
.calc-control:has(input[aria-invalid="true"]) { border-color: #b75635; }
.calc-field p, .calc-tax-notice { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.calc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.calc-pair .calc-field + .calc-field { margin-top: 0; }
.calc-tax-notice { margin: 0 0 24px; padding: 15px 17px; border-left: 4px solid var(--turquoise); border-radius: 9px; background: #faf3ee; color: var(--graphite); }
.calc-optional { color: var(--muted); font-size: 13px; font-weight: 400; }
.calc-field .calc-field-error, .calc-field-error { margin: 7px 0 0; color: #a23e24; font-size: 13px; font-weight: 700; }
.calc-field-error[hidden] { display: none; }
.calc-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; padding-top: 26px; border-top: 1px solid var(--line); }
.calc-submit .button:disabled { opacity: .6; cursor: not-allowed; }
.calc-privacy { max-width: 290px; padding: 10px 14px; border-left: 3px solid var(--turquoise); background: #eef2ec; color: var(--navy); font-size: 13px; line-height: 1.45; }
.calc-result-card { min-height: 397px; }
.calc-result-empty { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 30px; border-radius: 14px; background: var(--navy); color: var(--cream); font-size: 22px; font-weight: 650; text-align: center; }
.calc-error-box { padding: 20px; border: 1px solid #b75635; border-radius: 12px; background: #f8e7de; color: #8c301a; font-weight: 700; }
.calc-price { padding: 22px 24px; border-radius: 15px; background: var(--navy); color: var(--cream); }
.calc-price span, .calc-price small { display: block; }
.calc-price span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.calc-price strong { display: block; margin: 8px 0 3px; font-size: clamp(38px, 5vw, 64px); line-height: 1.1; overflow-wrap: anywhere; }
.calc-price small { font-size: 14px; }
.calc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 17px; }
.calc-stats > div { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #faf3ee; }
.calc-stats span, .calc-stats strong, .calc-stats small { display: block; }
.calc-stats span { font-size: 13px; line-height: 1.3; }
.calc-stats strong { margin: 5px 0; color: var(--navy); font-size: clamp(17px, 1.7vw, 23px); overflow-wrap: anywhere; }
.calc-stats small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.calc-result-section { margin-top: 26px; padding-top: 25px; border-top: 1px solid var(--line); }
.calc-result-section h2 { color: var(--navy); font-size: clamp(23px, 2.4vw, 31px); }
.calc-result-section h3 { margin: 22px 0 15px; color: var(--navy); font-size: 20px; }
.calc-result-section h4 { margin: 0 0 6px; color: var(--navy); font-size: 16px; }
.calc-result-section p { margin-top: 12px; font-size: 14px; line-height: 1.5; }
.calc-bar { display: flex; height: 16px; margin: 18px 0 14px; overflow: hidden; border-radius: 99px; background: #eee; }
.calc-bar span { min-width: 0; }
.calc-legend { margin: 0; padding: 0; list-style: none; }
.calc-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.calc-legend i { width: 10px; height: 10px; margin-top: 4px; border-radius: 3px; }
.calc-legend strong { color: var(--graphite); overflow-wrap: anywhere; }
.calc-legend li > span:last-child { min-width: 42px; color: var(--muted); text-align: right; }
.calc-fine { color: var(--muted); font-size: 12px !important; }
.calc-scenario { margin-top: 14px; padding: 16px; border-radius: 12px; background: #eef2ec; color: var(--graphite); }
.calc-scenario p { margin-top: 4px; }
.calc-warning { border: 1px solid #c78060; background: #f8e7de; color: #8c301a; }
.calc-stress-field { margin-top: 15px; }
.calc-stress-field .calc-control { max-width: 150px; }
.calc-callouts { display: grid; gap: 16px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.calc-cta { padding: 24px; border-radius: 14px; background: #eef2ec; }
.calc-cta h3 { font-size: 19px; }
.calc-cta p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.calc-cta .button { margin-top: 18px; }
.calc-button-outline { border-color: var(--navy); background: transparent; }
.calc-button-outline:hover { background: #dce8e2; }
.calc-reading { margin-top: 72px; }
.calc-info { min-height: 120px; padding: 34px 0; border-top: 1px solid var(--line); }
.calc-info h2 { max-width: 820px; font-size: clamp(28px, 3vw, 40px); }
.calc-info p, .calc-points { max-width: 820px; margin-top: 18px; color: var(--muted); font-size: 16px; }
.calc-info strong { color: var(--navy); }
.calc-formula { width: fit-content; max-width: 100%; padding: 16px 20px; border-left: 3px solid var(--turquoise); background: #fff; color: var(--navy) !important; font-weight: 650; overflow-wrap: anywhere; }
.calc-points { padding-left: 22px; }
.calc-points li + li { margin-top: 12px; }
.calc-faq details { max-width: 820px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.calc-faq details:first-of-type { margin-top: 18px; border-top: 1px solid var(--line); }
.calc-faq summary { color: var(--navy); font-weight: 650; cursor: pointer; }
.calc-faq details p { margin: 10px 0 0; }
.calc-faq details a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.calc-feedback { min-height: 150px; padding-inline: 28px; background: #eef2ec; border: 0; }
.calc-feedback .button { margin-top: 20px; }
.calc-feedback .calc-fine { font-size: 13px; }
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-panel { min-height: 180px; }
  .calc-result-card { min-height: 320px; }
}
@media (max-width: 600px) {
  .calc-page { padding-bottom: 56px; }
  .calc-intro { padding-top: 48px; }
  .calc-intro h1 { font-size: clamp(36px, 10vw, 46px); }
  .calc-workspace { padding-top: 28px; }
  .calc-tabs { width: 100%; }
  .calc-tabs button { min-width: 0; width: 50%; }
  .calc-grid { gap: 20px; }
  .calc-input-card, .calc-result-card { padding: 22px; }
  .calc-pair { grid-template-columns: 1fr; }
  .calc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-legend li { gap: 6px; font-size: 12px; }
  .calc-legend li > span:last-child { min-width: 0; }
  .calc-submit .button { width: 100%; }
  .calc-privacy { max-width: none; width: 100%; }
  .calc-result-empty { min-height: 150px; font-size: 20px; }
  .calc-cta { padding: 20px; }
  .calc-cta .button { width: 100%; }
  .calc-reading { margin-top: 54px; }
  .calc-info { min-height: 100px; padding: 28px 0; }
  .calc-feedback { padding-inline: 20px; }
}
