/* snack me up — strona główna. Dokłada się do assets/legal.css i NIE definiuje
   własnych kolorów ani krojów: wszystkie tokeny (--o / --ink / --parchment / --ink-mid /
   --o-lo / --m-*) pochodzą z legal.css, a te z palety marki (smu-design §1).
   Role krojów jak w aplikacji: Nunito 800 = nagłówki, etykiety, przyciski ·
   Fraunces italic = wyłącznie nazwy dań · DM Sans = wszystko, co się czyta. */

/* ---------- reset reguł dziedziczonych ze stron legal ----------
   :where() trzyma specyficzność na poziomie samego elementu, żeby klasy sekcji niżej wygrywały. */
body.home { overflow-x: clip; }
:where(.home) section { margin: 0; padding: 0; border: 0; scroll-margin-top: 72px; }
:where(.home) h2 { display: block; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 20px; text-wrap: balance; }
:where(.home) h2::before { content: none; display: none; }
:where(.home) h3 { font-family: 'Nunito', sans-serif; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
:where(.home) ul { list-style: none; padding: 0; margin: 0; }
:where(.home) li { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
/* arkusze nasuwajace sie na siebie przy przewijaniu (sekcja G): gorna zaokraglona krawedz + ujemny
   margines chowaja szew pod poprzednia sekcja; padding-bottom wiekszy o 36px, zeby tresc na dole
   poprzedniej sekcji nie weszla pod nastepny arkusz. */
.band { position: relative; padding-top: clamp(72px, 10vw, 128px); padding-bottom: calc(clamp(72px, 10vw, 128px) + 36px); border-radius: 36px 36px 0 0; margin-top: -36px; }
.eyebrow { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--o); margin-bottom: 14px; }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; max-width: 56ch; }

/* ---------- odznaka z ikoną: kółko 44px, wariant sm 36px, ciemne tło i karty trybów mają własny kolor ---------- */
.ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--o-lo); color: var(--o); flex: none; }
.ico svg { width: 22px; height: 22px; }
.ico.sm { width: 36px; height: 36px; }
.ico.sm svg { width: 18px; height: 18px; }
.knows .ico { background: rgba(255,107,53,0.16); color: var(--o-hi); }
.mode .ico { background: color-mix(in srgb, var(--mc) 18%, transparent); color: var(--mc); }

/* ---------- czipy: pigułki z małą ikoną, kolor ikony zawsze --o ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; box-shadow: inset 0 0 0 1px var(--rule); background: var(--parchment); border-radius: 100px; padding: 6px 14px; font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 14px; color: var(--ink); }
.chips li svg { width: 16px; height: 16px; color: var(--o); flex: none; }

/* ---------- nav ---------- */
.nav-links { display: none; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--body); text-decoration: none; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
@media (min-width: 820px) { .nav-links { display: flex; } }

/* ---------- pigułka „Pobierz" w nav: obok przełącznika języka, widoczna zawsze ---------- */
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: -0.01em; color: var(--parchment); background: var(--ink); padding: 8px 16px; border-radius: 100px; text-decoration: none; white-space: nowrap; flex: none; transition: background-color 0.15s ease; }
.nav-cta:hover { background: var(--ink-mid); text-decoration: none; }
/* na wąskim ekranie: brand + przełącznik + pigułka mają zmieścić się w jednej linii — dociskamy odstępy, nie tekst */
@media (max-width: 380px) {
  .home nav { padding-inline: 16px; }
  .nav-right { gap: 8px; }
  .nav-lang { gap: 4px; }
  .nav-lang a { padding: 4px 7px; }
  .nav-cta { padding: 8px 12px; font-size: 13px; }
}

/* ---------- telefon: ramka w CSS, ekran to prawdziwy zrzut ---------- */
.phone { --pw: 288px; width: var(--pw); flex: none; padding: calc(var(--pw) * 0.032); border-radius: calc(var(--pw) * 0.16); background: var(--ink); box-shadow: 0 0 0 1px rgba(253,248,242,0.10) inset, 0 40px 70px -30px rgba(17,17,24,0.45), 0 14px 28px -14px rgba(17,17,24,0.30); }
.phone img, .phone .screens { display: block; width: 100%; height: auto; border-radius: calc(var(--pw) * 0.13); }
.phone .screens { position: relative; overflow: hidden; aspect-ratio: 360 / 780; }
.phone .screens img { position: absolute; inset: 0; height: 100%; border-radius: 0; opacity: 0; transition: opacity 0.5s ease; }

