/* ===== Design tokens ===== */
:root {
  --navy: #1B365D;
  --navy-dark: #122544;
  --navy-soft: #2c4d7a;
  --orange: #E8962E;
  --orange-dark: #c97d1c;
  --cream: #FAF7F2;
  --cream-2: #f3eee5;
  --sage: #38A169;
  --amber: #D69E2E;
  --ink: #1a202c;
  --ink-2: #2d3748;
  --muted: #4a5568;
  --line: #d8d2c7;
  --line-2: #e8e2d6;
  --white: #ffffff;
  --danger: #c53030;
  --focus: #3182ce;

  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-body: 21px;
  --fs-input: 26px;
  --fs-h1: clamp(30px, 4vw, 36px);
  --fs-h2: clamp(24px, 3vw, 28px);
  --fs-h3: 22px;
  --fs-meta: 19px;
  --lh-body: 1.6;

  --radius: 12px;
  --radius-lg: 16px;
  --tap: 56px;
  --tap-lg: 64px;

  --shadow-sm: 0 1px 2px rgba(18, 37, 68, 0.06), 0 1px 3px rgba(18, 37, 68, 0.08);
  --shadow-md: 0 4px 12px rgba(18, 37, 68, 0.10);
  --shadow-lg: 0 12px 32px rgba(18, 37, 68, 0.18);

  --gap: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;

  --max-w: 1200px;
  --max-w-wide: 1200px;
  --max-w-narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--navy-dark); }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.rmc-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.rmc-stage {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap-lg) var(--gap) calc(var(--gap-xl) * 2);
}

.rmc-screens { width: 100%; }

.rmc-trust {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.rmc-trust-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 12px var(--gap);
  display: flex;
  align-items: center;
  gap: 12px;
}
.rmc-trust-logo {
  height: 44px;
  width: auto;
  flex: 0 0 auto;
}
.rmc-trust-text {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-meta);
  color: var(--ink-2);
}
.rmc-trust-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rmc-trust-row:first-child { font-weight: 600; color: var(--navy); }
.rmc-trust-meta { color: var(--muted); font-size: 17px; }
.rmc-trust-dot { color: var(--line); }
.rmc-trust-text a { color: var(--muted); text-decoration: none; font-weight: 600; }
.rmc-trust-text a:hover { color: var(--navy); text-decoration: underline; }

.rmc-account-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--cream-2);
  color: var(--navy);
  font-weight: 600;
  font-size: var(--fs-meta);
}
.rmc-account-btn:hover { background: var(--line-2); }

@media (max-width: 520px) {
  .rmc-trust-meta { display: none; }
  .rmc-trust-logo { height: 36px; }
  .rmc-account-btn { padding: 0 12px; }
}

.rmc-progress {
  height: 6px;
  background: var(--cream-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: var(--gap-lg);
}
.rmc-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--navy);
  transition: width 280ms ease;
}

.rmc-error {
  margin-bottom: var(--gap);
  padding: 14px 16px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: var(--danger);
  border-radius: var(--radius);
  font-weight: 600;
}

.rmc-foot {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: var(--gap-lg) var(--gap);
  font-size: 17px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line-2);
}
.rmc-foot p { margin: 6px 0; }
.rmc-foot-account { margin-top: 14px !important; }
.rmc-foot-account a { color: var(--navy); font-weight: 600; }

.rmc-screen {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: var(--gap-xl) var(--gap-lg);
  box-shadow: var(--shadow-sm);
}
.rmc-screen + .rmc-screen { margin-top: var(--gap-lg); }

/* Narrow screens (welcome, processing, OTP verify) — keep them tight and centered
   inside the wider 1200px stage. Looks better than stretched. */
.rmc-screen-narrow {
  max-width: var(--max-w-narrow);
  margin-left: auto;
  margin-right: auto;
}

/* On desktop, split input steps into 2 columns: title/copy on the left,
   form fields on the right. The first three children (eyebrow, title, sub)
   go in the left column; everything else flows in the right column. */
