/* ============================================
   TIME MACHINE ENHANCEMENTS — WOW FACTOR CSS
   ============================================ */

/* ─── SKELETON LOADING ────────────────────── */
.tm-skeleton-container {
  padding: 30px 20px;
  animation: fadeIn 0.3s ease;
}

.tm-skeleton-line {
  height: 14px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: 7px;
  margin-bottom: 10px;
}

.tm-skeleton-line.w40 { width: 40%; }
.tm-skeleton-line.w60 { width: 60%; }
.tm-skeleton-line.w80 { width: 80%; }

.tm-skeleton-chart {
  margin: 30px 0;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
}

.tm-skeleton-wave {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.tm-skeleton-wave svg {
  width: 100%;
  height: 100%;
}

@keyframes skeletonTrace {
  0% { stroke-dashoffset: 800; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -800; }
}

.tm-skeleton-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.tm-skeleton-stat {
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.tm-skeleton-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  margin-top: 25px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── CONFETTI CANVAS ─────────────────────── */
.tm-confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* ─── SHAREABLE CARD BUTTON (legacy) ──────── */
.tm-share-btn {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.tm-share-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.tm-share-btn:active {
  transform: scale(0.97);
}

/* ─── HEALTH POSTCARD BUTTON (dedicated) ──── */
.health-postcard-section {
  margin: 24px 0;
}

.health-postcard-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #ffffff;
  border: 2.5px solid #ff810a;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(139,105,20,0.1);
}

.health-postcard-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.06), transparent);
  transition: left 0.7s ease;
}

.health-postcard-btn:hover::before {
  left: 100%;
}

.health-postcard-btn:hover {
  transform: translateY(-2px);
  border-color: #ffb700;
  box-shadow: 0 8px 24px rgba(139,105,20,0.15), 0 2px 6px rgba(0,0,0,0.06);
}

.health-postcard-btn:active {
  transform: scale(0.98);
}

.postcard-btn-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.postcard-btn-text {
  flex: 1;
  text-align: left;
}

.postcard-btn-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #3C2415;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
  font-family: Georgia, 'Times New Roman', serif;
}

.postcard-btn-subtitle {
  display: block;
  font-size: 0.8rem;
  color: #8C7A6B;
  line-height: 1.3;
}

.postcard-btn-arrow {
  font-size: 1.5rem;
  color: #ff6200;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.health-postcard-btn:hover .postcard-btn-arrow {
  transform: translateX(4px);
  color: #8B6914;
}

/* ─── POSTCARD PREVIEW OVERLAY ────────────── */
.postcard-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 153, 153, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.postcard-preview-overlay.show {
  opacity: 1;
}

.postcard-preview-container {
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.postcard-preview-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgb(255, 255, 255), 0 0 0 2px rgba(201,168,76,0.3);
  max-height: 65vh;
  object-fit: contain;
}

.postcard-preview-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.postcard-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.postcard-action-btn.download {
  background: #FDF6EC;
  color: #3C2415;
  border: 1px solid #C9A84C;
  box-shadow: 0 2px 10px rgba(139,105,20,0.1);
}

.postcard-action-btn.download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,105,20,0.2);
}

.postcard-action-btn.share {
  background: linear-gradient(135deg, #8B6914, #B8860B);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(139,105,20,0.3);
}

.postcard-action-btn.share:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,105,20,0.4);
}

.postcard-action-btn:active {
  transform: scale(0.97);
}

.postcard-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.postcard-close-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .postcard-preview-container {
    max-width: 100%;
  }
  .postcard-preview-image {
    max-height: 55vh;
  }
  .postcard-action-btn {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
}

/* ─── SWIPE-THROUGH RESULTS (MOBILE) ─────── */
.tm-swipe-container {
  overflow: hidden;
  position: relative;
}

.tm-swipe-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.tm-swipe-panel {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 5px;
  box-sizing: border-box;
}

.tm-swipe-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tm-swipe-dot {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tm-swipe-dot.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transform: scale(1.05);
}

/* ─── TOAST NOTIFICATION ──────────────────── */
.tm-toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 100000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  max-width: 90vw;
  text-overflow: ellipsis;
  overflow: hidden;
}

.tm-toast.show {
  bottom: 30px;
}

