/* ---------- design tokens ---------- */
:root {
  --cream: rgb(246, 238, 221);
  --cream-soft: rgba(252, 231, 154, 0.5);
  --cream-soft-2: rgb(249, 234, 187);
  --brown-1: rgb(63, 42, 25);
  --brown-2: rgb(62, 52, 42);
  --yellow: rgb(254, 218, 122);
  --yellow-bright: rgb(255, 208, 82);
  --orange: rgb(235, 117, 79);
  --green: rgb(47, 68, 35);
  --white: #ffffff;

  --font-body: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-mega: clamp(56px, 13vw, 200px);
  --fs-callout: clamp(64px, 16vw, 184px);
  --fs-headline: clamp(28px, 4.5vw, 50px);
  --fs-section: clamp(22px, 2.6vw, 32px);
  --fs-body: clamp(15px, 1.4vw, 18px);
  --fs-nav: 16px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;

  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 33px;
  --radius-pill: 999px;

  --shadow-soft: 0 4px 4px rgba(0, 0, 0, 0.25);
  --shadow-tag: 0 6px 12px rgba(0, 0, 0, 0.18);

  --page-pad: clamp(20px, 5vw, 90px);
  --container: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.05;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

/* ---------- top navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  padding-block: var(--space-md);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-stuck {
  border-bottom-color: rgba(63, 42, 25, 0.08);
  box-shadow: 0 1px 0 rgba(63, 42, 25, 0.04);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.nav__brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-icon {
  width: 44px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  border: 1px solid #000;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-icon--lg { width: 48px; height: 38px; }
.brand-icon svg { width: 14px; height: 12px; display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  border: 1px solid #000;
  color: var(--brown-1);
  font-size: var(--fs-nav);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.pill:hover { transform: translateY(-1px); background: #ffd673; }
.pill:active { transform: translateY(0); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: var(--yellow);
  border: 1px solid #000;
  border-radius: var(--radius-pill);
  align-items: center; justify-content: center;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--brown-1);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--brown-1);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 80px) clamp(60px, 8vw, 120px);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  position: relative;
}
.hero__title {
  font-weight: 700;
  font-size: var(--fs-mega);
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--brown-1);
  hyphens: none;
}
.hero__tagline {
  font-weight: 700;
  font-size: var(--fs-headline);
  line-height: 1.08;
  margin: 0;
  color: var(--brown-1);
  max-width: 16ch;
}
.hero__visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 12px;
}
/* hero-phone-1.png is tight-cropped portrait (mobile) */
.hero__phone--single {
  width: min(70%, 310px);
  filter: drop-shadow(0 30px 40px rgba(63, 42, 25, 0.18));
  transform: rotate(10deg);
  transform-origin: bottom center;
  position: relative;
  z-index: 2;
}
/* hero-phone-2.png is tight-cropped dual/desktop view */
.hero__phone--dual {
  display: none;
  width: 90%;
  filter: drop-shadow(0 30px 40px rgba(63, 42, 25, 0.14));
  z-index: 2;
}
.hero__mascot {
  position: absolute;
  width: clamp(300px, 75vw, 620px);
  left: clamp(-40px, -55vw, -140px);
  top: 18%;
  transform: scaleX(-1) rotate(14deg);
  z-index: 1;
  filter: drop-shadow(0 10px 20px rgba(63, 42, 25, 0.18));
  user-select: none;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
  }
  .hero__copy { grid-column: 1 / -1; }
  .hero__phone-col {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-self: end;
  }
  .hero__tagline-col {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    align-self: end;
    padding-bottom: 40px;
  }
  .hero__tagline { font-size: clamp(34px, 3.6vw, 50px); }

  /* desktop: override iPad sizing — let the phone fill its column */
  .hero__phone--dual { width: 100%; }

  .hero__mascot { transform: translateX(-60px) scaleX(-1) rotate(14deg); }
}

/* ---------- problem section ---------- */
.problem {
  padding-block: var(--space-xl);
  position: relative;
}
.problem__callout {
  font-weight: 700;
  font-size: var(--fs-callout);
  line-height: 1.05;
  color: var(--yellow-bright);
  text-align: center;
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.03em;
  word-break: break-word;
}
.problem__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* .problem__collage is the stacking context for the whole collage.
 * z-index layers (all relative to .problem__collage):
 *   1 — outer food cards (--1, --5)
 *   2 — inner food cards (--2, --4), overlap their outer sibling
 *   3 — phone, on top of every card
 *   4 — chips, float above everything */
