@import url("./tokens.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

/* ========== Shell architecture ==========
 * Desktop (≥768): match live hims.com consult — document scrolls,
 * grid/content grow with page, footer position:fixed full-bleed,
 * hero backgrounds can break out to 100vw.
 * Mobile (≤767): keep sticky-scroll-wrapper (viewport cage + inner scroll).
 */

/* --- Mobile default: viewport-fill sticky CTA wrapper --- */
html,
body {
  height: 100%;
  overflow: hidden;
}

.app-frame {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

/* QA drawer open: offset frame so funnel centers in remaining space */
body:has(#qaSteps[data-collapsed="false"]) .app-frame {
  left: 260px; /* match .qa-steps-panel width */
}

.consult-shell {
  /* live gridstyle__Grid — 745px max, pad 0 24px */
  width: 100%;
  max-width: var(--consult-max-width);
  min-width: 300px;
  height: 100%;
  padding: 0 var(--grid-pad-x);
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.funnel {
  /* live contentstyle__ContentContainer — ~520px */
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: var(--consult-content-width);
  height: 100%;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.funnel.is-secondary {
  background: var(--color-canvas-secondary);
}

.funnel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--chrome-height) 0 var(--footer-height);
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.funnel-scroll.has-footer-space {
  padding-bottom: calc(var(--sticky-cta-space) + env(safe-area-inset-bottom, 0px));
}

/* --- Desktop: live sticky-CTA pattern (document scroll) --- */
@media (min-width: 768px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: visible;
    overflow-y: auto;
  }

  .app-frame {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    min-height: 100vh;
    height: auto;
    overflow: visible;
    background: #fff;
  }

  /* QA drawer: shift content column only; footer stays full viewport */
  body:has(#qaSteps[data-collapsed="false"]) .app-frame {
    left: auto;
    margin-left: 260px;
    width: calc(100% - 260px);
  }

  .consult-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    background: transparent; /* let body white + full-bleed heroes show in gutters */
  }

  .funnel {
    flex: 0 1 auto;
    min-height: 0;
    height: auto;
    overflow: visible;
    background: transparent;
  }

  .funnel.is-secondary {
    background: transparent;
  }

  /* secondary cream on full canvas (transparent funnel) */
  html.is-secondary,
  body.is-secondary,
  .app-frame.is-secondary {
    background: var(--color-canvas-secondary);
  }

  .funnel-scroll {
    flex: 0 1 auto;
    min-height: 0;
    height: auto;
    overflow: visible;
    overflow-x: visible;
    overflow-y: visible;
    padding-top: var(--chrome-height);
    padding-bottom: var(--footer-height);
  }

  .funnel-scroll.has-footer-space {
    /* room under fixed footer (~150px live) */
    padding-bottom: calc(var(--sticky-cta-space) + env(safe-area-inset-bottom, 0px));
  }
}

/* ========== Header (logo + title) — live headerstyle__HeaderContainer ========== */
.step-header {
  display: flex;
  flex-direction: column;
  padding: var(--header-pad);
}

.logo {
  display: block;
  height: var(--header-logo-height);
  margin: 0 0 var(--header-logo-mb);
  line-height: 0;
  text-decoration: none;
  user-select: none;
}

.logo img,
.logo svg {
  display: block;
  height: var(--header-logo-height);
  width: auto;
}

/* Hide decorative step chip — live Goals has none */
.step-meta {
  display: none !important;
}

/* Title — live h2 HeadlineContainer */
.question {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-heading-goals);
  font-weight: var(--fw-heading-goals);
  line-height: var(--lh-heading-goals);
  letter-spacing: var(--ls-heading-goals);
  color: var(--color-text);
  text-align: start;
}

/* When a step description follows the header, drop header bottom pad so helper sits under the question */
.step-header:has(+ .question-desc) {
  padding-bottom: 0;
}

.question-desc {
  font-size: var(--fs-body-m);
  color: var(--color-text-secondary);
  margin: 8px 0 28px;
  line-height: 1.4;
  font-weight: var(--fw-regular);
  padding: 0 9px;
}

