/* style.css — Rise With Jen Design Tokens & Components */

/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
  /* Typography */
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;

  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ========================================
   LIGHT MODE (default)
   ======================================== */
:root, [data-theme='light'] {
  --color-bg: #FFFDF7;
  --color-surface: #FFF9F0;
  --color-surface-2: #FFF5E8;
  --color-surface-offset: #F5F0E8;
  --color-border: #E0D8CC;
  --color-divider: #E8E0D4;

  --color-text: #2C2825;
  --color-text-muted: #7A756D;
  --color-text-faint: #6B665E;
  --color-text-inverse: #FFFDF7;

  --color-primary: #C4644A;
  --color-primary-hover: #A8503A;
  --color-primary-active: #8E3F2E;
  --color-primary-light: #F5DDD5;

  --color-secondary: #2A7C7F;
  --color-secondary-hover: #1E6264;
  --color-secondary-active: #154A4C;
  --color-secondary-light: #D4ECEC;

  --color-success: #5B8C51;
  --color-gold: #D4A853;
  --color-gold-light: #FDF3DC;
  --color-error: #C44A4A;

  --shadow-sm: 0 1px 3px rgba(44, 40, 37, 0.06);
  --shadow-md: 0 4px 12px rgba(44, 40, 37, 0.08);
  --shadow-lg: 0 12px 32px rgba(44, 40, 37, 0.12);
  --shadow-xl: 0 24px 48px rgba(44, 40, 37, 0.16);
}

/* ========================================
   DARK MODE
   ======================================== */
[data-theme='dark'] {
  --color-bg: #1A1816;
  --color-surface: #211F1C;
  --color-surface-2: #292622;
  --color-surface-offset: #1E1C19;
  --color-border: #3A3632;
  --color-divider: #302C28;

  --color-text: #E8E5E0;
  --color-text-muted: #B8B3AC;
  --color-text-faint: #A29D96;
  --color-text-inverse: #1A1816;

  --color-primary: #D4886F;
  --color-primary-hover: #E0A08A;
  --color-primary-active: #C47050;
  --color-primary-light: #3A2A24;

  --color-secondary: #4AA0A3;
  --color-secondary-hover: #64B4B7;
  --color-secondary-active: #388082;
  --color-secondary-light: #1E3234;

  --color-success: #7AAC6F;
  --color-gold: #E0BE6F;
  --color-gold-light: #302A1C;
  --color-error: #D46F6F;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #1A1816;
    --color-surface: #211F1C;
    --color-surface-2: #292622;
    --color-surface-offset: #1E1C19;
    --color-border: #3A3632;
    --color-divider: #302C28;
    --color-text: #E8E5E0;
    --color-text-muted: #B8B3AC;
    --color-text-faint: #A29D96;
    --color-text-inverse: #1A1816;
    --color-primary: #D4886F;
    --color-primary-hover: #E0A08A;
    --color-primary-active: #C47050;
    --color-primary-light: #3A2A24;
    --color-secondary: #4AA0A3;
    --color-secondary-hover: #64B4B7;
    --color-secondary-active: #388082;
    --color-secondary-light: #1E3234;
    --color-success: #7AAC6F;
    --color-gold: #E0BE6F;
    --color-gold-light: #302A1C;
    --color-error: #D46F6F;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.5);
  }
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
body { overflow-x: hidden; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }

/* ========================================
   HEADER / NAV
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-header.hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.logo { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--color-text); }
.logo svg { width: 2.5rem; height: 2.5rem; }
.logo-mark { width: 2.5rem; height: 2.5rem; object-fit: contain; display: block; }
.logo-full { height: 2.75rem; width: auto; max-width: 100%; object-fit: contain; display: block; }
.logo-text { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; letter-spacing: -0.02em; }

.nav-desktop { display: flex; align-items: center; gap: var(--space-8); }
.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.nav-desktop a:hover { color: var(--color-text); }

.nav-actions { display: flex; align-items: center; gap: var(--space-4); }

.theme-toggle {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover { color: var(--color-text); background: var(--color-surface); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-interactive);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-teal {
  background: var(--color-secondary);
  color: #fff;
}
.btn-teal:hover {
  background: var(--color-secondary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn-ghost:hover { color: var(--color-text); background: var(--color-surface); }

.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }

/* Mobile menu */
.hamburger {
  display: none;
  width: 2.5rem; height: 2.5rem;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 1.25rem; height: 2px;
  background: var(--color-text);
  transition: all 0.3s var(--ease-out);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(2.5px, 2.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(2.5px, -2.5px); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 4rem 0 0 0;
  background: var(--color-bg);
  z-index: 99;
  overflow-y: auto;
  padding: var(--space-4) var(--space-5) var(--space-6);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: none;
}
.mobile-nav-group {
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-2) 0;
}
.mobile-nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}
.mobile-nav-group summary::-webkit-details-marker { display: none; }
.mobile-nav-group summary::after {
  content: '+';
  color: var(--color-text-muted);
  font-weight: 600;
}
.mobile-nav-group[open] summary::after { content: '−'; }
.mobile-nav-section {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted, #888);
  margin-top: var(--space-5);
  margin-bottom: var(--space-1);
}
.mobile-nav-section:first-child { margin-top: 0; }
.mobile-nav-sub {
  border-left: 2px solid var(--color-divider);
  margin-left: var(--space-2);
  padding: var(--space-1) 0 var(--space-1) var(--space-3);
}
.mobile-nav-sub a {
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  border-bottom: none;
  color: var(--color-text-muted, var(--color-text));
}
.mobile-nav-cta {
  display: block;
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-4) !important;
  background: var(--color-primary);
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  border-bottom: none !important;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* Wave dividers */
.wave-divider {
  width: 100%;
  height: clamp(40px, 5vw, 80px);
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 100%; }
.wave-divider path { fill: var(--color-surface); }
.wave-divider.flip { transform: scaleY(-1); }
.wave-divider.bg-fill path { fill: var(--color-bg); }

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}
.hero-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  width: 100%;
}
.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-gold-light);
  color: var(--color-gold);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}
.hero h1 em {
  color: var(--color-primary);
  font-style: normal;
  position: relative;
}

.hero-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.hero-ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-circle {
  width: clamp(280px, 32vw, 500px);
  height: clamp(280px, 32vw, 500px);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(196, 100, 74, 0.35);
}
.hero-visual-circle picture,
.hero-visual-circle img,
.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-visual-inner { display: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in * { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
}
.hero-stat span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding-block: var(--space-8); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-6); }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); margin-bottom: var(--space-4); }
  .hero-desc { margin-inline: auto; margin-bottom: var(--space-5); font-size: 0.95rem; line-height: 1.6; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: 2; }
  .hero-visual-circle { width: min(60vw, 260px); height: min(60vw, 260px); }
  .hero-stats { justify-content: center; gap: var(--space-5); margin-top: var(--space-6); padding-top: var(--space-4); }
  .hero-badge { margin-bottom: var(--space-4); }
}

/* ========================================
   PAIN POINTS
   ======================================== */
