/* ============================================================================
   Mazali — landing page styles
   Order: tokens · base · layout · header · hero · sections · footer · motion
   One rule of the brand: yellow is an accent and a surface, never a text
   colour, and text on yellow is always --ink. No white-on-yellow anywhere.
   ========================================================================== */

/* ── tokens ───────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  --yellow: #ffc72c;
  --yellow-press: #e5ad18;
  --yellow-soft: #fff3c4;
  --yellow-wash: #fffaea;
  /* gold that passes 4.5:1 as text/icons on cream or white */
  --gold-text: #a45c12;

  --bg: #fffdf7;
  --card: #ffffff;
  --ink: #171714;
  --ink-2: #6b6962;
  --ink-3: #726f65;
  --line: #efeade;
  --line-2: #e2dbcb;

  --ok: #27a65a;
  --err: #e5484d;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --sh-1: 0 1px 2px rgba(23, 23, 20, .05), 0 10px 24px -14px rgba(23, 23, 20, .18);
  --sh-2: 0 2px 4px rgba(23, 23, 20, .04), 0 28px 60px -30px rgba(23, 23, 20, .3);
  --sh-3: 0 40px 90px -40px rgba(23, 23, 20, .45);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
}

/* ── base ─────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.62;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.032em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: .75rem 1.25rem;
  border-radius: 999px;
  transition: top .2s ease;
}
.skip:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── layout ───────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .85rem;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

.h2 { font-size: clamp(1.9rem, 1.25rem + 2.6vw, 3rem); }
.h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.5rem); }

.lede {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  max-width: 52ch;
}

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .h2 { margin-block: 1rem .75rem; }

/* ── buttons ──────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .9rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-1); }
.btn:active { transform: translateY(0); }

/* Primary = brand yellow with dark text. Never white text on yellow. */
.btn--primary { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.btn--primary:hover { --btn-bg: var(--yellow-press); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { --btn-bg: var(--card); }

.btn--sm { min-height: 44px; padding: .6rem 1.15rem; font-size: .9375rem; }
.btn--block { width: 100%; }

/* ── header ───────────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.header[data-stuck="true"] {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -.03em;
}
.brand img { width: 38px; height: 38px; }

.nav {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav a {
  padding: .55rem .85rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--card); }

.header__cta { margin-left: .75rem; }

.burger {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
}
.burger span {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav ul { padding: .5rem 0 1.25rem; }
.mobile-nav a {
  display: block;
  padding: .9rem .25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 1.25rem; }

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  /* the warm glow and the floating cards hang outside the container; clip at
     the section edge so nothing widens the document */
  overflow-x: clip;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
/* One warm glow behind the food, not a page-wide gradient wash. */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto auto;
  width: min(760px, 80vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--yellow-soft) 0%, transparent 68%);
  opacity: .85;
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.5rem);
  margin-block: 1.25rem 1rem;
}
.hero h1 .u {
  /* highlighter stroke, not a filled block behind the descenders */
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 100% .26em;
  background-position: 0 76%;
  padding-inline: .05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__sub { color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); max-width: 34ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.5rem;
  font-size: .9375rem;
  color: var(--ink-2);
}
.hero__note svg { width: 18px; height: 18px; flex: none; color: var(--gold-text); }

/* photo composition */
.hero__art {
  position: relative;
  isolation: isolate;
}
.hero__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: var(--yellow-soft);
}
.hero__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.hero__badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 700;
  box-shadow: var(--sh-1);
}

/* floating recipe chips over the photo */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .95rem .7rem .7rem;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  min-width: 208px;
}
.float-card img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.float-card b { display: block; font-size: .9375rem; font-weight: 700; letter-spacing: -.01em; }
.float-card span { font-size: .8125rem; color: var(--ink-2); }

.float-card--a { left: -2.5rem; top: 24%; }
.float-card--b { right: -2rem; bottom: 12%; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero__stats div { font-size: .875rem; color: var(--ink-2); }
.hero__stats b {
  display: block;
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}

/* ── generic cards ────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.demo-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  opacity: .6;
}

/* ── scenarios ────────────────────────────────────────────────────────────── */
.scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.scenario {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s ease;
}
.scenario:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.scenario__n {
  font-family: var(--display);
  font-size: .875rem;
  font-weight: 800;
  color: var(--gold-text);
}
.scenario h3 { margin-block: .6rem .4rem; font-size: 1.375rem; }
.scenario p { color: var(--ink-2); font-size: .9375rem; }
.scenario__demo {
  margin-top: auto;
  padding-top: 1.5rem;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .5rem .9rem;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.chip:hover { border-color: var(--ink-3); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  font-weight: 600;
}
.chip[aria-pressed="true"] .chip__tick { opacity: 1; transform: scale(1); }
.chip__tick {
  width: 14px; height: 14px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .16s ease, transform .16s ease;
}

.result-line {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: var(--yellow-wash);
  border: 1px solid var(--yellow-soft);
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-weight: 600;
}
.result-line b { font-family: var(--display); }

/* segmented control */
.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.segmented button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: .5rem .9rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 5px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.stepper button {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--sh-1);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.stepper button:hover { background: var(--yellow); }
.stepper button:active { transform: scale(.94); }
.stepper output {
  min-width: 76px;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.0625rem;
}

/* ── recipe cards ─────────────────────────────────────────────────────────── */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.recipes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.recipe {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s ease;
}
.recipe:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.recipe[hidden] { display: none; }

.recipe__media { position: relative; overflow: hidden; background: var(--yellow-soft); }
.recipe__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.recipe:hover .recipe__media img { transform: scale(1.04); }

.recipe__flag {
  position: absolute;
  left: .85rem; top: .85rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(6px);
  font-size: .75rem;
  font-weight: 700;
}

.recipe__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.recipe__body h3 { font-size: 1.1875rem; letter-spacing: -.025em; }
.recipe__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  margin-top: .6rem;
  font-size: .875rem;
  color: var(--ink-2);
}
.recipe__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.recipe__meta svg { width: 15px; height: 15px; opacity: .65; }

.recipe__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px dashed var(--line-2);
}
.recipe__price b { font-family: var(--display); font-size: 1.0625rem; }
.recipe__price small { font-size: .75rem; color: var(--ink-3); }

