/* ============================================================
   Snatched Waist — Fast Track patient portal · shared shell
   Tokens lifted verbatim from /calculator/ (canonical) with the
   /fast-track/ rail additions (--ok, --amber) and /qualifier/
   aliases. Every stage page loads this file.
   Fonts: Cormorant Garamond (display) + Instrument Sans (body)
   via Google Fonts CDN — loaded from each page's <head>.
   ============================================================ */

/* ========== TOKENS ========== */
:root {
  --forest-dark: #2B2722;
  --forest: #A59680;
  --forest-light: #C4B8A6;
  --cream: #FFFEFC;
  --cream-deep: #E8E3DC;
  --muted: #5C554C;
  --near-black: #2B2722;
  --error: #C4604A;
  --error-bg: #FDF0ED;
  --white: #FFFFFF;
  --gold: #A59680;
  --gold-hover: #8A7D6A;
  --ok: #6E8B6E;
  --amber: #B8924A;

  /* qualifier aliases (kept so lifted component CSS reads cleanly) */
  --bg: var(--cream);
  --bg-warm: #FAF8F0;
  --bg-section: #F8F6F2;
  --border: var(--cream-deep);
  --success: #6B8F71;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-numeric: "Inter", "Instrument Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --radius-input: 14px;
  --radius-card: 20px;
  --radius-pill: 3.33em;

  --shadow-sm: 0 1px 2px rgba(26, 46, 28, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 46, 28, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 46, 28, 0.08);
}

/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; max-width: 100vw; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--forest-dark);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100vw;
}
input, select, button, textarea { font-family: inherit; outline: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ============================================================
   STICKY PROGRESS HEADER  (rendered by FT.header into #ft-header)
   ============================================================ */
.ft-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-deep);
}
.ft-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}
.ft-logo { flex: 0 0 auto; display: flex; align-items: center; }
.ft-logo img { height: 22px; width: auto; }

/* desktop macro-stage pills */
.ft-stages { flex: 1; display: flex; align-items: center; gap: 6px; justify-content: center; min-width: 0; }
.ft-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1.5px solid var(--cream-deep);
  background: var(--white);
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
  transition: all 0.25s ease;
}
.ft-stage-pill .pill-num {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
  flex-shrink: 0;
}
.ft-stage-pill .pill-num svg { width: 10px; height: 10px; stroke: var(--white); stroke-width: 3; fill: none; }
.ft-stage-pill.done { border-color: var(--forest-light); color: var(--forest); }
.ft-stage-pill.done .pill-num { background: var(--forest); }
.ft-stage-pill.current { border-color: var(--forest); color: var(--forest-dark); background: rgba(165, 150, 128, 0.06); }
.ft-stage-pill.current .pill-num { background: var(--forest); }
.ft-stage-pill.locked { opacity: 0.55; cursor: default; }
a.ft-stage-pill:hover { border-color: var(--forest-light); }
.ft-stage-pill.locked:hover { border-color: var(--cream-deep); }

