/* Batash weight-loss path quiz - FUNCTIONAL app stylesheet (responsive)
   Adapted from the wireframe quiz.css. The phone-frame chrome (stage/phone/
   statusbar) is dropped so the live app is genuinely responsive: full-bleed
   on mobile, centered in a card on a soft brand panel on desktop.

   Brand source of truth: ../_source/brand-research/brand-extract.json
   navy #1a3a5c headings | orange #E8711A primary CTA | blue #188bf6 secondary
   body #5e5e5e | bg white / #E7ECF1 / #CDE0EC / #FFDFC8 | border #EAEAEA
   Font: Poppins (Arial fallback). Mobile-first. */

:root {
  --navy: #1a3a5c;
  --blue: #188bf6;
  --orange: #E8711A;
  --orange-deep: #cf5f0e;
  --ink: #1E1E1E;
  --body: #5e5e5e;
  --white: #FFFFFF;
  --bg-light: #E7ECF1;
  --bg-soft-blue: #CDE0EC;
  --bg-cream: #FFDFC8;
  --border: #EAEAEA;
  --soft-red-brown: #9a4b2e; /* brand-safe validation, not alarm red */
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 600px;          /* desktop card width (spec: 560-640px) */
  --float-h: 84px;        /* reserved space for the floating consult bar */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Poppins', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--body);
  background: var(--white);
}

/* The page background: a soft brand panel, visible only around the card on
   larger screens. On mobile the card fills the viewport so the panel is hidden. */
body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 20% 0%, rgba(205,224,236,0.55), transparent 60%),
    linear-gradient(160deg, #eef3f8 0%, #dfe9f2 100%);
}

/* App shell. Mobile-first: full width, full min-height, single column.
   Desktop: centered card with shadow, capped width. */
.app {
  width: 100%;
  min-height: 100dvh;
  max-width: 100%;
  margin: 0 auto;
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

@media (min-width: 680px) {
  body { padding: 40px 16px; }
  .app {
    max-width: var(--maxw);
    min-height: auto;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(26,58,92,0.18), 0 4px 14px rgba(26,58,92,0.08);
    border: 1px solid rgba(26,58,92,0.06);
    margin: 0 auto;
  }
}

/* Logo header. Logo is CENTERED (R4). Back button is absolutely positioned left. */
.appbar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
  flex: 0 0 auto;
}
.appbar .logo { height: 30px; width: auto; display: block; }
.appbar .logo-fallback { height: 24px; }
.appbar .back {
  position: absolute;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 8px;
  min-height: 44px;
}
.appbar .back:hover { background: var(--bg-light); }
.appbar .back svg { width: 17px; height: 17px; }
.appbar .back[hidden] { display: none; }

/* Progress */
.progress-wrap { padding: 14px 22px 6px; flex: 0 0 auto; }
.progress-wrap[hidden] { display: none; }
.progress-track { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 99px;
  width: 0;
  transition: width .32s cubic-bezier(.4,0,.2,1);
}
.progress-label { margin-top: 8px; font-size: 12px; color: var(--body); font-weight: 500; }

/* Screen body. Flex-grow so footer sits at the bottom on tall viewports. */
.screen {
  padding: 22px 22px 30px;
  flex: 1 1 auto;
  width: 100%;
}
.screen.intro { padding: 30px 22px 34px; }
@media (min-width: 680px) {
  .screen { padding: 26px 30px 32px; }
}

