/* ==========================================================================
   RepSnack — Liquid Vitality Design System
   Color Palette: Deep Teal (#0E5C52), Mint (#17A392), Muted Coral (#E8917A), Off-white (#F8FAF8)
   Typography: Plus Jakarta Sans (Display/Headlines) + Inter (Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Brand Core Colors */
  --primary-deep: #00433b;
  --primary-teal: #0E5C52;
  --accent-mint: #17A392;
  --accent-mint-light: #8ed2c5;
  --accent-mint-subtle: rgba(23, 163, 146, 0.12);
  --accent-coral: #E8917A;
  --accent-coral-light: #ffa48d;
  --accent-coral-subtle: rgba(232, 145, 122, 0.14);

  /* Surfaces & Backgrounds */
  --bg-page: #F8FAF8;
  --bg-subtle: #F2F5F2;
  --surface-card: rgba(255, 255, 255, 0.75);
  --surface-card-hover: rgba(255, 255, 255, 0.92);
  --surface-tint: rgba(14, 92, 82, 0.04);
  --surface-dark: #121412;
  --surface-dark-card: rgba(26, 32, 30, 0.85);

  /* Borders & Glass Dividers */
  --border-glass: rgba(255, 255, 255, 0.65);
  --border-glass-tinted: rgba(14, 92, 82, 0.12);
  --border-glass-dark: rgba(255, 255, 255, 0.15);

  /* Typography */
  --text-primary: #191C1B;
  --text-secondary: #3F4946;
  --text-muted: #6F7976;
  --text-inverse: #FFFFFF;
  --text-inverse-subtle: #D8DBD9;

  /* Elevations & Shadows */
  --shadow-sm: 0 2px 8px rgba(14, 92, 82, 0.04);
  --shadow-glass: 0 12px 36px 0 rgba(14, 92, 82, 0.07), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-glass-lg: 0 24px 48px -12px rgba(14, 92, 82, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-button: 0 10px 24px -4px rgba(14, 92, 82, 0.35);
  --shadow-button-hover: 0 14px 28px -2px rgba(14, 92, 82, 0.45);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Layout */
  --max-width-site: 1200px;
  --max-width-content: 840px;
}

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

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(at 15% 15%, rgba(23, 163, 146, 0.07) 0px, transparent 45%),
    radial-gradient(at 85% 25%, rgba(232, 145, 122, 0.06) 0px, transparent 40%),
    radial-gradient(at 50% 75%, rgba(14, 92, 82, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); font-weight: 700; line-height: 1.35; }
h4 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--text-secondary); font-size: 1.05rem; }

a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width-site);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}

/* Header & Navigation Bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  padding: 0.75rem 0;
}

.nav-glass-container {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-teal);
  letter-spacing: -0.03em;
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(14, 92, 82, 0.15);
}

.brand-icon-dark {
  display: none !important;
}

.brand-icon-light {
  display: block !important;
}

[data-theme="dark"] .brand-icon-dark,
.dark .brand-icon-dark,
html[data-theme="dark"] .brand-icon-dark,
body.dark .brand-icon-dark {
  display: block !important;
}

[data-theme="dark"] .brand-icon-light,
.dark .brand-icon-light,
html[data-theme="dark"] .brand-icon-light,
body.dark .brand-icon-light {
  display: none !important;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-teal);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Navigation Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 18, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-nav-drawer {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-glass-lg);
  z-index: 160;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.open .mobile-nav-drawer {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}

.mobile-nav-links a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-teal);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: #0b4b43;
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-1.5px);
  color: #FFFFFF !important;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-teal) !important;
  border: 1px solid var(--border-glass-tinted);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-teal);
  transform: translateY(-1.5px);
  color: var(--primary-teal) !important;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Liquid Glass Cards */
.glass-card {
  background: var(--surface-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  padding: 1.75rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--surface-card-hover);
  box-shadow: var(--shadow-glass-lg);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-3px);
}

