/* ============================================
   EllieMD Medication Selector — Overhauled
   ============================================ */

:root {
  --bg: #e8f0ee;
  --white: #ffffff;
  --teal: #1a7a6d;
  --teal-light: #2a8f80;
  --teal-wash: rgba(26, 122, 109, 0.06);
  --teal-border: rgba(26, 122, 109, 0.25);
  --dark: #1e3a34;
  --text: #3a5650;
  --text-secondary: #6b8580;
  --text-muted: #99afa9;
  --border: #d2e0dc;
  --border-light: #e2edea;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 3px 10px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-selected: 0 0 0 1.5px var(--teal), 0 2px 8px rgba(26, 122, 109, 0.1);
  --font-sans: "canada-type-gibson", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "lora", Georgia, serif;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 50px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  background: #e8f0ee;
  color: var(--dark);
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

/* ============================================
   Page Shell — Unified Layout
   ============================================ */

.selector-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 40px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

/* ---- Shared Titles ---- */

.step-titles {
  width: 100%;
  text-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-titles .step-heading {
  display: none;
  margin-bottom: 0;
}

.step-titles .step-heading.active {
  display: block;
}

/* ---- Fixed-Height Content Stage ---- */

.step-stage {
  width: 100%;
  min-height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Steps 2-3: stage holds showcase left + cards right */
.at-step-1 .step-stage,
.at-step-2 .step-stage {
  justify-content: flex-end;
}

/* Step 4: stage stacks showcase + review vertically */
.at-step-3 .step-stage {
  flex-direction: column;
  justify-content: center;
}

/* ---- Shared Helper / Compare (centered below stage) ---- */

.step-helpers {
  width: 100%;
  display: flex;
  justify-content: center;
}

.step-helpers .compare-section {
  display: none;
}

.step-helpers .compare-section.active {
  display: block;
}

/* ---- Shared Nav Area ---- */

.step-nav-area {
  width: 100%;
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  padding-top: 12px;
}

.step-nav-area .step-nav {
  display: none;
}

.step-nav-area .step-nav.active {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 0;
}

/* ============================================
   Progress Stepper
   ============================================ */

.stepper {
  width: 100%;
  max-width: 420px;
  margin-bottom: 24px;
}

.stepper-track {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.stepper-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: relative;
}

.stepper-number {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.stepper-check {
  display: none;
}

.stepper-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.stepper-step.active .stepper-dot {
  border-color: var(--teal);
  background: var(--teal);
}

.stepper-step.active .stepper-number {
  color: var(--white);
}

.stepper-step.active .stepper-label {
  color: var(--teal);
}

.stepper-step.completed .stepper-dot {
  border-color: var(--teal);
  background: var(--teal);
}

.stepper-step.completed .stepper-number {
  display: none;
}

.stepper-step.completed .stepper-check {
  display: block;
}

.stepper-step.completed .stepper-label {
  color: var(--teal);
}

.stepper-step.completed {
  cursor: pointer;
}

.stepper-step.completed:hover .stepper-dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(26, 122, 109, 0.12);
}

.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 20px;
  border-radius: 2px;
  overflow: hidden;
}

.stepper-line-fill {
  width: 0%;
  height: 100%;
  background: var(--teal);
  transition: width 0.4s ease;
}

.stepper-line.filled .stepper-line-fill {
  width: 100%;
}

/* ============================================
   Step Content
   ============================================ */

.step {
  display: none;
  animation: fadeIn 0.35s ease;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Step 1: centered cards */
.step-1 {
  max-width: 560px;
  text-align: center;
}

/* Steps 2-3: right-aligned cards alongside showcase */
.step-2,
.step-3 {
  max-width: 440px;
  position: relative;
  z-index: 3;
}

/* Step 4: centered review */
.step-4 {
  text-align: center;
  width: 100%;
  max-width: 600px;
}

/* ============================================
   Persistent Showcase
   ============================================ */

.showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  position: relative;
}

/* Step 1: hidden */
.at-step-0 .showcase {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Steps 2-3: absolutely positioned on the left of the stage */
.at-step-1 .showcase,
.at-step-2 .showcase {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  pointer-events: auto;
  justify-content: flex-end;
  width: 55%;
  z-index: 2;
}

/* Step 4: normal flow, centered */
.at-step-3 .showcase {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  width: 100%;
  max-width: 620px;
  flex-shrink: 0;
}

.showcase-product {
  width: 300px;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  z-index: 1;
  transition: width 0.5s ease, height 0.5s ease;
}

.at-step-3 .showcase-product {
  width: 300px;
  height: 320px;
  justify-content: center;
}

.showcase-img {
  height: 500px;
  object-fit: contain;
  object-position: right center;
  transition: height 0.5s ease;
}

.at-step-3 .showcase-img {
  height: 470px;
  object-position: center center;
}

/* ---- Showcase badges ---- */

.showcase-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: absolute;
  z-index: 2;
  cursor: default;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease,
              background 0.35s ease;
  pointer-events: none;
  white-space: nowrap;
}

.showcase-badge.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.showcase-badge.visible:hover {
  transform: translateY(-4px) scale(1);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sc-badge-icon {
  width: 38px;
  height: 38px;
}

.sc-badge-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--dark);
}

.sc-badge-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Badge positions — left side: method */
.sc-badge-method {
  left: 0;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
}
.sc-badge-method.visible {
  transform: translateY(-50%) scale(1);
}
.sc-badge-method.visible:hover {
  transform: translateY(calc(-50% - 4px)) scale(1);
}

/* Right side: plan + boost stacked */
.showcase-badges-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  z-index: 2;
}

