/* Olla website. Colours and type come from the app: mobile/src/theme/tokens.ts (accent, neutrals,
   MACRO) and the Figtree type family. Pot greens and cream come from the logo. */
:root {
  --bg: #ffffff;
  --fill: #f7f7f7;
  --surface: #ffffff;
  --text: #222222;
  --muted: #6a6a6a;
  --hairline: #e6e6e6;
  --accent: #3b7656;
  --accent-text: #2f6448;
  --tint: #e2efe6;
  --pot: #1f4a2c;
  --pot-deep: #163a22;
  --cream: #fdf3e3;
  --tomato: #e8572a;
  --kcal: #2e7d32;
  --carbs: #f5a623;
  --fat: #8e7cc3;
  --protein: #e85d8b;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.10);
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --fill: #1c1c1c; --surface: #1c1c1c; --text: #ebebeb; --muted: #b0b0b0;
    --hairline: #2e2e2e; --accent: #86c49f; --accent-text: #a2d4b5; --tint: #1f3328; --cream: #1d221e;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #121212; --fill: #1c1c1c; --surface: #1c1c1c; --text: #ebebeb; --muted: #b0b0b0;
  --hairline: #2e2e2e; --accent: #86c49f; --accent-text: #a2d4b5; --tint: #1f3328; --cream: #1d221e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-color: var(--hairline); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav .logo img { height: 62px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a.hide-sm:hover { color: var(--accent-text); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 11px 20px; transition: transform .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-green { background: var(--accent); color: #fff !important; }
.btn-green:hover { background: var(--accent-text); }

/* ---------- Store buttons ---------- */
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px; background: #111; color: #fff; text-decoration: none;
  border-radius: 14px; padding: 10px 20px 10px 16px; min-width: 186px; transition: transform .15s;
  border: 1px solid #333;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.store strong { white-space: nowrap; display: block; font-size: 18px; line-height: 1.15; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, var(--tint) 0%, transparent 65%); z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--tint); color: var(--accent-text);
  font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
h1.display {
  font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 20px;
}
h1.display em { font-style: normal; color: var(--accent); }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 30px; max-width: 520px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 640px; }
.float {
  position: absolute; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow);
  padding: 14px 16px; font-size: 14px; z-index: 3; animation: bob 6s ease-in-out infinite;
  border: 1px solid var(--hairline);
}
.float b { display: block; font-size: 22px; letter-spacing: -.02em; }
.float .muted { color: var(--muted); font-size: 12px; }
.float.f1 { top: 70px; left: 0; }
.float.f2 { bottom: 120px; right: 0; animation-delay: -2s; color: var(--accent-text); font-weight: 700; }
.float.f3 { bottom: 30px; left: 20px; animation-delay: -4s; display: flex; gap: 10px; align-items: center; }
.float.f3 img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

/* ---------- Phone ---------- */
.phone {
  position: relative; width: 300px; aspect-ratio: 1320 / 2868; border-radius: 50px; background: #0b0b0b;
  padding: 10px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.35), 0 0 0 2px #2a2a2a inset; flex: none;
}
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; background: #0b0b0b; border-radius: 20px; z-index: 5;
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #fff; }
.phone .screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tilt { transform: rotate(-4deg); }

/* ---------- Marquee ---------- */
.marquee { padding: 28px 0; border-block: 1px solid var(--hairline); overflow: hidden; background: var(--fill); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.dish { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 999px; padding: 6px 18px 6px 6px; border: 1px solid var(--hairline); white-space: nowrap; font-weight: 600; font-size: 15px; }
.dish img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dish span { color: var(--muted); font-weight: 500; }
@keyframes scroll { to { transform: translateX(-50%) } }

/* ---------- Sections ---------- */
section.block { padding: 110px 0; }
.eyebrow { color: var(--accent-text); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 12px; }
h2.title { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 18px; }
.sub { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 520px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.checks li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--accent-text);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-top: 1px;
}

