/* ========================================
   SavorAI — Unified Styles
   Dark/Light theme with toggle support
   ======================================== */

/* ========================================
   Local Fonts (self-hosted)
   ======================================== */

@font-face {
  font-family: 'Fira Sans';
  src:
    url("/static/font/Fira_Sans/woff2/FiraSans-Regular.woff2") format("woff2"),
    url("/static/font/Fira_Sans/FiraSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src:
    url("/static/font/Fira_Sans/woff2/FiraSans-Italic.woff2") format("woff2"),
    url("/static/font/Fira_Sans/FiraSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src:
    url("/static/font/Fira_Sans/woff2/FiraSans-Medium.woff2") format("woff2"),
    url("/static/font/Fira_Sans/FiraSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src:
    url("/static/font/Fira_Sans/woff2/FiraSans-SemiBold.woff2") format("woff2"),
    url("/static/font/Fira_Sans/FiraSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src:
    url("/static/font/Fira_Sans/woff2/FiraSans-Bold.woff2") format("woff2"),
    url("/static/font/Fira_Sans/FiraSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src:
    url("/static/font/Fira_Sans/woff2/FiraSans-BoldItalic.woff2") format("woff2"),
    url("/static/font/Fira_Sans/FiraSans-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ========================================
   Theme Variables
   ======================================== */

:root {
  /* Spacing (shared) */
  --section-pad: 100px;
  --section-pad-mobile: 60px;
  
  /* Radius (shared) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Brand colors (shared) */
  --primary: #e06b1f;
  --primary-rgb: 224, 107, 31;
  --primary-hover: #ef7c30;
  --primary-muted: rgba(224, 107, 31, 0.13);
  --accent-ai: #f0c080;
  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --danger: #ef4444;
}

/* Dark theme (default) */
:root,
[data-theme="dark"] {
  --bg: #0f0f14;
  --bg-elevated: #161619;
  --bg-card: #1b1b21;
  --bg-hover: #232329;
  --text: #e4e4ea;
  --text-secondary: #9a9aa6;
  --text-muted: #636370;
  --border: #2a2a34;
  --border-light: #3a3a46;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(15, 15, 20, 0.85);
  --icon-filter: brightness(0) invert(1);
}

/* Light theme */
[data-theme="light"] {
  --bg: #f8f8fa;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f0f0f2;
  --text: #18181b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --border: #e4e4e7;
  --border-light: #d4d4d8;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --header-bg: rgba(248, 248, 250, 0.9);
  --icon-filter: none;
}

/* ========================================
   Base & Reset
   ======================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg-hover);
  border-color: var(--text-secondary);
  color: var(--text);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-nav {
  padding: 10px 20px;
  font-size: 13px;
  background: var(--primary);
  color: white;
}

.btn-nav:hover {
  background: var(--primary-hover);
  color: white;
}

/* ========================================
   Header / Navigation
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

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

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

.wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

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

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

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

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

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

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

/* Default to sun icon (switch to light) */
:root:not([data-theme]) .theme-toggle .icon-sun {
  display: block;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 11, 0.7) 0%,
    rgba(10, 10, 11, 0.9) 70%,
    rgba(10, 10, 11, 1) 100%
  );
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(248, 248, 250, 0.7) 0%,
    rgba(248, 248, 250, 0.92) 70%,
    rgba(248, 248, 250, 1) 100%
  );
}

[data-theme="light"] .hero-bg img {
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 0;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-muted);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 20px;
  color: var(--text);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0;
  line-height: 1.7;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ========================================
   Social Proof Strip - Scrolling Testimonials
   ======================================== */

.social-proof {
  background: var(--bg-elevated);
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Fade edges */
.social-proof::before,
.social-proof::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.social-proof::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-elevated) 0%, var(--bg-elevated) 20%, transparent 100%);
}

.social-proof::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-elevated) 0%, var(--bg-elevated) 20%, transparent 100%);
}

.testimonial-track {
  display: flex;
  gap: 40px;
  width: fit-content;
  animation: scroll-testimonials 25s linear infinite;
  padding-left: 20px;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-testimonials {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 20px));
  }
}

.testimonial-slide {
  flex: 0 0 auto;
  width: 380px;
  text-align: center;
  padding: 0 20px;
}

.testimonial-slide p {
  font-size: 16px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 8px;
}