@media (min-width: 900px) {
  .rmc-screen-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--gap-xl);
    row-gap: 16px;
    align-items: start;
    padding: var(--gap-xl);
  }
  .rmc-screen-split > .rmc-screen-eyebrow,
  .rmc-screen-split > .rmc-screen-title,
  .rmc-screen-split > .rmc-screen-sub {
    grid-column: 1;
    margin-bottom: 0;
  }
  .rmc-screen-split > *:not(.rmc-screen-eyebrow):not(.rmc-screen-title):not(.rmc-screen-sub) {
    grid-column: 2;
  }
  /* Make the title block stick to the top of the form column visually */
  .rmc-screen-split > .rmc-screen-title { font-size: clamp(26px, 2.6vw, 32px); }
}

.rmc-screen-eyebrow {
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--navy-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.rmc-screen-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
  line-height: 1.2;
}
.rmc-screen-sub {
  font-size: var(--fs-body);
  color: var(--ink-2);
  margin: 0 0 var(--gap-lg);
}

.rmc-field { margin-bottom: var(--gap-lg); }
.rmc-label {
  display: block;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.rmc-help {
  font-size: var(--fs-meta);
  color: var(--muted);
  margin: 6px 0 0;
}

.rmc-input,
.rmc-select {
  width: 100%;
  min-height: var(--tap);
  padding: 14px 16px;
  font-size: var(--fs-input);
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  appearance: none;
  -webkit-appearance: none;
}
.rmc-input:focus,
.rmc-select:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--navy);
}

.rmc-money-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.rmc-money-row:focus-within { border-color: var(--navy); outline: 3px solid var(--focus); outline-offset: 1px; }
.rmc-money-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--cream-2);
  font-size: var(--fs-input);
  font-weight: 700;
  color: var(--navy);
  border-right: 2px solid var(--line);
}
.rmc-money-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  font-size: var(--fs-input);
  font-family: inherit;
  background: transparent;
  color: var(--ink);
}

.rmc-slider-wrap { padding: 4px 4px 0; }
.rmc-slider {
  width: 100%;
  height: 40px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.rmc-slider:focus { outline: none; }
.rmc-slider::-webkit-slider-runnable-track {
  height: 12px;
  background: var(--cream-2);
  border-radius: 999px;
}
.rmc-slider::-moz-range-track {
  height: 12px;
  background: var(--cream-2);
  border-radius: 999px;
}
.rmc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  margin-top: -12px;
  cursor: pointer;
}
.rmc-slider::-moz-range-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.rmc-slider:focus::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.4); }
.rmc-slider:focus::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.4); }

/* Slider in "untouched" state — visually dim AND functionally disabled
   until the user types or picks a chip. Prevents the full-width hit-zone
   bug where clicking anywhere near the left edge silently committed $0. */
.rmc-slider.rmc-slider-untouched,
.rmc-slider:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.rmc-slider.rmc-slider-untouched::-webkit-slider-thumb,
.rmc-slider:disabled::-webkit-slider-thumb {
  background: var(--muted) !important;
}
.rmc-slider.rmc-slider-untouched::-moz-range-thumb,
.rmc-slider:disabled::-moz-range-thumb {
  background: var(--muted) !important;
}
.rmc-slider-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

.rmc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.rmc-chip {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--navy);
  font-weight: 600;
  font-size: var(--fs-meta);
  border: 2px solid transparent;
}
.rmc-chip:hover { background: var(--line-2); }
.rmc-chip.is-active { background: var(--navy); color: var(--white); }

.rmc-options {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.rmc-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: var(--tap-lg);
  padding: 16px 18px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--fs-h3);
  font-weight: 600;
}
.rmc-option:hover { border-color: var(--navy-soft); }
.rmc-option.is-active { border-color: var(--navy); background: var(--cream-2); }
.rmc-option-sub {
  margin-top: 4px;
  font-size: var(--fs-meta);
  font-weight: 400;
  color: var(--muted);
}