.empty-note {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}
.empty-note[hidden] { display: none; }

/* ── pantry ───────────────────────────────────────────────────────────────── */
.pantry {
  background: var(--yellow-wash);
  border-block: 1px solid var(--line);
}
.pantry__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.pantry__panel { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--card); }
.pantry__panel h3 { font-size: 1.125rem; margin-bottom: 1rem; }

.match {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}
.match img { width: 96px; height: 96px; border-radius: var(--r-sm); object-fit: cover; }
.match h4 { font-family: var(--display); font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; }
.match__meta { font-size: .875rem; color: var(--ink-2); margin-top: .2rem; }

.meter {
  height: 8px;
  margin-top: .75rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ok);
  transition: width .5s cubic-bezier(.2, .7, .3, 1);
}

.missing {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  background: var(--yellow-wash);
  border: 1px solid var(--yellow-soft);
  font-size: .9375rem;
}
.missing svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; color: var(--gold-text); }
.missing b { font-weight: 700; }
.missing em { font-style: normal; color: var(--ink-2); display: block; margin-top: .15rem; }

/* ── cooking mode (dark band) ─────────────────────────────────────────────── */
.dark {
  background: var(--ink);
  color: #f7f5ef;
}
.dark .h2, .dark h3 { color: #fff; }
.dark .lede, .dark p { color: #b9b6ab; }
.dark .eyebrow { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: #e9e6dc; }
.dark :focus-visible { outline-color: var(--yellow); }

.cook__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cook__list { margin-top: 2rem; display: grid; gap: 1.25rem; }
.cook__item { display: flex; gap: 1rem; align-items: flex-start; }
.cook__item i {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 199, 44, .16);
  color: var(--yellow);
}
.cook__item svg { width: 20px; height: 20px; }
.cook__item b { display: block; color: #fff; font-weight: 700; }
.cook__item span { font-size: .9375rem; color: #b9b6ab; }

/* phone mockup */
.phone {
  width: min(330px, 86vw);
  margin-inline: auto;
  padding: 10px;
  background: #23231f;
  border-radius: 42px;
  box-shadow: var(--sh-3), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone__screen {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  border-radius: 33px;
  overflow: hidden;
}
.phone__notch {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  top: 10px;
  width: 96px; height: 24px;
  border-radius: 999px;
  background: #23231f;
  z-index: 2;
}
.phone__media { position: relative; }
.phone__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.phone__body { padding: 1.1rem 1.15rem 1.35rem; }

.step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--ink-2);
}
.step-dots { display: flex; gap: 4px; }
.step-dots i {
  width: 18px; height: 4px;
  border-radius: 999px;
  background: var(--line-2);
}
.step-dots i.on { background: var(--yellow); }

.phone__body h4 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -.02em;
  margin: .65rem 0 .35rem;
}
.phone__body p { font-size: .9375rem; color: var(--ink-2); }

.timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  margin-top: 1rem;
  padding: .7rem .8rem .7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.timer span { font-variant-numeric: tabular-nums; font-size: 1.0625rem; }
.timer i {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
}
.timer svg { width: 15px; height: 15px; }

.video-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-2);
}
.video-row b { color: var(--ink); }
.video-row i {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  flex: none;
}
.video-row svg { width: 12px; height: 12px; }

/* ── servings ─────────────────────────────────────────────────────────────── */
.servings__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.scale-card { padding: clamp(1.5rem, 3vw, 2rem); }
.scale-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.scale-card__head b { font-family: var(--display); font-size: 1.0625rem; }

.ing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.ing:last-child { border-bottom: 0; }
.ing span { color: var(--ink-2); }
.ing output {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.ing output.pulse { color: var(--yellow-press); }

/* ── price + nutrition ────────────────────────────────────────────────────── */
.money__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.price-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.price-card img { border-radius: var(--r-md); width: 100%; aspect-ratio: 1; object-fit: cover; }
.price-big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 1.5rem + 1.9vw, 2.75rem);
  letter-spacing: -.04em;
  line-height: 1;
  margin-block: .75rem .35rem;
}
.price-split {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-2);
}
.price-split b { display: block; font-family: var(--display); font-size: 1.125rem; color: var(--ink); }