/* ========== Choices — live inputstyle__Group / Option / Label ========== */
.choices {
  display: flex;
  flex-direction: column;
  gap: var(--choice-gap);
  width: 100%;
  margin: 0;
  padding: 0;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--choice-min-height);
  margin: 0;
  padding: var(--choice-pad);
  padding-right: calc(var(--choice-pad) + 0px);
  text-align: left;
  background: transparent;
  border: none;
  border-radius: var(--choice-radius);
  color: var(--color-text-label);
  font-family: var(--font-sans);
  font-size: var(--fs-choice);
  font-weight: var(--fw-choice);
  line-height: 1.2;
  letter-spacing: 0.037px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  overflow: hidden;
  transition: color 150ms linear;
}

/* Live label::before border ring */
.choice::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--choice-radius);
  pointer-events: none;
  transition: border-color 150ms linear, border-width 150ms linear;
}

.choice:hover::before {
  border-color: var(--color-border-hover);
}

.choice.is-selected::before {
  border-width: 2px;
  border-color: var(--color-selected);
}

.choice-label {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  font-size: var(--fs-choice);
  font-weight: var(--fw-choice);
  line-height: 1.2;
  color: var(--color-text-label);
}

.choice-caption {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-body-s);
  font-weight: var(--fw-regular);
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.choice-img {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 8px;
  margin-right: 8px;
}

.choice:has(.choice-img) {
  padding: 12px 16px;
}

.choice-check {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1.5px solid #cfcfcf;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: transparent;
  color: transparent;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.choice.is-selected .choice-check {
  background: var(--color-selected);
  border-color: var(--color-selected);
  color: #fff;
}

.choice-check svg {
  width: 12px;
  height: 12px;
}

/* ========== Why we ask ========== */
.why-ask {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--color-why-ask-bg);
  border-radius: var(--choice-radius);
}

.why-ask-title {
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--color-brand);
  margin: 0 0 8px;
}

.why-ask-body {
  font-size: 14px;
  line-height: 1.45;
  color: #444;
  margin: 0 0 10px;
}

.why-ask-source {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: #444;
  text-decoration: underline;
}

.why-ask-source:focus-visible {
  outline: 2px solid var(--color-selected);
  outline-offset: 3px;
}

/* ========== Disclaimer — live disclaimerstyle ========== */
.disclaimer {
  margin-top: var(--disclaimer-mt);
  padding: var(--disclaimer-content-pad);
  font-family: var(--font-sans);
  font-size: var(--fs-disclaimer);
  font-weight: var(--fw-regular);
  line-height: var(--lh-disclaimer);
  letter-spacing: var(--ls-disclaimer);
  color: var(--color-text-muted);
}

.disclaimer .privacy-link,
.disclaimer a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* ========== Interstitial / ConversationText word-reveal ========== */
.app-frame.is-secondary,
.consult-shell.is-secondary,
body.is-secondary {
  background: var(--color-canvas-secondary);
}
.funnel.is-secondary {
  background: var(--color-canvas-secondary);
}
/* secondary scrim handled via .funnel-footer::before */

.interstitial {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 9px 128px;
  max-width: 100%;
  min-height: min(70vh, 560px);
}

.conversation-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-interstitial-text);
  font-size: 28px;
  font-weight: var(--fw-medium);
  line-height: 1.15;
}
.conversation-text.has-highlights {
  color: var(--color-interstitial-text);
}
.conversation-para {
  margin: 0;
  line-height: 80%;
}
.word-container {
  display: inline-block;
  margin-right: 0.25em;
  margin-bottom: 0.17em;
  line-height: 1;
  overflow: hidden;
  vertical-align: bottom;
}
.word {
  position: relative;
  display: block;
  transform: translateY(100%);
  opacity: 0;
  animation:
    word-rise 1000ms cubic-bezier(0.33, 1, 0.68, 1) forwards,
    word-fade 1000ms linear forwards;
}
.word.is-highlight {
  color: var(--color-chip-text);
}
.word.is-highlight::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: calc(100% + 0.5rem);
  height: calc(100% + 0.25rem);
  background: var(--color-chip-bg);
  border: 0.5px solid transparent;
  border-radius: 0.5rem;
  transform: translate(-50%, -50%);
}
@keyframes word-rise {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes word-fade {
  0%, 18% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

/* ========== Shared form / mid-funnel ========== */
.field-block { margin: 20px 0 16px; padding: 0 4px; }
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--color-text);
  appearance: none;
}
.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field-textarea {
  border-radius: 16px;
  min-height: 140px;
  resize: vertical;
  margin-top: 12px;
}
.terms-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 8px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text);
}
.terms-row input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.terms-text a { text-decoration: underline; }