/* mobile collapse: numbered dots + current label */
.ft-stages-mobile { display: none; flex: 1; min-width: 0; flex-direction: column; align-items: center; gap: 4px; }
.ft-dots { display: flex; align-items: center; gap: 7px; }
.ft-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
  font-family: var(--font-numeric);
  text-decoration: none;
  flex-shrink: 0;
}
.ft-dot svg { width: 10px; height: 10px; stroke: var(--white); stroke-width: 3; fill: none; }
.ft-dot.done { background: var(--forest); }
.ft-dot.current { background: var(--forest-dark); box-shadow: 0 0 0 3px rgba(165, 150, 128, 0.25); }
.ft-dot.locked { opacity: 0.6; }
.ft-stage-label { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-stage-label strong { color: var(--forest-dark); font-weight: 600; }

@media (max-width: 940px) {
  .ft-stage-pill .pill-text { display: none; }
  .ft-stage-pill { padding: 6px 8px; }
}
@media (max-width: 720px) {
  .ft-header-inner { padding: 10px 14px; gap: 10px; }
  .ft-logo img { height: 18px; }
  .ft-stages { display: none; }
  .ft-stages-mobile { display: flex; }
}

/* saving chip */
.save-chip {
  flex: 0 0 auto;
  min-width: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.35s ease, color 0.35s ease;
  white-space: nowrap;
}
.save-chip.show { opacity: 1; }
.save-chip.saved { color: var(--ok); }
.save-chip.error { color: var(--amber); }
.save-chip .chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--forest-light);
  flex-shrink: 0;
}
.save-chip.saving .chip-dot { animation: chipPulse 1s ease infinite; }
.save-chip.saved .chip-dot { background: var(--ok); }
.save-chip.error .chip-dot { background: var(--amber); }
@keyframes chipPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}
@media (max-width: 720px) {
  .save-chip { min-width: 0; }
  .save-chip .chip-text { display: none; }
}

/* review status band (under header) */
.review-band {
  display: none;
  padding: 9px 20px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  border-top: 1px solid var(--cream-deep);
}
.review-band.show { display: block; }
.review-band.pending { background: rgba(184, 146, 74, 0.10); color: #7D6636; }
.review-band.approved { background: rgba(110, 139, 110, 0.13); color: #476247; }
.review-band.info { background: rgba(165, 150, 128, 0.10); color: var(--muted); }
.review-band strong { font-weight: 600; }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 36px 120px;
}
.form-inner { max-width: 720px; margin: 0 auto; }
@media (max-width: 720px) {
  .page-wrap { padding: 32px 18px 110px; }
}
/* pages with the fixed bottom step-nav add this class to <body> */
body.has-sticky-nav .page-wrap { padding-bottom: 170px; }

/* ========== HERO (journey home) ========== */
.hero { text-align: center; margin-bottom: 14px; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--forest-dark);
  margin-bottom: 14px;
}
.hero h1 em { font-style: italic; color: var(--forest); }
.hero .sub { font-size: 17px; color: var(--muted); max-width: 540px; margin: 0 auto 24px; line-height: 1.6; }
@media (max-width: 720px) {
  .hero h1 { font-size: 34px; }
  .hero .sub { font-size: 15.5px; }
}
.hero-cta { margin-top: 6px; }
.hero-cta .cta-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ========== STEP SCREENS ========== */
.step { display: none; }
.step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 16px;
}
.step h2, .page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--forest-dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.step h2 em, .page-title em { font-style: italic; color: var(--forest); }
.step .step-desc, .page-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ========== SUB-STEP PILLS (within a stage) ========== */
.substeps { display: flex; align-items: center; gap: 6px; margin: 0 0 28px; flex-wrap: wrap; }
.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1.5px solid var(--cream-deep);
  background: var(--white);
  transition: all 0.25s ease;
}
.sub-pill .sub-num {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
  flex-shrink: 0;
}
.sub-pill.active { border-color: var(--forest); color: var(--forest-dark); background: rgba(165, 150, 128, 0.06); }
.sub-pill.active .sub-num { background: var(--forest); }
.sub-pill.completed { border-color: var(--forest-light); color: var(--forest); }
.sub-pill.completed .sub-num { background: var(--forest); }
@media (max-width: 480px) {
  .sub-pill .sub-text { display: none; }
  .sub-pill { padding: 5px 7px; }
}

/* ============================================================
   JOURNEY RAIL (home)  — lifted from /fast-track/
   ============================================================ */
.rail { margin-top: 46px; position: relative; max-width: 880px; margin-left: auto; margin-right: auto; }
.rail::before {
  content: "";
  position: absolute;
  left: 23px; top: 24px; bottom: 24px;
  width: 2px;
  background: var(--cream-deep);
  z-index: 0;
}
@media (max-width: 720px) { .rail::before { left: 19px; } }

