@font-face { font-family: Outfit; src: url(fonts/outfit_regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit_medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit_semibold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit_bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --bg: #F4F3F0;
  --card: #FFFFFF;
  --soft: #F5F5F6;
  --ink: #18181B;
  --muted: #52525B;
  --faint: #A1A1AA;
  --line: #E4E4E7;
  --green: #22A447;
  --green-soft: #E8F6EE;
  --orange: #F97316;
  --orange-soft: #FFF1E6;
  --blue: #3B82F6;
  --blue-soft: #EAF2FF;
  --shadow: 0 12px 34px rgba(24, 24, 27, .07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font-family: Outfit, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---- Top bar ---------------------------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(244, 243, 240, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(24, 24, 27, .06); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 12px rgba(24, 24, 27, .18); }
.brand span { font-weight: 400; font-size: 21px; letter-spacing: -.3px; }
.brand span b { font-weight: 600; }
.links { display: flex; gap: 6px; }
.links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.links a:hover, .links a[aria-current] { background: var(--card); color: var(--ink); box-shadow: 0 4px 12px rgba(24, 24, 27, .06); }

/* ---- Buttons ------------------------------------------------------------------------------------------------------ */
.play { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 16px; padding: 11px 22px 11px 18px; box-shadow: 0 10px 24px rgba(24, 24, 27, .22); transition: transform .2s; }
.play:hover { transform: translateY(-2px); }
.play svg { width: 26px; height: 26px; flex: none; }
.play small { display: block; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; opacity: .75; line-height: 1.2; }
.play b { display: block; font-weight: 600; font-size: 19px; line-height: 1.15; }

/* ---- Hero --------------------------------------------------------------------------------------------------------- */
/* The glow circles reach past the screen edge: clip them sideways so phones never get a horizontal scroll or zoom-out. */
.hero { position: relative; padding: 56px 0 40px; overflow-x: hidden; overflow-x: clip; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 164, 71, .2), transparent 64%); z-index: -1; }
.hero::after { content: ""; position: absolute; width: 700px; height: 700px; left: -320px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 115, 22, .12), transparent 64%); z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .8); padding: 8px 16px; border-radius: 999px; box-shadow: 0 4px 12px rgba(24, 24, 27, .05); }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
h1 { font-weight: 600; font-size: clamp(42px, 6.2vw, 74px); line-height: 1.02; letter-spacing: -2.4px; margin-top: 22px; }
h1 em, h2 em { font-style: normal; color: var(--green); }
.lead { font-size: 20px; color: var(--muted); margin-top: 20px; max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--muted); font-size: 15px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; }

/* ---- Phone mockup: Pixel 9 frame over a screen image ----------------------------------------------------------- */
.phone { position: relative; width: 300px; aspect-ratio: 968 / 2049; filter: drop-shadow(0 30px 50px rgba(24, 24, 27, .25)); }
.phone .screen { position: absolute; left: 4.808%; top: 2.33%; width: 89.97%; height: 95.4%; border-radius: 13.74% / 6.12%; overflow: hidden; background: #000; }
.phone { container-type: inline-size; }
.phone .screen { display: flex; flex-direction: column; }
.phone .screen > img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top; }
.phone .screen.bleed > img { position: absolute; inset: 0; height: 100%; }
/* Status bar of the phone screen (added by the page script). Tall enough that the frame's camera hole sits inside it,
   with the time and icons level with the hole, as on a real Pixel. */
