/* Lejek /start-plan: jedno pytanie na ekran (makiety WWW-Plan-*). Tokeny i przyciski z /style.css. */

body.lejek { min-height: 100svh; display: flex; flex-direction: column; }
.lejek .ikona { width: 22px; height: 22px; }

.lejek-gora {
	position: sticky;
	top: 0;
	z-index: 10;
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: center;
	gap: 12px;
	width: min(560px, 100%);
	margin: 0 auto;
	padding: 10px var(--gutter);
	background: var(--paper);
}
.lejek-gora[hidden] { display: none; }
.lejek-wstecz {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.lejek-wstecz:hover { background: var(--paper-sunken); }
.lejek-wstecz[disabled] { visibility: hidden; }
.lejek-postep { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.lejek-postep span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--atrament); transition: width 300ms ease; }
.lejek-licznik { min-width: 52px; text-align: right; font-weight: 700; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.lejek-ekran {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: min(560px, 100%);
	margin: 0 auto;
	padding: 12px var(--gutter) 24px;
	outline: none;
}
.lejek-ekran > * { animation: wejscie 260ms ease-out; }
@keyframes wejscie { from { opacity: 0; transform: translateY(8px); } }

.krok-tytul { font-weight: 800; font-size: clamp(28px, 7vw, 34px); line-height: 1.1; letter-spacing: -0.03em; margin: 8px 0 8px; }
.krok-opis { color: var(--ink-muted); font-size: 17px; margin-bottom: 24px; }
.krok-etykieta { font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--atrament); margin-top: 8px; }

.opcje { display: flex; flex-direction: column; gap: 10px; }
.opcje-siatka { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcja {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 60px;
	padding: 14px 16px;
	border: 0;
	border-radius: 16px;
	background: var(--paper-raised);
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--ink);
	font: 600 17px/1.3 var(--font-display);
	text-align: left;
	cursor: pointer;
	transition: box-shadow 120ms ease, background-color 120ms ease;
}
.opcja:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.opcja[aria-pressed='true'], .opcja[aria-checked='true'] { background: var(--atrament-soft); box-shadow: inset 0 0 0 2px var(--atrament); }
.opcja-tekst { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.opcja-tekst small { font-weight: 400; font-size: 14px; color: var(--ink-muted); }
.opcja-znacznik {
	flex: none;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 7px;
	box-shadow: inset 0 0 0 1.5px var(--line-strong);
	color: transparent;
}
.opcja[aria-pressed='true'] .opcja-znacznik, .opcja[aria-checked='true'] .opcja-znacznik { background: var(--atrament); box-shadow: none; color: var(--on-atrament); }
.opcja-znacznik svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.opcja[role='radio'] .opcja-znacznik { border-radius: 50%; }
.opcja-plakietka { flex: none; padding: 3px 8px; border-radius: 999px; background: var(--paper-sunken); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-muted); }
.opcja-ikona { flex: none; font-size: 22px; width: 28px; text-align: center; }

.chipy-tematy { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--paper-raised);
	box-shadow: inset 0 0 0 1px var(--line-strong);
	color: var(--ink);
	font: 600 15px/1 var(--font-display);
	cursor: pointer;
}
.chip[aria-pressed='true'] { background: var(--atrament-soft); box-shadow: inset 0 0 0 2px var(--atrament); }
.chip svg { width: 16px; height: 16px; fill: none; stroke: var(--atrament); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.grupa-tematow { margin-bottom: 18px; }
.grupa-tematow h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }

.dol {
	position: sticky;
	bottom: 0;
	margin-top: auto;
	padding: 16px 0 calc(8px + env(safe-area-inset-bottom));
	background: linear-gradient(transparent, var(--paper) 30%);
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
}
.dol .btn { width: 100%; }
.btn[disabled] { background: var(--line); color: var(--ink-muted); box-shadow: none; cursor: default; transform: none; }
.dol-nota { text-align: center; font-size: 14px; color: var(--ink-muted); }