/* ─── MOBILE OPTIMIZATIONS ────────────────── */
@media (max-width: 768px) {
  .tm-progress-steps {
    gap: 0;
  }

  .tm-step-label {
    font-size: 0.55rem;
  }

  .tm-step-icon {
    font-size: 1.1rem;
  }

  .tm-skeleton-stats {
    grid-template-columns: 1fr;
  }

  .tm-share-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .tm-progress-bar {
    margin-bottom: 12px;
  }

  .tm-step-label {
    display: none;
  }

  .tm-step-icon {
    font-size: 1.2rem;
  }
}


/* ============================================
   FOOD TIME MACHINE WALKTHROUGH — OVERHAUL
   ============================================ */

/* ─── HERO PARTICLES ──────────────────────── */
.ftm-hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.ftm-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: floatParticle 8s ease-in-out infinite;
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { transform: translateY(-100px) translateX(30px); }
}

/* ─── VERTICAL TIMELINE STEPPER ───────────── */
.ftm-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0;
}

.ftm-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #667eea, #764ba2, #10b981);
  border-radius: 3px;
}

.ftm-timeline-item {
  position: relative;
  padding-left: 75px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(-30px);
}

.ftm-timeline-item.revealed {
  opacity: 1;
  transform: translateX(0);
  /* No CSS transition — GSAP handles the animation */
}

.ftm-timeline-dot {
  position: absolute;
  left: 18px;
  top: 5px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
  z-index: 2;
}

.ftm-timeline-dot.active {
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.4), 0 0 15px rgba(102, 126, 234, 0.3);
  transform: scale(1.15);
}

.ftm-timeline-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.ftm-timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.ftm-timeline-card h3 {
  color: #1a1a2e;
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.ftm-timeline-card p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.ftm-timeline-card .feature-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ftm-timeline-card .feature-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: #4a5568;
  font-size: 0.9rem;
}

.ftm-timeline-card .feature-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: 700;
}

