.eh-calculator-page {
  --eh-forest: #193e35;
  --eh-forest-dark: #102c25;
  --eh-ink: #182c27;
  --eh-muted: #5b6863;
  --eh-paper: #fbfcf8;
  --eh-panel: #f1f5ef;
  --eh-line: #c5d3cb;
  --eh-solar: #d6a13b;
  --eh-alert: #8a4c1e;
  background: var(--eh-paper);
  color: var(--eh-ink);
}

.eh-calculator-page .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;
}

.eh-calculator-page a {
  color: var(--eh-forest);
}

.eh-calc-hero,
.eh-calc-section,
.eh-calc-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.eh-calc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(2.25rem, 5vw, 4.5rem);
}

.eh-calc-kicker,
.eh-calc-label,
.eh-calc-result-type {
  color: var(--eh-forest);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eh-calc-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
}

.eh-calc-kicker::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--eh-solar);
}

.eh-calc-hero h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--eh-forest-dark);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.55rem, 6vw, 5rem);
  letter-spacing: -.055em;
  line-height: .98;
}

.eh-calc-hero-intro {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  color: #354943;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.eh-calc-hero-note {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  padding: 1.3rem;
  border-top: 3px solid var(--eh-solar);
  background: var(--eh-forest);
  color: #f1f5ef;
}

.eh-calc-hero-note strong {
  display: block;
  max-width: 18ch;
  color: #fff;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.eh-calc-hero-note p {
  max-width: 34ch;
  margin: 1.5rem 0 0;
  color: #d9e7dd;
  font-size: .93rem;
  line-height: 1.55;
}

.eh-calc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 1px;
  align-items: start;
  background: var(--eh-line);
  border: 1px solid var(--eh-line);
}

.eh-calc-shell.is-complete {
  display: block;
  background: var(--eh-panel);
}

.eh-calc-form-panel,
.eh-calc-live-panel {
  min-width: 0;
  background: #fff;
}

.eh-calc-form-panel {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.eh-calc-live-panel {
  position: sticky;
  top: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--eh-panel);
}

.eh-calc-shell.is-complete .eh-calc-form-panel {
  display: none;
}

.eh-calc-shell.is-complete .eh-calc-live-panel {
  position: static;
  padding: clamp(1.35rem, 4vw, 3rem);
}

.eh-calc-progress {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  color: var(--eh-muted);
  font-size: .85rem;
}

.eh-calc-progress strong {
  color: var(--eh-forest);
}

.eh-calc-progress-bar {
  height: 4px;
  margin-top: .55rem;
  background: #dce6df;
}

.eh-calc-progress-bar span {
  display: block;
  width: 33.333%;
  height: 100%;
  background: var(--eh-solar);
  transition: width .2s ease;
}

.eh-calc-step[hidden],
.eh-calc-result[hidden] {
  display: none;
}

.eh-calc-step h2,
.eh-calc-section h2 {
  margin: 0;
  color: var(--eh-forest-dark);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -.04em;
  line-height: 1.05;
}

.eh-calc-step-intro {
  margin: .65rem 0 1.25rem;
  color: var(--eh-muted);
  line-height: 1.55;
}

.eh-calc-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

.eh-calc-option,
.eh-calc-choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-height: 54px;
  padding: .8rem .85rem;
  border: 1px solid var(--eh-line);
  background: #fff;
  cursor: pointer;
  line-height: 1.35;
  transition: border-color .15s ease, background-color .15s ease;
}

.eh-calc-option:hover,
.eh-calc-choice:hover,
.eh-calc-option:has(input:focus-visible),
.eh-calc-choice:has(input:focus-visible) {
  border-color: var(--eh-forest);
}

.eh-calc-option:has(input:checked),
.eh-calc-choice:has(input:checked) {
  border-color: var(--eh-forest);
  background: #eaf1e9;
}

.eh-calc-option input,
.eh-calc-choice input {
  width: 1.1rem;
  height: 1.1rem;
  margin: .1rem 0 0;
  accent-color: var(--eh-forest);
  flex: 0 0 auto;
}

.eh-calc-option small {
  display: block;
  margin-top: .2rem;
  color: var(--eh-muted);
  font-size: .78rem;
}

.eh-calc-help,
.eh-calc-warning {
  margin: 1rem 0 0;
  padding: .85rem 1rem;
  border-left: 3px solid var(--eh-solar);
  background: #fff8e9;
  color: #5e4a25;
  font-size: .9rem;
  line-height: 1.5;
}

.eh-calc-warning {
  border-left-color: var(--eh-alert);
  background: #fff5ed;
  color: #663c23;
}

.eh-calc-load-list {
  display: grid;
  gap: .7rem;
  margin: 1rem 0 1.25rem;
}

.eh-calc-load-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 120px;
  gap: .6rem;
  align-items: end;
  padding: .8rem;
  border: 1px solid var(--eh-line);
  background: var(--eh-panel);
}