/* Typography */
.kicker { color: var(--orange); font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
h1.q-headline {
  color: var(--navy);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.intro h1.q-headline { font-size: 31px; line-height: 1.16; }
h2.q-question {
  color: var(--navy);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.28;
  margin-bottom: 8px;
}
.subhead { color: var(--body); font-size: 15px; line-height: 1.55; }
.helper { color: var(--body); font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; font-weight: 400; opacity: .92; }
.sub-part-label { color: var(--navy); font-size: 13px; font-weight: 700; margin: 18px 0 8px; }
.sub-part-label:first-of-type { margin-top: 14px; }

/* Option cards */
.options { display: grid; gap: 10px; margin-top: 16px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: box-shadow .18s ease, transform .05s ease, background .15s ease, border-color .15s ease;
}
.opt:hover { box-shadow: 0 6px 16px rgba(26,58,92,0.10); }
.opt:active { transform: scale(0.985); }
.opt .ctrl {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 2px solid #c2cedb;
  border-radius: 50%;
  position: relative;
  transition: border-color .15s ease, background .15s ease;
}
.opt.check .ctrl { border-radius: 6px; }
.opt-label { flex: 1; }
/* selected */
.opt.selected {
  border-color: var(--orange);
  border-left: 3px solid var(--orange);
  background: var(--bg-soft-blue);
  font-weight: 600;
}
.opt.selected .ctrl { border-color: var(--orange); background: var(--orange); }
.opt.selected.check .ctrl::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.opt.selected.radio .ctrl::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
/* keyboard focus */
.opt:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .05s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 10px 24px rgba(232,113,26,0.32); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-primary:active { transform: translateY(-1px); }
.btn-primary[disabled], .btn-primary.disabled { background: var(--orange); opacity: .42; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--white); color: var(--blue); border: 1.5px solid var(--blue); }
.btn-secondary:hover { background: #f3f9ff; }
.btn-ghost { background: none; color: var(--navy); min-height: 44px; font-weight: 500; font-size: 14px; box-shadow: none; }
.btn-ghost:hover { background: var(--bg-light); }
.btn-block { margin-top: 18px; }

.reassure { text-align: center; color: var(--body); font-size: 13px; margin-top: 12px; font-weight: 500; }
.reassure-inline { color: var(--body); font-size: 12.5px; margin-top: 8px; line-height: 1.5; font-style: italic; }

/* Forms */
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { color: var(--navy); font-size: 13px; font-weight: 600; display: flex; align-items: baseline; gap: 6px; }
.field label .optional { color: var(--body); font-weight: 500; font-size: 12px; }
.field input, .field select {
  height: 50px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  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 1l5 5 5-5' stroke='%231a3a5c' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,92,0.12); }
.field.error input, .field.error select { border-color: var(--orange); }
.field.error input:focus, .field.error select:focus { box-shadow: 0 0 0 3px rgba(232,113,26,0.18); }
.field .err-text { color: var(--soft-red-brown); font-size: 12.5px; font-weight: 500; }
.field .err-text[hidden] { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.group-title { color: var(--navy); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin: 4px 0 12px; opacity: .8; }
.soft-group { background: var(--bg-light); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }

/* pill choices (gender) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
  min-height: 44px;
  transition: background .15s ease, border-color .15s ease;
}
.pill:hover { background: #f3f7fb; }
.pill.selected { background: var(--bg-soft-blue); border-color: var(--orange); font-weight: 600; }
.pill:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Height / weight composite inputs (RR3 redesign).
   A soft brand card holds two clearly-labelled rows. Inputs reuse the brand
   .field input styling (padded, bordered, 54px tall) for large tap targets and
   visual consistency with the rest of the quiz. US imperial only. */
.hw-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 16px;
  margin-top: 4px;
}
.hw-field { margin-bottom: 0; gap: 8px; }
.hw-field > label { color: var(--navy); font-size: 13px; font-weight: 600; }
.hw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hw-row.single { grid-template-columns: 1fr; max-width: 200px; }
.hw-unit { position: relative; }
/* the height/weight inputs reuse the brand field-input look */
.hw-unit input {
  height: 54px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 46px 0 16px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.hw-unit input::-webkit-outer-spin-button,
.hw-unit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hw-unit input { -moz-appearance: textfield; }
.hw-unit input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,92,0.12); }
.hw-unit .suffix {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--body); font-size: 14px; font-weight: 600; pointer-events: none;
}
.hw-err { display: block; color: var(--soft-red-brown); font-size: 12.5px; font-weight: 500; margin-top: 10px; }
.hw-err[hidden] { display: none; }

/* Inline "What are my options?" explainer (RR6). Native <details> toggle. */
.explainer {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.explainer summary {
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  min-height: 32px;
}
.explainer summary::-webkit-details-marker { display: none; }
.explainer summary::before {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--blue);
  transition: transform .18s ease;
  flex: 0 0 auto;
}
.explainer[open] summary::before { transform: rotate(90deg); }
.explainer summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.explainer p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}

