/* =====================================================
   KATI FACE MEDICAL SPA — Luxury Aesthetic System
   Palette: Light cream/blush with teal-slate accents
   Fonts: Cormorant (display serif) + Switzer (body sans)
   Matches katiface.com brand palette
   ===================================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette — matches katiface.com */
  --color-bg: #FBF8F8;              /* Warm cream page background */
  --color-bg-elevated: #FFFFFF;     /* White elevated surfaces */
  --color-bg-card: #FFFFFF;         /* White cards */
  --color-surface: #FAFAFA;         /* Near-white surface */
  --color-bg-blush: #ECDEDD;        /* Dusty rose section backgrounds */
  --color-bg-blush-light: #FFF5F0;  /* Lighter blush */
  --color-bg-rose: #D9BDBA;         /* Deeper rose accent bg */
  --color-border: rgba(61, 83, 98, 0.12);
  --color-border-hover: rgba(61, 83, 98, 0.25);

  --color-text: #323232;            /* Primary text (matches katiface.com) */
  --color-text-secondary: #5A5858;  /* Medium gray secondary — darkened for WCAG AA (C3-01) */
  --color-text-muted: #6C6A6A;      /* Muted gray — darkened from #979595 for 4.5:1 on cream bg (C3-01) */

  --color-accent: #3D5362;          /* Teal-slate — primary accent (Book Now) */
  --color-accent-hover: #4D6372;    /* Lighter teal on hover */
  --color-champagne: #D9BDBA;       /* Dusty rose — secondary accent */
  --color-navy: #3D5362;            /* Teal-slate for CTA blocks */
  --color-gold: #B8965A;            /* Gold for premium touches */

  /* Typography */
  --font-display: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: 7rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

html {
  /* CSS smooth-scroll removed — JS handler owns smooth scroll with header-offset (C5-05) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- ACCESSIBILITY (C3-02 focus-visible, C3-03 reduced-motion) --- */
*:focus {
  outline: none;
}
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible,
.nav-cta:focus-visible,
.mobile-nav__cta:focus-visible,
.mobile-cta-bar__book:focus-visible,
.mobile-cta-bar__call:focus-visible {
  /* Gen2 V-NEW-01: match the Call icon-button halo to the Book sibling so thumb-zone focus is equally visible. */
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(61, 83, 98, 0.18);
}
.quiz-option:focus-visible,
.sossy__filter-btn:focus-visible {
  outline-offset: 2px;
}

/* Visually-hidden labels for accessibility */
.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;
}

/* Honor prefers-reduced-motion (C3-03) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__video,
  .video-cta__video,
  video[autoplay] {
    display: none;
  }
  .hero__bg,
  .video-cta__wrap {
    background-color: var(--color-bg-blush);
  }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-accent-hover);
}

/* --- UTILITY --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(61, 83, 98, 0.20);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.8125rem;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(251, 248, 248, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--duration-normal) var(--ease-out),
              padding var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.header--scrolled {
  background: rgba(251, 248, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-sm) 0;
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo-img {
  height: 44px;
  width: auto;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.header__logo:hover .header__logo-img {
  opacity: 0.8;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-cta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-cta:hover {
  background: var(--color-accent);
  color: #fff;
}

.header__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.header__phone:hover {
  color: var(--color-text);
}

.header__social {
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.header__social:hover {
  color: var(--color-accent);
}

.header__menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: var(--space-xs);
}

/* --- MOBILE NAV --- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(251, 248, 248, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-xl);
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.mobile-nav nav a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) var(--ease-out);
}

.mobile-nav nav a:hover {
  color: var(--color-accent);
}

.mobile-nav__cta {
  margin-top: var(--space-lg);
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  padding: 0.875rem 2.5rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-accent) !important;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(251, 248, 248, 0.85) 0%,
    rgba(251, 248, 248, 0.65) 35%,
    rgba(251, 248, 248, 0.35) 60%,
    rgba(251, 248, 248, 0.25) 80%,
    rgba(251, 248, 248, 0.4) 100%
  );
}

/* Gen4: Warm art-direction overlay — soft rose-to-navy gradient at low opacity
   so the hero poster reads as intentional art direction, not stock photography.
   Sits above the cream overlay (z-index 1) but below text content (z-index 2). */