/* ---------- 1. hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px); overflow: clip; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero .tagline { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: -0.01em; color: var(--o); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 24px; text-wrap: balance; }
.hero .lead { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--ink); margin-bottom: 14px; max-width: 40ch; }
.hero .sub { font-size: 16px; color: var(--body); max-width: 54ch; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.hero-visual .plate { position: absolute; z-index: 0; width: min(430px, 116vw); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; left: 50%; top: 50%; transform: translate(-16%, -62%); box-shadow: 0 30px 60px -30px rgba(17,17,24,0.35); }
.hero-visual .phone { position: relative; z-index: 1; transform: translateX(-9%); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 40px; }
  .hero-visual { min-height: 660px; }
  .hero-visual .phone { --pw: 304px; }
}
/* hero przyklejony: tylko na duzym, wysokim ekranie i gdy ruch jest wlaczony — nastepny arkusz nasuwa sie na niego */
@media (min-width: 900px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  .hero { position: sticky; top: 56px; z-index: 0; }
}

/* gap 16px: odznaka Google wymaga wolnego pola min. ¼ swojej wysokości (52 px → 13 px) */
.stores { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 34px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; background: var(--ink); color: var(--parchment); font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; padding: 12px 24px; border-radius: 100px; text-decoration: none; transition: transform 0.15s ease, background-color 0.15s ease; }
.store-btn:hover { text-decoration: none; background: var(--ink-mid); transform: translateY(-1px); }
.store-btn svg { flex-shrink: 0; }
/* Stan „wkrótce": kotwica bez href nie jest linkiem — nie da się w nią wejść ani klawiaturą, ani czytnikiem.
   Wysokość 52px zrównuje pigułkę z oficjalną odznaką Google obok niej. */
.store-btn.is-soon { height: 52px; background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px rgba(17,17,24,0.14); cursor: default; }
.store-btn.is-soon:hover { transform: none; background: transparent; }
.soon-tag { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0.02em; color: var(--o); background: var(--o-lo); padding: 3px 9px; border-radius: 100px; }
/* Oficjalne odznaki sklepów: grafiki nie modyfikujemy, tylko sadzamy w jednej linii bazowej z pigułką obok.
   Baza gotowa na SVG Apple (bez marginesu). PNG Google niesie wbudowany przezroczysty margines,
   RÓŻNY w PL i EN (zmierzony alpha.getbbox()): pl top/bottom 29px na 250px, en 41px na wszystkich krawędziach —
   ujemny margines kompensuje go, żeby widoczna odznaka miała 52px, tak jak pigułka is-soon obok. */
