/* EatMe для бизнеса — the public landing.
   Colour, type, radius and spacing values come from the EatMe brand tokens («Графит», SPEC-0087);
   landing-only values are named in the second block of :root. Mock screens are drawn in design pixels
   that scale with their container (cqw), so they stay sharp at any size. */

/* Inter (SIL OFL 1.1, assets/fonts/Inter-OFL.txt): the admin's InterVariable 4.001 cut to weights 400–700
   and Latin + Cyrillic. Apple devices never download it: their system font (SF Pro) comes first. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/Inter.woff2') format('woff2'); }

:root {
  /* EatMe brand tokens: «Графит» (owner 2026-11-30, SPEC-0087), the values of the admin's eatme brand.
     Only the accent is graphite; success statuses stay green. */
  --action-primary: #1c1c1e;
  --action-primaryhover: #000000;
  --action-primaryonaction: #1c1c1e;
  --action-primarysubtle: #e9e9ee;
  --action-primarysubtlehover: #dcdce2;
  --action-primarytext: #1c1c1e;
  --action-focus: #1c1c1e;
  --feedback-success: #00a16e;
  --feedback-successsurface: #d2eee5;
  --feedback-successtext: #006f4d;
  --color-neutral-0: #ffffff;
  --color-neutral-50: #f5f5fa;
  --color-neutral-100: #e7e7eb;
  --color-neutral-200: #d8d8dd;
  --color-neutral-300: #cacace;
  --color-neutral-400: #adadb0;
  --color-neutral-500: #565658;
  --color-neutral-600: #737376;
  --color-neutral-800: #3a3a3b;
  --color-neutral-900: #1d1d1e;
  --color-blue-500: #3b82f6;
  --feedback-errormark: #dc2626;
  --feedback-infosurface: #dbe8fc;
  --feedback-warning: #ffbb1b;
  --feedback-warningsurface: #fff6d9;
  --feedback-warningtext: #855b00;
  --surface-danger: #f8d7d7;
  --text-danger: #b41f1f;
  /* System font on Apple devices (SF Pro), Inter everywhere else — as in the admin and the app */
  --font-family-sans: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --font-family-title: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --radius-control: 0.75rem;
  --radius-surface: 1rem;
  --shadow-surface: 0 0.5rem 1.5rem rgb(29 29 30 / 0.08);

  /* Landing roles mapped onto the tokens */
  --ink: var(--color-neutral-900);
  --ink-2: var(--color-neutral-500);
  --ink-soft: var(--color-neutral-800);
  --canvas: var(--color-neutral-50);
  --paper: var(--color-neutral-0);
  --line: var(--color-neutral-100);
  --accent: var(--action-primary);
  --accent-text: var(--action-primarytext);
  --accent-subtle: var(--action-primarysubtle);
  --accent-subtle-hover: var(--action-primarysubtlehover);
  --focus: var(--action-focus);
  /* Statuses keep their colour: success is green whatever the brand */
  --success: var(--feedback-success);
  --success-text: var(--feedback-successtext);
  --success-surface: var(--feedback-successsurface);
  --cta: var(--action-primaryonaction);
  --cta-hover: var(--action-primaryhover);
  /* Brand accent used inside the phone mock; the white-label demo overrides it */
  --b: var(--action-primary);
  --b-subtle: var(--action-primarysubtle);
  --b-text: var(--action-primarytext);

  --note: #ffe58f;
  --t-fast: 160ms;
  --t-mid: 320ms;
  --t-slow: 600ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.45, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wrap: 77.5rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--font-family-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-family-title); font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: var(--radius-control);
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 1rem; }

/* ---------- Buttons and tags ---------- */
.btn {
  --h: 3rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--h); padding: 0 1.375rem;
  border: 0; border-radius: var(--radius-control);
  font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); }
.btn-quiet { background: var(--accent-subtle); color: var(--accent-text); }
.btn-quiet:hover { background: var(--accent-subtle-hover); }
.btn-lg { --h: 3.5rem; padding: 0 1.75rem; font-size: 1.0625rem; }
.btn-sm { --h: 2.5rem; padding: 0 1.125rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }

.tag {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.625rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500; line-height: 1.3; white-space: nowrap;
}
.tag b { font-weight: 600; }
.tag-red { background: var(--surface-danger); color: var(--text-danger); }
.tag-yellow { background: var(--feedback-warningsurface); color: var(--feedback-warningtext); }
.tag-ghost { background: var(--paper); box-shadow: inset 0 0 0 1px var(--color-neutral-200); color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(245 245 250 / 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { position: relative; display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--accent); text-decoration: none; border-radius: 0.5rem; }
.logo-mark { width: 6.3rem; height: 1.31rem; }
.logo-tag { padding-top: 0.2rem; color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.site-nav { display: flex; gap: 0.125rem; margin-left: auto; }
.site-nav a {
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  color: var(--ink-soft); font-size: 0.9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease;
}
.site-nav a:hover { background: var(--color-neutral-100); }
.nav-toggle {
  display: none; align-items: center; gap: 0.375rem;
  height: 2.5rem; padding: 0 0.875rem; border: 0; border-radius: var(--radius-control);
  background: var(--color-neutral-100); font-size: 0.9375rem; font-weight: 500; cursor: pointer;
}
.nav-toggle svg { flex: none; width: 1.25rem; height: 1.25rem; }
.logo, .header-cta, .nav-toggle { flex: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(1.5rem, 0.5rem + 3vw, 3rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, min(28rem, 42%)) minmax(0, 1fr); gap: clamp(2rem, 3.5vw, 3.5rem); align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.5rem; border-radius: 999px;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line);
  color: var(--accent-text); font-size: 0.9375rem; font-weight: 500;
}
.hero-kicker svg { width: 1.25rem; height: 1.25rem; color: var(--accent); }
.hero h1 { margin-top: 1.25rem; font-size: clamp(2.125rem, 0.9rem + 2.4vw, 3rem); line-height: 1.04; letter-spacing: -0.03em; }
.hero-lead { margin-top: 1.5rem; max-width: 34rem; color: var(--ink-soft); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-facts { display: grid; gap: 0.5rem; margin-top: 2rem; color: var(--ink-2); font-size: 0.9375rem; }
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero-facts svg { flex: none; width: 1.125rem; height: 1.125rem; color: var(--accent); }

.hero-demo { position: relative; display: grid; min-width: 0; margin-right: calc((100vw - min(100vw - 2 * var(--gutter), var(--wrap))) / -2 + 1rem); }
.hero-stage, .hero-toggle { grid-area: 1 / 1; }
.hero-stage { position: relative; display: grid; }
/* Panel and phone share one grid cell, so the scene is always as tall as whichever reaches lower */
.hero-stage > .admin, .hero-stage > .phone { grid-area: 1 / 1; align-self: start; }
.hero-stage .admin { justify-self: end; width: 88%; }
.hero-stage .phone { position: relative; z-index: 2; justify-self: start; width: 26%; margin-top: 13%; }
.flyer {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.875rem 0.5rem 0.75rem; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  box-shadow: 0 0.75rem 2rem rgb(29 29 30 / 0.28);
  opacity: 0; pointer-events: none; will-change: transform, opacity;
}
.flyer-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0.25rem rgb(29 29 30 / 0.16); }

.hero-steps { margin-top: 1.5rem; }
.hero-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.hero-steps li { display: flex; align-items: flex-start; gap: 0.625rem; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; transition: color var(--t-mid) ease; }
.hero-steps li b {
  flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-top: -0.05rem;
  border-radius: 50%; background: var(--color-neutral-100); color: var(--ink-soft); font-size: 0.75rem; font-weight: 600;
  transition: background-color var(--t-mid) ease, color var(--t-mid) ease, transform var(--t-mid) var(--ease-spring);
}
.hero-steps li.is-active, .hero-steps li.is-done { color: var(--ink); }
.hero-steps li.is-active b, .hero-steps li.is-done b { background: var(--accent); color: #fff; }
.hero-steps li.is-active b { transform: scale(1.12); }
.hero-toggle {
  z-index: 4; align-self: end; justify-self: end; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; margin: 0 0.25rem 0.25rem 0; border: 0; border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 0.25rem 0.75rem rgb(29 29 30 / 0.08);
  color: var(--ink-soft); cursor: pointer; transition: background-color var(--t-fast) ease;
}
.hero-toggle:hover { background: var(--color-neutral-100); }
.hero-toggle svg { width: 1rem; height: 1rem; }
.hero-toggle .when-paused, .hero-toggle[aria-pressed='true'] .when-playing { display: none; }
.hero-toggle[aria-pressed='true'] .when-paused { display: block; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 2.5rem + 6vw, 8rem); }
.sheet { margin-inline: clamp(0.5rem, 1.5vw, 1.25rem); border-radius: clamp(1.75rem, 1rem + 2vw, 2.75rem); background: var(--paper); }
.section-head { max-width: 48rem; }
.section-head h2, .start h2, .faq-grid h2, .cta h2 { font-size: clamp(2rem, 1.15rem + 2.6vw, 3.375rem); line-height: 1.04; letter-spacing: -0.028em; }
.section-head p { margin-top: 1.25rem; max-width: 40rem; color: var(--ink-soft); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; letter-spacing: -0.012em; }

/* ---------- Before / after ---------- */
.compare-section { padding-top: clamp(2rem, 1rem + 3vw, 4rem); }
.compare { margin-top: clamp(2rem, 1rem + 3vw, 3rem); }
.compare-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; isolation: isolate;
  padding: 0.25rem; border-radius: 999px; background: var(--color-neutral-100);
}
.compare-switch button {
  position: relative; z-index: 1; height: 2.75rem; padding: 0 1.5rem; border: 0; border-radius: 999px;
  background: none; color: var(--ink-soft); font-size: 1rem; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: color 0.3s ease;
}
.compare-switch button[aria-checked='true'] { color: #fff; }
.compare-thumb {
  position: absolute; z-index: 0; top: 0.25rem; bottom: 0.25rem; left: 0.25rem; width: calc(50% - 0.25rem);
  border-radius: 999px; background: var(--ink);
  transition: transform 0.45s var(--ease-out), background-color 0.3s ease;
}
.compare[data-state='after'] .compare-thumb { transform: translateX(100%); background: var(--cta); }

.compare-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); margin-top: 2rem; }
.cmp {
  --k: 1; --d: calc(var(--i) * 120ms);
  position: relative; display: grid; min-height: 10.5rem; perspective: 1400px;
  transition: transform var(--t-mid) var(--ease-out) var(--d);
}
.compare-board[data-state='before'] .cmp { transform: translate(calc(var(--bx) * var(--k)), calc(var(--by) * var(--k))) rotate(calc(var(--br) * var(--k))); }
.cmp-inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform 450ms var(--ease-io) calc(var(--d) + 220ms); }
.compare-board[data-state='after'] .cmp-inner { transform: rotateY(180deg); }
.cmp-face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; visibility: visible; transition: visibility 0s linear calc(var(--d) + 445ms); }
.compare-board[data-state='before'] .cmp-after,
.compare-board[data-state='after'] .cmp-before { visibility: hidden; }
.cmp-after {
  transform: rotateY(180deg);
  display: flex; align-items: flex-start; gap: 0.875rem;
  padding: 1.25rem; border-radius: 1.25rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.cmp-icon { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.875rem; background: var(--accent-subtle); color: var(--accent-text); }
.cmp-icon svg { width: 1.375rem; height: 1.375rem; }
.cmp-title { display: block; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.cmp-after p { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
.cmp-before { align-self: center; justify-self: center; max-width: 92%; box-shadow: 0 0.5rem 1.25rem rgb(29 29 30 / 0.09), 0 0 0 1px rgb(29 29 30 / 0.04); }
.cmp-chat { justify-self: start; padding: 0.75rem 1rem 0.875rem; border-radius: 1.125rem 1.125rem 1.125rem 0.375rem; background: var(--paper); font-size: 1rem; line-height: 1.4; }
.cmp-from { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.25rem; color: var(--accent-text); font-size: 0.8125rem; font-weight: 600; }
.cmp-from time { color: var(--color-neutral-600); font-weight: 400; }
.cmp-note { max-width: 15rem; padding: 1.25rem 1.375rem; border-radius: 0.25rem; background: var(--note); color: #4a3b00; font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.cmp-call {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.375rem 0.75rem;
  padding: 1rem 1.125rem; border-radius: 1rem; background: var(--paper);
}
.cmp-call-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--surface-danger); color: var(--text-danger); }
.cmp-call-icon svg { width: 1.25rem; height: 1.25rem; }
.cmp-call b { display: block; font-size: 1rem; font-weight: 600; }
.cmp-call small { display: block; color: var(--text-danger); font-size: 0.875rem; font-weight: 500; }
.cmp-call em { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.9375rem; font-style: normal; }
.cmp-sheet { width: min(100%, 17rem); overflow: hidden; border-radius: 0.5rem; background: var(--paper); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.cmp-formula { display: block; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--color-neutral-200); color: var(--color-neutral-600); }
.cmp-cells { display: grid; grid-template-columns: 1.4fr 1fr; }
.cmp-cells i { padding: 0.45rem 0.75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-style: normal; }
.cmp-cells i:nth-child(even) { border-right: 0; text-align: right; }
.cmp-cells .err { background: var(--surface-danger); color: var(--text-danger); font-weight: 600; }
.cmp-paper {
  max-width: 15rem; padding: 1rem 1.25rem 1.1rem 1.5rem;
  border-left: 3px solid #f2b8b5;
  background: var(--paper) repeating-linear-gradient(to bottom, transparent 0 1.55rem, #d6e4f5 1.55rem calc(1.55rem + 1px));
  color: #26346b; font-size: 1.125rem; line-height: 1.55rem;
}

/* ---------- Journey ---------- */
.journey-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(1.5rem, 0.5rem + 3vw, 3rem); }
.journey-steps { position: relative; }
.journey-steps::before, .journey-steps::after {
  content: ''; position: absolute; left: calc(1.0625rem - 1px); top: var(--rail-start, 0px); width: 2px; border-radius: 2px;
}
.journey-steps::before { height: calc(var(--rail-end, 0px) - var(--rail-start, 0px)); background: var(--color-neutral-200); }
.journey-steps::after { height: var(--rail-fill, 0px); background: var(--accent); }
.j-step { position: relative; display: grid; grid-template-columns: 2.125rem minmax(0, 1fr); column-gap: 1.375rem; padding-block: 1.5rem; }
.j-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 2.125rem; height: 2.125rem; margin-top: 0.1rem;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--color-neutral-200);
  color: var(--ink-2); font-size: 0.9375rem; font-weight: 600;
  transition: background-color var(--t-mid) ease, color var(--t-mid) ease, box-shadow var(--t-mid) ease;
}
.j-step.is-active .j-num, .j-step.is-done .j-num { background: var(--accent); box-shadow: none; color: #fff; }
.j-text h3 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); line-height: 1.15; }
.j-head { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; transition: color var(--t-mid) ease; }
.j-text p { margin-top: 0.75rem; max-width: 30rem; color: var(--ink-soft); }
.j-text .j-actor {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  border-radius: 999px; background: var(--canvas); color: var(--ink); font-size: 0.875rem; font-weight: 500;
}
.j-actor svg { width: 1rem; height: 1rem; color: var(--accent); }
.j-screen { grid-column: 2; margin-top: 1.5rem; }
.j-screen .phone { width: min(16rem, 76%); }
.journey-nav { display: none; }
@media (min-width: 961px) {
  .js .journey-scroller { --n: 5; --step: 62vh; position: relative; height: calc(100vh - var(--header-h) + (var(--n) - 1) * var(--step)); }
  .js .journey-pin { position: sticky; top: var(--header-h); display: flex; align-items: center; height: calc(100vh - var(--header-h)); }
  .js .journey-grid { --stage-h: min(calc(100vh - var(--header-h) - 5rem), 40rem); margin-top: 0; align-items: start; }
  /* Titles above the active step never move: the list hangs from a fixed top, it is not re-centred */
  .js .journey-steps { padding-top: max(0px, calc((var(--stage-h) - 29rem) / 2)); }
  .js .j-step { padding-block: 0.875rem; }
  .js .j-step .j-screen { display: none; }
  .js .j-step:not(.is-active) .j-head { color: var(--color-neutral-500); }
  .js .j-step:not(.is-active) .j-head:hover { color: var(--ink); }
  .js .j-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-mid) var(--ease-out); }
  .js .j-step.is-active .j-body { grid-template-rows: 1fr; }
  .js .j-body > div { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear var(--t-mid); }
  .js .j-step.is-active .j-body > div { visibility: visible; transition-delay: 0s; }
}
.journey-stage {
  --stage-h: min(calc(100vh - var(--header-h) - 5rem), 40rem);
  --pw: calc(var(--stage-h) * 0.94 * 336 / 712);
  --ph: calc(var(--pw) * 712 / 336);
  position: relative; height: var(--stage-h); container-type: size;
}
/* One phone and one panel live on the stage for all five steps. Nothing is swapped: the camera moves
   between them and only the screens inside change (push in the phone, pages in the panel). */
.js-admin {
  position: absolute; left: 0; top: 50%; width: 100%; transform: translateY(-50%);
  transition: transform 700ms var(--ease-io), opacity 500ms ease;
}
.js-phone {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: var(--pw); margin: calc(var(--ph) / -2) 0 0 calc(var(--pw) / -2);
  transition: transform 700ms var(--ease-io); will-change: transform;
}
.journey-stage[data-focus='phone'] .js-admin { transform: translate(8%, -50%); opacity: 0.2; }
.journey-stage[data-focus='admin'] .js-phone { transform: translate(calc(-50cqw + var(--pw) * 0.27 + 0.25rem), calc(50cqh - var(--ph) * 0.27 - 0.25rem)) scale(0.54); }
/* Phone → panel: «Заказ оплачен» rises first, then the phone steps back and the panel comes forward */
.journey-stage[data-focus='admin'] .js-admin, .journey-stage[data-focus='admin'] .js-phone { transition-delay: 260ms; }
/* What to look at on each step, played when the step snaps in */
.is-focus .ph-tags i { animation: tag-pulse 0.9s var(--ease-out) 0.2s both; }
.is-focus .ad-cook .ad-tag { animation: tag-pop 0.6s var(--ease-out) both; }
.is-focus .ad-cook .ad-rows > :nth-child(1) .ad-tag { animation-delay: 0.2s; }
.is-focus .ad-cook .ad-rows > :nth-child(2) .ad-tag { animation-delay: 0.32s; }
.is-focus .ad-cook .ad-rows > :nth-child(4) .ad-tag { animation-delay: 0.44s; }
.is-focus .ad-cook .ad-rows > :nth-child(5) .ad-tag { animation-delay: 0.56s; }
.ad-deliv .ad-tr > span:first-child small { transition: color 0.4s ease; }
.is-focus .ad-deliv .ad-tr > span:first-child small { animation: turn-green 0.5s ease 0.35s both; }
.is-focus .ad-deliv .ad-tr:nth-child(3) > span:first-child small { animation-delay: 0.5s; }
.is-focus .ad-deliv .ad-tr:nth-child(4) > span:first-child small { animation-delay: 0.65s; }
.is-focus .ad-deliv .ad-tr:nth-child(5) > span:first-child small { animation: none; }
.is-focus .ad-deliv .ad-tr:nth-child(6) > span:first-child small { animation-delay: 0.8s; }
.is-focus .ad-deliv .ad-tr.is-new { animation: row-flash 1.6s ease both; }
/* Focus hints never hide content: they pulse what is already on screen */
@keyframes tag-pop { 40% { transform: scale(1.14); } }
@keyframes tag-pulse { 40% { transform: scale(1.18); box-shadow: 0 0 0 calc(5 * var(--p)) rgb(180 31 31 / 0.16); } }
@keyframes turn-green { to { color: var(--success-text); font-weight: 600; } }
@keyframes row-flash { 0%, 30% { background: var(--success-surface); } 100% { background: color-mix(in srgb, var(--success-surface) 60%, transparent); } }

