/* Cost To Insulate — Payback Panel
   Design tokens per ~/workspace/design-system/PORTFOLIO-DESIGN.md:
   white card, hairline border, 22px radius, Inter, ink #1D1D1F,
   secondary #6E6E73, one accent (site warm amber — DEPLOY CHECK:
   match --cti-payback-accent to the live site's amber token). */

.cti-payback {
  --cti-payback-accent: #b45309;
  --cti-payback-ink: #1d1d1f;
  --cti-payback-sub: #6e6e73;
  --cti-payback-line: #d2d2d7;
  --cti-payback-panel: #f5f5f7;
  background: #fff;
  border: 1px solid var(--cti-payback-line);
  border-radius: 22px;
  padding: 24px 28px;
  margin: 24px 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--cti-payback-ink);
}

.cti-payback-title {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.cti-payback-big {
  font-size: 20px;
  margin: 0 0 8px;
}

.cti-payback-big strong,
.cti-payback-line strong {
  color: var(--cti-payback-accent);
}

.cti-payback-line { margin: 0 0 8px; }
.cti-payback-lede { margin: 0 0 8px; }

.cti-payback-note,
.cti-payback-assumptions {
  color: var(--cti-payback-sub);
  font-size: 15px;
  margin: 8px 0 0;
}

.cti-payback-seal {
  background: var(--cti-payback-panel);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 16px 0 0;
}

.cti-payback-tablewrap {
  overflow-x: auto;
  margin: 16px 0 0;
}

.cti-payback-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--cti-payback-line);
  border-radius: 16px;
  overflow: hidden;
  font-size: 16px;
}

.cti-payback-table th,
.cti-payback-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cti-payback-line);
}

.cti-payback-table thead th { background: var(--cti-payback-panel); }
.cti-payback-table tbody tr:last-child td { border-bottom: none; }
.cti-payback-table tr.cti-payback-target td { font-weight: 600; }

.cti-payback-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 16px 0 0;
}

.cti-payback-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.cti-payback-controls input,
.cti-payback-controls select {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--cti-payback-line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--cti-payback-ink);
}

.cti-payback-controls input { width: 76px; }

.cti-payback-btn {
  min-height: 44px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: var(--cti-payback-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 640px) {
  .cti-payback { padding: 20px; }
  .cti-payback-controls { flex-direction: column; gap: 8px; }
}