.rmc-dob-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 10px;
}

.rmc-actions {
  display: flex;
  gap: 12px;
  margin-top: var(--gap-lg);
}
.rmc-actions.rmc-actions-stack { flex-direction: column; }

.rmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 120ms ease, transform 80ms ease;
}
.rmc-btn:active { transform: translateY(1px); }
.rmc-btn-primary { background: var(--navy); color: var(--white); }
.rmc-btn-primary:hover { background: var(--navy-dark); }
.rmc-btn-accent { background: var(--orange); color: var(--white); }
.rmc-btn-accent:hover { background: var(--orange-dark); }
.rmc-btn-ghost { background: var(--cream-2); color: var(--navy); }
.rmc-btn-ghost:hover { background: var(--line-2); }
.rmc-btn-link { background: transparent; color: var(--navy); text-decoration: underline; min-height: 44px; padding: 0 8px; }
.rmc-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.rmc-btn-block { flex: 1 1 auto; }

.rmc-spinner {
  width: 56px;
  height: 56px;
  border: 5px solid var(--cream-2);
  border-top-color: var(--navy);
  border-radius: 50%;
  margin: 0 auto var(--gap);
  animation: rmc-spin 900ms linear infinite;
}
@keyframes rmc-spin { to { transform: rotate(360deg); } }

.rmc-processing-steps {
  list-style: none;
  margin: var(--gap) 0 0;
  padding: 0;
  font-size: var(--fs-meta);
  color: var(--muted);
}
.rmc-processing-steps li { padding: 6px 0; }
.rmc-processing-steps li.is-done { color: var(--sage); font-weight: 600; }
.rmc-processing-steps li.is-active { color: var(--navy); font-weight: 600; }

.rmc-otp-input {
  width: 100%;
  min-height: 72px;
  font-size: 32px;
  letter-spacing: 0.4em;
  text-align: center;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  color: var(--navy);
  background: var(--white);
}
.rmc-otp-input:focus { border-color: var(--navy); outline: 3px solid var(--focus); outline-offset: 1px; }
.rmc-otp-meta { text-align: center; font-size: var(--fs-meta); color: var(--muted); margin-top: 12px; }

.rmc-summary {
  background: var(--cream-2);
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: var(--gap-lg);
}
.rmc-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: var(--fs-meta);
}
.rmc-summary-row strong { color: var(--navy); font-weight: 700; }

.rmc-results-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--gap-xl);
  align-items: center;
}
.rmc-results-numbers { display: flex; flex-direction: column; gap: 12px; }
.rmc-result-stat {
  background: var(--cream-2);
  padding: 18px 20px;
  border-radius: var(--radius);
}
.rmc-result-stat-label {
  font-size: var(--fs-meta);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}
.rmc-result-stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.rmc-chart-wrap { position: relative; max-width: 360px; margin: 0 auto; }

.rmc-chart-heading { text-align: center; margin: 0 0 14px; }
.rmc-chart-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 4px;
}
.rmc-chart-program {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}
.rmc-chart-note {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
  margin: 14px 0 0;
}

.rmc-products {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: var(--gap-lg);
}
.rmc-product {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
}
.rmc-product.is-best { border-color: var(--navy); background: var(--cream-2); }
.rmc-product-name { font-size: var(--fs-h3); font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.rmc-product-rate { font-size: 17px; color: var(--muted); margin: 0 0 10px; }
.rmc-product-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: var(--fs-meta); }
.rmc-product-row span:last-child { font-weight: 600; color: var(--ink); }

.rmc-contact-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--gap-lg);
}
.rmc-contact-row .rmc-btn { width: 100%; }

