/* CalSage.app — match Android app greens */
:root {
  --bg: #F6F6F6;
  --bg-2: #FFFFFF;
  --ink: #2C3E50;
  --muted: #6C7A89;
  --line: rgba(44, 62, 80, 0.1);
  --green: #00C853;
  --green-dark: #388E3C;
  --green-deep: #2E7D32;
  --green-soft: #E0F4F2;
  --accent: #FFB347;
  --orange: #FE8139;
  --dark: #1B5E20;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(0, 200, 83, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.bg-orb {
  position: fixed;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}
.bg-orb-a {
  top: -12vw; right: -10vw;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.22), transparent 70%);
}
.bg-orb-b {
  bottom: 10vh; left: -16vw;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.28), transparent 70%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1rem;
  min-height: var(--header-h);
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(14px);
  background: rgba(246, 246, 246, 0.9);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  color: var(--ink);
  padding: 0.35rem 1rem 0.35rem 0.35rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 200, 83, 0.1);
}
.brand-badge-sm { padding: 0.3rem 0.85rem 0.3rem 0.3rem; font-size: 0.95rem; }
.brand-logo {
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  padding: 4px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  display: block;
  flex-shrink: 0;
}
.brand-badge-sm .brand-logo {
  width: 28px;
  height: 28px;
  padding: 3px;
  border-radius: 8px;
}
.brand-text { font-size: 1.02rem; }

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}
.header-search-icon {
  position: absolute;
  left: 0.95rem;
  color: var(--muted);
  pointer-events: none;
  font-size: 0.9rem;
}
.header-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  outline: none;
  color: var(--ink);
}
.header-search input:focus {
  border-color: rgba(0, 200, 83, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  justify-self: end;
}
.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--green-dark); }
.site-nav .nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.site-nav .nav-cta:hover { background: var(--green-dark); color: #fff !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  padding: 0; cursor: pointer;
  color: var(--ink);
  font-size: 1.25rem;
}
.nav-toggle [data-nav-close] { display: none; }
.nav-toggle[aria-expanded="true"] [data-nav-open] { display: none; }
.nav-toggle[aria-expanded="true"] [data-nav-close] { display: inline-block; }

main { padding: 0 1.25rem 4rem; }

/* Type */
.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.display-sm { font-size: clamp(1.9rem, 4vw, 3rem); }
.display em {
  font-style: normal;
  color: var(--green);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}
.lede-center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 200, 83, 0.28);
}
.btn-dark:hover { background: var(--green-dark); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: rgba(0, 200, 83, 0.35); background: rgba(255,255,255,0.7); }
.btn-wide { width: 100%; max-width: 280px; }
.btn-icon { flex-shrink: 0; }
.btn .fa-brands,
.btn .fa-solid { margin-right: 0.15rem; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.hero-meta { color: var(--muted); font-size: 0.92rem; margin: 0; }
.hero-visual {
  display: grid;
  place-items: center;
  min-height: 460px;
}
.hero-visual .phone-scan {
  width: min(100%, 400px);
}
.phone-mock {
  margin: 0;
  width: min(300px, 76%);
  position: relative;
  z-index: 2;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.phone-mock img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 40px rgba(44, 62, 80, 0.22));
}
.phone-mock-back {
  position: absolute;
  right: 6%;
  top: 6%;
  transform: rotate(7deg) translateX(16%);
  z-index: 1;
  width: min(230px, 58%);
  opacity: 0.96;
}
.phone-mock-back img {
  filter: drop-shadow(0 16px 28px rgba(44, 62, 80, 0.16));
}

.placeholder-hero,
.placeholder-thumb {
  background:
    linear-gradient(135deg, rgba(0, 200, 83, 0.14), rgba(255,255,255,0.92) 45%, rgba(44, 62, 80, 0.04)),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(44, 62, 80, 0.03) 10px, rgba(44, 62, 80, 0.03) 20px);
  display: grid;
  place-items: center;
}
.placeholder-inner {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}
.placeholder-label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.placeholder-hint { font-size: 0.82rem; }
.placeholder-icon {
  display: block;
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 0.4rem;
  opacity: 0.85;
}
.placeholder-thumb-lg .placeholder-icon { font-size: 2.4rem; }

