/* ==========================================================================
   NutriScan AI - Green & White Design System
   Faithfully inspired by TrustX (trustxx.netlify.app) & NutriLens (nutrilens.site)
   ========================================================================== */

:root {
  /* Brand Green Palette */
  --brand-forest-dark: #064A28;
  --brand-forest: #0C6B3A;
  --brand-forest-light: #0A5C32;
  --brand-emerald: #10B981;
  --brand-emerald-dark: #059669;
  --brand-emerald-light: #34D399;
  --brand-emerald-pale: #E6F5EE;
  --brand-emerald-glow: rgba(16, 185, 129, 0.22);
  
  /* Accent Gold / Ochre Palette */
  --brand-gold: #C9A84C;
  --brand-gold-light: #F5B726;
  --brand-gold-pale: #FDF3E7;

  /* Surfaces & Paper Backgrounds (Green & White Theme) */
  --bg-paper: #F8FAF9;
  --bg-paper-warm: #F2F7F4;
  --bg-paper-dim: #EBF3EE;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFCFB;
  --bg-surface-dark: #064A28;
  --white: #FFFFFF;

  /* Typography Colors */
  --text-ink: #0F172A;
  --text-slate: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: #A8CFBA;
  --slate-400: #64748B;
  --slate-500: #475569;

  /* Borders & Shadows */
  --border-line: #E2ECE6;
  --border-light: rgba(12, 107, 58, 0.15);
  --border-strong: #CBDED4;

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 12px rgba(6, 74, 40, 0.06);
  --shadow-card: 0 10px 30px -5px rgba(6, 74, 40, 0.08), 0 0 0 1px var(--border-line);
  --shadow-card-hover: 0 20px 40px -8px rgba(6, 74, 40, 0.15), 0 0 0 1px var(--brand-emerald);
  --shadow-dark: 0 20px 45px -10px rgba(6, 74, 40, 0.35);

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

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-paper);
  color: var(--text-ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 65% 55% at 75% 20%, rgba(12, 107, 58, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 75%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 50% 10%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Subtle Technical Grid Background */
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(var(--brand-forest) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-forest) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Watermark Background Title */
.bg-watermark {
  position: absolute;
  inset-x: 0;
  top: 12%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.bg-watermark span {
  font-family: var(--font-heading);
  font-size: 22vw;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(12, 107, 58, 0.03);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

/* ==========================================================================
   Header & Floating Navigation Bar (TrustX White & Green Style)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.nav-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(6, 74, 40, 0.06);
}

.nav-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2.5px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, transparent, var(--brand-gold), var(--brand-forest), var(--brand-gold), transparent);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-ink);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-forest-dark), var(--brand-forest));
  border: 1px solid var(--brand-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(6, 74, 40, 0.2);
  flex-shrink: 0;
}

.nav-brand span em {
  font-style: normal;
  color: var(--brand-forest);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 1;
  min-width: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-slate);
  transition: color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--brand-forest);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(12, 107, 58, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--brand-forest-dark);
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(12, 107, 58, 0.08);
  border: 1px solid var(--border-line);
  color: var(--brand-forest-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-mobile-toggle:hover {
  background: rgba(12, 107, 58, 0.15);
}

.nav-mobile-toggle .hidden {
  display: none !important;
}

/* Mobile Nav Drawer Dropdown */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 1rem;
  right: 1rem;
  max-width: 1240px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(6, 74, 40, 0.12);
  padding: 1rem 1.25rem;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
  z-index: 99;
}

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

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--text-ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-link:hover {
  background: rgba(12, 107, 58, 0.07);
  color: var(--brand-forest);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border-line);
  margin: 0.25rem 0;
}

.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-forest);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(12, 107, 58, 0.25);
}

/* Fluid Desktop Resizing & Breakpoint Controls */
@media (max-width: 1180px) {
  .nav-links {
    gap: 1.15rem;
  }
  .nav-links a {
    font-size: 0.84rem;
  }
  .nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 1040px) {
  .nav-links {
    gap: 0.85rem;
  }
  .nav-links a {
    font-size: 0.8rem;
  }
  .nav-link-secondary {
    display: none !important;
  }
}

@media (max-width: 880px) {
  .nav-links {
    display: none !important;
  }
  .nav-mobile-toggle {
    display: flex !important;
  }
}

