/* ===========================
   TYME BOXED — DESIGN SYSTEM
   Inspired by Mave Health
   =========================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Hanken+Grotesk:wght@300;400;500;600;700&display=swap');


/* --- Design Tokens --- */
:root {
  /* Colors */
  --bg-primary: #F5F0EB;
  --bg-white: #FFFFFF;
  --bg-dark: #1A1A1A;
  --bg-card: #F0EBE4;
  --bg-option: #F5F1EC;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5550;
  --text-muted: #8A8580;
  --text-light: #B0ABA5;
  --accent-gold: #C4933F;
  --accent-gold-hover: #B3842F;
  --accent-gold-bg: #C4933F1A;
  --accent-gold-light: #D4AF37;
  --success: #4A9E6E;
  --fail: #C45C5C;
  --border: #E0DBD5;
  --border-light: #EAE5DF;

  /* Typography */
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Sizing */
  --max-width: 1200px;
  --max-width-narrow: 800px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --duration-fast: 300ms;
  --duration-normal: 500ms;
  --duration-slow: 800ms;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 100px;
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}


/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

.accent {
  color: var(--accent-gold);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: var(--space-sm);
}


/* ===========================
   NAVIGATION — Mave Style
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.navbar.scrolled {
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border-light);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* Center nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links li a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.5;
  transition: opacity var(--duration-fast) var(--ease-smooth);
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  opacity: 1;
}

/* Gold CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-gold-light);
  color: var(--text-primary) !important;
  opacity: 1 !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--duration-fast) var(--ease-smooth), transform var(--duration-fast) var(--ease-smooth);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.nav-cta svg {
  width: 12px;
  height: 12px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-smooth);
}


/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gold);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--radius-round);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  padding: 1rem 2rem;
  border-radius: var(--radius-round);
  font-size: 1rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}


/* ===========================
   SCROLL REVEAL ANIMATIONS
   Mave-style: subtle, slow, refined
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-smooth),
    transform var(--duration-slow) var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}

.reveal-delay-4 {
  transition-delay: 400ms;
}


/* ===========================
   HERO SECTION
   =========================== */
.hero {
  padding: calc(var(--space-lg) + 72px) 0 var(--space-xl);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero .hero-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Row: headline below the image (same style as problem section) */
.hero-text-row {
  margin-top: var(--space-lg);
  text-align: center;
  padding: 0 var(--space-lg);
}

.hero-headline {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-weight: 700;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text-secondary);
  margin: 0;
  max-width: 480px;
  justify-self: end;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
}

.hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-horizontal {
  width: 100%;
}

.hero-image-horizontal img {
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
  display: block;
}

.hero-float-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--bg-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-float-card .icon {
  font-size: 1.5rem;
}

.hero-float-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: none;
}

.hero-float-card strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}


/* ===========================
   PROBLEM — SCROLL NARRATIVE
   =========================== */
.problem {
  padding: var(--space-sm) 0 var(--space-xs);
}

.problem-slide {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xs) var(--space-sm);
}

.problem-slide h2 {
  max-width: 700px;
  margin: 0 auto var(--space-sm);
}

.problem-slide p {
  max-width: 550px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--accent-gold);
  margin-bottom: var(--space-sm);
}

.subtle-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-gold);
  font-weight: 500;
  margin-top: var(--space-sm);
  transition: gap var(--duration-fast) var(--ease-smooth);
}

.subtle-link:hover {
  gap: 0.6rem;
}


/* ===========================
   WE ARE CHANGING THAT
   =========================== */
.changing-section {
  padding: var(--space-3xl) 0;
}

