/* =====================================================================
   Lead-value calculator (homepage #pricing).
   Based on the sales deck (~/Documents/Coldr/coldr-deck.html, slide 2) and
   restyled for the site. Logic lives in /assets/js/roi-calc.js.
   The price per lead is a fixed tier picked with two button rows (who we
   email, company size); the results show value, price + tier, and return.
   Everything is prefixed .rc so it can't collide with page styles.
   ===================================================================== */
.rc {
  --rc-blue: #3E6ED3;
  --rc-blue-dark: #2A6CD8;
  --rc-navy: #0B0D12;
  --rc-slate: #5A6070;
  --rc-line: #E2E6EC;
  --rc-field: #F3F6FB;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
  align-items: stretch;   /* results column = inputs card height; its two cards (flex: 1) split it */
}
@media (max-width: 860px) { .rc { grid-template-columns: minmax(0, 1fr); } }

/* ---- Inputs card ---- */
.rc__inputs {
  background: #fff; border: 1px solid #E8ECF3; border-radius: 20px;
  box-shadow: 0 8px 24px rgba(20, 32, 60, .08);
  padding: 32px; margin: 0;
  display: flex; flex-direction: column; gap: 28px;
}
@media (max-width: 600px) { .rc__inputs { padding: 24px 20px; gap: 24px; } }

.rc__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  grid-template-rows: auto auto;
  column-gap: 20px; row-gap: 10px; align-items: center;
}
.rc__field > label, .rc__ltv-label {
  font-family: var(--font-ui, 'Poppins', system-ui, sans-serif);
  font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--rc-navy); margin: 0;
}
.rc__field > label small {
  display: block; margin-top: 2px;
  font-size: 13px; font-weight: 400; color: var(--rc-slate);
}
.rc__num {
  grid-row: span 2;
  display: flex; align-items: center; justify-content: flex-end; gap: 3px;
  background: var(--rc-field); border: 1px solid var(--rc-line); border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-display, 'Poppins', system-ui, sans-serif);
  font-size: 20px; font-weight: 700; color: var(--rc-navy);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.rc__num:focus-within { border-color: var(--rc-blue); box-shadow: 0 0 0 3px rgba(42, 108, 216, .18); background: #fff; }
.rc__num span { color: var(--rc-slate); font-weight: 600; }
.rc__num input {
  width: 100%; min-width: 0; border: 0; background: transparent; outline: none; padding: 0;
  font: inherit; color: inherit; text-align: right; font-variant-numeric: tabular-nums;
}

/* Customer value: Lifetime / Monthly toggle */
.rc__ltv { display: flex; flex-direction: column; gap: 14px; padding-bottom: 26px; border-bottom: 1px dashed #D5DEEE; }
.rc__ltv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rc__toggle { display: inline-flex; padding: 3px; background: var(--rc-field); border: 1px solid var(--rc-line); border-radius: 999px; }
.rc__toggle button {
  font-family: var(--font-ui, 'Poppins', system-ui, sans-serif);
  font-size: 13px; font-weight: 600; color: var(--rc-slate);
  background: transparent; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.rc__toggle button[aria-pressed="true"] { background: var(--rc-blue); color: #fff; }
.rc__toggle button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(42, 108, 216, .35); }
.rc__monthly {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px; align-items: center;
}
.rc__monthly[hidden], .rc__lifetime[hidden] { display: none; }
.rc__monthly .rc__field { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
.rc__monthly .rc__field > label { font-size: 13px; font-weight: 500; color: var(--rc-slate); }
.rc__monthly .rc__num { grid-row: auto; }
.rc__times { margin: 0; font-family: var(--font-display, 'Poppins', sans-serif); font-size: 22px; font-weight: 700; color: #9DB2DC; }
@media (max-width: 520px) {
  .rc__monthly { grid-template-columns: minmax(0, 1fr); }
  .rc__times { text-align: center; line-height: 1; }
  .rc__field { grid-template-columns: minmax(0, 1fr) 124px; }
}

/* Who we email / Company size: one row of three buttons each */
.rc__pick { display: flex; flex-direction: column; gap: 12px; }
.rc__pick-label {
  margin: 0; font-family: var(--font-ui, 'Poppins', system-ui, sans-serif);
  font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--rc-navy);
}
.rc__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rc__opts button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 48px; padding: 8px 10px;
  font-family: var(--font-ui, 'Poppins', system-ui, sans-serif);
  font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--rc-navy);
  background: var(--rc-field); border: 1px solid var(--rc-line); border-radius: 10px; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.rc__opts button small { font-size: 12px; font-weight: 500; color: var(--rc-slate); }
.rc__opts button:hover { border-color: #B9C8E6; }
.rc__opts button[aria-pressed="true"] { background: var(--rc-blue); border-color: var(--rc-blue); color: #fff; }
.rc__opts button[aria-pressed="true"] small { color: #DCE6F8; }
.rc__opts button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(42, 108, 216, .35); }
.rc__nowrap { white-space: nowrap; }
@media (max-width: 420px) { .rc__opts button { font-size: 12.5px; padding: 8px 4px; } }

/* Sliders */
.rc__range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0;
  background: transparent; cursor: pointer; --fill: 50%;
}
.rc__range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--rc-blue) var(--fill), #DCE3F0 var(--fill)); }
.rc__range::-moz-range-track { height: 6px; border-radius: 999px; background: #DCE3F0; }
.rc__range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--rc-blue); }
.rc__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%;
  background: #fff; border: 3px solid var(--rc-blue); box-shadow: 0 2px 6px rgba(20, 32, 60, .18);
}
.rc__range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--rc-blue); }
.rc__range:focus-visible { outline: none; }
.rc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(42, 108, 216, .3); }
.rc__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(42, 108, 216, .3); }