.store-badge { display: inline-flex; align-items: center; transition: transform 0.15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { display: block; height: 52px; width: auto; }
.store-badge img[src*="google-play-pl"] { height: 67.71px; margin-block: -7.85px; }
.store-badge img[src*="google-play-en"] { height: 77.38px; margin-block: -12.69px; }
/* Telefon (MKT-3a+, decyzja PO 24.09.2026): przy 52px para odznak nie mieści się w jednej linii
   (w panelu .get zostaje 271px przy 375px ekranu). Obie odznaki schodzą do 40px — minimum Apple — i nadal są równe;
   EN kompensuje też boczny margines PNG (41px na 250px). */
@media (max-width: 419px) {
  .stores { gap: 12px; }
  .store-badge img { height: 40px; }
  .store-badge img[src*="google-play-pl"] { height: 52.08px; margin-block: -6.04px; }
  .store-badge img[src*="google-play-en"] { height: 59.52px; margin: -9.76px; }
}
.stores-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.stores-note a { color: var(--body); text-decoration: underline; text-decoration-color: rgba(255,107,53,0.5); text-underline-offset: 3px; }

/* ---------- 2. problem ---------- */
.problem { background: var(--parchment-mid); z-index: 1; }
.problem-head { max-width: 800px; }
.problem-grid { display: grid; gap: 20px; margin-top: 40px; }
.problem-card { background: var(--parchment); border-radius: 28px; padding: 28px; }
.problem-card h3 { font-size: 20px; margin: 18px 0 8px; }
.problem-card p { font-size: 16px; color: var(--body); }
.problem-close { margin-top: 40px; max-width: 800px; font-size: clamp(18px, 2vw, 22px); line-height: 1.6; color: var(--ink); }
@media (min-width: 760px) { .problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 3. jak to działa ---------- */
.how { background: var(--parchment); z-index: 2; }
.how-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.how-lead { margin-top: 14px; font-size: clamp(17px, 1.8vw, 19px); line-height: 1.6; color: var(--body); max-width: 60ch; }
.steps { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; margin-inline: -24px; padding: 8px 24px 28px; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step { flex: 0 0 min(86vw, 360px); scroll-snap-align: start; display: flex; flex-direction: column; }
.step-copy { margin-bottom: 28px; }
.step-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-no { width: 36px; height: 36px; border-radius: 50%; background: var(--o); color: var(--parchment); font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.step .when { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--o); margin: 0; }
.step h3 { font-size: clamp(21px, 2.4vw, 30px); line-height: 1.15; color: var(--ink); margin-bottom: 12px; text-wrap: balance; }
.step p { font-size: 16px; max-width: 44ch; }
.stage { display: none; }

/* para nachodzacych telefonow karty kroku (karuzela / siatka statyczna): sama geometria co telefony
   Meal Prep, sekcja 4b (tylny -4deg, przedni +3deg, wlasciwosc rotate). Bez przycinania — uzasadnienie przy .prep-row-phones. */
.step-phones { --ppw: min(38vw, 170px); position: relative; width: calc(var(--ppw) * 1.55); height: calc(var(--ppw) * 2.3 + 60px); margin: auto auto 0; overflow: visible; }
.step-phones .phone { --pw: var(--ppw); }
.step-phone { position: absolute; top: 0; left: 0; }
.step-phone--back { rotate: -4deg; }
.step-phone--front { z-index: 1; rotate: 3deg; top: 40px; left: calc(var(--ppw) * 0.45); }

@media (min-width: 900px) {
  /* bez skryptu albo przy prefers-reduced-motion: siatka po 3, pieciu kart nie dzieli rowno — zawija sie 3+2 */
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; overflow: visible; margin: 0; padding: 0; }

  /* ze skryptem: para telefonow stoi w miejscu, OBA ekrany zmieniaja sie z krokiem */
  .how.is-sticky .how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .how.is-sticky .steps { display: block; position: relative; padding-left: 28px; }
  .how.is-sticky .steps::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--rule); }
  .how.is-sticky .steps::after { content: ''; position: absolute; left: 0; top: 0; width: 2px; border-radius: 2px; background: var(--o); height: calc((var(--active, 0) + 1) / 5 * 100%); transition: height 0.4s ease; }
  .how.is-sticky .step { min-height: 64vh; justify-content: center; opacity: 0.35; transition: opacity 0.35s ease; }
  .how.is-sticky .step.is-active { opacity: 1; }
  .how.is-sticky .step-phones { display: none; }
  .how.is-sticky .step-copy { margin-bottom: 0; }
  .how.is-sticky .step h3 { font-size: clamp(28px, 3vw, 38px); }
  .how.is-sticky .step p { font-size: 18px; }
  .how.is-sticky .stage { display: grid; place-items: center; position: sticky; align-self: start; top: max(72px, calc(50vh - 330px)); height: min(660px, calc(100vh - 88px)); }
  /* scena: para telefonow jak w karcie kroku, ale wieksza i wysokosc liczona z okna, nie z karty */
  .stage-phones { --ppw: min(250px, calc((100vh - 140px) * 0.40)); position: relative; width: calc(var(--ppw) * 1.55); height: calc(var(--ppw) * 2.3 + 60px); margin-inline: auto; overflow: visible; }
  .stage-phones .phone { --pw: var(--ppw); }
  .stage-phone { position: absolute; top: 0; left: 0; }
  .stage-phone--back { rotate: -4deg; }
  .stage-phone--front { z-index: 1; rotate: 3deg; top: 40px; left: calc(var(--ppw) * 0.45); }
  .stage[data-active="0"] .screens img:nth-child(1),
  .stage[data-active="1"] .screens img:nth-child(2),
  .stage[data-active="2"] .screens img:nth-child(3),
  .stage[data-active="3"] .screens img:nth-child(4),
  .stage[data-active="4"] .screens img:nth-child(5) { opacity: 1; }
}

