/* fudapp — "the fridge door".
   Bottle-green ink on enamel white; meals are flat tiles coloured by meal type.
   Flat: no shadows, no gradients, no glass. Motion is quick and soft, overshoot on tiles only. */

@font-face { font-family: 'Bricolage'; src: url('../assets/fonts/BricolageGrotesque_400Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('../assets/fonts/BricolageGrotesque_500Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('../assets/fonts/BricolageGrotesque_700Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('../assets/fonts/BricolageGrotesque_800ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
/* Bricolage has no Cyrillic: Onest takes over for Bulgarian, same weights. */
@font-face { font-family: 'Onest'; src: url('../assets/fonts/Onest_400Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('../assets/fonts/Onest_500Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('../assets/fonts/Onest_700Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('../assets/fonts/Onest_800ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --bg: #F7F8F3;
  --surface: #ECEEE6;
  --surface-alt: #E1E5DA;
  --border: #CFD5CB;
  --ink: #123B2F;
  --ink-2: #245244;
  --text-2: #3F5F53;
  --text-3: #5F7A70;
  --muted: #7E948B;
  --faint: #A9B8B1;
  --on-ink: #F7F8F3;
  --on-ink-muted: #9DBDB0;
  --butter: #FFD23F;
  --pea: #A9DD8B;
  --beet: #F7A1B5;
  --sky: #A9D8EE;
  --wash: rgba(18, 59, 47, 0.12);
  --icon-black: #181817;

  --font: 'Bricolage', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-tile: 28px;
  --r-card: 32px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: 16px;
  --max: 1180px;
  color-scheme: light;
}
:lang(bg) { --font: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
/* The name is a wordmark: always Bricolage, whatever the page language. */
.brand__word, .foot__brand, .fud { font-family: 'Bricolage', ui-sans-serif, system-ui, sans-serif; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 12px; }
::selection { background: var(--butter); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 100px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-weight: 800; letter-spacing: -0.035em; line-height: 0.95;
  font-size: clamp(64px, 13vw, 148px);
}
:lang(bg) .hero .display, :lang(nl) .hero .display { font-size: clamp(50px, 8.6vw, 112px); }
:lang(bg) .display--light, :lang(nl) .display--light { font-size: clamp(44px, 8vw, 108px); }
.display--xl { font-size: clamp(48px, 10vw, 128px); }
.title { font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; font-size: clamp(34px, 5.4vw, 60px); text-wrap: balance; }
.kicker { font-weight: 700; font-size: 15px; color: var(--text-3); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--butter); }
.eyebrow { font-weight: 500; font-size: 17px; color: var(--text-3); margin-bottom: 18px; min-height: 1.55em; }
.lede { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.45; color: var(--text-2); max-width: 30ch; margin-top: 26px; }
.sec-head { margin-bottom: 44px; max-width: 760px; }
.sec-sub { font-size: 19px; line-height: 1.5; color: var(--text-2); margin-top: 18px; max-width: 58ch; }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; }
.link { display: inline-block; margin-top: 20px; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--butter); }
.link:hover { text-decoration-color: var(--ink); }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 100px;
  font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .2s;
}
.pill:active { transform: scale(.96); }
.pill--ink { background: var(--ink); color: var(--on-ink); }
.pill--ink:hover { background: var(--ink-2); }
.pill--line { box-shadow: inset 0 0 0 2px var(--ink); }
.pill--line:hover { background: var(--surface); }
.pill--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.pill--lg { min-height: 60px; padding: 0 34px; font-size: 18px; }
.ico { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.pill:hover .ico { transform: translateX(3px); }

.circle {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); transition: transform .18s var(--ease), background-color .2s;
}
.circle svg { width: 22px; height: 22px; }
.circle:hover { background: var(--surface-alt); }
.circle:active { transform: scale(.92); }
.circle--ink { background: var(--ink); color: var(--on-ink); }
.circle--ink:hover { background: var(--ink-2); }

.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 24px 0 20px;
  border-radius: 100px; background: var(--ink); color: var(--on-ink);
  text-decoration: none; font-weight: 700; font-size: 19px; line-height: 1.05;
  transition: transform .18s var(--ease), background-color .2s;
}
.store:active { transform: scale(.96); }
.store:hover { background: var(--ink-2); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: .75; letter-spacing: .01em; }
.store--light { background: var(--on-ink); color: var(--ink); }
.store--light:hover { background: #fff; }
.store--ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(247, 248, 243, .35); color: var(--on-ink); cursor: default; }
.store--ghost:hover { background: transparent; }
a.store--ghost { cursor: pointer; }
a.store--ghost:hover { background: rgba(247, 248, 243, .08); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-row--center { justify-content: center; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 100px;
  background: var(--surface); font-weight: 600; font-size: 15px;
  transition: background-color .2s, color .2s, transform .18s var(--ease);
}
button.chip:hover { background: var(--surface-alt); }
button.chip:active { transform: scale(.95); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.chip--diet[aria-pressed="true"] { background: var(--pea); color: var(--ink); }
.chips--small .chip { min-height: 34px; padding: 0 14px; font-size: 14px; background: rgba(247, 248, 243, .6); }
.chips--static { margin-top: 18px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(247, 248, 243, .94); transition: box-shadow .2s; }
@supports (backdrop-filter: blur(1px)) { .top { background: rgba(247, 248, 243, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); } }
.top.is-scrolled { box-shadow: 0 1px 0 var(--border); }
.top__inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__tile {
  width: 44px; height: 44px; border-radius: 12px; background: var(--icon-black); color: var(--on-ink);
  display: grid; place-items: center; flex: none; transition: transform .25s var(--pop);
}
.brand__tile:hover { transform: rotate(-6deg) scale(1.06); }
.brand__tile--sm { width: 36px; height: 36px; border-radius: 10px; }
.brand__mark { width: 78%; height: 78%; fill: currentColor; transform-origin: 40% 55%; }
.brand__tile.is-chomping .brand__mark { animation: chomp .32s var(--ease); }
@keyframes chomp { 0% { transform: scale(1) rotate(0); } 35% { transform: scale(.82, .7) rotate(-8deg); } 70% { transform: scale(1.08) rotate(3deg); } 100% { transform: scale(1) rotate(0); } }
.brand__tile[role="button"] { cursor: pointer; }
.brand__word { text-decoration: none; font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text-2); padding: 10px 14px; border-radius: 100px; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.is-on { color: var(--ink); background: var(--surface); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langs { display: flex; background: var(--surface); border-radius: 100px; padding: 4px; }
.langs button { min-width: 38px; height: 36px; border-radius: 100px; font-weight: 700; font-size: 13px; color: var(--text-3); transition: background-color .2s, color .2s; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.top .pill--sm { display: none; }
@media (min-width: 560px) { .top .pill--sm { display: inline-flex; } }
@media (min-width: 980px) { .nav { display: flex; } }

/* ---------- hero ---------- */
.hero { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 72px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.15fr .85fr; gap: 24px; padding-top: 64px; padding-bottom: 110px; min-height: calc(100svh - 72px); } }
.display .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.display .word { display: inline-block; }
.dot { display: inline-block; width: .19em; height: .19em; border-radius: 50%; background: var(--ink); margin-left: .04em; vertical-align: baseline; cursor: pointer; transition: background-color .3s, transform .3s var(--pop); }
.dot.is-today { background: var(--butter); transform: scale(1.35); }
.js .hero .display .word { transform: translateY(105%); }
.js .hero .dot { transform: scale(0); }
.js .hero .lede, .js .hero .cta-row, .js .hero .fine, .js .hero .eyebrow { opacity: 0; transform: translateY(14px); }
.is-ready .hero .display .word { transform: none; transition: transform .7s var(--ease); }
.is-ready .hero .display .line:nth-child(2) .word { transition-delay: .09s; }
.is-ready .hero .dot { transform: scale(1); transition: transform .45s var(--pop) .55s, background-color .3s; }
.is-ready .hero .dot.is-today { transform: scale(1.35); transition-delay: 0s; }
.is-ready .hero .eyebrow, .is-ready .hero .lede, .is-ready .hero .cta-row, .is-ready .hero .fine { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.is-ready .hero .lede { transition-delay: .3s; }
.is-ready .hero .cta-row { transition-delay: .4s; }
.is-ready .hero .fine { transition-delay: .5s; }

.hero__stage { position: relative; justify-self: center; width: min(78vw, 340px); padding: 0 6%; touch-action: pan-y; }
@media (min-width: 960px) { .hero__stage { width: 380px; } }

.phone {
  position: relative; border-radius: 44px; background: var(--ink); padding: 10px; aspect-ratio: 540 / 1148;
  overflow: hidden;
}
/* The screenshot sits inside an enamel screen with room around it, so the UI breathes. */
.phone img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; border-radius: 34px; background: var(--bg); padding: 5.5% 3.5% 0; }
/* Screens with a dimmed backdrop (intro cards, sheets) run edge to edge on a matching dim screen. */
.phone img.is-dim, .step__shot.is-dim { padding: 0; background: #849A91; object-fit: cover; }
.phone::after { /* camera punch-hole in the top gap */
  content: ''; position: absolute; top: calc(10px + 1.6%); left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ink); z-index: 2;
}
.js .phone--hero { opacity: 0; transform: translateY(40px) rotate(3deg); }
.is-ready .phone--hero { opacity: 1; transform: rotate(2deg); transition: transform .8s var(--ease) .15s, opacity .5s var(--ease) .15s; }

.magnet {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: clamp(92px, 26vw, 128px); aspect-ratio: 1; border-radius: var(--r-tile);
  display: grid; place-items: center; font-size: clamp(46px, 13vw, 64px); line-height: 1;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r)) scale(var(--s, 1));
  transition: transform .35s var(--pop);
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none;
}
.magnet span { pointer-events: none; display: block; transform: translateY(2%); }
.magnet--butter { background: var(--butter); }
.magnet--pea { background: var(--pea); }
.magnet--beet { background: var(--beet); }
.magnet--sky { background: var(--sky); }
.magnet.is-dragging { cursor: grabbing; transition: none; z-index: 5; }
.js .magnet { --s: 0; }
.is-ready .magnet { --s: 1; }
.is-ready .magnet:hover { --s: 1.05; }
.is-ready .magnet.is-dragging { --s: 1.08; }
.is-ready .magnet:nth-of-type(1) { transition-delay: .5s; }
.is-ready .magnet:nth-of-type(2) { transition-delay: .6s; }
.is-ready .magnet:nth-of-type(3) { transition-delay: .7s; }
.is-ready .magnet.was-placed { transition-delay: 0s; }
.magnet.is-dragging, .is-ready .magnet:hover { transition-delay: 0s; }
.stage__hint {
  position: absolute; right: -4%; bottom: -36px; font-size: 14px; font-weight: 500; color: var(--muted);
  transform: rotate(-3deg); opacity: 0; transition: opacity .6s var(--ease);
}
.is-ready .stage__hint { opacity: 1; transition-delay: 1.6s; }
.stage__hint.is-gone { opacity: 0 !important; transition-delay: 0s !important; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 6px 0 12px; border-block: 1px solid var(--border); background: var(--bg); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 90s linear infinite; padding: 10px 0; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 12px; border-radius: 22px;
  font-weight: 700; font-size: 16px; white-space: nowrap; transition: transform .3s var(--pop);
}
.mq:nth-child(odd) { transform: rotate(-1.5deg); }
.mq:nth-child(even) { transform: rotate(1.2deg); }
.mq:hover { transform: rotate(0) scale(1.06); }
.mq i { font-style: normal; font-size: 30px; line-height: 1; }
.t-b { background: var(--butter); } .t-l { background: var(--pea); } .t-d { background: var(--beet); } .t-s { background: var(--sky); }

/* ---------- question ---------- */
.question { padding-top: 130px; padding-bottom: 130px; text-align: left; }
.strikes { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 6px; }
.strikes li { font-weight: 700; font-size: clamp(26px, 4.4vw, 46px); letter-spacing: -0.02em; color: var(--text-3); }
.strikes span {
  /* A solid ink bar drawn per line (wraps cleanly on phones), grown from the left. */
  background: linear-gradient(var(--ink), var(--ink)) 0 58% / 0% .12em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .5s var(--ease);
}
.strikes li.is-struck span { background-size: 100% .12em; }
.strikes li.is-struck { color: var(--faint); transition: color .4s; }
.question__answer { margin-top: 56px; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.3; max-width: 26ch; color: var(--text-2); font-weight: 500; letter-spacing: -0.01em; }
.question__answer strong { color: var(--ink); font-weight: 800; background: linear-gradient(var(--butter), var(--butter)) 0 88% / 100% .32em no-repeat; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- how ---------- */
.how { padding-top: 40px; padding-bottom: 120px; }
.how__grid { display: grid; gap: 40px; }
.how__phone { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 64px; }
.step { position: relative; padding-left: 0; }
.step__n {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--butter);
  font-weight: 800; font-size: 22px; margin-bottom: 18px; transform: rotate(-4deg);
}
.step:nth-child(2) .step__n { background: var(--pea); transform: rotate(3deg); }
.step:nth-child(3) .step__n { background: var(--beet); transform: rotate(-2deg); }
.step:nth-child(4) .step__n { background: var(--sky); transform: rotate(4deg); }
.step:nth-child(5) .step__n { background: var(--pea); transform: rotate(-3deg); }
.step:nth-child(6) .step__n { background: var(--beet); transform: rotate(2deg); }
.step h3 { font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.025em; line-height: 1.05; }
.step p { font-size: 19px; color: var(--text-2); margin-top: 12px; max-width: 44ch; }
.step__shot { height: auto; width: min(300px, 80%); margin-top: 26px; border-radius: 34px; border: 8px solid var(--ink); background: var(--bg); padding: 5.5% 3.5% 0; }

@media (min-width: 960px) {
  .how__grid { grid-template-columns: 440px 1fr; gap: 72px; align-items: start; }
  .how__phone { display: block; position: sticky; top: max(84px, calc(50vh - 390px)); padding: 24px 0 0 24px; }
  .how__phone .phone { position: relative; z-index: 1; width: min(340px, calc((100vh - 170px) / 2.13)); }
  .how__back {
    position: absolute; z-index: 0; left: -18px; top: 70px; width: calc(min(340px, calc((100vh - 170px) / 2.13)) + 90px); bottom: 70px;
    border-radius: 56px; background: var(--back, var(--butter)); transform: rotate(var(--back-r, -4deg));
    transition: background-color .5s var(--ease), transform .6s var(--pop);
  }
  .how__phone .phone img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); opacity: 0; transform: scale(.97); transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .how__phone .phone img.is-on { opacity: 1; transform: none; }
  .how__dots { display: flex; gap: 8px; margin: 26px 0 0 132px; position: relative; z-index: 1; }
  .how__dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--border); transition: width .3s var(--ease), background-color .3s; }
  .how__dots i.is-on { width: 26px; background: var(--butter); }
  .steps { gap: 0; }
  .step { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .4s var(--ease); }
  .step.is-on { opacity: 1; }
  .step:first-child { min-height: 58vh; }
  .step__shot { display: none; }
}

