/* The Jordan Insurance Agency — brand tokens mirror the Command Center
   (Agency-Command-Center/client/src/styles/globals.css). */
:root {
  --navy: #183880;
  --navy-950: #09142f;
  --navy-900: #0f2454;
  --navy-700: #243f8b;
  --navy-500: #3c5cb0;
  --navy-300: #9aabd9;
  --navy-200: #cbd5ef;
  --navy-100: #e7ecf8;
  --navy-50: #f2f5fc;
  --gold: #f0b810;
  --gold-700: #c99807;
  --gold-400: #f6c83d;
  --gold-200: #fbe89d;
  --gold-100: #fdf4ce;
  --gold-50: #fffaf0;
  --cream: #faf7ee;
  --cream-deep: #f3efe1;
  --canvas: #f6f7fb;
  --white: #ffffff;
  --heading: #101d3d;
  --body: #34415f;
  --muted: #667085;
  --subtle: #8f98aa;
  --border: #dfe4ed;
  --border-soft: #eaedf3;
  --success-50: #ecfdf3;
  --success-600: #079455;
  --success-700: #067647;
  --warning-50: #fffaeb;
  --warning-700: #b54708;
  --error-50: #fef2f2;
  --error-600: #dc2626;
  --error-700: #b91c1c;
  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 29, 61, 0.05);
  --shadow: 0 1px 2px rgba(16, 29, 61, 0.04), 0 10px 32px -8px rgba(16, 29, 61, 0.10);
  --shadow-lg: 0 2px 4px rgba(16, 29, 61, 0.04), 0 24px 56px -16px rgba(15, 36, 84, 0.28);
  --ring: 0 0 0 4px rgba(24, 56, 128, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 520px at 100% -10%, rgba(240, 184, 16, 0.10), transparent 60%),
    radial-gradient(900px 480px at -10% 0%, rgba(24, 56, 128, 0.07), transparent 60%),
    linear-gradient(180deg, var(--cream) 0, var(--canvas) 520px);
  color: var(--body);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy); }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img { height: 54px; width: auto; }
.topbar-meta { display: flex; align-items: center; gap: 12px; }
.secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.secure svg { width: 16px; height: 16px; color: var(--success-600); }
.mode-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--gold);
  padding: 5px 12px;
  border-radius: 999px;
}
.progress { height: 3px; }
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-400));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 640px) {
  .topbar-inner { padding: 10px 16px; }
  .brand img { height: 40px; }
  .secure { display: none; }
}

/* ---------- Layout ---------- */
.layout {
  flex: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 24px 140px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.layout.solo { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.layout.solo .rail { display: none; }
.shell { min-width: 0; }
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 24px 16px 140px; }
  .rail { display: none; }
}

/* ---------- Progress rail (desktop) ---------- */
.rail {
  position: sticky;
  top: 104px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 70%, var(--navy-950) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.rail::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 184, 16, 0.28), transparent 70%);
  pointer-events: none;
}
.rail-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-400); margin: 0 0 6px; }
.rail-title { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.25; margin: 0 0 22px; }
.rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
.rail li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; color: rgba(255, 255, 255, 0.62); position: relative; }
.rail li + li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: -9px;
  height: 18px;
  width: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.rail li.complete + li::before, .rail li.complete + li.current::before { background: var(--gold); }
