@font-face { font-family: Geist; src: url(fonts/Geist-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #111113;
  --text: #44464a;
  --muted: #5b5d61;
  --stone: #ECEDEA;
  --paper: #FFFFFF;
  --chip: #F2F2F4;
  --line: #D9DADD;
  --green: #1F6E3C;
  --mint: #DDEFE2;
  --mint-2: #CFEBD6;
  --orange-ink: #9E5214;
  --peach: #FDE6DA;
  --peach-line: #EFB698;
  --accent: #E8833A;
  --fresh: #2E7D32;
  --soon: #9A5B00;
  --expired: #C62828;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--stone);
  color: var(--ink);
  font-family: Geist, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--mint-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--stone);
  padding: env(safe-area-inset-top) var(--gutter) 0;
}
.stripe {
  position: absolute; top: -30%; left: 38%; width: 34%; height: 190%;
  rotate: -32deg; transform-origin: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #CFEBD6 22%, #8FD3A2 62%, #5DB877 100%);
  opacity: .85; pointer-events: none;
}

.nav {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.pill {
  color: var(--ink); padding: 7px 14px; border-radius: 999px; border: 1px solid transparent;
  transition: border-color .2s;
}
.pill:hover, .pill.is-current { border-color: var(--ink); color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  padding: 12px 20px; border-radius: 999px; transition: background .2s;
}
.nav-cta:hover { background: var(--green); color: #fff; }

.hero-grid {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center;
  gap: 32px clamp(24px, 5vw, 80px);
  padding: clamp(24px, 4vw, 56px) 0 0;
}
.hero-lang { flex: 1 1 180px; max-width: 260px; padding-top: clamp(0px, 5vw, 70px); }
.lang-bracket { width: 110px; height: 8px; border: 1px solid #fff; border-bottom: none; }
.lang-box { width: 110px; padding-top: 14px; text-align: center; }
.lang-switch { display: flex; justify-content: center; gap: 4px; }
.lang-opt {
  font-size: 12px; font-weight: 600; padding: 5px 9px; min-height: 28px; border-radius: 999px; border: 0;
  background: #fff; color: var(--ink); transition: background .2s, color .2s;
}
.lang-opt[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang-note { font-size: 13px; line-height: 1.35; color: var(--muted); margin-top: 12px; }

.hero-phone { position: relative; flex: none; width: clamp(230px, 27vw, 350px); margin-bottom: -90px; }
.phone {
  border: 8px solid var(--ink); border-radius: 38px; overflow: hidden; background: #fff;
  aspect-ratio: 1080 / 2268;
  box-shadow: 0 30px 60px -30px rgba(17, 40, 24, .4);
}
.phone img { width: 100%; height: auto; }
.phone-hero { border-width: 9px; border-radius: 44px; box-shadow: 0 40px 80px -30px rgba(17, 40, 24, .45); }
.phone-warm { box-shadow: 0 30px 60px -30px rgba(90, 45, 10, .4); }

.float {
  position: absolute; background: #fff; border-radius: 18px; padding: 13px 16px; white-space: nowrap;
  box-shadow: 0 18px 40px -18px rgba(17, 17, 19, .35);
}
.float-soon { top: 20%; left: clamp(-130px, -10vw, -50px); }
.float-bought { top: 47%; left: clamp(-150px, -12vw, -60px); display: flex; align-items: center; gap: 11px; padding: 12px 16px 12px 12px; }
.float-recipe { top: 74%; left: clamp(-120px, -9vw, -40px); }
.float-label { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.float-label.soon { color: var(--soon); }
.float-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--soon); }
.float-title { font-size: 16px; font-weight: 600; margin-top: 5px; }
.float-sub { font-size: 13px; color: var(--muted); margin-top: 1px; }
.float-uses { font-size: 15px; font-weight: 600; color: var(--orange-ink); margin-top: 5px; }
.float-strike { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.tick { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }

.hero-copy { flex: 1 1 280px; max-width: 420px; padding-top: clamp(0px, 4vw, 56px); }
.hero-copy h1 {
  font-weight: 500; font-size: clamp(34px, 4.3vw, 60px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance;
}
.hero-copy p { margin-top: 20px; font-size: 17px; line-height: 1.5; color: var(--text); max-width: 360px; text-wrap: pretty; }

.ring-cta { position: relative; width: 176px; height: 176px; margin: 34px 0 0 -8px; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #fff; }
.ring-btn {
  position: absolute; inset: 22px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 14px; font-weight: 500; line-height: 1.25;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.ring-btn:hover { transform: scale(1.06); background: var(--green); color: #fff; }
.ring-arrow {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; pointer-events: none;
}

.today {
  position: relative; z-index: 4; max-width: 760px; margin: 0 auto;
  background: #fff; padding: 30px clamp(22px, 3vw, 40px);
  display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center;
  border-radius: 6px 6px 0 0;
}
.today-text { flex: 1 1 260px; }
.today-head { font-size: 22px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.today-sub { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.today-stats { flex: 1 1 300px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { border-radius: 18px; padding: 14px; border: 1px solid var(--line); }
.stat b { display: block; font-size: 28px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.stat-warn { background: var(--peach); border-color: var(--peach-line); }
.stat-warn b, .stat-warn span { color: var(--orange-ink); }

/* ---------- Features ---------- */
main { background: #fff; }
.feature {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter) 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px clamp(40px, 8vw, 120px);
  scroll-margin-top: 20px;
}
.feature.flip { flex-wrap: wrap-reverse; }
.feature-text { flex: 1 1 320px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.kicker.green { color: var(--green); }
.kicker.orange { color: var(--orange-ink); }
.feature h2, .recipes h2 {
  margin-top: 16px; font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance;
}
.feature-text > p:not(.kicker), .recipes-text > p:not(.kicker) {
  margin-top: 20px; font-size: 17px; line-height: 1.55; color: var(--text); max-width: 440px; text-wrap: pretty;
}
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; font-size: 14px; font-weight: 500; }
.legend li { padding: 8px 14px; border-radius: 999px; background: var(--chip); display: flex; align-items: center; gap: 7px; }
.legend .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.fresh { background: var(--fresh); }
.dot.soon { background: var(--soon); }
.dot.low { background: var(--expired); }

.stage {
  flex: 0 1 380px; display: flex; justify-content: center;
  border-radius: 32px; padding: 48px 32px 0; overflow: hidden; height: 520px; margin: 0 auto;
}
.stage .phone { width: 270px; flex: none; align-self: flex-start; }
.stage-grey { background: var(--stone); }
.stage-peach { background: var(--peach); }
.stage-mint { background: var(--mint); }

.recipes {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  scroll-margin-top: 20px;
}
.recipes-text { max-width: 640px; }
.recipes-text > p:not(.kicker) { max-width: 480px; }
.stage-wide {
  margin-top: 44px;
  background: linear-gradient(120deg, var(--mint) 0%, var(--stone) 50%, var(--peach) 100%);
  border-radius: 32px; padding: 56px 24px 0; height: 540px; overflow: hidden;
  display: flex; justify-content: center; gap: clamp(20px, 5vw, 64px);
}
.stage-wide .phone { width: 270px; flex: 0 1 270px; min-width: 0; align-self: flex-start; }
.stage-wide .phone-low { margin-top: 64px; }

/* ---------- Questions ---------- */
.faq { padding: 0 var(--gutter) clamp(72px, 10vw, 140px); scroll-margin-top: 20px; }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq h2 {
  margin-top: 16px; font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance;
}
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; min-height: 48px;
  font-size: 18px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green); }
.faq-plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--chip); }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease);
}
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--mint); }
.faq-item[open] .faq-plus::after { transform: rotate(0deg); }
.faq-item p { padding: 0 52px 24px 0; font-size: 17px; line-height: 1.55; color: var(--text); max-width: 640px; text-wrap: pretty; }

/* ---------- Get the app ---------- */
.get {
  position: relative; overflow: hidden; background: var(--green); color: #fff;
  padding: clamp(72px, 10vw, 130px) var(--gutter); text-align: center;
}
.get-inner { display: flex; flex-direction: column; align-items: center; }
.get-icon { width: 76px; height: 76px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .35); }
.get h2 {
  margin-top: 28px; font-weight: 500; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.045em;
  max-width: 720px; text-wrap: balance;
}
.get p { margin-top: 18px; font-size: 17px; line-height: 1.5; color: #E3F1E7; max-width: 440px; }
.get-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-store, .btn-ios {
  display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600;
  padding: 17px 28px; border-radius: 999px; transition: transform .25s var(--ease), background .25s;
}
.btn-store { background: #fff; color: var(--ink); }
.btn-store:hover { transform: translateY(-3px); color: var(--ink); }
.play-tri { width: 0; height: 0; border-left: 13px solid var(--accent); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.btn-ios { background: transparent; color: #fff; border: 1px solid #fff; padding: 16px 28px; gap: 10px; }
.btn-ios:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .12); }
.btn-ios .plus { flex: none; }
.get :focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */
.foot {
  background: var(--ink); color: #B9BBC0;
  padding: 26px var(--gutter) calc(26px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 13px;
}
.foot-brand { color: #fff; font-weight: 600; letter-spacing: -.02em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: #B9BBC0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(185, 187, 192, .4); }
.foot-links a:hover { color: #fff; }
.foot :focus-visible { outline-color: #fff; }

/* ---------- iPhone sheet ---------- */
.sheet {
  width: calc(100% - 40px); max-width: 400px; max-height: calc(100dvh - 40px); overflow-y: auto;
  border: 0; border-radius: 28px; padding: 28px; margin: auto;
  background: #fff; color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.sheet::backdrop { background: rgba(17, 17, 19, .55); }
.sheet[open] { animation: sheet-in .35s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.sheet-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.sheet-head h2:focus { outline: none; }
.sheet-note { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--peach); color: var(--ink); font-size: 14px; line-height: 1.4; }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; margin-top: 24px; font-size: 15px; line-height: 1.4; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .n {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--green);
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.step-link { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.sheet-copy {
  margin-top: 22px; width: 100%; min-height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 500; color: var(--ink);
}
.sheet-status { min-height: 1.4em; margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.sheet-done {
  margin-top: 8px; width: 100%; min-height: 48px; background: var(--green); color: #fff;
  font-size: 16px; font-weight: 600; border: none; border-radius: 999px;
}

/* ---------- Motion ----------
   Everything that moves on its own is a CSS animation of transform /
   translate on its own layer, so the GPU runs it at the screen's frame rate
   with sub-pixel steps. Scroll-linked motion uses scroll-driven animations
   where the browser has them; main.js covers the rest. */
@media (prefers-reduced-motion: no-preference) {
  .float {
    will-change: transform, translate;
    animation: bob var(--bob-dur, 4.6s) ease-in-out var(--bob-delay, 0s) infinite alternate;
  }
  /* The ring itself stays still and crisp; a copy of it ripples out and
     fades, which reads smoothly where slowly scaling a 1px line shimmers. */
  .ring::after {
    content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid #fff;
    will-change: transform, opacity;
    animation: ripple 2.6s cubic-bezier(.2, .6, .3, 1) infinite;
  }
  .ring-btn { will-change: transform; }

  /* Reveal: main.js adds .will-reveal, then .is-in. A keyframe animation
     with its delay inside stays on the GPU; a delayed transition didn't. */
  .will-reveal { opacity: 0; transform: translate3d(0, 32px, 0); }
  .will-reveal.is-in { animation: rise .8s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms) both; }
  .stripe, [data-par] { will-change: translate; }

  @supports (animation-timeline: scroll()) {
    .stripe { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0px 1200px; }
    .float {
      animation:
        bob var(--bob-dur, 4.6s) ease-in-out var(--bob-delay, 0s) infinite alternate,
        lift linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0px 1200px;
    }
    .stage, .stage-wide { view-timeline: --stage block; }
    [data-par] { animation: par linear both; animation-timeline: --stage; animation-range: cover 0% cover 100%; }
  }
}
/* The tiny rotate keeps browsers from snapping a slow GPU move to whole
   pixels (which steps it about 1px at a time and looks low-fps). */
@keyframes bob {
  from { transform: translate3d(0, calc(var(--bob, 10px) * -1), 0) rotate(.01deg); }
  to { transform: translate3d(0, var(--bob, 10px), 0) rotate(.01deg); }
}
@keyframes ripple {
  0% { transform: scale(1) rotate(.01deg); opacity: .9; }
  80%, 100% { transform: scale(1.22) rotate(.01deg); opacity: 0; }
}
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 32px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes drift { to { translate: 0 72px; } }
@keyframes lift { to { translate: 0 var(--lift, -80px); } }
@keyframes par {
  from { translate: 0 var(--par, 40px); }
  to { translate: 0 calc(var(--par, 40px) * -1); }
}

/* ---------- Phones ---------- */
@media (max-width: 719px) {
  .nav { padding: 18px 0; }
  .nav-links { display: none; }
  .hero-grid { gap: 28px; padding-top: 8px; }
  .hero-copy { order: 1; flex-basis: 100%; max-width: none; padding-top: 0; }
  .hero-lang { order: 2; flex-basis: 100%; max-width: none; padding-top: 0; }
  .lang-bracket { display: none; }
  .lang-box { width: auto; display: flex; align-items: center; gap: 12px; padding-top: 0; text-align: left; }
  .lang-note { margin-top: 0; }
  .lang-opt { min-height: 36px; padding: 0 14px; font-size: 13px; }
  .hero-phone { order: 3; width: min(64vw, 260px); margin-left: auto; margin-right: 6vw; }
  .ring-cta { margin-top: 24px; }
  .float-soon { left: -20vw; }
  .float-bought { left: -21vw; }
  .float-recipe { top: 63%; left: -18vw; }
  .today { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; }
  .stage { height: 460px; padding: 40px 24px 0; }
  .stage .phone { width: 240px; }
  .stage-wide { height: 440px; padding: 40px 16px 0; }
  .stage-wide .phone-low { margin-top: 40px; }
  .btn-store, .btn-ios { width: 100%; justify-content: center; }
  .faq-item summary { font-size: 17px; padding: 18px 0; }
  .faq-item p { padding-right: 0; }
}

@media (max-width: 400px) {
  .nav { flex-wrap: nowrap; }
  .nav-cta { padding: 11px 16px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet[open] { animation: none; }
  .ring-btn, .btn-store, .btn-ios, .faq-plus::before, .faq-plus::after { transition: none; }
}