/* ---------- per-step illustrations ---------- */
.mini { margin-top: 28px; max-width: 470px; }
.mini--meals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-tile { position: relative; aspect-ratio: 1; border-radius: 22px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; transform: scale(.6) rotate(-6deg); opacity: 0; transition: transform .45s var(--pop), opacity .3s; }
.mini-tile b { font-size: 13px; font-weight: 600; }
.mini-tile i { font-style: normal; font-size: clamp(34px, 5vw, 48px); line-height: 1; }
.mini-tile em { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: var(--wash); display: grid; place-items: center; }
.mini-tile em svg { width: 15px; height: 15px; }
.step.is-on .mini-tile { transform: rotate(var(--mr, 0deg)); opacity: 1; }
.mini-tile:nth-child(1) { --mr: -3deg; } .mini-tile:nth-child(2) { --mr: 2deg; transition-delay: .08s; } .mini-tile:nth-child(3) { --mr: -1.5deg; transition-delay: .16s; }
.step.is-on .mini-tile em svg { animation: spin .6s var(--ease) .7s; }

.mini--days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding-top: 34px; }
.mini-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.mini-day::before { content: ''; width: 100%; height: 58px; border-radius: 14px; background: var(--c); transform: scaleY(.2); transform-origin: bottom; opacity: 0; transition: transform .45s var(--pop) var(--d), opacity .3s var(--d); }
.step.is-on .mini-day::before { transform: none; opacity: 1; }
.mini-day.a { --c: var(--pea); } .mini-day.b { --c: var(--sky); }
.mini-basket { position: absolute; top: -32px; left: 50%; width: 28px; height: 28px; margin-left: -14px; border-radius: 9px; background: var(--butter); display: grid; place-items: center; transform: translateY(-14px) scale(.4); opacity: 0; transition: transform .45s var(--pop) .6s, opacity .3s .6s; }
.mini-basket svg { width: 17px; height: 17px; }
.step.is-on .mini-basket { transform: none; opacity: 1; }