.eh-calc-load-name strong,
.eh-calc-field label,
.eh-calc-choice-group legend {
  display: block;
  color: var(--eh-ink);
  font-size: .86rem;
  font-weight: 750;
}

.eh-calc-load-name small {
  display: block;
  margin-top: .25rem;
  color: var(--eh-muted);
  font-size: .75rem;
}

.eh-calc-field input,
.eh-calc-field select {
  width: 100%;
  min-height: 42px;
  margin-top: .35rem;
  padding: .55rem .65rem;
  border: 1px solid #9fb3a8;
  border-radius: 0;
  background: #fff;
  color: var(--eh-ink);
  font: inherit;
}

.eh-calc-field input:focus-visible,
.eh-calc-field select:focus-visible,
.eh-calc-btn:focus-visible,
.eh-calc-result a:focus-visible,
.eh-calc-section a:focus-visible {
  outline: 3px solid var(--eh-solar);
  outline-offset: 3px;
}

.eh-calc-choice-group {
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
}

.eh-calc-choice-group legend {
  margin-bottom: .6rem;
}

.eh-calc-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
}

.eh-calc-choice {
  min-height: 0;
  font-size: .86rem;
}

.eh-calc-actions {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--eh-line);
}

.eh-calc-btn {
  min-height: 48px;
  padding: .8rem 1rem;
  border: 1px solid var(--eh-forest);
  border-radius: 0;
  background: var(--eh-forest);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.25;
}

.eh-calc-btn:hover {
  background: var(--eh-forest-dark);
}

.eh-calc-btn.is-secondary {
  background: #fff;
  color: var(--eh-forest);
}

.eh-calc-btn.is-secondary:hover {
  background: var(--eh-panel);
}

.eh-calc-error {
  margin: 1rem 0 0;
  color: #8a321d;
  font-size: .9rem;
  font-weight: 700;
}

.eh-calc-live-panel > .eh-calc-label {
  margin-bottom: .8rem;
}

.eh-calc-summary {
  margin: 0;
  padding: 1rem 0 1.25rem;
  border-bottom: 1px solid var(--eh-line);
}

.eh-calc-summary strong {
  display: block;
  margin-top: .2rem;
  color: var(--eh-forest-dark);
  font-family: var(--font-display, Georgia, serif);
  font-size: 2.3rem;
  letter-spacing: -.05em;
  line-height: 1;
}

.eh-calc-summary span {
  color: var(--eh-muted);
  font-size: .83rem;
}

.eh-calc-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin-top: 1rem;
}

.eh-calc-metric {
  padding: .8rem;
  border: 1px solid var(--eh-line);
  background: #fff;
}

.eh-calc-metric span,
.eh-calc-metric strong {
  display: block;
}

.eh-calc-metric span {
  color: var(--eh-muted);
  font-size: .75rem;
}

.eh-calc-metric strong {
  margin-top: .2rem;
  color: var(--eh-forest);
  font-size: 1.15rem;
}

.eh-calc-live-note {
  margin: 1rem 0 0;
  color: var(--eh-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.eh-calc-result {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 3px solid var(--eh-solar);
}

.eh-calc-result h2 {
  margin: .3rem 0 .6rem;
  color: var(--eh-forest-dark);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -.04em;
  line-height: 1.05;
}

.eh-calc-result p {
  line-height: 1.55;
}

.eh-calc-result > p {
  margin: .7rem 0;
}

.eh-calc-result-actions {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}

.eh-calc-result-actions .eh-calc-whatsapp {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: .8rem 1rem;
  background: var(--eh-forest);
  color: #fff;
  text-align: center;
  text-decoration: none;
  line-height: 1.25;
  font-weight: 750;
}

.eh-calc-result-actions .eh-calc-change {
  display: block;
  color: var(--eh-forest);
  font-size: .84rem;
  text-align: center;
}

.eh-calc-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: .7rem;
  margin: 1rem 0;
}

.eh-calc-product {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--eh-line);
  background: #fff;
}

.eh-calc-product-image-wrap {
  display: grid;
  min-height: 10rem;
  place-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--eh-line);
  background: #f8fbf6;
}

.eh-calc-product-image {
  width: min(82%, 13rem);
  height: 9rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(25, 62, 53, .14));
}

.eh-calc-product-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.eh-calc-product-category {
  margin: 0 0 .45rem;
  color: var(--eh-forest);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eh-calc-product h3 {
  margin: 0;
  color: var(--eh-forest-dark);
  font-size: 1rem;
  line-height: 1.3;
}

.eh-calc-product h3 a {
  color: inherit;
  text-decoration: none;
}

.eh-calc-product h3 a:hover {
  text-decoration: underline;
}

.eh-calc-product p {
  margin: .45rem 0;
  color: var(--eh-muted);
  font-size: .84rem;
}

.eh-calc-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  margin: .7rem 0;
  font-size: .83rem;
  font-weight: 750;
}