.hero__overlay-warm {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(217, 189, 186, 0.22) 0%,   /* rose at top-left */
    rgba(61, 83, 98, 0.14) 100%      /* navy at bottom-right */
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-4xl);
  width: 100%;
}

.hero__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}
/* Gen2 D-NEW-03: let the two sentences of the H1 wrap naturally from a max-width.
   At narrower widths the browser chooses the break point instead of a hard-coded <br>. */
.hero__title-line {
  display: inline;
}
@media (min-width: 900px) {
  .hero__title-line {
    display: block;
  }
}

/* Gen3 V3-02: hero title break at 900px was landing at awkward widths on iPad portrait.
   Pulling the block-wrap breakpoint to 768px so the two clauses split on a natural boundary
   across the full tablet range (640–900px) rather than flowing inline mid-clause. */
@media (min-width: 768px) and (max-width: 899px) {
  .hero__title-line {
    display: block;
  }
}

/* Gen3 D3-01: shared title-line pattern for video-cta and sossy headline blocks.
   Same idea as .hero__title-line — replaces hard <br> with a responsive wrap that the browser
   or a breakpoint rule can control. Defaults to block (matches the designed two-line reading).
   At narrow widths we let the clauses flow inline so they fit the container without clipping. */
.title-line {
  display: block;
}
@media (max-width: 479px) {
  .title-line {
    display: inline;
  }
}

.hero__sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-bottom: var(--space-2xl);
}

/* Hero stacked sub: three short paragraphs separated by tight vertical rhythm.
   Used with the "Who is kati FACE?" positioning copy. */
.hero__sub--stack {
  max-width: 560px;
}
.hero__sub--stack p {
  margin: 0 0 0.65rem 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.hero__sub--stack p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: var(--color-accent);
  letter-spacing: 0.01em;
}

/* Question-style hero title: single line, tighter tracking, accent on the brand name. */
.hero__title--question {
  max-width: 720px;
  letter-spacing: -0.01em;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1;
}

.trust-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border-hover);
}

/* --- TREATMENTS --- */
.treatments {
  padding: var(--space-section) 0;
  background: var(--color-bg-blush);
}

.treatments__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.treatment-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  transition: border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
  position: relative;
}

.treatment-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.treatment-card__icon {
  color: var(--color-bg-rose);
  margin-bottom: var(--space-lg);
}

.treatment-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.treatment-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.treatment-card__tag {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(61, 83, 98, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}

.treatment-card--cta {
  background: linear-gradient(135deg, rgba(61, 83, 98, 0.06), rgba(217, 189, 186, 0.15));
  border-color: rgba(61, 83, 98, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.treatment-card--cta h3 {
  font-size: 1.25rem;
}

.treatment-card--cta .btn {
  margin-top: var(--space-lg);
}

/* --- EXPERIENCE --- */
.experience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.experience__img {
  overflow: hidden;
}

.experience__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience__content {
  padding: var(--space-4xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-bg-elevated);
}

.experience__content > p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.experience__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.experience__features li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-text);
}

.experience__features li svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* --- RESULTS --- */
.results {
  padding: var(--space-section) 0;
  background: var(--color-bg);
}

.results .section-label,
.results .section-title,
.results .section-desc {
  color: var(--color-text);
}

/* Gen2 P-NEW-01: removed dead .results__filter + .filter-btn rules — filter UI no longer exists in HTML. */

.results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.result-card {
  display: block;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.result-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.result-card.hidden {
  display: none;
}

.result-card__image {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.result-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--duration-slow) var(--ease-out);
}

.result-card:hover .result-card__image img {
  transform: scale(1.04);
}

.result-card__info {
  padding: var(--space-lg);
}

.result-card__info h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.result-card__info p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.results__disclaimer {
  margin-top: var(--space-2xl);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* --- SKIN QUIZ --- */
.quiz {
  padding: var(--space-section) 0;
  background: var(--color-bg-blush-light);
}

.quiz__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.quiz__intro p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.quiz__benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.quiz__benefits li {
  font-size: 0.9375rem;
  color: var(--color-text);
  padding-left: var(--space-lg);
  position: relative;
}

.quiz__benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.quiz__form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  min-height: 360px;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeInUp 0.4s var(--ease-out);
}

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

.quiz-step__num {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-lg);
}

.quiz-step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.quiz-option {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  text-align: left;
  transition: all var(--duration-fast) var(--ease-out);
}