.changing-slide {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.changing-slide h2 {
  max-width: 700px;
  margin: 0 auto var(--space-sm);
}

.changing-slide p {
  max-width: 550px;
  margin: 0 auto;
  font-size: 1.1rem;
}


/* ===========================
   INTRODUCING TYME BOXED
   =========================== */
.intro-section {
  padding: var(--space-xl) 0;
}

.intro-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Left: Independent image with float card (same as hero) */
.intro-image-wrapper {
  position: relative;
  width: 100%;
}

.intro-image {
  max-height: 42vh;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right: Text content block */
.intro-content {
  padding: var(--space-sm) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-heading {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.intro-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  max-width: none;
}

.intro-features {
  list-style: none;
  margin-bottom: var(--space-md);
  padding: 0;
}

.intro-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border-light);
}

.intro-feature:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.intro-feature-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-primary);
  flex-shrink: 0;
  font-weight: 600;
}

.intro-feature strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.intro-feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  max-width: none;
  line-height: 1.45;
}

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

.btn-intro-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-round);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-intro-primary:hover {
  background: #333;
  transform: translateY(-2px);
}

.intro-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-gold);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.intro-link:hover {
  color: var(--accent-gold-hover);
}


/* ===========================
   HOW IT WORKS
   =========================== */
.how-it-works {
  padding: var(--space-3xl) 0;
}

.how-it-works-header,
.science-header,
.comparison-header,
.testimonials-header,
.pricing-header,
.faq-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.how-it-works-header p,
.science-header p,
.comparison-header p,
.testimonials-header p,
.pricing-header p {
  margin: var(--space-sm) auto 0;
}

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

.step {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-smooth), box-shadow var(--duration-fast) var(--ease-smooth);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gold-bg);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.step h3 {
  margin-bottom: var(--space-xs);
}

.step p {
  font-size: 0.95rem;
  margin: 0 auto;
}


/* ===========================
   PRODUCT SHOWCASE — Dark
   =========================== */
.product-showcase {
  background: var(--bg-dark);
  padding: var(--space-3xl) 0;
  color: #fff;
}

.product-showcase .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.product-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.product-image-wrapper img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-showcase .section-label {
  color: var(--accent-gold);
}

.product-showcase h2 {
  color: #fff;
}

.product-showcase p {
  color: #B0ABA5;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.spec-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.spec-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.spec-item h4 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
}

.spec-item p {
  color: #8A8580;
  font-size: 0.9rem;
  max-width: none;
}


/* ===========================
   COMPARISON TABLE
   =========================== */
.comparison {
  padding: var(--space-3xl) 0;
}