/* ==========================================================================
   Hero Section (White, Crisp Slate & Forest Green)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 1.5rem 4.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--brand-emerald-pale);
  border: 1px solid rgba(12, 107, 58, 0.25);
  color: var(--brand-forest);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-ink);
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-forest-dark), var(--brand-forest), var(--brand-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.68;
  color: var(--text-slate);
  max-width: 550px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.88rem 1.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-forest-dark), var(--brand-forest));
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(6, 74, 40, 0.4);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #04361d, #09582f);
  box-shadow: 0 14px 30px -5px rgba(6, 74, 40, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.88rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--text-ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-paper-warm);
  border-color: var(--brand-forest);
  color: var(--brand-forest);
}

/* Floating Badges on Mockup */
.hero-mockup-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.floating-pill {
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.pill-left {
  left: -25px;
  bottom: 60px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--brand-emerald);
  color: var(--text-ink);
  animation: float 5s ease-in-out infinite;
}

.pill-right {
  right: -25px;
  top: 40px;
  background: rgba(6, 74, 40, 0.96);
  border: 1px solid var(--brand-gold);
  color: var(--white);
  animation: float 6s ease-in-out infinite 0.7s;
}

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

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

/* Phone Mockup Frame (TrustX Architecture) */
.phone-mockup {
  width: 100%;
  max-width: 330px;
  background: #0F172A;
  border-radius: 46px;
  padding: 10px;
  border: 3px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 30px 80px -15px rgba(6, 74, 40, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);
  position: relative;
}

.phone-screen {
  background: var(--bg-paper);
  border-radius: 36px;
  overflow: hidden;
  height: 570px;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  position: relative;
}

.phone-screen.phone-screen-img-mode {
  height: auto;
  padding: 0;
  display: block;
  background: #ffffff;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.phone-screen.phone-screen-img-mode .screen-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 14px;
  background: #0F172A;
  border-radius: 8px;
  margin: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.mockup-screen-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 36px;
  object-fit: cover;
}

.screen-notch {
  width: 90px;
  height: 18px;
  background: #0F172A;
  border-radius: 10px;
  margin: 0 auto 0.75rem;
}

.phone-header-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--brand-forest);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.mockup-plate-preview {
  width: 100%;
  height: 140px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mockup-plate-preview .plate-emoji {
  font-size: 3.5rem;
  margin-bottom: 0.25rem;
}

.mockup-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--brand-forest);
  color: var(--white);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
}

.mockup-macro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.mockup-mini-metric {
  background: var(--white);
  border: 1px solid var(--border-line);
  border-radius: 10px;
  padding: 0.45rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.mockup-metric-num {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
}

.mockup-metric-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.mockup-chart-preview {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.mockup-chart-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-forest);
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   Stat Banner Strip (TrustX Emerald & Gold Signature Component)
   ========================================================================== */
.stat-strip-container {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.stat-banner {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, #064A28 0%, #0C6B3A 40%, #0A5C32 100%);
  padding: 2.2rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(6, 74, 40, 0.35);
}

.stat-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, #10B981 0px, #10B981 4px, transparent 4px, transparent 8px, #C9A84C 8px, #C9A84C 12px, transparent 12px, transparent 16px);
}

.stat-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, #10B981 0px, #10B981 4px, transparent 4px, transparent 8px, #C9A84C 8px, #C9A84C 12px, transparent 12px, transparent 16px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

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

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

.stat-item {
  padding: 0 1rem;
}

.stat-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 900px) {
  .stat-item:not(:last-child) { border-right: none; }
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.88rem;
  color: #A8CFBA;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.stat-sub {
  font-size: 0.72rem;
  color: #6da784;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   Two Critical Pipelines Section (White Cards with Top Accent Stripes)
   ========================================================================== */
.section-wrapper {
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.section-header {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-forest);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 800;
  color: var(--text-ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-desc {
  color: var(--text-slate);
  font-size: 1.05rem;
  max-width: 650px;
}

.pipelines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

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

.pipeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.pipeline-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-emerald);
  box-shadow: var(--shadow-card-hover);
}

.pipeline-card-top-stripe {
  height: 5px;
  width: 100%;
}

.stripe-emerald {
  background: linear-gradient(90deg, transparent 10%, #0C6B3A 30%, #C9A84C 50%, #0C6B3A 70%, transparent 90%);
}

.stripe-cyan {
  background: linear-gradient(90deg, transparent 10%, #C9A84C 30%, #10B981 50%, #C9A84C 70%, transparent 90%);
}

.pipeline-content {
  padding: 2.2rem;
}

.pipeline-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-forest);
  margin-bottom: 0.5rem;
}

.pipeline-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-ink);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.pipeline-desc {
  font-size: 0.92rem;
  color: var(--text-slate);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Terminal Code Box inside Light Theme */
.terminal-box {
  background: #0B1320;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: #D8DEEC;
  overflow-x: auto;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }

.code-green { color: #8FE3C7; }
.code-amber { color: #F0C88A; }
.code-dim { color: #5B8A6E; }

/* Numbered Steps inside Pipeline */
.pipeline-steps {
  padding: 1.5rem 2.2rem;
  background: var(--bg-paper-warm);
  border-top: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-emerald-pale);
  color: var(--brand-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  font-size: 0.88rem;
  color: var(--text-slate);
  line-height: 1.5;
}

.step-text strong {
  color: var(--text-ink);
}

/* ==========================================================================
   Interactive Live Scanner & Forecaster Workspace (Clean Card)
   ========================================================================== */
.workspace-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
  .workspace-card { padding: 1.25rem; }
}

.workspace-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-line);
}

.workspace-title-box h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-ink);
  margin-bottom: 0.25rem;
}

