:root {
  --ink: #2B2018;
  --paprika: #E2572B;
  --paprika-dark: #C2431C;
  --cream: #F7EFE3;
  --card-cream: #FBF3E7;
  --deep-cream: #EFE5D6;
  --warm-gray: #6B5C4E;
  --muted: #9A8877;
  --cream-on-paprika: #FFF6EC;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
}

a {
  color: var(--paprika-dark);
  text-decoration: none;
}
a:hover {
  color: var(--paprika);
}

img {
  max-width: 100%;
}

section[id], .anchor-target {
  scroll-margin-top: 64px;
}

.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;
}

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 239, 227, .93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(43, 32, 24, .12);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-brand span {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.017em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.nav-cta {
  flex-shrink: 0;
  background: var(--paprika);
  color: var(--cream-on-paprika);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-cta:hover {
  color: var(--cream-on-paprika);
  filter: brightness(0.94);
}

/* Two-column section primitive */
.two-col {
  display: grid;
  align-items: center;
}
.two-col > * { min-width: 0; }

/* Eyebrow / headings */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paprika);
  margin-bottom: 20px;
}
h2 {
  margin: 0 0 20px;
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.02;
  text-wrap: balance;
}
.lead, .body-copy {
  color: var(--warm-gray);
  text-wrap: pretty;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--paprika-dark);
}
.arrow-link span {
  font-size: 18px;
}

/* App store button */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 17px 30px;
  border-radius: 999px;
  transition: filter .15s ease, transform .15s ease;
}
.btn-appstore:hover {
  filter: brightness(1.08);
}
.btn-appstore.ink {
  background: var(--ink);
  color: var(--cream);
}
.btn-appstore.ink:hover { color: var(--cream); }
.btn-appstore.paprika {
  background: var(--paprika);
  color: var(--cream-on-paprika);
}
.btn-appstore.paprika:hover { color: var(--cream-on-paprika); }
.btn-appstore span {
  font-size: 16px;
  font-weight: 700;
}

/* Hero */
.hero {
  background: var(--cream);
  overflow: hidden;
}
.hero-inner {
  padding: clamp(56px, 7vw, 92px) 32px 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(36px, 5vw, 72px);
}
.hero h1 {
  margin: 0 0 22px;
  font-family: 'Fraunces', serif;
  font-size: clamp(42px, 5.6vw, 86px);
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: .95;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-lead {
  margin: 0 0 34px;
  max-width: 44ch;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-cta-note {
  font-size: 13px;
  color: var(--muted);
}

.hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 24px;
}
.phone-side {
  width: 30%;
  min-width: 104px;
  background: var(--ink);
  border-radius: 32px 32px 0 0;
  padding: 8px 8px 0;
  box-shadow: 0 22px 46px rgba(43, 32, 24, .16);
}
.phone-side.left { transform: translate(26px, 30px) rotate(-4deg); }
.phone-side.right { transform: translate(-26px, 30px) rotate(4deg); }
.phone-side-screen {
  border-radius: 25px 25px 0 0;
  overflow: hidden;
}
.phone-side-screen img { width: 100%; display: block; }

.phone-front {
  width: 42%;
  min-width: 158px;
  position: relative;
  z-index: 2;
  background: var(--ink);
  border-radius: 42px 42px 0 0;
  padding: 10px 10px 0;
  box-shadow: 0 30px 64px rgba(43, 32, 24, .24);
}
.scan-screen {
  border-radius: 33px 33px 0 0;
  overflow: hidden;
  background: #15120F;
  aspect-ratio: 1206/2100;
  position: relative;
  display: flex;
  flex-direction: column;
}
.scan-screen > img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scan-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,18,15,.72) 0%, rgba(21,18,15,.04) 20%, rgba(21,18,15,.08) 60%, rgba(21,18,15,.9) 100%);
  pointer-events: none;
}
.scan-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 0;
  color: var(--cream);
}
.scan-statusbar .time {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: -.01em;
  min-width: 26px;
}
.scan-statusbar .island {
  width: 40%;
  height: 12px;
  border-radius: 7px;
  background: #000;
}
.scan-statusbar .right-cluster {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 26px;
  justify-content: flex-end;
}
.battery-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 9px;
  border-radius: 2.5px;
  background: var(--cream);
  color: #15120F;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.battery-nub {
  width: 1px;
  height: 3px;
  border-radius: 0 1px 1px 0;
  background: rgba(247, 239, 227, .5);
}
.viewfinder {
  position: relative;
  flex: 1;
  margin: 9% 9% 0;
  pointer-events: none;
}
.vf-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--cream);
  border-style: solid;
  border-width: 0;
}
.vf-corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-radius: 9px 0 0 0; }
.vf-corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-radius: 0 9px 0 0; }
.vf-corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-radius: 0 0 0 9px; }
.vf-corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 9px 0; }
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  height: 2px;
  background: var(--paprika);
  box-shadow: 0 0 14px 2px rgba(226, 87, 43, .6);
}
.detect-chip {
  position: absolute;
  background: rgba(247, 239, 227, .95);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 700;
}
.detect-chip.active {
  background: var(--paprika);
  color: var(--cream-on-paprika);
}
.scan-footer {
  position: relative;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scan-footer-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(247, 239, 227, .82);
}
.shutter {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(247, 239, 227, .32);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .phone-side { display: none; }
  .hero-phones { padding-top: 0; }
  .phone-front { width: 62%; min-width: 200px; }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
}