.comparison-table {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.comparison-row.header {
  background: var(--bg-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.comparison-row .feature {
  font-weight: 500;
}

.comparison-row .status {
  text-align: center;
  font-size: 0.9rem;
}

.comparison-row .tyme-col {
  background: var(--accent-gold-bg);
  border-radius: var(--radius-sm);
}

.comparison-row .fail {
  color: var(--fail);
}

.comparison-row .pass {
  color: var(--success);
}


/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials {
  padding: var(--space-3xl) 0;
}

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

.testimonial-card {
  background: var(--bg-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
}

blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gold-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.testimonial-author .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-author .role {
  color: var(--text-muted);
  font-size: 0.85rem;
}


/* ===========================
   PRICING
   =========================== */
.pricing {
  padding: var(--space-3xl) 0;
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.pricing-badge {
  display: inline-block;
  background: var(--accent-gold-bg);
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-round);
  margin-bottom: var(--space-md);
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: var(--space-xs);
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.price-display {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-md);
}

.price-original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--text-primary);
}

.price-current .currency {
  font-size: 1.8rem;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-lg);
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features .check {
  color: var(--success);
  font-weight: 700;
}

.pricing-guarantee {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* ===========================
   FAQ
   =========================== */
.faq {
  padding: var(--space-3xl) 0;
}

.faq-container {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  transition: transform var(--duration-fast) var(--ease-smooth);
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-smooth);
}

.faq-answer-inner {
  padding-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}


/* ===========================
   FINAL CTA
   =========================== */
.final-cta {
  padding: var(--space-3xl) 0;
  text-align: center;
  background: var(--bg-dark);
  color: #fff;
}

.final-cta h2 {
  color: #fff;
  max-width: 700px;
  margin: 0 auto var(--space-md);
}

.final-cta p {
  color: #B0ABA5;
  margin: 0 auto var(--space-lg);
  max-width: 600px;
  font-size: 1.1rem;
}


/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  height: 135px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  gap: var(--space-2xl);
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: none;
  margin: 0;
}


/* ===========================
   LEGAL PAGES (Privacy, Terms)
   =========================== */
.legal-page {
  padding-top: 100px;
  padding-bottom: var(--space-3xl);
  min-height: 100vh;
}

.legal-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.legal-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

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

.legal-section.legal-highlight {
  background: #F0F7E8;
  border-left: 4px solid #458500;
  padding: var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.legal-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: var(--space-md) 0 var(--space-sm);
}

.legal-section p {
  margin-bottom: var(--space-sm);
  font-size: 1rem;
  line-height: 1.8;
  max-width: none;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-list {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
}

.legal-list li {
  margin-bottom: var(--space-xs);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.legal-list strong {
  color: var(--text-primary);
}


/* ===========================
   SCIENCE PAGE — Sticky Sidebar
   =========================== */
.science-page {
  padding-top: 100px;
  padding-bottom: var(--space-3xl);
}

.science-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  align-items: start;
}

.science-sidebar {
  position: sticky;
  top: 120px;
}

.science-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.science-sidebar-nav a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  border-left: 3px solid transparent;
  transition: all var(--duration-fast) var(--ease-smooth);
  opacity: 0.65;
}

.science-sidebar-nav a.active {
  color: var(--accent-gold);
  border-left-color: var(--accent-gold);
  opacity: 1;
  font-weight: 500;
}

.science-sidebar-nav a:hover {
  opacity: 1;
}

.science-content {
  max-width: 720px;
}

.science-section {
  padding-bottom: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

.science-section:last-child {
  margin-bottom: 0;
}

.science-section h2 {
  margin-bottom: var(--space-lg);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.science-section p {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}

.science-section .lead-text {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.8;
}

/* Bullet points styled like Mave */
.science-bullets {
  margin: var(--space-md) 0;
  padding-left: var(--space-md);
}

.science-bullets li {
  padding: 0.5rem 0;
  padding-left: 0.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  position: relative;
}

.science-bullets li strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

/* Quote block */
.science-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--accent-gold);
  line-height: 1.5;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: var(--space-xl) 0;
  max-width: none;
}

/* Brain image */
.science-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-lg) 0;
  background: #000;
  max-width: 320px;
}

.science-image img {
  width: 100%;
  object-fit: cover;
}

/* Expert references */
.science-reference {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  padding-top: var(--space-xs);
}

.science-reference a {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* Additional resources - Mave-style cards */
.science-additional-resources {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

.science-additional-resources h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 400;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.science-resources-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md) !important;
}

.science-resources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.science-resource-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: #F7F4EC;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: background var(--duration-fast) var(--ease-smooth);
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

.science-resource-card:hover {
  background: #F0EBE2;
}

.science-resource-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.science-resource-icon svg {
  display: block;
}

.science-resource-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
  min-width: 0;
  font-weight: 400;
}

.science-resource-arrow {
  flex-shrink: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.science-resource-arrow svg {
  display: block;
}

/* Science CTA at bottom */
/* Science Videos - Also Watch */
.science-videos-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.science-videos-inline {
  margin-top: var(--space-xl);
}

.science-videos-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

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

.science-video-card {
  display: block;
  color: inherit;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.science-video-card:hover {
  transform: translateY(-4px);
}

.science-video-thumbnail {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-dark);
}

.science-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.science-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  pointer-events: none;
}

.science-video-play svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.science-video-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-sm);
  margin-bottom: 0;
  line-height: 1.4;
  max-width: none;
}

/* Responsive: stack videos on smaller screens */
@media (max-width: 768px) {
  .science-videos-grid {
    grid-template-columns: 1fr;
  }
}

.science-cta {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  margin-top: var(--space-xl);
}

.science-cta h2 {
  margin-bottom: var(--space-md);
}

.science-cta p {
  margin: 0 auto var(--space-lg);
}