.quiz-option:hover {
  border-color: var(--color-champagne);
  color: var(--color-text);
  background: rgba(217, 189, 186, 0.15);
}

.quiz-option.selected {
  border-color: var(--color-accent);
  color: var(--color-text);
  background: rgba(61, 83, 98, 0.06);
}

/* Quiz email form */
.quiz-email-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.quiz-email-form input {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.quiz-email-form input::placeholder {
  color: var(--color-text-muted);
}

.quiz-email-form input:focus {
  border-color: var(--color-champagne);
}

.quiz-email-form .btn {
  margin-top: var(--space-sm);
}

.quiz-email-form__note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* Quiz result */
.quiz-result {
  text-align: center;
  padding: var(--space-xl) 0;
}

.quiz-result svg {
  margin: 0 auto var(--space-lg);
}

.quiz-result h3 {
  text-align: center;
}

.quiz-result p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto var(--space-xl);
}

/* Gen3 M3-01: quiz-result carry-forward note sits above the CTA; understated, reads as a reassurance
   rather than another paragraph of equal weight. */
.quiz-result__carry {
  font-style: italic;
  font-size: 0.875rem !important;
  margin-top: calc(var(--space-xl) * -0.5) !important;
  margin-bottom: var(--space-lg) !important;
}

/* P0 Gen3: quiz fallback textarea + copy button */
.quiz-result__fallback {
  margin: var(--space-lg) auto;
  max-width: 500px;
  text-align: left;
}

.quiz-result__fallback-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quiz-result__fallback-textarea {
  width: 100%;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 4px;
  padding: 0.75rem;
  font-family: monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-surface-alt, #f8f7f5);
  resize: vertical;
  min-height: 150px;
}