.testimonial-author {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .testimonial-slide {
    width: 300px;
    max-width: 350px;
  }
  
  .testimonial-slide p {
    font-size: 14px;
  }
  
  .social-proof::before,
  .social-proof::after {
    width: 40px;
  }
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ========================================
   Features Section
   ======================================== */

.features {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.3s ease;
}

/* Feature icon colors matching mobile app */
/* Camera icon - green (more green, less teal) */
.feature-icon img[src*="camera.webp"] {
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(1800%) hue-rotate(110deg) brightness(95%) contrast(101%);
}

[data-theme="dark"] .feature-icon img[src*="camera.webp"] {
  filter: brightness(0) saturate(100%) invert(66%) sepia(48%) saturate(900%) hue-rotate(110deg) brightness(95%) contrast(101%);
}

/* Lightning bolt - yellow (#FABC60) */
.feature-icon img[src*="lightning.webp"] {
  filter: brightness(0) saturate(100%) invert(77%) sepia(99%) saturate(1352%) hue-rotate(340deg) brightness(102%) contrast(98%);
}

[data-theme="dark"] .feature-icon img[src*="lightning.webp"] {
  filter: brightness(0) saturate(100%) invert(77%) sepia(99%) saturate(1352%) hue-rotate(340deg) brightness(102%) contrast(98%);
}

/* Bullseye - red (less bright, more desaturated) */
.feature-icon img[src*="bullseye.webp"] {
  filter: brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(3500%) hue-rotate(346deg) brightness(85%) contrast(92%);
}

[data-theme="dark"] .feature-icon img[src*="bullseye.webp"] {
  filter: brightness(0) saturate(100%) invert(48%) sepia(96%) saturate(3500%) hue-rotate(346deg) brightness(85%) contrast(92%);
}

/* Lightbulb - yellow (#FABC60) */
.feature-icon img[src*="light_bulb.webp"] {
  filter: brightness(0) saturate(100%) invert(77%) sepia(99%) saturate(1352%) hue-rotate(340deg) brightness(102%) contrast(98%);
}

[data-theme="dark"] .feature-icon img[src*="light_bulb.webp"] {
  filter: brightness(0) saturate(100%) invert(77%) sepia(99%) saturate(1352%) hue-rotate(340deg) brightness(102%) contrast(98%);
}

/* Salad/food icon - green (more green, less teal) */
.feature-icon img[src*="salad_bowl.webp"] {
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(1800%) hue-rotate(110deg) brightness(95%) contrast(101%);
}

[data-theme="dark"] .feature-icon img[src*="salad_bowl.webp"] {
  filter: brightness(0) saturate(100%) invert(66%) sepia(48%) saturate(900%) hue-rotate(110deg) brightness(95%) contrast(101%);
}

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

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

/* ========================================
   Feature Image Banner
   ======================================== */

.feature-banner {
  margin-top: 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.feature-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  opacity: 0.8;
}

.feature-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,11,0.9) 0%, rgba(10,10,11,0.4) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 48px;
}

[data-theme="light"] .feature-banner-overlay {
  background: linear-gradient(90deg, rgba(248,248,250,0.95) 0%, rgba(248,248,250,0.6) 60%, transparent 100%);
}

.feature-banner-content {
  max-width: 400px;
}

.feature-banner-content h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.feature-banner-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ========================================
   How It Works Section
   ======================================== */