.sb { flex: none; position: relative; z-index: 2; height: 12.6cqw; display: flex; align-items: center; justify-content: space-between; padding: 1.8cqw 9cqw 0 10cqw; background: #F5F5F6; color: #18181B; font-weight: 600; font-size: 4.2cqw; }
.screen.bleed .sb { position: absolute; top: 0; left: 0; right: 0; background: transparent !important; color: #fff; }
.sb .ic { display: flex; gap: 1.6cqw; align-items: center; }
.sb svg { height: 3.2cqw; width: auto; fill: currentColor; }
/* The screen is its own layer under the frame, so nothing on it (status bar, bubbles) covers the frame's camera hole. */
.phone .screen { z-index: 1; }
.phone .frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

.stage { position: relative; height: 640px; }
.stage .phone.front { position: absolute; left: 50%; top: 0; width: 300px; transform: translateX(-30%) rotate(-3deg); z-index: 2; }
.stage .phone.back { position: absolute; left: 50%; top: 46px; width: 270px; transform: translateX(-108%) rotate(5deg); opacity: .96; }

/* Calorie bubbles popping in over the camera view (the screen image already has the scan frame). */
.bubble { position: absolute; transform: translate(-50%, -50%) scale(.6); opacity: 0; display: flex; align-items: center; gap: 7px; background: #fff; border-radius: 14px; padding: 6px 11px 6px 8px; box-shadow: 0 8px 18px rgba(24, 24, 27, .2); animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) forwards, bob 3.6s ease-in-out infinite; white-space: nowrap; }
.bubble .e { font-size: 19px; line-height: 1; }
.bubble b { display: block; font-weight: 600; font-size: 15px; line-height: 1.05; }
.bubble small { display: block; font-size: 10px; color: #71717A; line-height: 1.1; }
@keyframes pop { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes bob { 0%, 100% { margin-top: -2px; } 50% { margin-top: 3px; } }

/* ---- Sections ----------------------------------------------------------------------------------------------------- */
section { padding: 84px 0; }
.head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
h2 { font-weight: 600; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -1.4px; margin-top: 16px; }
.head p { color: var(--muted); font-size: 19px; margin-top: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--soft); }
.card h3 { font-weight: 600; font-size: 21px; margin-top: 18px; letter-spacing: -.2px; }
.card p { color: var(--muted); font-size: 16px; margin-top: 6px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.row + .row { margin-top: 90px; }
.row.flip .text { order: 2; }
.row > * { min-width: 0; }
.row .shot { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.row .shot.pair .phone { width: 240px; }
.row .shot.pair .phone.lower { margin-top: 60px; }
.row .text .tag { display: inline-block; font-weight: 600; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.row .text h2 { text-align: left; }
.row .text p { color: var(--muted); font-size: 19px; margin-top: 16px; }
.row .text .note { font-size: 15px; color: var(--muted); background: var(--card); border-radius: 16px; padding: 12px 16px; margin-top: 22px; box-shadow: var(--shadow); }
.row .text ul { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.row .text li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.row .text li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--dot, var(--green)); }

.privacy { background: var(--ink); color: #fff; border-radius: 34px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.privacy h2 { color: #fff; margin-top: 0; }
.privacy p { color: #A1A1AA; font-size: 18px; margin-top: 14px; }
.privacy .points { display: grid; gap: 12px; }
.privacy .points div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 16px 18px; font-size: 16px; }
.privacy .points b { display: block; font-weight: 600; font-size: 17px; }
.privacy .points span { color: #A1A1AA; }

.final { text-align: center; }
.final .card { padding: 56px 28px; background: linear-gradient(140deg, #fff 0%, #F1FAF4 100%); }
.final img.logo { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto; box-shadow: 0 10px 24px rgba(24, 24, 27, .2); }
.final .cta { justify-content: center; }

footer { padding: 34px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.disclaimer { color: var(--faint); font-size: 13px; text-align: center; padding-bottom: 30px; }

/* ---- Reveal on scroll --------------------------------------------------------------------------------------------- */
/* Only hidden when JS runs (html.js), so the page still shows everything without it. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } .bubble { animation: none; opacity: 1; transform: translate(-50%, -50%); } }

/* ---- Responsive --------------------------------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero .wrap, .row, .privacy { grid-template-columns: 1fr; }
  .hero { text-align: center; padding-top: 36px; }
  .lead, .head { margin-left: auto; margin-right: auto; }
  .cta, .trust { justify-content: center; }
  .stage { height: 600px; max-width: 520px; margin: 0 auto; }
  .row.flip .text { order: 0; }
  .row .text { text-align: center; }
  .row .text h2 { text-align: center; }
  .row .text ul { display: inline-grid; justify-items: start; text-align: left; }
  .grid { grid-template-columns: 1fr 1fr; }
  .privacy { padding: 40px 28px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  /* Hero: one phone, centred (the second one would only peek in from the edge). */
  .stage .phone.back { display: none; }
  .stage .phone.front { left: 50%; transform: translateX(-50%) rotate(-2deg); }
  /* Feature cards: icon beside the text, so six cards don't take six screens. */
  .card { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start; padding: 20px; border-radius: 22px; }
  .card .ic { grid-row: span 2; width: 48px; height: 48px; font-size: 24px; border-radius: 14px; }
  .card h3 { margin-top: 0; font-size: 18px; }
  .card p { margin-top: 2px; font-size: 15px; }
  .grid { gap: 12px; }
  .head { margin-bottom: 30px; }
  .head p, .row .text p { font-size: 17px; }
  .row .text li { font-size: 16px; }
  .row + .row { margin-top: 64px; }
  .privacy { padding: 30px 20px; gap: 24px; }
  .privacy p { font-size: 16px; }
  .final .card { display: block; padding: 40px 20px; }
  footer nav { justify-content: center; }
  footer .brand span { display: inline; }
  .wrap { padding: 0 16px; }
  .top .wrap { height: 64px; }
  .brand span { display: none; }
  .links a { font-size: 14px; padding: 8px 10px; }
  h1 { letter-spacing: -1.6px; }
  .lead { font-size: 18px; }
  .stage { height: 520px; }
  .stage .phone.front { width: 240px; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .row .shot .phone { width: 240px; }
  .row .shot.pair { gap: 12px; }
  .row .shot.pair .phone { width: 46%; }
  .row .shot.pair .phone.lower { margin-top: 36px; }
  .privacy { border-radius: 26px; }
  footer .wrap { justify-content: center; text-align: center; }
}
@media (max-width: 380px) {
  .links a { padding: 8px 8px; font-size: 13px; }
  h1 { font-size: 38px; }
  .stage { height: 480px; }
  .stage .phone.front { width: 220px; }
  .row .shot .phone { width: 220px; }
}