.question.is-centered,
.question-desc.is-centered {
  text-align: center;
}
.step-header.is-medical { align-items: center; }
.choices.is-medical .choice { min-height: 64px; }
.choice.has-chevron { justify-content: space-between; }
.choice-chevron { width: 20px; height: 20px; color: #111; margin-left: auto; }
.choice-chevron svg { width: 20px; height: 20px; }
.choice.is-full { margin-top: 16px; justify-content: center; text-align: center; }

.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  padding: 0 0 14px;
  overflow: hidden;
  text-align: center;
}
.choice-card.is-selected { outline: 2px solid var(--color-selected); }
.choice-card-visual {
  height: 140px;
  background: linear-gradient(160deg, #8b4a3a, #c48a66);
}
.choice-card-visual.tone-oral { background: linear-gradient(160deg, #7a3b2e, #d4a07a); }
.choice-card-visual.tone-topical { background: linear-gradient(160deg, #6b3a32, #b8896a); }
.choice-card-visual.tone-chew { background: linear-gradient(160deg, #a85a3a, #e8b48a); }
.choice-card-visual.tone-pill { background: linear-gradient(160deg, #7a4540, #c9a08a); }
.choice-card-label { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; font-size: 15px; }
.choice-card-label small { color: var(--color-text-secondary); font-size: 13px; }
.choice-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: #c48a66;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.recap { padding: 24px 8px 40px; color: var(--color-interstitial-text); }
.recap-heading {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-interstitial-text);
}
.recap-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(97, 49, 34, 0.12);
}
.recap-card-title {
  background: #8b3d35;
  color: #fff;
  font-weight: 700;
  padding: 14px 18px;
}
.recap-card-body { padding: 8px 18px 18px; }
.recap-section { padding: 12px 0; border-bottom: 1px solid #f0ebe6; }
.recap-section:last-child { border-bottom: 0; }
.recap-section-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #111; }
.recap-item {
  position: relative;
  padding: 4px 0 4px 12px;
  color: var(--color-interstitial-text);
  font-size: 15px;
}
.recap-item::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: #eed7c5;
}
.recap-footer-text {
  margin: 28px 0 0;
  font-size: 22px;
  line-height: 1.3;
  color: var(--color-interstitial-text);
}

.science, .popular { padding: 12px 8px 40px; }
.science-visual {
  position: relative;
  margin-top: 24px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.science-visual > img {
  max-width: 70%;
  max-height: 320px;
  object-fit: contain;
}
.science-card {
  position: absolute;
  width: min(180px, 46%);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.science-card.side-right { top: 12%; right: 0; }
.science-card.side-left { bottom: 18%; left: 0; }
.science-card-title { margin: 0 0 6px; font-family: var(--font-serif); font-size: 18px; }
.science-card-body {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid #c48a66;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.popular-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.popular-card {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  align-items: center;
  background: #f3f1ee;
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
}
.popular-stat {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  color: var(--color-interstitial-text);
  line-height: 1;
}
.popular-body { margin: 6px 0 0; font-size: 14px; line-height: 1.35; }
.popular-card img { width: 120px; height: 100px; object-fit: cover; border-radius: 10px; }

/* ========== Testimonials ========== */
.testimonial-list {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testimonial-list::-webkit-scrollbar { display: none; }
.testimonial-list.is-peek {
  margin-right: -16px;
  padding-right: 40px;
}

/*
 * LIVE TP love carousel — carouselstyles__CarouselWrapper (fiber + live-tp-love-metrics.json)
 * Breakout: width 100vw; margin-left: calc(50% - 50vw)  [avoids left:50% + -50vw drift]
 * Inner inset: padding-left calc(50vw - 240px) → first card at viewport center-240 (=400@1280)
 * Cards: 270.9px, gap 12 (keen perView 1.73913 / spacing 12)
 * MUST beat later .testimonial-card flex rules — see desktop block after .testimonial-card.
 */
.testimonial-card {
  flex: 0 0 min(82%, 300px);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  padding: 0 0 14px;
  text-align: left;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.testimonial-card.is-compact { flex-basis: min(78%, 280px); }

@media (min-width: 768px) {
  /* Full-bleed love rail — must win over mobile peek margins + base card flex */
  .testimonial-list.is-peek,
  .tp-love-list.testimonial-list.is-peek {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: auto;
    right: auto;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 240px);
    padding-right: 0;
    box-sizing: border-box;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: none; /* live keen snap is internal; CSS snap ate left inset */
    -webkit-overflow-scrolling: touch;
  }
  .testimonial-list.is-peek .testimonial-card,
  .testimonial-list.is-peek .testimonial-card.is-compact,
  .tp-love-list .testimonial-card,
  .tp-love-list .testimonial-card.is-compact {
    flex: 0 0 270.9px !important;
    width: 270.9px !important;
    min-width: 270.9px !important;
    max-width: 270.9px !important;
  }
}

.testimonial-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  background: #f0ebe6;
  overflow: hidden;
}
.testimonial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tm-tag {
  position: absolute;
  top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  letter-spacing: 0.02em;
}
.tm-tag.tm-before { left: 12px; }
.tm-tag.tm-after { right: 12px; }
.testimonial-quote {
  margin: 12px 14px 10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-text);
}
.testimonial-reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
  display: grid;
  place-items: center;
}
.testimonial-avatar.is-brand span {
  font-family: Georgia, "Times New Roman", serif;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
}
.testimonial-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-reviewer-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.testimonial-reviewer-meta strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.testimonial-reviewer-meta .verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
}
.verify-check { flex-shrink: 0; }
.testimonial-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 0;
}
.testimonial-labels span {
  background: #f3efe9;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ========== Care support ========== */
.care-support { padding: 8px 0 24px; text-align: center; }
.care-mosaic-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  background: #f4efe8;
  margin-bottom: 28px;
}
.care-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
}
.care-mosaic.is-cols {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.care-mosaic-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.care-mosaic-cell {
  border-radius: 10px;
  overflow: hidden;
  background: #e8dfd4;
}
.care-mosaic:not(.is-cols) .care-mosaic-cell { aspect-ratio: 1; }
.care-mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.care-title-wrap {
  max-width: 22em;
  margin: 0 auto 22px;
  text-align: center;
}
.care-title {
  margin: 0;
  font-family: CareSans, Helvetica, Arial, sans-serif;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: rgba(0,0,0,0.88);
}
.care-title-sub {
  margin: 6px 0 0;
  font-family: CareSans, Helvetica, Arial, sans-serif;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(0,0,0,0.45);
}
.care-list-row {
  display: flex;
  justify-content: center;
  text-align: left;
}
.care-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 22em;
  width: 100%;
}
.care-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(0,0,0,0.18);
  opacity: 0.35;
  transition: color 700ms ease, opacity 700ms ease;
  transition-delay: var(--care-delay, 0ms);
}
.care-item .care-icon svg path,
.care-item .care-icon svg rect {
  stroke: rgba(156,87,85,0.25);
  transition: stroke 700ms ease;
  transition-delay: var(--care-delay, 0ms);
}
.care-support.is-revealed .care-item {
  color: rgba(0,0,0,0.88);
  opacity: 1;
}
.care-support.is-revealed .care-item .care-icon svg path,
.care-support.is-revealed .care-item .care-icon svg rect {
  stroke: #9C5755;
}
.care-icon {
  flex-shrink: 0;
  width: 24px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.care-item-label { flex: 1; }

.account-signin { text-align: center; margin: 14px 0; font-size: 14px; }
.text-link {
  background: none; border: 0; padding: 0;
  color: #8b2323; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer;
}
.or-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
  color: #999; font-size: 13px;
}
.or-divider::before, .or-divider::after {
  content: ""; flex: 1; height: 1px; background: #e5e5e5;
}
.social-btn {
  width: 100%;
  min-height: 48px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 15px;
  font-weight: 500;
}
.tiny-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}
.tiny-disclaimer.center { text-align: center; }
.tiny-disclaimer a { text-decoration: underline; }

.info-panel { padding: 24px 8px; }
.question.accent { color: var(--color-interstitial-text); }
.info-bullets { margin: 18px 0 0; padding-left: 18px; color: var(--color-interstitial-text); }

/* ========== Chew info (live himsHairChewHypeScreen) ========== */
html.is-chew-bg,
body.is-chew-bg,
.app-frame.is-chew-bg,
.consult-shell.is-chew-bg,
.funnel.is-chew-bg {
  background: #c18f45 !important;
}
.funnel.is-chew-bg .funnel-scroll {
  color: #fff;
  background: transparent;
}
.funnel.is-chew-bg .funnel-footer {
  background: transparent;
}
.funnel.is-chew-bg .funnel-footer::before {
  background: linear-gradient(
    to bottom,
    rgba(193, 143, 69, 0) 0%,
    rgba(193, 143, 69, 0.85) 40%,
    rgba(193, 143, 69, 0.98) 100%
  );
}
.chew-info {
  /* Immersive full-bleed gold — not a white card on cream */
  min-height: calc(100% - 24px);
}
.chew-info {
  padding: 28px 8px 40px;
  text-align: left;
  color: #fff;
}
.chew-title {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}
.chew-desc {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
}
.chew-desc strong { font-weight: 700; color: #fff; }
.chew-chip {
  display: inline-flex;
  align-items: center;
  background: #1f9a8a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.chew-hype-hero {
  display: block;
  width: min(380px, 108%);
  margin: 4px auto 16px;
  margin-left: 50%;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,0.22));
}
.chew-disclaimers {
  margin-top: 8px;
}
.chew-disclaimers p {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(40, 30, 10, 0.55);
}

/* Choice cards with real product imagery */
.choice-card-visual {
  height: 150px;
  background: #f3ebe3 center/cover no-repeat;
}
.choice-card-visual.has-img { background-color: #f7f3ee; }
.choice-card-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.cta-continue.has-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cta-continue.has-arrow .arrow {
  display: inline-flex;
  width: 18px;
  height: 18px;
}
.cta-continue.has-arrow .arrow svg { width: 18px; height: 18px; }

/* ========== Treatment preview ========== */
.treatment-preview { padding-bottom: 8px; }
.tp-hero-sec {
  text-align: center;
  padding: 8px 4px 20px;
  background: linear-gradient(180deg, #f7f1e8 0%, #faf8f2 55%, #fff 100%);
  border-radius: 0 0 24px 24px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
}

/* Live HeroBackground: full-bleed 100vw peach gradient (not clipped to 520px) */
@media (min-width: 768px) {
  .tp-hero-sec {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    border-radius: 0;
    box-sizing: border-box;
  }

  .tp-panel {
    margin-left: 0;
    margin-right: 0;
  }
}
.tp-eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.tp-brand {
  margin: 0 0 4px;
  font-size: 13px;
  color: #8b3a32;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tp-product-name {
  margin: 0 auto 8px;
  max-width: 20em;
  font-family: Georgia, "Times New Roman", CareSans, serif;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
  color: #6b2e28;
  letter-spacing: -0.02em;
}
.tp-hero {
  display: block;
  width: min(260px, 78%);
  margin: 10px auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(97,49,34,0.18));
}
.tp-goals-label {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.tp-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.tp-goals span {
  background: #efe6da;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--color-text);
}
.tp-price {
  font-size: 20px;
  font-weight: 500;
  margin: 8px 0 4px;
  color: var(--color-text);
}
.tp-price strong { font-weight: 700; }
.tp-panel {
  background: #fff;
  border-radius: 24px 24px 0 0;
  margin: -8px -16px 0;
  padding: 8px 16px 20px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.04);
}
.tp-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 8px 0 12px;
  padding: 14px 0;
  border-top: 1px solid #ece7e1;
  border-bottom: 1px solid #ece7e1;
  text-align: center;
}
.tp-meta-cell {
  padding: 0 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.tp-meta-cell + .tp-meta-cell::before {
  content: "";
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: #e5e0da;
}
.tp-meta-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.tp-meta-value {
  font-size: 14px;
  font-weight: 650;
  color: var(--color-text);
}
.tp-accordion {
  border-bottom: 1px solid #ece7e1;
  padding: 4px 0;
}
.tp-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}
.tp-accordion summary::-webkit-details-marker { display: none; }
.tp-accordion summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  margin-right: 4px;
}
.tp-accordion[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 6px;
}
.tp-accordion-body { padding: 0 0 16px; }
.tp-ing-grid {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.tp-ing {
  flex: 0 0 42%;
  scroll-snap-align: start;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  text-align: left;
}
.tp-ing img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
}
.tp-ing strong { display: block; font-size: 14px; margin-bottom: 6px; }
.tp-ing span { font-size: 13px; color: var(--color-text-secondary); line-height: 1.35; white-space: pre-line; }
.tp-ing img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 8px; }
.tp-expect-row { margin-bottom: 14px; }
.tp-expect-row strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--color-text);
}
.tp-expect-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-secondary);
}
.tp-side-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}
.tp-isi-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid #ece7e1;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
}
.tp-isi-chevron {
  width: 18px;
  height: 18px;
  color: #666;
  display: inline-flex;
}
.tp-isi-chevron svg { width: 18px; height: 18px; }