.mini--bars, .mini--time { display: grid; gap: 10px; }
.mini--bars > div, .mini--time > div { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; background: var(--surface); border-radius: 18px; padding: 12px 16px; font-weight: 600; font-size: 15px; }
.mini--bars i, .mini--time i { grid-column: 1 / -1; grid-row: 2; height: 10px; border-radius: 10px; background: var(--surface-alt); position: relative; overflow: hidden; }
.mini--bars i::after, .mini--time i::after { content: ''; position: absolute; inset: 0; width: var(--w); border-radius: 10px; background: var(--faint); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .15s; }
.mini--bars .is-best i::after, .mini--time .is-best i::after { background: var(--pea); }
.mini--bars b, .mini--time b { font-variant-numeric: tabular-nums; }
.mini-badge { font-style: normal; font-size: 12px; font-weight: 700; background: var(--pea); border-radius: 100px; padding: 2px 9px; margin-left: 6px; }
.mini-note { font-size: 12px; font-weight: 600; color: var(--text-3); margin-left: 4px; }
.step.is-on .mini--bars i::after, .step.is-on .mini--time i::after { transform: none; }

.mini--cook { background: var(--surface); border-radius: 26px; padding: 20px 22px 22px; }
.mini-cook__step { font-size: 14px !important; font-weight: 600; color: var(--text-3) !important; margin: 0 !important; }
.mini-cook__bar { height: 6px; border-radius: 6px; background: var(--surface-alt); margin: 10px 0 18px; overflow: hidden; }
.mini-cook__bar i { display: block; height: 100%; width: 50%; background: var(--butter); border-radius: 6px; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .2s; }
.step.is-on .mini-cook__bar i { transform: none; }
.mini-cook__text { font-weight: 800 !important; font-size: 22px !important; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink) !important; margin: 0 !important; max-width: none !important; }
.mini-cook__amt { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--text-3); }