.pain-points { background: var(--color-surface); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.pain-card {
  padding: var(--space-6);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}
.pain-card .icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}
.pain-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.pain-card p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ========================================
   SERVICES CARDS
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.service-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card .badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.service-card .arrow {
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.steps { counter-reset: step; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 auto var(--space-4);
}
.step h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.step p { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 30ch; margin-inline: auto; }

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.testimonial-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}
.testimonial-card .stars {
  color: var(--color-gold);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
}
.testimonial-card blockquote {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  font-style: italic;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial-card .avatar {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--text-sm);
}
.testimonial-card .author-info span { display: block; }
.testimonial-card .author-info .name { font-weight: 600; font-size: var(--text-sm); }
.testimonial-card .author-info .role { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ========================================
   PRICING
   ======================================== */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.pricing-toggle span { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 500; }
.toggle-switch {
  width: 3rem; height: 1.75rem;
  background: var(--color-border);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background var(--transition-interactive);
}
.toggle-switch.active { background: var(--color-primary); }
.toggle-switch::after {
  content: '';
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 0.25rem; left: 0.25rem;
  transition: transform var(--transition-interactive);
}
.toggle-switch.active::after { transform: translateX(1.25rem); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.pricing-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.pricing-card.popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: var(--space-4);
  right: calc(-1 * var(--space-6));
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-8);
  transform: rotate(45deg);
}
.pricing-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.pricing-card .price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.pricing-card .price small {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}
.pricing-card .desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.pricing-card ul {
  list-style: none;
  margin-bottom: var(--space-6);
}
.pricing-card li {
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.pricing-card li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-list { margin-top: var(--space-8); max-width: 800px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--color-divider);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-question .icon-chevron {
  width: 1.25rem; height: 1.25rem;
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
  color: var(--color-text-muted);
}
.faq-item.open .icon-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-out);
}
.faq-answer-inner {
  padding-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  outline: none;
}
.form-textarea { min-height: 120px; resize: vertical; }

/* ========================================
   QUIZ
   ======================================== */
.quiz-container { max-width: 700px; margin-inline: auto; }
.quiz-progress {
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.4s var(--ease-out);
}
.quiz-question-num {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.quiz-question-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}
.quiz-options { display: flex; flex-direction: column; gap: var(--space-3); }
.quiz-option {
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: var(--text-sm);
  text-align: left;
  transition: all var(--transition-interactive);
}
.quiz-option:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.quiz-option.selected { border-color: var(--color-primary); background: var(--color-primary-light); font-weight: 600; }

.quiz-result {
  text-align: center;
  padding: var(--space-8);
}
.quiz-score-circle {
  width: 10rem; height: 10rem;
  border-radius: 50%;
  border: 6px solid var(--color-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto var(--space-6);
}
.quiz-score-circle .score {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
}
.quiz-score-circle .label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ========================================
   BLOG
   ======================================== */
.blog-filters {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.blog-filter {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.blog-filter:hover, .blog-filter.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.blog-card-body { padding: var(--space-5); }
.blog-card-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.blog-card p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ========================================
   RESOURCES / LEAD MAGNETS
   ======================================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.resource-card {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
  cursor: pointer;
}
.resource-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.resource-card .type-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.resource-card h3 { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.resource-card p { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-3); }

/* ========================================
   CLIENT PORTAL
   ======================================== */
.portal-login {
  max-width: 400px;
  margin: var(--space-12) auto;
  text-align: center;
}
.portal-dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-6);
  min-height: 80vh;
}
.portal-sidebar {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
}
.portal-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-1);
  transition: all var(--transition-interactive);
}
.portal-sidebar-nav a:hover,
.portal-sidebar-nav a.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.portal-main {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
}

.goal-card {
  padding: var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
}
.goal-card h4 { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.progress-bar {
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease-out);
}
.progress-bar-fill.success { background: var(--color-success); }
.progress-bar-fill.gold { background: var(--color-gold); }

.action-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}
.action-item input[type="checkbox"] {
  width: 1.125rem; height: 1.125rem;
  accent-color: var(--color-primary);
}
.action-item.completed span { text-decoration: line-through; color: var(--color-text-muted); }

@media (max-width: 768px) {
  .portal-dashboard { grid-template-columns: 1fr; }
  .portal-sidebar { display: none; }
  .portal-mobile-nav { display: flex; gap: var(--space-2); overflow-x: auto; margin-bottom: var(--space-4); }
}

/* ========================================
   NEWSLETTER / CTA
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  text-align: center;
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
  border-radius: 0;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  color: #fff;
}
.cta-section p { color: rgba(255,255,255,0.85); max-width: 50ch; margin-inline: auto; margin-bottom: var(--space-8); }

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin-inline: auto;
}
.newsletter-form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: var(--text-sm);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form .btn {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
}
.newsletter-form .btn:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
}
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  max-width: 30ch;
}
.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-1) 0;
  text-decoration: none;
}
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.footer-bottom a { color: var(--color-text-muted); }
.footer-bottom a:hover { color: var(--color-primary); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-8 { margin-top: var(--space-8); }
.mt-6 { margin-top: var(--space-6); }
.mx-auto { margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ========================================
   PAGE TEMPLATES
   ======================================== */
.page { display: none; }
.page.active { display: block; }

.page-header {
  padding: var(--space-16) var(--space-6) var(--space-12);
  text-align: center;
  background: var(--color-surface);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.page-header p { font-size: var(--text-base); color: var(--color-text-muted); max-width: 55ch; margin-inline: auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { color: var(--color-text-faint); }

.prose {
  max-width: 65ch;
  margin-inline: auto;
  line-height: 1.8;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}
.prose h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.prose p { margin-bottom: var(--space-4); color: var(--color-text-muted); }
.prose ul, .prose ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}
.prose li { margin-bottom: var(--space-2); color: var(--color-text-muted); }
.prose strong { color: var(--color-text); }

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  box-shadow: var(--shadow-lg);
}
.cookie-banner p { font-size: var(--text-xs); color: var(--color-text-muted); max-width: none; }
.cookie-banner.hidden { display: none; }

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  z-index: 50;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--color-primary-hover); }

/* ========================================
   LEAD MAGNET VIEWER
   ======================================== */
.lead-magnet-viewer {
  max-width: 800px;
  margin-inline: auto;
  padding: var(--space-8);
}
.lead-magnet-viewer h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.lead-magnet-viewer h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}
.lead-magnet-viewer h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.lead-magnet-viewer p,
.lead-magnet-viewer li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-3);
}
.lead-magnet-viewer .worksheet-box {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  min-height: 60px;
}
.lead-magnet-viewer .prompt-card {
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: var(--space-3);
  font-style: italic;
}
.lead-magnet-viewer .affirmation-card {
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
  border-radius: var(--radius-lg);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
}
.lead-magnet-viewer .checklist-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}
.lead-magnet-viewer .checklist-item input { margin-top: 3px; }

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-in { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade { to { opacity: 1; } }

.reveal-up { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .reveal-up {
    clip-path: inset(100% 0 0 0);
    animation: reveal-clip linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}
@keyframes reveal-clip { to { clip-path: inset(0 0 0 0); } }

/* ========================================
   CALENDAR / BOOKING
   ======================================== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: var(--space-4);
}
.calendar-day-name {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  padding: var(--space-2);
}
.calendar-day {
  text-align: center;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.calendar-day:hover { background: var(--color-primary-light); }
.calendar-day.selected { background: var(--color-primary); color: #fff; }
.calendar-day.disabled { color: var(--color-text-faint); pointer-events: none; }
.calendar-day.today { font-weight: 700; outline: 2px solid var(--color-primary); outline-offset: -2px; }

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.time-slot {
  padding: var(--space-3);
  text-align: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.time-slot:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.time-slot.selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ========================================
   LANDING PAGES
   ======================================== */
.landing-hero {
  padding: var(--space-16) var(--space-6) var(--space-12);
  text-align: center;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}
.landing-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.landing-hero p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 55ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

/* ========================================
   HELP CENTER
   ======================================== */
.search-box {
  display: flex;
  max-width: 500px;
  margin: 0 auto var(--space-8);
  position: relative;
}
.search-box input {
  width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-10);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  background: var(--color-bg);
}
.search-box input:focus { border-color: var(--color-primary); outline: none; }
.search-box .search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.topic-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.topic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.topic-card .topic-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
}
.topic-card h3 { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.topic-card p { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ========================================
   NEW INTEGRATION STYLES v2.0
   ======================================== */

/* ─── Trust Bar Strip (above header) ─────── */
.trust-bar-strip {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 0.45rem var(--space-4);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 101;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  white-space: nowrap;
  overflow: hidden;
}
.trust-bar-strip .trust-sep { opacity: 0.5; }
@media (max-width: 900px) { .trust-bar-strip { display: none; } }

/* ─── User Account Button ───────────────── */
.user-account-btn {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-interactive);
}
.user-account-btn:hover { background: var(--color-primary-hover); }
.user-avatar {
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
}

/* ─── About Photo ───────────────────────── */
.about-photo-wrap {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.cert-badge-overlay {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition-interactive);
}
.cert-badge:hover { box-shadow: var(--shadow-md); }
[data-theme='dark'] .cert-badge { background: rgba(30,28,25,0.95); }

/* Cert section on about page */
.cert-section {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.cert-section h4 { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: var(--space-3); }
.cert-full-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-interactive);
}
.cert-full-badge:hover { border-color: var(--color-gold); box-shadow: var(--shadow-md); }
.cert-full-badge div { flex: 1; }
.cert-full-badge strong { display: block; font-size: var(--text-sm); font-weight: 700; }
.cert-full-badge span { font-size: var(--text-xs); color: var(--color-text-muted); }

