/* ── Calculator page styles ───────────────────────────────────────────────── */

.nav-pill {
  margin-left: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.65rem;
  border-radius: 2rem;
}

/* Page wrapper */
.calc-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* Header */
.calc-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.calc-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 1rem 0 1.25rem;
}
.calc-headline-em {
  font-style: italic;
  color: var(--accent);
}
.calc-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* Two-column layout */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Input card */
.calc-card {
  background: var(--surface);
  border: 1.5px solid rgba(26, 92, 58, 0.12);
  border-radius: 1.25rem;
  padding: 2rem 2rem 2rem;
}
.calc-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.calc-step-num {
  width: 28px; height: 28px;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.calc-step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-muted);
}

/* Fields */
.calc-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.calc-field-hint {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-subtle);
  margin-left: 0.35rem;
}

/* Prefix input ($) */
.calc-input-prefix {
  position: relative;
}
.calc-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--fg-muted);
  pointer-events: none;
}
.calc-input-prefix .form-input {
  padding-left: 1.75rem;
}

/* Slider */
.calc-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent) 30%, rgba(26,92,58,0.15) 30%);
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  cursor: pointer;
}
.calc-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  cursor: pointer;
}
.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--fg-subtle);
}
.calc-slider-val {
  font-weight: 700;
  color: var(--accent);
}

/* Toggle buttons */
.calc-toggle-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.calc-toggle-option {
  cursor: pointer;
}
.calc-toggle-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.calc-toggle-btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  border: 1.5px solid rgba(26, 92, 58, 0.15);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.15s;
}
.calc-toggle-option input[type="radio"]:checked + .calc-toggle-btn {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Compute button */
.calc-compute-btn {
  width: 100%;
}

/* Result panel */
.calc-result-panel {
  background: var(--surface);
  border: 1.5px solid rgba(26, 92, 58, 0.12);
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

/* Empty state */
.calc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 1;
  padding: 3rem 2rem;
  text-align: center;
}
.calc-empty-icon {
  color: var(--fg-subtle);
  opacity: 0.4;
}
.calc-empty-text {
  font-size: 0.9rem;
  color: var(--fg-subtle);
  max-width: 28ch;
  line-height: 1.6;
}

/* Teaser */
.calc-teaser {
  display: flex;
  flex-direction: column;
}
.calc-teaser-lost {
  background: var(--accent);
  padding: 2.5rem 2rem;
  text-align: center;
}
.calc-teaser-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin: 0 0 0.5rem;
}
.calc-teaser-num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.5rem;
}
.calc-teaser-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Gate */
.calc-gate {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.calc-gate-blur {
  background: var(--bg);
  border: 1px solid rgba(26, 92, 58, 0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.calc-blur-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.calc-blur-val {
  filter: blur(5px);
  color: var(--fg);
  font-weight: 600;
  user-select: none;
}
.calc-gate-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.calc-gate-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  margin: 0;
}
.calc-gate-sub {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0;
}
.calc-unlock-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.calc-privacy {
  font-size: 0.7rem;
  color: var(--fg-subtle);
  text-align: center;
  margin: 0;
  font-style: italic;
}

/* Full report */
.calc-report {
  display: flex;
  flex-direction: column;
}
.calc-report-hero {
  background: var(--accent);
  padding: 2.5rem 2rem;
  text-align: center;
}
.calc-report-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin: 0 0 0.5rem;
}
.calc-report-lost {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}
.calc-report-recovery {
  background: var(--accent-light);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(26, 92, 58, 0.1);
}
.calc-report-recovery-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
.calc-report-recovery-range {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.calc-report-assumption {
  font-size: 0.72rem;
  color: var(--accent);
  opacity: 0.75;
  margin: 0;
  line-height: 1.5;
}
.calc-report-tier {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(26, 92, 58, 0.08);
}
.calc-report-tier-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  flex-shrink: 0;
}
.calc-report-tier-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}
.calc-report-cta {
  display: block;
  margin: 1.25rem 2rem;
  text-align: center;
  text-decoration: none;
}
.calc-report-email-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--fg-subtle);
  padding: 0 2rem 1.5rem;
  margin: 0;
}
.calc-back-link {
  color: var(--accent);
  text-decoration: none;
  margin-left: 0.5rem;
}

/* Trust strip */
.calc-trust {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .calc-page {
    padding: 2rem 1.25rem 4rem;
  }
  .calc-trust {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .calc-toggle-group {
    flex-direction: column;
  }
  .calc-toggle-btn {
    display: block;
    text-align: center;
  }
}