.tag-soft {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
}

.nutri-card { padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; }
.macros {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.25rem;
}
.macro {
  padding: .9rem 1rem;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line);
}
.macro b { display: block; font-family: var(--display); font-size: 1.25rem; letter-spacing: -.02em; }
.macro span { font-size: .8125rem; color: var(--ink-2); }
.macro--kcal { background: var(--yellow); border-color: var(--yellow); grid-column: span 2; }
.macro--kcal span { color: color-mix(in srgb, var(--ink) 72%, transparent); }

/* ── supermarket flow ─────────────────────────────────────────────────────── */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.flow__step {
  position: relative;
  padding: 1.5rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
}
.flow__step i {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--yellow-soft);
  color: var(--ink);
  margin-bottom: .9rem;
}
.flow__step svg { width: 21px; height: 21px; }
.flow__step b { font-family: var(--display); font-size: 1.0625rem; display: block; }
.flow__step span { font-size: .875rem; color: var(--ink-2); }
.flow__step::after {
  content: "";
  position: absolute;
  right: -.65rem; top: 50%;
  width: 10px; height: 10px;
  translate: 0 -50%;
  border-top: 2px solid var(--line-2);
  border-right: 2px solid var(--line-2);
  rotate: 45deg;
}
.flow__step:last-child::after { display: none; }

/* ── uzbek-first ──────────────────────────────────────────────────────────── */
.uz__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
}
.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.collage figure { margin: 0; }
.collage figure:first-child { grid-row: span 2; }
.collage figure:first-child img { aspect-ratio: 3 / 4; }
.collage figure + figure img { aspect-ratio: 4 / 3; }

.langs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.lang {
  padding: .5rem .95rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  font-size: .875rem;
  font-weight: 600;
}
.lang[data-active="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── why ──────────────────────────────────────────────────────────────────── */
.why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.why__item { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.why__item i {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--yellow);
  margin-bottom: .9rem;
}
.why__item svg { width: 20px; height: 20px; }
.why__item h3 { font-size: 1.125rem; margin-bottom: .4rem; }
.why__item p { font-size: .9375rem; color: var(--ink-2); }

/* ── app preview ──────────────────────────────────────────────────────────── */
.app__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.soon {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px dashed var(--line-2);
  font-size: .9375rem;
  color: var(--ink-2);
}
.soon[hidden] { display: none; }
.soon b { color: var(--ink); }

/* ── final CTA ────────────────────────────────────────────────────────────── */
.final {
  background: var(--yellow);
  color: var(--ink);
}
.final__inner {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}
.final .h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); margin-bottom: 1rem; }
.final p { color: color-mix(in srgb, var(--ink) 76%, transparent); font-size: 1.125rem; }
.final .btn--dark { --btn-bg: var(--ink); --btn-fg: var(--yellow); margin-top: 2rem; }

/* ── footer ───────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer__top p { color: var(--ink-2); font-size: .9375rem; max-width: 34ch; margin-top: 1rem; }
.footer h4 { font-family: var(--display); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
.footer li + li { margin-top: .6rem; }
.footer li a { font-size: .9375rem; color: var(--ink-2); }
.footer li a:hover { color: var(--ink); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-3);
}

/* ── motion ───────────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .recipes, .scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__step:nth-child(2)::after { display: none; }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-flex; }

  .hero__grid,
  .pantry__grid,
  .cook__grid,
  .servings__grid,
  .uz__grid,
  .app__grid,
  .money__grid { grid-template-columns: minmax(0, 1fr); }

  .hero__art { order: -1; }
  .float-card--a { left: -.5rem; top: auto; bottom: -1.25rem; }
  .float-card--b { right: -.5rem; top: -1.25rem; bottom: auto; }
  /* bottom-left now belongs to the floating card, so the badge moves up */
  .hero__badge { top: 1.25rem; bottom: auto; }
  .hero { padding-top: 1.5rem; }
  .hero__grid { gap: 3.5rem; }

  .price-card { grid-template-columns: minmax(0, 1fr); }
  .price-card img { aspect-ratio: 16 / 9; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .recipes, .scenarios, .why { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__step::after { display: none; }

  .hero__actions .btn { flex: 1 1 100%; }

  /* at this width the floating cards already cover both free corners */
  .hero__badge { display: none; }
  .float-card { min-width: 0; padding: .6rem .8rem .6rem .6rem; }
  .float-card img { width: 40px; height: 40px; }
  .float-card--a { left: -.25rem; }
  .float-card--b { right: -.25rem; }

  .macros { grid-template-columns: minmax(0, 1fr); }
  .macro--kcal { grid-column: span 1; }
  .collage figure:first-child { grid-row: auto; }
  .collage figure:first-child img { aspect-ratio: 4 / 3; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