/* About page quote */
.about-quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-primary);
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  line-height: 1.6;
}

/* ─── Social Proof Stats ────────────────── */
.social-proof-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-10);
  padding: var(--space-8) 0;
  margin-bottom: var(--space-8);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.proof-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.proof-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ─── Real testimonial accent ───────────── */
.testimonial-card.real-testimonial {
  border: 1px solid var(--color-primary-light);
}
.testimonial-card.real-testimonial::before {
  content: 'Verified Client';
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

/* ─── Social Media Footer ───────────────── */
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition-interactive);
  border: 1px solid var(--color-border);
}
.footer-social a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* ─── Email Gate Overlay ────────────────── */
.email-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  backdrop-filter: blur(4px);
}
.email-gate-modal {
  background: var(--color-bg);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-8);
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.email-gate-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: var(--space-2);
  line-height: 1;
  transition: color var(--transition-interactive);
}
.email-gate-close:hover { color: var(--color-text); }
.email-gate-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}
.email-gate-modal h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.email-gate-title {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}
.email-gate-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}
.email-gate-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.email-gate-form input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--color-bg);
  color: var(--color-text);
  box-sizing: border-box;
}
.email-gate-form input:focus { outline: none; border-color: var(--color-primary); }
.email-gate-privacy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* ─── Shop Grid ─────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition-interactive);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card-badge-row {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) 0;
  min-height: 1.5rem;
}
.product-discount-badge {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
}
.product-stage-badge {
  background: var(--color-secondary-light);
  color: var(--color-secondary);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
}
.product-stage-badge.flagship {
  background: var(--color-gold-light);
  color: var(--color-gold);
}
.product-card-body {
  padding: var(--space-5);
  flex: 1;
}
.product-card-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.product-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.product-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}
.product-original-price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.product-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.product-bullets li {
  padding: var(--space-1) 0;
  padding-left: var(--space-4);
  position: relative;
}
.product-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--color-primary); }
.product-card-footer {
  padding: 0 var(--space-5) var(--space-5);
}

/* ─── Product Sales Page ────────────────── */
.product-sales-page { }
.product-sales-hero {
  background: var(--color-surface);
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-border);
}
.product-sales-hero-inner { max-width: 720px; }
.product-tag-pill {
  display: inline-flex;
  align-items: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.product-sales-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.2;
  margin-bottom: var(--space-5);
}
.product-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}
.product-sales-price-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.product-sales-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}
.product-sales-original {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.product-sales-save {
  font-size: var(--text-sm);
  color: var(--color-success);
  font-weight: 600;
}
.product-guarantee {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
.pain-list { list-style: none; padding: 0; margin: 0; }
.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.pain-list li:last-child { border-bottom: none; }
.pain-check { color: var(--color-primary); font-weight: 700; flex-shrink: 0; }
.transformation-list, .included-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.transformation-list li, .included-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ─── Blog Enhancements ─────────────────── */
.blog-top-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-8);
}
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
}
.blog-post-meta-header {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.blog-post-body { max-width: 70ch; }
.read-more-link {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  display: inline-block;
  margin-top: var(--space-2);
}

/* ─── Auth Forms ────────────────────────── */
.auth-form-wrap {
  max-width: 440px;
  margin: 0 auto;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.auth-alt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
}
.auth-alt a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.auth-disclaimer { font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; line-height: 1.5; }
.auth-disclaimer a { color: var(--color-primary); }
.form-error {
  color: var(--color-error);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  background: color-mix(in srgb, var(--color-error) 10%, transparent);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--color-error) 30%, transparent);
}

/* ─── Account Page ──────────────────────── */
.account-profile {
  text-align: center;
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}
.account-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}
.account-profile h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.account-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.account-section {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}
.account-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
}
.account-section-danger { border-color: color-mix(in srgb, var(--color-error) 20%, transparent); }

/* ─── Landing Pages ─────────────────────── */
.landing-hero-section {
  padding: var(--space-20) 0 var(--space-16);
  background: var(--color-surface);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.landing-headline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto var(--space-6);
}
.landing-subheadline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}
.cta-subtext {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
.hero-statement {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-muted);
  font-style: italic;
  max-width: 70ch;
  margin: 0 auto;
}
.landing-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.landing-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* ─── Portal Auth Gate ──────────────────── */
#portal-login {
  display: flex;
  justify-content: center;
  padding: var(--space-12) 0;
}
.portal-user-name { font-weight: 700; }
.portal-user-package { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ─── Toast Error State ─────────────────── */
.toast-error {
  background: var(--color-error) !important;
  color: #fff !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   STRIPE PAYMENT INTEGRATION STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Purchase Button Loading Spinner ───────────────────────────────────────
   Shown on buy buttons while Stripe session is being created.             */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

.purchase-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ─── Secure Checkout Badge ─────────────────────────────────────────────────
   Small trust indicator shown beneath buy buttons on product cards.       */
.secure-checkout-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.secure-checkout-badge svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ─── Product Card Trust Row ────────────────────────────────────────────────
   "30-day guarantee · Instant download" strip at bottom of product cards. */
.product-card-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 11px;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4) var(--space-3);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  opacity: 0.8;
}

/* ─── Product Sales Page Trust Row ─────────────────────────────────────────
   Trust signals next to the hero buy button on product detail pages.      */
.product-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-4);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--color-success);
}

.cta-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--space-4);
}

