/* ========================================
   SavorAI — Landing Page (Redesigned)
   Warm luminance. Editorial serif headlines.
   Gradient mesh atmosphere. Premium health-tech.
   ======================================== */

/* ========================================
   Font & Design Tokens (landing-scoped)
   ======================================== */

.scroll-landing {
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --glow-primary: rgba(224, 107, 31, 0.12);
  --glow-primary-strong: rgba(224, 107, 31, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --star-gold: #fbbf24;
}

[data-theme="light"] .scroll-landing {
  --glow-primary: rgba(224, 107, 31, 0.07);
  --glow-primary-strong: rgba(224, 107, 31, 0.14);
  --glass-bg: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-bg-hover: rgba(0, 0, 0, 0.04);
}

/* ========================================
   Base Overrides
   ======================================== */

html {
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

/* ========================================
   Landing Container
   ======================================== */

.slideshow-landing {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--bg, #0a0a0b);
  color: var(--text, #e8e8eb);
}

.scroll-landing {
  display: block;
  width: 100%;
}

/* GPU layer hints */
.scroll-landing .iphone {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.scroll-landing .hero-phone {
  will-change: transform, opacity;
}

.scroll-landing .feature-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.scroll-landing .feature-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  border-color: var(--border-light);
}

.scroll-landing .store-badge {
  display: inline-block;
}

.scroll-landing .accuracy-visual {
  overflow: hidden;
  border-radius: var(--radius-lg, 20px);
}

.scroll-landing .accuracy-visual img {
  transform-origin: center center;
}

/* ========================================
   Typography — Display Font
   ======================================== */

.scroll-landing h1,
.scroll-landing h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.scroll-landing h3 {
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
}

/* Gradient text highlight */
.scroll-landing .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-ai) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Slides Container
   ======================================== */

.slides-container {
  position: relative;
  width: 100%;
}

.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  padding: 100px 48px 80px;
}

.slide-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================
   Header — Glass Effect
   ======================================== */

.slideshow-header {
  position: sticky;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.slideshow-header.scrolled {
  background: rgba(15, 15, 20, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

[data-theme="light"] .slideshow-header.scrolled {
  background: rgba(248, 248, 250, 0.8);
}

.slideshow-header .brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slideshow-header .logo-img {
  height: 28px;
  width: auto;
}

.slideshow-header .wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.slideshow-header .wordmark .ai {
  color: var(--primary);
}

.slideshow-header .brand:hover .wordmark {
  color: var(--primary);
}

/* Header Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

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

/* Header Actions */
.slideshow-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slideshow-header .header-coach-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary, #a1a1a5);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border, #27272a);
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}

.slideshow-header .header-coach-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Header CTA Pill */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 100px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-header-cta:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
}

/* Theme Toggle */
.slideshow-header .theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.slideshow-header .theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.slideshow-header .theme-toggle svg {
  width: 16px;
  height: 16px;
}

.slideshow-header .theme-toggle .icon-sun,
.slideshow-header .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .slideshow-header .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .slideshow-header .theme-toggle .icon-moon {
  display: block;
}

:root:not([data-theme]) .slideshow-header .theme-toggle .icon-sun {
  display: block;
}

/* ========================================
   Section Tag (shared)
   ======================================== */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ========================================
   Slide 1: Hero
   ======================================== */

.slide-hero {
  overflow: hidden;
}

.slide-hero .slide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Hero Text */
.hero-text {
  text-align: left;
}

.hero-text h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-text .hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-text .hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Hero Phone */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-primary-strong) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   3D iPhone Mockup
   ======================================== */

.iphone-container {
  position: relative;
  perspective: 1200px;
  z-index: 1;
}

.is-firefox-android .iphone-container {
  perspective: none;
}

.iphone {
  position: relative;
  width: 260px;
  height: 555px;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0d0d0d 100%);
  border-radius: 28px;
  padding: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 60px 100px -30px rgba(0, 0, 0, 0.5),
    0 30px 60px -20px rgba(0, 0, 0, 0.4);
  transform: rotateY(-12deg) rotateX(4deg);
  transform-style: preserve-3d;
  overflow: visible;
  z-index: 2;
}

.is-firefox-android .iphone {
  transform: rotate(-1.25deg) !important;
  transform-style: flat;
}

.is-firefox-android .hero-phone {
  transform: none !important;
}