.tp-meet {
  background: #f3ebe3;
  margin: 0 -16px;
  padding: 28px 16px 32px;
  text-align: left;
}
.tp-meet-eye {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  color: #6b2e28;
  font-weight: 500;
}
.tp-meet-img {
  display: block;
  width: min(320px, 100%);
  margin: 0 auto 18px;
  object-fit: contain;
}
.tp-meet-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-text);
}
.tp-meet-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

.tp-why {
  padding: 28px 0 8px;
}
.tp-why-title {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
}
.tp-why-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}
.tp-why-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: #f3ebe3;
}
.tp-why-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--color-text);
}
.tp-why-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-secondary);
}

.tp-love {
  padding: 16px 0 24px;
  overflow: visible;
}
.tp-love-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 650;
  color: var(--color-text);
}
.tp-love-list { margin-top: 12px; }

@media (min-width: 768px) {
  .treatment-preview {
    overflow: visible;
  }
  .tp-love {
    overflow: visible;
  }
  /* live testimonialsstyle__TestimonialsTitle: padding 0 0 16px 32px */
  .tp-love-title {
    padding: 0 0 16px 32px;
    margin-bottom: 0;
    box-sizing: border-box;
  }
}

.footer-skip {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  text-decoration: none;
  color: #8b3a32;
  font-weight: 600;
}