.showcase-badges-right .showcase-badge {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
}

/* ---- Dashed connector lines ---- */

.showcase-badge::after {
  content: '';
  position: absolute;
  border-top: 1.5px dashed rgba(26, 122, 109, 0.35);
  top: 50%;
  transition: border-color 0.35s ease, opacity 0.4s ease;
  opacity: 0;
}

.showcase-badge.visible::after {
  opacity: 1;
}

.sc-badge-method::after {
  left: 100%;
  width: 16px;
}

.showcase-badges-right .showcase-badge::after {
  right: 100%;
  width: 16px;
  left: auto;
}

.showcase-badge.visible:hover::after {
  border-color: rgba(26, 122, 109, 0.6);
}

/* Dot endpoints */
.showcase-badge::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(26, 122, 109, 0.4);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.35s ease, opacity 0.4s ease;
  opacity: 0;
}

.showcase-badge.visible::before {
  opacity: 1;
}

.sc-badge-method::before {
  left: calc(100% + 12px);
}

.showcase-badges-right .showcase-badge::before {
  right: calc(100% + 12px);
  left: auto;
}

.showcase-badge.visible:hover::before {
  background: rgba(26, 122, 109, 0.65);
}

/* Badge entrance stagger */
.sc-badge-method.visible { transition-delay: 0.08s; }
.sc-badge-plan.visible { transition-delay: 0.16s; }
.sc-badge-boost.visible { transition-delay: 0.24s; }

/* ---- Steps 2-3: All badges on LEFT side, close to bottle ---- */

.at-step-1 .sc-badge-method,
.at-step-2 .sc-badge-method {
  left: auto;
  right: 300px;
  top: 25%;
}

.at-step-1 .sc-badge-method.visible,
.at-step-2 .sc-badge-method.visible {
  transform: translateY(-50%) scale(1);
}

.at-step-1 .sc-badge-method.visible:hover,
.at-step-2 .sc-badge-method.visible:hover {
  transform: translateY(calc(-50% - 4px)) scale(1);
}

.at-step-1 .showcase-badges-right,
.at-step-2 .showcase-badges-right {
  left: auto;
  right: 300px;
  top: 52%;
  bottom: auto;
  justify-content: flex-start;
}