/* ===========================
   QUIZ PAGE
   =========================== */
.quiz-page {
  padding-top: 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.quiz-container {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-lg);
  flex: 1;
  width: 100%;
  overflow: hidden;
}

/* Widen container when results page is active */
.quiz-container.results-active {
  max-width: 1100px;
}

/* Progress bar */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.quiz-progress-bar {
  flex: 1;
  height: 8px;
  background: #D9D9D9;
  border-radius: 4px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: 4px;
  transition: width var(--duration-normal) var(--ease-smooth);
}

.quiz-progress-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Slider for horizontal transitions */
.quiz-slider {
  position: relative;
}

.quiz-slide {
  display: none;
}

.quiz-slide.active {
  display: block;
  animation: quizSlideIn var(--duration-normal) var(--ease-out);
}

@keyframes quizSlideIn {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes quizSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-60px);
  }
}

.quiz-slide h2 {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.quiz-slide h2 .accent {
  color: var(--text-primary);
}

.quiz-slide .quiz-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* Option cards — Mave-style horizontal bars */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-lg);
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 20px;
  background: #EFECE6;
  border: 1.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  font-size: 1rem;
}

.quiz-option:hover {
  background: #E8E3DC;
}

.quiz-option.selected {
  border-color: transparent;
  background: #E5E0D8;
}

/* Checkbox for multi-select */
.quiz-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.quiz-option.selected .quiz-checkbox {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.quiz-option.selected .quiz-checkbox::after {
  content: '✓';
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Radio — styled as square checkbox to match Mave */
.quiz-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.quiz-option.selected .quiz-radio {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.quiz-option.selected .quiz-radio::after {
  content: '✓';
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Next button */
.quiz-next {
  display: block;
  width: 100%;
  padding: var(--space-md);
  background: var(--accent-gold-light);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  opacity: 0.4;
  pointer-events: none;
}

.quiz-next.enabled {
  opacity: 1;
  pointer-events: all;
}

.quiz-next.enabled:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
}

/* ---- Science Transition ---- */
.quiz-transition {
  display: none;
  text-align: center;
  padding: var(--space-3xl) 0;
}

.quiz-transition.active {
  display: block;
  animation: quizSlideIn var(--duration-slow) var(--ease-smooth);
}

.quiz-transition-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.quiz-transition-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.quiz-transition-inner p {
  max-width: 520px;
  margin: 0 auto var(--space-sm);
  font-size: 1rem;
  line-height: 1.8;
}

.quiz-transition-loader {
  width: 200px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: var(--space-lg) auto 0;
  overflow: hidden;
}

.quiz-transition-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gold);
  border-radius: 2px;
  animation: transitionLoad 2.5s var(--ease-out) forwards;
}

@keyframes transitionLoad {
  0% {
    width: 0%;
  }

  60% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}

/* ---- Result Page — Mave-style split layout ---- */
.quiz-result {
  display: none;
}

.quiz-result.active {
  display: block;
  animation: quizSlideIn var(--duration-slow) var(--ease-smooth);
}

/* Override narrow quiz-container for results — go full-width */
.quiz-result-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.quiz-result-left {
  display: flex;
  flex-direction: column;
}

.quiz-result-left h2 {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.3;
}

.quiz-result-left p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.quiz-result-right img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
}

.quiz-result-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.quiz-result-header h2 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.quiz-result-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* Stats heading */
.result-stats-heading {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

/* Stats — Mave-style horizontal rows */
.quiz-result-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.result-stat-card {
  display: flex;
  align-items: center;
  background: var(--bg-option);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.result-stat-card:hover {
  transform: translateY(-2px);
}

.result-stat-chevron {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-right: var(--space-md);
  flex-shrink: 0;
}

.result-stat-label {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.result-stat-pct {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: var(--accent-gold);
  font-weight: 600;
  flex-shrink: 0;
}

.result-stats-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* Science Hook callout */
.quiz-result-science {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--bg-card);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  border-left: 4px solid var(--accent-gold);
}

.quiz-result-science-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.quiz-result-science p {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: none;
}

/* CTA section */
.quiz-result-cta {
  max-width: 480px;
  margin: 0 auto;
}

/* Email capture */
.quiz-email-form {
  margin-bottom: var(--space-md);
}

.quiz-email-form p {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.quiz-email-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-white);
  margin-bottom: var(--space-sm);
  transition: border-color var(--duration-fast) var(--ease-smooth);
}

.quiz-email-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.quiz-email-submit {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent-gold-light);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-smooth);
}