.quiz-result__copy-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-navy);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.quiz-result__copy-btn:hover {
  background: var(--color-navy-dark, #2a3d4a);
}

/* --- TESTIMONIALS --- */
.testimonials {
  padding: var(--space-section) 0;
  background: var(--color-bg);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.testimonial {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
}

.testimonial__stars {
  color: var(--color-gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.testimonial p {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.testimonial cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.testimonials__cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* --- ABOUT --- */
.about {
  padding: var(--space-section) 0;
  background: var(--color-bg-blush);
}

.about__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
}

.about__content p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.about__credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.why-strip__attribution {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 0 var(--space-xs);
}

.why-strip__bestfor {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 var(--space-xl);
  opacity: 0.75;
}

.credential strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 2px;
}

.credential span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* --- ABOUT: Brand Pillars --- */
.about__pillars {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.about__pillars-title,
.about__philosophy-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-lg) 0;
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.pillar {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.pillar:last-child {
  border-bottom: none;
}

.pillar__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-gold, #B8965A);
  line-height: 1;
  text-align: center;
}

.pillar__body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 4px 0;
  letter-spacing: -0.005em;
}

.pillar__body p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- ABOUT: Philosophy --- */
.about__philosophy {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: rgba(217, 189, 186, 0.18);
  border-left: 3px solid var(--color-gold, #B8965A);
  border-radius: var(--radius-md);
}

.about__philosophy p {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0;
}

/* --- GET SOSSY WITH KATIFACE --- */
.sossy {
  padding: var(--space-section) 0;
  background: var(--color-bg-blush-light);
}

/* Hero — photo + intro */
.sossy__hero {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
}

.sossy__hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.sossy__hero-img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.sossy__hero-content .sossy__tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.sossy__hero-content > p:not(.section-label):not(.sossy__tagline) {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.sossy__links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Episodes directory */
.sossy__episodes {
  margin-bottom: var(--space-4xl);
}

.sossy__episodes-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.sossy__episodes-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
}

/* Filter buttons */
.sossy__filter {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.sossy__filter-btn {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.sossy__filter-btn:hover,
.sossy__filter-btn.active {
  color: var(--color-text);
  border-color: var(--color-champagne);
  background: rgba(217, 189, 186, 0.15);
}

/* Episode grid */
.sossy__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  /* Gen3 V3-01: 50ms opacity transition softens the grid reflow when the filter is clicked.
     Kept well under vestibular thresholds (typically >200ms) so it remains compliant under
     prefers-reduced-motion — the rest of the page de-motions, this stays as a tiny polish beat. */
  transition: opacity 50ms ease-out;
}

.sossy__grid--filtering {
  opacity: 0.4;
}

/* Episode card */
.ep-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

/* Episode card thumbnail */
.ep-card__thumb {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.ep-card__thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.ep-card:hover .ep-card__thumb img {
  transform: scale(1.05);
}

/* Card body (below thumb) */
.ep-card__icon,
.ep-card__title,
.ep-card__desc,
.ep-card__tag,
.ep-card__play {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.ep-card__icon {
  padding-top: var(--space-md);
}

.ep-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  color: inherit;
}

.ep-card.hidden {
  display: none;
}

/* Gen2 progressive disclosure: ep-cards beyond the 8-card initial set */
.ep-card.ep-card--overflow {
  display: none;
}
.sossy__grid.ep-grid--expanded .ep-card.ep-card--overflow {
  display: flex;
}

/* Mid-grid conversion CTA (Gen2 Issue #7) */
.sossy__mid-cta {
  grid-column: 1 / -1;
  background: var(--color-navy);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.sossy__mid-cta p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 480px;
  color: rgba(255,255,255,0.92);
}
.sossy__mid-cta .btn--sm {
  white-space: nowrap;
  flex-shrink: 0;
  background: #ffffff;
  color: var(--color-navy);
  border: none;
}
.sossy__mid-cta .btn--sm:hover {
  background: rgba(255,255,255,0.88);
}

/* Ep.1 'Start here' badge */
.ep-card__badge--start {
  position: absolute;
  top: calc(var(--space-sm) + 1.6rem);
  right: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--color-gold);
  padding: 0.18rem 0.5rem;
  border-radius: 2px;
  line-height: 1.4;
}

/* Show-more button for episode grid */
.sossy__show-more {
  display: block;
  margin: 1.5rem auto 0;
  background: transparent;
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.sossy__show-more:hover {
  background: var(--color-navy);
  color: #ffffff;
}
.sossy__show-more.ep-hidden {
  display: none;
}

/* Badge — New / Best Of / Ep. 1 */
.ep-card__num {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(61, 83, 98, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  line-height: 1.4;
}

.ep-card__icon {
  color: var(--color-bg-rose);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.ep-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.ep-card__desc {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  flex: 1;
  margin-bottom: var(--space-md);
}

.ep-card__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 0.2rem 0.6rem;
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

.ep-card__play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: auto;
  padding-bottom: var(--space-lg);
  transition: color var(--duration-fast) var(--ease-out);
}

.ep-card:hover .ep-card__play {
  color: var(--color-accent-hover);
}

/* CTA links row */
.sossy__cta-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Bottom CTA */
.sossy__cta {
  text-align: center;
  padding: var(--space-2xl);
  background: linear-gradient(135deg, rgba(61, 83, 98, 0.04), rgba(217, 189, 186, 0.10));
  border: 1px solid rgba(61, 83, 98, 0.12);
  border-radius: var(--radius-lg);
}

.sossy__cta-rx {
  margin-top: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.sossy__cta-rx a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sossy__cta-rx a:hover {
  color: var(--color-accent-hover);
}

.sossy__cta p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

/* --- FAQ --- */
.faq {
  padding: var(--space-section) 0;
  background: var(--color-bg-elevated);
}

.faq__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  max-width: var(--container-narrow);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.faq-item[open] {
  border-color: var(--color-border-hover);
}

.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-text);
  padding: var(--space-lg);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: color var(--duration-fast) var(--ease-out);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--color-accent);
}

.faq-item summary:hover {
  color: var(--color-accent);
}

.faq-item p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  padding: 0 var(--space-lg) var(--space-lg);
}

/* --- BRAND PILLARS SECTION --- */
.pillars {
  background: var(--color-bg);
  padding: var(--space-4xl) 0 var(--space-3xl);
  border-bottom: 1px solid var(--color-border);
}
.pillars__header {
  max-width: 720px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}
.pillars__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.pillars__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--color-text);
  margin: 0;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-xl);
}
.pillar-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--color-border);
  background: transparent;
}
.pillar-card__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}
.pillar-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
}
.pillar-card__body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}
@media (max-width: 1024px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-card:nth-child(5) { grid-column: 1 / -1; max-width: 50%; }
}
@media (max-width: 640px) {
  .pillars__grid { grid-template-columns: 1fr; gap: 0; }
  .pillar-card { padding: var(--space-lg) 0; }
  .pillar-card:nth-child(5) { max-width: none; }
}