/* ---------- demo ---------- */
.demo { background: var(--surface); padding: 110px 0 100px; border-radius: 48px 48px 0 0; }
.demo__controls { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; margin-bottom: 40px; }
@media (min-width: 960px) { .demo__controls { flex-direction: row; align-items: center; justify-content: space-between; } .demo__controls .chips { max-width: 760px; } }
.demo .chip { background: var(--bg); }
.demo .chip:hover { background: var(--surface-alt); }
.demo .chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.demo .chip--diet[aria-pressed="true"] { background: var(--pea); color: var(--ink); }
#planBtn { flex: none; }
#planBtn.is-busy { pointer-events: none; }

.week { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--border) transparent; min-height: 200px; }
@media (min-width: 1100px) { .week { grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); overflow: visible; margin: 0; padding-inline: 0; } }
.week__empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 260px; border: 2px dashed var(--border); border-radius: var(--r-card); color: var(--muted); font-weight: 600; font-size: 18px; text-align: center; padding: 20px; }
.day { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.day__head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--text-3); padding: 4px 6px; }
.day__head.is-today { color: var(--ink); }
.day__head.is-today::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--butter); }
.tile {
  position: relative; border-radius: 24px; padding: 14px 14px 16px; min-height: 168px; display: flex; flex-direction: column;
  color: var(--ink); transform-origin: 50% 80%;
}
.tile__type { font-weight: 600; font-size: 13px; }
.tile__emoji { font-size: 38px; line-height: 1; margin-top: 12px; display: block; }
.tile__name { font-weight: 800; font-size: 17px; line-height: 1.12; letter-spacing: -0.01em; margin-top: 10px; text-wrap: balance; }
.tile__meta { font-size: 13px; color: rgba(18, 59, 47, .62); margin-top: auto; padding-top: 8px; }
.tile__spin {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--wash); display: grid; place-items: center; transition: background-color .2s, transform .18s var(--ease);
}
.tile__spin svg { width: 18px; height: 18px; }
.tile__spin:hover { background: rgba(18, 59, 47, .2); }
.tile__spin:active { transform: scale(.9); }
.tile__spin.is-spinning svg { animation: spin .5s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
.tile.is-in { animation: tileIn .42s var(--pop) both; }
@keyframes tileIn { from { opacity: 0; transform: translateY(18px) scale(.86) rotate(var(--tr, -3deg)); } to { opacity: 1; transform: none; } }
.tile.is-swap .tile__emoji, .tile.is-swap .tile__name, .tile.is-swap .tile__meta { animation: swapIn .36s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px); } }
.demo__note { margin-top: 30px; color: var(--text-3); font-size: 15px; max-width: 70ch; }