.problem__collage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}
.problem__phone {
  width: min(55%, 250px);
  filter: drop-shadow(0 22px 30px rgba(63, 42, 25, 0.22));
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-soft);
  color: var(--white);
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.chip--saved { background: var(--green); }
.chip--visited { background: var(--orange); }

.problem__chip-saved {
  position: absolute;
  top: 8%;
  left: 2%;
  transform: rotate(-10deg);
  z-index: 4;
}
.problem__chip-visited {
  position: absolute;
  bottom: 4%;
  right: 2%;
  transform: rotate(18deg);
  z-index: 4;
}

/* card groups: no position set → cards' z-indexes resolve in .problem__collage context.
 * align-items: flex-end so all cards baseline to the bottom; translateY lifts them up for scatter. */
.problem__cards-left,
.problem__cards-right {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}
/* slide each group under the phone edges */
.problem__cards-left  { margin-right: clamp(-55px, -14vw, -40px); }
.problem__cards-right { margin-left:  clamp(-55px, -14vw, -40px); }

.problem__card {
  display: block;
  position: relative;
  width: clamp(105px, 30vw, 160px);
  max-width: none;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(63, 42, 25, 0.2);
}

/* Outer cards lifted high + rotated outward; inner cards sit low near the phone */
.problem__card--1 {
  z-index: 1;
  transform: translateX(clamp(20px, 5vw, 28px)) rotate(-7deg) translateY(clamp(-70px, -18vw, -48px));
}
.problem__card--2 {
  z-index: 2;
  transform: rotate(5.5deg) translateY(clamp(-20px, -5vw, -10px));
  margin-left: clamp(-22px, -6vw, -16px);
}
.problem__card--4 {
  z-index: 2;
  transform: rotate(4.3deg) translateY(clamp(-20px, -5vw, -10px));
}
.problem__card--5 {
  z-index: 1;
  transform: translateX(clamp(-28px, -5vw, -20px)) rotate(3.5deg) translateY(clamp(-70px, -18vw, -48px));
  margin-left: clamp(-22px, -6vw, -16px);
}

/* ---------- still-gone section ---------- */
.stillgone {
  padding-block: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.stillgone__copy { text-align: center; }
.stillgone__eyebrow {
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--brown-2);
  margin: 0 0 var(--space-sm);
  line-height: 1.05;
}
.stillgone__shout {
  font-weight: 700;
  font-size: clamp(48px, 9vw, 110px);
  line-height: 0.83;
  color: var(--brown-1);
  letter-spacing: -0.06em;
  margin: 0;
}
.stillgone__mascot {
  width: min(80%, 320px);
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(63, 42, 25, 0.18));
}

@media (min-width: 769px) {
  /* iPad+ hero: swap to the two-phone / wider hero asset */
  .hero__phone--single { display: none; }
  .hero__phone--dual   { display: block; margin-left: auto; margin-right: -70px; }

  .hero__mascot { left: clamp(-90px, -38vw, -85px); }

  .stillgone { grid-template-columns: 1fr 1fr; }
  .stillgone__copy { text-align: left; }

  /* problem collage: bigger on iPad */
  .problem__phone { width: min(45%, 340px); }
  .problem__card  { width: clamp(140px, 20vw, 220px); }
  .problem__cards-left  { margin-right: clamp(-80px, -10vw, -60px); }
  .problem__cards-right { margin-left:  clamp(-80px, -10vw, -60px); }

  /* chips: pull inward so they sit over the phone, not the collage corners */
  .problem__chip-saved   { top: 10%; left: 26%; font-size: 22px; padding: 10px 26px; }
  .problem__chip-visited { bottom: 8%; right: 26%; font-size: 22px; padding: 10px 26px; }

  /* final CTA: side-by-side from iPad up */
  .final-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    text-align: left;
    gap: 16px 60px;
  }
  .final-cta__title {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    align-self: end;
  }
  .stores {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    align-self: start;
  }
  .final-cta__image {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 100%;
    justify-self: center;
  }

  .feature { grid-template-columns: 1fr 1fr; }
  .feature--reverse .feature__media { order: -1; }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- CTA banner (running brand strip) ---------- */
.cta-strip {
  background: var(--brown-1);
  color: var(--white);
  padding-block: 30px;
  overflow: hidden;
  position: relative;
}
.cta-strip__track {
  display: flex;
  align-items: center;
  gap: 80px;
  animation: scroll-left 28s linear infinite;
  width: max-content;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.cta-strip__item {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}
.cta-strip__icon {
  width: 64px; height: 52px;
  border-radius: 999px;
  background: var(--yellow);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cta-strip__icon svg { width: 22px; height: 18px; }
.cta-strip__text {
  font-size: clamp(28px, 3vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}

/* ---------- features ---------- */
.features {
  padding-block: clamp(60px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 110px);
}
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.feature__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
}
.feature__eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--cream-soft);
  color: var(--brown-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.feature__title {
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.05;
  color: var(--brown-2);
  margin: 0;
  letter-spacing: -0.01em;
}
.feature__body {
  font-size: var(--fs-body);
  color: var(--brown-2);
  line-height: 1.45;
  margin: 0;
}
.feature__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.feature__image {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-md);
  background: var(--white);
}
.feature__image--card { box-shadow: 0 30px 60px rgba(63, 42, 25, 0.18); }

.bubble {
  position: relative;
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2vw, 24px);
  width: 100%;
  max-width: 460px;
  display: grid;
  place-items: center;
}
.bubble::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 28px;
  width: 46px;
  height: 33px;
  background: var(--cream-soft-2);
  clip-path: polygon(0 100%, 100% 100%, 88% 0);
}
.bubble--right::before {
  left: auto;
  right: 28px;
  clip-path: polygon(100% 100%, 0 100%, 12% 0);
}
.bubble img { border-radius: var(--radius-md); }

.dod-badge {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: clamp(80px, 12vw, 130px);
  height: clamp(80px, 12vw, 130px);
  background: var(--orange);
  border-radius: 96px 96px 12px 96px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 21px);
  text-align: center;
  line-height: 1.05;
  padding: 12px;
  transform: rotate(12deg);
  box-shadow: var(--shadow-tag);
}

/* ---------- final CTA ---------- */
.final-cta {
  padding-block: clamp(60px, 8vw, 100px);
  text-align: center;
}
.final-cta__title {
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  color: var(--brown-2);
  margin: 0 0 var(--space-lg);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgb(166, 166, 166);
  border-radius: 12px;
  padding: 12px 22px;
  min-width: 220px;
  text-align: left;
  transition: transform 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { flex-shrink: 0; }
.store-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.store-btn__sub {
  font-size: 11px;
  font-weight: 500;
  color: #ddd;
}
.store-btn__main {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.final-cta__image {
  width: 100%;
  border-radius: var(--radius-md);
}

/* ---------- coming-soon notify form ---------- */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.coming-soon__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--brown-2);
  margin: 0;
}
.notify-form {
  display: flex;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(63, 42, 25, 0.15);
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(63, 42, 25, 0.06);
}
.notify-form__input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font-size: 16px;
  color: var(--brown-2);
  outline: none;
  font-family: inherit;
}
.notify-form__input::placeholder { color: rgba(63, 42, 25, 0.4); }
.notify-form__btn {
  border: 0;
  background: var(--brown-2, #3f2a19);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  font-family: inherit;
}
.notify-form__btn:hover { transform: translateY(-1px); opacity: 0.92; }
.notify-form__btn:active { transform: translateY(0); }
.coming-soon__hint {
  font-size: 14px;
  color: rgba(63, 42, 25, 0.6);
  margin: 0;
}
.notify-form__success {
  font-size: 14px;
  font-weight: 600;
  color: #1f7a4a;
  margin: 8px 0 0;
}
.notify-form__error {
  font-size: 14px;
  font-weight: 600;
  color: #c4392a;
  margin: 8px 0 0;
}
@media (max-width: 480px) {
  .notify-form { flex-direction: column; border-radius: 18px; }
  .notify-form__btn { width: 100%; }
  .notify-form__input { text-align: center; }
}

/* ---------- footer ---------- */
.footer {
  background: var(--brown-1);
  color: var(--cream);
  padding-block: clamp(40px, 5vw, 60px);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer__brand-name {
  font-weight: 700;
  font-size: 28px;
  color: var(--cream);
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__link {
  font-size: 18px;
  color: var(--cream);
  transition: color 0.15s ease;
}
.footer__link:hover { color: var(--yellow); }

/* ---------- mobile nav reveal ---------- */
@media (max-width: 768px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 12px;
    padding: 16px var(--page-pad) 24px;
    background: var(--cream);
    border-top: 1px solid rgba(63, 42, 25, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links .pill { width: 100%; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta-strip__track { animation: none; }
  * { transition: none !important; }
}