/* --- WHY KATIFACE DIFFERENTIATOR STRIP --- */
.why-strip {
  background: var(--color-bg-blush-light);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.why-strip__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.why-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
}

.why-strip__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-blush);
  border-radius: 50%;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.why-strip__item strong {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.why-strip__item > span:last-child {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* --- NP MEDICAL DIRECTOR DISCLOSURE --- */
/* Gen3: Kati first-person voice quote */
.about__kati-voice {
  margin: var(--space-xl) 0 var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--color-accent, #B8965A);
  background: var(--color-surface-alt, #f8f7f5);
  border-radius: 0 4px 4px 0;
}

.about__kati-voice p {
  font-family: var(--font-serif, Cormorant), Georgia, serif;
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.about__kati-voice cite {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-style: normal;
  font-weight: 500;
}

.about__medical-oversight {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e4df;
}

.about__np-disclosure {
  font-size: 0.9rem;
  color: #6a6560;
  line-height: 1.7;
  font-style: italic;
}

/* --- PRODUCTS --- */
.products {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.products__bg {
  position: absolute;
  inset: 0;
}

.products__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.products__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(61, 83, 98, 0.90) 0%,
    rgba(61, 83, 98, 0.75) 40%,
    rgba(61, 83, 98, 0.50) 100%
  );
}

.products__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
  width: 100%;
  max-width: 520px;
  margin: 0;
  margin-left: max(var(--space-xl), calc((100vw - var(--container-max)) / 2 + var(--space-xl)));
}

.products__content .section-label {
  color: var(--color-champagne);
}

.products__content .section-title {
  color: #fff;
}

.products__content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.products__content .btn--primary {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

.products__content .btn--primary:hover {
  background: var(--color-champagne);
  border-color: var(--color-champagne);
  color: var(--color-text);
}

/* --- CONTACT --- */
.contact {
  padding: var(--space-section) 0;
  background: var(--color-bg);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact__info address {
  font-style: normal;
  margin-bottom: var(--space-xl);
}

.contact__info address p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.contact__info address strong {
  color: var(--color-text);
}

.contact__info address em {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.contact__details {
  margin-bottom: var(--space-xl);
}

.contact__details p {
  margin-bottom: var(--space-xs);
}

.contact__details a {
  font-size: 1rem;
  color: var(--color-accent);
}

.contact__hours,
.contact__serving {
  margin-bottom: var(--space-xl);
}

.contact__hours h3,
.contact__serving h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.contact__hours p,
.contact__serving p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.contact__map iframe {
  display: block;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.3) brightness(0.8);
}


/* --- CASL CONSENT CHECKBOXES --- */
.quiz-consent,
.footer__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text, #323232);
}
.quiz-consent input[type="checkbox"],
.footer__consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-navy, #3D5362);
  cursor: pointer;
}
.quiz-consent label,
.footer__consent label {
  cursor: pointer;
  color: inherit;
}
.quiz-consent a,
.footer__consent a {
  color: var(--color-navy, #3D5362);
  text-decoration: underline;
}
.footer__email-note--error {
  color: #c0392b;
  font-size: 13px;
}

/* --- FOOTER EMAIL CAPTURE --- */
.footer__email-capture {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__email-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: var(--space-xs);
}

.footer__email-content p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer__email-form {
  display: flex;
  gap: var(--space-sm);
  min-width: 380px;
}

.footer__email-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.footer__email-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer__email-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-champagne);
}

.footer__email-form .btn--primary {
  white-space: nowrap;
  background: #fff;
  color: var(--color-accent);
  padding: 0.75rem 1.5rem;
}

.footer__email-form .btn--primary:hover {
  background: var(--color-champagne);
  color: var(--color-accent);
}

/* --- FOOTER --- */
.footer {
  padding: var(--space-4xl) 0 var(--space-xl);
  background: var(--color-accent);
  border-top: 1px solid var(--color-border);
  color: #fff;
}

.footer__layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer__logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-lg);
}

.footer__brand > p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
  color: #fff;
}

.footer__links h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-lg);
}