.stage-row { position: relative; display: flex; gap: 22px; padding-bottom: 18px; z-index: 1; }
.stage-row:last-child { padding-bottom: 0; }
.node {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-numeric);
  font-size: 17px; font-weight: 600;
  color: var(--forest-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
@media (max-width: 720px) { .node { width: 40px; height: 40px; font-size: 15px; } }
.node svg { width: 20px; height: 20px; }

.rail-card {
  flex: 1;
  background: var(--white);
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  min-width: 0;
  text-decoration: none;
  display: block;
  color: inherit;
}
a.rail-card:hover { border-color: var(--forest-light); box-shadow: var(--shadow-md); }
.rail-card .c-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rail-card h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600;
  color: var(--forest-dark);
  letter-spacing: -0.01em;
}
.badge {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap; flex-shrink: 0;
}
.badge.locked { background: var(--cream-deep); color: var(--muted); }
.badge.available { background: rgba(165, 150, 128, 0.14); color: var(--gold-hover); }
.badge.active { background: var(--forest-dark); color: var(--cream); }
.badge.review { background: rgba(184, 146, 74, 0.14); color: var(--amber); }
.badge.done { background: rgba(110, 139, 110, 0.16); color: var(--ok); }
.rail-card .desc { font-size: 15px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.rail-card .meta { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.rail-card .meta svg { width: 15px; height: 15px; color: var(--forest-light); flex-shrink: 0; }
.rail-card .cta { margin-top: 18px; }

/* state-driven node/card styling */
.stage-row.is-done .node { background: var(--forest); border-color: var(--forest); color: var(--white); }
.stage-row.is-active .node { background: var(--forest-dark); border-color: var(--forest-dark); color: var(--cream); }
.stage-row.is-active .rail-card { border-color: var(--forest); box-shadow: var(--shadow-md); }
.stage-row.is-review .node { background: var(--white); border-color: var(--amber); color: var(--amber); }
.stage-row.is-locked .rail-card { background: #FBFAF8; }
.stage-row.is-locked h3 { color: var(--forest-light); }
.stage-row.is-locked .node { opacity: 0.85; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--forest-dark);
  color: var(--cream);
  border: none;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}
.btn:hover { background: #1C1916; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:disabled { background: var(--cream-deep); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 16px; height: 16px; }
.btn.ghost { background: transparent; color: var(--forest-dark); border: 1.5px solid var(--cream-deep); box-shadow: none; }
.btn.ghost:hover { background: rgba(165, 150, 128, 0.06); border-color: var(--forest); }
.btn.lg { padding: 17px 34px; font-size: 16px; }

/* fixed bottom navigation (stage pages) */
.step-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--cream);
  border-top: 1px solid var(--cream-deep);
  padding: 16px 24px;
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(43, 39, 34, 0.06);
}
.step-nav-inner { max-width: 720px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.btn-nav {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-size: 15px; font-weight: 500; line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: var(--font-body);
}
.btn-nav.primary { background: var(--forest); color: var(--cream); flex: 1; }
.btn-nav.primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(165, 150, 128, 0.3);
}
.btn-nav.primary:disabled {
  background: var(--cream-deep); color: var(--muted);
  cursor: not-allowed; transform: none; box-shadow: none; opacity: 0.85;
}
.btn-nav.back { background: transparent; color: var(--forest-dark); border-color: var(--cream-deep); }
.btn-nav.back:hover { border-color: var(--forest-dark); background: var(--white); }
.btn-nav svg { width: 16px; height: 16px; }

/* ============================================================
   FORM CONTROLS  — lifted from /qualifier/
   ============================================================ */
.field-group { margin-bottom: 24px; }
.field-group label {
  display: block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.field-group .field-hint { font-size: 13px; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.field-group input[type="text"],
.field-group input[type="number"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group input[type="date"],
.field-group textarea,
.field-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--forest-dark);
  font-family: var(--font-body);
  font-size: 16px; /* iOS auto-zooms anything <16px on focus — DO NOT lower */
  transition: border-color 0.2s, background 0.2s;
}
.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg);
}
.field-group textarea { min-height: 100px; resize: vertical; }
.field-group input::placeholder,
.field-group textarea::placeholder { color: var(--forest-light); }
.field-row { display: flex; gap: 16px; }
.field-row .field-group { flex: 1; }
@media (max-width: 480px) { .field-row { flex-direction: column; gap: 0; } }