.workspace-title-box p {
  font-size: 0.9rem;
  color: var(--text-slate);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg-paper-warm);
  border: 1px solid var(--border-line);
  color: var(--brand-forest);
}

.pill-badge.active-indicator {
  background: var(--brand-emerald-pale);
  border-color: rgba(12, 107, 58, 0.25);
  color: var(--brand-forest);
}

.pill-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 6px var(--brand-emerald);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

/* Dropzone & Presets */
.scan-dropzone {
  border: 2px dashed #CBDED4;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--bg-paper);
}

.scan-dropzone:hover, .scan-dropzone.dragover {
  border-color: var(--brand-forest);
  background: var(--brand-emerald-pale);
  transform: translateY(-2px);
}

.dropzone-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.dropzone-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-ink);
  margin-bottom: 0.35rem;
}

.dropzone-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.preset-strip {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-line);
}

.preset-title-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.preset-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-chip {
  background: var(--bg-paper);
  border: 1px solid var(--border-line);
  color: var(--text-ink);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover {
  background: var(--brand-emerald-pale);
  border-color: var(--brand-forest);
  color: var(--brand-forest);
}

/* Macro Rings Container */
.macro-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.macro-box {
  background: var(--bg-paper-warm);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.6rem;
  text-align: center;
}

.macro-num {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.macro-txt {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.color-cal { color: #D97706; }
.color-pro { color: var(--brand-forest); }
.color-carb { color: #0284C7; }
.color-fat { color: #E11D48; }

/* Ingredient Table */
.food-items-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.item-row, .food-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-paper);
  border: 1px solid var(--border-line);
}

.item-left-name, .food-item-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-ink);
}

.item-left-sub, .food-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.item-right-cal, .food-item-cals {
  font-weight: 800;
  color: #D97706;
  font-size: 0.9rem;
  text-align: right;
}

.item-right-macros, .food-item-macros {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: right;
}

.insights-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.insight-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-emerald-pale);
  border: 1px solid rgba(12, 107, 58, 0.2);
  color: var(--brand-forest-dark);
  font-size: 0.85rem;
  font-weight: 500;
}

/* TabPFN Column */
.tdee-card-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tdee-panel {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-line);
  background: var(--bg-paper-warm);
  text-align: center;
}

.tdee-panel.active-glow {
  border-color: var(--brand-forest);
  background: var(--brand-emerald-pale);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.tdee-big-val {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-forest);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.tdee-desc-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.chart-card-box {
  background: var(--bg-paper);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  height: 260px;
  position: relative;
}

.slider-panel {
  background: var(--bg-paper-warm);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  color: var(--text-slate);
  font-weight: 600;
}

.slider-highlight-num {
  font-weight: 800;
  color: var(--brand-forest);
}

/* Audio Player Card (ElevenLabs) */
.voice-coach-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #064A28, #0C6B3A);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(6, 74, 40, 0.25);
}

.voice-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coach-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-gold-light);
  text-transform: uppercase;
}

.audio-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--brand-gold-light);
  color: #064A28;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(245, 183, 38, 0.35);
}

.audio-trigger-btn:hover {
  transform: translateY(-2px);
  background: #fcd34d;
  box-shadow: 0 8px 25px rgba(245, 183, 38, 0.5);
}

.transcript-quote-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #E2ECE6;
  font-style: italic;
  border-left: 3px solid var(--brand-gold-light);
}