.footer__links a,
.footer__links p {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal a:hover {
  color: #fff;
}

/* --- ANIMATIONS (on scroll) --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* C5-04: group-level fade; children stagger cheaply via transition-delay */
.fade-in-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-group.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-group.visible > *:nth-child(2) { transition-delay: 60ms; }
.fade-in-group.visible > *:nth-child(3) { transition-delay: 120ms; }
.fade-in-group.visible > *:nth-child(4) { transition-delay: 180ms; }
.fade-in-group.visible > *:nth-child(5) { transition-delay: 240ms; }
.fade-in-group.visible > *:nth-child(6) { transition-delay: 300ms; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .header__phone span {
    display: none;
  }

  .header__menu-btn {
    display: block;
  }

  .treatments__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience {
    grid-template-columns: 1fr;
  }

  .experience__img {
    max-height: 400px;
  }

  .experience__content {
    padding: var(--space-3xl) var(--space-xl);
  }

  .results__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quiz__layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .about__layout {
    grid-template-columns: 1fr;
  }

  .about__image {
    max-height: 450px;
  }

  .about__image img {
    aspect-ratio: auto;
    max-height: 450px;
  }

  .about__credentials {
    grid-template-columns: 1fr;
  }

  .sossy__hero {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .sossy__hero-img {
    max-width: 360px;
    margin: 0 auto;
  }

  .sossy__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__layout {
    grid-template-columns: 1fr;
  }

  /* Why strip — tablet */
  .why-strip__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer email — tablet */
  .footer__email-capture {
    flex-direction: column;
    text-align: center;
  }

  .footer__email-form {
    min-width: auto;
    width: 100%;
    max-width: 420px;
  }

  /* Rx responsive — tablet */








  .footer__layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --space-section: 4.5rem;
    --space-4xl: 4rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .header__inner {
    padding: 0 var(--space-md);
  }

  .hero__content {
    padding: 0 var(--space-md) var(--space-3xl);
  }

  /* Gen2 C3-05 regression fix: unified hero title size at max-width:640px.
     Previously 2.25rem here + 2.75rem !important elsewhere in same media query — !important removed. */
  .hero__title {
    font-size: 2.75rem;
    line-height: 1.05;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Gen2 V-NEW-03: keep the .btn-textlink flowing left under a full-width primary button,
     instead of being centered and looking disconnected. */
  .hero__actions .btn-textlink {
    width: auto;
    align-self: flex-start;
    padding-left: 0;
  }

  .hero__trust {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .treatments__grid {
    grid-template-columns: 1fr;
  }

  .results__grid {
    grid-template-columns: 1fr;
  }

  .sossy__hero {
    gap: var(--space-lg);
  }

  .sossy__hero-img {
    max-width: 280px;
  }

  .sossy__links {
    flex-direction: column;
  }

  .sossy__links .btn {
    width: 100%;
    justify-content: center;
  }

  .sossy__grid {
    grid-template-columns: 1fr;
  }

  .sossy__filter {
    gap: var(--space-xs);
  }

  .sossy__filter-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
  }

  .sossy__cta-links {
    flex-direction: column;
  }

  .sossy__cta-links .btn {
    width: 100%;
    justify-content: center;
  }

  .quiz__form {
    padding: var(--space-lg);
  }

  .products__content {
    margin-left: var(--space-md);
    max-width: none;
    padding-right: var(--space-md);
  }

  /* Why strip — mobile */
  .why-strip__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .why-strip__item:last-child {
    grid-column: 1 / -1;
  }

  /* Footer email — mobile */
  .footer__email-form {
    flex-direction: column;
  }

  .footer__email-form .btn--primary {
    width: 100%;
    text-align: center;
  }

  /* Rx responsive — mobile */









  .footer__layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════
   CINEMATIC VIDEO SECTIONS
   Inspired by Seedance 2.0 / Gemini tutorial technique
   Light-palette overlays (cream-to-transparent gradients)
   ═══════════════════════════════════════════════════════ */

/* ─── VIDEO CTA (pre-footer) ────────────────────────── */
.video-cta {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 80px 24px;
}
.video-cta__wrap {
  position: absolute;
  inset: 0;
}
.video-cta__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(61, 83, 98, 0.3);
}
.video-cta__fade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, var(--color-bg), transparent);
  z-index: 1;
}
.video-cta__fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  z-index: 1;
}
.video-cta__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.video-cta__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-bg-rose);
  margin-bottom: 12px;
}
.video-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.1);
  margin-bottom: 16px;
}
.video-cta__desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 8px rgba(0,0,0,0.12);
  margin-bottom: 32px;
  line-height: 1.6;
}
.video-cta .btn--primary {
  background: #fff;
  color: var(--color-text);
  border-color: #fff;
}
.video-cta .btn--primary:hover {
  background: var(--color-bg-rose);
  color: #fff;
  border-color: var(--color-bg-rose);
}