/* Dashed lines point RIGHT toward product */
.at-step-1 .showcase-badges-right .showcase-badge::after,
.at-step-2 .showcase-badges-right .showcase-badge::after {
  right: auto;
  left: 100%;
  width: 16px;
}

.at-step-1 .showcase-badges-right .showcase-badge::before,
.at-step-2 .showcase-badges-right .showcase-badge::before {
  right: auto;
  left: calc(100% + 12px);
}

.step-heading {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.3px;
  color: var(--dark);
  text-align: center;
  margin-bottom: 20px;
}

.step-helper {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: -12px;
  margin-bottom: 20px;
}

.step-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

/* ============================================
   Navigation
   ============================================ */

.step-nav-center {
  justify-content: center;
}

.btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--white);
  background: var(--teal);
  border: none;
  padding: 12px 40px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  min-width: 180px;
}

.btn-next:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 122, 109, 0.25);
}

.btn-next.disabled, .btn-next:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-next.pulse {
  animation: btnPulse 0.6s ease;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 122, 109, 0); }
  50% { box-shadow: 0 0 0 8px rgba(26, 122, 109, 0.15); }
}

.btn-intake {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 15px 48px;
  min-width: 260px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  transition: color var(--transition);
}

.btn-back:hover {
  color: var(--teal);
}

/* ============================================
   Card — Shared Base
   ============================================ */

.card {
  position: relative;
  display: block;
  cursor: pointer;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.card input { display: none; }

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card.selected {
  border-color: transparent;
  box-shadow: var(--shadow-selected);
  transform: translateY(0);
}

.card.selected .card-check {
  opacity: 1;
  transform: scale(1);
}

.card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
  z-index: 2;
}

.card-plan .card-check,
.card-boost .card-check {
  top: 14px;
  right: 14px;
  transform: scale(0.5);
}

.card-plan.selected .card-check,
.card-boost.selected .card-check {
  transform: scale(1);
}

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

