/* =====================================================
   DealCap USA · /funding — Checklist + Calculator (v36.205)
   Product tabs: EMD · DOUBLE CLOSE · ECHO · STACK
   Dark-premium aesthetic, bronze accents, matches lane cards
   ===================================================== */

.calc-section {
  background: linear-gradient(180deg, #0B0D12 0%, #0F1218 55%, #0B0D12 100%);
  padding: 96px 0 104px;
  color: var(--fund-fog, #EDEEF2);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.calc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.calc-eyebrow {
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember, #627ce6);
  margin: 0 0 12px;
}
.calc-title {
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--fund-fog);
  margin: 0 0 14px;
  max-width: 780px;
}
.calc-sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fund-mute, #8A8F9C);
  margin: 0 0 40px;
  max-width: 640px;
}

/* --- Reassurance banner (persistent above every tab) --- */
.calc-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(98, 124, 230, 0.06);
  border: 1px solid rgba(98, 124, 230, 0.18);
  border-radius: 10px;
  margin-bottom: 36px;
}
.calc-banner__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--ember);
  margin-top: 1px;
}
.calc-banner__body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fund-fog);
}
.calc-banner__body strong {
  color: var(--ember);
  font-weight: 600;
}

/* --- Tab bar --- */
.calc-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--fund-ink-2, #14171F);
  border: 1px solid var(--fund-hair, rgba(255,255,255,.08));
  border-radius: 12px;
  margin-bottom: 32px;
}
.calc-tab {
  flex: 1;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fund-mute);
  transition: color 200ms, background 200ms;
}
.calc-tab:hover {
  color: var(--fund-fog);
}
.calc-tab.is-active {
  color: #0B0D12;
  background: var(--ember);
}
.calc-tab__sub {
  display: block;
  margin-top: 3px;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: none;
  opacity: 0.75;
}

/* --- Product panel (checklist + calculator side-by-side) --- */
.calc-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  background: var(--fund-ink-2);
  border: 1px solid var(--fund-hair);
  border-radius: 14px;
}
.calc-panel.is-active {
  display: grid;
}
@media (max-width: 900px) {
  .calc-panel.is-active {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
  .calc-wrap {
    padding: 0 20px;
  }
  .calc-check {
    padding: 10px 12px;
  }
  .calc-check__text {
    font-size: 13px;
    min-width: 0;
    word-break: break-word;
  }
  .calc-sequence,
  .calc-callout {
    padding: 14px 16px;
  }
  .calc-readout {
    padding: 18px 16px;
  }
}

/* Prevent horizontal overflow at any width */
.calc-section, .calc-wrap, .calc-panel, .calc-side {
  max-width: 100%;
  box-sizing: border-box;
}
.calc-side {
  min-width: 0;
}
.calc-check__text {
  min-width: 0;
  flex: 1;
}
.calc-check {
  box-sizing: border-box;
}

/* --- Left column: checklist --- */
.calc-side-title {
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--fund-fog);
  margin: 0 0 6px;
}
.calc-side-sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fund-mute);
  margin: 0 0 20px;
}
.calc-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--fund-hair);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}
.calc-check:hover {
  border-color: var(--fund-hair-2, rgba(255,255,255,.14));
}
.calc-check.is-checked {
  border-color: rgba(98, 124, 230, 0.4);
  background: rgba(98, 124, 230, 0.05);
}
.calc-check__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--fund-mute);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 200ms;
}
.calc-check.is-checked .calc-check__box {
  background: var(--ember);
  border-color: var(--ember);
}
.calc-check__box svg {
  width: 12px;
  height: 12px;
  color: #0B0D12;
  opacity: 0;
  transition: opacity 200ms;
}
.calc-check.is-checked .calc-check__box svg {
  opacity: 1;
}
.calc-check__text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fund-fog);
}
.calc-check__text strong {
  color: var(--ember);
  font-weight: 600;
}