.field-error { color: var(--error); font-size: 13px; margin-top: 6px; display: none; }
.field-group.has-error input,
.field-group.has-error textarea,
.field-group.has-error select { border-color: var(--error); }
.field-group.has-error .field-error { display: block; }

/* ========== OPTION CARDS (yes/no, multiple choice) ========== */
.option-cards { display: flex; flex-direction: column; gap: 10px; }
.option-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.option-card:hover { border-color: var(--forest-light); }
.option-card.selected { border-color: var(--gold); background: var(--bg); }
.option-card input[type="radio"],
.option-card input[type="checkbox"] { display: none; }
.option-card .radio-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.option-card.selected .radio-dot { border-color: var(--gold); }
.option-card.selected .radio-dot::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.option-card .check-box {
  width: 20px; height: 20px;
  border-radius: 4px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.option-card.selected .check-box { border-color: var(--gold); background: var(--gold); }
.option-card.selected .check-box::after {
  content: '';
  width: 6px; height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}
.option-card .option-label { font-size: 15px; color: var(--forest-dark); line-height: 1.4; }
.option-card .option-sublabel { font-size: 13px; color: var(--muted); margin-top: 2px; }
.condition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.condition-grid .option-card { padding: 12px 14px; }
.condition-grid .option-label { font-size: 13.5px; }
@media (max-width: 480px) { .condition-grid { grid-template-columns: 1fr; } }

/* ========== CONSENT TILES ========== */
.consent-intro {
  background: var(--bg-section);
  border: 1px solid var(--cream-deep);
  border-left: 3px solid var(--forest);
  border-radius: var(--radius-input);
  padding: 24px 28px;
  margin-bottom: 28px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
}
.consent-intro h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--forest-dark);
  margin: 0 0 10px;
  font-style: italic;
  letter-spacing: -0.005em;
}
.consent-intro h3:not(:first-child) { margin-top: 20px; }
.consent-intro strong { color: var(--forest-dark); }
.consent-intro p { margin: 0 0 10px; }
.consent-intro p:last-child { margin-bottom: 0; }
.consent-intro a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.consent-intro a:hover { color: var(--forest-dark); }