/* ─── INTERACTIVE DEMO ────────────────────── */
.ftm-demo-container {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 600px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ftm-demo-phone {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 20px;
  max-width: 320px;
  margin: 0 auto;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.ftm-demo-notch {
  width: 120px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  margin: 0 auto 20px;
}

.ftm-demo-screen {
  position: relative;
  min-height: 350px;
}

.ftm-demo-step {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.ftm-demo-step.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Demo Step 1: Food Selection */
.demo-food-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-food-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-food-item:hover,
.demo-food-item.selected {
  background: rgba(99, 102, 241, 0.3);
  border-color: #6366f1;
}

.demo-food-emoji {
  font-size: 1.5rem;
}

.demo-food-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.demo-food-macros {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Demo Step 2: Questions */
.demo-question {
  margin-bottom: 12px;
}

.demo-question label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 6px;
}

.demo-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-chip.selected {
  background: #6366f1;
  border-color: #6366f1;
}

/* Demo Step 3: Results */
.demo-result-meter {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(#10b981 0%, #f59e0b 60%, #ef4444 85%, #e5e7eb 85%);
  margin: 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.demo-result-meter::after {
  content: '';
  width: 70px;
  height: 70px;
  background: #1a1a2e;
  border-radius: 50%;
  position: absolute;
}

.demo-result-value {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
}

.demo-result-label {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin-top: 8px;
}

.demo-mini-chart {
  margin: 15px 0;
  height: 60px;
}

.demo-mini-chart svg {
  width: 100%;
  height: 100%;
}

.demo-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.demo-nav-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-nav-btn.primary {
  background: #6366f1;
  border-color: #6366f1;
}

.demo-nav-btn:hover {
  transform: translateY(-1px);
}

.ftm-demo-label {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 15px;
  font-style: italic;
}

/* ─── SWIPEABLE CATEGORY CARDS (replaces table) ── */
.ftm-categories-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 10px;
  margin: 0 -20px;
  scrollbar-width: none;
}

.ftm-categories-scroll::-webkit-scrollbar {
  display: none;
}

.ftm-category-card {
  min-width: 260px;
  scroll-snap-align: center;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #667eea;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.ftm-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.ftm-category-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.ftm-category-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.ftm-category-count {
  display: inline-block;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.ftm-category-examples {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.5;
}

.ftm-scroll-hint {
  text-align: center;
  color: #9ca3af;
  font-size: 0.8rem;
  margin-top: 10px;
  animation: bounceX 1.5s ease-in-out infinite;
}

@keyframes bounceX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* ─── GSAP REVEAL CLASSES ─────────────────── */
.ftm-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.ftm-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.ftm-reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

.ftm-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

/* ─── FEATURE CARDS REDESIGN ──────────────── */
.ftm-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.ftm-feature-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.ftm-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ftm-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.ftm-feature-card:hover::before {
  opacity: 1;
}

.ftm-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ftm-feature-card:hover .ftm-feature-icon {
  transform: scale(1.2) rotate(-5deg);
}

.ftm-feature-card h3 {
  font-size: 1.2rem;
  color: #1a1a2e;
  margin-bottom: 10px;
  font-weight: 700;
}

.ftm-feature-card p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ─── FAQ REDESIGN ────────────────────────── */
.ftm-faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.ftm-faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ftm-faq-header {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #1a1a2e;
  font-size: 1rem;
  transition: all 0.2s ease;
  user-select: none;
}

.ftm-faq-header:hover {
  background: rgba(102, 126, 234, 0.04);
}

.ftm-faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: #667eea;
}

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

.ftm-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ftm-faq-item.open .ftm-faq-body {
  max-height: 300px;
}

.ftm-faq-body-inner {
  padding: 0 24px 18px;
  color: #6b7280;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ─── SECTION BACKGROUNDS ─────────────────── */
.ftm-section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 60px 20px;
  margin: 0 -20px;
  max-width: calc(100% + 40px);
}

.ftm-section-dark {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  padding: 60px 20px;
  margin: 0 -20px;
  max-width: calc(100% + 40px);
  color: white;
}

.ftm-section-dark h2 {
  color: white !important;
}

.ftm-section-dark .ftm-feature-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.ftm-section-dark .ftm-feature-card h3 {
  color: white;
}

.ftm-section-dark .ftm-feature-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* ─── CTA SECTION GLOW ───────────────────── */
.ftm-cta-glow {
  position: relative;
}

.ftm-cta-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #667eea, #764ba2, #10b981, #667eea);
  background-size: 300% 300%;
  border-radius: 14px;
  animation: glowShift 4s ease-in-out infinite;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.6;
}

@keyframes glowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── MOBILE: WALKTHROUGH PAGE ────────────── */
@media (max-width: 768px) {
  .ftm-section-dark,
  .ftm-section-alt {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    max-width: calc(100% + 32px);
  }

  .ftm-categories-scroll {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .ftm-timeline::before {
    left: 18px;
  }

  .ftm-timeline-item {
    padding-left: 55px;
  }

  .ftm-timeline-dot {
    left: 6px;
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .ftm-timeline-card {
    padding: 18px;
  }

  .ftm-timeline-card h3 {
    font-size: 1.1rem;
  }

  .ftm-features-grid {
    grid-template-columns: 1fr;
  }

  .ftm-demo-container {
    padding: 20px 15px;
    margin: 20px auto;
  }

  .ftm-demo-phone {
    padding: 15px;
    max-width: 100%;
  }

  .ftm-category-card {
    min-width: 220px;
  }

  .ftm-faq-header {
    padding: 16px 18px;
    font-size: 0.9rem;
  }

  .ftm-faq-body-inner {
    padding: 0 18px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .ftm-section-dark,
  .ftm-section-alt {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .ftm-timeline-item {
    padding-left: 48px;
    margin-bottom: 30px;
  }

  .ftm-timeline-card {
    padding: 14px;
  }

  .ftm-timeline-card h3 {
    font-size: 1rem;
  }

  .ftm-timeline-card p {
    font-size: 0.85rem;
  }

  .ftm-demo-container {
    padding: 15px 10px;
    border-radius: 14px;
  }

  .ftm-demo-phone {
    padding: 12px;
    border-radius: 18px;
    min-height: 340px;
  }

  .demo-food-item {
    padding: 10px;
  }

  .demo-food-emoji {
    font-size: 1.2rem;
  }

  .demo-food-name {
    font-size: 0.8rem;
  }

  .demo-food-macros {
    font-size: 0.65rem;
  }

  .ftm-category-card {
    min-width: 200px;
    padding: 18px;
  }

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

  .ftm-feature-icon {
    font-size: 2rem;
  }

  .ftm-scroll-hint {
    font-size: 0.75rem;
  }
}