.is-firefox-android .iphone-screen .demo-video {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.is-firefox-android .iphone-screen .demo-poster,
.is-firefox-android .iphone-screen .demo-video {
  transition: none !important;
}

[data-theme="light"] .iphone {
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0d0d0d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 60px 100px -30px rgba(0, 0, 0, 0.5),
    0 30px 60px -20px rgba(0, 0, 0, 0.4);
}

.iphone::before {
  display: none;
}

.iphone-screen {
  position: absolute;
  inset: 2px;
  background: #000;
  border-radius: 26px;
  overflow: hidden;
}

.iphone-screen::before,
.iphone-screen::after,
.iphone::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.iphone-screen .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  padding: 24px;
  text-align: center;
  border-radius: 40px;
  position: relative;
  z-index: 1;
}

.iphone-screen .demo-poster,
.iphone-screen .demo-video,
.iphone-screen img.demo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.iphone-screen .demo-poster {
  opacity: 1;
  transition: opacity 0.55s ease;
  z-index: 1;
}

.iphone-screen .demo-video {
  opacity: 0;
  transition: opacity 0.65s ease;
  transition-delay: 0s;
  z-index: 2;
}

.iphone-screen.is-loaded .demo-poster {
  opacity: 0;
}

.iphone-screen.is-loaded .demo-video {
  transition-delay: 0.22s;
  opacity: 1;
}

/* ========================================
   Trust Strip
   ======================================== */

.trust-strip {
  padding: 20px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--glass-bg);
}

.trust-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-stars {
  color: var(--star-gold);
  letter-spacing: 1px;
  font-size: 14px;
}

.trust-icon {
  color: var(--accent-green);
  flex-shrink: 0;
}

.trust-item strong {
  color: var(--text);
  font-weight: 700;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

/* ========================================
   Slide 2: Features
   ======================================== */

.slide-features .slide-inner {
  text-align: center;
}

.slide-features h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 16px;
  line-height: 1.1;
}

.slide-features .slide-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 56px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px 32px;
  text-align: left;
  overflow: hidden;
}

/* Accent top line */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--primary));
  opacity: 0.8;
}

.feature-card { --card-accent: var(--primary); }

.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-muted);
  border-radius: 12px;
}

.feature-card .feature-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Feature icon colors */
.feature-card .feature-icon img[src*="camera.webp"] {
  filter: brightness(0) saturate(100%) invert(55%) sepia(52%) saturate(600%) hue-rotate(110deg) brightness(95%);
}
.feature-card .feature-icon img[src*="lightning.webp"],
.feature-card .feature-icon img[src*="light_bulb.webp"] {
  filter: brightness(0) saturate(100%) invert(77%) sepia(60%) saturate(800%) hue-rotate(340deg) brightness(100%);
}
.feature-card .feature-icon img[src*="bullseye.webp"] {
  filter: brightness(0) saturate(100%) invert(40%) sepia(80%) saturate(2000%) hue-rotate(346deg) brightness(90%);
}

.slide-features .slide-proof {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 40px;
  letter-spacing: 0.02em;
}

/* ========================================
   Slide 3: How It Works — Timeline
   ======================================== */

.slide-how .slide-inner {
  text-align: center;
}

.slide-how h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  margin-bottom: 8px;
}

.steps-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.step-card {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 16px;
}

.step-connector {
  flex: 0 0 auto;
  width: 64px;
  height: 2px;
  margin-top: 27px;
  background: linear-gradient(90deg, var(--primary), rgba(232, 93, 4, 0.2));
  border-radius: 1px;
  opacity: 0.5;
}

.step-card .step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(232, 93, 4, 0.12);
}

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.step-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ========================================
   Slide 4: Accuracy
   ======================================== */

.slide-accuracy .slide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.accuracy-content .section-tag {
  margin-bottom: 12px;
}

.accuracy-content h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  margin-bottom: 20px;
  line-height: 1.1;
}

.accuracy-content > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.accuracy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.accuracy-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
}

.accuracy-list li:last-child {
  border-bottom: none;
}

.accuracy-list .check {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-green);
  color: white;
  border-radius: 50%;
  font-size: 13px;
  flex-shrink: 0;
}

.accuracy-proof {
  font-size: 13px;
  color: var(--text-muted);
}

.accuracy-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.accuracy-visual > img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* Nutrient Bars — Data Viz */
.nutrient-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.nutrient-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nutrient-name {
  width: 72px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}

.nutrient-track {
  flex: 1;
  height: 6px;
  background: var(--glass-border);
  border-radius: 3px;
  overflow: hidden;
}