/* ---------- Snap (dark) ---------- */
.snap { background: var(--pot-deep); color: #f5efe3; position: relative; overflow: hidden; }
.snap::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(134,196,159,.18), transparent 60%);
}
.snap .eyebrow { color: #a2d4b5; }
.snap .sub { color: rgba(245,239,227,.75); }
.snap .checks li::before { background: rgba(162,212,181,.16); color: #a2d4b5; }
.snap-stage { position: relative; display: flex; justify-content: center; }
.cam { position: absolute; inset: 0; }
.cam img { width: 100%; height: 100%; object-fit: cover; }
.corners { position: absolute; inset: 18% 14% 30% 14%; }
.corners i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; }
.corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.scanline {
  position: absolute; left: 10%; right: 10%; height: 3px; top: 18%; border-radius: 3px; opacity: 0;
  background: #a2d4b5; box-shadow: 0 0 24px 6px rgba(162,212,181,.75);
}
.scanning .scanline { opacity: 1; animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 18% } to { top: 68% } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .85 } 100% { opacity: 0 } }
.tag {
  position: absolute; background: rgba(255,255,255,.95); color: #222; font-weight: 700; font-size: 12px;
  padding: 6px 10px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.25);
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .35s cubic-bezier(.3,1.6,.5,1);
  white-space: nowrap; z-index: 2;
}
.tag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.tag.on { opacity: 1; transform: scale(1); }
.snap-status {
  position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); z-index: 3;
  background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(8px); white-space: nowrap;
}
.shutter {
  position: absolute; left: 50%; bottom: 3.5%; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%;
  border: 4px solid #fff; z-index: 3;
}
.shutter::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.result {
  position: absolute; left: 0; right: 0; bottom: 0; background: #fff; color: #222; border-radius: 26px 26px 0 0;
  padding: 18px 16px 22px; z-index: 4; transform: translateY(105%); transition: transform .6s cubic-bezier(.2,.9,.3,1);
}
.result.on { transform: none; }
.result h4 { margin: 0 0 10px; font-size: 16px; }
.meal { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #eee; }
.meal:first-of-type { border-top: 0; }
.meal .thumb { width: 46px; height: 46px; border-radius: 12px; background-size: cover; background-position: center; flex: none; }
.meal b { display: block; font-size: 14px; line-height: 1.25; }
.meal small { color: #3b7656; font-weight: 700; font-size: 12px; }
.ai-note { font-size: 13px; color: rgba(245,239,227,.6); margin-top: 22px; }

/* ---------- Pantry demo ---------- */
.demo-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.total-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.total-row .lbl { color: var(--muted); font-size: 13px; }
.total { font-size: 40px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.saved { display: inline-block; background: var(--tint); color: var(--accent-text); font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; transition: opacity .2s; }
.pantry { list-style: none; margin: 16px 0 0; padding: 0; }
.pantry li { border-top: 1px solid var(--hairline); }
.pantry label { display: flex; align-items: center; gap: 14px; padding: 12px 2px; cursor: pointer; user-select: none; }
.pantry input { position: absolute; opacity: 0; pointer-events: none; }
.box { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #b5b5b5; flex: none; display: grid; place-items: center; transition: all .2s; }
.pantry input:checked + .box { background: var(--accent); border-color: var(--accent); }
.pantry input:checked + .box::after { content: "✓"; color: #fff; font-weight: 800; font-size: 14px; }
.pantry input:focus-visible + .box { outline: 3px solid var(--tint); outline-offset: 2px; }
.pantry .name { flex: 1; font-weight: 600; }
.pantry .name small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.pantry .price { font-variant-numeric: tabular-nums; font-weight: 600; }
.pantry input:checked ~ .name, .pantry input:checked ~ .price { color: var(--muted); text-decoration: line-through; }
.hint { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- Macros demo ---------- */
.picker { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.picker button {
  border: 2px solid transparent; padding: 0; border-radius: 16px; overflow: hidden; width: 64px; height: 64px; cursor: pointer;
  background: none; transition: transform .15s, border-color .15s; opacity: .7;
}
.picker button img { width: 100%; height: 100%; object-fit: cover; }
.picker button[aria-pressed="true"] { border-color: var(--accent); opacity: 1; transform: translateY(-3px); }
.macro-card { overflow: hidden; padding: 0; }
.macro-photo { height: 210px; background-size: cover; background-position: center; position: relative; }
.macro-photo .chip { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94); color: #222; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.macro-body { padding: 20px 22px 24px; }
.macro-body h3 { margin: 0 0 4px; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.macro-body .meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.macro-grid { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.donut { position: relative; width: 150px; height: 150px; }
.donut svg { transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; transition: stroke-dasharray .8s cubic-bezier(.3,.9,.3,1), stroke-dashoffset .8s cubic-bezier(.3,.9,.3,1); }
.donut .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .mid b { font-size: 30px; letter-spacing: -.02em; line-height: 1; color: var(--kcal); font-variant-numeric: tabular-nums; }
.donut .mid span { font-size: 12px; color: var(--muted); }
.bars { display: grid; gap: 12px; }
.bar-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.bar-top span:last-child { font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 10px; background: var(--fill); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 10px; width: 0; transition: width .8s cubic-bezier(.3,.9,.3,1); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; text-align: left; }
.step { background: var(--fill); border-radius: var(--radius); padding: 28px; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 21px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 110px; }
.cta-box {
  background: var(--pot); color: #fff; border-radius: 36px; padding: 64px 32px; text-align: center; position: relative; overflow: hidden;
}
.cta-box::before { content: ""; position: absolute; inset: auto -120px -200px auto; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(232,87,42,.35), transparent 65%); }
.cta-box img.mark { width: 140px; margin: 0 auto 18px; background: var(--cream); border-radius: 28px; padding: 10px; }
.cta-box h2 { color: #fff; }
.cta-box .sub { color: rgba(255,255,255,.75); margin-inline: auto; }
.cta-box .stores { justify-content: center; }
.cta-box .store { background: #fff; color: #111; border-color: #fff; }
.cta-box .store svg { fill: #111; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--hairline); padding: 56px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid img { height: 54px; width: auto; margin-bottom: 12px; }
.foot-grid p { color: var(--muted); margin: 0; max-width: 300px; }
.foot-grid h5 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot-grid a { display: block; color: var(--text); text-decoration: none; margin-bottom: 9px; }
.foot-grid a:hover { color: var(--accent-text); }
.legal-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 13px; }

/* ---------- Legal pages ---------- */
.doc { padding: 56px 0 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -.01em; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--hairline); }
.doc .card, .card { background: var(--tint); border-radius: 18px; padding: 18px 22px; margin: 18px 0; }
.doc .card p { margin: 6px 0; }
.doc li { margin-bottom: 6px; }
.table-scroll { overflow-x: auto; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
html.shot .reveal { transition: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 48px; }
  .split.flip > :first-child { order: 0; }
  .split > .stage { order: 2 !important; }
  .hero { text-align: center; }
  .hero .lede, .sub { margin-inline: auto; }
  .hero .stores, .split .stores { justify-content: center; }
  .split > div:not(.stage) { text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  section.block { padding: 80px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-links .hide-sm { display: none; }
  .phone { width: 260px; border-radius: 44px; }
  .phone .screen { border-radius: 35px; }
  .hero-visual { min-height: 580px; }
  .float { font-size: 12px; padding: 10px 12px; }
  .float b { font-size: 18px; }
  .float.f1 { left: -4px; top: 40px; }
  .float.f2 { right: -4px; }
  .macro-grid { grid-template-columns: 1fr; justify-items: center; }
  .bars { width: 100%; }
  .store { min-width: 0; flex: 1 1 160px; }
  .cta-box { padding: 48px 20px; border-radius: 28px; }
}

/* ---------- Logo wordmark + socials ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text {
  color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.01em;
  padding-left: 12px; border-left: 2px solid var(--hairline); line-height: 1.2;
}
.socials { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.socials .follow { color: var(--muted); font-size: 14px; font-weight: 600; margin-right: 2px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--surface); color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 14px; transition: transform .15s, border-color .15s;
}
.social svg { width: 18px; height: 18px; }
a.social:hover { transform: translateY(-2px); border-color: var(--accent); }
.cta-box .socials { justify-content: center; }
.cta-box .socials .follow { color: rgba(255,255,255,.7); }
.cta-box .social { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
@media (max-width: 960px) { .hero .socials { justify-content: center; } }
@media (max-width: 560px) { .logo-text { font-size: 15px; padding-left: 10px; } .nav .logo img { height: 50px; } }