.how-it-works {
  padding: var(--section-pad) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

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

.demo-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-phone {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ========================================
   Accuracy Section
   ======================================== */

.accuracy {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

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

.accuracy-content .section-tag {
  text-align: left;
}

.accuracy-content h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 16px;
}

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

.accuracy-list {
  list-style: none;
}

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

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

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

.accuracy-image {
  position: relative;
}

.accuracy-image img {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  padding: var(--section-pad) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.cta-box {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.cta-box h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}

.cta-box > p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto 12px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--primary);
  background: var(--bg-elevated);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.waitlist-form .btn {
  flex-shrink: 0;
}

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

/* App Store Buttons */
.app-store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.store-badge {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badge img {
  height: 56px;
  width: auto;
  display: block;
}

/* Google Play badge has different aspect ratio, normalize height */
.store-badge img[alt*="Google Play"] {
  height: 82px; /* Visually matches 56px App Store badge due to padding in Google's badge */
  margin: -13px 0; /* Compensate for extra whitespace in Google badge */
}

@media (max-width: 480px) {
  .app-store-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .store-badge img {
    height: 50px;
  }
  
  .store-badge img[alt*="Google Play"] {
    height: 74px;
    margin: -12px 0;
  }
}

/* ========================================
   Contact Page
   ======================================== */

.contact-page {
  padding: 96px 0 72px;
}

.contact-hero {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.contact-hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.contact-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 10px;
}

.contact-direct {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.contact-direct a {
  color: var(--primary);
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.form-status {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.form-status.success {
  color: var(--accent-green);
}

.form-status.error {
  color: var(--danger);
}

.btn-sm-inline {
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
}

.contact-direct a {
  word-break: break-word;
}

/* Reveal Email Button (single button that becomes copy button) */
.reveal-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.reveal-email-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

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

.reveal-email-btn .reveal-email-text {
  font-variant-numeric: tabular-nums;
}

.reveal-email-btn .reveal-email-icon {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  filter: none;
}

[data-theme="dark"] .reveal-email-btn .reveal-email-icon {
  filter: brightness(0) invert(1);
}

.reveal-email-btn.copied {
  border-color: var(--accent-green);
}

@media (max-width: 700px) {
  .contact-page {
    padding: 84px 0 56px;
  }
  .contact-card {
    padding: 18px;
  }
  .contact-hero h1 {
    font-size: 32px;
  }
}

/* Visually hidden but accessible (for honeypot fields) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

.site-footer {
  background: var(--bg);
  color: var(--text);
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

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

.footer-logo {
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

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

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

/* Icon attribution */
.icon-attribution {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

.icon-attribution a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ========================================
   Legal Pages (Privacy, Terms)
   ======================================== */

.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 40px;
}

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

.legal-content h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-content h3 {
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

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

.legal-content ul,
.legal-content ol {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

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

.legal-content a {
  color: var(--primary);
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --section-pad: 80px;
  }
  
  .nav-links {
    display: none;
  }
  
  .steps-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .demo-visual {
    order: -1;
  }
  
  .demo-phone {
    max-width: 300px;
  }
  
  .accuracy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .accuracy-image {
    order: -1;
  }
  
  .accuracy-image img {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .feature-banner-overlay {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    gap: 32px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .demo-phone {
    width: 180px;
  }
  
  .feature-banner img {
    height: 400px;
  }
  
  .feature-banner-overlay {
    background: linear-gradient(0deg, rgba(10,10,11,0.95) 0%, rgba(10,10,11,0.7) 50%, transparent 100%);
    align-items: flex-end;
    padding: 24px;
  }
  
  [data-theme="light"] .feature-banner-overlay {
    background: linear-gradient(0deg, rgba(248,248,250,0.98) 0%, rgba(248,248,250,0.8) 50%, transparent 100%);
  }
}

@media (max-width: 600px) {
  :root {
    --section-pad: 60px;
  }
  
  .site-header .container {
    height: 56px;
  }
  
  .btn-nav {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 260px;
  }
  
  .waitlist-form {
    flex-direction: column;
  }
  
  .waitlist-form input,
  .waitlist-form .btn {
    width: 100%;
  }
  
  .cta-box {
    padding: 32px 20px;
  }
}

/* ========================================
   Admin Dashboard Styles
   ======================================== */

.admin-body {
  background: var(--bg);
}

.admin-body .site-header {
  background: var(--bg-elevated);
}

.admin-body .site-header nav {
  display: flex;
  gap: 20px;
}

.admin-body .site-header nav a {
  font-size: 13px;
  color: var(--text-secondary);
}

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

.admin {
  padding: 100px 0 60px;
}

.admin h1 {
  font-size: 28px;
  margin-bottom: 24px;
}

.admin h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.card .label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card .value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  margin-top: 8px;
  color: var(--text);
}

.placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.placeholder h2 {
  margin-bottom: 16px;
}

.charts {
  margin-top: 32px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  height: 280px;
}

.chart-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-card canvas {
  display: block;
  width: 100% !important;
  height: calc(100% - 30px) !important;
}

.conversions {
  margin-top: 32px;
}

.conversions table,
.feedback table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.conversions th,
.conversions td,
.feedback th,
.feedback td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.conversions th,
.feedback th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-card);
}

.conversions td,
.feedback td {
  color: var(--text-secondary);
}

.conversions tbody tr:hover,
.feedback tbody tr:hover {
  background: var(--bg-hover);
}

.feedback {
  margin-top: 32px;
}

.feedback .pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg);
}

.feedback .pill.status-open {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.1);
}

.feedback .pill.status-resolved {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
}

.feedback .pill.status-dismissed {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.feedback .pill.status-draft {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.feedback .pill.status-published {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.1);
}

/* Feedback List Enhancements */
.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.feedback-header h1 {
  margin: 0;
}

.feedback-filters {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.feedback-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.feedback-row:hover {
  background: var(--bg-hover);
}

.feedback td.message-cell {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-link {
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.feedback-row:hover .view-link {
  opacity: 1;
}

/* Feedback Detail Page */
.feedback-detail-header {
  margin-bottom: 32px;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.back-link:hover {
  color: var(--primary);
}

.feedback-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.feedback-detail-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feedback-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.detail-card h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-card h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.message-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.existing-reply {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.existing-reply p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.reply-timestamp {
  font-size: 11px;
  color: var(--text-muted);
}

.no-reply {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  margin-bottom: 16px;
}

.reply-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reply-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  min-height: 100px;
}

.reply-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.current-status {
  margin-bottom: 16px;
}

.status-form .status-buttons {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sm:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
  color: var(--text);
}

.btn-sm.btn-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.detail-list {
  margin: 0;
}

.detail-list dt {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 12px;
}

.detail-list dt:first-child {
  margin-top: 0;
}

.detail-list dd {
  font-size: 13px;
  color: var(--text);
  margin: 4px 0 0;
}

.detail-list dd code {
  font-family: monospace;
  font-size: 11px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.detail-list dd a {
  color: var(--primary);
}

details.detail-card summary {
  cursor: pointer;
  user-select: none;
}

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

details.detail-card summary::before {
  content: "▶ ";
  font-size: 10px;
  color: var(--text-muted);
}

details.detail-card[open] summary::before {
  content: "▼ ";
}

.raw-json {
  font-family: monospace;
  font-size: 11px;
  background: var(--bg);
  padding: 12px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-top: 12px;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .feedback-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .feedback-detail-sidebar {
    order: -1;
  }
}

/* Dashboard Header with UTC Clock */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-header h1 {
  margin: 0;
}

.utc-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
}

.clock-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.clock-time {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
}

/* Section Titles */
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 32px 0 16px;
}

.section-title:first-of-type {
  margin-top: 0;
}

/* Secondary Cards (30-day totals) */
.cards-secondary .card {
  background: var(--bg);
  border-style: dashed;
}

.cards-secondary .card .value {
  font-size: 24px;
}

/* Status Cycling Button */
.status-cycle-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: none;
  transition: all 0.2s ease;
}

.status-cycle-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.cycle-arrow {
  font-size: 12px;
  opacity: 0.7;
}

.status-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* Timestamp Formatting */
.timestamp-friendly {
  display: block;
}

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

/* Food & Nutrient Display */
.food-id-code,
.user-id-code {
  display: block;
  margin-top: 4px;
  font-size: 10px !important;
  opacity: 0.7;
}

.nutrient-name {
  display: block;
  font-weight: 500;
}

.nutrient-key {
  display: block;
  margin-top: 4px;
  font-size: 10px !important;
  opacity: 0.7;
}

.nutrients-list {
  margin: 4px 0 0;
  padding-left: 16px;
  font-size: 13px;
}

.nutrients-list li {
  margin: 4px 0;
  color: var(--text);
}

/* Feedback Title Row */
.feedback-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.feedback-title-row h1 {
  margin: 0;
}

@media (max-width: 600px) {
  .dashboard-header,
  .feedback-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .utc-clock {
    align-self: flex-start;
  }
}

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
  
  .admin {
    padding: 80px 0 40px;
  }
}

/* ===================== AUTH PAGES ===================== */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 24px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header .brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}

.auth-header .logo-img {
  width: 36px;
  height: 36px;
}

.auth-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.auth-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.auth-form input {
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease;
}

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

.auth-form input::placeholder {
  color: var(--text-muted);
}

.auth-error {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--accent-red, #ef4444);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--accent-red, #ef4444);
  border-radius: var(--radius-sm);
}

.forgot-password {
  text-align: right;
  margin-top: -8px;
}

.forgot-password a {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.forgot-password a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.btn-full {
  width: 100%;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
  color: var(--text);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  margin-top: 24px;
}

.auth-footer p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.auth-footer p a {
  color: var(--primary);
  font-weight: 500;
}

.auth-footer .back-home {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer .back-home:hover {
  color: var(--primary);
}

/* Theme toggle on auth pages (positioned top right) */
.auth-theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

/* ===================== WEB APP ===================== */
.app-body {
  min-height: 100vh;
  background: var(--bg);
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

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

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

.app-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-header nav a {
  font-size: 13px;
  color: var(--text-secondary);
}

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

.app-header .user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.app-header .user-email {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main {
  padding: 84px 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.app-section {
  margin-bottom: 32px;
}

.app-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}

.food-log-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.food-log-card .food-info {
  flex: 1;
}

.food-log-card .food-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 4px;
}

.food-log-card .food-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.food-log-card .food-calories {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.food-log-card .food-calories span {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.loading-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ========================================
   Utility Classes for CSP Compliance
   ======================================== */

/* Header flex container */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Admin label */
.admin-label {
  color: var(--text-muted);
  font-size: 13px;
  margin-left: 8px;
}

/* Text utilities */
.text-nowrap {
  white-space: nowrap;
}

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

.monospace-id {
  font-family: monospace;
  font-size: 11px;
}

/* Hidden elements */
.hidden {
  display: none !important;
}

/* Clickable rows */
.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background-color: var(--bg-elevated);
}

/* Inline heading */
.inline-heading {
  display: inline;
}

/* Macro bar initial state */
.macro-bar-fill {
  width: 0%;
  transition: width 0.3s ease;
}

/* Margin utilities */
.mt-16 {
  margin-top: 16px;
}

/* ========================================
   Blog CMS + Blog Frontend
   ======================================== */

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.blog-admin-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.blog-admin-header h1 {
  margin-bottom: 4px;
}

.blog-admin-filters {
  margin-bottom: 18px;
}

.blog-filter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-filter-form input,
.blog-filter-form select {
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
}

.blog-filter-form input {
  min-width: 260px;
  flex: 1;
}

.blog-admin-table .view-link {
  opacity: 1;
}

.blog-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.blog-editor-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-editor-form h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.blog-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-upload-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-upload-form input[type="file"] {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-secondary);
  padding: 10px;
  font-size: 12px;
}

.markdown-tips {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.7;
}

.blog-index-page {
  padding: 104px 0 80px;
}

.blog-index-hero {
  margin-bottom: 48px;
  text-align: center;
}

.blog-index-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 16px 0 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.blog-index-hero p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 600px;
}

.blog-featured {
  margin-bottom: 32px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

[data-theme="light"] .featured-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.05);
}

.featured-card .blog-card-image-link {
  height: 100%;
}

.featured-card .blog-card-image {
  height: 100%;
  aspect-ratio: auto;
}

.featured-card .blog-card-body {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.featured-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.featured-card .blog-tags {
  margin-bottom: 24px;
}

.featured-card .btn-primary {
  align-self: flex-start;
  padding: 10px 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-grid.blog-grid-related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

[data-theme="light"] .blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.blog-card-image-link {
  display: block;
  overflow: hidden;
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
  font-weight: 500;
}

.meta-sep {
  opacity: 0.5;
}

.blog-card h2,
.blog-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.blog-card h3 {
  font-size: 20px;
}

.blog-card h2 a,
.blog-card h3 a {
  color: var(--text);
}

.blog-card p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
  flex: 1;
}

.blog-tags {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-read-link {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
  margin-top: auto;
}

.blog-card:hover .blog-read-link {
  color: var(--primary);
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.blog-pagination .btn-secondary {
  padding: 8px 20px;
  font-size: 14px;
}

.blog-pagination .page-info {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.blog-pagination .disabled {
  opacity: 0.5;
  pointer-events: none;
}

.blog-empty {
  text-align: center;
  padding: 80px 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  margin-top: 32px;
}

.blog-post-page {
  padding: 120px 0 80px;
}

.blog-post {
  max-width: 720px;
  margin: 0 auto;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 48px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text);
}

.blog-post-header h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.blog-post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  font-weight: 500;
}

.blog-post-header .blog-tags {
  justify-content: center;
  margin-bottom: 32px;
}

.blog-post-hero {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  margin: 0 0 48px;
}

.blog-post-content {
  color: var(--text);
  line-height: 1.8;
  font-size: 18px;
}

.blog-post-content h2 {
  font-size: 28px;
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.blog-post-content h3 {
  font-size: 22px;
  margin: 36px 0 16px;
  font-weight: 600;
}

.blog-post-content h4 {
  font-size: 18px;
  margin: 28px 0 12px;
  font-weight: 600;
}

.blog-post-content p,
.blog-post-content ul,
.blog-post-content ol,
.blog-post-content pre,
.blog-post-content table,
.blog-post-content blockquote {
  margin: 0 0 24px;
}

.blog-post-content ul,
.blog-post-content ol {
  padding-left: 24px;
}

.blog-post-content li {
  margin-bottom: 8px;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin-left: 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 20px;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 24px 0;
}

.blog-post-content pre,
.blog-post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.blog-post-content code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary);
}

.blog-post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  font-size: 14px;
}

.blog-post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
}

.blog-post-content th,
.blog-post-content td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 15px;
  text-align: left;
}

.blog-post-content th {
  background: var(--bg-card);
  font-weight: 600;
}

.blog-related {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.blog-related h2 {
  text-align: center;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

@media (max-width: 1000px) {
  .blog-edit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .blog-grid,
  .blog-grid.blog-grid-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .featured-card {
    grid-template-columns: 1fr;
  }
  
  .featured-card .blog-card-image {
    aspect-ratio: 16 / 9;
  }
  
  .featured-card .blog-card-body {
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .blog-grid,
  .blog-grid.blog-grid-related {
    grid-template-columns: 1fr;
  }
  
  .featured-card .blog-card-body {
    padding: 24px;
  }
  
  .blog-index-page {
    padding: 80px 0 64px;
  }
}

/* ---- Food SEO pages ---- */
.foods-index-page,
.food-detail-page {
  padding: 96px 0 80px;
}

.foods-index-hero {
  margin-bottom: 40px;
}

.foods-index-hero h1,
.food-detail-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 12px 0 12px;
}

.foods-index-hero p {
  max-width: 40rem;
  color: var(--text-secondary);
}

.foods-count {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.foods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.food-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  color: var(--text);
}

.food-card h2 {
  font-size: 1.1rem;
  margin: 0 0 6px;
  line-height: 1.35;
  color: var(--text);
}

.food-card h2 a {
  color: inherit;
  text-decoration: none;
}

.food-card h2 a:hover {
  color: var(--primary);
}

.food-brand {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.food-macros {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.food-macros .per-basis {
  opacity: 0.75;
}

.food-read-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
  text-decoration: none;
}

.foods-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
  color: var(--text-secondary);
}

.foods-pagination a {
  text-decoration: none;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-page,
.pagination-direction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: var(--bg-card);
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s ease;
}

.pagination-page:hover,
.pagination-direction:hover {
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), 0.55);
  background: var(--primary-muted);
  transform: translateY(-1px);
}

.pagination-page.is-current {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.22);
}

.pagination-ellipsis {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-height: 40px;
  color: var(--text-muted);
}

.pagination-direction {
  color: var(--primary);
  min-width: auto;
}

.foods-empty {
  color: var(--text-secondary);
}

.food-detail {
  max-width: 760px;
}

.food-detail-header {
  margin-bottom: 28px;
}

.food-detail-header .back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--text-secondary, #64748b);
  text-decoration: none;
  font-size: 0.92rem;
}

.food-source {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.food-source a {
  color: var(--text-secondary);
  text-underline-offset: 2px;
}

.food-source a:hover {
  color: var(--primary);
}

.food-macro-strip {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--text-secondary, #64748b);
}

.food-portion-panel {
  margin-top: 8px;
}

.food-portion-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: flex-end;
}

.food-portion-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-tertiary, #94a3b8);
}