/* ---------- 4. pomocnicy: jeden duzy kafel AI Chef i siatka 2x2 pod nim ---------- */
.modes { background: var(--parchment-mid); z-index: 3; }
.modes-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.mode-grid { display: grid; gap: 16px; }
.mode { position: relative; overflow: hidden; border-radius: 28px; padding: 28px; background: var(--ink-mid); color: rgba(253,248,242,0.72); --mc: var(--o); }
.mode--chef { background: var(--ink); min-height: 460px; display: flex; flex-direction: column; padding: 32px; padding-top: 220px; }
.mode--hero { --mc: var(--m-hero); }
.mode--sweet { --mc: var(--m-sweet); }
.mode--prep { --mc: var(--m-prep); }
.mode--fryer { --mc: var(--m-fryer); }
.mode-tag { display: flex; align-items: center; gap: 10px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mc); margin-bottom: 14px; }
.mode-tag .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--mc) 22%, transparent); }
.mode-tag .badge { margin-left: auto; font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0.04em; text-transform: none; color: var(--parchment); box-shadow: inset 0 0 0 1px rgba(253,248,242,0.35); padding: 3px 10px; border-radius: 100px; }
.mode h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; color: var(--parchment); text-wrap: balance; }
.mode--chef h3 { font-size: clamp(28px, 3.4vw, 40px); max-width: 14ch; }
.mode p.more { margin-top: 12px; font-size: 15px; line-height: 1.6; max-width: 46ch; }
.mode--prep .more a { color: var(--m-prep); text-decoration: underline; text-underline-offset: 3px; }
.mode--chef .mode-body { position: relative; z-index: 1; max-width: 30rem; }
/* zdjecie-tlo karty AI Chef: banner na gorze karty (telefon) albo prawa czesc karty (desktop) wtopiona
   w --ink gradientem — jedyny wyjatek od zakazu gradientow w tym pliku (bez wtopienia zdjecie konczyloby
   sie ostra krawedzia w srodku karty). Kafel .mode ma juz overflow:hidden i border-radius, wiec zaokraglenie
   naroznikow karty przycina zdjecie samo. */
.mode-photo { position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 240px; overflow: hidden; }
.mode-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--ink) 100%); }
.mode-plate { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.04); }