/* ---------- prices ---------- */
.prices { display: grid; gap: 48px; padding-top: 130px; padding-bottom: 130px; align-items: center; }
@media (min-width: 960px) { .prices { grid-template-columns: 1fr 1fr; gap: 80px; } }
.compare { background: var(--bg); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--border); margin-bottom: 20px; position: relative; }
.tabs button { padding: 14px 8px 16px; font-weight: 700; font-size: 17px; color: var(--muted); transition: color .2s; position: relative; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--ink); border-radius: 4px 4px 0 0; }
.compare__body { display: grid; gap: 12px; min-height: 360px; align-content: start; }
.store-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 20px 24px; border-radius: 28px; background: var(--surface);
  position: relative; overflow: hidden; animation: rowIn .45s var(--ease) both;
}
.store-row:nth-child(2) { animation-delay: .07s; } .store-row:nth-child(3) { animation-delay: .14s; } .store-row:nth-child(4) { animation-delay: .21s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(12px); } }
.store-row__name { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; }
.store-row__sub { color: var(--text-3); font-size: 15px; position: relative; grid-column: 1; }
.store-row__price { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; grid-row: 1 / span 2; grid-column: 2; position: relative; font-variant-numeric: tabular-nums; }
.store-row__bar { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--surface-alt); transition: width .9s var(--ease); }
.store-row.is-best .store-row__bar { background: rgba(169, 221, 139, .45); }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 100px; background: var(--pea); font-size: 14px; font-weight: 700; letter-spacing: 0; animation: badgeIn .45s var(--pop) .5s both; }
@keyframes badgeIn { from { transform: scale(0) rotate(-10deg); } }
.split { display: grid; gap: 8px; }
.split__item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--surface); font-weight: 600; font-size: 15px; animation: rowIn .4s var(--ease) both; }
.split__item b { margin-left: auto; font-variant-numeric: tabular-nums; }
.split__store { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 100px; background: var(--bg); color: var(--text-2); }
.split__more { font-size: 14px; font-weight: 600; color: var(--text-3); padding: 4px 16px 0; }
.split__total { margin-top: 8px; padding: 22px 24px; border-radius: 28px; background: var(--ink); color: var(--on-ink); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; animation: rowIn .45s var(--ease) .3s both; }
.split__total strong { font-size: 22px; }
.split__total span { color: var(--on-ink-muted); font-size: 15px; grid-column: 1; }
.split__total b { font-size: 30px; grid-row: 1 / span 2; grid-column: 2; font-variant-numeric: tabular-nums; }