.rail .dot {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.25s;
}
.rail li.current { color: #fff; font-weight: 600; }
.rail li.current .dot { background: #fff; border-color: #fff; color: var(--navy); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12); }
.rail li.complete { color: rgba(255, 255, 255, 0.9); }
.rail li.complete .dot { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.rail li.complete .dot svg { width: 14px; height: 14px; }
.rail-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.rail-note strong { color: #fff; display: block; font-size: 14px; margin-bottom: 4px; }

/* ---------- Mobile step header ---------- */
.step-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.step-head .count { font-size: 13px; font-weight: 600; color: var(--navy); }
.step-head .left { font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .step-head { display: flex; } }

/* ---------- Motion ---------- */
.stage { animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.stage.back { animation-name: rise-back; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-back { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gold-700); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 10px; }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--gold); }
h1, h2, h3 { font-family: var(--display); color: var(--heading); }
h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 800; }
h1 em { font-style: normal; color: var(--navy); background: linear-gradient(transparent 68%, var(--gold-200) 68%); }
h2 { font-size: clamp(25px, 3.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 750; }
h3 { font-size: 17px; margin: 0; font-weight: 700; }
.lede { font-size: 17px; color: var(--muted); margin: 0 0 28px; max-width: 54ch; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 18px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); margin: 0 0 18px; }
@media (max-width: 560px) { .card { padding: 20px 18px; border-radius: 18px; } }

/* ---------- Fields ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span, .q { font-size: 14px; font-weight: 600; color: var(--heading); }
.q { display: block; margin-bottom: 10px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.opt { font-weight: 400; color: var(--subtle); }

.input, select.input, textarea.input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 17px;
  color: var(--heading);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.input:hover { border-color: #c4ccda; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23183880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input::placeholder { color: #a9b1c1; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: var(--ring); }
.invalid .input, .input.invalid { border-color: var(--error-600); background: #fffafa; }
.err { font-size: 13px; color: var(--error-700); font-weight: 500; }

.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--navy-300); }
.money .input { font-family: var(--display); font-size: 34px; font-weight: 750; padding-left: 46px; min-height: 76px; letter-spacing: -0.02em; color: var(--navy); }

/* Segmented control + chips */
.seg { display: flex; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button {
  flex: 1;
  min-height: 46px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.seg button:hover { color: var(--navy); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--navy); box-shadow: 0 1px 2px rgba(16, 29, 61, 0.08), 0 4px 12px rgba(16, 29, 61, 0.08); }
.invalid .seg { border-color: var(--error-600); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 46px;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 550;
  color: var(--body);
  cursor: pointer;
  transition: all 0.16s;
}
.chip:hover { border-color: var(--navy-300); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 16px -6px rgba(24, 56, 128, 0.55); }
.invalid .chips .chip { border-color: #f3b9b4; }

button:focus-visible, .chip:focus-visible, a:focus-visible { outline: none; box-shadow: var(--ring); }

.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  cursor: pointer;
  font-size: 14px;
  color: var(--body);
}
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--navy); }
.check strong { color: var(--heading); }
.invalid.check { border-color: var(--error-600); background: #fffafa; }

.stack > * + * { margin-top: 22px; }

/* ---------- Buttons ---------- */
.actions {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 15;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--border-soft);
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
}
.actions-inner { max-width: 1160px; margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.actions-hint { margin-right: auto; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .actions { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); } .actions-hint { display: none; } }
.btn {
  min-height: 54px;
  padding: 0 28px;
  border-radius: 14px;
  border: 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.12s, box-shadow 0.18s, filter 0.18s, opacity 0.18s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, var(--navy-700), var(--navy) 55%, var(--navy-900));
  color: #fff;
  min-width: 220px;
  box-shadow: 0 10px 24px -10px rgba(15, 36, 84, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary svg { color: var(--gold); }
.btn-primary[disabled] { opacity: 0.65; cursor: progress; }
.btn-ghost { background: transparent; color: var(--navy); padding: 0 18px; }
.btn-ghost:hover { background: var(--navy-50); }
.btn-soft { background: var(--navy-50); color: var(--navy); border: 1px solid var(--navy-100); }
@media (max-width: 640px) { .btn-primary { flex: 1; min-width: 0; } }
.link-btn { border: 0; background: none; color: var(--navy); font-weight: 700; font-size: 14px; cursor: pointer; padding: 6px 0; }
.link-btn:hover { text-decoration: underline; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Welcome ---------- */
.hero { padding: 12px 0 0; }
.oe-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gold-200);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.oe-pill b { background: var(--gold); color: var(--navy-900); border-radius: 999px; padding: 2px 9px; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 22px; }
.value { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.value .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); margin-bottom: 12px; }
.value .ico svg { width: 22px; height: 22px; }
.value strong { display: block; font-family: var(--display); font-size: 17px; color: var(--heading); }
.value span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } .value { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; } .value .ico { margin: 0; grid-row: span 2; } }
.need { display: flex; gap: 16px; align-items: flex-start; background: var(--gold-50); border: 1px solid var(--gold-100); border-radius: var(--radius); padding: 18px 20px; }
.need .ico { color: var(--gold-700); flex: none; }
.need .ico svg { width: 24px; height: 24px; }
.need ul { margin: 6px 0 0; padding-left: 18px; color: var(--body); font-size: 15px; }
.need strong { color: var(--heading); }

/* ---------- Location pill ---------- */
.loc { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--success-700); font-weight: 600; }
.loc svg { width: 14px; height: 14px; }