/* Generic feature section (Scan / Dinners / Allergens / Pantry) */
.feature-section .container {
  display: grid;
  align-items: center;
}
.section-pad {
  padding: clamp(72px, 9vw, 130px) 32px;
}
.section-pad-wide {
  padding: clamp(80px, 10vw, 146px) 32px;
}
.grid-2-340 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(40px, 6vw, 92px); }
.grid-2-330 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(40px, 6vw, 84px); }
.grid-2-320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(40px, 6vw, 92px); }

.h2-wide {
  font-size: clamp(32px, 4.6vw, 64px);
  letter-spacing: -.03em;
  line-height: 1;
}
.h2-wide.pantry-h2 {
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.02;
}

.body-copy {
  margin: 0 0 28px;
  max-width: 46ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}

.phone-frame {
  width: 330px;
  max-width: 100%;
  background: var(--ink);
  border-radius: 48px;
  padding: 11px;
  box-shadow: 0 34px 70px rgba(43, 32, 24, .2);
}
.phone-frame-inner {
  border-radius: 38px;
  overflow: hidden;
  display: flex;
}
.phone-frame-inner img { width: 100%; display: block; }
.phone-col {
  display: flex;
  justify-content: center;
}

/* Dinners list */
.dinner-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 36px;
}
.dinner-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(43, 32, 24, .2);
}
.dinner-row:last-child {
  border-bottom: 1px solid rgba(43, 32, 24, .2);
}
.dinner-num {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.dinner-num.rank-1 { color: var(--paprika); }
.dinner-num.rank-other { color: #C0AF9C; }
.dinner-body {
  flex: 1;
  min-width: 0;
}
.dinner-name {
  font-family: 'Fraunces', serif;
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.dinner-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.dinner-time {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
  white-space: nowrap;
}

/* Allergens card */
.allergen-card {
  background: var(--cream);
  border-radius: 24px;
  padding: clamp(26px, 3vw, 40px);
}
.allergen-card-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(43, 32, 24, .18);
}
.allergen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(43, 32, 24, .1);
}
.allergen-row:last-child { border-bottom: none; }
.allergen-name {
  font-family: 'Fraunces', serif;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: var(--muted);
}
.allergen-name.severe { text-decoration-color: var(--paprika); }
.allergen-name.pref { text-decoration-color: rgba(43, 32, 24, .35); }
.allergen-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}
.allergen-tag.severe { color: var(--paprika); }
.allergen-tag.pref { color: var(--muted); }

/* Promise row */
.promise-section .container {
  padding: clamp(64px, 7vw, 104px) 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.promise-item {
  border-top: 2px solid rgba(43, 32, 24, .25);
  padding-top: 22px;
}
.promise-item.first { border-top-color: var(--paprika); }
.promise-figure {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -.026em;
  line-height: 1;
  margin-bottom: 12px;
}
.promise-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--warm-gray);
}

/* Closing CTA */
.cta-section {
  border-top: 1px solid rgba(43, 32, 24, .12);
}
.cta-section .container {
  padding: clamp(80px, 9vw, 128px) 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
.cta-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 56px);
  letter-spacing: -.028em;
  line-height: 1.04;
  max-width: 22ch;
}
.cta-note {
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--cream);
  border-top: 1px solid rgba(43, 32, 24, .16);
  color: var(--warm-gray);
}
.footer-grid {
  padding: clamp(48px, 5vw, 72px) 32px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand span {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.017em;
}
.footer-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 5px;
}
.footer-col a {
  font-size: 14px;
  color: var(--warm-gray);
}
.footer-legal {
  padding: 0 32px 44px;
  max-width: 1440px;
  margin: 0 auto;
}
.footer-legal-inner {
  border-top: 1px solid rgba(43, 32, 24, .16);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-legal-inner p {
  margin: 0;
  max-width: 90ch;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