/* consent */
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; cursor: pointer; }
.consent[hidden] { display: none; }
.consent .box {
  flex: 0 0 auto; width: 22px; height: 22px;
  border: 2px solid #c2cedb; border-radius: 5px;
  margin-top: 1px; position: relative;
  transition: background .15s ease, border-color .15s ease;
}
.consent.checked .box { background: var(--orange); border-color: var(--orange); }
.consent.checked .box::after { content:''; position:absolute; left:6px; top:1px; width:6px; height:11px; border:solid #fff; border-width:0 2.5px 2.5px 0; transform:rotate(45deg); }
.consent:focus-visible { outline: none; }
.consent:focus-visible .box { outline: 2px solid var(--navy); outline-offset: 2px; }
.consent p { font-size: 11.5px; line-height: 1.55; color: var(--body); }
.privacy-note { font-size: 11.5px; line-height: 1.5; color: var(--body); margin-top: 14px; }
.email-framing {
  background: var(--bg-soft-blue);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-privacy { padding: 14px 22px 18px; border-top: 1px solid var(--border); text-align: center; font-size: 11.5px; color: var(--body); flex: 0 0 auto; }
.footer-privacy[hidden] { display: none; }
.footer-privacy svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }

/* Loading interstitial */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 30px;
  min-height: 60dvh;
  gap: 20px;
}
.loading-screen .logo { height: 30px; }
.spinner {
  width: 46px; height: 46px;
  border: 4px solid var(--bg-light);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen .loading-line { color: var(--navy); font-size: 15px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 1.6s; }
  .progress-fill { transition: none; }
  .opt { transition: none; }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Result screen specifics */
.results { padding-bottom: calc(var(--float-h) + 14px); } /* never let the float bar cover compliance copy */
.result-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-cream);
  color: var(--orange-deep);
  font-size: 11.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 99px;
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.result-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.result-block { margin-top: 18px; }
.result-block .label { color: var(--orange); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.result-block p { color: var(--body); font-size: 14px; line-height: 1.6; }
.result-block h3 { color: var(--navy); font-size: 16px; font-weight: 600; margin-bottom: 6px; }

.program-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 18px;
}
.program-card .pc-title { color: var(--navy); font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.program-list { display: grid; gap: 10px; }
.program-list .pl-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--body); line-height: 1.45; }
.program-list .pl-item .tick { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); position: relative; margin-top: 1px; }
.program-list .pl-item .tick::after { content:''; position:absolute; left:6px; top:3px; width:4px; height:8px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.complement-note { background: var(--bg-soft-blue); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 12px; font-size: 12.5px; color: var(--navy); line-height: 1.5; font-weight: 500; }

/* dual compare layout */
.compare-grid { display: grid; gap: 12px; margin-top: 16px; }
.compare-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
}
.compare-card.primary { border-color: var(--orange); background: #fff8f2; }
.compare-card .cc-tag { display:inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--orange-deep); background: var(--bg-cream); padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.compare-card .cc-tag.alt { color: var(--navy); background: var(--bg-light); }
.compare-card h3 { color: var(--navy); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.compare-card p { color: var(--body); font-size: 13px; line-height: 1.55; }

.roadmap-line { background: var(--white); border: 1px dashed #c2cedb; border-radius: var(--radius-sm); padding: 15px; margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--navy); }

/* Patient story card (R10) */
.story-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 20px;
}
.story-card .sc-eyebrow { color: var(--orange); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.story-card .sc-quote { color: var(--navy); font-size: 14px; line-height: 1.55; font-weight: 500; font-style: italic; }
.story-card .sc-meta { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.story-card .sc-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.story-card .sc-name { color: var(--navy); font-size: 13px; font-weight: 700; }
.story-card .sc-result { color: var(--body); font-size: 12px; }
.story-card .sc-vary { color: var(--body); font-size: 11px; margin-top: 12px; }

/* practice-credibility proof shown on every result (FIX 2).
   Leads with the three homepage stats in a clean row (same visual language as
   the intro trust strip), then the honest-recommendation framing below. */
.proof-card {
  background: var(--bg-soft-blue);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 20px;
}
/* 3-stat row, mirroring the intro .intro-stats / .hs-* treatment. A white inner
   panel lifts the figures off the soft-blue card. Reuses the same .hs-stat/
   .hs-num/.hs-lab/.hs-div markup the intro emits for consistency. */
.proof-card .proof-stats {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  margin-bottom: 14px;
}
.proof-card .proof-stats .hs-stat { flex: 1 1 0; text-align: center; min-width: 0; }
.proof-card .proof-stats .hs-num { color: var(--navy); font-size: 19px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.proof-card .proof-stats .hs-lab { color: var(--body); font-size: 11px; line-height: 1.3; margin-top: 5px; }
.proof-card .proof-stats .hs-div { width: 1px; background: #d6dee7; flex: 0 0 1px; align-self: center; height: 38px; }
.proof-card .pf-label { color: var(--navy); font-size: 13px; line-height: 1.55; font-weight: 500; }

/* "See more patient results" text link (FIX 3). Small, clear, brand-blue, with a
   trailing external-link arrow. Sits under the before/after pair on paths that
   have one, or just under the credibility strip on paths that do not. */
.more-results { margin-top: 12px; text-align: center; }
.result-ba + .more-results { margin-top: 14px; }
.proof-card + .more-results { margin-top: 12px; }
.more-results-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 4px;
  min-height: 32px;
  border-radius: 8px;
}
.more-results-link:hover { text-decoration: underline; }
.more-results-link:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.more-results-link svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* trust badges (R7) */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}
.trust-badge svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* consult section */
.consult-section { margin-top: 22px; }
.consult-section .cs-lead { color: var(--navy); font-size: 14.5px; line-height: 1.6; font-weight: 500; }

/* The RR5 "Talk it through with Dr. Batash's team" portrait card that used to sit
   inside the consult invite was removed (FIX 1): the navy end-CTA panel above it
   already carries Dr. Batash's photo and the consult invite, so its .consult-dr
   styling is no longer needed. .dr-ring (below) is still used by the intro
   portrait, so it stays. */

/* download roadmap action */
.download-row { margin-top: 16px; }
.download-row .btn svg { width: 18px; height: 18px; }
.download-note { color: var(--body); font-size: 12px; margin-top: 8px; line-height: 1.5; text-align: center; }

.disclaimer {
  margin-top: 20px;
  padding: 14px;
  background: #f6f8fa;
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 1.55;
  color: var(--body);
}
.disclaimer strong { color: var(--navy); font-weight: 600; }

.retake { text-align:center; margin-top: 16px; }

.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* Floating sticky consult button (R2). Fixed to the bottom of the viewport on
   the results screen; stays visible on scroll. On desktop it pins to the
   bottom of the centered card column. */
.float-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(255,255,255,0.99) 70%, rgba(255,255,255,0));
  display: flex;
  justify-content: center;
}
.float-cta[hidden] { display: none; }
.float-cta .btn {
  max-width: var(--maxw);
  box-shadow: 0 8px 24px rgba(232,113,26,0.4), 0 2px 8px rgba(26,58,92,0.12);
}
@media (min-width: 680px) {
  .float-cta {
    left: 50%;
    transform: translateX(-50%);
    width: var(--maxw);
    max-width: var(--maxw);
    right: auto;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(to top, rgba(255,255,255,1) 78%, rgba(255,255,255,0.6));
  }
}

/* Entrance reveal for results blocks (transform + opacity only) */
.reveal { opacity: 0; transform: translateY(8px); animation: reveal-in .5s cubic-bezier(.2,.65,.3,1) forwards; }
@keyframes reveal-in { to { opacity: 1; transform: translateY(0); } }

/* Dr Batash portrait ring (matches live site orange-ring portrait) */
.dr-ring {
  width: 88px; height: 88px; border-radius: 50%;
  padding: 4px;
  background: var(--orange);
  flex: 0 0 auto;
}
.dr-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bg-light); display:block; }