/* ---------- App ---------- */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
.app-tabs { display: grid; gap: 0.375rem; }
.app-tab {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1rem;
  width: 100%; padding: 1rem 1.25rem 1.125rem; border: 0; border-radius: 1.25rem;
  background: transparent; text-align: left; cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.app-tab:hover { background: rgb(255 255 255 / 0.65); }
.app-tab[aria-selected='true'] { background: var(--paper); box-shadow: var(--shadow-surface); }
.app-tab-icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.875rem;
  background: var(--color-neutral-100); color: var(--ink-soft);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.app-tab-icon svg { width: 1.375rem; height: 1.375rem; }
.app-tab[aria-selected='true'] .app-tab-icon { background: var(--accent-subtle); color: var(--accent-text); }
.app-tab-text { display: grid; gap: 0.3rem; padding-top: 0.45rem; }
.app-tab-text b { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.app-tab-text > span { color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.app-showcase { position: relative; display: grid; place-items: center; padding-block: 1rem; }
.app-disc { position: absolute; width: min(100%, 31rem); aspect-ratio: 1; border-radius: 50%; background: var(--accent-subtle); }
.app-showcase .phone { position: relative; width: min(19.5rem, 74%); }
.app-desc { display: none; color: var(--ink-soft); transition: opacity 140ms ease; }
.app-desc.is-swapping { opacity: 0; }

/* ---------- Team ---------- */
.team-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: clamp(2rem, 1rem + 3vw, 3rem); }
.team-tabs [role='tab'] {
  height: 2.75rem; padding: 0 1.375rem; border: 0; border-radius: 999px;
  background: var(--color-neutral-100); color: var(--ink-soft); font-size: 1rem; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.team-tabs [role='tab']:hover { background: var(--color-neutral-200); }
.team-tabs [aria-selected='true'], .team-tabs [aria-selected='true']:hover { background: var(--accent); color: #fff; }
.team-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; margin-top: 2.25rem; }
.team-texts { display: grid; }
.team-text { grid-area: 1 / 1; transition: opacity var(--t-mid) ease 120ms, transform var(--t-slow) var(--ease-out) 120ms, visibility 0s; }
.team-text:not(.is-active) { opacity: 0; visibility: hidden; transform: translateY(0.5rem); transition: opacity var(--t-fast) ease, transform var(--t-mid) var(--ease-out), visibility 0s linear var(--t-mid); }
.team-text h3 { font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); line-height: 1.12; }
.ticks { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.2em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--accent-subtle); }
.ticks li::after {
  content: ''; position: absolute; left: 0.43rem; top: calc(0.2em + 0.3rem); width: 0.33rem; height: 0.55rem;
  border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Brand ---------- */
.brand-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.brand-copy h2 { font-size: clamp(2rem, 1.15rem + 2.6vw, 3.375rem); line-height: 1.04; letter-spacing: -0.028em; }
.brand-copy > p { margin-top: 1.25rem; max-width: 34rem; color: var(--ink-soft); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.brand-pick { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 2rem; padding: 0; border: 0; min-width: 0; }
.brand-pick legend { float: left; width: 100%; margin-bottom: 0.875rem; padding: 0; font-size: 0.9375rem; font-weight: 600; }
.brand-opt {
  position: relative; display: inline-flex; align-items: center; gap: 0.625rem;
  height: 3.25rem; padding: 0 1.25rem 0 0.75rem; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--color-neutral-200);
  font-weight: 500; cursor: pointer; transition: box-shadow 0.2s ease;
}
.brand-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.brand-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.brand-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.brand-sw { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 3px rgb(255 255 255 / 0.35); }
.brand-stage { position: relative; display: grid; justify-items: center; gap: 1.5rem; }
.brand-stage[data-brand='oat'] { --b: #c2410c; --b-subtle: #fbe4d6; --b-text: #9a3412; }
.brand-stage[data-brand='lab'] { --b: #3b5bdb; --b-subtle: #e0e7ff; --b-text: #2f4ac0; }
.store-card {
  display: flex; align-items: center; gap: 1rem; width: min(100%, 25rem);
  padding: 0.875rem 1rem; border-radius: 1.25rem; background: var(--paper); box-shadow: var(--shadow-surface);
}
.store-icon {
  flex: none; display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 1rem;
  background: var(--b); color: #fff; font: 700 1.875rem/1 var(--font-family-title);
  transition: background-color 0.4s ease;
}
.store-icon svg { width: 2.75rem; height: 0.57rem; }
.store-meta { display: grid; min-width: 0; }
.store-meta b { font-size: 1.0625rem; font-weight: 600; }
.store-meta small { min-height: calc(2 * 1.35em); align-content: start; color: var(--ink-2); font-size: 0.875rem; line-height: 1.35; }
.store-get { margin-left: auto; padding: 0.5rem 1rem; border-radius: 999px; background: var(--color-neutral-100); color: var(--b-text); font-size: 0.9375rem; font-weight: 600; transition: color 0.4s ease; }
.brand-stage .phone { width: min(19rem, 70%); }
.store-meta b, .store-meta small { display: grid; }
.for-eatme, .for-oat, .for-lab { grid-area: 1 / 1; transition: opacity 200ms ease, transform var(--t-mid) var(--ease-out), visibility 0s linear 200ms; }
.for-oat, .for-lab, [data-brand='oat'] .for-eatme, [data-brand='lab'] .for-eatme { opacity: 0; visibility: hidden; transform: translateY(0.4em); }
[data-brand='oat'] .for-oat, [data-brand='lab'] .for-lab { opacity: 1; visibility: visible; transform: none; transition-delay: 80ms, 80ms, 0s; }
.store-icon.is-pop { animation: icon-pop 0.6s var(--ease-spring); }
@keyframes icon-pop { 35% { transform: scale(0.86); } }

/* ---------- How to start ---------- */
.start-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-top: 2.5rem; }
.start-steps li { position: relative; padding-top: 4rem; }
.start-steps h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
.start-steps p { margin-top: 0.5rem; max-width: 22rem; color: var(--ink-2); }
.start-num {
  position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; background: var(--ink); color: #fff; font: 700 1.125rem/1 var(--font-family-title);
}
.start-steps li:not(:last-child)::after {
  content: ''; position: absolute; top: 1.375rem; left: 3.75rem; right: calc(-1 * clamp(1.5rem, 3vw, 3rem) + 0.75rem); height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-neutral-300) 0 6px, transparent 6px 12px);
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-grid h2 { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-list { display: grid; gap: 0.5rem; }
.faq-list details { border-radius: 1.25rem; background: var(--paper); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; border-radius: 1.25rem; list-style: none; cursor: pointer;
  font-size: 1.125rem; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: var(--ink);
  background:
    linear-gradient(currentColor, currentColor) center / 0.75rem 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 0.75rem no-repeat,
    var(--canvas);
  transition: transform 0.3s var(--ease-out), background-color 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-subtle); color: var(--accent-text); }
.faq-list details p { max-width: 40rem; padding: 0 1.5rem 1.375rem; color: var(--ink-soft); }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content { height: 0; overflow: clip; transition: height 0.35s var(--ease-out), content-visibility 0.35s allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}

/* ---------- Demo request ---------- */
.cta { position: relative; overflow: hidden; background: var(--accent); color: #fff; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.cta h2 { color: #fff; }
.cta-copy p { margin-top: 1.25rem; max-width: 32rem; color: rgb(255 255 255 / 0.88); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.cta-art { width: min(100%, 27rem); height: auto; margin: 1.5rem 0 -4rem -1.5rem; -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 80%); mask-image: linear-gradient(to bottom, #000 52%, transparent 80%); }
.cta-card { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-radius: 1.75rem; background: var(--paper); color: var(--ink); box-shadow: 0 2rem 4rem rgb(0 0 0 / 0.3); }
.field { display: grid; gap: 0.5rem; min-width: 0; margin: 0 0 1.125rem; padding: 0; border: 0; }
.field label, .field legend { padding: 0; font-size: 0.9375rem; font-weight: 600; }
.field legend { margin-bottom: 0.5rem; }
.optional { color: var(--ink-2); font-weight: 400; }
.field input[type='text'], .field input[type='tel'] {
  height: 3.25rem; padding: 0 1rem; border: 1px solid transparent; border-radius: var(--radius-control);
  background: var(--color-neutral-100); font-size: 1rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: var(--color-neutral-600); }
.field input:hover { background: #dedee3; }
.field input:focus { outline: none; border-color: var(--focus); background: var(--paper); box-shadow: 0 0 0 3px rgb(29 29 30 / 0.14); }
.field input[aria-invalid='true'] { border-color: var(--feedback-errormark); background: var(--paper); }
.field-error { color: var(--text-danger); font-size: 0.875rem; line-height: 1.4; }
.seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1rem; border-radius: 999px;
  background: var(--color-neutral-100); font-size: 0.9375rem; font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.seg input:checked + span { background: var(--accent); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.cta-form .btn-block { margin-top: 0.5rem; }
.form-note { margin-top: 0.75rem; color: var(--ink-2); font-size: 0.8125rem; text-align: center; }
.cta-done { text-align: center; outline: none; }
.cta-done-icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin: 0.5rem auto 1.25rem; border-radius: 50%; background: var(--success-surface); color: var(--success-text); }
.cta-done-icon svg { width: 2.25rem; height: 2.25rem; }
.cta-done h3 { font-size: 1.625rem; }
.cta-done p { margin: 0.75rem auto 1.5rem; max-width: 22rem; color: var(--ink-2); font-size: 1rem; }

/* ---------- Footer ---------- */

/* Mock hosts keep their space before app.js fills them and fade in when it does */
.phone, .admin { transition: opacity 400ms ease; }
.phone:empty { aspect-ratio: 336 / 712; opacity: 0; }
.admin:empty { aspect-ratio: 960 / 620; opacity: 0; }

/* =====================================================================
   Phone mock — 336 × 712 design px (bezel 7), scaled by its container
   ===================================================================== */
.phone { container-type: inline-size; }
.ph-bezel {
  --p: calc(100cqw / 336);
  padding: calc(7 * var(--p)); border-radius: calc(54 * var(--p)); background: #1d1d1e;
  box-shadow:
    0 calc(44 * var(--p)) calc(70 * var(--p)) calc(-24 * var(--p)) rgb(29 29 30 / 0.38),
    0 calc(8 * var(--p)) calc(22 * var(--p)) rgb(29 29 30 / 0.12),
    inset 0 0 0 calc(1.5 * var(--p)) #4b4b4e;
}
.ph-screen {
  position: relative; isolation: isolate; aspect-ratio: 322 / 698; overflow: hidden;
  border-radius: calc(47 * var(--p)); background: var(--canvas); color: var(--ink);
  font-family: var(--font-family-sans); font-size: calc(13 * var(--p)); line-height: 1.35;
}
.ph-status {
  position: absolute; z-index: 5; inset: 0 0 auto; height: calc(46 * var(--p));
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(4 * var(--p)) calc(28 * var(--p)) 0 calc(36 * var(--p));
  font-size: calc(14.5 * var(--p)); font-weight: 600; letter-spacing: -0.01em; pointer-events: none;
}
.ph-sys { display: flex; align-items: center; gap: calc(5 * var(--p)); }
.ph-sys svg { height: calc(11 * var(--p)); }
.ph-sys svg:nth-child(1) { width: calc(17 * var(--p)); }
.ph-sys svg:nth-child(2) { width: calc(15 * var(--p)); }
.ph-sys svg:nth-child(3) { width: calc(25 * var(--p)); }
.ph-island { position: absolute; z-index: 6; top: calc(10 * var(--p)); left: 50%; width: calc(96 * var(--p)); height: calc(28 * var(--p)); margin-left: calc(-48 * var(--p)); border-radius: 999px; background: #050505; }
.ph-home { position: absolute; z-index: 6; bottom: calc(7 * var(--p)); left: 50%; width: calc(116 * var(--p)); height: calc(4.5 * var(--p)); margin-left: calc(-58 * var(--p)); border-radius: 999px; background: var(--ink); }
.ph-layer {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  padding-top: calc(48 * var(--p)); background: var(--canvas);
  opacity: 0; visibility: hidden; transform: translateX(calc(26 * var(--p)));
  transition: opacity 0.4s ease, transform 0.55s var(--ease-out), visibility 0s linear 0.55s;
}
.ph-layer.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s ease, transform 0.55s var(--ease-out), visibility 0s; }
.ph-top {
  flex: none; display: grid; grid-template-columns: calc(30 * var(--p)) minmax(0, 1fr) calc(30 * var(--p)); align-items: center; gap: calc(8 * var(--p));
  min-height: calc(48 * var(--p)); padding: calc(4 * var(--p)) calc(16 * var(--p)) calc(8 * var(--p));
}
.ph-ic { width: calc(24 * var(--p)); height: calc(24 * var(--p)); }
.ph-brand { justify-self: end; width: calc(26 * var(--p)); height: calc(26 * var(--p)); color: var(--b); transition: color 0.4s ease; }
.ph-top-t { display: grid; justify-items: center; text-align: center; min-width: 0; }
.ph-top-t b { font-size: calc(16 * var(--p)); font-weight: 600; white-space: nowrap; }
.ph-top-t small { color: var(--color-neutral-600); font-size: calc(12.5 * var(--p)); white-space: nowrap; }
.ph-logo { justify-self: center; display: grid; place-items: center; height: calc(26 * var(--p)); color: var(--b); transition: color 0.4s ease; }
.ph-logo svg { width: calc(80 * var(--p)); height: calc(16.6 * var(--p)); }
.ph-logo .for-oat { font: 700 calc(22 * var(--p))/1 var(--font-family-title); letter-spacing: -0.04em; }
.ph-logo .for-lab { font: 600 calc(20 * var(--p))/1 var(--font-family-sans); letter-spacing: -0.02em; }
.ph-logo .for-lab em { font-style: normal; font-weight: 400; }
.ph-pad { flex: none; padding: calc(4 * var(--p)) calc(16 * var(--p)) calc(16 * var(--p)); }
.ph-sheet {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: calc(10 * var(--p));
  padding: calc(18 * var(--p)) calc(16 * var(--p)) calc(28 * var(--p));
  border-radius: calc(24 * var(--p)) calc(24 * var(--p)) 0 0; background: var(--paper);
}
.ph-h { font-size: calc(16 * var(--p)); font-weight: 600; }
.ph-sub { color: var(--color-neutral-500); font-size: calc(13.5 * var(--p)); line-height: 1.35; }
.ph-title { font: 700 calc(24 * var(--p))/1.15 var(--font-family-title); letter-spacing: -0.01em; }
.ph-title-sm { font-size: calc(21 * var(--p)); }
.ph-mt { margin-top: calc(6 * var(--p)); }
.ph-chips { display: flex; gap: calc(6 * var(--p)); margin-top: calc(10 * var(--p)); overflow: hidden; white-space: nowrap; }
.ph-sheet .ph-chips, .ph-prog .ph-chips { margin-top: 0; }
.ph-chips span {
  flex: none; padding: calc(6 * var(--p)) calc(12 * var(--p)); border-radius: 999px;
  background: var(--color-neutral-100); font-size: calc(13.5 * var(--p)); font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.15s ease;
}
.ph-chips span.is-pressed { transform: scale(0.93); }
.ph-chips span.on { background: var(--accent); color: #fff; }
.ph-dish { display: flex; align-items: center; gap: calc(10 * var(--p)); padding: calc(7 * var(--p)); border-radius: calc(16 * var(--p)); background: var(--canvas); }
.ph-dish img { flex: none; width: calc(52 * var(--p)); height: calc(52 * var(--p)); border-radius: calc(12 * var(--p)); object-fit: cover; }
.ph-dish > span { display: grid; gap: calc(2 * var(--p)); min-width: 0; }
.ph-dish small { color: var(--color-neutral-600); font-size: calc(11.5 * var(--p)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-dish b { font-size: calc(13.5 * var(--p)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-more { padding-left: calc(4 * var(--p)); color: var(--color-neutral-600); font-size: calc(12.5 * var(--p)); }
.ph-meal { margin-bottom: calc(-4 * var(--p)); color: var(--color-neutral-800); font-size: calc(12.5 * var(--p)); font-weight: 500; }
.ph-price { display: grid; margin-top: calc(2 * var(--p)); }
.ph-price small { color: var(--color-neutral-600); font-size: calc(12 * var(--p)); }
.ph-price b { font: 700 calc(22 * var(--p))/1.2 var(--font-family-title); }
.ph-cta {
  flex: none; display: grid; place-items: center; height: calc(50 * var(--p)); margin-top: auto;
  border-radius: calc(16 * var(--p)); background: var(--b); color: #fff;
  font-size: calc(16 * var(--p)); font-weight: 600;
  transition: background-color 0.4s ease, transform 0.15s ease, box-shadow 0.3s ease;
}
.ph-link { padding: calc(12 * var(--p)) 0 calc(2 * var(--p)); color: var(--b-text); font-size: calc(15 * var(--p)); font-weight: 600; text-align: center; transition: color 0.4s ease; }
.ph-search {
  display: flex; align-items: center; gap: calc(8 * var(--p)); height: calc(44 * var(--p)); margin-top: calc(12 * var(--p));
  padding: 0 calc(12 * var(--p)); border-radius: calc(14 * var(--p)); background: var(--paper);
  color: var(--color-neutral-600); font-size: calc(13.5 * var(--p));
}
.ph-search svg { width: calc(20 * var(--p)); height: calc(20 * var(--p)); color: var(--color-neutral-500); }
.ph-prog { display: grid; gap: calc(9 * var(--p)); padding-bottom: calc(14 * var(--p)); border-bottom: 1px solid var(--line); }
.ph-prog:last-of-type { padding-bottom: 0; border-bottom: 0; }
.ph-prog-head { display: flex; align-items: center; justify-content: space-between; }
.ph-prog-head b { font: 700 calc(19 * var(--p))/1.2 var(--font-family-title); }
.ph-prog-head svg { width: calc(20 * var(--p)); height: calc(20 * var(--p)); color: var(--color-neutral-600); }
.ph-prog p { margin-top: calc(-4 * var(--p)); color: var(--color-neutral-500); font-size: calc(13 * var(--p)); }
.ph-notice {
  display: flex; align-items: flex-start; gap: calc(8 * var(--p)); padding: calc(10 * var(--p)) calc(12 * var(--p));
  border-radius: calc(14 * var(--p)); background: var(--b-subtle); font-size: calc(12 * var(--p)); line-height: 1.35;
  transition: background-color 0.4s ease;
}
.ph-notice svg { flex: none; width: calc(18 * var(--p)); height: calc(18 * var(--p)); color: var(--b-text); transition: color 0.4s ease; }
.ph-success { flex: 1; display: flex; flex-direction: column; padding: calc(14 * var(--p)) calc(16 * var(--p)) calc(28 * var(--p)); }
.ph-success .ph-sub { margin-top: calc(6 * var(--p)); }
.ph-success .ph-art { width: 108%; max-width: none; margin: auto 0 auto -4%; }
.ph-success .ph-cta { margin-top: 0; }
.ph-row { display: grid; grid-template-columns: calc(22 * var(--p)) minmax(0, 1fr) auto; align-items: center; gap: calc(10 * var(--p)); padding-bottom: calc(9 * var(--p)); border-bottom: 1px solid var(--line); }
.ph-row > svg { width: calc(22 * var(--p)); height: calc(22 * var(--p)); color: var(--b); }
.ph-row > span { display: grid; gap: calc(2 * var(--p)); min-width: 0; }
.ph-row small { color: var(--color-neutral-600); font-size: calc(11.5 * var(--p)); }
.ph-row b { font-size: calc(13.5 * var(--p)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row em { color: var(--b-text); font-size: calc(12.5 * var(--p)); font-style: normal; font-weight: 600; }
.ph-tags { display: flex; gap: calc(4 * var(--p)); }
.ph-tags i { display: inline-block; padding: calc(2 * var(--p)) calc(8 * var(--p)); border-radius: 999px; background: var(--surface-danger); color: var(--text-danger); font-size: calc(12 * var(--p)); font-style: normal; font-weight: 500; }
.ph-pay { display: grid; grid-template-columns: calc(30 * var(--p)) minmax(0, 1fr) auto; align-items: center; gap: calc(10 * var(--p)); padding: calc(9 * var(--p)) calc(12 * var(--p)); border-radius: calc(14 * var(--p)); background: var(--canvas); }
.ph-pay img, .ph-pay svg { width: calc(30 * var(--p)); height: calc(30 * var(--p)); border-radius: calc(8 * var(--p)); color: var(--color-neutral-500); }
.ph-pay span { display: grid; }
.ph-pay b { font-size: calc(13.5 * var(--p)); font-weight: 600; }
.ph-pay small { color: var(--color-neutral-600); font-size: calc(11.5 * var(--p)); }
.ph-radio { width: calc(20 * var(--p)); height: calc(20 * var(--p)); border-radius: 50%; box-shadow: inset 0 0 0 calc(2 * var(--p)) var(--color-neutral-300); }
.ph-pay.on .ph-radio { box-shadow: inset 0 0 0 calc(6 * var(--p)) var(--b); }
.ph-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; }
.ph-total small { color: var(--color-neutral-600); font-size: calc(13 * var(--p)); }
.ph-total b { font: 700 calc(22 * var(--p))/1.2 var(--font-family-title); }
.ph-form .ph-cta { margin-top: calc(2 * var(--p)); }
.ph-center { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 calc(16 * var(--p)) calc(28 * var(--p)); text-align: center; }
.ph-center .ph-art { width: 92%; margin: calc(4 * var(--p)) 0 calc(6 * var(--p)); }
.ph-center .ph-sub { margin-top: calc(6 * var(--p)); max-width: 88%; }
.ph-params { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(6 * var(--p)); margin-top: calc(14 * var(--p)); }
.ph-params span { padding: calc(5 * var(--p)) calc(11 * var(--p)); border-radius: 999px; background: var(--paper); font-size: calc(12.5 * var(--p)); font-weight: 500; }
.ph-bottom { width: 100%; margin-top: auto; }
.ph-limit { display: grid; gap: calc(9 * var(--p)); padding: calc(12 * var(--p)) calc(14 * var(--p)); border-radius: calc(16 * var(--p)); background: var(--paper); }
.ph-limit > span:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: calc(8 * var(--p)); }
.ph-limit b { font-size: calc(14 * var(--p)); font-weight: 600; }
.ph-limit small { color: var(--color-neutral-600); font-size: calc(12 * var(--p)); }
.ph-meter { display: block; height: calc(6 * var(--p)); overflow: hidden; border-radius: 999px; background: var(--color-neutral-100); }
.ph-meter i { display: block; width: 28.6%; height: 100%; border-radius: inherit; background: var(--b); transition: background-color 0.4s ease; }
.ph-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: calc(3 * var(--p)); font-size: calc(13 * var(--p)); text-align: center; }
.ph-cal span { position: relative; z-index: 0; display: grid; place-items: center; height: calc(30 * var(--p)); }
.ph-cal .wd { height: calc(22 * var(--p)); color: var(--color-neutral-600); font-size: calc(11.5 * var(--p)); }
.ph-cal .past { color: var(--color-neutral-400); }
.ph-cal .in { background: var(--b-subtle); }
.ph-cal .from { background: linear-gradient(to right, transparent 50%, var(--b-subtle) 50%); }
.ph-cal .to { background: linear-gradient(to left, transparent 50%, var(--b-subtle) 50%); }
.ph-cal .from, .ph-cal .to { color: #fff; font-weight: 600; }
.ph-cal .from::before, .ph-cal .to::before { content: ''; position: absolute; z-index: -1; width: calc(30 * var(--p)); height: calc(30 * var(--p)); border-radius: 50%; background: var(--b); }
.ph-hold-sum { display: grid; gap: calc(2 * var(--p)); margin-top: auto; padding: calc(10 * var(--p)) calc(14 * var(--p)); border-radius: calc(14 * var(--p)); background: var(--canvas); }
.ph-hold-sum small { color: var(--color-neutral-600); font-size: calc(12 * var(--p)); }
.ph-hold-sum b { font-size: calc(15 * var(--p)); font-weight: 600; }
.ph-hold-sum + .ph-cta { margin-top: 0; }
.ph-menu { display: grid; overflow: hidden; border-radius: calc(16 * var(--p)); background: var(--canvas); }
.ph-menu > span { display: grid; grid-template-columns: calc(22 * var(--p)) minmax(0, 1fr) calc(16 * var(--p)); align-items: center; gap: calc(10 * var(--p)); padding: calc(12 * var(--p)); border-bottom: 1px solid var(--color-neutral-100); font-size: calc(14 * var(--p)); font-weight: 500; }
.ph-menu > span:last-child { border-bottom: 0; }
.ph-menu svg:first-child { width: calc(22 * var(--p)); height: calc(22 * var(--p)); color: var(--b); }
.ph-menu svg:last-child { width: calc(16 * var(--p)); height: calc(16 * var(--p)); color: var(--color-neutral-400); }
.ph-menu .is-hot { background: var(--b-subtle); }
.ph-notice-ok { margin-top: calc(2 * var(--p)); }
.ph-signin { flex: 1; display: flex; flex-direction: column; gap: calc(10 * var(--p)); padding-bottom: calc(28 * var(--p)); }
.ph-signin .ph-sub { margin: calc(-4 * var(--p)) 0 calc(8 * var(--p)); }
.ph-channel { display: grid; grid-template-columns: calc(38 * var(--p)) minmax(0, 1fr) calc(16 * var(--p)); align-items: center; gap: calc(12 * var(--p)); padding: calc(12 * var(--p)); border-radius: calc(16 * var(--p)); background: var(--paper); }
.ph-channel img { width: calc(38 * var(--p)); height: calc(38 * var(--p)); border-radius: calc(10 * var(--p)); }
.ph-channel > span { display: grid; gap: calc(1 * var(--p)); }
.ph-channel b { font-size: calc(15 * var(--p)); font-weight: 600; }
.ph-channel small { color: var(--color-neutral-600); font-size: calc(12 * var(--p)); }
.ph-channel > svg { width: calc(16 * var(--p)); height: calc(16 * var(--p)); color: var(--color-neutral-400); }
.ph-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(6 * var(--p)); margin-top: calc(12 * var(--p)); }
.ph-tiles > span { display: grid; justify-items: center; gap: calc(4 * var(--p)); font-size: calc(11.5 * var(--p)); font-weight: 500; }
.ph-tiles img, .ph-tiles i { width: 100%; aspect-ratio: 1; border-radius: calc(14 * var(--p)); object-fit: cover; }
.ph-tiles i { display: grid; place-items: center; background: var(--b-subtle); color: var(--b-text); transition: background-color 0.4s ease, color 0.4s ease; }
.ph-tiles i svg { width: calc(20 * var(--p)); height: calc(20 * var(--p)); }
.ph-tile-all { color: var(--b-text); }

/* Hero choreography (driven by app.js) */
.ph-tap {
  position: absolute; z-index: 8; left: 0; top: 0; width: calc(42 * var(--p)); height: calc(42 * var(--p)); margin: calc(-21 * var(--p)) 0 0 calc(-21 * var(--p));
  border-radius: 50%; background: rgb(255 255 255 / 0.55);
  box-shadow: 0 0 0 calc(2 * var(--p)) rgb(29 29 30 / 0.3), 0 calc(6 * var(--p)) calc(18 * var(--p)) rgb(0 0 0 / 0.2);
  opacity: 0; pointer-events: none; will-change: translate, scale, opacity;
}
.ph-tap::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 calc(2 * var(--p)) rgb(29 29 30 / 0.35); opacity: 0; }
.ph-tap.is-tapping::after { animation: tap-ring 0.55s ease-out; }
@keyframes tap-ring { from { opacity: 0.9; transform: scale(0.8); } to { opacity: 0; transform: scale(2.1); } }
.ph-cta { position: relative; }
.ph-cta-label { transition: opacity 0.2s ease; }
.ph-spinner {
  position: absolute; left: 50%; top: 50%; width: calc(20 * var(--p)); height: calc(20 * var(--p)); margin: calc(-10 * var(--p)) 0 0 calc(-10 * var(--p));
  border: calc(2.5 * var(--p)) solid rgb(255 255 255 / 0.35); border-top-color: #fff; border-radius: 50%; opacity: 0; transition: opacity 0.2s ease;
}
.ph-cta.is-pressed { transform: scale(0.96); }
.ph-cta.is-loading .ph-cta-label { opacity: 0; }
.ph-cta.is-loading .ph-spinner { opacity: 1; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-stage .ph-layer[data-layer='success'] { z-index: 2; opacity: 1; transform: translateY(103%); transition: transform 0.6s var(--ease-out), visibility 0s linear 0.6s; }
.hero-stage .ph-layer[data-layer='success'].on { visibility: visible; transform: none; transition: transform 0.6s var(--ease-out), visibility 0s; }
.hero-stage .ph-layer[data-layer='success'].on .ph-art { animation: art-pop 0.8s var(--ease-spring) 0.25s both; }
@keyframes art-pop { from { opacity: 0; transform: translateY(calc(18 * var(--p))) scale(0.86); } }
/* In-phone navigation (app tabs, journey): an iOS push — the next screen slides over from the right,
   the previous one parks at -30%. «Заказ оплачен» is a sheet that rises over the checkout. */
.is-push .ph-layer { opacity: 1; transition: transform 380ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 380ms; }
.is-push .ph-layer[data-pos='after'] { transform: translateX(100%); }
.is-push .ph-layer[data-pos='before'] { transform: translateX(-30%); }
.is-push .ph-layer.on { transform: none; transition: transform 380ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s; }
.is-push .ph-layer[data-layer='success'] { transition: transform var(--t-slow) var(--ease-out), visibility 0s linear var(--t-slow); }
.is-push .ph-layer[data-layer='success'][data-pos='after'] { transform: translateY(103%); }
.is-push .ph-layer[data-layer='success'].on { transform: none; transition: transform var(--t-slow) var(--ease-out), visibility 0s; }
.is-push .ph-layer[data-layer='success'].on .ph-art { animation: art-pop 0.8s var(--ease-spring) 0.25s both; }

/* =====================================================================
   Admin mock — 960 × 620 design px, scaled by its container
   ===================================================================== */
.admin { container-type: inline-size; }
.ad-frame {
  --a: calc(100cqw / 960);
  position: relative; display: grid; grid-template-rows: calc(34 * var(--a)) minmax(0, 1fr); aspect-ratio: 960 / 620; overflow: hidden;
  border-radius: calc(16 * var(--a)); background: var(--canvas); color: var(--ink);
  font-family: var(--font-family-sans); font-size: calc(13 * var(--a)); line-height: 1.35;
  box-shadow:
    0 calc(40 * var(--a)) calc(80 * var(--a)) calc(-28 * var(--a)) rgb(29 29 30 / 0.3),
    0 calc(6 * var(--a)) calc(20 * var(--a)) rgb(29 29 30 / 0.07),
    0 0 0 1px rgb(29 29 30 / 0.07);
}
.ad-bar { display: flex; align-items: center; gap: calc(7 * var(--a)); padding: 0 calc(14 * var(--a)); border-bottom: 1px solid var(--line); background: var(--paper); }
.ad-bar i { width: calc(10 * var(--a)); height: calc(10 * var(--a)); border-radius: 50%; background: var(--color-neutral-200); }
.ad-url { margin: 0 auto; transform: translateX(calc(-22 * var(--a))); padding: calc(3 * var(--a)) calc(16 * var(--a)); border-radius: calc(7 * var(--a)); background: var(--canvas); color: var(--color-neutral-600); font-size: calc(11.5 * var(--a)); }
.ad-body { display: grid; grid-template-columns: calc(212 * var(--a)) minmax(0, 1fr); min-height: 0; }
.ad-side { overflow: hidden; padding: calc(16 * var(--a)) calc(10 * var(--a)); border-right: 1px solid var(--line); }
.ad-logo { padding: calc(2 * var(--a)) calc(8 * var(--a)) calc(18 * var(--a)); color: var(--accent); }
.ad-logo svg { width: calc(92 * var(--a)); height: calc(19 * var(--a)); }
/* Rows are exactly the menu's width, so a chevron always sits inside the highlight: an auto
   column grew to the nowrap «Запланированные доставки» and pushed every chevron past it. */
.ad-nav { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(1 * var(--a)); }
.ad-nav-pill {
  position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: var(--h, 0px); border-radius: calc(8 * var(--a));
  background: var(--color-neutral-100); transform: translateY(var(--y, 0px));
  transition: transform 450ms var(--ease-out), height 450ms var(--ease-out);
}
.ad-nav span { position: relative; z-index: 1; transition: color var(--t-mid) ease; display: flex; align-items: center; justify-content: space-between; gap: calc(6 * var(--a)); padding: calc(8 * var(--a)); border-radius: calc(8 * var(--a)); color: var(--ink-soft); font-size: calc(11.5 * var(--a)); font-weight: 500; }
.ad-nav span svg { width: calc(14 * var(--a)); height: calc(14 * var(--a)); color: var(--color-neutral-600); }
.ad-nav span.on { background: var(--color-neutral-100); color: var(--ink); }
.has-pill .ad-nav span.on { background: transparent; }
.ad-main { display: grid; grid-template-rows: calc(52 * var(--a)) minmax(0, 1fr); min-width: 0; min-height: 0; }
.ad-head { display: flex; align-items: center; justify-content: flex-end; padding: 0 calc(22 * var(--a)); border-bottom: 1px solid var(--line); }
.ad-account { display: flex; align-items: center; gap: calc(9 * var(--a)); }
.ad-avatar { display: grid; place-items: center; width: calc(30 * var(--a)); height: calc(30 * var(--a)); border-radius: calc(8 * var(--a)); background: var(--paper); }
.ad-avatar svg { width: calc(18 * var(--a)); height: calc(18 * var(--a)); }
.ad-who { display: grid; }
.ad-who b { font-size: calc(12 * var(--a)); font-weight: 600; }
.ad-who small { color: var(--color-neutral-600); font-size: calc(11 * var(--a)); }
.ad-caret { width: calc(16 * var(--a)); height: calc(16 * var(--a)); }
.ad-pages { position: relative; display: grid; grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0; }
.ad-pages > .ad-page { grid-area: 1 / 1; }
/* Pages of one window: the old page leaves fast, the new one settles in after it */
.has-pill .ad-pages > .ad-page {
  opacity: 0; visibility: hidden; transform: translateY(calc(16 * var(--a)));
  transition: opacity var(--t-fast) ease, transform var(--t-mid) var(--ease-out), visibility 0s linear var(--t-mid);
}
.has-pill .ad-pages > .ad-page[data-pos='before'] { transform: translateY(calc(-16 * var(--a))); }
.has-pill .ad-pages > .ad-page.on { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-mid) ease 140ms, transform var(--t-slow) var(--ease-out) 140ms, visibility 0s; }
.ad-page { position: relative; display: flex; flex-direction: column; gap: calc(12 * var(--a)); min-height: 0; overflow: hidden; padding: calc(20 * var(--a)) calc(24 * var(--a)) calc(18 * var(--a)); }
.ad-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(16 * var(--a)); }
.ad-title { font: 700 calc(22 * var(--a))/1.15 var(--font-family-title); letter-spacing: -0.01em; }
.ad-sub { margin-top: calc(-8 * var(--a)); color: var(--color-neutral-500); font-size: calc(13 * var(--a)); }
.ad-title-row .ad-sub { margin-top: calc(3 * var(--a)); }
.ad-h { margin-right: calc(6 * var(--a)); font: 700 calc(16 * var(--a))/1.2 var(--font-family-title); white-space: nowrap; }
.ad-mt { margin-top: calc(4 * var(--a)); }
.ad-cap { color: var(--color-neutral-500); font-size: calc(12 * var(--a)); }
.ad-h + .ad-cap { margin-top: calc(-8 * var(--a)); }
.ad-btn { flex: none; display: inline-flex; align-items: center; gap: calc(8 * var(--a)); height: calc(36 * var(--a)); padding: 0 calc(14 * var(--a)); border-radius: calc(8 * var(--a)); background: var(--color-neutral-100); font-size: calc(13 * var(--a)); font-weight: 500; white-space: nowrap; }
.ad-btn svg { width: calc(16 * var(--a)); height: calc(16 * var(--a)); }
.ad-btn-sm { height: calc(28 * var(--a)); padding: 0 calc(12 * var(--a)); font-size: calc(12 * var(--a)); }
.ad-btn-primary { background: var(--cta); color: #fff; }
.ad-push { margin-left: auto; }
.ad-fit { flex: none; padding-bottom: calc(4 * var(--a)); }
.ad-card { padding: calc(14 * var(--a)) calc(16 * var(--a)); border-radius: calc(18 * var(--a)); background: var(--paper); }
.ad-summary { align-self: flex-start; display: flex; align-items: center; gap: calc(28 * var(--a)); }
.ad-big { margin: calc(2 * var(--a)) 0; font: 700 calc(19 * var(--a))/1.25 var(--font-family-title); }
.ad-count { display: inline-grid; overflow: hidden; vertical-align: bottom; }
.ad-count > span { grid-area: 1 / 1; white-space: nowrap; }
.ad-table-card { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: calc(14 * var(--a)) calc(14 * var(--a)) 0; }
.ad-table-head { display: flex; align-items: center; gap: calc(8 * var(--a)); margin-bottom: calc(12 * var(--a)); }
.ad-chip { display: inline-flex; align-items: center; gap: calc(4 * var(--a)); height: calc(28 * var(--a)); padding: 0 calc(8 * var(--a)) 0 calc(11 * var(--a)); border-radius: 999px; background: var(--color-neutral-100); font-size: calc(12 * var(--a)); font-weight: 500; white-space: nowrap; }
.ad-chip svg { width: calc(14 * var(--a)); height: calc(14 * var(--a)); }
.ad-table { display: grid; min-height: 0; font-size: calc(12 * var(--a)); }
.ad-rows { display: grid; }
.ad-tr { display: grid; grid-template-columns: var(--cols); align-items: center; gap: calc(10 * var(--a)); padding: calc(8 * var(--a)) calc(12 * var(--a)); border-bottom: 1px solid var(--line); }
.ad-th { padding-block: calc(10 * var(--a)); border-bottom: 0; border-radius: calc(10 * var(--a)); background: var(--canvas); font-size: calc(11.5 * var(--a)); font-weight: 600; }
.ad-tr > span { display: grid; gap: calc(1 * var(--a)); min-width: 0; }
.ad-tr b { overflow: hidden; font-size: calc(12.5 * var(--a)); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ad-tr small { overflow: hidden; color: var(--color-neutral-600); font-size: calc(11 * var(--a)); text-overflow: ellipsis; white-space: nowrap; }
.ad-tr.is-new { background: color-mix(in srgb, var(--success-surface) 60%, transparent); }
.ad-cook { --cols: 1.25fr 1fr 0.85fr 1.05fr 1.6fr; }
.ad-deliv { --cols: 1.3fr 0.6fr 1.1fr 1.5fr 1.25fr; }
.ad-cancel { --cols: 1.3fr 1.15fr 0.8fr 1fr 0.6fr; }
.ad-tag { justify-self: start; padding: calc(3 * var(--a)) calc(7 * var(--a)); border-radius: calc(6 * var(--a)); font-size: calc(11 * var(--a)); font-style: normal; white-space: nowrap; }
.ad-tag b { font-weight: 600; }
.ad-tag-red { background: var(--surface-danger); color: var(--text-danger); }
.ad-tag-yellow { background: var(--feedback-warningsurface); color: var(--feedback-warningtext); }
.ad-dates { display: flex; gap: calc(8 * var(--a)); }
.ad-dates span { display: inline-flex; align-items: center; gap: calc(6 * var(--a)); height: calc(34 * var(--a)); padding: 0 calc(16 * var(--a)); border-radius: 999px; background: var(--color-neutral-100); color: var(--ink-soft); font-size: calc(12.5 * var(--a)); font-weight: 500; white-space: nowrap; }
.ad-dates span.on { background: var(--accent); color: #fff; }
.ad-dates i { display: grid; place-items: center; min-width: calc(18 * var(--a)); height: calc(18 * var(--a)); padding: 0 calc(5 * var(--a)); border-radius: 999px; background: var(--accent); color: #fff; font-size: calc(11 * var(--a)); font-style: normal; }
/* A count on the selected (graphite) pill would vanish in graphite: white disc there */
.ad-dates span.on i { background: var(--paper); color: var(--ink); }
.ad-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(10 * var(--a)); }
.ad-stat { display: grid; gap: calc(3 * var(--a)); padding: calc(12 * var(--a)) calc(14 * var(--a)); border-radius: calc(14 * var(--a)); }
.ad-stat small { color: var(--color-neutral-600); font-size: calc(11.5 * var(--a)); }
.ad-stat b { font: 700 calc(16.5 * var(--a))/1.2 var(--font-family-title); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ad-stats-layout { display: grid; grid-template-columns: minmax(0, 1fr) calc(214 * var(--a)); gap: calc(16 * var(--a)); min-height: 0; }
.ad-stats-main { display: flex; flex-direction: column; gap: calc(12 * var(--a)); min-width: 0; }
.ad-stats-main .ad-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ad-period { display: flex; flex-direction: column; gap: calc(6 * var(--a)); padding: calc(14 * var(--a)); }
.ad-period > b { font: 700 calc(13.5 * var(--a))/1.2 var(--font-family-title); }
.ad-period > small { color: var(--color-neutral-600); font-size: calc(11 * var(--a)); }
.ad-period .ad-btn { justify-content: center; margin-top: auto; }
.ad-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: calc(2 * var(--a)); font-size: calc(10.5 * var(--a)); text-align: center; }
.ad-cal span { position: relative; z-index: 0; display: grid; place-items: center; height: calc(24 * var(--a)); }
.ad-cal .wd { height: calc(18 * var(--a)); color: var(--color-neutral-600); font-size: calc(9.5 * var(--a)); }
.ad-cal .in { background: var(--accent-subtle); }
.ad-cal .from { background: linear-gradient(to right, transparent 50%, var(--accent-subtle) 50%); }
.ad-cal .to { background: linear-gradient(to left, transparent 50%, var(--accent-subtle) 50%); }
.ad-cal .from, .ad-cal .to { color: #fff; font-weight: 600; }
.ad-cal .from::before, .ad-cal .to::before { content: ''; position: absolute; z-index: -1; width: calc(22 * var(--a)); height: calc(22 * var(--a)); border-radius: 50%; background: var(--cta); }
.ad-history { --cols: 0.4fr 1.15fr 2fr; }
.ad-rule { height: 1px; margin: calc(4 * var(--a)) 0; background: var(--color-neutral-200); }
.ad-promo { align-self: flex-start; display: flex; align-items: center; gap: calc(14 * var(--a)); }
.ad-promo-code { padding: calc(6 * var(--a)) calc(10 * var(--a)); border: 1px dashed var(--accent); border-radius: calc(8 * var(--a)); background: var(--accent-subtle); color: var(--accent-text); font-size: calc(13 * var(--a)); font-weight: 700; letter-spacing: 0.04em; }
.ad-promo > span:last-child { display: grid; }
.ad-promo b { font-size: calc(12.5 * var(--a)); font-weight: 600; }
.ad-promo small { color: var(--color-neutral-600); font-size: calc(11 * var(--a)); }
.ad-zones { flex: 1; min-height: 0; display: grid; grid-template-columns: calc(204 * var(--a)) minmax(0, 1fr); gap: calc(12 * var(--a)); }
.ad-zone-list { display: flex; flex-direction: column; gap: calc(4 * var(--a)); padding: calc(10 * var(--a)); }
.ad-zone { display: flex; align-items: center; gap: calc(10 * var(--a)); padding: calc(9 * var(--a)) calc(8 * var(--a)); border-radius: calc(10 * var(--a)); }
.ad-zone:first-child { background: var(--canvas); }
.ad-zone i { flex: none; width: calc(12 * var(--a)); height: calc(12 * var(--a)); border-radius: 50%; background: var(--z); }
.ad-zone span { display: grid; }
.ad-zone b { font-size: calc(13 * var(--a)); font-weight: 600; }
.ad-zone small { color: var(--color-neutral-600); font-size: calc(11 * var(--a)); }
.ad-zone-note { margin-top: auto; padding: calc(10 * var(--a)); border-radius: calc(10 * var(--a)); background: var(--feedback-infosurface); color: var(--ink-soft); font-size: calc(11 * var(--a)); line-height: 1.4; }
.ad-map { min-height: 0; overflow: hidden; border-radius: calc(18 * var(--a)); background: #eceee9; }
.ad-map svg { width: 100%; height: 100%; }
.zone path { fill: color-mix(in srgb, var(--z) 20%, transparent); stroke: var(--z); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.zones-draw .zone path { animation: zone-draw 1.5s var(--ease-out) both; }
.zones-draw .zone:nth-of-type(2) path { animation-delay: 0.2s; }
.zones-draw .zone:nth-of-type(3) path { animation-delay: 0.4s; }
.zones-draw .zone-labels { animation: fade-in 0.4s ease 1.1s both; }
@keyframes zone-draw { 0% { stroke-dashoffset: 1; fill-opacity: 0; } 65% { stroke-dashoffset: 0; fill-opacity: 0; } 100% { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } }

/* New order row in the hero (inserted by app.js) */
.ad-row-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms var(--ease-out); }
.ad-row-wrap > .ad-tr { min-height: 0; overflow: hidden; padding-block: 0; border-bottom-color: transparent; transition: padding 400ms var(--ease-out), background-color 1.2s ease, border-color var(--t-mid) ease; }
.ad-row-wrap.in { grid-template-rows: 1fr; }
.ad-row-wrap.in > .ad-tr { padding-block: calc(8 * var(--a)); border-bottom-color: var(--line); }
.ad-row-wrap.flash > .ad-tr { background: var(--success-surface); transition: padding 0.55s var(--ease-out), background-color 0.2s ease; }
.ad-row-wrap .ad-tag { opacity: 0; transform: scale(0.6); transition: opacity var(--t-mid) ease 120ms, transform var(--t-slow) var(--ease-spring) 120ms; }
.ad-row-wrap.tag-in .ad-tag { opacity: 1; transform: none; }
.ad-toast {
  position: absolute; z-index: 2; right: calc(22 * var(--a)); top: calc(14 * var(--a));
  display: flex; align-items: center; gap: calc(10 * var(--a)); padding: calc(10 * var(--a)) calc(16 * var(--a)) calc(10 * var(--a)) calc(12 * var(--a));
  border-radius: calc(14 * var(--a)); background: var(--ink); color: #fff;
  box-shadow: 0 calc(16 * var(--a)) calc(32 * var(--a)) rgb(29 29 30 / 0.3);
  opacity: 0; transform: translateY(calc(-16 * var(--a))) scale(0.98); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.55s var(--ease-spring);
}
.ad-toast svg { flex: none; width: calc(22 * var(--a)); height: calc(22 * var(--a)); color: var(--success); }
.ad-toast span { display: grid; }
.ad-toast b { font-size: calc(12.5 * var(--a)); font-weight: 600; }
.ad-toast small { color: rgb(255 255 255 / 0.75); font-size: calc(11 * var(--a)); }
.s-courier .ad-toast { opacity: 1; transform: none; }

/* Narrow admin: drop the sidebar so the working area stays legible */
@container (max-width: 520px) {
  .ad-frame:not(.is-full) { --a: calc(100cqw / 470); aspect-ratio: 470 / 560; }
  .ad-frame:not(.is-full) .ad-body { grid-template-columns: minmax(0, 1fr); }
  .ad-frame:not(.is-full) .ad-side, .ad-frame:not(.is-full) .ad-table-head .ad-chip, .ad-frame:not(.is-full) .ad-url, .ad-frame:not(.is-full) .ad-summary .ad-btn, .ad-frame:not(.is-full) .ad-title-row > .ad-btn, .ad-frame:not(.is-full) .ad-head .ad-who small { display: none; }
  .ad-frame:not(.is-full) .ad-cook { --cols: 1.1fr 1.25fr; }
  .ad-frame:not(.is-full) .ad-deliv { --cols: 1.35fr 0.8fr 1fr; }
  .ad-frame:not(.is-full) .ad-cancel { --cols: 1.3fr 1fr; }
  .ad-frame:not(.is-full) .ad-history { --cols: 0.45fr 1.6fr; }
  .ad-frame:not(.is-full) .ad-cook .ad-tr > :nth-child(2), .ad-frame:not(.is-full) .ad-cook .ad-tr > :nth-child(3), .ad-frame:not(.is-full) .ad-cook .ad-tr > :nth-child(4),
  .ad-frame:not(.is-full) .ad-deliv .ad-tr > :nth-child(3), .ad-frame:not(.is-full) .ad-deliv .ad-tr > :nth-child(4),
  .ad-frame:not(.is-full) .ad-cancel .ad-tr > :nth-child(2), .ad-frame:not(.is-full) .ad-cancel .ad-tr > :nth-child(3), .ad-frame:not(.is-full) .ad-cancel .ad-tr > :nth-child(5),
  .ad-frame:not(.is-full) .ad-history .ad-tr > :nth-child(2) { display: none; }
  .ad-frame:not(.is-full) .ad-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-frame:not(.is-full) .ad-stats-layout { grid-template-columns: minmax(0, 1fr); }
  .ad-frame:not(.is-full) .ad-period, .ad-frame:not(.is-full) .ad-promo { display: none; }
  .ad-frame:not(.is-full) .ad-zones { grid-template-columns: minmax(0, 1fr); }
  .ad-frame:not(.is-full) .ad-zone-list { display: none; }
  .ad-frame:not(.is-full) .ad-dates span:nth-child(n + 3) { display: none; }
}

/* Hero: the real panel at full fidelity. When an order lands, the «camera» zooms in on its row and
   allergy tag (scale set by app.js so the tag reads at its real size), then pulls back out. */
.ad-frame.is-full .ad-body { transform-origin: var(--zx, 80%) var(--zy, 45%); transition: transform 760ms var(--ease-io); }
.ad-frame.is-full.is-zoomed .ad-body { transform: scale(var(--zoom, 1.4)); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 18ch; }
  .hero-demo { width: min(100%, 52rem); margin-right: 0; }
}
@media (max-width: 960px) {
  .site-nav {
    position: absolute; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    display: none; flex-direction: column; gap: 0;
    padding: 0.5rem var(--gutter) 1rem; border-bottom: 1px solid var(--line); background: var(--paper);
    box-shadow: 0 1rem 2rem rgb(29 29 30 / 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.875rem 0.5rem; font-size: 1.0625rem; }
  .nav-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .journey-grid { grid-template-columns: minmax(0, 1fr); }
  .journey-stage { display: none; }
  /* Swipe cards: one step per card, the next one peeks in */
  .js .journey-steps {
    display: flex; gap: 0.875rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 0.25rem var(--gutter) 0.75rem; scroll-padding-inline: var(--gutter);
  }
  .js .journey-steps::-webkit-scrollbar { display: none; }
  .js .journey-steps::before, .js .journey-steps::after { display: none; }
  .js .j-step { flex: 0 0 86%; display: block; padding: 1rem 1.125rem 1.125rem; border-radius: 1.5rem; background: var(--canvas); scroll-snap-align: start; }
  .js .j-num { margin-bottom: 0.875rem; }
  .js .j-text .j-actor { background: var(--paper); }
  .js .j-text p { font-size: 1rem; }
  .js .j-head { pointer-events: none; }
  .js .j-step .j-screen { margin-top: 1rem; }
  .js .j-screen .phone { width: min(10rem, 56%); margin-inline: auto; }
  .js .journey-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
  .journey-dots { display: flex; }
  .journey-dots button { position: relative; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer; }
  .journey-dots button::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 0.625rem; height: 0.625rem; margin: -0.3125rem 0 0 -0.3125rem;
    border-radius: 999px; background: var(--color-neutral-300);
    transition: width var(--t-mid) var(--ease-out), margin var(--t-mid) var(--ease-out), background-color var(--t-mid) ease;
  }
  .journey-dots button[aria-current='step']::before { width: 1.375rem; margin-left: -0.6875rem; background: var(--accent); }
  .app-grid, .team-body, .brand-grid, .cta-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .app-grid { gap: 1.25rem; }
  .app-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .app-tab { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem 0.375rem 0.375rem; border-radius: 1rem; background: var(--paper); box-shadow: inset 0 0 0 1px var(--color-neutral-200); }
  .app-tab:hover { background: var(--paper); }
  .app-tab[aria-selected='true'] { background: var(--accent); box-shadow: none; color: #fff; }
  .app-tab-icon { width: 2rem; height: 2rem; border-radius: 50%; }
  .app-tab-icon svg { width: 1.125rem; height: 1.125rem; }
  .app-tab[aria-selected='true'] .app-tab-icon { background: var(--accent); color: #fff; }
  .app-tab-text { display: block; }
  .app-tab-text b { padding: 0; font-size: 0.9375rem; line-height: 1.25; }
  .app-tab-text > span { display: none; }
  .app-desc { display: block; min-height: calc(3 * 1.55em); }
  .faq-grid h2 { position: static; }
  .cta-art { display: none; }
}
@media (max-width: 1100px) {
  .compare-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .compare-board { grid-template-columns: minmax(0, 1fr); }
  .cmp { --k: 0.45; min-height: 8.5rem; }
  .hero-steps ol { grid-template-columns: minmax(0, 1fr); }
  .hero-steps li { grid-area: 1 / 1; transition: opacity var(--t-mid) ease, visibility 0s; }
  .hero-steps li:not(.is-active):not(:last-child.is-done) { opacity: 0; visibility: hidden; transition: opacity var(--t-fast) ease, visibility 0s linear var(--t-fast); }
  .start-steps { grid-template-columns: minmax(0, 1fr); }
  .start-steps li:not(:last-child)::after { display: none; }
  .team-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero-stage .admin { width: 100%; }
  .hero-stage .phone { justify-self: start; width: 38%; margin-top: 44%; }
  .hero-toggle { justify-self: end; margin: 0 0.25rem 0.25rem 0; }
  .logo-tag { display: none; }
  .header-row { gap: 0.625rem; }
  .header-cta { padding: 0 0.875rem; }
  .nav-toggle { padding: 0 0.625rem; }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-actions { gap: 0.5rem; margin-top: 1.5rem; }
  .hero-actions .btn { flex: 1 1 0; min-width: max-content; padding: 0 1rem; font-size: 1rem; }
  /* Phones: the scene comes right after the buttons, the three facts go under it */
  .hero-copy { display: contents; }
  .hero-grid { gap: 0; }
  .hero-demo { margin-top: 2rem; }
  .hero-facts { order: 3; margin-top: 1.5rem; }
  .hero-kicker { font-size: 0.8125rem; }
  .hero-lead { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; transition-delay: 0ms !important;
  }
}