.nutrient-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.nutrient-val {
  width: 36px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

/* ========================================
   Slide 5: Testimonials
   ======================================== */

.slide-testimonial .slide-inner {
  text-align: center;
  max-width: 1100px;
}

.slide-testimonial h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 48px;
  line-height: 1.1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.testimonial-stars {
  color: var(--star-gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 auto;
  padding-bottom: 20px;
  font-style: normal;
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-muted);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.author-info cite {
  display: block;
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  color: var(--text);
}

.author-info span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========================================
   Slide 6: CTA / Download
   ======================================== */

.slide.slide-cta {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}

.slide-cta .slide-inner {
  text-align: center;
  max-width: 640px;
}

.slide-cta h2 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin-bottom: 24px;
}

.slide-cta .cta-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.slide-cta .app-store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.slide-cta .store-badge img {
  height: 65.5px;
  width: auto;
}

.slide-cta .store-badge img[alt*="Google Play"] {
  height: 96px;
  margin: -15px 0;
}

.slide-cta .form-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   FAQ Block
   ======================================== */

.faq-block {
  width: 100%;
  padding: 16em 48px 0;
}

.faq-inner {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 34px;
  border-top: 1px solid var(--glass-border);
}

.faq-inner h3 {
  margin: 0 0 14px;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.92;
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
}

.faq-intro {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.faq-inner details {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass-bg);
  margin: 0 0 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-inner details:hover {
  border-color: var(--border-light);
}

.faq-inner summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-inner summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  font-size: 14px;
}

.faq-inner details[open] summary::after {
  content: "\2013";
  transform: translateY(-1px);
}

.faq-answer {
  padding: 0 16px 14px;
}

.faq-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.faq-answer a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 93, 4, 0.35);
}