/* ---------- features / bento ---------- */
.features { padding-bottom: 120px; }
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .bento { grid-template-columns: repeat(3, 1fr); } .card--tall { grid-row: span 2; } .card--discover { grid-row: span 2; } }
.card { border-radius: var(--r-card); padding: 30px; display: flex; flex-direction: column; min-height: 260px; overflow: hidden; position: relative; }
.card h3 { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.card p { margin-top: 10px; color: rgba(18, 59, 47, .75); font-size: 16px; }
.card--butter { background: var(--butter); }
.card--pea { background: var(--pea); }
.card--beet { background: var(--beet); }
.card--sky { background: var(--sky); }
.card--surface { background: var(--surface); }
.card--discover { background: var(--ink); color: var(--on-ink); }
.card--discover p { color: var(--on-ink-muted); }

.macro { margin-top: auto; padding-top: 30px; display: grid; gap: 26px; }
.macro__ring { position: relative; width: 210px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; justify-self: center; }
.macro__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.macro__ring circle { fill: none; stroke-width: 14; stroke-linecap: round; }
.ring-bg { stroke: rgba(18, 59, 47, .12); }
.ring-fg { stroke: var(--ink); stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.4s var(--ease); }
.is-in .ring-fg { stroke-dashoffset: 47; }
.macro__ring span { font-weight: 800; font-size: 40px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.macro__ring small { font-size: 14px; font-weight: 600; color: rgba(18, 59, 47, .62); }
.goal { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(247, 248, 243, .5); border-radius: 100px; padding: 4px; }
.goal span { text-align: center; padding: 9px 4px; border-radius: 100px; font-weight: 700; font-size: 14px; color: rgba(18, 59, 47, .62); }
.goal .is-on { background: var(--ink); color: var(--on-ink); }
.macro__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.macro__bars li { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; font-size: 14px; }
.macro__bars b { font-weight: 600; }
.macro__bars i { height: 12px; border-radius: 12px; background: rgba(18, 59, 47, .12); position: relative; overflow: hidden; }
.macro__bars i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: var(--ink); border-radius: 12px; transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .3s; }
.is-in .macro__bars i::after { transform: scaleX(1); }

.discover { display: flex; flex-direction: column; height: 100%; gap: 22px; }
.deck { position: relative; flex: 1; min-height: 300px; }
.dcard {
  position: absolute; inset: 0; border-radius: 28px; padding: 22px; display: flex; flex-direction: column; color: var(--ink);
  user-select: none; -webkit-user-select: none; touch-action: none; cursor: grab;
  transition: transform .35s var(--ease), opacity .35s;
}
.dcard:nth-last-child(2) { transform: scale(.94) translateY(16px) rotate(2deg); }
.dcard:nth-last-child(3) { transform: scale(.88) translateY(32px) rotate(-2deg); }
.dcard:nth-last-child(n+4) { opacity: 0; }
.dcard.is-dragging { transition: none; cursor: grabbing; }
.dcard__type { font-weight: 600; font-size: 14px; }
.dcard__emoji { font-size: 96px; line-height: 1; margin: auto; }
.dcard__name { font-weight: 800; font-size: 26px; line-height: 1.08; letter-spacing: -0.02em; }
.dcard__meta { font-size: 14px; color: rgba(18, 59, 47, .62); margin-top: 6px; }
.dcard__stamp { position: absolute; top: 22px; right: 22px; padding: 6px 14px; border-radius: 100px; font-weight: 800; font-size: 15px; opacity: 0; transform: rotate(8deg); background: var(--ink); color: var(--on-ink); }
.dcard__stamp--no { left: 22px; right: auto; transform: rotate(-8deg); background: var(--bg); color: var(--ink); }
.deck__btns { display: flex; align-items: center; justify-content: center; gap: 22px; }
.card--discover .circle { background: var(--ink-2); color: var(--on-ink); }
.card--discover .circle:hover { background: #2f5f50; }
.card--discover .circle--ink { background: var(--butter); color: var(--ink); }
.card--discover .circle--ink:hover { background: #ffdc66; }
.deck__count { font-weight: 700; color: var(--on-ink-muted); min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }

.checklist { list-style: none; padding: 0; margin: auto 0 0; padding-top: 22px; display: grid; gap: 6px; }
.checklist button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 14px; border-radius: 16px; background: rgba(247, 248, 243, .55); font-weight: 600; font-size: 15px; transition: background-color .2s, transform .3s var(--ease), opacity .3s; }
.checklist button:hover { background: rgba(247, 248, 243, .8); }
.checklist i { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--ink); flex: none; position: relative; transition: background-color .2s; }
.checklist i::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--on-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--pop); }
.checklist [aria-pressed="true"] i { background: var(--ink); }
.checklist [aria-pressed="true"] i::after { transform: rotate(45deg) scale(1); }
.checklist [aria-pressed="true"] span { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .55; }