/* kafelki Smaczek/Spontan wewnątrz karty AI Chef: ciemniejsze tlo + blur, bo karta ma teraz zdjecie w tle */
/* na wąskim ekranie kafelki jeden pod drugim — w dwóch kolumnach opis Spontana łamał się po dwa słowa */
.chef-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; position: relative; z-index: 1; }
@media (min-width: 600px) { .chef-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chef-tile { background: color-mix(in srgb, var(--ink) 70%, transparent); border-radius: 20px; padding: 20px; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .chef-tile { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
.chef-tile-name { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--parchment); margin-top: 12px; }
.chef-tile-desc { font-size: 15px; line-height: 1.5; margin-top: 4px; }

/* karty Kitchen Hero / Łasuch / Meal Prep / Air Fryer: telefon albo ilustracja w PEŁNI, bez przycięcia —
   pionowo na telefonie, poziomo (tekst | wizual) od 900px */
.mode--hero, .mode--sweet, .mode--prep, .mode--fryer { display: flex; flex-direction: column; }
.mode-copy { flex: 1; }
.mode-preview { display: flex; justify-content: center; align-items: center; margin-top: 24px; }
.mode-preview .phone { --pw: min(60vw, 220px); }
.fryer-ico { display: flex; align-items: center; justify-content: center; width: 160px; height: 160px; border-radius: 50%; background: color-mix(in srgb, var(--m-fryer) 16%, transparent); color: var(--m-fryer); flex: none; }
.fryer-ico svg { width: 72px; height: 72px; }

@media (min-width: 900px) {
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode--chef { grid-column: 1 / -1; padding: 44px; }
  .mode-photo { top: 0; right: 0; bottom: 0; left: auto; height: auto; width: 55%; }
  .mode-photo::after { background: linear-gradient(90deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 82%, transparent) 28%, color-mix(in srgb, var(--ink) 20%, transparent) 70%, transparent 100%), linear-gradient(180deg, color-mix(in srgb, var(--ink) 25%, transparent) 0%, transparent 18%, transparent 82%, color-mix(in srgb, var(--ink) 25%, transparent) 100%); }
  .mode--hero, .mode--sweet, .mode--prep, .mode--fryer { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
  .mode-preview { margin-top: 0; flex: none; }
  .mode-preview .phone { --pw: 200px; }
}

@media (prefers-reduced-motion: no-preference) {
  .mode--hero, .mode--sweet, .mode--prep, .mode--fryer { transition: transform 0.2s ease; }
  .mode--hero:hover, .mode--sweet:hover, .mode--prep:hover, .mode--fryer:hover { transform: translateY(-3px); }
  .mode-preview .phone { transition: transform 0.25s ease; }
  .mode--hero:hover .mode-preview .phone,
  .mode--sweet:hover .mode-preview .phone,
  .mode--prep:hover .mode-preview .phone { transform: translateY(-8px); }
  /* frytkownica: 2-3 falki cieplne delikatnie faluja nad urzadzeniem */
  .fryer-wave { transform-box: fill-box; transform-origin: center; animation: fryer-waft 2.4s ease-in-out infinite; }
  .fryer-wave:nth-of-type(2) { animation-delay: 0.3s; }
  @keyframes fryer-waft { 0%, 100% { translate: 0 0; opacity: 0.55; } 50% { translate: 0 -2px; opacity: 1; } }
}

/* ---------- 4b. meal prep: rozdzial rozbudowanego modulu Premium — 6 etapow, kazdy z wlasnymi ekranami ---------- */
.prep { background: var(--ink); color: rgba(253,248,242,0.72); z-index: 4; }
.prep h2 { color: var(--parchment); max-width: 20ch; }
.prep-head { max-width: 760px; }
.prep-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.prep-eyebrow .badge { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0.04em; text-transform: none; color: var(--parchment); box-shadow: inset 0 0 0 1px rgba(253,248,242,0.35); padding: 3px 10px; border-radius: 100px; }
.prep-lead { margin-top: 16px; font-size: clamp(17px, 1.8vw, 19px); line-height: 1.6; }

/* czipy w wariancie ciemnym: sama pigulka jak .chips, ale na ciemnym tle karty i z kropka zamiast ikony */
.chips--dark li { background: rgba(253,248,242,0.06); box-shadow: inset 0 0 0 1px rgba(253,248,242,0.14); color: var(--parchment); }
.chips--dark li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--m-prep); flex: none; }

/* szescioro etapow: naprzemiennie tekst/telefony, potem odwrotnie — na telefonie zawsze tekst nad telefonami */
.prep-rows { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-direction: column; gap: 72px; }
.prep-row { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.prep-row-copy { width: 100%; max-width: 46ch; }
.prep-row-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.prep-row-no { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--m-prep); color: var(--parchment); font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.prep-row-label { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--m-prep); margin: 0; }
.prep-row h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--parchment); margin-bottom: 12px; text-wrap: balance; }
.prep-row p { font-size: 17px; }

/* dwa nachodzace telefony: tylni i przedni, przesuniety w prawo i w dol — kontener przycina, zeby
   skalowanie/paralaksa telefonow nigdy nie odslonily krawedzi ani nie wywolaly przewijania w poziomie */