.glass-card-accent {
  border-top: 3px solid var(--accent-mint);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-mint {
  background: var(--accent-mint-subtle);
  color: var(--primary-teal);
  border: 1px solid rgba(23, 163, 146, 0.25);
}

.badge-coral {
  background: var(--accent-coral-subtle);
  color: #a44833;
  border: 1px solid rgba(232, 145, 122, 0.3);
}

.badge-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

/* Hero Section */
.hero-section {
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-tag {
  margin-bottom: 1.25rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--primary-deep);
}

.hero-title .highlight {
  color: var(--accent-mint);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass-tinted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

/* Phone Mockup Frame */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-device-card {
  width: 100%;
  max-width: 340px;
  border-radius: 46px;
  background: #000000;
  padding: 10px;
  box-shadow: 
    0 25px 60px -15px rgba(14, 92, 82, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 4px rgba(22, 26, 25, 0.8);
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: #F8FAF8;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Glass Badges on Hero */
.floating-chip {
  position: absolute;
  z-index: 5;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
  box-shadow: var(--shadow-glass);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 4s ease-in-out infinite;
}

.floating-chip-top {
  top: 5%;
  right: -5%;
  animation-delay: 0s;
}

.floating-chip-bottom {
  bottom: 8%;
  left: -8%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 768px) {
  .floating-chip {
    display: none;
  }
}

/* Glucose Curve Section & Interactive Chart */
.science-section {
  background: linear-gradient(180deg, rgba(248, 250, 248, 0) 0%, rgba(23, 163, 146, 0.04) 50%, rgba(248, 250, 248, 0) 100%);
}

.chart-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-glass-lg);
}

.chart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.chart-toggle-group {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass-tinted);
}

.chart-toggle-btn {
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.chart-toggle-btn.active {
  background: #FFFFFF;
  color: var(--primary-teal);
  box-shadow: var(--shadow-sm);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.legend-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-coral { background-color: var(--accent-coral); }
.legend-teal { background-color: var(--primary-teal); }

.glucose-svg-container {
  width: 100%;
  height: 240px;
  position: relative;
  margin: 1rem 0;
}

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

.curve-uncontrolled {
  stroke: var(--accent-coral);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  transition: opacity 0.4s ease, stroke-dasharray 0.4s ease;
}

.curve-controlled {
  stroke: var(--primary-teal);
  stroke-width: 3.5;
  stroke-linecap: round;
  fill: none;
  transition: opacity 0.4s ease;
}

.chart-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 0.85rem;
}

/* 4 Exercises Section */
.exercises-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 3rem;
}

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

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

.exercise-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.exercise-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glass-lg);
  background: var(--surface-card-hover);
}

.exercise-media-frame {
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 220px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(23, 163, 146, 0.08) 0%, transparent 70%);
  border-radius: 16px;
  position: relative;
}

.exercise-media-frame img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.exercise-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 0.35rem;
}

.exercise-target {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.exercise-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.exercise-sensor-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-teal);
  background: var(--accent-mint-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Hardware Detection Section */
.hardware-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

.hardware-card {
  padding: 2rem;
}

.hardware-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-mint-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-teal);
  margin-bottom: 1.25rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
  max-width: 960px;
  margin: 3rem auto 0;
  padding-top: 1rem;
}

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

.pricing-card {
  padding: 2.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible !important;
}

.pricing-card.featured {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--accent-mint);
  box-shadow: var(--shadow-glass-lg);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-mint);
  color: #FFFFFF;
  padding: 0.35rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(23, 163, 146, 0.4);
  white-space: nowrap;
  z-index: 10;
}