.faq-answer a:hover {
  border-bottom-color: rgba(232, 93, 4, 0.6);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  width: 100%;
  padding: 60px 48px 32px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand .brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-brand .logo-img {
  height: 22px;
  width: auto;
  flex-shrink: 0;
}

.footer-brand .wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.footer-brand .wordmark .ai {
  color: var(--primary);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 5px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  max-width: 1000px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom .copyright {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ========================================
   Mid-Page CTA (after testimonials)
   ======================================== */

.mid-cta {
  margin-top: 56px;
  text-align: center;
}

.mid-cta .btn {
  margin-bottom: 12px;
}

.mid-cta-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ========================================
   FAQ Toggle (progressive disclosure)
   ======================================== */

.faq-show-all {
  display: block;
  width: 100%;
  padding: 14px;
  margin: 4px 0 12px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.faq-show-all:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.faq-extra {
  display: none;
}

.faq-extra.visible {
  display: block;
}

/* ========================================
   Sticky Mobile CTA
   ======================================== */

.sticky-cta {
  display: none;
}

/* ========================================
   Hamburger & Mobile Navigation
   ======================================== */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 110;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ========================================
   Responsive — Tablet (max-width: 900px)
   ======================================== */

@media (max-width: 900px) {
  .slide {
    padding: 80px 24px 100px;
    align-items: flex-start;
  }

  /* Header */
  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-nav.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav a {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
  }

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

  .mobile-nav-cta {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 15px !important;
    margin-top: 12px;
    padding: 14px 36px;
    border-radius: 100px;
  }

  .slideshow-header {
    padding: 0 24px;
  }

  /* Hero */
  .slide-hero .slide-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-text {
    order: 1;
    text-align: center;
  }

  .hero-text h1,
  .hero-text .hero-sub,
  .hero-text .hero-cta {
    text-align: center;
  }

  .hero-text .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text .hero-cta {
    justify-content: center;
  }

  .hero-phone {
    order: 0;
  }

  .phone-glow {
    width: 280px;
    height: 280px;
  }

  .iphone {
    width: 200px;
    height: 428px;
    padding: 0;
    border-radius: 22px;
    transform: rotateY(-8deg) rotateX(3deg);
  }

  .iphone-screen {
    inset: 2px;
    border-radius: 20px;
  }

  /* Trust Strip */
  .trust-strip {
    padding: 16px 24px;
  }

  .trust-inner {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .trust-item {
    font-size: 12px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Steps */
  .steps-timeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin-top: 0;
    background: linear-gradient(180deg, var(--primary), rgba(232, 93, 4, 0.2));
  }

  .step-card {
    max-width: 100%;
    padding: 16px;
  }

  /* Accuracy */
  .slide-accuracy .slide-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .accuracy-visual {
    order: -1;
  }

  .accuracy-visual > img {
    max-width: 300px;
    margin: 0 auto;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Sticky CTA */
  .sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 99;
    display: block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .sticky-cta-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    text-align: center;
  }

  .sticky-cta-note {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
  }
}

/* ========================================
   Responsive — Mobile (max-width: 600px)
   ======================================== */

@media (max-width: 600px) {
  .slide {
    padding: 84px 20px 90px;
    align-items: flex-start;
  }

  .slide-hero {
    padding-top: 60px;
  }

  .slide-hero .slide-inner {
    gap: 24px;
  }

  .hero-text h1 {
    font-size: 34px;
    margin-bottom: 16px;
  }

  .hero-text .hero-sub {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-text .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
  }

  .hero-text .hero-cta .btn {
    width: 100%;
    max-width: 240px;
  }

  .hero-phone {
    margin-top: 0;
  }

  .iphone {
    width: 160px;
    height: 343px;
    border-radius: 18px;
    padding: 0;
  }

  .iphone-screen {
    inset: 2px;
    border-radius: 16px;
  }

  /* Trust Strip Mobile */
  .trust-strip {
    padding: 14px 16px;
  }

  .trust-inner {
    gap: 12px;
  }

  .trust-divider {
    display: none;
  }

  .trust-item {
    font-size: 11px;
    gap: 4px;
  }

  .trust-stars {
    font-size: 12px;
  }

  .trust-icon {
    width: 14px;
    height: 14px;
  }

  /* Features Mobile */
  .slide-features h2 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .slide-features .slide-subtitle {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .feature-card {
    padding: 20px 18px;
  }

  .feature-card .feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }

  .feature-card .feature-icon img {
    width: 22px;
    height: 22px;
  }

  .feature-card h3 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 13px;
  }

  .slide-features .slide-proof {
    font-size: 12px;
    margin-top: 24px;
  }

  /* How It Works Mobile */
  .slide-how h2 {
    font-size: 26px;
  }

  .steps-timeline {
    margin-top: 32px;
  }

  .step-card .step-number {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .step-card h3 {
    font-size: 17px;
  }

  .step-card p {
    font-size: 13px;
  }

  .step-connector {
    height: 28px;
  }

  /* Accuracy Mobile */
  .accuracy-content h2 {
    font-size: 26px;
  }

  .accuracy-visual > img {
    max-width: 240px;
  }

  .nutrient-bars {
    padding: 16px 18px;
  }

  .nutrient-name {
    width: 56px;
    font-size: 11px;
  }

  .nutrient-val {
    font-size: 11px;
  }

  /* Testimonials Mobile */
  .slide-testimonial h2 {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .testimonial-card {
    padding: 22px;
  }

  .testimonial-card blockquote {
    font-size: 14px;
  }

  /* CTA Mobile */
  .slide-cta h2 {
    font-size: 30px;
  }

  .slide-cta .cta-sub {
    font-size: 15px;
  }

  .slide-cta .app-store-buttons {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .slide-cta .store-badge img[alt*="App Store"] {
    height: 72.5px;
    width: auto;
  }

  .slide-cta .store-badge img[alt*="Google Play"] {
    height: 96px;
    margin: -15px 0;
  }

  .slideshow-header {
    height: 56px;
    padding: 0 16px;
  }

  .slideshow-header .logo-img {
    height: 24px;
  }

  .slideshow-header .wordmark {
    font-size: 16px;
  }

  .btn-header-cta {
    padding: 10px 18px;
    font-size: 13px;
  }

  .slideshow-header .header-coach-link {
    display: none;
  }

  /* FAQ Mobile */
  .faq-block {
    padding: 16em 20px 0;
  }

  .faq-inner {
    padding-top: 26px;
  }

  .faq-inner summary {
    padding: 13px 14px;
    font-size: 13.5px;
  }

  .faq-answer {
    padding: 0 14px 13px;
  }

  .faq-answer p,
  .faq-intro {
    font-size: 13.5px;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 40px 20px 24px;
    margin-top: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col h4 {
    margin-bottom: 12px;
  }

  .footer-col a {
    font-size: 13px;
    padding: 4px 0;
  }

  .footer-bottom {
    margin-top: 28px;
    padding-top: 16px;
  }
}

/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .scroll-landing .hero-text,
  .scroll-landing .hero-phone,
  .scroll-landing .trust-strip {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nutrient-fill {
    transition: none;
    width: var(--fill-target, 0%) !important;
  }

  .feature-card,
  .testimonial-card {
    transition: none;
  }
}
