/*
 * JumpStartMD Landing Page — Brand styles
 * Loads AFTER Bootstrap 5.3 CSS — only contains what Bootstrap doesn't provide:
 * brand tokens, brand typography, brand components
 */

/* ============================================================
   1. DESIGN TOKENS (brand-specific — Bootstrap has no equivalent)
   ============================================================ */
/* Force light mode — prevent Bootstrap dark mode on any device */
:root,
[data-bs-theme="light"] {
  color-scheme: light !important;
}

:root {
  /* Brand colors */
  --navy: #002A3A;
  --cream: #e6cbb2;
  --gold: #aa8764;
  --orange: #FFB26A;
  --sage: #4E5D48;
  --sage-bright: #4a7a60;

  /* Text colors */
  --text-dark: #002A3A;
  --text-body: #2c2c2c;
  --text-muted: #64748b;
  --text-light: #8a8a8a;

  /* Surface colors */
  --bg-white: #ffffff;
  --bg-warm: #FAF5F0;
  --bg-alt: #f9fafb;
  --bg-light-blue: #E7DED8;

  /* Hover shades */
  --navy-hover: #1a3f4c;
  --orange-hover: #d9974f;

  /* Border */
  --color-border: rgba(100, 114, 139, 0.35);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Fluid typography (Bootstrap doesn't do fluid clamp) */
  --font-h1: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  --font-h2: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem);
  --font-h3: clamp(1.375rem, 1rem + 1.5vw, 1.75rem);
  --font-h4: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --font-xs: 0.75rem;

  /* Line heights */
  --lh-body: 1.6;
  --lh-snug: 1.55;      /* subheads, supporting copy — ~27px at body size */
  --lh-tight: 1.2;      /* headings */

  /* Font families (swap --font-display to Google Font later) */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font-sans);
}

@supports (color: color-mix(in oklch, white, black)) {
  :root {
    --navy-hover: color-mix(in oklch, var(--navy) 85%, white);
    --orange-hover: color-mix(in oklch, var(--orange) 85%, black);
  }
}

/* ============================================================
   2. BASE — Brand overrides on Bootstrap's reboot
   ============================================================ */
body {
  font-family: var(--font-sans);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  text-wrap: balance;
}

h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }
h4 { font-size: var(--font-h4); }

p { text-wrap: pretty; }

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

/* Brand focus rings (Bootstrap uses blue) */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* High contrast */
@media (prefers-contrast: more) {
  :root {
    --text-muted: #4a4a4a;
    --text-light: #5a5a5a;
  }
}

/* ============================================================
   3. CONTAINER OVERRIDE
   Bootstrap steps at breakpoints; we want one 1200px max
   ============================================================ */
.container {
  max-width: 1200px;
  --bs-gutter-x: 2.5rem;
}

@media (min-width: 768px) {
  .container {
    --bs-gutter-x: 5rem;
  }
}

/* ============================================================
   4. COMPONENTS (brand-specific — Bootstrap has no equivalent)
   ============================================================ */

/* --- Section backgrounds --- */
.section {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.section--dark {
  background: var(--navy);
  color: var(--bg-white);

  & :is(h1, h2, h3, h4) { color: var(--bg-white); }
  & a { color: var(--orange); }
  & a:hover { color: var(--cream); }
  & :focus-visible { outline-color: var(--orange); }
}

.section--alt {
  background: var(--bg-alt);
}

.section--cream {
  background: var(--cream);
}

/* --- Brand buttons (override Bootstrap .btn) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--orange);
  color: var(--navy);
  animation: btn-nudge 6s ease-in-out 3s infinite;
}
.btn--primary:hover {
  background: var(--orange-hover);
  color: var(--navy);
  animation: none;
}

@keyframes btn-nudge {
  0%, 2%  { transform: translateX(0); }
  2.5%    { transform: translateX(-1.5px); }
  3.5%    { transform: translateX(1.5px); }
  4.5%    { transform: translateX(-1px); }
  5.5%    { transform: translateX(1px); }
  6.5%    { transform: translateX(0); }
  100%    { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary { animation: none; }
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  border-width: 1.5px;
}
.btn--secondary:hover {
  background: var(--navy);
  color: var(--bg-white);
}

.btn--dark {
  background: var(--navy);
  color: var(--bg-white);
}
.btn--dark:hover {
  background: var(--navy-hover);
  color: var(--bg-white);
}

/* --- Promo Bar (navy + gold accent) --- */
.promo-bar {
  background: var(--navy);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.promo-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 65%
  );
  transform: translateX(-100%);
  animation: promo-shimmer 10s ease-in-out infinite;
}