.consent-list { margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.consent-item {
  display: flex; gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  user-select: none;
  align-items: flex-start;
}
.consent-item:hover { border-color: var(--forest-light); }
.consent-item:focus-visible {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(165, 150, 128, 0.18);
}
.consent-item.checked { border-color: var(--forest); background: rgba(165, 150, 128, 0.06); }
.consent-item .consent-box {
  width: 22px; height: 22px; min-width: 22px;
  border: 1.5px solid var(--forest-light);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: background 0.2s, border-color 0.2s;
  background: var(--white);
}
.consent-item.checked .consent-box { background: var(--forest); border-color: var(--forest); }
.consent-item .consent-box svg {
  width: 13px; height: 13px;
  stroke: var(--white); stroke-width: 3; fill: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.consent-item.checked .consent-box svg { opacity: 1; }
.consent-item .consent-text { flex: 1; font-size: 14.5px; line-height: 1.55; color: var(--forest-dark); }
.consent-item .consent-text .req {
  display: inline-block;
  background: var(--forest-dark); color: var(--cream);
  font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px;
  margin-right: 8px; vertical-align: middle;
}
.consent-item .consent-text .opt {
  display: inline-block;
  background: var(--forest-light); color: var(--forest-dark);
  font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px;
  margin-right: 8px; vertical-align: middle;
}
.consent-helper { margin-top: 22px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; }

/* ========== WARM NOTE PANEL / CALLOUTS ========== */
.note-panel {
  margin-top: 16px;
  padding: 18px 20px;
  background: rgba(165, 150, 128, 0.08);
  border-left: 3px solid var(--forest);
  border-radius: var(--radius-input);
  font-size: 14px;
  line-height: 1.65;
  color: var(--forest-dark);
}
.note-panel > strong { color: var(--forest-dark); display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; }
.note-panel p { margin: 0; color: var(--muted); }
.note-panel p + p { margin-top: 8px; }
.note-panel p strong { color: var(--forest-dark); display: inline; font-weight: 600; }
.note-panel a { color: var(--forest); text-decoration: underline; font-weight: 500; }

.info-callout, .callout {
  background: rgba(165, 150, 128, 0.08);
  border-left: 3px solid var(--forest-light);
  padding: 18px 22px;
  border-radius: var(--radius-input);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--forest-dark);
  margin: 24px 0;
}
.info-callout strong, .callout strong { color: var(--forest); font-weight: 600; }

.disclaimer-note {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--bg-warm);
  border: 1px solid var(--forest-light);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--forest-dark);
  line-height: 1.65;
}
.disclaimer-note.visible { display: block; }
.disclaimer-note strong { display: block; margin-bottom: 4px; color: var(--forest-dark); font-size: 14.5px; }

/* ========== INTERSTITIAL / PATHWAY PANELS (home) ========== */
.lane-panel {
  max-width: 620px;
  margin: 26px auto 0;
  background: var(--white);
  border: 1.5px solid var(--cream-deep);
  border-left: 3px solid var(--forest);
  border-radius: var(--radius-card);
  padding: 26px 30px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.lane-panel h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 500;
  color: var(--forest-dark);
  margin-bottom: 8px;
}
.lane-panel h3 em { font-style: italic; color: var(--forest); }
.lane-panel p { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin-bottom: 8px; }
.lane-panel p:last-of-type { margin-bottom: 0; }
.lane-panel p strong { color: var(--forest-dark); font-weight: 600; }
.lane-panel .cta { margin-top: 16px; }