/* Start */
.start { padding-top: 8px; text-align: center; align-items: center; }
.start .logo { margin: 8px auto 20px; }
.start-tytul { font-weight: 800; font-size: clamp(36px, 10vw, 48px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 14px; }
.start-tytul em { display: block; font-family: var(--font-reading); font-style: italic; font-weight: 600; font-size: 0.88em; color: var(--atrament); margin-top: 4px; }
.start-lead { color: var(--ink-muted); font-size: 18px; margin-bottom: 22px; }
.puenta-karta {
	width: 100%;
	padding: 18px 20px;
	border-radius: 8px;
	background: var(--paper-raised);
	box-shadow: inset 0 0 0 1px var(--line);
	text-align: left;
	margin-bottom: 22px;
}
.puenta-karta .etykiety { display: flex; justify-content: space-between; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.puenta-karta .moral { font-family: var(--font-reading); font-style: italic; font-weight: 600; font-size: 19px; line-height: 1.5; }
.puenta-karta .moral span { background: var(--zakreslacz); color: var(--on-zakreslacz); border-radius: 3px; padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.puenta-karta .podpis { margin-top: 10px; font-size: 14px; color: var(--ink-muted); }
.atuty-lejka { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; margin-bottom: 8px; }
.atuty-lejka li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.atuty-lejka svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--atrament); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Reakcja */
.reakcja { justify-content: center; text-align: center; align-items: center; }
.reakcja .dol, .start .dol { align-self: stretch; }
.reakcja-sowa { width: auto; height: 110px; margin: 12px auto 20px; }
.reakcja .krok-tytul { margin-top: 0; }
.reakcja-liczba { font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.03em; color: var(--atrament); margin: 8px 0 6px; }
.reakcja-ramka { width: 100%; padding: 16px 18px; border-radius: 16px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); text-align: left; margin-top: 18px; }

/* Karta treści */
.tresc-karta { border-radius: 20px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tresc-plakat { position: relative; aspect-ratio: 16 / 10; background: #0a0e1d center / cover no-repeat; }
.tresc-plakat .znak { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 14, 29, 0.75); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.tresc-ciało { padding: 18px 20px 20px; }
.tresc-ciało .etykiety { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.tresc-ciało h2 { font-weight: 700; font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 8px; }
.tresc-ciało p { font-family: var(--font-reading); font-size: 16px; line-height: 1.55; color: var(--ink-muted); }
.tresc-zrodlo { margin-top: 10px; font-size: 13px !important; font-family: var(--font-display) !important; }
.para-przyciskow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.para-przyciskow .btn { width: 100%; padding: 0 12px; }

/* Zadanie IQ */
.iq-matryca { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(300px, 100%); margin: 4px auto 22px; }
.iq-matryca > span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.iq-matryca svg, .iq-odp svg { width: 64%; height: 64%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.iq-matryca .pelna, .iq-odp .pelna { fill: currentColor; stroke: none; }
.iq-matryca .pytajnik { box-shadow: none; outline: 2px dashed var(--atrament); outline-offset: -2px; color: var(--atrament); font-weight: 800; font-size: 28px; }
.iq-odpowiedzi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.iq-odp { display: grid; place-items: center; aspect-ratio: 1; border: 0; border-radius: 12px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); cursor: pointer; }
.iq-odp[aria-pressed='true'] { background: var(--atrament-soft); box-shadow: inset 0 0 0 2px var(--atrament); }
.iq-odp.dobra { box-shadow: inset 0 0 0 3px var(--pamietam); }

/* Układamy */
.ukladamy { justify-content: center; }
.ukladamy-lista { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.ukladamy-lista li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--ink-muted); transition: color 200ms; }
.ukladamy-lista li.gotowe { color: var(--ink); }
.ukladamy-lista .kolko { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); }
.ukladamy-lista li.gotowe .kolko { background: var(--atrament); box-shadow: none; color: var(--on-atrament); }
.ukladamy-lista svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* E-mail */
.pole-lejka { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pole-lejka label { font-weight: 600; }
.pole-lejka input[type='email'] { min-height: 56px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font: 400 18px/1.4 var(--font-display); }
.pole-lejka input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.podpowiedz { padding: 12px 14px; border-radius: 12px; background: var(--atrament-soft); font-size: 15px; }
.podpowiedz button { border: 0; background: none; color: var(--atrament); font: 700 15px var(--font-display); text-decoration: underline; cursor: pointer; padding: 0; }
.blad-lejka { color: var(--nie-pamietam); font-weight: 600; font-size: 15px; }
.zgoda { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.zgoda input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--atrament); }

/* Plan */
.plan-dni { display: flex; flex-direction: column; border-radius: 16px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin-bottom: 16px; }
.plan-dni li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.plan-dni li:last-child { border-bottom: 0; }
.plan-dni b { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--atrament); padding-top: 2px; }
.plan-dni span { font-weight: 600; line-height: 1.35; }
.plan-dni small { display: block; font-weight: 400; color: var(--ink-muted); font-size: 14px; margin-top: 2px; }

/* Paywall */
.plany-lejka { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.plan-kafel { position: relative; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-family: var(--font-display); text-align: left; cursor: pointer; }
.plan-kafel[aria-checked='true'] { background: var(--atrament-soft); box-shadow: inset 0 0 0 2px var(--atrament); }
.plan-kropka { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.plan-kafel[aria-checked='true'] .plan-kropka { box-shadow: inset 0 0 0 6px var(--atrament); background: var(--paper-raised); }
.plan-nazwa { font-weight: 700; font-size: 18px; }
.plan-nazwa small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-muted); margin-top: 2px; }
.plan-cena { text-align: right; font-weight: 800; font-size: 18px; white-space: nowrap; }
.plan-cena small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-muted); }
.plan-znaczek { position: absolute; top: -9px; right: 14px; padding: 3px 9px; border-radius: 999px; background: var(--atrament); color: var(--on-atrament); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.os-proby { display: flex; flex-direction: column; gap: 0; margin: 4px 0 18px; padding-left: 4px; }
.os-proby li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 14px; }
.os-proby li::before { content: ''; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.os-proby li:last-child::before { display: none; }
.os-proby i { width: 22px; height: 22px; border-radius: 50%; background: var(--paper-raised); box-shadow: inset 0 0 0 2px var(--atrament); }
.os-proby li:first-child i { background: var(--atrament); }
.os-proby b { display: block; }
.os-proby span { color: var(--ink-muted); font-size: 15px; }
.zaufanie { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.zaufanie li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.zaufanie svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--atrament); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.drobny-druk { font-size: 13px; line-height: 1.5; color: var(--ink-muted); text-align: center; }

/* Płatność */
.podsumowanie { padding: 16px 18px; border-radius: 16px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 16px; }
.podsumowanie .wiersz { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.podsumowanie .wiersz + .wiersz { margin-top: 6px; color: var(--ink-muted); font-size: 15px; }
.podsumowanie strong { font-size: 20px; }
.platnosc-element { min-height: 120px; padding: 4px 0 8px; margin-bottom: 12px; }
.zgody { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.atrapa { padding: 14px 16px; border-radius: 12px; outline: 2px dashed var(--line-strong); outline-offset: -2px; font-size: 14px; color: var(--ink-muted); margin-bottom: 12px; }

/* Gotowe */
.kroki-po { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.kroki-po li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px; border-radius: 16px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); }
.kroki-po .nr { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--atrament); color: var(--on-atrament); font-weight: 800; }
.kroki-po h3 { font-size: 18px; margin-bottom: 4px; }
.kroki-po p { color: var(--ink-muted); font-size: 15px; }
.kroki-po .sklepy { justify-content: flex-start; margin-top: 10px; }

.lejek-stopka { padding: 18px var(--gutter) 28px; text-align: center; font-size: 13px; color: var(--ink-muted); }
.lejek-stopka a { color: var(--ink-muted); }
.lejek-uwaga { padding: 24px; }

@media (prefers-reduced-motion: reduce) {
	.lejek-ekran > * { animation: none; }
	.lejek-postep span { transition: none; }
}