.timeline { padding: 24px 8px; }
.timeline-list { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.timeline-row {
  opacity: 0;
  animation: word-fade 600ms ease forwards;
  padding-left: 16px;
  border-left: 3px solid #c48a66;
}
.timeline-label { margin: 0 0 4px; font-weight: 700; color: var(--color-interstitial-text); }
.timeline-body { margin: 0; color: var(--color-text-secondary); font-size: 14px; line-height: 1.4; }

/* ========== Add-ons — live Hair add-ons cards ========== */
.addon-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.addon-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.addon-card.is-selected {
  border-color: var(--color-selected);
  box-shadow: 0 0 0 1px var(--color-selected);
}
.addon-img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: contain;
  background: #f7f3ee;
}
.addon-copy { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--color-text-secondary); min-width: 0; }
.addon-copy strong { color: var(--color-text); font-size: 16px; font-weight: 600; }
.addon-price { font-weight: 700; font-size: 16px; align-self: start; padding-top: 4px; }

/* ========== Shipping — floating-label pill inputs ========== */
.ship-form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.ship-field {
  position: relative;
  display: block;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.ship-field > span.ship-label {
  position: absolute;
  left: 18px;
  top: 10px;
  z-index: 2;
  font-size: 12px;
  line-height: 1;
  color: var(--color-text-secondary);
  pointer-events: none;
}
.ship-field .field-input,
.ship-field .field-select {
  min-height: 60px;
  padding: 26px 18px 10px;
  border-radius: 999px;
  background: #fff;
}
.ship-field .field-select {
  padding-right: 44px;
}
.secure-badge {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.secure-badge::before {
  content: "";
  width: 12px; height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a5 5 0 00-5 5v3H6a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2v-8a2 2 0 00-2-2h-1V7a5 5 0 00-5-5zm-3 5a3 3 0 116 0v3H9V7z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a5 5 0 00-5 5v3H6a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2v-8a2 2 0 00-2-2h-1V7a5 5 0 00-5-5zm-3 5a3 3 0 116 0v3H9V7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.address-suggest { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.address-card {
  text-align: left;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}
.address-card.is-selected { outline: 2px solid var(--color-selected); }
.address-card pre {
  margin: 8px 0 0;
  font: inherit;
  font-size: 14px;
  white-space: pre-wrap;
  color: var(--color-text-secondary);
}

/* ========== Payment / Almost done ========== */
.pay-hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 18px;
}
.pay-hero-strip .ph {
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(145deg, #e8d5c4, #c48a66);
  background-size: cover;
  background-position: center;
}
.pay-hero-strip .ph.tone-1 { background-image: linear-gradient(145deg, #f0ebe6, #9c5755); }
.pay-hero-strip .ph.tone-2 { background-image: linear-gradient(145deg, #d9c3b0, #613122); }

.pay-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  padding: 18px 16px 16px;
  margin: 0 0 20px;
}
.pay-card-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}
.pay-product-box {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 12px;
  align-items: center;
  background: #f3f1ee;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}
.pay-product-box h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}
.pay-product-box img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.pay-perks {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pay-perks li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.4;
}
.pay-perks li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 14px; height: 8px;
  border-left: 2px solid #9c5755;
  border-bottom: 2px solid #9c5755;
  transform: rotate(-45deg);
}
.pay-section-title { margin: 4px 0 12px; font-size: 16px; font-weight: 700; }
.pay-plans { display: flex; flex-direction: column; gap: 10px; }
.pay-other-label {
  margin: 6px 0 2px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.pay-plan {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}
.pay-plan.is-selected {
  border-color: var(--color-save-green);
  border-width: 2px;
  box-shadow: none;
  outline: none;
}
.pay-plan.is-popular { background: #fff; }
.pay-plan-left { display: flex; flex-direction: column; gap: 4px; }
.pay-plan-left strong { font-size: 15px; font-weight: 600; }
.pay-plan-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pay-was { text-decoration: line-through; color: #999; font-size: 13px; margin-right: 6px; }
.pay-now { font-size: 16px; font-weight: 700; }
.pay-plan.is-selected .pay-now { color: var(--color-save-green); }
.pay-save-tag {
  display: inline-block;
  background: var(--color-save-green-bg);
  color: var(--color-save-green-text);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.pay-plan .choice-badge,
.pay-popular-badge {
  position: absolute;
  top: -10px;
  left: 14px;
  background: var(--color-save-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.pay-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0 10px;
  font-size: 15px;
}
.pay-total-row .pay-total-was {
  text-decoration: line-through;
  color: #999;
  margin-right: 8px;
  font-size: 14px;
}
.pay-total-row .pay-total-now {
  font-size: 22px;
  font-weight: 700;
}
.pay-saving-banner {
  background: var(--color-save-green-bg);
  color: var(--color-save-green-text);
  text-align: center;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.pay-plan-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}
.pay-method {
  margin: 8px 0 16px;
}
.pay-method-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
}
.pay-method-row .radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pay-method-row .radio::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #111;
}
.pay-card-icons { display: flex; gap: 6px; margin-left: auto; font-size: 11px; color: #666; }
.pay-card-fields { margin-top: 4px; }
.pay-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-note {
  margin-top: 16px;
  font-size: 12px;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 12px;
}
.footer-skip {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 4px 8px 0;
  pointer-events: auto;
  color: #8b2323;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  font-size: 14px;
  cursor: pointer;
}
.footer-skip:hover { text-decoration: underline; }

.funnel.is-interstitial .logo {
  opacity: 0;
  pointer-events: none;
  height: 0;
  margin: 0;
}

/* ========== Footer CTA — live footerstyle__FooterContainer + sticky-ctastyle ==========
 * Live desktop: position fixed; left/right/bottom 0; width 100vw; white bar;
 * button ~520px centered. Mobile: absolute inside viewport-height .funnel.
 */
.funnel-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  pointer-events: none;
  text-align: center;
  padding: 10px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}

@media (min-width: 768px) {
  .funnel-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    background: #fff;
    padding: 10px 24px calc(48px + env(safe-area-inset-bottom, 0px));
    align-items: center;
  }

  .funnel-footer .footer-row,
  .funnel-footer > .text-link,
  .funnel-footer > .footer-skip {
    width: 100%;
    max-width: var(--consult-content-width);
  }

  .funnel-footer .footer-row.align-stretch > .cta-continue {
    max-width: var(--consult-content-width);
  }

  /* Scrims span full viewport width behind the bar */
  .funnel-footer::before,
  .funnel-footer::after {
    left: 0;
    right: 0;
  }
}

.funnel-footer::before,
.funnel-footer::after {
  content: "";
  pointer-events: none;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  transform-origin: bottom;
  z-index: -1;
}

/* Primary scrim — live linear-gradient to bottom, height calc(100% + 72px) */
.funnel-footer::before {
  height: calc(100% + 72px);
  background-image: var(--footer-scrim-live);
}

.funnel-footer::after {
  height: 24px;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
}

.funnel.is-secondary .funnel-footer::before {
  background-image: var(--footer-scrim-secondary);
}
.funnel.is-secondary .funnel-footer::after {
  background-image: linear-gradient(
    to bottom,
    rgba(250, 248, 242, 0) 0%,
    rgba(250, 248, 242, 0.7) 100%
  );
}

@media (max-width: 767px) {
  .funnel-footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
}

.funnel-footer.is-hidden {
  display: none;
}

.funnel-footer > * {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.footer-row {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 4px;
}

.footer-row.align-end {
  justify-content: flex-end;
}

.footer-row.align-stretch {
  justify-content: stretch;
}

.footer-row.align-stretch > .cta-continue {
  flex: 1 1 auto;
}

.cta-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--btn-height-lg);
  min-width: var(--btn-min-width);
  padding: 0 var(--space-three);
  border: none;
  border-radius: var(--btn-radius);
  background: var(--color-black);
  color: var(--color-white);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: 0.01em;
  transition: opacity 120ms ease, background 120ms ease;
}

.cta-continue:disabled {
  background: var(--color-disabled);
  color: var(--color-disabled-text);
  cursor: not-allowed;
}

.cta-continue:not(:disabled):hover {
  background: #1a1a1a;
}

.cta-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--cta-next-gap);
  margin-left: auto;
  min-width: auto;
  height: var(--btn-height-lg);
  padding: var(--cta-next-pad);
  padding-left: var(--cta-next-pad-left);
  border: none;
  border-radius: var(--btn-radius);
  background: var(--color-black);
  color: var(--color-white);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  transition: background 120ms ease;
}

.cta-next:hover {
  background: #1a1a1a;
}

.cta-next .arrow {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.cta-next .arrow svg {
  width: 18px;
  height: 18px;
}

.funnel.is-interstitial .logo {
  opacity: 0;
  pointer-events: none;
}

/* ========== In-clone informational modals ========== */
body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.42);
}

.modal-panel {
  width: min(100%, 520px);
  max-height: min(80vh, 620px);
  overflow: auto;
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  color: var(--color-text);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 8px;
}

.modal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
}

.modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: #f3f0ec;
  outline: none;
}

.modal-body {
  padding: 12px 24px 28px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.modal-body p {
  margin: 0 0 20px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.modal-secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.modal-secondary-link:hover,
.modal-secondary-link:focus-visible {
  background: #1a1a1a;
}

@media (max-width: 767px) {
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 82vh;
    border-radius: 16px 16px 0 0;
  }
}


/* —— QA / dev step sidebar (desktop ≥900px; default collapsed) —— */
.qa-steps {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9999;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  pointer-events: none;
}

@media (min-width: 900px) {
  .qa-steps {
    display: block;
  }
}

.qa-steps-fab {
  pointer-events: auto;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10001;
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: #1a1a1a;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.qa-steps-fab:hover {
  background: #fff;
}

.qa-steps[data-collapsed="false"] .qa-steps-fab {
  display: none;
}

.qa-steps-panel {
  pointer-events: auto;
  width: 260px;
  height: 100%;
  background: #fff;
  border-right: 1px solid #e6e6e6;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.qa-steps-panel[hidden] {
  display: none !important;
}

.qa-steps-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border-bottom: 1px solid #e6e6e6;
  flex: 0 0 auto;
}

.qa-steps-title {
  font-size: 13px;
  font-weight: 700;
  flex: 1 1 auto;
}

.qa-steps-hub {
  font-size: 12px;
  font-weight: 600;
  color: #0d99ff;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
}

.qa-steps-hub:hover {
  background: rgba(13, 153, 255, 0.1);
}

.qa-steps-collapse {
  appearance: none;
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  color: #6b6b6b;
}

.qa-steps-collapse:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

.qa-steps-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.qa-step-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #3a3a3a;
  font-size: 12px;
  line-height: 1.3;
}

.qa-step-row:hover {
  background: #f5f5f5;
}

.qa-step-row.is-active {
  background: rgba(13, 153, 255, 0.12);
  color: #007be5;
  font-weight: 600;
}

.qa-step-num {
  flex: 0 0 auto;
  width: 22px;
  font-variant-numeric: tabular-nums;
  color: #9a9a9a;
  font-size: 11px;
}

.qa-step-row.is-active .qa-step-num {
  color: #007be5;
}

.qa-step-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