.price-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-teal);
  line-height: 1;
  margin: 1.25rem 0 0.5rem;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.feature-list {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-item svg {
  flex-shrink: 0;
  color: var(--accent-mint);
}

.feature-item.disabled {
  color: var(--text-muted);
  opacity: 0.6;
}

.feature-item.disabled svg {
  color: var(--text-muted);
}

/* Pricing Status Indicators & Unified CTA (Option A) */
.pricing-card-status-wrap {
  margin-top: auto;
  padding-top: 1.75rem;
}

.pricing-status-pill {
  display: block;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(18, 20, 18, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(18, 20, 18, 0.12);
  text-align: center;
}

.pricing-status-pill.pro {
  background: rgba(23, 163, 146, 0.1);
  color: var(--primary-deep);
  border: 1.5px solid var(--accent-mint);
  font-weight: 700;
}

.pricing-cta-section {
  text-align: center;
  max-width: 580px;
  margin: 3.5rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.pricing-cta-section .btn {
  box-shadow: var(--shadow-button);
}

.pricing-cta-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

/* FAQ Accordion (AEO Optimized) */
.faq-accordion {
  max-width: var(--max-width-content);
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border-glass-tinted);
  box-shadow: var(--shadow-glass);
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

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

.faq-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--primary-teal);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Author / E-E-A-T Bio Block */
.author-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .author-card {
    flex-direction: row;
    align-items: center;
  }
}

.author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(14, 92, 82, 0.16);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.author-info h4 {
  font-size: 1.3rem;
  color: var(--primary-teal);
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.author-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.author-links {
  display: flex;
  gap: 1rem;
}

/* Newsletter / Waitlist Signup */
.newsletter-card {
  background: linear-gradient(135deg, rgba(14, 92, 82, 0.06) 0%, rgba(23, 163, 146, 0.12) 100%), rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(23, 163, 146, 0.3);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 720px;
  margin: 4rem auto 0;
  box-shadow: var(--shadow-glass-lg);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
  margin: 1.75rem auto 0;
}

@media (min-width: 576px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass-tinted);
  background: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(14, 92, 82, 0.15);
}

/* Footer */
.site-footer {
  background: #141A18;
  color: #EFF1EF;
  padding: 4.5rem 0 2.5rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

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

.footer-brand h3 {
  color: #FFFFFF;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #A2AAA6;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #BEC9C5;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-disclaimer {
  font-size: 0.8rem;
  color: #798580;
  line-height: 1.5;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

/* Documentation & Legal Page Specific Styles */
.doc-header {
  padding-top: 8rem;
  padding-bottom: 2.5rem;
  text-align: center;
}

.doc-article {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-glass);
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .doc-article {
    padding: 3.5rem;
  }
}

.doc-article h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-teal);
  border-bottom: 1px solid var(--border-glass-tinted);
  padding-bottom: 0.5rem;
}

.doc-article h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--primary-deep);
}

