/* ==========================================================================
   Components — shared design-system pieces used by both the landing pages
   and the assessment overlay. Requires tokens.css first.
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 56px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  font-weight: 700;
  font-size: 17px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  text-align: center;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-ghost {
  background: transparent;
  color: var(--color-ink-soft);
  min-height: 44px;
  padding: 10px 16px;
}
.btn-block { width: 100%; }
.btn-lg { min-height: 60px; font-size: 18px; padding: 16px 32px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------- Card (shared base — fixes the repeated
   background/border/radius block that trust-card, doctor-card, and
   problem-item each used to declare independently) ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

/* ---------- Offer strip ---------- */
.offer-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  text-align: center;
  background: var(--color-accent-tint);
  border: 1px solid #f0dcb8;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-5);
}
.offer-strip strong { color: #8a5a1c; font-size: 18px; }

/* ---------- Video card (reused for the single featured video and the
   video-grid renderer driven by SITE_CONFIG.videos) ---------- */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0a1a1a;
  cursor: pointer;
}
.video-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-wrap .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-wrap .play span {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,0.94);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.video-wrap .video-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: #fff; font-size: 13px; font-weight: 600;
}
.video-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .video-grid.has-multiple { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ accordion (native <details>/<summary> — no JS needed
   to open/close; main.js only listens for the "toggle" event to fire
   the faq_opened analytics event) ---------- */
.faq-accordion { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: transform var(--transition-base);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 0 var(--space-4);
  color: var(--color-ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