@keyframes promo-shimmer {
  0%, 100% { transform: translateX(-100%); }
  40%, 60% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-bar::after { animation: none; }
}

.promo-bar__price {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.promo-bar__original {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
}

.promo-bar__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 0.5rem;
}

.promo-bar__limited {
  font-weight: 400;
  color: var(--gold);
}

@media (max-width: 575px) {
  .promo-bar__dot { display: none; }
  .promo-bar__limited { display: block; }
}

/* --- Site Header --- */
.site-header {
  background: var(--bg-warm);
}

.site-header__logo {
  display: block;
  width: 320px;
  height: auto;
}

/* --- Header Call CTA (bold text, gold underline) --- */
.header-call {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2.5px solid var(--gold);
  transition: border-color 0.2s;
}

.header-call:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.header-call__icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  margin-right: 0.35em;
  animation: phone-ring 4s ease-in-out 2s infinite;
  transform-origin: center center;
}

@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  3%       { transform: rotate(-12deg); }
  5%       { transform: rotate(12deg); }
  7%       { transform: rotate(-10deg); }
  9%       { transform: rotate(10deg); }
  11%      { transform: rotate(-6deg); }
  13%      { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .header-call__icon { animation: none; }
  .hero__glow { animation: none; }
}

.header-call__hours {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 575px) {
  .header-call {
    font-size: 0.85rem;
    border-bottom-width: 1.5px;
  }
  .header-call__hours {
    font-size: 0.65rem;
  }
  .site-header__logo {
    width: 160px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .header-call {
    font-size: 1rem;
    border-bottom-width: 2px;
  }
  .site-header__logo {
    width: 220px;
  }
}

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.trust-mark {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-mark__logo {
  display: block;
  height: auto;
  flex-shrink: 0;
}

.trust-mark__logo--google {
  width: 20px;
}

.trust-mark__logo--yelp {
  width: 44px;
}

.trust-mark__logo--bbb {
  width: 56px;
}

.trust-mark__info {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.trust-mark__stars {
  display: flex;
  gap: 1px;
}

.trust-mark__star {
  width: 14px;
  height: 14px;
  fill: #FBBC04;
}

.trust-mark__star--half {
  fill: #FBBC04;
}

.trust-mark__star--yelp {
  fill: #FF1A1A;
}

.trust-mark__star--trustindex {
  fill: #1A976A;
}

.trust-mark__logo--trustindex {
  width: 80px;
}

.trust-mark__rating {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 575px) {
  .trust-bar {
    justify-content: center;
    gap: 1rem;
  }
  .trust-mark__logo--google { width: 16px; }
  .trust-mark__logo--yelp { width: 36px; }
  .trust-mark__logo--bbb { width: 36px; }
  .trust-mark__star { width: 12px; height: 12px; }
}

/* --- Pill Badge --- */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--sage-bright);
  border-radius: var(--radius-md);
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--sage-bright);
  line-height: 1.4;
  background: transparent;
}

/* --- Hero --- */
.hero {
  background: var(--bg-warm);
  overflow: hidden;
}

.hero__row {
  align-items: center;
}

.hero__content h1 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  color: var(--text-muted);
  line-height: var(--lh-snug);
  max-width: 52ch;
}