.quiz-email-submit:hover {
  background: var(--accent-gold);
  color: #fff;
}

/* Re-take button */
.quiz-retake {
  display: block;
  width: 100%;
  padding: var(--space-sm);
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  text-align: center;
}

.quiz-retake:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}


/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-text-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }

  .hero-description {
    justify-self: center;
    text-align: center;
    max-width: 560px;
  }

  .hero-image-wrapper {
    max-width: 100%;
  }

  .hero-float-card {
    bottom: -16px;
    left: 16px;
  }

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

  .intro-image {
    min-height: 320px;
  }

  .intro-content {
    padding: var(--space-xl);
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-xl);
  }

  .footer-nav-group {
    align-items: center;
  }

  .footer-bottom {
    text-align: center;
  }

  .steps-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .product-showcase .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .product-specs {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Science page */
  .science-layout {
    grid-template-columns: 1fr;
  }

  .science-sidebar {
    position: relative;
    top: 0;
  }

  .science-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
  }

  .science-sidebar-nav a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.6rem 1rem;
    white-space: nowrap;
  }

  .science-sidebar-nav a.active {
    border-bottom-color: var(--accent-gold);
    border-left: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--space-3xl) + 20px) var(--space-lg) var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: right var(--duration-normal) var(--ease-smooth);
    transform: none;
    left: auto;
    gap: var(--space-xs);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li a {
    font-size: 1.1rem;
    opacity: 0.7;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .problem-slide {
    min-height: 50vh;
  }

  .changing-slide {
    min-height: 40vh;
  }

  .comparison-row {
    grid-template-columns: 1.5fr 1fr 1fr;
    font-size: 0.85rem;
  }

  .comparison-row .feature {
    font-size: 0.85rem;
  }

  .hero-float-card {
    display: none;
  }

  .quiz-result-split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg);
  }

  .quiz-result-right {
    order: -1;
  }

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

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

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .footer-nav-group {
    align-items: center;
    text-align: center;
  }

  .footer-links a {
    font-size: 0.95rem;
    padding: 0.25rem 0;
  }

  .footer-bottom {
    padding-top: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    justify-content: center;
  }

  .product-specs {
    grid-template-columns: 1fr;
  }
}


/* ===========================
   PRE-ORDER PAGE — Mave Style
   =========================== */
.preorder-page {
  padding-top: 100px;
  padding-bottom: var(--space-3xl);
  min-height: 100vh;
}

.preorder-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

/* Left: Product Gallery — large image with thumbnails overlaid on right */
.preorder-gallery {
  position: relative;
}

.preorder-main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 2/ 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.preorder-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preorder-thumbnails {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 2;
}

.preorder-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: border-color var(--duration-fast) var(--ease-smooth), box-shadow var(--duration-fast);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.preorder-thumb:hover,
.preorder-thumb.active {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.preorder-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right: Product Info */
.preorder-info {
  padding: var(--space-xl) var(--space-lg) var(--space-xl) 0;
}

.preorder-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

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

/* Batch blocks — Mave style */
.preorder-batch-block {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.preorder-batch-soldout {
  background: #F5F3F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preorder-batch-soldout .preorder-batch-name {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.preorder-batch-soldout .preorder-batch-status {
  color: var(--text-light);
  font-size: 0.9rem;
}

.preorder-batch-active {
  background: #F7F4EC;
}

.preorder-batch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.preorder-batch-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.preorder-ship {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.preorder-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}

.preorder-price-original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.preorder-price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preorder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-gold);
  color: var(--bg-white);
  border-radius: var(--radius-round);
}