/* --- Sequence context ("What happens next") --- */
.calc-sequence {
  padding: 18px 20px;
  background: rgba(255,255,255,.02);
  border-left: 3px solid var(--ember);
  border-radius: 0 8px 8px 0;
  margin-top: 20px;
}
.calc-sequence__label {
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 10px;
}
.calc-sequence__list {
  margin: 0;
  padding-left: 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fund-fog);
}
.calc-sequence__list li {
  margin-bottom: 4px;
}
.calc-sequence__note {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--fund-mute);
  font-style: italic;
}

/* Callout (Golden Rule, etc.) */
.calc-callout {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(98, 124, 230, 0.08);
  border: 1px solid rgba(98, 124, 230, 0.24);
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fund-fog);
}
.calc-callout strong {
  display: block;
  color: var(--ember);
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* --- Right column: calculator --- */
.calc-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-field__label {
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fund-mute);
}
.calc-field__input,
.calc-field__select {
  padding: 12px 14px;
  background: var(--fund-ink);
  border: 1px solid var(--fund-hair);
  border-radius: 8px;
  color: var(--fund-fog);
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transition: border-color 200ms;
}
.calc-field__input:focus,
.calc-field__select:focus {
  outline: none;
  border-color: var(--ember);
}
.calc-field__input::placeholder {
  color: rgba(138,143,156,.5);
}

.calc-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--fund-hair);
  border-radius: 8px;
}
.calc-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: var(--fund-fog);
}
.calc-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--ember);
  cursor: pointer;
}
.calc-toggle__note {
  margin-left: auto;
  font-size: 11px;
  color: var(--fund-mute);
  font-style: italic;
}

/* --- Calculator readout --- */
.calc-readout {
  margin-top: 8px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(98, 124, 230, .06) 0%, rgba(98, 124, 230, .02) 100%);
  border: 1px solid rgba(98, 124, 230, 0.24);
  border-radius: 10px;
}
.calc-readout__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.calc-readout__row:last-child {
  border-bottom: none;
}
.calc-readout__row--total {
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid rgba(98, 124, 230, 0.3);
  border-bottom: none;
}
.calc-readout__label {
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fund-mute);
}
.calc-readout__value {
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--fund-fog);
  font-variant-numeric: tabular-nums;
  transition: color 200ms;
}
.calc-readout__row--total .calc-readout__label {
  color: var(--ember);
  font-weight: 600;
}
.calc-readout__row--total .calc-readout__value {
  font-size: 24px;
  color: var(--ember);
}
.calc-readout__meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: var(--fund-mute);
}

/* Coverage indicator (Stack) */
.calc-coverage {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  border: 1px solid transparent;
}
.calc-coverage--ok {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.28);
  color: #34D399;
}
.calc-coverage--bad {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.28);
  color: #FCA5A5;
}
.calc-coverage__label {
  font-weight: 600;
  margin-right: 6px;
}

/* Above-$1M lock state (Double Close) */
.calc-locked {
  margin-top: 8px;
  padding: 20px;
  text-align: center;
  background: rgba(98, 124, 230, 0.06);
  border: 1px dashed rgba(98, 124, 230, 0.4);
  border-radius: 10px;
}
.calc-locked__title {
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ember);
  margin: 0 0 6px;
}
.calc-locked__body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: var(--fund-fog);
  margin: 0 0 14px;
}

/* --- CTA --- */
.calc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 22px;
  background: var(--ember);
  color: #0B0D12;
  border: none;
  border-radius: 8px;
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms, transform 100ms;
}
.calc-cta:hover {
  background: #7b93f4;
}
.calc-cta:active {
  transform: translateY(1px);
}
.calc-cta__arrow {
  width: 14px;
  height: 14px;
}

/* --- Timeline pill --- */
.calc-timeline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--fund-hair);
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: var(--fund-mute);
  margin-bottom: 14px;
}
.calc-timeline__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
}

/* Mobile tab bar → horizontal scroll */
@media (max-width: 900px) {
  .calc-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .calc-tab {
    flex: 0 0 auto;
    min-width: 130px;
  }
  .calc-tab__sub {
    display: none;
  }
}

/* Blue theme: color only */
.calc-cta{background:#1e4cff;color:#fff}
.calc-cta:hover{background:#1742df}