/* ==========================================================================
   NEW SECTION: Verified Nutrition & Ingredient Ledger (TrustX Style)
   ========================================================================== */
.ledger-card {
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.ledger-top-stripe {
  height: 4px;
  background: linear-gradient(90deg, transparent 5%, var(--brand-gold) 20%, var(--brand-forest) 50%, var(--brand-gold) 80%, transparent 95%);
}

.ledger-table-header {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.9fr 0.9fr;
  padding: 0.85rem 1.5rem;
  background: var(--bg-paper-dim);
  border-bottom: 1px solid var(--border-line);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-slate);
}

.ledger-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.9fr 0.9fr;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-line);
  align-items: center;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.ledger-row:hover {
  background: var(--brand-emerald-pale);
}

.ledger-row:last-child {
  border-bottom: none;
}

.badge-verified {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-emerald-pale);
  border: 1px solid rgba(12, 107, 58, 0.25);
  color: var(--brand-forest);
  font-size: 0.74rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .ledger-table-header { display: none; }
  .ledger-row { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ==========================================================================
   NEW SECTION: Metabolic Safety Guardrails (TrustX Darura Style)
   ========================================================================== */
.guardrail-box-contrast {
  background: linear-gradient(135deg, #064A28 0%, #0C6B3A 50%, #0A5C32 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}

.guardrail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 10;
}

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

.guardrail-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 650px) {
  .guardrail-subgrid { grid-template-columns: 1fr; }
}

.guardrail-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.guardrail-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* ==========================================================================
   NEW SECTION: "Designed so it can't fail silently" (TrustX 3-Card Grid)
   ========================================================================== */
.safety-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.safety-card {
  background: var(--white);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.safety-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-emerald);
  box-shadow: var(--shadow-card-hover);
}

.safety-card-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-forest), var(--brand-emerald));
}

.safety-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-emerald-pale);
  color: var(--brand-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Comparison Table (Clean White Surface)
   ========================================================================== */
.comparison-table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-line);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comp-table th, .comp-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-line);
}

.comp-table th {
  background: var(--bg-paper-warm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-ink);
  font-weight: 800;
}

.comp-table td:first-child {
  font-weight: 700;
  color: var(--text-slate);
}

.badge-tag-bad {
  display: inline-flex;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #FFE4E6;
  color: #BE123C;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-tag-good {
  display: inline-flex;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-emerald-pale);
  color: var(--brand-forest-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ==========================================================================
   NEW SECTION: Interactive FAQ Accordion
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-ink);
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand-forest);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-slate);
  font-size: 0.92rem;
  line-height: 1.65;
  border-top: 1px solid var(--bg-paper-warm);
  padding-top: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* ==========================================================================
   TrustX Signature Multi-Column Footer
   ========================================================================== */
footer {
  position: relative;
  background: linear-gradient(135deg, #043320 0%, #064A28 40%, #0A5C32 100%);
  color: #FFFFFF;
  padding: 5rem 1.5rem 2.5rem;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trustx-footer-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, #10B981 0px, #10B981 4px, transparent 4px, transparent 8px, #C9A84C 8px, #C9A84C 12px, transparent 12px, transparent 16px);
  z-index: 10;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 950px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 580px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-gold-light);
  margin-bottom: 1.25rem;
}

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

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #FFFFFF;
}

.footer-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-pill-btn:hover {
  border-color: var(--brand-gold);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 2rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-bar p {
  max-width: 650px;
  line-height: 1.6;
}

.footer-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--brand-emerald-light);
}

/* ==========================================================================
   Dedicated Plate Scanner Studio (scan.html)
   ========================================================================== */
.studio-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 4rem;
}

.studio-header-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-line);
}

.studio-title-area h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-ink);
  line-height: 1.2;
}

.studio-title-area p {
  color: var(--text-slate);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.studio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-forest);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: var(--brand-emerald-pale);
  border: 1px solid rgba(12, 107, 58, 0.2);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.studio-back-link:hover {
  background: var(--brand-forest);
  color: var(--white);
  transform: translateY(-1px);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

/* Studio Tabs (Segmented Control) */
.studio-tabs {
  display: flex;
  background: var(--bg-paper-dim);
  border-radius: var(--radius-md);
  padding: 0.35rem;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-line);
}

.studio-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-slate);
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-tab-btn.active {
  background: var(--white);
  color: var(--brand-forest);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-line);
}