/* ==================================================================
   RR2 rich intro landing (mobile-first, fills the viewport, CTA above
   the fold). Hero block first, then trust / press / preview / proof.
   ================================================================== */

/* The intro screen flows top-aligned and fills the phone. Slightly tighter
   side padding than question screens so the stat strip breathes. */
.screen.intro { padding: 22px 20px 26px; display: block; }

/* Above-the-fold hero: portrait + headline + subhead + CTA + reassurance,
   centered, sized so the Start button is reachable without scrolling. */
.intro-hero { text-align: center; }
.intro-portrait {
  width: 104px; height: 104px;
  margin: 2px auto 16px;
}
.intro-portrait img { background: var(--bg-soft-blue); }
.intro .intro-hero h1.q-headline {
  font-size: 28px;
  line-height: 1.16;
  margin-bottom: 10px;
  text-align: center;
}
.intro-hero .subhead {
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 auto 18px;
}
.intro-hero .btn-block { margin-top: 4px; }
.intro-hero .reassure { margin-top: 10px; }

/* Trust strip: three stats in a clean row with thin dividers. */
.intro-stats {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 16px 10px;
  margin-top: 22px;
}
.intro-stats .hs-stat { flex: 1 1 0; text-align: center; min-width: 0; }
.intro-stats .hs-num { color: var(--navy); font-size: 19px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.intro-stats .hs-lab { color: var(--body); font-size: 11px; line-height: 1.3; margin-top: 5px; }
.intro-stats .hs-div { width: 1px; background: #d6dee7; flex: 0 0 1px; align-self: center; height: 38px; }

/* Credential + rating line under the stats. */
.intro-cred {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 12px;
}
.intro-cred .cred-item {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-size: 12px; font-weight: 600;
}
.intro-cred .cred-item svg { width: 15px; height: 15px; flex: 0 0 auto; }
.intro-cred .cred-dot { width: 3px; height: 3px; border-radius: 50%; background: #c2cedb; flex: 0 0 auto; }

/* Featured-in press row: small, muted, grayscale logos. */
.intro-press { margin-top: 22px; text-align: center; }
.intro-press .press-eyebrow {
  color: var(--body); font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; opacity: .8;
}
.intro-press .press-row {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 18px 22px;
}
.intro-press .press-logo {
  height: 18px; width: auto; display: block;
  filter: grayscale(1); opacity: .55;
}

/* What you'll get preview: 3 items, light icons. */
.intro-wyg {
  margin-top: 24px;
  background: var(--bg-soft-blue);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.intro-wyg .wyg-head {
  color: var(--navy); font-size: 14px; font-weight: 700;
  margin-bottom: 12px;
}
.intro-wyg .wyg-list { list-style: none; display: grid; gap: 12px; }
.intro-wyg .wyg-item {
  display: flex; align-items: flex-start; gap: 11px;
  color: var(--navy); font-size: 13.5px; line-height: 1.4; font-weight: 500;
}
.intro-wyg .wyg-ic {
  flex: 0 0 auto; width: 30px; height: 30px;
  background: var(--white); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.intro-wyg .wyg-ic svg { width: 18px; height: 18px; }

/* Honest social-proof line. */
.intro-social {
  text-align: center; color: var(--body);
  font-size: 12.5px; line-height: 1.5; font-weight: 500;
  margin-top: 18px;
}

@media (min-width: 680px) {
  .screen.intro { padding: 30px 30px 34px; }
  .intro-portrait { width: 112px; height: 112px; }
  .intro .intro-hero h1.q-headline { font-size: 31px; }
}

/* ==================================================================
   RR2 per-path result imagery: procedure "how it works" visual + a real
   before/after pair where available.
   ================================================================== */
.result-figure { margin: 18px 0 0; }
.result-figure .result-how-img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-light);
}
.result-figure .result-fig-cap {
  color: var(--body); font-size: 11.5px; line-height: 1.5;
  margin-top: 8px;
}
.result-ba { margin: 16px 0 0; }
.result-ba .ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-ba .ba-cell {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-light);
}
.result-ba .ba-cell img { width: 100%; height: auto; display: block; aspect-ratio: 444 / 657; object-fit: cover; }
.result-ba .ba-tag {
  position: absolute; top: 8px; left: 8px;
  background: rgba(26,58,92,0.86); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 99px; text-transform: uppercase;
}
.result-ba .ba-cap {
  color: var(--body); font-size: 11px; line-height: 1.5;
  margin-top: 8px; text-align: center;
}

/* ==================================================================
   RR2 end CTA: navy "You have nothing to lose but the weight!" panel,
   adapted from the homepage closing section. Sits above the soft consult
   copy and the booking CTA.
   ================================================================== */
.nothing-panel {
  background:
    radial-gradient(circle at 88% 12%, rgba(24,139,246,0.22), transparent 55%),
    var(--navy);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  /* RR3 (2026-06-09): comfortable gap above the navy end-CTA panel so it does not
     crowd the 3-stat credibility box that precedes it. Explicit top margin so the
     gap holds whether .proof-card (paths A/B) or .more-results (paths C/D) sits
     directly above. */
  margin-top: 28px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: center;
}
.nothing-panel .np-photo {
  width: 86px; height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.nothing-panel .np-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.nothing-panel .np-eyebrow {
  color: var(--orange); font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px;
}
.nothing-panel .np-headline {
  color: #fff; font-size: 21px; font-weight: 700; line-height: 1.16;
  letter-spacing: -0.01em; margin-bottom: 9px;
}
.nothing-panel .np-sub { color: rgba(255,255,255,0.82); font-size: 12.5px; line-height: 1.5; }
@media (min-width: 680px) {
  .nothing-panel { grid-template-columns: 104px 1fr; padding: 24px; }
  .nothing-panel .np-photo { width: 104px; height: 128px; }
  .nothing-panel .np-headline { font-size: 23px; }
}

/* utility */
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.aria-live { position: absolute; left: -9999px; }