.doc-article p {
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.doc-article ul, .doc-article ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.doc-article li {
  margin-bottom: 0.5rem;
}

.callout-box {
  background: var(--accent-mint-subtle);
  border-left: 4px solid var(--accent-mint);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout-box-coral {
  background: var(--accent-coral-subtle);
  border-left-color: var(--accent-coral);
}

.callout-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Utility Animations */
.animate-pulse-subtle {
  animation: pulseSubtle 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseSubtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* ==========================================================================
   Dark Theme Overrides (Liquid Vitality Dark Mode)
   ========================================================================== */

:root[data-theme="dark"],
html[data-theme="dark"],
html.dark,
body.dark {
  --primary-deep: #17A392;
  --primary-teal: #17A392;
  --accent-mint: #17A392;
  --accent-mint-light: #8ed2c5;
  --accent-mint-subtle: rgba(23, 163, 146, 0.2);
  --accent-coral: #E8917A;
  --accent-coral-light: #ffa48d;
  --accent-coral-subtle: rgba(232, 145, 122, 0.2);

  --bg-page: #101514;
  --bg-subtle: #161c1a;
  --surface-card: rgba(26, 34, 31, 0.85);
  --surface-card-hover: rgba(33, 44, 40, 0.95);
  --surface-tint: rgba(23, 163, 146, 0.08);

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-tinted: rgba(23, 163, 146, 0.28);
  --border-glass-dark: rgba(255, 255, 255, 0.18);

  --text-primary: #EFF1EF;
  --text-secondary: #BEC9C5;
  --text-muted: #8E9895;
  --text-inverse: #101514;
  --text-inverse-subtle: #2E3130;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-glass: 0 12px 36px 0 rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-glass-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-button: 0 10px 24px -4px rgba(23, 163, 146, 0.4);
  --shadow-button-hover: 0 14px 28px -2px rgba(23, 163, 146, 0.55);
}

[data-theme="dark"],
html[data-theme="dark"] {
  background-color: #101514 !important;
  background-image: none !important;
}

[data-theme="dark"] body,
html.dark body,
body.dark {
  background-color: #101514 !important;
  color: #EFF1EF !important;
  background-image: none !important;
}

[data-theme="dark"] .hero-title,
html.dark .hero-title {
  color: #EFF1EF !important;
}

[data-theme="dark"] .nav-glass-container,
html.dark .nav-glass-container {
  background: rgba(20, 26, 24, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .mobile-nav-drawer,
html.dark .mobile-nav-drawer {
  background: rgba(20, 26, 24, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .btn-secondary,
html.dark .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-mint) !important;
  border-color: rgba(23, 163, 146, 0.3);
}

[data-theme="dark"] .btn-secondary:hover,
html.dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-mint);
  color: var(--accent-mint) !important;
}

[data-theme="dark"] .badge-glass,
html.dark .badge-glass {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .floating-chip,
html.dark .floating-chip {
  background: rgba(26, 34, 31, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .chart-card,
html.dark .chart-card {
  background: rgba(24, 31, 28, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .chart-toggle-group,
html.dark .chart-toggle-group {
  background: rgba(18, 22, 20, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .chart-toggle-btn.active,
html.dark .chart-toggle-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-mint);
}

[data-theme="dark"] .pricing-card.featured,
html.dark .pricing-card.featured {
  background: rgba(26, 36, 32, 0.95);
  border-color: var(--accent-mint);
}

[data-theme="dark"] .price-period,
html.dark .price-period,
[data-theme="dark"] .pricing-card p,
html.dark .pricing-card p {
  color: #A4B2AE !important;
}

[data-theme="dark"] .feature-item strong,
html.dark .feature-item strong {
  color: #FFFFFF;
}

[data-theme="dark"] .pricing-status-pill,
html.dark .pricing-status-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #BEC9C5;
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .pricing-status-pill.pro,
html.dark .pricing-status-pill.pro {
  background: rgba(23, 163, 146, 0.2);
  color: #8ed2c5;
  border-color: var(--accent-mint);
}

[data-theme="dark"] .faq-item,
html.dark .faq-item {
  background: rgba(26, 34, 31, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .faq-item[open],
html.dark .faq-item[open] {
  background: rgba(30, 40, 36, 0.92);
  border-color: rgba(23, 163, 146, 0.35);
}

[data-theme="dark"] #faq h2,
html.dark #faq h2 {
  color: #FFFFFF !important;
}

[data-theme="dark"] #faq p,
html.dark #faq p {
  color: #BEC9C5;
}

[data-theme="dark"] .badge-mint,
html.dark .badge-mint {
  background: rgba(23, 163, 146, 0.22);
  color: #38E1CD !important;
  border-color: rgba(56, 225, 205, 0.4);
}

[data-theme="dark"] .author-card,
html.dark .author-card {
  background: rgba(24, 32, 29, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .newsletter-card,
html.dark .newsletter-card {
  background: linear-gradient(135deg, rgba(14, 92, 82, 0.25) 0%, rgba(23, 163, 146, 0.3) 100%), rgba(20, 26, 24, 0.92);
  border-color: rgba(23, 163, 146, 0.4);
}

[data-theme="dark"] .newsletter-input,
html.dark .newsletter-input {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

[data-theme="dark"] .doc-article,
html.dark .doc-article {
  background: rgba(24, 32, 29, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mobile-menu-btn,
html.dark .mobile-menu-btn {
  color: var(--text-primary);
}

/* ==========================================================================
   Theme Toggle Button Component
   ========================================================================== */

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.theme-toggle-btn svg {
  pointer-events: none;
}

.theme-toggle-btn:hover {
  color: var(--primary-teal);
  background: #FFFFFF;
  transform: scale(1.06);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .theme-toggle-btn,
html.dark .theme-toggle-btn,
body.dark .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

[data-theme="dark"] .theme-toggle-btn:hover,
html.dark .theme-toggle-btn:hover,
body.dark .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--accent-mint);
  transform: scale(1.06);
}

/* Sun vs Moon icon switching */
.theme-toggle-btn .sun-icon {
  display: none !important;
}
.theme-toggle-btn .moon-icon {
  display: block !important;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon,
html.dark .theme-toggle-btn .sun-icon,
body.dark .theme-toggle-btn .sun-icon {
  display: block !important;
}
[data-theme="dark"] .theme-toggle-btn .moon-icon,
html.dark .theme-toggle-btn .moon-icon,
body.dark .theme-toggle-btn .moon-icon {
  display: none !important;
}