.prep-row-visual { display: flex; justify-content: center; width: 100%; }
/* Bez przycinania: obrócony tylny telefon wystaje poza kontener o kilkanaście pikseli i przycięcie ucinało mu rogi.
   overflow-clip-margin nie działa w Safari, więc kontener jest po prostu widoczny; poziomego przewijania pilnuje body.home (overflow-x: clip). */
.prep-row-phones { --rpw: min(44vw, 180px); position: relative; width: calc(var(--rpw) * 1.55); height: calc(var(--rpw) * 2.3 + 60px); margin-inline: auto; overflow: visible; }
.prep-row-phones .phone { --pw: var(--rpw); }
.prep-row-phone { position: absolute; top: 0; left: 0; }
.prep-row-phone--back { rotate: -4deg; }
.prep-row-phone--front { z-index: 1; rotate: 3deg; top: 40px; left: calc(var(--rpw) * 0.45); }

.prep-link { margin-top: 40px; }
.prep-link a { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 15px; color: var(--m-prep); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .prep-row { flex-direction: row; align-items: center; gap: 64px; text-align: left; }
  .prep-row:nth-child(even) { flex-direction: row-reverse; }
  .prep-row-copy { flex: 1; max-width: 46ch; }
  .prep-row-visual { flex: none; width: auto; }
  .prep-row-phones { --rpw: 210px; margin-inline: 0; }
}

/* ---------- 4c. w środku: pozioma taśma telefonów z pełnymi zrzutami ---------- */
.inside { background: var(--parchment); z-index: 5; }
.inside-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.inside-strip { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; margin-inline: -24px; padding: 8px 24px 28px; scrollbar-width: none; }
.inside-strip::-webkit-scrollbar { display: none; }
.inside-item { flex: 0 0 auto; scroll-snap-align: start; text-align: center; }
.inside-item .phone { --pw: min(62vw, 230px); margin-inline: auto; }
/* figcaption jest rodzeństwem .phone, nie potomkiem — --pw z .phone tu nie dotrze,
   dlatego szerokość podpisu liczymy tym samym wzorem wprost */
.inside-item figcaption { margin-top: 18px; max-width: min(62vw, 230px); margin-inline: auto; }
.inside-item h3 { font-size: 18px; color: var(--ink); }
.inside-item p { font-size: 15px; color: var(--body); margin-top: 6px; }
.inside-item .tag { display: inline-block; margin-top: 10px; font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 12px; color: var(--o); background: var(--o-lo); padding: 4px 10px; border-radius: 100px; }
@media (min-width: 900px) {
  /* struktura taśmy działa też dla 5-6 elementów: przy przepełnieniu wraca poziome przewijanie,
     "safe center" pilnuje, żeby pierwszy element nie stał się nieosiągalny przy centrowaniu */
  .inside-strip { justify-content: center; justify-content: safe center; gap: 40px; }
  /* 7 elementow nie miesci sie w rzedzie: dyskretne wygaszenie prawej krawedzi podpowiada przewijanie */
  .inside-strip { mask-image: linear-gradient(to right, #000 92%, transparent 100%); -webkit-mask-image: linear-gradient(to right, #000 92%, transparent 100%); }
}

/* ---------- 5. zna Cię: ciemne pasmo ---------- */
.knows { background: var(--ink); color: rgba(253,248,242,0.72); z-index: 6; }
.knows h2 { color: var(--parchment); max-width: 18ch; }
.knows-grid { display: grid; gap: 48px; align-items: center; }
.checks { margin-top: 36px; }
.check { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; padding: 26px 0; border-top: 1px solid rgba(253,248,242,0.12); }
.check:last-child { border-bottom: 1px solid rgba(253,248,242,0.12); }
.check h3 { font-size: 21px; line-height: 1.2; color: var(--parchment); margin-bottom: 8px; }
.check p { font-size: 16px; max-width: 52ch; }
.dish { margin: 0; overflow: hidden; border-radius: 28px; }
.dish img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 28px; }
.dish figcaption { margin-top: 16px; font-size: 15px; color: rgba(253,248,242,0.6); }
.dish-name { display: block; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; color: var(--parchment); margin-bottom: 4px; }
@media (min-width: 900px) { .knows-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 80px; } }