/* ─── Price Display — Strikethrough Original Price ──────────────────────────
   Already present; ensuring consistency across shop and product pages.    */
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.product-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.product-original-price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-sales-price-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.product-sales-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.product-sales-original {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-sales-save {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-success);
  background: rgba(46, 125, 50, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.product-guarantee {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Purchase Success Page ─────────────────────────────────────────────────
   The full-page confirmation view shown after returning from Stripe.      */
.purchase-success-page-header {
  background: linear-gradient(135deg, var(--color-primary-light, #fdf0ec) 0%, var(--color-surface) 100%);
}

.purchase-success-section {
  padding-bottom: var(--space-16);
}

.container--narrow {
  max-width: 720px;
}

/* Loading state */
.purchase-success-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-12) 0;
  color: var(--color-text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}

/* Animated checkmark */
.success-checkmark-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.success-checkmark {
  width: 80px;
  height: 80px;
  color: var(--color-success, #2e7d32);
}

.success-checkmark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.success-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  animation: stroke-in 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke-in 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.55s forwards;
}

@keyframes stroke-in {
  to { stroke-dashoffset: 0; }
}

/* Hero */
.purchase-success-hero {
  text-align: center;
  margin-bottom: var(--space-8);
}

.success-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.success-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin: 0;
}

/* Main success card */
.purchase-success-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl, 16px);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.success-product-info {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.success-product-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.success-product-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.success-product-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
}

.success-amount {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.success-email-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-2);
}

/* Access button section */
.success-access-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

/* Revealed product content */
.product-content-reveal {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  animation: fade-in 0.4s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Upsell Section ────────────────────────────────────────────────────────
   "You might also love..." block shown on the success page.               */
.upsell-section {
  margin-bottom: var(--space-8);
}

.upsell-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
}

.upsell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.upsell-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.upsell-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.upsell-card-body {
  flex: 1;
}

.upsell-card h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.upsell-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.upsell-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

/* ─── Social Share Section ──────────────────────────────────────────────────
   Sharing prompt below the upsells on the success page.                   */
.success-share-section {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.success-share-section p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

/* ─── Money-Back Guarantee Badge ────────────────────────────────────────────
   Inline badge used near buy buttons.                                      */
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 10px;
}

.guarantee-badge svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* ─── Responsive ────────────────────────────────────────────────────────────*/
@media (max-width: 600px) {
  .purchase-success-card {
    padding: var(--space-5);
  }

  .success-title {
    font-size: var(--text-2xl);
  }

  .product-trust-row {
    flex-direction: column;
    gap: var(--space-2);
  }

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

  .success-access-section {
    align-items: stretch;
  }
}

/* ============================== ADMIN DASHBOARD ============================== */
.admin-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.admin-tab {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.admin-tab.active, .admin-tab:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.admin-toolbar {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.admin-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.admin-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}
.admin-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-table tr:hover td {
  background: var(--color-surface);
}
.admin-count {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.admin-empty {
  padding: var(--space-8);
  text-align: center;
  color: var(--color-text-muted);
}
.admin-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-12);
}

/* ============================== CHECKOUT MODAL ============================== */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.checkout-modal {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.checkout-close-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 10;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--color-border);
}
.checkout-close-btn:hover {
  background: var(--color-danger, #ef4444);
  color: #fff;
}
#checkout-mount {
  min-height: 400px;
}

/* ============================== PRINT STYLES ============================== */
@media print {
  .site-header, .mobile-nav, .site-footer, .cookie-banner,
  .back-to-top, .trust-bar-strip, #toast, .checkout-overlay { display: none !important; }
  .page { display: block !important; }
  body { background: #fff; color: #000; }
  a { color: inherit; text-decoration: underline; }
}

/* ============================================================
   Form hardening — honeypot, inline errors, success cards
   ============================================================ */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-input.has-error,
.form-textarea.has-error,
.form-select.has-error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12);
}

.form-err {
  display: block;
  min-height: 1.1em;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #c0392b;
  font-weight: 500;
}
.form-err:empty { display: none; }

.form-success-card {
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg, 14px);
  background: var(--color-bg-elevated, #fff);
  border: 1px solid var(--color-border, rgba(0,0,0,0.08));
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}
.form-success-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl, 1.5rem);
  margin: 0 0 .5rem;
  color: var(--color-primary, #C4644A);
}
.form-success-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Inline button spinner (used by submit buttons) */
.btn-spinner {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.55em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: rwj-spin 0.75s linear infinite;
  vertical-align: -0.15em;
}
@keyframes rwj-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation: none; }
}

/* ============================== CART ICON ============================== */
.nav-cart-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.nav-cart-btn:hover { background: var(--color-surface); border-color: var(--color-primary); }
.nav-cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ============================== CART PAGE ============================== */
.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }

.cart-empty {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.cart-empty-icon { font-size: 3rem; margin-bottom: var(--space-4); }

.cart-line-items {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.cart-line-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.cart-line-item:last-child { border-bottom: none; }
.cart-line-info { min-width: 0; }
.cart-line-info h4 { margin: 0 0 0.25rem; font-size: 1rem; word-break: break-word; }
.cart-line-sub {
  margin: 0; color: var(--color-text-muted); font-size: 0.875rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-line-remove {
  background: none; border: none; padding: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem; cursor: pointer;
  margin-top: 0.5rem; text-decoration: underline;
}
.cart-line-remove:hover { color: var(--color-primary); }
.cart-line-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cart-line-qty button {
  background: var(--color-surface); border: none;
  width: 32px; height: 36px; cursor: pointer;
  font-size: 1.1rem; color: var(--color-text);
}
.cart-line-qty input {
  width: 44px; height: 36px; border: none; text-align: center;
  background: var(--color-bg); color: var(--color-text);
  font-weight: 600;
  -moz-appearance: textfield;
}
.cart-line-qty input::-webkit-outer-spin-button,
.cart-line-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-line-price { font-weight: 700; font-size: 1.05rem; min-width: 80px; text-align: right; }

@media (max-width: 600px) {
  .cart-line-item {
    grid-template-columns: 1fr auto;
    grid-template-areas: "info price" "qty qty";
    gap: var(--space-3);
    padding: var(--space-4);
  }
  .cart-line-info { grid-area: info; }
  .cart-line-price { grid-area: price; align-self: start; }
  .cart-line-qty { grid-area: qty; justify-self: start; }
}

.cart-summary {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  position: relative;
  z-index: 1;
}
@media (min-width: 901px) {
  .cart-summary { position: sticky; top: 100px; }
}
.cart-summary h3 { margin: 0 0 var(--space-4); }
.cart-summary-row {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--color-text);
}
.cart-summary-divider { height: 1px; background: var(--color-border); margin: var(--space-2) 0; }
.cart-summary-total { font-size: 1.15rem; font-weight: 700; }
.cart-summary-trust {
  margin-top: var(--space-4);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  font-size: 0.78rem; color: var(--color-text-muted);
  justify-content: center;
}

/* ============================== TRUST / AUTHORITY / CREDIBILITY ============ */
.trust-badge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin: var(--space-6) 0;
}
.trust-badge {
  display: flex; gap: var(--space-3); align-items: center;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.trust-badge svg { color: var(--color-primary); flex-shrink: 0; }
.trust-badge strong { display: block; font-size: 0.92rem; }
.trust-badge span { display: block; font-size: 0.78rem; color: var(--color-text-muted); }

.authority-row {
  display: flex; gap: var(--space-4); align-items: center;
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(196,100,74,0.07), transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin: var(--space-6) 0;
}
.authority-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.authority-copy strong { display: block; margin-bottom: 0.25rem; }
.authority-copy span { color: var(--color-text-muted); font-size: 0.9rem; }

.credibility-row { margin: var(--space-6) 0; }
.credibility-title { margin-bottom: var(--space-4); }
.credibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}
.credibility-card {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.credibility-stars { color: var(--color-gold, #d4a73f); margin-bottom: var(--space-2); }
.credibility-quote { font-style: italic; margin: 0 0 var(--space-3); font-size: 0.92rem; }
.credibility-name { font-size: 0.82rem; color: var(--color-text-muted); }

.share-row {
  display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0 var(--space-3);
}
.share-row-label { font-weight: 600; }
.share-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.referral-row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(196,100,74,0.10), rgba(196,100,74,0.03));
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-xl);
  margin: var(--space-3) 0 var(--space-6);
}
@media (max-width: 700px) { .referral-row { grid-template-columns: 1fr; } }
.referral-row p { margin: 0.3rem 0 0; color: var(--color-text-muted); font-size: 0.9rem; }
.referral-link {
  display: flex; gap: var(--space-2);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.4rem;
}
.referral-link input {
  flex: 1; min-width: 200px; border: none; background: transparent;
  padding: 0.4rem 0.6rem; color: var(--color-text); font-size: 0.85rem;
}

/* Upsell strip on cart/checkout */
.upsell-section { margin: var(--space-8) 0 var(--space-6); }
.upsell-section h3 { margin-bottom: var(--space-4); }
.upsell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.upsell-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.upsell-card h4 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.upsell-card p { margin: 0; color: var(--color-text-muted); font-size: 0.82rem; }
.upsell-price { font-weight: 700; margin-top: var(--space-2); color: var(--color-primary); }

/* ============================== CHECKOUT PAGE ============================== */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { order: -1; }
}
.checkout-form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}
.checkout-form-card h3 { margin: 0 0 var(--space-4); }
.checkout-mount-inline { min-height: 380px; }
.checkout-secure-row {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted); font-size: 0.85rem;
}
.checkout-secure-row svg { color: var(--color-success, #2e7d4f); }

.checkout-upsell-strip {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}
.checkout-upsell-strip strong { display: block; margin-bottom: var(--space-3); }
.checkout-upsell-list { display: flex; flex-direction: column; gap: var(--space-2); }
.checkout-upsell-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3); background: var(--color-bg);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.checkout-upsell-card span { color: var(--color-primary); font-weight: 700; margin-left: 0.5rem; }

.checkout-summary {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
@media (min-width: 1024px) {
  .checkout-summary { position: sticky; top: 100px; }
}
.checkout-summary h3 { margin: 0 0 var(--space-4); }
.checkout-summary-items { margin-bottom: var(--space-3); }
.checkout-summary-row {
  display: flex; justify-content: space-between; padding: 0.4rem 0;
  font-size: 0.92rem;
}
.checkout-summary-row small { color: var(--color-text-muted); margin-left: 0.3rem; }
.checkout-summary-total { font-size: 1.15rem; font-weight: 700; padding-top: 0.6rem; }
.checkout-discount-field {
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.checkout-discount-field label { display: block; font-size: 0.82rem; margin-bottom: 0.3rem; color: var(--color-text-muted); }
.checkout-discount-field input {
  flex: 1; padding: 0.5rem 0.7rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text);
}
.checkout-faq { margin-top: var(--space-6); }

/* ============================== THANK YOU PAGE ============================== */
.thankyou-hero {
  background: linear-gradient(180deg, rgba(196,100,74,0.10), transparent);
  padding-top: var(--space-12) !important;
}
.thankyou-confetti {
  font-size: 3rem;
  display: inline-block;
  animation: rwj-pop 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes rwj-pop {
  0% { transform: scale(0.4) rotate(-20deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
.thankyou-hero h1 { margin-top: var(--space-4); font-size: clamp(1.75rem, 4vw, 2.75rem); }
.thankyou-lede {
  font-size: 1.1rem; color: var(--color-text-muted);
  max-width: 36rem; margin: var(--space-3) auto 0;
}
.thankyou-receipt { margin-top: var(--space-4); color: var(--color-text-muted); font-size: 0.92rem; }

.thankyou-downloads {
  display: flex; flex-direction: column; gap: var(--space-3);
  margin-top: var(--space-4);
}
.thankyou-download-card {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.thankyou-download-card p { margin: 0.3rem 0 0; color: var(--color-text-muted); font-size: 0.88rem; }
@media (max-width: 600px) { .thankyou-download-card { flex-direction: column; align-items: stretch; } }

.thankyou-next-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.thankyou-next-card {
  padding: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.thankyou-next-tag {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 9999px;
  background: var(--color-primary); color: #fff;
  margin-bottom: var(--space-3);
}
.thankyou-next-card h3 { margin: 0 0 var(--space-2); font-size: 1.1rem; }
.thankyou-next-card p { color: var(--color-text-muted); font-size: 0.9rem; }
.thankyou-next-card form input { width: 100%; }

.thankyou-referral {
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(196,100,74,0.10), rgba(196,100,74,0.03));
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-xl);
}
.thankyou-referral h3 { margin: 0 0 var(--space-2); }
.thankyou-referral .referral-link { margin-top: var(--space-3); }

/* ============================== ACCOUNT ORDERS ============================== */
.account-order-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.account-order-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-3);
}
.account-order-head strong { margin-right: var(--space-3); }
.account-order-items { list-style: none; padding: 0; margin: 0; }
.account-order-items li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0; border-top: 1px solid var(--color-border);
}
.account-order-items li:first-child { border-top: none; }

/* ============================== SHOP V2 ============================== */
.shop-hero {
  padding: var(--space-12) 0 var(--space-8);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}
.shop-hero-inner {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-8); align-items: center;
}
.shop-hero-eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.shop-hero-copy h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 var(--space-4); line-height: 1.1; }
.shop-hero-copy p { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: var(--space-5); max-width: 640px; }
.shop-hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-5);
  font-size: 0.9rem; color: var(--color-text);
}
.shop-hero-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.shop-hero-trust svg { color: var(--color-success); flex-shrink: 0; }
.shop-hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
  background: var(--color-bg); padding: var(--space-5); border-radius: var(--radius-lg);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-md);
}
.shop-hero-stats > div { text-align: center; }
.shop-hero-stats strong { display: block; font-size: 1.6rem; color: var(--color-primary); font-weight: 700; }
.shop-hero-stats span { font-size: 0.78rem; color: var(--color-text-muted); }
@media (max-width: 768px) {
  .shop-hero-inner { grid-template-columns: 1fr; }
  .shop-hero-stats { order: -1; }
}

.shop-toolbar {
  background: var(--color-bg); border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}
.shop-toolbar-inner {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
}
.shop-search {
  flex: 1 1 280px; min-width: 220px; position: relative;
  display: flex; align-items: center;
}
.shop-search svg { position: absolute; left: 12px; color: var(--color-text-muted); pointer-events: none; }
.shop-search input {
  width: 100%; padding: 0.6rem 0.8rem 0.6rem 2.4rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface); font-size: 0.95rem; color: var(--color-text);
}
.shop-search input:focus { outline: 2px solid var(--color-primary); outline-offset: -1px; }
.shop-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.shop-pill {
  padding: 0.45rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); cursor: pointer; font-size: 0.85rem; font-weight: 500;
  transition: all 0.15s;
}
.shop-pill:hover { border-color: var(--color-primary); }
.shop-pill.active {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}
.shop-controls select {
  padding: 0.5rem 0.8rem; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); background: var(--color-surface);
  color: var(--color-text); font-size: 0.9rem; cursor: pointer;
}
.shop-format-row {
  display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center;
  padding-top: var(--space-3); margin-top: var(--space-2);
  border-top: 1px dashed var(--color-border);
}
.shop-format-label { font-size: 0.8rem; color: var(--color-text-muted); margin-right: 0.4rem; font-weight: 600; }
.shop-chip {
  padding: 0.3rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--color-border); background: transparent;
  color: var(--color-text-muted); cursor: pointer; font-size: 0.78rem;
}
.shop-chip:hover { color: var(--color-text); border-color: var(--color-text-muted); }
.shop-chip.active { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }

.shop-results-section { padding-top: var(--space-6); }
.shop-results-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-5); font-size: 0.9rem; color: var(--color-text-muted);
}
.btn-link {
  background: none; border: none; color: var(--color-primary); cursor: pointer;
  font-size: 0.9rem; font-weight: 600; padding: 0;
}
.btn-link:hover { text-decoration: underline; }

.shop-section-block { margin-bottom: var(--space-12); }
.shop-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--space-5); padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
}
.shop-section-head h2 { margin: 0 0 0.3rem; font-size: 1.6rem; }
.shop-section-head p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }
.shop-section-count {
  font-size: 0.8rem; color: var(--color-text-muted); white-space: nowrap;
  padding: 0.3rem 0.7rem; background: var(--color-surface); border-radius: 999px;
}

.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
}

.shop-empty {
  text-align: center; padding: var(--space-12) var(--space-4);
  background: var(--color-surface); border-radius: var(--radius-lg);
}
.shop-empty-icon { font-size: 3rem; margin-bottom: var(--space-3); opacity: 0.6; }
.shop-empty h3 { margin: 0 0 var(--space-2); }
.shop-empty p { color: var(--color-text-muted); margin-bottom: var(--space-4); }

.shop-promise {
  display: flex; gap: var(--space-4); align-items: flex-start;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark, var(--color-primary)));
  color: #fff; padding: var(--space-6); border-radius: var(--radius-lg);
  margin-top: var(--space-8);
}
.shop-promise-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.18); display: grid; place-items: center; flex-shrink: 0;
}
.shop-promise h3 { margin: 0 0 var(--space-2); color: #fff; }
.shop-promise p { margin: 0; opacity: 0.95; }

/* Product Card v2 */
.product-card.v2 {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-bg); transition: all 0.2s;
  position: relative;
}
.product-card.v2:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}
.product-card-cover {
  position: relative; aspect-ratio: 4/3;
  display: grid; place-items: center; padding: var(--space-4);
  text-align: center; overflow: hidden;
}
.product-cover-confidence {
  background: linear-gradient(135deg, #f5e8ff 0%, #e0d4ff 50%, #c8b8ff 100%);
  color: #4a2a8a;
}
.product-cover-business {
  background: linear-gradient(135deg, #fff4e0 0%, #ffe0b8 50%, #ffc88a 100%);
  color: #6b4423;
}
.product-cover-title {
  font-family: var(--font-display, serif); font-weight: 700;
  font-size: 1.05rem; line-height: 1.25; max-width: 90%;
}
.product-format-pill {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.6rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.product-pages-pill {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.85); color: #333;
  font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.product-card-badge-row {
  position: absolute; top: 10px; left: 10px; display: flex; gap: 0.3rem; z-index: 2;
  flex-wrap: wrap; max-width: calc(100% - 20px);
}
.product-card.v2 .product-format-pill { top: auto; bottom: 10px; left: 10px; }
.product-stage-badge.bestseller { background: #ff8c42; color: #fff; }
.product-stage-badge.new { background: #10b981; color: #fff; }
.product-card-body { padding: var(--space-4); flex-grow: 1; display: flex; flex-direction: column; }
.product-card-body h3 {
  font-size: 1.05rem; margin: 0 0 var(--space-2); line-height: 1.3;
  color: var(--color-text);
}
.product-rating-row {
  display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem;
  margin-bottom: var(--space-2);
}
.product-stars { color: #ffb800; letter-spacing: 1px; }
.product-rating-num { font-weight: 700; color: var(--color-text); }
.product-review-count { color: var(--color-text-muted); }
.product-subtitle {
  font-size: 0.88rem; color: var(--color-text-muted);
  line-height: 1.5; margin: 0 0 var(--space-3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price-row {
  display: flex; align-items: baseline; gap: 0.5rem; margin-top: auto; flex-wrap: wrap;
}
.product-price { font-size: 1.5rem; font-weight: 700; color: var(--color-text); }
.product-original-price { font-size: 0.95rem; color: var(--color-text-muted); text-decoration: line-through; }
.product-save-pill {
  font-size: 0.7rem; font-weight: 700; color: #16a34a;
  background: #dcfce7; padding: 0.15rem 0.5rem; border-radius: 999px;
}
.product-card-footer { padding: 0 var(--space-4) var(--space-3); }
.product-card-trust {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--color-text-muted);
}

/* ============================== PRODUCT PAGE v2 ============================== */
.pdp { padding-bottom: var(--space-12); }
.pdp .breadcrumb { padding: var(--space-4) 0; font-size: 0.85rem; }
.pdp-hero {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  padding: var(--space-6) 0 var(--space-8);
  border-bottom: 1px solid var(--color-border);
}
.pdp-hero-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-8); align-items: start;
}
@media (max-width: 900px) { .pdp-hero-grid { grid-template-columns: 1fr; } }
.pdp-cover {
  position: relative; aspect-ratio: 3/4; max-height: 480px;
  border-radius: var(--radius-lg); padding: var(--space-6);
  display: grid; place-items: center; text-align: center;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.3);
}
.pdp-cover-title {
  font-family: var(--font-display, serif); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15;
}
.pdp-cover-sub {
  position: absolute; bottom: 16px; left: 0; right: 0;
  font-size: 0.8rem; opacity: 0.75;
}
.pdp-cover-thumbs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2);
  margin-top: var(--space-3);
}
.pdp-thumb {
  aspect-ratio: 1; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); display: grid; place-items: center;
  font-size: 0.75rem; color: var(--color-text-muted); cursor: pointer;
}
.pdp-thumb:hover { border-color: var(--color-primary); }

/* Real product images */
.product-card-cover.has-image { padding: 0; background: var(--color-surface); }
.product-cover-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .product-cover-img { transform: scale(1.04); }
.pdp-cover.has-image {
  padding: 0; background: var(--color-surface); overflow: hidden;
}
.pdp-cover.has-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.pdp-cover-thumbs button.pdp-thumb {
  padding: 0; overflow: hidden; background: var(--color-surface);
  border: 2px solid var(--color-border);
}
.pdp-cover-thumbs button.pdp-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.pdp-cover-thumbs button.pdp-thumb.active { border-color: var(--color-primary); }
.pdp-cover-thumbs { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }

.pdp-badges { display: flex; gap: 0.4rem; margin-bottom: var(--space-3); flex-wrap: wrap; }
.pdp-hero-copy h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin: 0 0 var(--space-3); line-height: 1.15;
}
.pdp-rating {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; margin-bottom: var(--space-4);
}
.pdp-subhead { font-size: 1.1rem; color: var(--color-text-muted); margin: 0 0 var(--space-4); line-height: 1.5; }
.pdp-quick-bullets {
  list-style: none; padding: 0; margin: 0 0 var(--space-5);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.pdp-quick-bullets li { font-size: 0.95rem; color: var(--color-text); }

.pdp-buybox {
  background: var(--color-bg); padding: var(--space-5);
  border: 2px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.pdp-buybox-price {
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: var(--space-4);
}
.pdp-price { font-size: 2.25rem; font-weight: 800; color: var(--color-text); }
.pdp-original { font-size: 1.1rem; color: var(--color-text-muted); text-decoration: line-through; }
.pdp-save {
  font-size: 0.78rem; font-weight: 700; color: #16a34a;
  background: #dcfce7; padding: 0.2rem 0.55rem; border-radius: 999px;
}
.pdp-buybox-trust {
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 0.4rem;
  font-size: 0.83rem; color: var(--color-text-muted);
}
.pdp-social-pulse { color: #ea580c !important; font-weight: 600; margin-top: 0.3rem; }

.pdp-share {
  display: flex; align-items: center; gap: 0.4rem; margin-top: var(--space-4);
  font-size: 0.85rem; color: var(--color-text-muted); flex-wrap: wrap;
}
.pdp-share button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--color-border);
  background: var(--color-surface); cursor: pointer; font-size: 0.95rem;
  display: grid; place-items: center;
}
.pdp-share button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pdp-wishlist { width: auto !important; padding: 0 0.8rem !important; border-radius: 999px !important; font-size: 0.8rem !important; }

.pdp-glance {
  background: var(--color-surface); border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}
.pdp-glance-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3);
}
.pdp-glance-grid > div { display: flex; flex-direction: column; gap: 0.2rem; }
.pdp-glance-grid span { font-size: 0.72rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.pdp-glance-grid strong { font-size: 0.95rem; color: var(--color-text); }

.pdp-body-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: var(--space-8);
  margin-top: var(--space-8);
}
@media (max-width: 1000px) { .pdp-body-grid { grid-template-columns: 1fr; } .pdp-aside { display: none; } }
.pdp-aside-sticky { position: sticky; top: 140px; }
.pdp-section { padding: var(--space-6) 0; }
.pdp-section-alt {
  background: var(--color-surface); margin: 0 calc(-1 * var(--space-6));
  padding-left: var(--space-6); padding-right: var(--space-6);
  border-radius: var(--radius-lg);
}
.pdp-section h2 { margin: 0 0 var(--space-4); font-size: 1.5rem; }
.pdp-section h3 { margin: 0 0 var(--space-2); }
.pdp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.pdp-step {
  padding: var(--space-4); background: var(--color-bg); border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.pdp-step-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  background: var(--color-primary); color: #fff; border-radius: 50%;
  font-weight: 700; margin-bottom: var(--space-2);
}
.pdp-step h4 { margin: 0 0 0.4rem; font-size: 1rem; }
.pdp-step p { margin: 0; font-size: 0.88rem; color: var(--color-text-muted); }