.rmc-callout {
  margin-top: var(--gap-lg);
  margin-bottom: var(--gap-lg);
  background: var(--cream-2);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: var(--fs-meta);
  color: var(--ink-2);
}
.rmc-callout strong { color: var(--navy); }
.rmc-callout-warn { border-left-color: var(--amber); }
.rmc-callout-warn strong { color: #7a4f02; }
.rmc-result-stat-value-neg { color: var(--danger); }
.rmc-result-stat-help { font-size: 16px; color: var(--muted); margin: 4px 0 0; }
.rmc-shortfall-actions { margin-top: var(--gap-lg); }

/* Landing-mode top header (paid-ad destination only) */
.rmc-landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 66px;
}
.rmc-landing-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.rmc-landing-logo img { height: 50px; width: auto; display: block; }
.rmc-landing-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fef3e0;
  color: #1B365D;
  border: 1.5px solid #E8962E;
  border-radius: 10px;
  padding: 8px 16px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  min-height: 44px;
  transition: background .15s, transform .15s, box-shadow .15s;
  margin-left: auto;
  margin-right: 8px;
}
.rmc-landing-call:hover {
  background: #E8962E;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(232,150,46,.45);
}
.rmc-landing-call svg { width: 20px; height: 20px; flex-shrink: 0; color: #E8962E; }
.rmc-landing-call:hover svg { color: #fff; }
.rmc-landing-call-txt { display: inline-flex; flex-direction: column; line-height: 1.1; align-items: flex-start; }
.rmc-landing-call-lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; font-weight: 700; }
.rmc-landing-call:hover .rmc-landing-call-lbl { color: rgba(255,255,255,.85); }
.rmc-landing-call-num { font-size: 16px; font-weight: 800; letter-spacing: -.005em; }
.rmc-landing-signin {
  background: transparent;
  border: 1.5px solid var(--navy, #1B365D);
  color: var(--navy, #1B365D);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
  min-height: 44px;
  flex-shrink: 0;
}
.rmc-landing-signin:hover { background: var(--navy, #1B365D); color: #fff; }
.rmc-landing-signin.is-signed-in {
  background: #fff;
  border-color: #c53030;
  color: #c53030;
}
.rmc-landing-signin.is-signed-in:hover {
  background: #c53030;
  color: #fff;
}
@media (max-width: 760px) {
  .rmc-landing-header { padding: 6px 14px; gap: 8px; min-height: 56px; }
  .rmc-landing-logo img { height: 42px; }
  .rmc-landing-call { padding: 7px 12px; gap: 8px; margin-right: 0; }
  .rmc-landing-call-lbl { display: none; }
  .rmc-landing-call-num { font-size: 14px; }
  .rmc-landing-signin { font-size: 13px; padding: 7px 12px; }
}
@media (max-width: 420px) {
  .rmc-landing-call-num { display: none; }
  .rmc-landing-call { padding: 9px; }
  .rmc-landing-signin { padding: 8px 12px; }
}

/* Landing v2 — pre-calculator hero title block (above intake screen) */
.rmc-lp-hero {
  background: linear-gradient(180deg, #FAF7F2 0%, #fff 100%);
  padding: 44px 24px 36px;
  text-align: center;
  border-bottom: 1px solid #ebe5d8;
}
.rmc-lp-hero-inner { max-width: 780px; margin: 0 auto; }
.rmc-lp-hero-title {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 800;
  color: #1B365D;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0 0 14px;
}
.rmc-lp-hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: #4a5568;
  line-height: 1.55;
  margin: 0 auto 22px;
  max-width: 640px;
}
.rmc-lp-hero-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.rmc-lp-hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #ebe5d8;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #1B365D;
}
.rmc-lp-hero-pills .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #38A169;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .rmc-lp-hero { padding: 28px 18px 24px; }
  .rmc-lp-hero-pills { gap: 8px; }
  .rmc-lp-hero-pills li { padding: 6px 12px; font-size: 13px; }
}

/* Landing v2 — prominent lender disclosure footer (Meta-ad campaign destination) */
.rmc-lp-footer {
  background: #0f1f3a;
  color: #cdd6e3;
  padding: 56px 24px 32px;
  font-family: var(--font, "Source Sans 3", system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.65;
  border-top: 4px solid #E8962E;
}
.rmc-lp-footer * { box-sizing: border-box; }
.rmc-lp-footer-inner { max-width: 1180px; margin: 0 auto; }
.rmc-lp-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.rmc-lp-footer-logo { height: 44px; width: auto; display: block; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .92; }
.rmc-lp-footer-co { font-size: 19px; font-weight: 700; color: #fff; margin: 0 0 2px; letter-spacing: -.005em; }
.rmc-lp-footer-sub { font-size: 13px; color: #9aaac0; margin: 0 0 16px; }
.rmc-lp-footer-addr { font-size: 14px; color: #cdd6e3; margin: 0; line-height: 1.7; }
.rmc-lp-footer-licenses { display: flex; flex-direction: column; gap: 16px; }
.rmc-lp-footer-lic-h {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #E8962E; font-weight: 700; margin: 0;
}
.rmc-lp-footer-lic-list { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.85; }
.rmc-lp-footer-lic-list li { color: #cdd6e3; }
.rmc-lp-footer-lic-list strong { color: #fff; font-weight: 600; }
.rmc-lp-footer-eho {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  align-self: flex-start; color: #fff;
}
.rmc-lp-footer-eho svg { width: 32px; height: 32px; flex-shrink: 0; }
.rmc-lp-footer-eho span { font-size: 11px; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.rmc-lp-footer-disc {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.rmc-lp-footer-disc-h {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: #E8962E; font-weight: 700; margin: 0 0 14px;
}
.rmc-lp-footer-disc p {
  font-size: 13px; color: #9aaac0; margin: 0 0 14px; line-height: 1.7;
}
.rmc-lp-footer-disc p:last-child { margin-bottom: 0; }
.rmc-lp-footer-disc strong { color: #fff; font-weight: 600; }
.rmc-lp-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; gap: 24px; flex-wrap: wrap;
  font-size: 12px; color: #6b7e95;
}
.rmc-lp-footer-bottom p { margin: 0; }
.rmc-lp-footer-links a { color: #cdd6e3; text-decoration: none; transition: color .15s; }
.rmc-lp-footer-links a:hover { color: #E8962E; }
.rmc-lp-footer-links .sep { margin: 0 10px; color: #4a5568; }
@media (max-width: 760px) {
  .rmc-lp-footer { padding: 40px 18px 28px; }
  .rmc-lp-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .rmc-lp-footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .rmc-lp-footer-disc p { font-size: 12.5px; }
}

.rmc-proposal {
  margin-top: var(--gap-lg);
  background: var(--cream-2);
  border: 2px solid var(--accent, #E8962E);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  text-align: center;
}
.rmc-proposal-title { margin: 0 0 6px; color: var(--navy); font-size: var(--fs-h3); }
.rmc-proposal-sub { margin: 0 0 14px; color: var(--ink-2); font-size: var(--fs-meta); }
.rmc-proposal-btn { font-weight: 700; }
.rmc-proposal-status { margin: 12px 0 0; color: var(--ink-2); font-size: 17px; }
.rmc-proposal-regen { margin-top: 10px; font-size: 14px; }

.rmc-heirs {
  margin-top: var(--gap-lg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 18px;
}
.rmc-heirs h3 { margin: 0 0 8px; color: var(--navy); font-size: var(--fs-h3); }
.rmc-heirs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.rmc-heirs-cell { background: var(--cream-2); border-radius: 10px; padding: 12px; text-align: center; }
.rmc-heirs-cell strong { display: block; font-size: 20px; color: var(--navy); }
.rmc-heirs-cell span { font-size: 16px; color: var(--muted); }

.rmc-specialist {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: var(--gap-lg);
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.rmc-specialist-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-2);
}
.rmc-specialist-name { margin: 0; font-weight: 700; color: var(--navy); font-size: var(--fs-h3); }
.rmc-specialist-tag { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-meta); }

.rmc-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap);
}
.rmc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 37, 68, 0.5);
}
.rmc-modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--gap-xl) var(--gap-lg) var(--gap-lg);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.rmc-modal-card-wide { max-width: 760px; }
.rmc-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  color: var(--muted);
}
.rmc-modal-close:hover { background: var(--cream-2); color: var(--navy); }
.rmc-modal-title {
  margin: 0 0 var(--gap-lg);
  font-size: var(--fs-h2);
  color: var(--navy);
}

.rmc-account-body { display: flex; flex-direction: column; gap: 12px; }

.rmc-calendar-frame iframe { width: 100%; min-height: 560px; border: 0; border-radius: var(--radius); }

.rmc-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 12px rgba(18, 37, 68, 0.08);
}
.rmc-sticky-cta {
  flex: 1;
  min-height: var(--tap);
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: var(--fs-h3);
}
.rmc-sticky-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 24px;
}
.rmc-sticky-call::before { content: "☎"; }

/* ===== Specialist edit panel — live what-if recalc + Save/Discard ===== */
.rmc-adminedit {
  background: #fff;
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 16px;
  box-shadow: var(--shadow-sm);
}
.rmc-adminedit-head { margin-bottom: 14px; }
.rmc-adminedit-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.rmc-adminedit-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.rmc-adminedit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 16px;
  margin-bottom: 14px;
}
.rmc-adminedit-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rmc-adminedit-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.rmc-adminedit-hint {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}
.rmc-adminedit-input {
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rmc-adminedit-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,150,46,0.18);
}
.rmc-adminedit-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.rmc-adminedit-actions .rmc-btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}
.rmc-adminedit-dirty {
  margin-right: auto;
  background: #fef3c7;
  color: #8a5b00;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.rmc-adminedit-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ===== Specialist push panel — Email + SMS templates to client ===== */
.rmc-adminpush {
  background: #fff;
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 16px;
  box-shadow: var(--shadow-sm);
}
.rmc-adminpush-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.rmc-adminpush-row:first-of-type { border-top: 0; }
.rmc-adminpush-label {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 160px;
}
.rmc-adminpush-label strong { color: var(--navy); font-size: 14px; }
.rmc-adminpush-tpl {
  flex: 2;
  min-width: 220px;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.rmc-adminpush-send {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.rmc-adminpush-custom { margin-top: 8px; }
.rmc-adminpush-textarea {
  width: 100%;
  font-family: var(--font-body);
  resize: vertical;
}

/* ===== Specialist (admin) mode banner — top of results when viewing as George ===== */
.rmc-adminbanner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 0 0 16px;
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--orange);
}
.rmc-adminbanner-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  flex: 1;
  min-width: 0;
}
.rmc-adminbanner-pill {
  display: inline-block;
  background: var(--orange);
  color: #1a1108;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.rmc-adminbanner-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
}
.rmc-adminbanner-meta {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 500;
}
.rmc-adminbanner-close {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  flex-shrink: 0;
}
.rmc-adminbanner-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
@media (max-width: 640px) {
  .rmc-adminbanner { flex-wrap: wrap; }
  .rmc-adminbanner-name, .rmc-adminbanner-meta { font-size: 13px; }
  .rmc-adminbanner-close { width: 100%; text-align: center; }
}

/* ===== "Discuss with specialist" banner — top of results page ===== */
.rmc-callbanner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--cream);
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 var(--gap-lg);
  box-shadow: var(--shadow-sm);
}
.rmc-callbanner.is-success {
  border-left-color: var(--sage);
  background: #f0f8f4;
}
.rmc-callbanner-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
  flex-shrink: 0;
  background: var(--cream-2);
}
.rmc-callbanner.is-success .rmc-callbanner-photo {
  border-color: var(--sage);
}
.rmc-callbanner-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.rmc-callbanner-text { flex: 1; min-width: 220px; }
.rmc-callbanner-title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.rmc-callbanner-meta {
  margin: 4px 0 0;
  font-size: var(--fs-meta);
  color: var(--muted);
  font-weight: 500;
}
.rmc-callbanner-actions { flex-shrink: 0; }
.rmc-callbanner-yes {
  min-height: var(--tap);
  padding: 0 22px;
  font-size: var(--fs-meta);
  font-weight: 700;
  white-space: nowrap;
}
.rmc-callbanner-yes:disabled {
  background: var(--sage);
  color: var(--white);
  opacity: 1;
  cursor: default;
  box-shadow: none;
}
@media (max-width: 640px) {
  .rmc-callbanner { padding: 16px; gap: 14px; }
  .rmc-callbanner-photo { width: 52px; height: 52px; }
  .rmc-callbanner-body { gap: 12px; }
  .rmc-callbanner-yes { width: 100%; }
}