.hero__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__glow {
  position: absolute;
  width: clamp(320px, 82%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  background: radial-gradient(circle, rgba(170,135,100,0.45) 0%, rgba(255,178,106,0.2) 50%, rgba(255,178,106,0) 72%);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50%      { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}

.hero__portrait {
  position: relative;
  width: clamp(280px, 70%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 8px 30px rgba(0, 42, 58, 0.12);
}


.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero__slide--active {
  opacity: 1;
}

/* Per-patient head alignment */
.hero__slide[src*="lindsay"]      { object-position: center 8%; }
.hero__slide[src*="jeff"]         { object-position: center 25%; }
.hero__slide[src*="ana"]          { object-position: center 20%; }
.hero__slide[src*="janice"]       { object-position: center 10%; }
.hero__slide[src*="ray"]          { object-position: center 4%; }
.hero__slide[src*="renee-nicole"] { object-position: 45% 8%; }

.hero__badge {
  position: absolute;
  bottom: 10%;
  right: 5%;
  z-index: 2;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 0.6rem 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: left;
  line-height: 1.2;
  transition: opacity 0.4s ease-in-out;
}

.hero__badge-name {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
}

.hero__badge-stat {
  display: block;
  font-weight: 700;
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  color: var(--navy);

  & small {
    font-size: 0.5em;
    font-weight: 600;
  }
}

.hero__badge-label {
  display: block;
  font-size: var(--font-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .hero__badge {
    padding: 0.7rem 1.1rem;
  }
  .hero__badge-stat {
    font-size: clamp(2rem, 1.75rem + 1vw, 2.5rem);
  }
}

@media (max-width: 767px) {
  .hero__portrait {
    width: 260px;
    margin-inline: auto;
  }
  .hero__badge {
    right: 10%;
  }
}

/* --- Proof Bar (below hero) --- */
.proof-bar {
  background: var(--navy);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.proof-bar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .proof-bar__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.proof-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.proof-bar__icon {
  width: 36px;
  height: 36px;
  color: var(--orange);
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

.proof-bar__label {
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1.05rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.proof-bar__sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
}

/* --- Medications Carousel --- */
.meds {
  background: var(--bg-warm);
}

.meds__heading {
  text-align: center;
  margin-bottom: 2rem;
}

.meds__heading h2 {
  font-size: var(--font-h2);
  line-height: 1.2;
}

.meds__heading h2 em {
  font-style: normal;
  color: var(--gold);
}


.meds__track-wrap {
  position: relative;
}

.meds__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.meds__track::-webkit-scrollbar { display: none; }

.meds__card {
  flex: 0 0 calc(33.333% - 0.85rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: 0 1px 4px rgba(0, 42, 58, 0.06);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.meds__card:hover {
  box-shadow: 0 6px 24px rgba(0, 42, 58, 0.12);
}

@media (max-width: 1023px) {
  .meds__card { flex: 0 0 calc(50% - 0.65rem); }
}

@media (max-width: 575px) {
  .meds__card { flex: 0 0 85%; }
}

.meds__img-wrap {
  position: relative;
}

.meds__img {
  width: 100%;
  aspect-ratio: 350 / 250;
  object-fit: cover;
  display: block;
}

.meds__body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.meds__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.meds__ingredient {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.meds__desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0.6rem 0 0;
  flex: 1;
}

.meds__cta {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  background: var(--orange);
  color: var(--navy);
  transition: background 0.2s;
}

.meds__cta:hover {
  background: var(--orange-hover);
  color: var(--navy);
}

/* Arrow buttons */
.meds__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-white);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
}

.meds__track-wrap:hover .meds__arrow { opacity: 1; }
.meds__arrow--prev { left: -16px; }
.meds__arrow--next { right: -16px; }
.meds__arrow svg { width: 18px; height: 18px; }

/* --- Locations Carousel --- */
.locations {
  background: var(--bg-white);
}

.locations__heading {
  text-align: center;
  margin-bottom: 2rem;
}

.locations__track-wrap {
  position: relative;
}

.locations__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.locations__track::-webkit-scrollbar { display: none; }

.locations__card {
  flex: 0 0 calc(25% - 0.75rem);
  text-align: center;
}

@media (max-width: 1023px) {
  .locations__card { flex: 0 0 calc(33.333% - 0.7rem); }
}

@media (max-width: 575px) {
  .locations__card { flex: 0 0 calc(50% - 0.5rem); }
}

.locations__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.locations__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.locations__card:hover .locations__img-wrap img {
  transform: scale(1.04);
}

.locations__name {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

/* Arrow buttons */
.locations__arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-white);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
}

.locations__track-wrap:hover .locations__arrow { opacity: 1; }
.locations__arrow--prev { left: -16px; }
.locations__arrow--next { right: -16px; }
.locations__arrow svg { width: 18px; height: 18px; }

/* --- Accordion (global — reused by diff table, FAQs, etc.) --- */
.accordion__body {
  overflow: hidden;
  transition: height 0.3s ease;
}

/* Chevron rotation (any summary with .accordion__chevron) */
.accordion__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.accordion[open] > summary .accordion__chevron {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .accordion__body { transition-duration: 0.01ms; }
  .accordion__chevron { transition-duration: 0.01ms; }
}

/* --- Difference Section (comparison table + accordions) --- */
.diff {
  background: var(--bg-alt);
}

.diff__heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.diff__heading h2 em {
  font-style: normal;
  color: var(--gold);
}

.diff__table {
  margin-inline: auto;
  background: var(--bg-white);
  border: 1px solid rgba(0, 42, 58, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 6px rgba(0, 42, 58, 0.07);
  overflow: hidden;
}

/* Column headers */
.diff__colheaders {
  display: none;
}

@media (min-width: 768px) {
  .diff__colheaders {
    display: grid;
    grid-template-columns: 1fr 140px 150px;
    padding: 0.9rem 1.5rem;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .diff__colheaders div:not(:first-child) {
    text-align: center;
  }
}

/* Group accordion */
.diff__group {
  border-top: 1px solid rgba(0, 42, 58, 0.08);
}

.diff__group:first-of-type {
  border-top: none;
}

.diff__group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  background: rgba(0, 42, 58, 0.025);
  transition: background 0.2s;
}

.diff__group-header:hover {
  background: rgba(0, 42, 58, 0.05);
}

/* Remove default marker */
.diff__group-header::-webkit-details-marker { display: none; }
.diff__group-header::marker { content: ""; }

.diff__group-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.diff__group-title {
  flex: 1;
  font-size: clamp(1.075rem, 1rem + 0.3vw, 1.225rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* Chevron uses global .accordion__chevron styles */

/* Feature rows */
.diff__rows {
  padding: 0;
}

.diff__row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(0, 42, 58, 0.06);
  gap: 0.4rem;
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* Mobile: stack with labels */
@media (max-width: 767px) {
  .diff__cell--jsmd,
  .diff__cell--comp {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .diff__cell--jsmd::before {
    content: "JumpStartMD:";
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    min-width: 90px;
  }
  .diff__cell--comp::before {
    content: "Competitors:";
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    min-width: 90px;
  }
}

/* Desktop: grid layout */
@media (min-width: 768px) {
  .diff__group-header {
    padding: 1rem 1.5rem;
  }
  .diff__row {
    grid-template-columns: 1fr 140px 150px;
    padding: 0.75rem 1.5rem;
    align-items: center;
    gap: 0;
  }
  .diff__cell--jsmd,
  .diff__cell--comp {
    text-align: center;
    justify-content: center;
  }
  .diff__row:hover {
    background: rgba(0, 42, 58, 0.015);
  }
  /* Desktop: chevron hidden, groups always open */
  .diff__group .accordion__chevron {
    display: none;
  }
  .diff__group-header {
    cursor: default;
  }
}

/* Checkmark */
.diff__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8f5ee;
  color: #2d8659;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

/* Competitor badges */
.diff__badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
  border: 1px solid transparent;
}

.diff__badge--rare {
  background: #fef2f2;
  color: #b45050;
  border-color: rgba(180, 80, 80, 0.18);
}

.diff__badge--not-typical {
  background: #fffbeb;
  color: #a16b28;
  border-color: rgba(161, 107, 40, 0.18);
}

.diff__badge--sometimes {
  background: #f0faf4;
  color: #3a7d5c;
  border-color: rgba(58, 125, 92, 0.18);
}

.diff__cta,
.trust__cta,
.faq__cta,
.founder__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* --- Trusted by Thousands Section --- */
.trust {
  background: var(--bg-warm);
}

.trust__heading {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.trust__heading h2 {
  font-size: var(--font-h2);
}

.trust__widget {
  max-width: 1100px;
  margin-inline: auto;
}

/* TrustIndex: ensure text is readable on light bg */
.trust__widget .ti-footer,
.trust__widget .ti-footer * {
  color: var(--text-body) !important;
}
.trust__widget .ti-footer strong {
  color: var(--navy) !important;
}

/* TrustIndex overrides: hide "based on N reviews" footer text */
.trust__widget .ti-footer .ti-rating-text .nowrap:last-child {
  display: none;
}

/* Clean up trailing comma in "4.6 of 5," when "based on" is hidden */

/* TrustIndex carousel arrows — visible on light bg, outside cards */
.trust__widget .ti-controls .ti-next,
.trust__widget .ti-controls .ti-prev {
  background: var(--navy) !important;
  border-radius: 50%;
  width: 40px !important;
  height: 40px !important;
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.trust__widget .ti-controls .ti-next:hover,
.trust__widget .ti-controls .ti-prev:hover {
  opacity: 1;
}

.trust__widget .ti-controls .ti-next::after,
.trust__widget .ti-controls .ti-prev::after {
  border-color: #fff !important;
}

/* Push arrows outside the card area */
.trust__widget .ti-controls .ti-prev {
  left: -20px !important;
}
.trust__widget .ti-controls .ti-next {
  right: -20px !important;
}

/* --- Member Stories Section --- */
.stories {
  background: var(--bg-light-blue);
  color: var(--text-body);
}

.stories__heading {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.stories__heading h2 {
  color: var(--navy);
}

.stories__heading .section-sub {
  color: var(--text-muted);
}

.stories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stories__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stories__card {
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.stories__card-inner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stories__card:hover .stories__card-inner {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.stories__card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.stories__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
}

.stories__info {
  color: #fff;
  margin-bottom: 0.75rem;
}

.stories__name {
  display: block;
  font-weight: 600;
  font-size: clamp(0.875rem, 0.8rem + 0.5vw, 1.25rem);
}

.stories__result {
  display: block;
  font-size: clamp(0.8rem, 0.7rem + 0.5vw, 1.125rem);
  opacity: 0.9;
}

.stories__result strong {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(170, 135, 100, 0.7);
}

.stories__play {
  height: 40px;
  padding: 0 16px 0 12px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.stories__card:hover .stories__play {
  background: var(--navy);
}

.stories__play svg {
  width: 16px;
  height: 16px;
  color: var(--navy);
  flex-shrink: 0;
}

.stories__play span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
}

.stories__card:hover .stories__play svg,
.stories__card:hover .stories__play span {
  color: #fff;
}

.stories__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* --- Video Lightbox --- */
.vbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vbox--open {
  pointer-events: auto;
  opacity: 1;
}

.vbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.vbox__wrap {
  position: relative;
  width: 90vw;
  max-width: 900px;
}

.vbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.vbox__close:hover {
  opacity: 1;
}

.vbox__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.vbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .vbox { transition-duration: 0.01ms; }
}

/* --- FAQ Section --- */
.faq {
  background: var(--bg-warm);
}

.faq__heading {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.faq__list {
  max-width: 800px;
  margin-inline: auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__item summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { display: none; content: ""; }

.faq__item .accordion__chevron {
  margin-left: auto;
  width: 22px;
  height: 22px;
}

.faq__answer {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  padding-bottom: 1.25rem;
}

.faq__answer p + p {
  margin-top: 1rem;
}

.faq__answer a {
  color: var(--gold);
}

/* --- Founder (Dr. Bourke) Section --- */
.founder {
  background: var(--bg-white);
  padding-block: clamp(3rem, 6vw, 6rem);
}

.founder__card {
  background: var(--navy);
  color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .founder__card {
    grid-template-columns: 3fr 2fr;
  }
}

.founder__text {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder__text h2 {
  color: var(--bg-white);
  font-size: var(--font-h2);
  margin-bottom: 0.25rem;
}

.founder__title {
  font-size: var(--font-small);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.founder__bio {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.founder__bio strong {
  color: var(--bg-white);
}

.founder__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.founder__tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.founder__image-col {
  position: relative;
  min-height: 320px;
}

.founder__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 767px) {
  .founder__card {
    grid-template-columns: 1fr;
  }
  .founder__image-col {
    order: -1;
    max-height: 400px;
  }
}

/* --- Consultation Form Section --- */
.consult {
  background: var(--navy);
}

.consult__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .consult__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.consult__image-col {
  position: relative;
  min-height: 300px;
}

.consult__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 767px) {
  .consult__image-col {
    min-height: 260px;
    max-height: 360px;
  }
}

.consult__form-col {
  background: var(--bg-white);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
}

.consult__form-col h2 {
  font-size: var(--font-h2);
  margin-bottom: 1rem;
}

.consult__copy {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: var(--lh-snug);
  margin-bottom: 1.5rem;
}

.consult__copy a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

.consult__copy a:hover {
  text-decoration: underline;
}

/* HubSpot form overrides — style the embedded iframe/form */
#hs-form-container {
  margin-top: 0.5rem;
}

#hs-form-container iframe {
  width: 100% !important;
}

/* If HubSpot renders inline (non-iframe mode) */
#hs-form-container .hs-form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

#hs-form-container .hs-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

#hs-form-container .hs-input:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
}

#hs-form-container .hs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--orange);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

#hs-form-container .hs-button:hover {
  background: var(--orange-hover);
}

/* --- Site Footer --- */
.site-footer {
  background: var(--navy);
  padding: 2.5rem 0 2rem;
  text-align: center;
  margin-top: auto;
}

.site-footer__logo-link {
  display: inline-block;
}

.site-footer__logo {
  display: block;
  width: 200px;
  height: auto;
  margin-inline: auto;
}

.site-footer__copy {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__nav a:hover {
  color: #fff;
}

.site-footer__nav a:not(:last-child)::after {
  content: "|";
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 768px) {
  .site-footer__logo {
    width: 240px;
  }
  .site-footer__copy {
    font-size: 0.875rem;
  }
  .site-footer__nav {
    font-size: 0.8125rem;
  }
}

/* ============================================================
   5. UTILITIES (only what Bootstrap doesn't have)
   ============================================================ */
/* --- Section subhead (reusable under any H2) --- */
.section-sub {
  margin-top: 0.75rem;
  margin-inline: auto;
  font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.1rem);
  color: var(--text-muted);
  line-height: var(--lh-snug);
  max-width: 720px;
  text-align: center;
}

.prose {
  max-width: 65ch;
}
