[hidden] { display: none !important; }
@font-face { font-family: Geist; src: url(/assets/fonts/Geist-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/assets/fonts/GeistMono-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

/*
  Kierunek: szarości, miękko. Ciepłe szarości zamiast czystych, duże promienie,
  zamiast twardych ramek delikatny cień i tło o pół tonu jaśniejsze.
  Stany (cała aplikacja): zieleń = pozytywne, żółty = ostrzeżenie, błękit = informacja,
  czerwień = negatywne. Zawsze delikatnie, jako rozmyta poświata, nie pełna plama.
  Na landingu używane: zieleń (zrobione, cel) i czerwień (błąd formularza).
*/
:root {
  --bg: #f5f4f1; --surface: #fcfbf9; --text: #222120; --muted: #75726d; --line: #e6e3de; --soft: #eeece8;
  --ink: #2a2927; --on-ink: #fcfbf9;
  --shadow: 0 1px 2px rgba(60, 50, 40, .05), 0 12px 32px -12px rgba(60, 50, 40, .14);
  --ok: #4fa77a;   --ok-soft: rgba(79, 167, 122, .16);
  --warn: #d9a93c; --warn-soft: rgba(217, 169, 60, .18);
  --info: #5b9bd5; --info-soft: rgba(91, 155, 213, .16);
  --bad: #d4675e;  --bad-soft: rgba(212, 103, 94, .14);
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514; --surface: #1f1e1c; --text: #ecebe8; --muted: #9d9a95; --line: #2e2d2a; --soft: #282724;
    --ink: #ecebe8; --on-ink: #1a1918;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    --ok: #6cc597; --ok-soft: rgba(108, 197, 151, .16);
    --warn: #e6bd5c; --warn-soft: rgba(230, 189, 92, .16);
    --info: #7db4e6; --info-soft: rgba(125, 180, 230, .16);
    --bad: #e8877f; --bad-soft: rgba(232, 135, 127, .16);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line); }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }

.top { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.top-nav { display: flex; align-items: center; gap: 18px; }
.top a.lang-switch { color: var(--muted); text-decoration: none; }
.top a.lang-switch:hover { color: var(--text); }
.logo { font-weight: 560; text-decoration: none; letter-spacing: -0.015em; }

.hero { display: grid; gap: 40px; padding-top: 24px; padding-bottom: 64px; align-items: center; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 56px; padding-bottom: 96px; } }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 16px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 580; text-wrap: balance; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; text-wrap: pretty; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 540 16px Geist, sans-serif; text-decoration: none; cursor: pointer; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.3,.7,.4,1), opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }

/* Makieta ekranu: 4 sceny w jednym miejscu, przełączane klasą is-active */
.phone { margin: 0 auto; width: 100%; max-width: 340px; position: relative; }
/* Rozmyta poświata za makietą: radial-gradient, bez filter: blur (tanie na słabszych telefonach) */
.phone::before { content: ''; position: absolute; inset: -12% -18%; z-index: -1; background: radial-gradient(closest-side, var(--ok-soft), transparent 70%); }
.screen { background: var(--surface); border-radius: 36px; padding: 22px 20px; display: grid; gap: 14px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.stage { display: grid; min-height: 340px; }
.scene { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .45s ease, transform .45s cubic-bezier(.3,.7,.4,1), visibility 0s .45s; }
.scene.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ex-name { font-size: 24px; font-weight: 560; letter-spacing: -0.02em; line-height: 1.15; }
.cue { margin: 0; color: var(--muted); font-size: 14px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tiles div { background: var(--soft); border-radius: var(--r-sm); padding: 10px 12px; display: grid; }
.tiles .v { font-size: 24px; font-weight: 500; line-height: 1.2; }
.dots { display: flex; gap: 8px; }
.dots span { flex: 1; height: 8px; border-radius: 8px; background: var(--soft); transition: background .4s, box-shadow .4s; }
.dots .is-done { background: var(--ok); box-shadow: 0 0 10px 1px var(--ok-soft); }
.dots .is-now { background: var(--line); }
.done-btn { margin-top: auto; display: grid; place-items: center; min-height: 50px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 540; transition: transform .2s, opacity .3s; }
.done-btn.is-pressed { transform: scale(.96); opacity: .7; }
.ask { background: var(--soft); border-radius: var(--r-md); padding: 14px; display: grid; gap: 12px; font-weight: 500; }
.picks { display: grid; gap: 6px; }
.adapt { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line), 0 0 24px 2px var(--ok-soft); opacity: 0; transform: translateY(4px); transition: opacity .5s ease, transform .5s cubic-bezier(.3,.7,.4,1); }
.adapt.is-shown { opacity: 1; transform: none; }
.adapt-row { display: flex; gap: 12px; align-items: baseline; font-size: 24px; }
.adapt-row s { font-size: 16px; }
.picks span { display: grid; place-items: center; text-align: center; min-height: 42px; padding: 0 4px; font-size: 14px; border-radius: var(--r-sm); background: var(--surface); transition: background .3s, box-shadow .3s; }
.picks span.is-pick { box-shadow: inset 0 0 0 1.5px var(--text), 0 0 14px 2px var(--ok-soft); }
.next { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line); }
.next-name { font-weight: 560; }
.steps-nav { display: flex; justify-content: center; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.steps-nav button { font: 12px 'Geist Mono', monospace; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; min-height: 32px; }
.steps-nav button[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* Korzyści */
.benefits { display: grid; gap: 12px; padding-bottom: 80px; }
@media (min-width: 820px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.card { background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.card h2 { font-size: 20px; font-weight: 560; letter-spacing: -0.015em; margin: 10px 0 6px; }
.card p { margin: 0; color: var(--muted); }

.split { display: grid; gap: 32px; padding-bottom: 80px; align-items: start; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.h2 { font-size: 30px; letter-spacing: -0.025em; margin: 0 0 20px; font-weight: 580; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.steps h3 { margin: 6px 0 4px; font-size: 18px; font-weight: 560; }
.steps p { margin: 0; color: var(--muted); }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 14px; }

.forecast { background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.forecast::before { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(closest-side, var(--ok-soft), transparent 75%); pointer-events: none; }
.fc-goal { font-size: 22px; font-weight: 560; letter-spacing: -0.02em; margin: 6px 0 10px; }
.fc-svg { width: 100%; height: auto; display: block; overflow: visible; }
.fc-axis { stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; }
.fc-axis.dashed { stroke-dasharray: 2 6; }
.fc-done { fill: none; stroke: var(--text); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.fc-plan { fill: none; stroke: var(--muted); stroke-width: 3.5; stroke-dasharray: 1 8; stroke-linecap: round; }
.fc-dot { fill: var(--ok); stroke: var(--ok-soft); stroke-width: 10; }
.fc-pt { fill: var(--text); opacity: .3; }
.fc-now { fill: var(--text); }
.fc-lbl { font: 11px 'Geist Mono', ui-monospace, monospace; fill: var(--muted); }
[data-fc-eta] { font-variant-numeric: tabular-nums; }
.forecast p { margin: 12px 0 0; }

/* Formularz */
#zapis { padding-bottom: 80px; scroll-margin-top: 16px; }
.signup, .done { background: var(--surface); border-radius: var(--r-lg); padding: 28px 20px; max-width: 560px; margin: 0 auto; display: grid; gap: 22px; box-shadow: var(--shadow); }
.signup .h2, .done .h2 { margin: 0; }
.signup > p { margin: -12px 0 0; }
.field { display: grid; gap: 8px; font-weight: 500; }
input[type=email], input[type=text] { width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--soft); color: var(--text); font: 17px Geist, sans-serif; transition: box-shadow .2s, background .2s; }
input[type=email]:focus, input[type=text]:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--muted); }
.chip input:focus-visible + span, .btn:focus-visible, .consent input:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
legend { font-weight: 500; padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.col { display: grid; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: flex; align-items: center; min-height: 46px; padding: 0 18px; background: var(--soft); border-radius: var(--r-sm); cursor: pointer; transition: background .25s, box-shadow .25s; }
.chip input:checked + span { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--text), 0 6px 16px -10px rgba(60, 50, 40, .3); font-weight: 500; }
.chip input:disabled + span { opacity: .45; cursor: default; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.msg { margin: 0; min-height: 1.2em; font-size: 15px; border-radius: var(--r-sm); }
.msg.is-err { color: var(--text); background: var(--bad-soft); padding: 12px 14px; }
.done { text-align: center; justify-items: center; }
.done svg { width: 64px; height: 64px; fill: var(--ok-soft); stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.foot { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 40px; }
.foot p { margin: 0 0 6px; }
.prose { max-width: 680px; padding-bottom: 48px; }
.prose h1 { font-size: 36px; }
.prose h2 { font-size: 20px; font-weight: 560; margin: 28px 0 6px; }

/* Motion: tylko gdy użytkownik nie prosi o ograniczenie ruchu */
@media (prefers-reduced-motion: no-preference) {
  .done:not([hidden]) svg circle { stroke-dasharray: 132; stroke-dashoffset: 132; animation: draw .6s ease-out forwards; }
  .done:not([hidden]) svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .45s ease-out forwards; }
  .fc-dot { animation: breathe 3.6s ease-in-out infinite; }
  @keyframes breathe { 50% { stroke-width: 14; } }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } .scene { transform: none; } }
.food { margin: 20px 0 0; max-width: 46ch; }
legend .muted { font-weight: 400; }
.scale { display: grid; gap: 6px; }
.xsmall { font-size: 11px; }
.picks.tight { gap: 3px; }
.picks.tight span { min-height: 34px; padding: 0; font-size: 12px; }
.scale .val { display: flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: var(--r-sm); background: var(--surface); font-size: 15px; }
.today { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.today li { display: grid; gap: 1px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--soft); opacity: 0; transform: translateY(4px); transition: opacity .4s ease, transform .4s cubic-bezier(.3,.7,.4,1); }
.today li.is-in { opacity: 1; transform: none; }
.next { transition: opacity .5s ease; }
.next:not(.is-shown) { opacity: 0; }

/* ===== Wygląd (dawne v2, od 11.11.2026 jedyna wersja): nadpisuje bazę powyżej ===== */
/*
  v2: mniej „szablonu z AI”, bliżej referencji (ręczna animacja, światło jako atmosfera).
  Nakłada się na style.css. Makieta ekranu zostaje w Geist, bo to aplikacja.
  - nagłówki: Fraunces z osią SOFT (miękkie zakończenia) i lekką nieregularnością WONK
  - tło: duże rozmyte plamy ciepłego światła + ziarno papieru (statyczne, bez animacji)
  - paleta: piasek, ziemia, zgaszona zieleń zamiast neutralnych szarości UI
  - bez etykiety mono nad nagłówkiem, bez kart 01/02/03, bez kółek przy krokach
*/
@font-face { font-family: Fraunces; src: url(/assets/fonts/Fraunces-latin-ext.woff2) format('woff2'); font-weight: 400 600; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Fraunces; src: url(/assets/fonts/Fraunces-latin.woff2) format('woff2'); font-weight: 400 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ece5d8; --surface: rgba(252, 248, 240, .72); --text: #2b2620; --muted: #6e665a; --line: rgba(80, 64, 44, .14); --soft: rgba(120, 100, 70, .08);
  --ink: #2f2a23; --on-ink: #f7f2e8;
  --shadow: none;
  --glow-a: rgba(236, 196, 140, .55);  /* ciepłe słońce */
  --glow-b: rgba(150, 170, 120, .30);  /* zgaszona zieleń */
  --glow-c: rgba(210, 160, 130, .28);  /* glina */
  --serif: Fraunces, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1814; --surface: rgba(44, 39, 33, .62); --text: #eee6d8; --muted: #a89e8e; --line: rgba(238, 220, 190, .12); --soft: rgba(238, 220, 190, .06);
    --ink: #eee6d8; --on-ink: #1b1814;
    --glow-a: rgba(190, 140, 80, .22); --glow-b: rgba(110, 140, 100, .18); --glow-c: rgba(170, 110, 90, .16);
  }
}

/* Atmosfera: plamy światła i ziarno. Jedno tło na body, bez fixed (tanie na telefonach). */
body {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(60vmax 40vmax at 85% 8%, var(--glow-a), transparent 70%),
    radial-gradient(50vmax 45vmax at 0% 45%, var(--glow-b), transparent 70%),
    radial-gradient(55vmax 40vmax at 100% 85%, var(--glow-c), transparent 70%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
}

/* Typografia */
h1, .h2, .card h2, .steps h3, .logo, .fc-goal, .done .h2 {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  letter-spacing: -0.015em;
}
h1 { font-weight: 420; font-size: clamp(38px, 7vw, 66px); line-height: 1.04; font-optical-sizing: auto; }
.h2 { font-weight: 440; font-size: 34px; }
.logo { font-weight: 520; font-size: 20px; }
.lead { color: var(--muted); }
.top a.mono { font-family: Geist, system-ui, sans-serif; font-size: 15px; letter-spacing: 0; }

/* Mniej szablonu */
.eyebrow { display: none; }
.btn { border-radius: 16px; box-shadow: none; font-weight: 500; }
.phone::before { display: none; }
.screen { background: rgba(252, 248, 240, .9); box-shadow: 0 1px 0 rgba(80, 64, 44, .08), 0 30px 60px -30px rgba(70, 50, 30, .35); }
@media (prefers-color-scheme: dark) { .screen { background: rgba(36, 32, 27, .92); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); } }
.steps-nav button[aria-current="true"] { box-shadow: none; background: var(--soft); }

/* Korzyści jako tekst w rytmie redakcyjnym, nie trzy karty z numerami */
.benefits { gap: 28px; }
@media (min-width: 820px) { .benefits { gap: 48px; } }
.card { background: none; box-shadow: none; border-radius: 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.card > .mono { display: none; }
.card h2 { font-size: 26px; font-weight: 450; margin: 0 0 8px; line-height: 1.15; }
.card p { font-size: 17px; }

/* Kroki: cyfra w kroju nagłówków zamiast kółka */
.num { background: none; box-shadow: none; width: auto; height: auto; display: block; font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 34px; line-height: 1; color: var(--muted); }
.steps li { grid-template-columns: 34px 1fr; }
.steps h3 { font-size: 21px; font-weight: 480; margin-top: 2px; }

/* Prognoza i formularz: papier zamiast karty z cieniem */
.forecast, .signup, .done { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.forecast::before { display: none; }
.chip span, input[type=email], input[type=text] { background: rgba(120, 100, 70, .07); }
.chip input:checked + span { box-shadow: inset 0 0 0 1.5px var(--text); background: var(--surface); }
.foot { border-top-color: var(--line); }