/* ---------- 6. oferta ---------- */
.offer { background: var(--parchment); z-index: 7; }
.offer-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.plans { display: grid; gap: 16px; }
.plan { border-radius: 28px; padding: 32px; background: var(--parchment-mid); }
.plan--premium { background: var(--o-lo); box-shadow: inset 0 0 0 1.5px rgba(255,107,53,0.28); }
.plan h3 { display: flex; align-items: center; gap: 12px; font-size: 26px; color: var(--ink); margin-bottom: 20px; }
.plan li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.55; color: var(--ink); }
.plan li::before { content: ''; position: absolute; left: 0; top: 23px; width: 10px; height: 2px; border-radius: 2px; background: var(--o); }
.plan li small { display: block; font-size: 14px; color: var(--body); }
.offer-notes { margin-top: 32px; max-width: 72ch; font-size: 15px; }
.offer-notes p + p { margin-top: 12px; }
.offer-notes a { font-weight: 500; }
.offer-notes .fine { color: var(--muted); font-size: 14px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan { padding: 40px; } }

/* ---------- 6b. FAQ: pytania, czyste details/summary, bez JS ---------- */
/* tlo takie samo jak w .offer przed nia: bez wlasnego cienia rounded top bylby niewidoczny */
.faq { background: var(--parchment); z-index: 8; box-shadow: 0 -18px 40px -28px rgba(17,17,24,0.18); }
.faq-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.faq-list { max-width: 800px; }
.faq-item { border-top: 1px solid var(--rule); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: clamp(18px, 2vw, 20px); color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 14px; font-size: 16px; color: var(--body); max-width: 68ch; }
/* znacznik +/-: dwa paski nakladajace sie na krzyz, pionowy obraca sie o 90deg na [open] i zlewa z poziomym w minus */
.faq-toggle { position: relative; width: 20px; height: 20px; flex: none; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; top: 50%; left: 50%; background: var(--o); border-radius: 2px; }
.faq-toggle::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-toggle::after { width: 2px; height: 14px; transform: translate(-50%, -50%); transition: transform 0.25s ease; }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }

/* ---------- 7. od autora: inny głos, więc inna forma — list, nie sekcja produktu ---------- */
.maker { background: var(--parchment-mid); z-index: 9; }
.maker .wrap { max-width: 920px; }
.maker-copy { max-width: 720px; }
.maker h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 22px; }
.maker-label { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 18px; }
.maker p.letter { font-size: clamp(18px, 1.9vw, 20px); line-height: 1.7; color: var(--ink); }
.maker .letter + .letter { margin-top: 18px; }
.maker .sign { margin-top: 22px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px; color: var(--ink); }
.maker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.maker-tile { background: var(--parchment); border-radius: 20px; padding: 22px; }
.maker-tile h3 { font-size: 17px; margin: 14px 0 6px; }
.maker-tile p { font-size: 15px; color: var(--body); }
@media (min-width: 760px) { .maker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 8. zamknięcie ----------
   .get, .closing i stopka nie sa .band (bez wlasnego arkusza), wiec bez wlasnego tla
   przeswiecalby przez nie przyklejony .hero (position: sticky, z-index: 0) na samym
   dole strony. Kazdy z nich dostaje nieprzezroczyste tlo i z-index wyzszy niz ostatni
   arkusz (.maker, 9). Stopka ma max-width 1120px (linia nizej) — trik pelnej szerokosci
   (box-shadow + clip-path) rozciaga jej tlo na cala szerokosc okna, bez poziomego
   przewijania (body.home ma juz overflow-x: clip). */
.get { padding-block: clamp(56px, 8vw, 96px) 0; position: relative; z-index: 10; background: var(--parchment); }
.get-panel { background: var(--ink); border-radius: 32px; padding: clamp(40px, 7vw, 88px) clamp(28px, 6vw, 80px); color: rgba(253,248,242,0.72); }
.get-panel h2 { color: var(--parchment); font-size: clamp(36px, 6vw, 68px); line-height: 1.02; margin-bottom: 8px; }
.get-panel h2 span { display: block; color: var(--o); }
.get-panel .store-btn.is-soon { background: transparent; color: rgba(253,248,242,0.55); box-shadow: inset 0 0 0 1.5px rgba(253,248,242,0.22); }
.get-panel .soon-tag { background: rgba(255,107,53,0.16); color: var(--o-hi); }
.get-panel .stores-note { color: rgba(253,248,242,0.55); }
.get-panel .stores-note a { color: rgba(253,248,242,0.8); }

.modes .stores-note { margin-top: 28px; }

.closing { padding-block: 40px clamp(64px, 8vw, 96px); position: relative; z-index: 10; background: var(--parchment); }
.closing .note { max-width: 760px; background: rgba(255,107,53,0.06); border-left: 3px solid var(--o); border-radius: 0 12px 12px 0; padding: 20px 24px; font-size: 15px; }

.home footer { max-width: 1120px; position: relative; z-index: 10; background: var(--parchment); box-shadow: 0 0 0 100vmax var(--parchment); clip-path: inset(0 -100vmax); }
.footer-brand small { display: block; font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- ruch: wyłącznie dla tych, którzy go nie wyłączyli ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .phone { animation: settle 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-visual .plate { animation: plate-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; animation-delay: calc(var(--i, 0) * 80ms); }
    /* paralaksa na translate (osobnej od transform) przy tacos i w telefonach Meal Prep —
       telefony maja tez rotate (osobna wlasciwosc od translate), wiec animacje sie nie gryza */
    .knows .dish img, .prep-row-phone {
      animation: parallax-y linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    /* karta AI Chef: zdjecie-tlo jest wieksze niz jego okno (scale 1.06) i lekko dryfuje w pionie —
       .mode-photo ma overflow:hidden, wiec ruch nigdy nie odslania krawedzi */
    .mode-photo img {
      animation: chef-photo-drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    /* talerz w hero ma juz animacje wejscia plate-in (ponizej, poza @supports) — tutaj dokladamy DRUGA
       animacje w tej samej regule (przecinek), zeby "animation" jednej nie nadpisalo drugiej */
    .hero-visual .plate {
      animation: plate-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both, parallax-y linear both;
      animation-timeline: auto, view();
      animation-range: normal, cover;
    }
  }
  /* ikony w odznakach: delikatny ruch na hover, subtelnie i krótko */
  .ico svg { transition: transform 0.5s ease; }
  .ico[data-spin="repeat"]:hover svg { transform: rotate(180deg); }
  .ico[data-spin="tick"]:hover svg { animation: tick 0.6s ease 1; }
}
@keyframes settle { from { opacity: 0; transform: translateX(-9%) translateY(28px); } to { opacity: 1; transform: translateX(-9%); } }
@keyframes plate-in { from { opacity: 0; transform: translate(-16%, -62%) scale(0.94) rotate(-8deg); } to { opacity: 1; transform: translate(-16%, -62%); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes tick { 0% { transform: rotate(0); } 35% { transform: rotate(20deg); } 65% { transform: rotate(-8deg); } 100% { transform: rotate(0); } }
@keyframes parallax-y { from { translate: 0 -24px; } to { translate: 0 24px; } }
@keyframes chef-photo-drift { from { scale: 1.06; translate: 0 -16px; } to { scale: 1.06; translate: 0 16px; } }

/* zapasowe wejście .rise dla przeglądarek bez animation-timeline: view() (home.js dodaje html.io-rise) */
html.io-rise .rise { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease calc(var(--i, 0) * 80ms), transform 0.6s ease calc(var(--i, 0) * 80ms); }
html.io-rise .rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone .screens img { transition: none; }
}

/* Ikona aplikacji jako znak marki (MKT-4): ta sama ikona co w sklepie i na ekranie telefonu */
.nav-brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-word { font-weight: inherit; }
.brand-icon { width: 28px; height: 28px; border-radius: 22%; flex: none; }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-brand small { flex-basis: 100%; }
.get-icon { display: block; width: 72px; height: 72px; border-radius: 22%; margin-bottom: 20px; box-shadow: 0 0 0 1px rgba(253,248,242,0.12); }