.float-chip,
.float-card {
  position: absolute;
  z-index: 3;
  box-shadow: 0 14px 32px rgba(44, 62, 80, 0.16);
}
.float-chip {
  background: var(--green-deep);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
.float-card {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  min-width: 118px;
  display: grid;
  gap: 0.1rem;
  will-change: transform;
}
.float-card .mini-bar { margin-top: 0.45rem; }
.is-floating {
  animation: float-bob 4.5s ease-in-out infinite;
}
.macro-float-fats.is-floating { animation-delay: -0.8s; }
.macro-float-carbs.is-floating { animation-delay: -1.6s; }
.macro-float-protein.is-floating { animation-delay: -2.4s; }
.kcal-card.is-floating { animation-delay: -1.2s; }
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .is-floating { animation: none; }
}
.float-card-icon {
  font-size: 0.85rem;
  color: var(--green);
  margin-bottom: 0.15rem;
}
.float-card-accent .float-card-icon { color: inherit; opacity: 0.9; }
.float-card strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.float-card span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}
.float-card-accent {
  background: var(--green);
  color: #fff;
  border-color: transparent;
}
.float-card-accent span { color: rgba(255,255,255,0.82); }

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 0;
}
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.section-head { text-align: center; margin-bottom: 2rem; }
.section-cta { text-align: center; margin-top: 1.75rem; }

/* Macro detail demo — empty phone PNG + live sheet content */
.macros-demo {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  padding: 0;
}
.macros-hint {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.macros-hint i { color: var(--green-deep); font-size: 0.78rem; }
.macros-demo.is-live .macros-hint {
  opacity: 1;
  transform: none;
  transition-delay: 0.95s;
}
.macros-demo.is-hinted .macros-step-plus {
  animation: macros-plus-press 2.5s ease 0.2s 1;
}
@keyframes macros-plus-press {
  0%, 20%, 40%, 58%, 78%, 100% { transform: scale(1); background: transparent; }
  24%, 62% { transform: scale(1.14); background: rgba(0, 200, 83, 0.22); }
}
.section-macros .section-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.macros-phone {
  position: relative;
  width: min(292px, 78vw);
  aspect-ratio: 740 / 1517;
  filter: drop-shadow(0 24px 48px rgba(44, 62, 80, 0.22));
}
.macros-phone-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.macros-sheet {
  position: absolute;
  /* sits on white sheet below baked-in Lunch pill */
  top: 36.2%;
  left: 6.2%;
  right: 7.4%;
  bottom: 5.2%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 0.1rem 0.15rem;
  font-family: var(--font);
  color: #1a1a1a;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible;
}
.macros-demo.is-live .macros-sheet {
  opacity: 1;
  transform: none;
}
.macros-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  align-items: center;
}
.macros-food-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #2C3E50;
}
.macros-stepper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  background: #F0F1F5;
  border-radius: 999px;
  padding: 0.1rem;
  flex-shrink: 0;
  overflow: visible;
}
.macros-step-btn {
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2C3E50;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.macros-step-btn:hover { background: rgba(44, 62, 80, 0.08); }
.macros-step-btn:active { transform: scale(0.92); }
.macros-qty {
  min-width: 0.95rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
}
.macros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.macro-tile {
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
}
.macros-demo.is-live .macro-tile {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.65s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.15s ease;
}
.macros-demo.is-live .macro-tile:nth-child(1) { transition-delay: 0.12s; }
.macros-demo.is-live .macro-tile:nth-child(2) { transition-delay: 0.26s; }
.macros-demo.is-live .macro-tile:nth-child(3) { transition-delay: 0.4s; }
.macros-demo.is-live .macro-tile:nth-child(4) { transition-delay: 0.54s; }
.macro-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(44, 62, 80, 0.12); }
.macro-tile:active { transform: scale(0.97); }
.macro-tile.is-pulse { animation: macro-tile-pulse 0.28s ease; }
@keyframes macro-tile-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.96); }
  100% { transform: scale(1); }
}
.macro-tile-head {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.95;
}
.macro-tile strong,
.macro-tile [data-macro-val] {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.macro-tile-kcal { background: #2C3E50; color: #fff; }
.macro-tile-carbs { background: #F5C15D; color: #2C3E50; }
.macro-tile-protein { background: #F07171; color: #fff; }
.macro-tile-fats { background: #B57DFF; color: #fff; }
.macros-health {
  background: #DFF7E8;
  border-radius: 12px;
  padding: 0.85rem 0.7rem 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  flex-shrink: 0;
}
.macros-demo.is-live .macros-health {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease 0.5s, transform 0.7s ease 0.5s;
}
.macros-health-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: #1B5E20;
  margin-bottom: 0.5rem;
}
.macros-health-top strong { font-weight: 600; }
.macros-health-top i { margin-right: 0.25rem; }
.macros-health-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.15);
  overflow: hidden;
}
.macros-health-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #43A047;
  transition: width 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.65s;
}
.macros-demo.is-live .macros-health-bar.is-on i { width: var(--w); }
.macros-actions {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: auto;
  padding-top: 0.15rem;
  opacity: 0;
  transform: translateY(8px);
  flex-shrink: 0;
}
.macros-demo.is-live .macros-actions {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease 0.7s, transform 0.7s ease 0.7s;
}
.macros-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}
.macros-btn:active { transform: scale(0.97); }
.macros-btn-log {
  background: #00C853;
  color: #fff;
}
.macros-btn-log .fa-plus,
.macros-btn-log .fa-check {
  font-size: 0.72rem;
}
.macros-btn-log.is-logged {
  background: #2E7D32;
}
@media (prefers-reduced-motion: reduce) {
  .macros-sheet,
  .macro-tile,
  .macros-health,
  .macros-actions,
  .macros-hint {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .macros-health-bar i { transition: none; width: var(--w); }
  .macros-demo.is-hinted .macros-step-plus { animation: none; }
}

.track-mock {
  margin: 0 auto;
  width: min(100%, 520px);
  height: auto;
  line-height: 0;
}
.track-mock img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}
.section-track .section-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}
.track-sub {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.track-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.7rem;
}
.track-perks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.track-perks i {
  margin-top: 0.15rem;
  color: var(--orange);
  font-size: 0.9rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 1.1rem;
}
.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}
.feature-list strong { display: block; margin-bottom: 0.15rem; }
.feature-list li > div > span { color: var(--muted); font-size: 0.95rem; }
.feature-icon {
  width: 2.25rem; height: 2.25rem; margin-top: 0.05rem;
  display: grid; place-items: center;
  background: rgba(0, 200, 83, 0.12);
  color: var(--green-deep);
  border-radius: 12px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Phone scan mock — full bowl, phone overlay, transparent screen */
.phone-scan {
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
  overflow: visible;
}
.phone-scan-bowl {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  width: 100%;
}
.phone-scan-food {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(44, 62, 80, 0.18));
}
.phone-scan-stage {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(250px, 66%);
  aspect-ratio: 740 / 1517;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 22px 40px rgba(44, 62, 80, 0.28));
  pointer-events: none;
}
.phone-scan-viewport {
  position: absolute;
  /* matches transparent hole in phone-mockup-top-layer.webp */
  inset: 21.8% 13.4% 29.5%;
  z-index: 1;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
}
.phone-scan-beam {
  /* width = viewport width; tweak left/right to inset from camera brackets */
  --beam-inset: 0%;
  position: absolute;
  left: var(--beam-inset);
  right: var(--beam-inset);
  top: 8%;
  height: 2px;
  z-index: 2;
  border-radius: 999px;
  background: #69F0AE;
  box-shadow:
    0 0 4px 1px rgba(255, 255, 255, 0.7),
    0 0 10px 2px rgba(0, 200, 83, 0.85),
    0 0 22px 4px rgba(0, 200, 83, 0.45);
  opacity: 0;
  pointer-events: none;
}
.phone-scan-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}
.phone-scan-card {
  position: absolute;
  top: 6%;
  right: -6%;
  z-index: 4;
  width: 188px;
  padding: 0.85rem 0.95rem 1rem;
  display: grid;
  gap: 0;
  opacity: 0;
  transform: translate3d(18px, 16px, 0) scale(0.88);
  pointer-events: none;
  color: var(--ink);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(232, 255, 242, 0.94) 55%, rgba(255, 255, 255, 0.96));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 200, 83, 0.28);
  border-radius: 22px;
  box-shadow:
    0 20px 44px rgba(0, 200, 83, 0.16),
    0 10px 28px rgba(44, 62, 80, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}
.phone-scan-card-top {
  display: flex;
  align-items: center;
  margin-bottom: 0.55rem;
}
.phone-scan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem 0.28rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-deep);
  background: rgba(0, 200, 83, 0.14);
}
.phone-scan-badge i {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  color: #fff;
  background: linear-gradient(135deg, #00C853, #69F0AE);
  box-shadow: 0 2px 8px rgba(0, 200, 83, 0.35);
}
.phone-scan-card-value {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.phone-scan-card-value small {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 0.1rem;
}
.phone-scan-macros {
  display: flex;
  gap: 0.35rem;
  margin: 0.65rem 0 0.15rem;
}
.phone-scan-macros span {
  flex: 1;
  text-align: center;
  padding: 0.28rem 0.2rem;
  border-radius: 10px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 200, 83, 0.1);
}
.phone-scan-macros b {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.phone-scan-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0.6rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  opacity: 0;
  transform: translateY(6px);
}
.phone-scan-card-meta [data-scan-pct] {
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}
.phone-scan-card .mini-bar {
  height: 11px;
  margin-top: 0;
  border-radius: 999px;
  background: rgba(0, 200, 83, 0.14);
  overflow: hidden;
  opacity: 0;
  transform: scaleX(0.7);
  transform-origin: left center;
}
.phone-scan-card .mini-bar i,
.phone-scan-card .bar-kcal i,
.phone-scan-card.float-stat .bar-kcal i {
  border-radius: 999px;
  background: linear-gradient(90deg, #00C853 0%, #69F0AE 100%);
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.45);
}
.phone-scan.is-scanning .phone-scan-beam {
  opacity: 1;
  animation: phone-scan-y 2.8s ease-in-out infinite;
}
.phone-scan.is-found .phone-scan-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
  animation: phone-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    float-bob 4.5s ease-in-out 0.85s infinite;
}
.phone-scan.is-found .phone-scan-card-meta {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease 0.35s, transform 0.45s ease 0.35s;
}
.phone-scan.is-found .phone-scan-card .mini-bar {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease 0.45s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}
@keyframes phone-card-in {
  0% { opacity: 0; transform: translate3d(18px, 16px, 0) scale(0.88); }
  70% { opacity: 1; transform: translate3d(-2px, -3px, 0) scale(1.03); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes phone-scan-y {
  0%, 100% { top: 6%; }
  50% { top: calc(100% - 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-scan-beam { animation: none !important; opacity: 0.7; top: 42%; }
  .phone-scan-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .phone-scan-card-meta,
  .phone-scan-card .mini-bar {
    opacity: 1;
    transform: none;
  }
}
.kcal-card {
  background: var(--card);
  border-radius: 18px;
  padding: 0.85rem 1rem 0.95rem;
  box-shadow: 0 14px 32px rgba(44, 62, 80, 0.16);
  width: 158px;
  display: grid;
  gap: 0.15rem;
  z-index: 4;
  border: 1px solid var(--line);
}
.kcal-card strong { font-size: 1.2rem; }
.kcal-card > span:not(.float-stat-icon) { font-size: 0.78rem; color: var(--muted); }
.macro-float {
  min-width: 138px;
  z-index: 4;
}
.macro-float-carbs {
  position: absolute;
  left: -12%;
  top: 28%;
}
.macro-float-fats {
  position: absolute;
  right: -14%;
  bottom: 6%;
}
.macro-float-protein {
  position: absolute;
  left: 18%;
  bottom: -6%;
}
.float-stat {
  align-content: start;
}
.float-stat-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}
.float-stat-kcal {
  background: rgba(44, 62, 80, 0.1);
  color: #2C3E50;
}
.float-stat-carbs {
  background: rgba(255, 179, 71, 0.22);
  color: #C77700;
}
.float-stat-fats {
  background: rgba(124, 92, 232, 0.16);
  color: #6B4FD8;
}
.float-stat-protein {
  background: rgba(232, 93, 93, 0.16);
  color: #D64545;
}
.section-visual-float {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}
.mini-bar, .bar {
  height: 6px;
  background: rgba(44, 62, 80, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.35rem;
}
.float-stat .mini-bar {
  height: 10px;
  margin-top: 0.55rem;
  background: rgba(44, 62, 80, 0.1);
}
.mini-bar i, .bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-carbs i { background: var(--accent); }
.bar-fats i { background: #5b8def; }
.bar-protein i { background: var(--green); }
.float-stat .bar-kcal i { background: linear-gradient(90deg, #2C3E50, #4A6274); }
.float-stat .bar-carbs i { background: linear-gradient(90deg, #FFB347, #FE8139); }
.float-stat .bar-fats i { background: linear-gradient(90deg, #9B7CF0, #6B4FD8); }
.float-stat .bar-protein i { background: linear-gradient(90deg, #F07171, #D64545); }
.bar.is-on i, .mini-bar.is-on i { width: var(--w); }

.macro-stack {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.macro-row {
  display: grid;
  grid-template-columns: 64px 1fr 48px;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 500;
}

/* Food cards */
.food-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.food-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(11,11,11,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.food-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.food-card-thumb {
  aspect-ratio: 4 / 3;
}
.placeholder-thumb-lg {
  aspect-ratio: 1;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.food-card-body { padding: 1rem 1.05rem 1.15rem; }
.food-card-title {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  line-height: 1.3;
  font-weight: 600;
}
.food-card-kcal { margin: 0 0 0.25rem; font-size: 0.92rem; }
.food-card-macros { margin: 0; color: var(--muted); font-size: 0.82rem; }

.section-cta-band { padding-top: 1rem; }
.cta-band {
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark) 55%, #1B5E20);
  color: #fff;
  border-radius: 32px;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -60px;
  top: -80px;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-band .display { color: #fff; margin-top: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.82); margin: 0 0 1.1rem; }
.cta-band-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}
.cta-band-perks li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 0.88rem;
  font-weight: 600;
}
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.cta-band .btn-dark {
  background: #fff;
  color: var(--green-deep);
  box-shadow: none;
}
.cta-band .btn-dark:hover { background: var(--green-soft); color: var(--green-deep); }
.btn-ghost-on-dark {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-ghost-on-dark:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

.play-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.95rem;
}
.play-rating-stars {
  display: inline-flex;
  gap: 0.15rem;
  color: #F5B301;
}
.play-rating strong { font-size: 1.1rem; letter-spacing: -0.02em; }
.play-rating-on-dark {
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}
.play-rating-on-dark span { color: rgba(255,255,255,0.78); }

.empty-note {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
}

/* Foods page */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 0 1rem;
}
.foods-toolbar {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
}
.search-form {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.search-form input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  outline: none;
}
.search-form input:focus { border-color: rgba(0, 200, 83, 0.45); box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.12); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
}
.chip.is-active { background: var(--green); color: #fff; border-color: var(--green); }
.results-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }
.toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.sort-form {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.sort-form select {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  color: var(--ink);
}
.food-grid-page { max-width: var(--max); margin: 0 auto; }
.pager {
  max-width: var(--max);
  margin: 2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.pager-pages {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.pager-num {
  min-width: 2.1rem;
  height: 2.1rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 600;
}
.pager-num.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.pager-ellipsis { color: var(--muted); padding: 0 0.15rem; }

/* Food detail */
.food-detail {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.25rem;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.crumbs a:hover { color: var(--green-dark); }
.food-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.food-serving { color: var(--muted); margin: -0.4rem 0 1.25rem; }
.food-serving .dot { margin: 0 0.35rem; }
.food-serving a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.food-serving a:hover { color: var(--green-dark); }
.kcal-hero {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.kcal-number {
  font-family: var(--display);
  font-size: clamp(3.2rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.kcal-unit { font-size: 1.2rem; color: var(--muted); font-weight: 600; }
.macro-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
}
.macro-pill {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.macro-pill-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.macro-pill-top span {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.macro-pill-top strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.macro-pill .bar {
  height: 11px;
  margin-top: 0;
  border-radius: 999px;
  background: rgba(44, 62, 80, 0.08);
}
.macro-pill .bar i {
  border-radius: 999px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.25rem; }
.tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 200, 83, 0.12);
  color: var(--green-deep);
  text-decoration: none;
}
a.tag:hover { background: rgba(0, 200, 83, 0.22); }

.food-blurb {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}
.food-blurb p { margin: 0; color: var(--muted); }

.serving-calc { margin-bottom: 2rem; }
.serving-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.serving-calc-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.serving-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
}
.serving-step-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.serving-step-btn:hover { background: rgba(0, 200, 83, 0.12); }
.serving-qty {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.serving-calc .kcal-hero { margin-bottom: 1rem; }

.related-section .section-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
}
.related-section .section-sub a:hover { color: var(--green-dark); }

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}
.legal-doc .legal-updated { margin-bottom: 1.5rem; }
.legal-doc .legal-lead { font-size: 1.05rem; margin-bottom: 1.75rem; }
.legal-doc h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 1.75rem 0 0.65rem;
}
.legal-doc p, .legal-doc li { color: var(--muted); line-height: 1.65; }
.legal-doc ul { padding-left: 1.2rem; margin: 0.5rem 0 1rem; }
.legal-doc li { margin-bottom: 0.45rem; }
.legal-doc code {
  font-size: 0.88em;
  background: var(--bg-2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--green);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.skip-link:focus { top: 1rem; }

/* Health score highlight */
.health-score {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.35rem 0 1.35rem;
  padding: 1rem 1.15rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 200, 83, 0.22);
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.12), rgba(255, 255, 255, 0.9) 55%);
  box-shadow: 0 10px 28px rgba(0, 200, 83, 0.08);
}
.health-score.is-mid {
  border-color: rgba(255, 179, 71, 0.35);
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.16), rgba(255, 255, 255, 0.92) 55%);
  box-shadow: 0 10px 28px rgba(255, 179, 71, 0.1);
}
.health-score.is-low {
  border-color: rgba(232, 106, 91, 0.28);
  background: linear-gradient(135deg, rgba(232, 106, 91, 0.12), rgba(255, 255, 255, 0.92) 55%);
  box-shadow: 0 10px 28px rgba(232, 106, 91, 0.08);
}
.health-score-ring {
  --score: 7;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(var(--green) calc(var(--score) * 10%), rgba(44, 62, 80, 0.1) 0);
  flex-shrink: 0;
}
.health-score.is-mid .health-score-ring {
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(var(--accent) calc(var(--score) * 10%), rgba(44, 62, 80, 0.1) 0);
}
.health-score.is-low .health-score-ring {
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(#e86a5b calc(var(--score) * 10%), rgba(44, 62, 80, 0.1) 0);
}
.health-score-ring strong {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.health-score-ring span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.1rem;
}
.health-score-label {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.health-score.is-mid .health-score-label { color: #b8731a; }
.health-score.is-low .health-score-label { color: #c24b3c; }
.health-score-title {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.health-score-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Food detail FAQ */
.food-faq {
  margin: 0 0 1.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.food-faq-head {
  margin-bottom: 0.95rem;
}
.food-faq-title {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.food-faq-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.food-faq-list { display: grid; gap: 0.6rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
  border-color: rgba(0, 200, 83, 0.22);
}
.faq-item[open] {
  border-color: rgba(0, 200, 83, 0.32);
  box-shadow: 0 10px 28px rgba(0, 200, 83, 0.08);
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  flex: 1;
  line-height: 1.35;
  font-size: 0.98rem;
  color: var(--ink);
}
.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.75rem;
  transition: transform 0.25s ease, color 0.2s ease;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--green-deep);
}
.faq-a {
  padding: 0 1.1rem 1.05rem;
  border-top: 1px solid transparent;
}
.faq-item[open] .faq-a {
  border-top-color: var(--line);
  padding-top: 0.85rem;
}
.faq-a p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.food-card-thumb img,
.food-aside-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.food-aside-thumb {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 1;
  background: var(--card);
  box-shadow: var(--shadow);
}
.food-aside-thumb.has-image {
  border: 1px solid var(--line);
}
.food-aside-health {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-deep);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.16);
  backdrop-filter: blur(8px);
}
.food-aside-health i { margin-right: 0.15rem; color: var(--green); }
.food-aside-health strong { font-size: 1.05rem; }
.food-aside-health span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.food-cta .cta-note { color: var(--muted); font-size: 0.88rem; margin: 0.75rem 0 0; }
.sticky-cta {
  position: sticky;
  bottom: 1rem;
  background: rgba(246, 246, 246, 0.94);
  backdrop-filter: blur(10px);
  padding: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.aside-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 24px rgba(11,11,11,0.04);
}
.aside-title { margin: 0 0 0.85rem; font-size: 1.05rem; }
.facts { margin: 0; display: grid; gap: 0.65rem; }
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.related-section { padding-top: 2.5rem; }

/* Home FAQ */
.home-faq {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.65rem;
}
.home-faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-faq-item:hover {
  border-color: rgba(0, 200, 83, 0.22);
}
.home-faq-item[open] {
  border-color: rgba(0, 200, 83, 0.32);
  box-shadow: 0 10px 28px rgba(0, 200, 83, 0.08);
}
.home-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-q {
  flex: 1;
  font-size: 1rem;
  color: var(--ink);
}
.home-faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.78rem;
  transition: transform 0.25s ease, color 0.2s ease;
}
.home-faq-item[open] .home-faq-chevron {
  transform: rotate(180deg);
  color: var(--green-deep);
}
.home-faq-a {
  padding: 0 1.15rem 1.1rem;
  border-top: 1px solid transparent;
}
.home-faq-item[open] .home-faq-a {
  border-top-color: var(--line);
  padding-top: 0.85rem;
}
.home-faq-a p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 3rem;
  background: rgba(255,255,255,0.35);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}
.site-footer .brand-badge {
  width: max-content;
  max-width: 100%;
}
.footer-tag { margin: 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover { color: var(--green-dark); }
.footer-copy { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--muted); }

/* Motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-stagger] > *.is-in {
  transition-delay: calc(var(--i, 0) * 60ms);
}

@media (max-width: 960px) {
  .hero,
  .section-grid,
  .food-detail-grid { grid-template-columns: 1fr; }
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .phone-mock-back { display: none; }
  .hero-visual { min-height: 420px; }
  .phone-mock { width: min(270px, 78%); }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "search search";
    --header-h: auto;
  }
  .brand-badge { grid-area: brand; justify-self: start; }
  .header-search {
    grid-area: search;
    max-width: none;
    justify-self: stretch;
  }
  .nav-toggle {
    display: inline-block;
    grid-area: toggle;
    justify-self: end;
  }
  .site-nav {
    position: fixed;
    inset: 7.5rem 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 50;
  }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-cta { text-align: center; }
  .macro-float-fats { right: 0; }
  .macro-float-carbs { left: 0; }
  .macro-float-protein { left: 8%; bottom: -2%; }
  .section-visual-float { min-height: 480px; }
  .hero-visual .phone-scan { width: min(100%, 340px); }
  .macros-phone { width: min(270px, 74vw); }
  .phone-scan-stage { width: min(210px, 62%); }
  .phone-scan-card {
    top: 2%;
    right: 0;
    left: auto;
    bottom: auto;
    margin-left: 0;
    width: 158px;
    padding: 0.7rem 0.75rem 0.8rem;
  }
  .phone-scan-card-value { font-size: 1.4rem; }
  .phone-scan-macros { gap: 0.25rem; }
  .phone-scan-macros span { padding: 0.22rem 0.1rem; border-radius: 8px; }
  .phone-scan-card .mini-bar { height: 9px; }
  .food-grid { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .sticky-cta { bottom: 0.5rem; }
  .faq-a { padding-left: 1.1rem; }
  .health-score { align-items: flex-start; }
}

/* Blog */
.blog-grid-page { max-width: var(--max); margin: 0 auto; padding-bottom: 3rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(11,11,11,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-link { display: block; color: inherit; text-decoration: none; }
.blog-card-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body { padding: 1.1rem 1.15rem 1.25rem; }
.blog-card-date { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.35rem; }
.blog-card-title { font-size: 1.05rem; margin: 0 0 0.4rem; line-height: 1.35; font-weight: 600; }
.blog-card-excerpt { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.blog-post { max-width: 720px; margin: 0 auto; padding-bottom: 2rem; }
.blog-post-header { margin-bottom: 1.5rem; }
.blog-post-date { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.5rem; }
.blog-post-author { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.92rem; }
.blog-post-cover { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; }
.blog-post-cover img { width: 100%; height: auto; display: block; }
.blog-post-body.prose { line-height: 1.75; font-size: 1.02rem; }
.blog-post-body.prose h2 { font-family: var(--display); font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.blog-post-body.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.blog-post-body.prose p { margin: 0 0 1rem; }
.blog-post-body.prose ul, .blog-post-body.prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.blog-post-body.prose a { color: var(--green-dark); text-decoration: underline; }
.blog-post-body.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