/* ─── RESPONSIVE VIDEO SECTIONS ──────────────────────── */
@media (max-width: 768px) {
  /* Gen4: Hide the cinematic video divider on mobile — videos don’t autoplay on mobile
     and the poster repetition (same hero-woman.jpg) degrades the visual experience.
     Tristan flagged this; panel agreed on the mobile cut. */
  .video-cta { min-height: 50vh; padding: 60px 20px; }
}

/* Gen4: Mobile hero text reduction. Panel flagged the hero H1 “One nurse.
   Every injection. No delegation.” reads as too dense at 414px.
   Reducing font-size by ~10% on small screens via media query. */
@media (max-width: 480px) {
  .hero__title {
    font-size: 2.47rem; /* ~10% below the 640px breakpoint value of 2.75rem */
  }
}

/* =========================================================
   TURNAROUND FIXES (Gen 1) — additive styles only
   ========================================================= */

/* Text link style for secondary hero CTA (C2-04) */
.btn-textlink {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-color: var(--color-border-hover);
  text-underline-offset: 5px;
  transition: color var(--duration-fast) var(--ease-out);
  align-self: center;
}
.btn-textlink:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 0.95rem;
}

/* Hero scarcity line (C2-10) */
.hero__scarcity {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-top: calc(var(--space-md) * -1);
  margin-bottom: var(--space-2xl);
  font-style: italic;
}

