.savings-calculator-section {
  padding: clamp(36px, 5vw, 50px) clamp(20px, 4vw, 32px) clamp(44px, 5vw, 56px);
  background: var(--ivory);
}

.pw-savings-calc {
  width: min(var(--shell-width), 100%);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  overflow: hidden;
}

.pw-savings-calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 4vw, 36px);
  padding: clamp(28px, 4vw, 44px);
  align-items: stretch;
}

.pw-savings-calc-main {
  min-width: 0;
}

.pw-savings-calc-heading {
  margin-bottom: 10px;
}

.pw-savings-calc-title {
  color: var(--brand-deep);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.pw-savings-calc-copy {
  max-width: 62ch;
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.pw-savings-calc-pro-name {
  color: var(--brand);
}

.pw-savings-calc-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pw-savings-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pw-savings-tool:hover {
  border-color: rgba(0, 104, 71, 0.32);
  background: #f5faf7;
}

.pw-savings-tool:has(.pw-savings-tool-input:checked) {
  border-color: rgba(0, 104, 71, 0.36);
  background: #f0f7f3;
}

.pw-savings-tool:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.pw-savings-tool-input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.pw-savings-tool-name {
  min-width: 0;
  flex: 1;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
}

.pw-savings-tool-cost {
  color: var(--text-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.pw-savings-calc-summary {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 28px);
  border-radius: 16px;
  background: var(--brand-deep);
  color: var(--ivory);
}

.pw-savings-calc-label {
  display: block;
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.pw-savings-calc-total,
.pw-savings-calc-pro-monthly {
  margin-top: 4px;
  color: var(--ivory);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pw-savings-calc-divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(248, 245, 238, 0.22);
}

.pw-savings-calc-pro-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pw-savings-calc-pro-monthly {
  display: block;
  color: var(--gold);
}

.pw-savings-calc-pro-annual {
  display: block;
  color: rgba(248, 245, 238, 0.78);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.pw-savings-badge {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: var(--gold);
  color: var(--brand-deep);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.pw-savings-badge:hover,
.pw-savings-badge:focus-visible {
  border-color: #f7d97a;
  background: #f7d97a;
}

.pw-savings-badge:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.pw-savings-badge:disabled {
  border-color: rgba(248, 245, 238, 0.32);
  background: var(--brand-deep);
  color: var(--ivory);
  cursor: default;
  opacity: 0.82;
}

.pw-savings-badge--save {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

@media (max-width: 1024px) {
  .pw-savings-calc-layout {
    grid-template-columns: 1fr;
  }

  .pw-savings-calc-summary {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .savings-calculator-section {
    padding: 36px 16px;
  }

  .pw-savings-calc-layout {
    gap: 18px;
    padding: 18px;
  }

  .pw-savings-calc-tools {
    grid-template-columns: 1fr;
  }

  .pw-savings-calc-summary {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pw-savings-tool {
    transition: none;
  }
}