/* ---------- Household ---------- */
.member { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 22px; background: var(--white); box-shadow: var(--shadow-sm); }
.member + .member { margin-top: 14px; }
.member-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member .grid { margin-top: 18px; }
.member-role { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--heading); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: #fff; font-size: 15px; font-weight: 700; }
.member.you .avatar { background: linear-gradient(160deg, var(--gold-400), var(--gold)); color: var(--navy-900); }
.remove { border: 0; background: none; color: var(--error-700); font-size: 14px; font-weight: 600; cursor: pointer; }
.add-member {
  width: 100%;
  margin-top: 14px;
  min-height: 60px;
  border: 1.5px dashed var(--navy-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.16s;
}
.add-member:hover { background: var(--white); border-color: var(--navy); }
.tally { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { display: inline-flex; gap: 6px; align-items: center; background: var(--white); border: 1px solid var(--navy-100); color: var(--navy); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; }
.pill.gold { background: var(--gold-100); border-color: var(--gold-200); color: var(--navy-900); }

/* ---------- Income result ---------- */
.result {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 18px;
  color: #fff;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 75%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.result::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 184, 16, 0.22), transparent 70%); pointer-events: none; }
.result.empty { background: var(--navy-50); color: var(--body); box-shadow: none; border: 1px dashed var(--navy-200); }
.result.empty::after { display: none; }
.result.empty .result-title { color: var(--heading); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  margin-bottom: 10px;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.subsidy { color: #7ee2b0; background: rgba(126, 226, 176, 0.12); }
.status.medicaid { color: #a9c6ff; background: rgba(169, 198, 255, 0.14); }
.status.over, .status.gap { color: var(--gold-400); background: rgba(240, 184, 16, 0.14); }
.result-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.result-title { font-family: var(--display); font-size: 21px; font-weight: 750; margin: 0; color: #fff; }
.result-pct { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--gold-400); }
.result-pct small { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.6); margin-left: 4px; letter-spacing: 0; }
.result p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 15px; position: relative; z-index: 1; }
.result .meta { font-size: 13px; color: rgba(255, 255, 255, 0.58); }
.result.empty p { color: var(--muted); }

.gauge { position: relative; margin: 34px 0 30px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(169, 198, 255, 0.55) 0 27.6%, rgba(126, 226, 176, 0.75) 27.6% 80%, rgba(255, 255, 255, 0.18) 80% 100%); }
.gauge-tick { position: absolute; top: 16px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.6); }
.gauge-tick::before { content: ""; position: absolute; left: 50%; top: -18px; width: 2px; height: 14px; background: var(--navy-900); transform: translateX(-50%); }
.gauge-tick.up { top: -24px; }
.gauge-tick.up::before { top: auto; bottom: -18px; }
.gauge-needle {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(240, 184, 16, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.offer { position: relative; z-index: 1; margin-top: 20px; padding: 18px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.96); color: var(--body); }
.offer .q { color: var(--heading); }

details.ranges { margin-top: 18px; }
details.ranges summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 15px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.ranges summary::-webkit-details-marker { display: none; }
details.ranges summary::after { content: "›"; display: inline-block; font-size: 20px; line-height: 1; transition: transform 0.2s; }
details.ranges[open] summary::after { transform: rotate(90deg); }
.table-wrap { overflow-x: auto; margin-top: 14px; border-radius: var(--radius); border: 1px solid var(--border-soft); }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; background: var(--white); }
th, td { padding: 11px 14px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: 13px; }
tbody tr:nth-child(even) { background: var(--canvas); }
tbody tr.here { background: var(--gold-100); font-weight: 700; color: var(--navy-900); }
.source { font-size: 12px; color: var(--muted); margin-top: 10px; }
@media (max-width: 480px) { table { font-size: 13px; } th, td { padding: 9px 7px; } }

/* ---------- Review ---------- */
.review-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.review-row:last-child { border-bottom: 0; padding-bottom: 0; }
.review-row dt { color: var(--muted); }
.review-row dd { margin: 0; text-align: right; font-weight: 600; color: var(--heading); }
dl { margin: 0; }
.flag { display: flex; gap: 8px; font-size: 14px; color: var(--warning-700); background: var(--warning-50); padding: 11px 14px; border-radius: 12px; margin-top: 10px; }
.alert { background: var(--error-50); color: var(--error-700); border: 1px solid #fecaca; border-radius: var(--radius); padding: 16px 18px; font-size: 15px; margin-bottom: 18px; }

/* ---------- Done ---------- */
.done { text-align: center; padding-top: 32px; }
.done-mark { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 50%; background: linear-gradient(160deg, var(--gold-400), var(--gold)); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--gold-100), var(--shadow-lg); animation: pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.done-mark svg { width: 46px; height: 46px; }
.done .lede { margin-left: auto; margin-right: auto; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.next-steps { text-align: left; max-width: 560px; margin: 0 auto; }
.next-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.next-steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; color: var(--body); }
.next-steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.foot { max-width: 820px; margin: 0 auto; padding: 8px 24px 130px; font-size: 12px; color: var(--muted); text-align: center; }
.foot p { margin: 6px 0; }
.foot strong { color: var(--heading); }
.foot-mark { width: 36px; height: auto; margin: 0 auto 10px; opacity: 0.9; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Home: navy brand hero ---------- */
.hero-panel {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 28px;
  padding: 40px 40px 36px;
  margin-bottom: 22px;
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(240, 184, 16, 0.22), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(60, 92, 176, 0.45), transparent 70%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 60%, var(--navy-950) 100%);
  box-shadow: var(--shadow-lg);
}
.hero-panel::after {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  top: 0;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-400));
}
.hero-panel h1 { color: #fff; }
.hero-panel h1 em { color: var(--gold-400); background: none; }
.hero-panel .lede { color: rgba(255, 255, 255, 0.82); }
.hero-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-400); }
.oe-pill.on-dark { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #fff; box-shadow: none; }
.hero-field { max-width: 360px; margin-bottom: 24px; }
.hero-field > span { color: rgba(255, 255, 255, 0.9); }
.hero-field .input { border-color: transparent; }
.hero-panel .err { color: #fecaca; }
.choice-label { margin: 0 0 12px; font-family: var(--display); font-size: 17px; font-weight: 700; color: #fff; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 18px;
  min-height: 92px;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}
.choice:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
.choice:active { transform: scale(0.99); }
.choice-ico { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); color: var(--gold-400); }
.choice-ico svg { width: 24px; height: 24px; }
.choice-text strong { display: block; font-family: var(--display); font-size: 17px; font-weight: 750; }
.choice-text span { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-top: 2px; }
.choice-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy-900); opacity: 0; transform: scale(0.6); transition: all 0.18s; }
.choice-check svg { width: 13px; height: 13px; }
.choice[aria-pressed="true"] { background: #fff; border-color: var(--gold); color: var(--navy-900); box-shadow: 0 0 0 4px rgba(240, 184, 16, 0.25); }
.choice[aria-pressed="true"] .choice-ico { background: var(--navy); color: var(--gold-400); }
.choice[aria-pressed="true"] .choice-text span { color: var(--muted); }
.choice[aria-pressed="true"] .choice-check { opacity: 1; transform: scale(1); }
.choices.invalid .choice { border-color: #fca5a5; }
@media (max-width: 760px) {
  .hero-panel { padding: 30px 20px 24px; border-radius: 22px; }
  .hero-panel::after { left: 20px; right: 20px; }
  .choices, .choices.three { grid-template-columns: 1fr; }
  .choice { min-height: 76px; }
}

/* ---------- Household ---------- */
.size-note { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.size-note span { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.size-note strong { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--gold-400); }
.size-note em { font-style: normal; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.size-input { max-width: 140px; font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--navy); }
.grid-person { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 760px) { .grid-person { grid-template-columns: 1fr; } }

/* Hints inside a field stay light, not label-weight. */
.field > span.hint { font-size: 13px; font-weight: 400; color: var(--muted); }
.oe-pill b { white-space: nowrap; }
@media (max-width: 480px) {
  .oe-pill { font-size: 12px; white-space: nowrap; gap: 6px; padding-right: 10px; }
  .oe-pill b { font-size: 10px; padding: 2px 7px; }
}

/* ---------- Home & auto offer (existing clients) ---------- */

/* ---------- Booking calendar ---------- */
.booking { margin-top: 8px; }
.booking .hint { margin: 0 0 14px; }
.cal-embed { width: 100%; min-height: 560px; overflow: auto; border-radius: var(--radius); background: var(--canvas); }
.booked { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--success-50); color: var(--success-700); font-weight: 600; }
.booked svg { width: 20px; height: 20px; }
.booked[hidden] { display: none; }
.done-actions { margin-top: 18px; }

/* ---------- BreakPoint Systems signature ---------- */
.signature { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(24, 56, 128, 0.08); font-size: 11px; font-weight: 550; letter-spacing: 0.035em; color: var(--subtle); }
.signature strong { color: var(--navy-700); font-weight: 800; }
.signature a { color: inherit; text-decoration: none; }
.signature a:hover strong, .signature a:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }
.signature .heart { color: #dc3f4d; font-size: 13px; line-height: 1; text-shadow: 0 2px 8px rgba(220, 63, 77, 0.26); }

.cal-embed.cal-fallback { min-height: 0; padding: 18px; }
.promo { border-radius: var(--radius); padding: 18px; background: linear-gradient(150deg, var(--navy), var(--navy-900)); color: #fff; }
.promo-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.promo-head strong { font-family: var(--display); font-size: 17px; line-height: 1.35; }
.promo-head span { color: rgba(255, 255, 255, 0.8); font-size: 15px; }
.promo-head .promo-badge { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-900); background: var(--gold); padding: 3px 10px; border-radius: 999px; }
.promo .seg { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.16); }
.promo .seg button { color: rgba(255, 255, 255, 0.85); }
.promo .seg button[aria-pressed="true"] { color: var(--navy); }
.promo.invalid { box-shadow: 0 0 0 2px var(--error-600); }
.promo .err { color: #fecaca; }

.intake-no { margin: 6px 0 2px; font-size: 14px; letter-spacing: 0.02em; color: var(--subtle); }
.intake-no strong { margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: var(--navy-50, #eef2fb); color: var(--navy); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