.food-portion-serving {
  flex: 1 1 220px;
  min-width: 180px;
}

.food-qty-input,
.food-serving-select {
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text, #0f172a);
  background-color: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.12));
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 44px;
}

.food-qty-input {
  width: 96px;
  -moz-appearance: textfield;
}

.food-qty-input::-webkit-outer-spin-button,
.food-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.food-serving-select {
  width: 100%;
  max-width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
  color-scheme: light;
}

.food-serving-select option {
  background-color: var(--surface, #fff);
  color: var(--text, #0f172a);
}

.food-grams-line {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: var(--text-secondary, #64748b);
}

.food-macros-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 0;
  background: none;
  border: none;
}

.food-kcal-hero {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 110px;
  margin-right: auto;
}

.food-kcal-value {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text, #0f172a);
  font-variant-numeric: tabular-nums;
}

.food-kcal-unit {
  font-size: 0.95rem;
  color: var(--text-secondary, #64748b);
}

.food-macro-rings {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-left: auto;
}

.food-macro-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
}

.food-macro-ring {
  --food-protein: #e11d74;
  --food-carbs: #2563eb;
  --food-fat: #d97706;
  position: relative;
  width: 64px;
  height: 64px;
}

.food-macro-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.food-macro-ring .ring-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 3.5;
}

.food-macro-ring .ring-progress {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 87.965;
  stroke-dashoffset: 87.965;
  transition: stroke-dashoffset 0.35s ease;
}

.food-macro-ring.protein .ring-progress { stroke: var(--food-protein); }
.food-macro-ring.carbs .ring-progress { stroke: var(--food-carbs); }
.food-macro-ring.fat .ring-progress { stroke: var(--food-fat); }

.food-macro-ring .ring-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text, #0f172a);
}