.card-recommend {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(26, 122, 109, 0.07);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-grid {
  display: grid;
  gap: 12px;
}

.card-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ============================================
   Card — Visual (Step 1)
   ============================================ */

.card-visual {
  text-align: center;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-visual:hover {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: none;
}

.card-visual.selected {
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid rgba(26, 122, 109, 0.3);
  box-shadow: 0 0 0 1px rgba(26, 122, 109, 0.12), 0 4px 16px rgba(26, 122, 109, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.card-image {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  overflow: hidden;
}

.card-image img {
  object-fit: contain;
}

.card-visual[data-value="injectable"] .card-image img {
  height: 220px;
  margin-top: 10px;
}

.card-visual[data-value="oral"] .card-image img {
  height: 240px;
  margin-top: 4px;
}

.card-body {
  padding: 8px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-body-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  opacity: 0.7;
}

.card-visual .card-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.card-visual .card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   Card — Plan (Step 2)
   ============================================ */

.card-plan {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-plan:hover {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: none;
}

.card-plan.selected {
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid rgba(26, 122, 109, 0.3);
  box-shadow: 0 0 0 1px rgba(26, 122, 109, 0.12), 0 4px 16px rgba(26, 122, 109, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.card-plan-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 36px 18px 20px;
}

.card-plan .card-recommend + .card-plan-inner {
  padding-top: 34px;
}

.card-plan-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.card-plan-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.7;
}

.card-plan .card-title {
  font-size: 15px;
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.card-plan-highlight {
  font-size: 13px;
  font-weight: 400;
  color: var(--teal);
}

.card-plan-price {
  flex-shrink: 0;
  text-align: right;
}

.price-amount {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--dark);
}

.price-period {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.price-total {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   Card — Boost (Step 3)
   ============================================ */

.card-boost {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-boost:hover {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: none;
}

.card-boost.selected {
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid rgba(26, 122, 109, 0.3);
  box-shadow: 0 0 0 1px rgba(26, 122, 109, 0.12), 0 4px 16px rgba(26, 122, 109, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.card-boost-inner {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-boost .card-recommend + .card-boost-inner {
  padding-top: 28px;
}

.card-boost-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-boost-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.7;
}

.card-boost .card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.card-boost-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  color: var(--dark);
  background: rgba(232, 240, 238, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0;
}

.card-boost-benefit {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.1px;
}

/* ---- NAD+ FAQ (inside compare panel) ---- */

.nad-faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nad-faq-item {
  border-radius: 8px;
  overflow: hidden;
}

.nad-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(232, 240, 238, 0.5);
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 450;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  gap: 8px;
  transition: background 0.2s ease;
}

.nad-faq-q:hover {
  background: rgba(232, 240, 238, 0.8);
}

.nad-faq-q svg {
  flex-shrink: 0;
  color: var(--teal);
  transition: transform 0.3s ease;
}

.nad-faq-item.faq-open .nad-faq-q svg {
  transform: rotate(180deg);
}

.nad-faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  padding: 0 14px;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              padding 0.3s ease;
}

.nad-faq-item.faq-open .nad-faq-a {
  max-height: 200px;
  opacity: 1;
  padding: 8px 14px 12px;
}

/* ============================================
   Skip Link (Variant B)
   ============================================ */

button.skip-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 50px;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding: 12px 24px;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26, 122, 109, 0.3);
}

button.skip-link:hover {
  background: rgba(26, 122, 109, 0.08);
  text-decoration-color: rgba(26, 122, 109, 0.6);
}

button.skip-link:focus {
  outline: none;
  box-shadow: none;
}

.variant-a .skip-link {
  display: none;
}

/* ============================================
   Review (Step 4)
   ============================================ */

.review-content {
  text-align: center;
}

/* ---- Price + footer ---- */

.review-price-bar {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  padding: 4px 0 0;
}

.review-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.review-price-amount {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--dark);
}

.review-price-period {
  font-size: 14px;
  color: var(--text-secondary);
}

.review-price-total {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 10px;
}

.review-footer {
  padding: 4px 0 0;
}

.review-trust {
  font-size: 12px;
  font-weight: 400;
  color: var(--teal);
}

.review-includes {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 3px;
}

.btn-intake {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 12px 40px;
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(26, 122, 109, 0.25);
}

.btn-intake:hover {
  box-shadow: 0 6px 28px rgba(26, 122, 109, 0.35);
}


/* ============================================
   Compare / Learn More
   ============================================ */

.compare-section {
  margin-top: 6px;
}

.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  transition: color var(--transition);
  width: 100%;
  justify-content: center;
}

.compare-toggle:hover {
  color: var(--teal);
}

.compare-icon {
  flex-shrink: 0;
  opacity: 0.6;
}

.compare-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  opacity: 0.5;
}

.compare-section.open .compare-chevron {
  transform: rotate(180deg);
}

.compare-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.compare-section.open .compare-panel {
  max-height: 500px;
  opacity: 1;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 0 4px;
}

.compare-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.compare-item {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.compare-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.compare-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--teal);
  background: rgba(26, 122, 109, 0.07);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.compare-item ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.compare-item li {
  font-size: 11px;
  color: var(--text);
  line-height: 1.6;
  padding-left: 12px;
  position: relative;
}

.compare-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.35;
}

.compare-best {
  font-size: 11px;
  font-weight: 500;
  color: var(--teal);
  font-style: italic;
  margin: 0;
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
  margin-bottom: 16px;
}

.modal-icon img {
  width: 44px;
  height: 44px;
  margin: 0 auto;
}

.modal h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 8px;
}

.modal p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition);
}

.modal-btn-register {
  color: var(--white);
  background: var(--teal);
}

.modal-btn-register:hover {
  background: var(--teal-light);
}

.modal-btn-login {
  color: var(--teal);
  background: transparent;
  border: 1.5px solid var(--border);
}

.modal-btn-login:hover {
  border-color: var(--teal);
  background: var(--teal-wash);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--dark);
}