.studio-tab-panel {
  display: none;
}

.studio-tab-panel.active {
  display: block;
}

/* Camera Live Viewfinder */
.camera-viewfinder-box {
  position: relative;
  width: 100%;
  height: 360px;
  background: #0F172A;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-video-stream {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-reticle {
  position: absolute;
  inset: 25px;
  border: 2px dashed rgba(16, 185, 129, 0.6);
  border-radius: 20px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-reticle-hint {
  background: rgba(6, 74, 40, 0.85);
  color: #FFFFFF;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.camera-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.shutter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #064A28, #0C6B3A);
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 15px rgba(6, 74, 40, 0.4);
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shutter-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(6, 74, 40, 0.6);
}

/* Image Preview Station */
.preview-image-box {
  width: 100%;
  max-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-line);
  background: var(--bg-paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 1rem;
}

.preview-image-box img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.preview-tags-layer {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  pointer-events: none;
}

.plate-tag-badge {
  background: rgba(6, 74, 40, 0.9);
  color: #FFFFFF;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Pipeline Progress Stepper */
.progress-stepper {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0;
  position: relative;
}

.progress-stepper::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border-line);
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.step-node-bubble {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border-strong);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  transition: all 0.3s ease;
}

.step-node.completed .step-node-bubble {
  background: var(--brand-forest);
  border-color: var(--brand-forest);
  color: var(--white);
}

.step-node.active .step-node-bubble {
  background: var(--brand-gold-light);
  border-color: var(--brand-gold);
  color: #064A28;
  box-shadow: 0 0 12px rgba(245, 183, 38, 0.5);
}

.step-node-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

/* Daily Budget Bar */
.daily-budget-card {
  background: var(--bg-paper-warm);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
}

.budget-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-ink);
  margin-bottom: 0.5rem;
}

.budget-bar-track {
  width: 100%;
  height: 10px;
  background: var(--border-line);
  border-radius: 999px;
  overflow: hidden;
}

.budget-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-forest), var(--brand-emerald));
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */

/* ---- Tablet & Small Laptop (max-width: 768px) ---- */
@media (max-width: 768px) {
  /* Nav */
  .nav-wrapper {
    padding: 0.6rem 1rem;
  }
  .nav-brand {
    font-size: 1.1rem;
  }
  .nav-brand-logo {
    width: 30px;
    height: 30px;
  }

  /* Hero */
  .hero-section {
    min-height: auto;
    padding: 6.5rem 1.25rem 3rem;
  }
  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Phone Mockup */
  .phone-mockup {
    max-width: 260px;
    margin: 0 auto;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
  }
  .section-subtitle {
    font-size: 0.95rem !important;
    padding: 0 0.5rem;
  }

  /* Content sections padding */
  .content-section {
    padding: 3rem 1.25rem !important;
  }

  /* Comparison table scroll */
  .comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table-wrap table {
    min-width: 600px;
  }

  /* Watermark */
  .bg-watermark { display: none; }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }
  .footer-bottom-bar {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center;
  }

  /* Stat grid */
  .stat-num {
    font-size: 1.8rem;
  }
}

/* ---- Mobile Phone (max-width: 480px) ---- */
@media (max-width: 480px) {
  /* Nav - tight spacing */
  header {
    padding: 0.5rem 0.5rem;
  }
  .nav-wrapper {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
  }
  .nav-cta {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }
  .nav-brand {
    font-size: 1rem;
  }

  /* Hero - stacked, compact */
  .hero-section {
    padding: 5.5rem 1rem 2rem;
  }
  .hero-badge-pill {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }
  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }
  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  /* Phone Mockup */
  .phone-mockup {
    max-width: 250px;
    border-radius: 36px;
    padding: 8px;
    margin: 0 auto;
  }
  .phone-screen {
    border-radius: 28px;
  }
  .phone-screen.phone-screen-img-mode .screen-notch {
    width: 56px;
    height: 11px;
    top: 5px;
    border-radius: 6px;
  }
  .mockup-screen-img {
    border-radius: 28px;
  }

  /* Technology badges - allow wrap */
  .hero-tech-partners {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Section padding */
  .content-section {
    padding: 2rem 1rem !important;
  }

  /* Cards */
  .section-card {
    padding: 1.25rem !important;
    border-radius: var(--radius-md) !important;
  }

  /* FAQ */
  details summary {
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
  }

  /* Footer */
  footer {
    padding: 2.5rem 1rem !important;
  }
}