.food-macro-item .macro-label {
  font-size: 0.78rem;
  font-weight: 600;
}

.food-macro-item .macro-label.protein { color: #e11d74; }
.food-macro-item .macro-label.carbs { color: #2563eb; }
.food-macro-item .macro-label.fat { color: #d97706; }

.food-macro-item .macro-amount {
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text, #0f172a);
}

[data-theme="dark"] .food-qty-input,
[data-theme="dark"] .food-serving-select {
  background-color: #1c1c22;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .food-serving-select {
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%94a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
}

[data-theme="dark"] .food-serving-select option {
  background-color: #1c1c22;
  color: #e4e4ea;
}

.food-section {
  margin: 28px 0;
}

.food-section h2 {
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.food-claims {
  margin: 0;
  padding-left: 1.2rem;
}

.food-claims li {
  margin: 0 0 10px;
  line-height: 1.5;
}

.food-goals p {
  margin: 0 0 8px;
}

.food-serving-note {
  font-size: 0.88rem;
  color: var(--text-tertiary, #94a3b8);
}

.food-nutrition-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: 12px;
}

.food-nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.food-nutrition-table th,
.food-nutrition-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.06));
}

.food-nutrition-table .food-nut-dv-col {
  text-align: right;
  width: 4.5rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.food-nutrition-table .nut-dv {
  font-weight: 600;
  color: var(--text-secondary);
}

.food-nutrition-table .nut-dv.is-empty {
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.7;
}

.food-nutrition-table thead th {
  background: var(--surface-secondary, rgba(0,0,0,0.03));
  font-weight: 600;
}

.food-nutrition-table tr.food-nut-section th {
  padding: 18px 14px 12px;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text, #0f172a);
  background: var(--surface-secondary, rgba(0,0,0,0.03));
  border-bottom-color: var(--border, rgba(0,0,0,0.08));
}

.food-nutrition-table tr.food-nut-section:first-child th {
  padding-top: 16px;
}

.food-nut-label.is-indent-1 {
  display: inline-block;
  padding-left: 1.15rem;
  color: var(--text-secondary, #64748b);
}

.food-nut-label.is-indent-2 {
  display: inline-block;
  padding-left: 2.2rem;
  color: var(--text-tertiary, #94a3b8);
}

.food-nutrition-table tr:last-child td {
  border-bottom: none;
}

.food-cta .cta {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--primary-muted);
  line-height: 1.5;
  color: var(--text);
}

.food-cta-top .cta {
  margin-top: 0;
  margin-bottom: 4px;
}

.food-cta .cta a {
  color: var(--primary, #e06b1f);
  font-weight: 600;
}

@media (max-width: 900px) {
  .foods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .foods-grid {
    grid-template-columns: 1fr;
  }

  .foods-index-page,
  .food-detail-page {
    padding: 80px 0 64px;
  }

  .foods-pagination {
    gap: 10px;
  }

  .pagination-pages {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .pagination-direction {
    flex: 1;
    max-width: 150px;
  }
}