.pdp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 600px) { .pdp-compare { grid-template-columns: 1fr; } }
.pdp-compare-col {
  padding: var(--space-5); border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.pdp-compare-col h4 { margin: 0 0 var(--space-3); font-size: 1.05rem; }
.pdp-compare-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.pdp-compare-col li { padding-left: 1.4rem; position: relative; font-size: 0.92rem; }
.pdp-compare-bad { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.pdp-compare-bad li::before { content: "✕"; position: absolute; left: 0; color: #dc2626; font-weight: 700; }
.pdp-compare-good { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.pdp-compare-good li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }

.pdp-authority-grid { display: grid; grid-template-columns: 88px 1fr; gap: var(--space-4); align-items: start; }
.pdp-author-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #a855f7); color: #fff;
  display: grid; place-items: center; font-size: 1.8rem; font-weight: 700;
  font-family: var(--font-display, serif);
}
.pdp-credibility { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-3); }
.pdp-credibility span {
  font-size: 0.78rem; padding: 0.3rem 0.7rem; background: var(--color-bg);
  border: 1px solid var(--color-border); border-radius: 999px;
}

.pdp-testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); }
.pdp-testimonial {
  padding: var(--space-5); background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.pdp-testimonial p { font-style: italic; margin: var(--space-2) 0; line-height: 1.6; }
.pdp-testimonial strong { font-size: 0.88rem; color: var(--color-text-muted); font-weight: 600; }

.pdp-bundle {
  display: grid; grid-template-columns: 1fr auto 1fr auto; gap: var(--space-4); align-items: center;
  padding: var(--space-4); background: var(--color-bg); border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}
@media (max-width: 700px) { .pdp-bundle { grid-template-columns: 1fr; } .pdp-bundle-plus { display: none; } }
.pdp-bundle-item { display: flex; flex-direction: column; gap: 0.3rem; }
.pdp-bundle-item strong { font-size: 0.95rem; }
.pdp-bundle-item span { color: var(--color-text-muted); font-size: 0.85rem; }
.pdp-bundle-plus { font-size: 1.5rem; color: var(--color-text-muted); }
.pdp-bundle-cta { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }
.pdp-bundle-total { font-size: 0.9rem; }

.pdp-guarantee {
  display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: var(--space-6); border-radius: var(--radius-lg);
  color: #78350f;
}
.pdp-guarantee-badge {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  flex-shrink: 0; padding: var(--space-3); background: rgba(255,255,255,0.55);
  border-radius: 50%; width: 110px; height: 110px; justify-content: center;
}
.pdp-guarantee-badge span { font-size: 0.8rem; font-weight: 700; text-align: center; line-height: 1.1; }
.pdp-guarantee h3 { color: #78350f; }
.pdp-guarantee p { margin: 0; line-height: 1.6; }

.pdp-final-cta {
  text-align: center; padding: var(--space-8) var(--space-4);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark, var(--color-primary)));
  color: #fff; border-radius: var(--radius-lg);
}
.pdp-final-cta h2 { color: #fff; }
.pdp-final-cta p { opacity: 0.92; margin-bottom: var(--space-5); }
.pdp-final-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-4); }
.pdp-final-cta .btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.cta-trust-row {
  display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap;
  font-size: 0.82rem; opacity: 0.9;
}

.pdp-related, .pdp-recent { padding: var(--space-8) 0; border-top: 1px solid var(--color-border); }
.pdp-related h2, .pdp-recent h3 { margin-bottom: var(--space-5); }
.pdp-recent-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); }
.pdp-recent-card {
  display: flex; flex-direction: column; gap: 0.4rem; text-decoration: none;
  color: var(--color-text); padding: var(--space-3); border-radius: var(--radius-md);
  border: 1px solid var(--color-border); transition: all 0.15s;
}
.pdp-recent-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.pdp-recent-cover {
  aspect-ratio: 4/3; border-radius: var(--radius-sm); display: grid; place-items: center;
  padding: 0.6rem; font-size: 0.78rem; font-weight: 600; text-align: center;
}
.pdp-recent-card strong { font-size: 0.85rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdp-recent-card span { font-size: 0.85rem; color: var(--color-primary); font-weight: 700; }

/* Mobile sticky buy bar */
.pdp-mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--color-bg); border-top: 1px solid var(--color-border);
  padding: 0.7rem 1rem; gap: var(--space-3); align-items: center;
  box-shadow: 0 -8px 24px -8px rgba(0,0,0,0.2);
}
.pdp-mobile-price { display: flex; flex-direction: column; }
.pdp-mobile-price strong { font-size: 1.2rem; }
.pdp-mobile-original { font-size: 0.78rem; color: var(--color-text-muted); text-decoration: line-through; }
.pdp-mobile-bar .btn { flex: 1; }
@media (max-width: 1000px) {
  .pdp-mobile-bar { display: flex; }
  .pdp { padding-bottom: 80px; }
}

/* Real-stats UI */
.product-rating-row.product-rating-empty { color: var(--color-text-muted); font-size: 0.82rem; font-style: italic; }
.pdp-testimonials-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.pdp-testimonials-head h2 { margin: 0; }
.pdp-leave-review { background: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface)); border: 1px dashed color-mix(in srgb, var(--color-primary) 40%, transparent); border-radius: var(--radius-lg); padding: var(--space-4); }
/* Leave room above the mobile pdp bottom bar so it never covers content */
@media (max-width: 900px) { .pdp { padding-bottom: 84px; } }

/* ============================================================
   MOBILE AUDIT — appended fixes for shop / cart / checkout / PDP
   Self-contained block. No existing rules modified.
   ============================================================ */