/* ============================================
   A/B Demo Toggle
   ============================================ */

.variant-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px 8px 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  z-index: 900;
}

.variant-toggle-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.variant-toggle-track {
  display: flex;
  gap: 2px;
  background: var(--border-light);
  border-radius: 10px;
  padding: 2px;
}

.variant-toggle-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.variant-toggle-btn.active {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 1px 4px rgba(26, 122, 109, 0.3);
}

.variant-toggle-btn:not(.active):hover {
  background: rgba(0, 0, 0, 0.04);
}

.variant-toggle-sub {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.8;
}

/* ============================================
   Responsive — Tablet (≤768px)
   ============================================ */

@media (max-width: 768px) {

  /* Stage: stack vertically on mobile */
  .step-stage {
    min-height: auto;
    flex-direction: column;
    align-items: center;
  }

  .at-step-1 .step-stage,
  .at-step-2 .step-stage {
    justify-content: center;
  }

  /* Showcase: relative on mobile, stacked above cards */
  .at-step-1 .showcase,
  .at-step-2 .showcase {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 8px 0 4px;
  }

  .at-step-3 .showcase {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 0;
    max-width: 100%;
  }

  .showcase-product {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    width: auto;
    height: 190px;
    order: 1;
  }

  .showcase-img {
    height: 260px;
    object-position: center center;
  }

  .at-step-3 .showcase-product {
    width: auto;
    height: 200px;
    flex-basis: 100%;
    order: 1;
  }

  .at-step-3 .showcase-img {
    height: 280px;
  }

  /* Steps 2-3: override desktop absolute positioning for badges */
  .at-step-1 .sc-badge-method,
  .at-step-2 .sc-badge-method {
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    transform: none;
    order: 2;
  }

  .at-step-1 .showcase-badges-right,
  .at-step-2 .showcase-badges-right {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    order: 3;
  }

  .at-step-3 .sc-badge-method {
    order: 2;
  }

  .at-step-3 .showcase-badges-right {
    order: 3;
  }

  /* Badges: flow as pills below product */
  .sc-badge-method {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    order: 2;
  }

  .sc-badge-method,
  .sc-badge-method.visible {
    transform: scale(1) !important;
  }

  .sc-badge-method.visible:hover {
    transform: translateY(-3px) !important;
  }

  .showcase-badges-right {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    order: 3;
  }

  .showcase-badges-right .showcase-badge {
    position: relative;
  }

  .showcase-badge {
    padding: 8px 12px;
    flex-direction: row;
    gap: 6px;
  }

  .sc-badge-icon {
    width: 24px;
    height: 24px;
  }

  .sc-badge-title {
    font-size: 10px;
    letter-spacing: 0.4px;
  }

  .sc-badge-sub {
    font-size: 9px;
  }

  .showcase-badge:not(.visible) {
    display: none;
  }

  /* Hide dashed lines on mobile */
  .sc-badge-method::after,
  .showcase-badges-right .showcase-badge::after,
  .sc-badge-method::before,
  .showcase-badges-right .showcase-badge::before {
    display: none;
  }

  /* Steps: full width on mobile */
  .step-2, .step-3 {
    max-width: 100%;
  }

  /* Nav: stack vertically on mobile */
  .step-nav-area .step-nav.active {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 0 6px;
  }

  .btn-next {
    width: 100%;
    max-width: 340px;
    min-width: 0;
    order: 1;
  }

  button.skip-link {
    order: 2;
    padding: 8px 16px;
    font-size: 13px;
  }

  .btn-back {
    order: 3;
    justify-content: center;
  }

  .btn-intake {
    min-width: 0 !important;
    max-width: 340px;
    width: 100%;
  }

  /* A/B toggle: move to top-right on mobile/tablet */
  .variant-toggle {
    bottom: auto;
    top: 8px;
    right: 8px;
    padding: 4px 6px 4px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }

  .variant-toggle-label {
    font-size: 9px;
  }

  .variant-toggle-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* ============================================
   Responsive — Small screens (≤640px)
   ============================================ */

@media (max-width: 640px) {
  .selector-page {
    padding: 16px 16px 32px;
  }

  .step-heading {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .step-helper {
    font-size: 12px;
    margin-bottom: 16px;
  }

  /* Stepper */
  .stepper {
    max-width: 100%;
    margin-bottom: 16px;
  }

  .stepper-label {
    font-size: 9px;
  }

  .stepper-dot {
    width: 28px;
    height: 28px;
  }

  .stepper-number {
    font-size: 11px;
  }

  .stepper-line {
    margin-bottom: 16px;
  }

  /* Step 1: stack cards */
  .card-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .card-image {
    height: 130px;
  }

  .card-visual[data-value="injectable"] .card-image img {
    height: 170px;
  }

  .card-visual[data-value="oral"] .card-image img {
    height: 190px;
  }

  .card-body {
    padding: 6px 10px 14px;
  }

  .card-visual .card-title {
    font-size: 14px;
  }

  .card-visual .card-desc {
    font-size: 12px;
  }

  .card-recommend {
    font-size: 9px;
    padding: 2px 8px;
    top: 8px;
    left: 8px;
  }

  .card-check {
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
  }

  .card-check svg {
    width: 10px;
    height: 10px;
  }

  /* Plan cards */
  .card-plan-inner {
    padding: 14px 32px 14px 14px;
    gap: 8px;
  }

  .card-plan .card-recommend + .card-plan-inner {
    padding-top: 30px;
  }

  .card-plan-header {
    gap: 8px;
  }

  .card-plan-icon {
    width: 20px;
    height: 20px;
  }

  .card-plan .card-title {
    font-size: 14px;
  }

  .card-plan-highlight {
    font-size: 12px;
  }

  .price-amount {
    font-size: 15px;
  }

  .price-period {
    font-size: 12px;
  }

  .price-total {
    font-size: 10px;
  }

  /* Boost cards */
  .card-boost-inner {
    padding: 14px 14px;
  }

  .card-boost .card-recommend + .card-boost-inner {
    padding-top: 26px;
  }

  .card-boost-header {
    gap: 8px;
  }

  .card-boost-icon {
    width: 22px;
    height: 22px;
  }

  .card-boost .card-title {
    font-size: 15px;
    margin-bottom: 3px;
  }

  .card-tag {
    font-size: 10px;
    padding: 2px 8px;
  }

  /* Compare panels */
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .compare-grid-3 {
    grid-template-columns: 1fr;
  }

  .compare-item {
    padding: 14px;
  }

  .compare-toggle {
    font-size: 12px;
  }

  /* Review */
  .review-price-amount {
    font-size: 24px;
  }

  .review-trust {
    font-size: 11px;
  }

  .review-includes {
    font-size: 10px;
  }

  /* NAD+ FAQ */
  .nad-faq-q {
    font-size: 12px;
    padding: 8px 12px;
  }

  .nad-faq-a {
    font-size: 12px;
  }

  .variant-toggle-sub {
    display: none;
  }
}

/* ============================================
   Responsive — Extra small (≤400px)
   ============================================ */

@media (max-width: 400px) {
  .card-grid-2 {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .card-image {
    height: 150px;
  }

  .card-visual[data-value="injectable"] .card-image img {
    height: 190px;
  }

  .card-visual[data-value="oral"] .card-image img {
    height: 210px;
  }

  .step-heading {
    font-size: 18px;
  }

  .showcase-badge {
    padding: 6px 10px;
  }

  .sc-badge-icon {
    width: 20px;
    height: 20px;
  }

  .sc-badge-title {
    font-size: 9px;
  }

  .sc-badge-sub {
    font-size: 8px;
  }

  .btn-next {
    font-size: 13px;
    padding: 11px 20px;
  }

  .btn-intake {
    font-size: 13px !important;
    padding: 12px 20px !important;
  }
}