.eh-calc-product-meta span:first-child {
  color: var(--eh-forest);
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.18rem;
  letter-spacing: -.02em;
}

.eh-calc-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: auto;
}

.eh-calc-store-link,
.eh-calc-product-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem .9rem;
  border: 1px solid var(--eh-forest);
  color: var(--eh-forest);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
}

.eh-calc-store-link {
  background: var(--eh-forest);
  color: #fff;
}

.eh-calc-product-actions .eh-calc-store-link,
.eh-calc-product-actions .eh-calc-store-link:hover,
.eh-calc-product-actions .eh-calc-store-link:focus-visible {
  color: #fff;
}

.eh-calc-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: .7rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--eh-line);
}

.eh-calc-articles p {
  grid-column: 1 / -1;
  margin: 0 0 .45rem;
  color: var(--eh-muted);
  font-size: .82rem;
  font-weight: 750;
}

.eh-calc-articles a {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-height: 112px;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--eh-line);
  background: #fff;
  color: var(--eh-forest-dark);
  font-size: .9rem;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.eh-calc-articles a:hover,
.eh-calc-articles a:focus-visible {
  border-color: var(--eh-forest);
  background: #f8fbf6;
  transform: translateY(-2px);
}

.eh-calc-articles a strong {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1rem;
  line-height: 1.2;
}

.eh-calc-articles a span {
  margin-top: auto;
  color: var(--eh-forest);
  font-size: .8rem;
  font-weight: 750;
}

.eh-calc-section {
  padding: clamp(3rem, 7vw, 6rem) 0 0;
}

.eh-calc-section > p {
  max-width: 70ch;
  color: #354943;
  line-height: 1.65;
}

.eh-calc-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.75rem;
  border: 1px solid var(--eh-line);
  background: var(--eh-line);
}

.eh-calc-section-grid > article {
  padding: 1.2rem;
  background: #fff;
}

.eh-calc-section-grid h3 {
  margin: 0 0 .45rem;
  color: var(--eh-forest-dark);
  font-size: 1rem;
}

.eh-calc-section-grid p {
  margin: 0;
  color: var(--eh-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.eh-calc-method {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
  font-size: .9rem;
}

.eh-calc-method th,
.eh-calc-method td {
  padding: .75rem .7rem;
  border-bottom: 1px solid var(--eh-line);
  text-align: left;
  vertical-align: top;
}

.eh-calc-method th {
  color: var(--eh-forest);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.eh-calc-faq {
  display: grid;
  gap: .65rem;
  margin-top: 1.5rem;
}

.eh-calc-faq details {
  border-bottom: 1px solid var(--eh-line);
}

.eh-calc-faq summary {
  padding: .9rem 0;
  color: var(--eh-forest-dark);
  cursor: pointer;
  font-weight: 750;
}

.eh-calc-faq details p {
  max-width: 70ch;
  margin: 0 0 1rem;
  color: var(--eh-muted);
  font-size: .92rem;
  line-height: 1.6;
}

.eh-calc-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.5rem;
  padding-bottom: 4rem;
}

.eh-calc-link-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-height: 170px;
  padding: 1.1rem;
  border: 1px solid var(--eh-line);
  background: #fff;
  color: var(--eh-forest-dark);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.eh-calc-link-card:hover,
.eh-calc-link-card:focus-visible {
  border-color: var(--eh-forest);
  background: #f8fbf6;
  transform: translateY(-2px);
}

.eh-calc-link-card .eh-calc-link-label {
  color: var(--eh-forest);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eh-calc-link-card strong {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.08rem;
  line-height: 1.2;
}

.eh-calc-link-card > span:not(.eh-calc-link-label) {
  color: var(--eh-muted);
  font-size: .86rem;
  line-height: 1.45;
}

.eh-calc-link-card b {
  margin-top: auto;
  color: var(--eh-forest);
  font-size: .85rem;
}

@media (max-width: 900px) {
  .eh-calc-hero,
  .eh-calc-shell {
    grid-template-columns: 1fr;
  }

  .eh-calc-live-panel {
    position: static;
  }

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

@media (max-width: 600px) {
  .eh-calc-hero,
  .eh-calc-section,
  .eh-calc-shell {
    width: min(100% - 1rem, 1120px);
  }

  .eh-calc-hero {
    padding-top: 2.5rem;
  }

  .eh-calc-hero h1 {
    max-width: 15ch;
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .eh-calc-option-grid,
  .eh-calc-choice-grid,
  .eh-calc-section-grid,
  .eh-calc-links {
    grid-template-columns: 1fr;
  }

  .eh-calc-load-row {
    grid-template-columns: 1fr 1fr;
  }

  .eh-calc-load-name {
    grid-column: 1 / -1;
  }

  .eh-calc-method {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .eh-calc-actions {
    flex-direction: column-reverse;
  }

  .eh-calc-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eh-calc-progress-bar span,
  .eh-calc-option,
  .eh-calc-choice {
    transition: none;
  }
}