.preorder-no-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.preorder-form-headline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.preorder-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.preorder-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  transition: border-color var(--duration-fast);
  box-sizing: border-box;
}

.preorder-input:focus {
  outline: none;
  border-color: var(--text-primary);
}

.btn-preorder-black {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity var(--duration-fast);
}

.btn-preorder-black:hover {
  opacity: 0.9;
}

.preorder-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.preorder-assurance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.preorder-assurance svg {
  flex-shrink: 0;
  color: var(--text-primary);
}

/* Trust block — Clinicians' Choice style */
.preorder-trust-block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: #F5F3F0;
  border-radius: var(--radius-md);
}

.preorder-trust-icon {
  font-size: 1.25rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.preorder-trust-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.preorder-trust-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .preorder-card {
    grid-template-columns: 1fr;
  }

  .preorder-info {
    padding: 0 var(--space-lg) var(--space-xl);
  }

  .preorder-main-image {
    min-height: 50vh;
  }

  .preorder-thumbnails {
    top: auto;
    right: var(--space-md);
    bottom: var(--space-md);
    flex-direction: row;
  }
}

@media (max-width: 600px) {
  .preorder-main-image {
    min-height: 45vh;
  }

  .preorder-thumb {
    width: 48px;
    height: 48px;
  }
}


/* ===========================
   CHECKOUT MODAL — Mave Style
   =========================== */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-smooth),
    visibility var(--duration-normal) var(--ease-smooth);
}

.checkout-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.checkout-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.checkout-modal-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: var(--bg-white);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-smooth);
  overflow-y: auto;
}

.checkout-modal.is-open .checkout-modal-panel {
  transform: translateX(0);
}

.checkout-step {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.checkout-step.is-active {
  display: flex;
}

.checkout-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.checkout-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.checkout-brand {
  font-weight: 700;
}

.checkout-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast);
}

.checkout-modal-close:hover {
  color: var(--text-primary);
}

.checkout-form {
  flex: 1;
  padding: var(--space-lg);
  overflow-y: auto;
}

.checkout-section {
  margin-bottom: var(--space-lg);
}

.checkout-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.checkout-field-group {
  margin-bottom: var(--space-md);
}

.checkout-field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.checkout-field-group input,
.checkout-phone-row input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #F7F4EC;
  box-sizing: border-box;
}

.checkout-field-group input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.checkout-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.checkout-phone-row {
  display: flex;
  gap: var(--space-sm);
}

.checkout-phone-code {
  width: 70px !important;
  flex-shrink: 0;
  text-align: center;
}

.checkout-coupon-row {
  display: flex;
  gap: var(--space-sm);
}

.checkout-coupon-row input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #F7F4EC;
}

.checkout-apply-btn {
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  background: var(--bg-option);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
}

.checkout-apply-btn:hover {
  background: var(--border-light);
}

.checkout-modal-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.checkout-total {
  margin-bottom: var(--space-md);
}

.checkout-total-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkout-total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.checkout-breakdown-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-top: 0.25rem;
}

.checkout-breakdown-link:hover {
  text-decoration: underline;
}

.btn-checkout-continue {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity var(--duration-fast);
}

.btn-checkout-continue:hover {
  opacity: 0.9;
}

/* Payment step */
.checkout-payment-body {
  flex: 1;
  padding: var(--space-lg);
  overflow-y: auto;
}

.checkout-payment-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: #F7F4EC;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--duration-fast);
  margin-bottom: var(--space-md);
}

.checkout-payment-option input {
  display: none;
}

.checkout-payment-option input:checked + .checkout-payment-radio {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
}

.checkout-payment-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--duration-fast);
}

.checkout-payment-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.checkout-payment-label strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.checkout-payment-label small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Confirmation step */
.checkout-confirm-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  text-align: center;
}

.checkout-confirm-icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.checkout-confirm-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.checkout-confirm-msg {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.checkout-confirm-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

@media (max-width: 520px) {
  .checkout-modal-panel {
    max-width: 100%;
  }
}