.swapper { margin-top: auto; padding-top: 24px; display: flex; gap: 12px; height: 120px; position: relative; }
.swapper__tile { width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; font-size: 46px; box-shadow: inset 0 0 0 3px rgba(18, 59, 47, .12); transition: transform .5s var(--pop); position: relative; }
.swapper__tile.t-d { background: var(--beet); box-shadow: inset 0 0 0 3px var(--ink); }
.swapper.is-swapped .swapper__tile:first-child { transform: translateX(104px) rotate(4deg); }
.swapper.is-swapped .swapper__tile:last-child { transform: translateX(-104px) rotate(-4deg); }

.hello { margin-top: auto; padding-top: 26px; font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1; min-height: 2.1em; }
.hello.is-swap { animation: swapIn .4s var(--ease); }
.hello[lang="bg"] { font-family: 'Onest', var(--font); }

/* ---------- numbers ---------- */
.numbers { background: var(--ink); color: var(--on-ink); padding: 90px 0; }
.numbers__grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .numbers__grid { grid-template-columns: repeat(4, 1fr); } }
.num b { display: block; font-weight: 800; font-size: clamp(64px, 9vw, 112px); letter-spacing: -0.045em; line-height: .95; font-variant-numeric: tabular-nums; }
.num span { display: block; margin-top: 10px; color: var(--on-ink-muted); font-size: 17px; max-width: 22ch; }
.num:nth-child(1) b { color: var(--butter); } .num:nth-child(2) b { color: var(--pea); } .num:nth-child(3) b { color: var(--sky); } .num:nth-child(4) b { color: var(--beet); }

/* ---------- privacy ---------- */
.privacy { display: grid; gap: 32px; padding-top: 120px; padding-bottom: 120px; align-items: center; }
@media (min-width: 860px) { .privacy { grid-template-columns: 220px 1fr; gap: 60px; } }
.privacy__mark { width: 180px; aspect-ratio: 1; border-radius: 44px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; transform: rotate(-4deg); }
.privacy__mark svg { width: 78%; height: 78%; fill: currentColor; }