/* Recognition moment on treatment cards (C6-07) */
.treatment-card__recog {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* Results interval labels */
.result-card__interval {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

/* Testimonial note */
.testimonials__note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 640px;
  margin: var(--space-lg) auto 0;
  line-height: 1.55;
}

/* Medical oversight block (C1-02) */
.about__oversight-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}
.about__medical-oversight {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  border-left: 3px solid var(--color-accent);
  background: rgba(61, 83, 98, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.about__oversight-list {
  list-style: disc;
  margin: var(--space-md) 0 var(--space-md) var(--space-lg);
  padding: 0;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}
.about__oversight-list li {
  margin-bottom: 0.5rem;
}
.about__oversight-note {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Booking handoff (C2-01) */
.book-handoff {
  padding: var(--space-section) 0;
  background: var(--color-bg-blush-light);
}
.book-handoff__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.book-handoff__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  text-align: left;
  margin: var(--space-2xl) 0;
}
.book-handoff__h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}
.book-handoff__grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.book-handoff__grid li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.book-handoff__grid li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 600;
}
.book-handoff__cta {
  margin-top: var(--space-xl);
}
.book-handoff__first-visit {
  margin-top: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface-alt, #f8f7f5);
  border-left: 3px solid var(--color-accent, #B8965A);
  font-size: 0.9375rem;
  color: var(--color-text);
  border-radius: 0 4px 4px 0;
}

.book-handoff__phone-fallback {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}
.book-handoff__disclaimer {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Sticky mobile CTA bar (C2-05) */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 16px rgba(61, 83, 98, 0.08);
  gap: 10px;
  align-items: stretch;
}
.mobile-cta-bar__call {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 16px;
  min-width: 64px;
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #fff;
}
.mobile-cta-bar__book {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
}

/* Gen2 M-NEW-01: extend sticky CTA bar to cover the tablet dead zone (769–1024px).
   Desktop nav hides at ≤1024px; without this change, iPad Air portrait / iPad Mini / Android tablets
   have no visible booking path except the hamburger icon. */
@media (max-width: 1024px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* Gen2 M-NEW-04: hide the sticky bar when the #book section is on-screen, so it doesn't
   compete with the primary "Continue to Jane App Scheduler" CTA inside the handoff. */
.mobile-cta-bar--hidden {
  transform: translateY(110%);
  pointer-events: none;
  opacity: 0;
}
.mobile-cta-bar {
  transition: transform 250ms var(--ease-out), opacity 250ms var(--ease-out);
}

/* Contact draft-note */
.contact__draft-note {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-left: 0.5rem;
  font-style: italic;
}

/* Footer newsletter note */
.footer__email-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  min-height: 1.2em;
}
.footer__email-note--success { color: #2d7a4f; }
.footer__email-note--error   { color: #8a3b3b; }

/* Quiz error message */
.quiz-email-form__error {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #8a3b3b;
}

/* iPad portrait / mid-range breakpoint (C3-04) */
@media (min-width: 641px) and (max-width: 900px) {
  .why-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .treatments__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sossy__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
  .book-handoff__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* Mobile typographic hierarchy (C3-05) — Gen2: hero__title rule unified into the earlier @media (max-width:640px)
   block above so there is a single source of truth for the mobile H1 size (no !important cascade fight). */
@media (max-width: 640px) {
  .section-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  .video-cta__title {
    font-size: 2.25rem;
  }
  /* Gen2 V-NEW-03: no more `align-items: stretch` here — it fought .btn-textlink's align-self.
     Let the hero actions flow left-aligned in mobile column layout. */
  .book-handoff__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .mobile-nav {
    backdrop-filter: blur(8px);           /* reduce from 20px on mobile (C5-09) */
    -webkit-backdrop-filter: blur(8px);
  }
  .contact__draft-note { display: block; margin-left: 0; margin-top: 0.25rem; }
}

/* Unified card-hover system (C3-08) */
.treatment-card,
.result-card,
.ep-card,
.treatment-card:hover,
.result-card:hover,
.ep-card:hover,

/* =====================================================
   TREATMENT MENU — detailed bookable cards
   ===================================================== */

.menu__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0 3rem;
  justify-content: center;
}
.menu__tab {
  appearance: none;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.menu__tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.menu__tab.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFFFFF;
}

.menu__group {
  margin-bottom: 4rem;
}
.menu__group[hidden] {
  display: none;
}
.menu__group-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.menu__group-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.menu__group-desc {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.menu__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.tx-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  position: relative;
}
.tx-item[hidden] {
  display: none;
}
.tx-item:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 8px 24px rgba(61, 83, 98, 0.08);
  transform: translateY(-2px);
}

.tx-item__head {
  margin-bottom: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}
.tx-item__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(184, 150, 90, 0.10);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}
.tx-item__badge--new {
  color: #FFFFFF;
  background: var(--color-accent);
}
.tx-item__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.tx-item__tagline {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  font-style: italic;
}

.tx-item__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tx-item__facts {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  flex: 1;
}
.tx-item__facts li {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--color-border);
}
.tx-item__facts li:last-child {
  border-bottom: none;
}
.tx-item__facts strong {
  color: var(--color-text);
  font-weight: 500;
  margin-right: 0.25rem;
}

.tx-item__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
  margin-top: auto;
}
.tx-item__book:hover {
  background: var(--color-accent-hover);
}

.menu__cta {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--color-bg-blush-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.menu__cta-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.menu__cta-text p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 560px;
}
.menu__cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.menu__legal {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .menu__items {
    grid-template-columns: 1fr;
  }
  .menu__cta {
    padding: 1.75rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .menu__tabs {
    margin: 1.75rem 0 2rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .menu__tab {
    flex: 0 0 auto;
  }
}

/* ===================================================
   GEN2 BUILD ADDITIONS
   =================================================== */

/* Mobile: video sections show a branded navy background
   instead of a frozen hero-woman.jpg poster frame.
   initLazyVideos() returns early on mobile — the video
   element keeps its poster, but on very small screens
   we overlay a solid colour so the frozen stock photo
   does not represent the brand. */
@media (max-width: 767px) {
  .video-cta__wrap {
    background: var(--color-navy);
  }
  .video-cta__video {
    opacity: 0;
    /* poster is hidden behind the navy bg; video never plays on mobile anyway */
  }
}

/* Quiz result referral link */
.quiz-result__refer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-align: center;
}
.quiz-result__refer-link {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Sossy mid-CTA mobile stack */
@media (max-width: 640px) {
  .sossy__mid-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem;
  }
}

/* Mobile sticky CTA bottom offset when cookie banner is present */
.mobile-cta-bar {
  bottom: var(--kf-cookie-banner-h, 0px);
  /* When cookie banner is visible, push the bar up to avoid overlap */
  transition: bottom 0.2s ease-out;
}