/* ===== Floating "Request a callback from George" popup ===== */
.rmc-callback-pop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(18, 37, 68, 0.45), 0 4px 12px rgba(18, 37, 68, 0.25);
  padding: 22px 22px 20px;
  font-family: var(--font-body);
  border-top: 4px solid var(--orange);
  /* Slide-in animation */
  transform: translateX(120%);
  opacity: 0;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), opacity .35s ease-out;
}
.rmc-callback-pop.is-shown {
  transform: translateX(0);
  opacity: 1;
}
.rmc-callback-pop.is-leaving {
  transform: translateX(120%);
  opacity: 0;
}

.rmc-callback-pop-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, color .18s ease;
}
.rmc-callback-pop-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.rmc-callback-pop-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.rmc-callback-pop-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-right: 28px; /* room for the close X */
}
.rmc-callback-pop-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}
.rmc-callback-pop-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rmc-callback-pop-name {
  margin: 0;
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  letter-spacing: 0.1px;
}
.rmc-callback-pop-meta {
  margin: 2px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.rmc-callback-pop-meta a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
}
.rmc-callback-pop-meta a:hover { border-bottom-color: var(--orange); }

.rmc-callback-pop-msg {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--white);
  font-weight: 500;
}

.rmc-callback-pop-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.rmc-callback-pop-yes {
  flex: 1;
  background: var(--orange);
  color: #1a1108;
  border: 0;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(232, 150, 46, 0.35);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.rmc-callback-pop-yes:hover {
  background: #f1a444;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 150, 46, 0.45);
}
.rmc-callback-pop-yes:active { transform: translateY(0); }
.rmc-callback-pop-yes:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.rmc-callback-pop-yes:disabled { opacity: .7; cursor: progress; transform: none; }

.rmc-callback-pop-later {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 4px;
}
.rmc-callback-pop-later:hover { color: var(--white); }

.rmc-callback-pop.is-success .rmc-callback-pop-yes,
.rmc-callback-pop.is-success .rmc-callback-pop-later { display: none; }
.rmc-callback-pop-confirm {
  display: none;
  background: rgba(56, 161, 105, 0.18); /* sage tint */
  border: 1px solid rgba(56, 161, 105, 0.55);
  color: var(--white);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.rmc-callback-pop.is-success .rmc-callback-pop-confirm { display: block; }

@media (max-width: 640px) {
  .rmc-callback-pop {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    /* Lift above sticky CTA bar on mobile */
    bottom: 96px;
  }
}

.rmc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 110;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: var(--fs-meta);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  max-width: calc(100% - 32px);
  text-align: center;
}

@media (max-width: 640px) {
  .rmc-stage { padding: var(--gap) 12px calc(var(--gap-xl) * 2); }
  .rmc-screen { padding: var(--gap-lg) var(--gap); border-radius: var(--radius); }
  .rmc-screen-split { display: block; padding: var(--gap-lg) var(--gap); }
  .rmc-results-hero { grid-template-columns: 1fr; }
  .rmc-options { grid-template-columns: 1fr; }
  .rmc-contact-row { grid-template-columns: 1fr; }
  .rmc-heirs-grid { grid-template-columns: 1fr; }
  .rmc-actions { flex-direction: column; }
  .rmc-actions .rmc-btn { width: 100%; }
  .rmc-sticky { display: flex; }
  .rmc-stage { padding-bottom: 96px; }
}