/* ---------- faq ---------- */
.faq { padding-bottom: 130px; }
.faq__list { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border-radius: 26px; transition: background-color .2s; }
.faq details[open] { background: var(--surface-alt); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; font-weight: 700; font-size: 19px; position: relative; border-radius: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23123B2F' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--text-2); max-width: 64ch; }

/* ---------- end card ---------- */
.end { background: var(--ink); color: var(--on-ink); padding: 120px 0 130px; text-align: center; border-radius: 48px 48px 0 0; overflow: hidden; }
.end__inner { display: flex; flex-direction: column; align-items: center; }
.end__mark { width: 120px; height: 120px; fill: var(--on-ink); margin-bottom: 34px; transform-origin: 40% 55%; }
.end.is-in .end__mark { animation: chomp .5s var(--ease) .3s, chomp .5s var(--ease) .9s; }
.display--light { color: var(--on-ink); font-size: clamp(56px, 11vw, 132px); }
.end__sub { color: var(--on-ink-muted); font-size: 22px; margin-top: 22px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--on-ink-muted); padding: 0 0 40px; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; border-top: 1px solid rgba(247, 248, 243, .14); padding-top: 30px; }
.foot__brand { display: flex; align-items: center; gap: 10px; color: var(--on-ink); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.foot__brand .brand__tile { background: var(--on-ink); color: var(--ink); }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__links a { text-decoration: none; font-size: 15px; }
.foot__links a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 4px; }
.foot__note { font-size: 14px; margin-left: auto; }
@media (max-width: 700px) { .foot__note { margin-left: 0; } }

/* ---------- phone tab bar (mirrors the app's own) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.tabbar.is-on { transform: none; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--text-3); font-size: 12px; font-weight: 700; padding: 6px 0 4px; border-radius: 16px; position: relative; }
.tabbar svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.tabbar span { position: relative; z-index: 1; }
.tabbar a::before { content: ''; position: absolute; top: 1px; left: 50%; width: 54px; height: 34px; margin-left: -27px; border-radius: 12px; background: var(--butter); transform: rotate(-3deg) scale(0); transition: transform .3s var(--pop); }
.tabbar a.is-on { color: var(--ink); }
.tabbar a.is-on::before { transform: rotate(-3deg) scale(1); }
.tabbar a:active { transform: scale(.94); }
@media (min-width: 980px) { .tabbar { display: none; } }
@media (max-width: 979px) {
  .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, calc(100% + 40px));
  background: var(--ink); color: var(--on-ink); padding: 14px 22px; border-radius: 100px; font-weight: 700; font-size: 16px;
  max-width: calc(100vw - 32px); text-align: center; transition: transform .35s var(--pop), visibility 0s .35s; pointer-events: none; visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .35s var(--pop), visibility 0s; }

/* ---------- easter egg: tile rain ---------- */
.rain { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.drop { position: absolute; top: -120px; width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-size: 40px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(calc(100vh + 160px)) rotate(var(--rot)); } }
.flyer { position: fixed; z-index: 90; font-size: 34px; pointer-events: none; transition: transform .5s cubic-bezier(.5, 0, .75, 0), opacity .5s; }

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track .mq:nth-child(n+25) { display: none; }
}

/* ---------- phones: tighter rhythm, bigger touch targets ---------- */
@media (max-width: 719px) {
  .question { padding-top: 84px; padding-bottom: 84px; }
  .how { padding-bottom: 84px; }
  .steps { gap: 56px; }
  .demo { padding: 76px 0 72px; border-radius: 32px 32px 0 0; }
  .prices, .privacy { padding-top: 84px; padding-bottom: 84px; }
  .features, .faq { padding-bottom: 84px; }
  .numbers { padding: 64px 0; }
  .end { padding: 84px 0 90px; border-radius: 32px 32px 0 0; }
  .sec-head { margin-bottom: 30px; }
  .privacy__mark { width: 116px; border-radius: 30px; }
  .card { padding: 24px; border-radius: 28px; }
  .langs button { min-width: 40px; height: 40px; }
  .tile__spin { width: 42px; height: 42px; top: 8px; right: 8px; }
  .faq summary { font-size: 17px; padding: 20px 60px 20px 22px; }
  .store-row { padding: 18px 20px; }
  .store-row__name { font-size: 21px; }
  .store-row__price { font-size: 25px; }
}