/* ========== REVIEW STATUS BAND (inline page variant) ========== */
.status-band {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-input);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 24px 0;
}
.status-band.pending { background: rgba(184, 146, 74, 0.10); color: #7D6636; border: 1px solid rgba(184, 146, 74, 0.25); }
.status-band.approved { background: rgba(110, 139, 110, 0.12); color: #476247; border: 1px solid rgba(110, 139, 110, 0.3); }
.status-band.info { background: rgba(165, 150, 128, 0.10); color: var(--muted); border: 1px solid var(--cream-deep); }

/* ========== PLACEHOLDER PANEL ("being polished") ========== */
.polish-panel {
  max-width: 560px;
  margin: 48px auto;
  background: var(--white);
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-card);
  padding: 52px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.polish-panel .polish-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(165, 150, 128, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.polish-panel .polish-icon svg { width: 26px; height: 26px; stroke: var(--forest); }
.polish-panel h2 {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 500;
  color: var(--forest-dark);
  margin-bottom: 10px;
}
.polish-panel p { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 26px; }
@media (max-width: 480px) { .polish-panel { padding: 40px 24px; margin-top: 28px; } }

/* ============================================================
   ERROR MODAL — lifted from /qualifier/
   ============================================================ */
.error-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(43, 39, 34, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.error-modal-overlay.visible { display: flex; }
.error-modal {
  background: var(--bg);
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(43, 39, 34, 0.25);
  border: 1px solid var(--border);
  animation: errorModalIn 0.22s ease-out;
}
@keyframes errorModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.error-modal-icon {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  background: var(--error-bg);
  color: var(--error);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 28px; font-weight: 500;
}
.error-modal-message {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.55;
  color: var(--forest-dark);
  margin: 0 0 24px;
}
.error-modal-btn {
  background: var(--gold);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 12px 36px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500; letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease;
  min-width: 120px;
}
.error-modal-btn:hover { background: var(--gold-hover); }
.error-modal-btn:focus-visible { outline: 2px solid var(--gold-hover); outline-offset: 3px; }

/* ============================================================
   TOAST
   ============================================================ */
.ft-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(16px);
  background: var(--forest-dark);
  color: var(--cream);
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  line-height: 1.4;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.ft-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.has-sticky-nav .ft-toast { bottom: 104px; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--forest-dark);
  color: var(--cream);
  padding: 52px 36px 120px; /* generous bottom clearance for the Stacy button */
  margin-top: 56px;
}
.footer-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.footer-logo { height: 20px; width: auto; margin: 0 auto 22px; display: block; opacity: 0.92; }
.footer-attribution {
  font-size: 13px; line-height: 1.65;
  color: rgba(243, 240, 235, 0.78);
  margin-bottom: 18px;
}
.footer-attribution strong { color: var(--cream); font-weight: 600; }
.footer-disclaimer {
  font-size: 12px; line-height: 1.65;
  color: rgba(243, 240, 235, 0.55);
  text-align: left;
  border-top: 1px solid rgba(243, 240, 235, 0.12);
  padding-top: 22px; margin-top: 22px;
}
.footer-disclaimer p { margin-bottom: 10px; }
.footer-disclaimer a { color: rgba(243, 240, 235, 0.85); text-decoration: underline; }
.footer-disclaimer a:hover { color: var(--cream); }
.footer-entity {
  text-align: center;
  font-size: 12px;
  color: rgba(243, 240, 235, 0.6);
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(243, 240, 235, 0.12);
  letter-spacing: 0.02em;
}

/* ============================================================
   ASK STACY WIDGET  (injected by assist.js)
   ============================================================ */
.stacy-fab {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 8000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--forest);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(43, 39, 34, 0.22);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
}
.stacy-fab:hover { background: var(--gold-hover); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(43, 39, 34, 0.26); }
.stacy-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.stacy-fab .fab-label { display: none; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; padding-right: 4px; }
@media (min-width: 720px) {
  .stacy-fab { padding: 14px 20px; right: 24px; bottom: 24px; }
  .stacy-fab .fab-label { display: inline; }
}
body.has-sticky-nav .stacy-fab { bottom: 96px; }
@media (min-width: 720px) { body.has-sticky-nav .stacy-fab { bottom: 100px; } }
.stacy-fab.pulse { animation: stacyPulse 2.4s ease 1 0.9s; }
@keyframes stacyPulse {
  0% { box-shadow: 0 8px 24px rgba(43, 39, 34, 0.22), 0 0 0 0 rgba(165, 150, 128, 0.55); }
  60% { box-shadow: 0 8px 24px rgba(43, 39, 34, 0.22), 0 0 0 18px rgba(165, 150, 128, 0); }
  100% { box-shadow: 0 8px 24px rgba(43, 39, 34, 0.22), 0 0 0 0 rgba(165, 150, 128, 0); }
}
body.stacy-open .stacy-fab { display: none; }

.stacy-backdrop {
  position: fixed; inset: 0;
  background: rgba(43, 39, 34, 0.35);
  z-index: 8400;
  display: none;
}
body.stacy-open .stacy-backdrop { display: block; }
@media (min-width: 720px) { body.stacy-open .stacy-backdrop { display: none; } }

.stacy-panel {
  position: fixed;
  z-index: 8500;
  display: none;
  flex-direction: column;
  background: var(--cream);
  overflow: hidden;
  /* mobile: full-height slide-up sheet */
  inset: 0;
  border-radius: 0;
}
.stacy-panel.open { display: flex; animation: stacyUp 0.28s ease-out; }
@keyframes stacyUp {
  from { transform: translateY(28px); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}
@media (min-width: 720px) {
  .stacy-panel {
    inset: auto;
    right: 24px; bottom: 24px;
    width: 380px; height: 560px;
    max-height: calc(100dvh - 48px);
    border-radius: var(--radius-card);
    border: 1px solid var(--cream-deep);
    box-shadow: 0 24px 60px rgba(43, 39, 34, 0.28);
  }
}
.stacy-head {
  background: var(--forest-dark);
  color: var(--cream);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.stacy-head .head-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 19px; font-weight: 500;
  flex-shrink: 0;
}
.stacy-head .head-text { flex: 1; min-width: 0; }
.stacy-head .head-title { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.stacy-head .head-sub { font-size: 12px; color: rgba(243, 240, 235, 0.65); margin-top: 1px; }
.stacy-close {
  background: none; border: none;
  color: rgba(243, 240, 235, 0.75);
  font-size: 26px; line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  transition: color 0.15s ease;
}
.stacy-close:hover { color: var(--cream); }

.stacy-msgs {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--cream);
}
.smsg {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.smsg.user {
  align-self: flex-end;
  background: var(--forest);
  color: var(--cream);
  border-bottom-right-radius: 6px;
}
.smsg.stacy {
  align-self: flex-start;
  background: var(--bg-section);
  border: 1px solid var(--cream-deep);
  color: var(--forest-dark);
  border-bottom-left-radius: 6px;
}
.smsg.soft { background: var(--bg-warm); border: 1px solid var(--forest-light); color: var(--muted); font-size: 13.5px; }
.stacy-typing {
  align-self: flex-start;
  display: none;
  gap: 5px;
  padding: 13px 16px;
  background: var(--bg-section);
  border: 1px solid var(--cream-deep);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
}
.stacy-typing.on { display: inline-flex; }
.stacy-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--forest-light);
  animation: typDot 1.2s ease infinite;
}
.stacy-typing span:nth-child(2) { animation-delay: 0.15s; }
.stacy-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typDot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.stacy-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 10px; background: var(--cream); flex-shrink: 0; }
.stacy-chip {
  border: 1.5px solid var(--cream-deep);
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 9px 15px;
  font-size: 13px;
  color: var(--forest-dark);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.stacy-chip:hover { border-color: var(--forest); background: rgba(165, 150, 128, 0.06); }

.stacy-input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 8px;
  border-top: 1px solid var(--cream-deep);
  background: var(--white);
  flex-shrink: 0;
}
.stacy-input {
  flex: 1;
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-size: 16px; /* iOS — do not lower */
  font-family: var(--font-body);
  color: var(--forest-dark);
  background: var(--cream);
  min-width: 0;
}
.stacy-input:focus { border-color: var(--forest); }
.stacy-send {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.stacy-send:hover { background: var(--gold-hover); }
.stacy-send:disabled { background: var(--cream-deep); cursor: not-allowed; }
.stacy-send svg { width: 18px; height: 18px; }
.stacy-foot {
  padding: 4px 14px 12px;
  background: var(--white);
  text-align: center;
  flex-shrink: 0;
}
@supports (padding: env(safe-area-inset-bottom)) {
  .stacy-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
.stacy-callback {
  background: none; border: none;
  color: var(--muted);
  font-size: 12.5px;
  font-family: var(--font-body);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.stacy-callback:hover { color: var(--forest-dark); }
.stacy-callback:disabled { opacity: 0.5; cursor: not-allowed; }

/* Ask Stacy — streaming reveal cursor */
.smsg-cursor { display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 2px; vertical-align: -0.15em; animation: smsgblink .8s step-start infinite; }
@keyframes smsgblink { 50% { opacity: 0; } }