/* ---- Results ---- */
.rc__results { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
/* Two-column layout: the three result cards split the column (= inputs card height) evenly.
   Stacked (<=860px) they size to their content. */
@media (min-width: 861px) {
  .rc__results > .rc__worth, .rc__results > .rc__quote, .rc__results > .rc__return { flex: 1 1 0; }
}
.rc__eyebrow {
  margin: 0;
  font-family: var(--font-ui, 'Poppins', system-ui, sans-serif);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.rc__worth, .rc__return {
  flex: 1;
  background: #fff; border: 1px solid #E8ECF3; border-radius: 20px;
  box-shadow: 0 8px 24px rgba(20, 32, 60, .08);
  padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.rc__worth .rc__eyebrow, .rc__return .rc__eyebrow { color: var(--rc-slate); }
.rc__worth-num, .rc__return-num {
  margin: 0;
  font-family: var(--font-display, 'Poppins', system-ui, sans-serif);
  font-size: clamp(44px, 5vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  color: var(--rc-navy); font-variant-numeric: tabular-nums;
}
.rc__unit { font-size: 20px; font-weight: 500; letter-spacing: 0; color: var(--rc-slate); }
.rc__quote {
  flex: 1;
  background: linear-gradient(135deg, #4D86E0 0%, var(--rc-blue-dark) 100%); color: #fff;
  border: 1px solid transparent; border-radius: 20px;   /* border matches .rc__worth so the halves are equal */ box-shadow: 0 10px 24px rgba(42, 108, 216, .26);
  padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  overflow: hidden;
}
.rc__quote .rc__eyebrow { color: #DCE6F8; }
.rc__price-num {
  margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  font-family: var(--font-display, 'Poppins', system-ui, sans-serif);
  font-size: clamp(44px, 5vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.rc__tier {
  font-family: var(--font-ui, 'Poppins', system-ui, sans-serif);
  font-size: 14px; font-weight: 600; letter-spacing: .04em; line-height: 1;
  padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff;
}
.rc--low .rc__return-num { color: #B42318; }
.rc__warn { margin: 0; font-family: var(--font-body, 'Inter', system-ui, sans-serif); font-size: 15px; font-weight: 600; line-height: 1.4; color: #B42318; }
.rc__quote-note { margin: 0; font-family: var(--font-body, 'Inter', system-ui, sans-serif); font-size: 15px; line-height: 1.5; color: #E3EBFA; }
.rc__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) { .rc__worth, .rc__quote, .rc__return { padding: 24px 22px; } }