/* Header — hide secondary CTAs on tablet/mobile (already in mobile drawer) */
@media (max-width: 1024px) {
  .hide-on-mobile { display: none !important; }
  .nav-actions { gap: 0.5rem; }
  .header-inner { padding-inline: 1rem; gap: 0.5rem; }
  .logo { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  .logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--text-base);
  }
  .logo svg, .logo .logo-mark { flex: 0 0 auto; width: 2rem; height: 2rem; }
  .logo .logo-full { height: 2rem; }
}
@media (max-width: 380px) {
  .logo-text { display: none; } /* keep just the mark on tiny phones */
}

/* Container padding tightening on small screens */
@media (max-width: 600px) {
  .container { padding-inline: 1rem; }
}
@media (max-width: 380px) {
  .container { padding-inline: 0.75rem; }
}

/* iOS Safari: prevent auto-zoom on focus by ensuring inputs are 16px+ */
@media (max-width: 768px) {
  .shop-search input,
  #shop-search-input,
  #shop-sort,
  #checkout-discount,
  .cart-line-qty input,
  .cart-line-qty button {
    font-size: 16px;
  }
}

/* Allow long flex/grid children to shrink instead of overflowing */
@media (max-width: 768px) {
  .shop-toolbar-inner,
  .shop-section-head,
  .checkout-upsell-card,
  .pdp-buybox,
  .cart-line,
  .pdp-mobile-bar { min-width: 0; }
  .shop-toolbar-inner > *,
  .shop-section-head > *,
  .checkout-upsell-card > * { min-width: 0; }
}

/* Shop toolbar — full-width stacked on mobile */
@media (max-width: 768px) {
  .shop-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .shop-search { flex: 1 1 100%; }
  .shop-pills {
    flex: 1 1 100%;
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .shop-pills::-webkit-scrollbar { display: none; }
  .shop-controls { flex: 1 1 100%; }
  .shop-controls select,
  #shop-sort { width: 100%; min-height: 44px; }
  .shop-pill,
  .shop-chip {
    min-height: 40px;
    padding: 0.5rem 0.9rem;
    white-space: nowrap;
  }
  .shop-format-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .shop-format-row::-webkit-scrollbar { display: none; }
}

/* Shop section head — wrap nicely */
@media (max-width: 600px) {
  .shop-section-head {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .shop-section-head h2 { font-size: 1.25rem; }
  .shop-section-head p { font-size: 0.875rem; }
  .shop-section-count { font-size: 0.75rem; }
}

/* Shop grid — never demand more width than the viewport */
.shop-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)) !important;
}
@media (max-width: 480px) {
  .product-card-body h3 { font-size: 1rem; }
  .product-card-body { padding: 0.875rem; }
  .product-card-footer { padding: 0 0.875rem 0.875rem; }
  .product-card-trust { font-size: 0.7rem; padding: 0.5rem 0.875rem; }
}

/* Shop hero stats — tighter on phones */
@media (max-width: 480px) {
  .shop-hero-stats {
    gap: 0.5rem;
    padding: 0.75rem;
  }
  .shop-hero-stats strong { font-size: 1.25rem; }
  .shop-hero-stats span { font-size: 0.7rem; }
}

/* Cart — bigger tap targets on qty controls */
@media (max-width: 600px) {
  .cart-line-qty { gap: 0.25rem; }
  .cart-line-qty button {
    min-width: 44px;
    min-height: 44px;
    border-radius: 0.5rem;
  }
  .cart-line-qty input {
    min-height: 44px;
    width: 3rem;
    text-align: center;
  }
  .cart-line-price,
  .cart-line-total { min-width: 0; }
}

/* Checkout — stack discount input + Apply button, ease upsell card */
@media (max-width: 600px) {
  .checkout-discount-row,
  .checkout-discount {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .checkout-discount-row > input,
  #checkout-discount {
    flex: 1 1 100%;
    min-height: 44px;
  }
  .checkout-discount-row > button,
  .checkout-discount > button {
    flex: 1 1 100%;
    min-height: 44px;
  }
  .checkout-upsell-card {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem;
  }
  .checkout-upsell-card > *:last-child { width: 100%; }
}

/* Stripe embedded iframe — never escape its container */
.checkout-mount-inline,
.checkout-mount-inline > * {
  max-width: 100% !important;
  min-width: 0;
}
.checkout-mount-inline iframe { max-width: 100% !important; }

/* PDP — phone-friendly sizing */
@media (max-width: 768px) {
  .pdp-hero-grid,
  .pdp-body-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .pdp-aside { display: none; } /* sticky aside replaced by mobile bar */
}
@media (max-width: 600px) {
  .pdp h1 { font-size: 1.5rem; line-height: 1.2; }
  .pdp-subhead { font-size: 0.95rem; }
  .pdp-cover { padding: 1.25rem; min-height: 220px; }
  .pdp-cover-title { font-size: 1.25rem; }
  .pdp-cover-thumbs { gap: 0.4rem; }
  .pdp-buybox { padding: 1rem; }
  .pdp-price { font-size: 1.75rem; }
  .pdp-section { padding: 1rem; margin-bottom: 1rem; }
  .pdp-section h2 { font-size: 1.15rem; }
  .pdp-glance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem;
  }
  .pdp-compare { grid-template-columns: 1fr; gap: 0.75rem; }
  .pdp-steps { grid-template-columns: 1fr; gap: 0.75rem; }
  .pdp-bundle { flex-wrap: wrap; gap: 0.5rem; }
  .pdp-authority-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .pdp-author-avatar { width: 56px; height: 56px; font-size: 1rem; }
  .pdp-guarantee { flex-wrap: wrap; gap: 0.75rem; padding: 1rem; }
  .pdp-guarantee-badge { width: 64px; height: 64px; }
  .pdp-guarantee-badge svg { width: 32px; height: 32px; }
  .pdp-final-actions { flex-direction: column; gap: 0.5rem; }
  .pdp-final-actions .btn { width: 100%; }
  .pdp-share { flex-wrap: wrap; gap: 0.4rem; }
  .breadcrumb { font-size: 0.8rem; flex-wrap: wrap; }
}

/* PDP mobile sticky bar — proper tap targets, lift above cookie banner */
@media (max-width: 1000px) {
  .pdp-mobile-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    padding-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0px));
    min-height: 56px;
    z-index: 50;
  }
  .pdp-mobile-bar .btn { min-height: 44px; padding-inline: 1rem; }
  /* Ensure the page has room so the sticky bar never overlaps the final CTA */
  #page-product { padding-bottom: 80px; }
}

/* Cookie banner — keep it from covering primary CTAs on mobile */
@media (max-width: 600px) {
  .cookie-banner {
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.8125rem;
    gap: 0.5rem;
  }
  /* When cookie banner is visible, lift the PDP sticky bar above it */
  body:has(.cookie-banner:not([hidden])) .pdp-mobile-bar {
    bottom: 76px;
  }
  /* Make sure the cart/checkout pages don't have content trapped under the banner */
  #page-cart, #page-checkout { padding-bottom: 96px; }
}

/* Clickable product cards */
.product-card.is-clickable { cursor: pointer; }
.product-card.is-clickable:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

/* ===== Leave-a-Review star rating widget ===== */
.star-rating { display: inline-flex; gap: 4px; }
.star-rating .star-btn {
  background: none; border: none; cursor: pointer; padding: 4px;
  font-size: 2rem; line-height: 1; color: color-mix(in srgb, var(--color-text-soft) 40%, transparent);
  transition: color 0.15s ease, transform 0.15s ease;
}
.star-rating .star-btn:hover { transform: scale(1.1); }
.star-rating .star-btn.active { color: #f5a623; }
.star-rating .star-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }
