:root {
  --bg: #F4F4F4;
  --bg-warm: #EDECE8;
  --ink: #0B0B0F;
  --ink-soft: #8E8E94;
  --ink-softer: #C5C5C9;
  --card: #FFFFFF;
  --border: #ECECEE;
  --divider: #EFEFF1;

  --green: #2BBE5E;
  --green-soft: #D7F0D6;
  --orange: #F47B1F;
  --orange-soft: #FBE4CF;
  --yellow: #F5C518;
  --yellow-soft: #FCEEB6;
  --red: #FF6B6B;
  --red-soft: #FFD9D9;
  --blue: #3D7FB8;
  --blue-soft: #CFE3F3;

  --accent: var(--green);
  --accent-soft: var(--green-soft);

  --shadow-sm: 0 2px 8px rgba(11, 11, 15, 0.04);
  --shadow-md: 0 6px 24px rgba(11, 11, 15, 0.06);
  --shadow-lg: 0 16px 40px rgba(11, 11, 15, 0.08);
  --shadow-pop: 0 24px 60px rgba(11, 11, 15, 0.12);

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

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

/* ─── Logo ────────────────────────────────────────────────── */
.logo {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.logo .x { color: var(--accent); }

/* ─── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 244, 244, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav .logo { font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--body); font-weight: 600; font-size: 14px;
  color: var(--ink);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .signin {
  font-family: var(--body); font-weight: 600; font-size: 14px;
  color: var(--ink-soft);
}
.btn-pill {
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  border: none;
}
.btn-pill .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero { padding: 40px 32px 80px; position: relative; overflow: hidden; }
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 60px; align-items: center;
}
.badge-beta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.badge-beta .pulse {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.badge-beta span:last-child {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--ink);
}
.hero h1 {
  font-family: var(--display); font-weight: 800; font-size: 96px;
  line-height: 0.92; letter-spacing: -0.04em; margin: 0;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-family: var(--body); font-size: 20px; color: var(--ink-soft);
  line-height: 1.45; margin: 24px 0 0; max-width: 460px;
}
.hero-sub b { color: var(--ink); }
.hero-cta-row {
  display: flex; gap: 12px; margin-top: 36px; align-items: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--ink); color: #fff; padding: 18px 28px;
  border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; gap: 12px; border: none;
}
.btn-text {
  padding: 18px 24px; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 16px;
  color: var(--ink); display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: none;
}
.btn-text .arr { font-size: 18px; }
.hero-social {
  display: flex; align-items: center; gap: 14px; margin-top: 32px;
}
.avatar-stack { display: flex; }
.avatar-stack .a {
  width: 32px; height: 32px; border-radius: 999px;
  border: 2px solid #fff;
  display: grid; place-items: center;
  font-size: 14px;
}
.avatar-stack .a:not(:first-child) { margin-left: -8px; }
.hero-social-text .t1 {
  font-family: var(--display); font-weight: 800; font-size: 15px;
}
.hero-social-text .t2 {
  font-family: var(--body); font-size: 12px; color: var(--ink-soft);
}

/* Hero phones */
.hero-phones-wrap {
  position: relative; min-height: 660px;
  display: flex; align-items: center; justify-content: center;
}
.hero-blob {
  position: absolute; inset: 5% -10% 5% -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.7; pointer-events: none;
}
.hero-phones {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.phone-back {
  transform: translateX(40px) rotate(6deg);
  filter: drop-shadow(0 30px 40px rgba(11, 11, 15, 0.18));
}
.phone-front {
  transform: translateX(-40px) translateY(-20px) rotate(-4deg);
  position: relative; z-index: 2;
}

/* Phone bezel — leaves space for an image inside */
.phone-bezel {
  background: #0B0B0F;
  padding: 8px;
  box-shadow:
    0 60px 80px -40px rgba(11, 11, 15, 0.45),
    0 30px 60px -30px rgba(11, 11, 15, 0.35),
    inset 0 0 0 2px #1a1a20;
  position: relative;
  flex: 0 0 auto;
}
.phone-screen {
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.phone-bezel.size-front {
  width: 258px; height: 539px; border-radius: 39px;
}
.phone-bezel.size-front .phone-screen {
  width: 242px; height: 523px; border-radius: 31px;
}
.phone-bezel.size-back {
  width: 234px; height: 489px; border-radius: 36px;
}
.phone-bezel.size-back .phone-screen {
  width: 218px; height: 473px; border-radius: 28px;
}

/* Replace-me-with-image placeholder */
.img-slot {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(
      40deg,
      rgba(11, 11, 15, 0.05) 0 1px,
      transparent 1px 14px
    ),
    var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  font-family: var(--mono); font-size: 10px; color: rgba(11, 11, 15, 0.4);
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5;
}
.phone-screen .img-slot { border-radius: inherit; }

/* If a real image is dropped in, hide the slot */
.phone-screen img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Floating stickers */
.sticker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  font-family: var(--body); font-weight: 700;
  box-shadow: var(--shadow-sm);
  background: var(--card); color: var(--ink);
}
.sticker .ico { font-size: 16px; line-height: 1; }
.sticker.small { padding: 8px 16px; font-size: 13px; }
.sticker.tint-accent { background: var(--accent-soft); }
.sticker.tint-yellow { background: var(--yellow-soft); }
.sticker.tint-orange { background: var(--orange-soft); }
.sticker.tint-green { background: var(--green-soft); }
.sticker.tint-blue { background: var(--blue-soft); }
.sticker.tint-red { background: var(--red-soft); }

.floating-stickers .s1 {
  position: absolute; top: 30px; left: -10px;
  transform: rotate(-8deg); z-index: 3;
}
.floating-stickers .s2 {
  position: absolute; bottom: 40px; right: -10px;
  transform: rotate(5deg); z-index: 3;
}
.floating-stickers .s3 {
  position: absolute; top: 220px; right: -30px;
  transform: rotate(3deg); z-index: 3;
}

/* Score dot reusable */
.score-dot {
  border-radius: 999px; color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.12),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
  flex: 0 0 auto;
}
.score-dot.green { background: var(--green); }
.score-dot.orange { background: var(--orange); }
.score-dot.yellow { background: var(--yellow); color: var(--ink); }

/* ─── Section header ──────────────────────────────────────── */
.section-head { max-width: 880px; }
.section-head.center { text-align: center; max-width: 720px; margin: 0 auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
}
.kicker .k-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
}
.kicker .k-text {
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  letter-spacing: 0.14em; font-weight: 700; text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--display); font-weight: 800; font-size: 64px;
  line-height: 0.95; letter-spacing: -0.03em; margin: 14px 0 0;
}
.section-head h2 .accent { color: var(--accent); }

/* ─── How it works ────────────────────────────────────────── */
.how { padding: 100px 32px; background: var(--bg-warm); }
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 60px;
}
.step-card {
  background: var(--card); border-radius: 32px; padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 20px;
  min-height: 320px;
}
.step-head {
  display: flex; align-items: center; justify-content: space-between;
}
.step-num {
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  letter-spacing: 0.14em; font-weight: 700;
}
.emoji-slot {
  width: 64px; height: 64px; border-radius: 18px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(11, 11, 15, 0.06);
  box-shadow:
    inset 0 -8px 16px rgba(0, 0, 0, 0.04),
    inset 0 6px 14px rgba(255, 255, 255, 0.6);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.emoji-slot.tint-accent { background: var(--accent-soft); }
.emoji-slot.tint-orange { background: var(--orange-soft); }
.emoji-slot.tint-yellow { background: var(--yellow-soft); }
.emoji-slot.tint-green { background: var(--green-soft); }
.emoji-slot.tint-blue { background: var(--blue-soft); }
.emoji-slot.tint-red { background: var(--red-soft); }
.emoji-slot .e { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12)); }
.step-body { flex: 1; }
.step-body .title {
  font-family: var(--display); font-weight: 800; font-size: 36px;
  letter-spacing: -0.02em; line-height: 1;
}
.step-body p {
  font-family: var(--body); font-size: 16px; color: var(--ink-soft);
  line-height: 1.5; margin: 14px 0 0;
}

/* ─── Score section ───────────────────────────────────────── */
.score-section { padding: 120px 32px; }
.score-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px;
  align-items: center;
}
.score-left .kicker-line {
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  letter-spacing: 0.14em; font-weight: 700; text-transform: uppercase;
}
.score-left h2 {
  font-family: var(--display); font-weight: 800; font-size: 64px;
  line-height: 0.95; letter-spacing: -0.03em; margin: 14px 0 24px;
}
.score-left h2 .accent { color: var(--accent); }
.score-left p.lede {
  font-family: var(--body); font-size: 18px; color: var(--ink-soft);
  line-height: 1.5; margin: 0; max-width: 480px;
}
.bucket-stack {
  display: flex; flex-direction: column; gap: 14px; margin-top: 36px;
}
.bucket {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px; background: var(--card); border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.bucket .range {
  width: 54px; height: 54px; border-radius: 999px; color: #fff;
  display: grid; place-items: center; font-family: var(--display);
  font-weight: 800; font-size: 13px; letter-spacing: -0.01em;
  text-align: center; line-height: 1; flex: 0 0 auto;
  box-shadow:
    inset 0 -4px 8px rgba(0, 0, 0, 0.12),
    inset 0 3px 6px rgba(255, 255, 255, 0.4);
}
.bucket .range.green { background: var(--green); }
.bucket .range.orange { background: var(--orange); }
.bucket .range.yellow { background: var(--yellow); color: var(--ink); }
.bucket .label {
  font-family: var(--display); font-weight: 800; font-size: 20px;
  letter-spacing: -0.01em;
}
.bucket .body {
  font-family: var(--body); font-size: 14px; color: var(--ink-soft);
  margin-top: 2px;
}

.score-viz {
  position: relative; display: grid; place-items: center; min-height: 540px;
}
.score-viz .blob {
  position: absolute; inset: 10% 0; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 75%);
  opacity: 0.6;
}
.score-big-wrap {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.score-big {
  width: 320px; height: 320px; border-radius: 999px;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 200px;
  letter-spacing: -0.04em;
  box-shadow:
    inset 0 -24px 40px rgba(0, 0, 0, 0.18),
    inset 0 16px 30px rgba(255, 255, 255, 0.4),
    0 30px 60px rgba(43, 190, 94, 0.35);
}
.floating-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 999px;
  padding: 8px 16px 8px 8px;
  box-shadow: var(--shadow-lg);
}
.floating-chip .chip-dot {
  width: 32px; height: 32px; border-radius: 999px; color: #fff;
  display: grid; place-items: center; font-family: var(--display);
  font-weight: 800; font-size: 13px;
}
.floating-chip .chip-dot.green { background: var(--green); }
.floating-chip .chip-dot.orange { background: var(--orange); }
.floating-chip .chip-dot.yellow { background: var(--yellow); color: var(--ink); }
.floating-chip .chip-label {
  font-family: var(--body); font-weight: 700; font-size: 13px;
}
.orbit-1 { position: absolute; top: 6%; right: 8%; transform: rotate(8deg); }
.orbit-2 { position: absolute; bottom: 10%; left: 4%; transform: rotate(-6deg); }
.orbit-3 { position: absolute; bottom: 18%; right: 0%; transform: rotate(4deg); }

/* ─── Goals ───────────────────────────────────────────────── */
.goals { padding: 120px 32px; background: var(--bg-warm); }
.goals-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 60px;
}
.goal-card {
  background: var(--card); border-radius: 24px; padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
}
.goal-card .emoji-slot { width: 56px; height: 56px; border-radius: 16px; }
.goal-card .emoji-slot .e { font-size: 26px; }
.goal-card .title {
  font-family: var(--display); font-weight: 800; font-size: 17px;
  letter-spacing: -0.01em;
}
.goal-card .sub {
  font-family: var(--body); font-size: 12px; color: var(--ink-soft);
  margin-top: 2px;
}

/* ─── Features (bento) ────────────────────────────────────── */
.features { padding: 120px 32px; }
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px; margin-top: 60px;
}
.feature-card {
  background: var(--card); color: var(--ink);
  border-radius: 32px; padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  overflow: hidden; position: relative;
}
.feature-card.dark { background: var(--ink); color: #fff; }
.feature-card.tint-accent { background: var(--accent-soft); }
.feature-card.no-pad { padding: 0; }
.f-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  font-weight: 700; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 10px;
}
.feature-card.dark .f-kicker { color: rgba(255, 255, 255, 0.5); }
.f-title {
  font-family: var(--display); font-weight: 800; font-size: 40px;
  letter-spacing: -0.02em; line-height: 1;
}
.f-title.small { font-size: 28px; }
.f-body {
  font-family: var(--body); font-size: 14px; color: var(--ink-soft);
  margin: 10px 0 0; line-height: 1.4;
}
.f-allergens {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto;
}
.f-allergens span {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--body); font-weight: 700; font-size: 13px;
}
.f-macros {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 14px;
}
.f-macros .stat {
  background: var(--bg-warm); border-radius: 14px; padding: 12px 14px;
}
.f-macros .stat .v {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  letter-spacing: -0.02em;
}
.f-macros .stat .l {
  font-family: var(--mono); font-size: 9px; color: var(--ink-soft);
  letter-spacing: 0.14em; font-weight: 700;
}
.feat-allergens { grid-column: span 3; grid-row: span 2; }
.feat-macros { grid-column: span 3; grid-row: span 1; }
.feat-memory { grid-column: span 3; grid-row: span 1; }
.feat-nearby { grid-column: span 4; grid-row: span 2; }
.feat-swap { grid-column: span 2; grid-row: span 2; }
.feat-nearby-head { padding: 28px 28px 0; }
.feat-nearby-map {
  margin-top: auto; height: 200px; overflow: hidden;
  border-bottom-left-radius: 32px; border-bottom-right-radius: 32px;
}
.feat-nearby-map svg { display: block; width: 100%; height: 100%; }

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq { padding: 120px 32px; }
.faq-inner { max-width: 880px; margin: 0 auto; }
.faq-list {
  margin-top: 60px; display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--card); border-radius: 24px; padding: 24px 28px;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.faq-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-q {
  font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: -0.01em;
}
.faq-toggle {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--bg-warm); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 18px;
  transition: all 0.2s; flex: 0 0 auto; border: none;
}
.faq-item.open .faq-toggle { background: var(--ink); color: #fff; }
.faq-a {
  font-family: var(--body); font-size: 15px; color: var(--ink-soft);
  line-height: 1.55; margin: 0; max-width: 720px;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}
.faq-item.open .faq-a { max-height: 400px; margin-top: 16px; }

/* ─── Final CTA ───────────────────────────────────────────── */
.final-cta { padding: 120px 32px; }
.final-cta-card {
  max-width: 1200px; margin: 0 auto; border-radius: 48px;
  background: var(--ink); color: #fff;
  padding: 80px 60px;
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 999px;
  background: var(--accent); opacity: 0.18; filter: blur(40px);
}
.cta-grid {
  position: relative;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
  align-items: center;
}
.cta-kicker {
  font-family: var(--mono); font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.14em; font-weight: 700; text-transform: uppercase;
}
.cta-grid h2 {
  font-family: var(--display); font-weight: 800; font-size: 72px;
  line-height: 0.95; letter-spacing: -0.03em; margin: 14px 0 24px;
}
.cta-grid h2 .accent { color: var(--accent); }
.cta-grid p {
  font-family: var(--body); font-size: 18px;
  color: rgba(255, 255, 255, 0.65); line-height: 1.5;
  margin: 0; max-width: 460px;
}
.cta-buttons { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn-light {
  background: #fff; color: var(--ink); padding: 18px 28px;
  border-radius: 999px; font-family: var(--body); font-weight: 700;
  font-size: 16px; display: inline-flex; align-items: center; gap: 12px;
  border: none;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08); color: #fff;
  padding: 18px 28px; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.qr-wrap {
  position: relative; height: 360px;
  display: grid; place-items: center;
}
.qr-card {
  width: 220px; height: 220px; border-radius: 32px; background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.qr-caption {
  font-family: var(--body); font-weight: 700; font-size: 14px;
  color: rgba(255, 255, 255, 0.6); margin-top: 18px;
  position: absolute; bottom: 40px;
}

/* ─── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--bg-warm); padding: 60px 32px 40px;
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand p {
  font-family: var(--body); font-size: 14px; color: var(--ink-soft);
  line-height: 1.5; margin: 14px 0 24px; max-width: 340px;
}
.footer-form { display: flex; gap: 8px; max-width: 360px; }
.footer-form input {
  flex: 1; height: 48px; border: none; border-radius: 999px;
  padding: 0 20px; background: var(--card);
  font-family: var(--body); font-size: 14px; color: var(--ink);
  outline: none; box-shadow: var(--shadow-sm);
}
.footer-form button {
  height: 48px; padding: 0 22px; border: none; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-family: var(--body); font-weight: 700; font-size: 14px;
}
.footer-col .title {
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  letter-spacing: 0.14em; font-weight: 700; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col li a {
  font-family: var(--body); font-size: 14px; color: var(--ink);
  font-weight: 500;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 16px;
}
.footer-copy {
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  letter-spacing: 0.1em;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 999px; background: var(--card);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--ink); box-shadow: var(--shadow-sm);
}

/* ─── Legal pages (Privacy / Terms) ───────────────────────── */
.legal-page { padding: 80px 32px 120px; }
.legal-hero {
  max-width: 760px; margin: 0 auto 56px;
}
.legal-hero h1 {
  font-family: var(--display); font-weight: 800; font-size: 72px;
  line-height: 0.95; letter-spacing: -0.04em; margin: 14px 0 18px;
}
.legal-eff {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow-sm);
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  letter-spacing: 0.08em; font-weight: 600;
}
.legal-eff .ed-label { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }

.legal-content {
  max-width: 760px; margin: 0 auto;
  font-family: var(--body); font-size: 17px; color: var(--ink);
  line-height: 1.7;
}
.legal-content h2 {
  font-family: var(--display); font-weight: 800; font-size: 32px;
  letter-spacing: -0.02em; line-height: 1.1; margin: 56px 0 16px;
}
.legal-content h3 {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.01em; line-height: 1.2; margin: 36px 0 12px;
}
.legal-content p { margin: 0 0 18px; color: #2A2A30; }
.legal-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.legal-content strong { color: var(--ink); font-weight: 700; }
.legal-content em { color: var(--ink-soft); font-style: italic; }
.legal-content ul, .legal-content ol {
  padding-left: 22px; margin: 0 0 22px;
  color: #2A2A30;
}
.legal-content li { margin-bottom: 8px; }
.legal-content li::marker { color: var(--ink-soft); }
.legal-content hr {
  border: none; border-top: 1px solid var(--border);
  margin: 48px 0;
}
.legal-content code {
  font-family: var(--mono); font-size: 14px; background: var(--bg-warm);
  padding: 2px 6px; border-radius: 4px; color: var(--ink);
}
.legal-content .callout {
  background: var(--card); border-radius: 18px; padding: 22px 24px;
  box-shadow: var(--shadow-sm); margin: 24px 0;
}
.legal-content .warn {
  background: var(--orange-soft);
  border-radius: 18px; padding: 22px 24px;
  margin: 24px 0;
}
.legal-content .warn p:last-child { margin-bottom: 0; }

.legal-content table {
  width: 100%; border-collapse: collapse;
  background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 0 0 24px; font-size: 14.5px;
}
.legal-content thead { background: var(--bg-warm); }
.legal-content th, .legal-content td {
  text-align: left; padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-content th {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--ink-soft); letter-spacing: 0.12em; text-transform: uppercase;
}
.legal-content tbody tr:last-child td { border-bottom: none; }

/* Skip-to-top "back" chip on legal pages */
.legal-foot {
  max-width: 760px; margin: 56px auto 0;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  letter-spacing: 0.1em; flex-wrap: wrap; gap: 12px;
}
.legal-foot a {
  font-family: var(--body); font-weight: 700; font-size: 13px;
  color: var(--ink); text-decoration: none;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 72px; }
  .hero-phones-wrap { min-height: 600px; }
  .score-grid { grid-template-columns: 1fr; gap: 60px; }
  .score-left h2 { font-size: 48px; }
  .section-head h2 { font-size: 48px; }
  .how-grid { grid-template-columns: 1fr; }
  .goals-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feat-allergens, .feat-macros, .feat-memory,
  .feat-nearby, .feat-swap {
    grid-column: span 2; grid-row: auto;
  }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-grid h2 { font-size: 48px; }
  .final-cta-card { padding: 60px 32px; border-radius: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .legal-hero h1 { font-size: 56px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 56px; }
  .hero-sub { font-size: 17px; }
  .section-head h2 { font-size: 36px; }
  .score-left h2 { font-size: 36px; }
  .score-big { width: 240px; height: 240px; font-size: 150px; }
  .step-body .title { font-size: 28px; }
  .goals-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .feat-allergens, .feat-macros, .feat-memory,
  .feat-nearby, .feat-swap {
    grid-column: span 1;
  }
  .cta-grid h2 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-actions .signin { display: none; }
  .hero { padding: 24px 20px 60px; }
  .how, .score-section, .goals, .features, .faq, .final-cta {
    padding-left: 20px; padding-right: 20px;
    padding-top: 80px; padding-bottom: 80px;
  }
  .container, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .legal-page { padding: 56px 20px 80px; }
  .legal-hero h1 { font-size: 40px; }
  .legal-content { font-size: 16px; }
  .legal-content h2 { font-size: 26px; margin: 40px 0 12px; }
  .legal-content h3 { font-size: 19px; }
  .legal-content table { font-size: 13px; }
  .legal-content th, .legal-content td { padding: 10px 12px; }
}
