.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.calculator-main {
  overflow-x: hidden;
  overflow-x: clip;
}

.calculator-main section {
  max-width: none;
}

.calculator-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
  max-width: 1180px !important;
  min-height: 610px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.calculator-intro h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: .98;
  letter-spacing: -.04em;
}

.calculator-lede {
  margin: 22px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.calculator-note {
  margin: 16px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.calculator-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calculator-card form {
  padding: 30px;
}

.calculator-card fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.calculator-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field-group label {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.field-hint {
  display: block;
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.money-input {
  display: flex;
  align-items: center;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.money-input:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(198, 83, 36, .13);
}

.money-input span {
  padding-left: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
}

.money-input input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
}

.money-input input::placeholder {
  color: #b5aa9c;
}

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

.calculation-error {
  min-height: 20px;
  margin: 14px 0 0;
  color: #9d2c1b;
  font-size: 12px;
  font-weight: 700;
}

.calculator-actions {
  display: flex;
  gap: 12px;
}

.calculator-actions button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.calculator-actions .reset-button {
  color: var(--muted);
}

.calculator-actions button:hover {
  text-decoration: underline;
}

.calculator-results {
  padding: 28px 30px 30px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.results-eyebrow {
  margin: 0 0 16px;
  color: #efb18f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.result-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.result-row > div + div {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.result-label {
  display: block;
  margin-bottom: 5px;
  color: #d8cfc3;
  font-size: 12px;
  font-weight: 600;
}

.result-row strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.04em;
}

.result-reading {
  margin: 18px 0 0;
  color: #d8cfc3;
  font-size: 13px;
  line-height: 1.55;
}

.product-bridge {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: center;
  max-width: 1120px !important;
  padding: 38px 42px !important;
  border-radius: 18px;
  background: var(--orange-tint);
}

.product-bridge h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.025em;
}

.product-bridge p:not(.section-eyebrow) {
  max-width: 740px;
  margin: 0;
  color: #5f4d3e;
  font-size: 15px;
  line-height: 1.65;
}

.product-bridge-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.calculator-guide {
  max-width: 820px;
  margin: 0 auto;
  padding: 70px 28px 110px;
}

.calculator-guide .guide-section {
  padding: 54px 0;
  border-bottom: 1px solid var(--line-soft);
}

.calculator-guide .guide-section:last-child {
  border-bottom: 0;
}

.guide-section h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.guide-section > p:not(.section-eyebrow) {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.guide-section a {
  color: var(--orange-dark);
  font-weight: 700;
}

.formula-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  background: var(--soft);
  font-family: var(--mono);
  font-size: 14px;
}

.formula-box b {
  color: var(--orange-dark);
}

.formula-box strong {
  color: var(--green);
}

.guide-section--tinted {
  margin: 24px -32px;
  padding: 38px 32px !important;
  border: 0 !important;
  border-radius: 16px;
  background: var(--soft);
}

.example-math {
  margin: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.example-math p {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  margin: 0;
  padding: 17px 0;
  color: var(--ink);
}

.example-math p + p {
  border-top: 1px solid var(--line);
}

.example-math span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.example-math strong {
  font-family: var(--mono);
  font-size: 14px;
}

.mistake-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.mistake-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.mistake-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}

.mistake-list strong {
  color: var(--ink);
}

.calculator-faq .section-heading {
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .calculator-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .calculator-intro {
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  .calculator-hero {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .calculator-fields {
    grid-template-columns: 1fr;
  }

  .field-hint {
    min-height: 0;
  }

  .calculator-card form,
  .calculator-results {
    padding: 24px 20px;
  }

  .product-bridge {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 0 20px;
    padding: 30px 24px !important;
  }

  .product-bridge-cta {
    width: 100%;
  }

  .calculator-guide {
    padding: 40px 20px 80px;
  }

  .guide-section--tinted {
    margin-right: 0;
    margin-left: 0;
    padding: 28px 22px !important;
  }

  .example-math p {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .result-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .result-row > div + div {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    border-left: 0;
  }
}

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