/* Winergo — style główne. */
/* Kroje marki (księga marki §4): Inter Tight 600 — nagłówki, Inter 400/500 — tekst. */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-400-latin-ext.woff2") format("woff2");
	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: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-400-latin.woff2") format("woff2");
	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;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/inter-500-latin-ext.woff2") format("woff2");
	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: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/inter-500-latin.woff2") format("woff2");
	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;
}
@font-face {
	font-family: "Inter Tight";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/inter-tight-600-latin-ext.woff2") format("woff2");
	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: "Inter Tight";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/inter-tight-600-latin.woff2") format("woff2");
	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;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 1rem); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #ffffff; color: #18191b; font-family: var(--font-body); font-weight: 400; overflow-x: hidden; }
h1, h2, h3, .btn, .site-nav, .site-brand { font-family: var(--font-display); }
img { max-width: 100%; height: auto; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

:root {
	--color-accent: #d5f244;
	--color-light: #ffffff;
	--color-dark: #000000;
	--color-snow: #f3f3f5;
	--font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--header-h: 3.375rem;
}

/* Pasek nawigacji: zawsze pływająca biała „pigułka” na środku, także na samej górze strony
   (decyzja właściciela; wcześniej pełna szerokość, a pigułka dopiero po przewinięciu) */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	justify-content: center;
	padding-top: 0.75rem;
}

/* Zalogowany użytkownik: pasek admina WP (32 px, na wąskim 46 px) leży nad nagłówkiem i przechwytuje kliknięcia */
.admin-bar .site-header { top: 32px; }
html:has(body.admin-bar) { scroll-padding-top: calc(var(--header-h) + 1rem + 32px); }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	html:has(body.admin-bar) { scroll-padding-top: calc(var(--header-h) + 1rem + 46px); }
}
/* Do 600 px WordPress przestaje przyklejać pasek admina (position: absolute) i pasek odjeżdża ze stroną,
   a nasz nagłówek zostawał 46 px pod górną krawędzią z pustą przerwą nad sobą. Przyklejamy pasek admina
   także na telefonie, żeby nagłówek zawsze stał tuż pod nim. Dotyczy tylko zalogowanych. */
@media (max-width: 600px) {
	.admin-bar #wpadminbar { position: fixed; }
}

/* Logo / nazwa */
.site-logo { display: flex; align-items: center; }
.site-logo img { display: block; max-height: 40px; width: auto; }
.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	color: var(--color-dark);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	text-decoration: none;
}
.logo-wini { width: 2.25rem; height: auto; flex: none; overflow: visible; }
.logo-wini__helmet { fill: #2d2a33; }
.logo-wini__visor { fill: var(--color-dark); }
.logo-wini__eyes { fill: none; stroke: var(--color-accent); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.logo-wini__spark { fill: var(--color-accent); }

/* Linki — wyśrodkowane */
.site-nav { justify-self: center; }
.site-nav ul {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.8rem;
	border-radius: 999px;
	color: var(--color-dark);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s;
}
/* Najechanie: sama zmiana koloru tekstu na limonkę marki, bez tła i ramki (decyzja właściciela, 2026-11-05).
   Uwaga: limonka na jasnym pasku ma kontrast ok. 1,3:1 — stan widać tylko pod kursorem. */
.site-nav a:hover { color: var(--color-accent); }
/* Wąski desktop: ciaśniejsze odstępy, żeby CTA mieściło się w pigułce */
@media (min-width: 900px) and (max-width: 1023px) {

	.site-nav a { padding: 0 0.6rem; }
}

.site-brand:focus-visible, .site-nav a:focus-visible, .site-header__toggle:focus-visible, .site-logo a:focus-visible {
	outline: 3px solid var(--color-dark);
	outline-offset: 3px;
}

/* Mobile: linki w rozwijanym panelu pod paskiem */
@media (max-width: 899px) {
	/* Telefon i tablet: pasek na całą szerokość, przyklejony do góry, bez zaokrągleń, lekko przezroczysty
	   (decyzja właściciela z 2026-11-06; pigułka zostaje tylko na desktopie). W trakcie przewijania pasek
	   chowa się nad ekran (klasa is-hidden z main.js), a po zatrzymaniu wjeżdża z góry. */
	.site-header { padding-top: 0; transition: transform 0.3s ease; }
	.site-header.is-hidden { transform: translateY(-110%); }

	/* Rozsuwanie menu (decyzja właściciela z 2026-11-06): panel z linkami i przycisk CTA są cały czas w układzie,
	   ale zwinięte do zera; po dodaniu is-open rozsuwają się w dół, linki wjeżdżają po kolei. Zamknięte elementy
	   mają visibility: hidden (z opóźnieniem do końca zwijania), żeby nie dało się na nie wejść klawiaturą.

	   Panel linków: siatka z jednym wierszem 0fr → 1fr daje płynną zmianę wysokości bez znajomości jej wartości;
	   lista w środku ma min-height: 0 i ucina nadmiar. Odstępy i kreska oddzielająca są na pierwszym i ostatnim
	   elemencie listy, nie na panelu, bo dopełnienie panelu nie zwinęłoby się do zera. */
	.site-nav {
		display: grid;
		grid-template-rows: 0fr;
		grid-row: 2;
		grid-column: 1 / -1;
		justify-self: stretch;
		visibility: hidden;
		transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
	}
	/* Boczne dopełnienie z ujemnym marginesem zostawia miejsce na obrys fokusu linków (lista ucina to, co wystaje) */
	.site-nav ul { flex-direction: column; gap: 0; min-height: 0; margin: 0 -4px; padding: 0 4px; overflow: hidden; }
	.site-nav li { opacity: 0; transform: translateY(-0.5rem); transition: opacity 0.15s ease, transform 0.15s ease; }
	.site-nav li:first-child { margin-top: 0.25rem; padding-top: 0.5rem; border-top: 1px solid rgba(22, 19, 26, 0.1); }
	.site-nav li:last-child { padding-bottom: 0.5rem; }
	.site-nav a { min-height: 48px; width: 100%; padding: 0 0.6rem; border-radius: 999px; font-size: 1rem; }
	.site-header.is-open .site-nav { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
	.site-header.is-open .site-nav li { opacity: 1; transform: none; transition-duration: 0.3s; transition-delay: 0.08s; }
	.site-header.is-open .site-nav li:nth-child(2) { transition-delay: 0.12s; }
	.site-header.is-open .site-nav li:nth-child(3) { transition-delay: 0.16s; }
	.site-header.is-open .site-nav li:nth-child(4) { transition-delay: 0.2s; }
	.site-header.is-open .site-nav li:nth-child(5) { transition-delay: 0.24s; }
	.site-header.is-open .site-nav li:nth-child(n+6) { transition-delay: 0.28s; }

}
/* Ograniczony ruch: menu otwiera się i zamyka od razu, bez rozsuwania */
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
	.site-nav,
	.site-nav li,
	.site-header__bar,
	.site-header__bar .site-header__cta,
	.site-header.is-open .site-nav li,
	.site-header.is-open .site-header__bar .site-header__cta { transition: none; }
}

/* Hero — jasne tło, tekst na środku, maskotka z boku */
.hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--header-h) + 2rem) 1rem 2rem;
	overflow: hidden;
	color: var(--color-dark);
	text-align: center;
	background: var(--color-snow);
}

/* Przyciski */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 52px;
	padding: 0.85rem 1.75rem;
	border: 2px solid var(--color-accent);
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s, background-color 0.15s, border-color 0.15s;
}

.btn:hover { transform: translateX(3px); }
.btn:hover::after { transform: translateX(4px); }
.btn:focus-visible { outline: 3px solid var(--color-light); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	.site-header,
	.site-nav a,
	.site-header__toggle-bar, .site-header__toggle-bar::before, .site-header__toggle-bar::after { transition: none; }

	.btn, .btn::after { transition: none; }
	.btn:hover, .btn:hover::after { transform: none; }
}

/* Sekcje — wspólny układ: kicker z numerem, tytuł i lead w dwóch kolumnach, lista faktów, stopka sekcji */
.section { padding: clamp(4rem, 9vw, 7rem) 1rem; color: var(--color-dark); }
.section--light { background: var(--color-light); }

.section__inner { max-width: 76rem; margin: 0 auto; }

@media (min-width: 900px) {

	.section__kicker { grid-column: 1 / -1; }
}
.section__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.5rem;
	font-family: var(--font-display);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(22, 19, 26, 0.6);
}

/* Krótka limonkowa kreska przed nazwą sekcji (zamiast dawnego numeru) */
.section__kicker::before { content: ""; width: 1.5rem; height: 2px; border-radius: 2px; background: var(--color-accent); }

/* Lista faktów: trzy kolumny, cienka linia nad każdym punktem; wariant numerowany */
.facts {
	display: grid;
	gap: 1.5rem;
	margin: 0 0 clamp(2rem, 5vw, 3.5rem);
	padding: 0;
	list-style: none;
	counter-reset: facts;
}
@media (min-width: 700px) {
	.facts { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.btn:focus-visible { outline-color: var(--color-dark); }

/* Podstrona z dokumentem (page.php): wąska kolumna tekstu pod stałym nagłówkiem */
.page-single { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)); min-height: 60vh; }
.page-single__inner { max-width: 46rem; }
.page-single__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.page-single__title { margin: 0 0 0.75rem; font-size: clamp(1.875rem, 3.8vw, 3rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.page-single__meta { margin: 0; font-size: 0.875rem; color: rgba(22, 19, 26, 0.55); }
.page-single__back { margin: 3rem 0 0; font-weight: 500; }
.page-single__back a { color: var(--color-dark); }
.prose { font-size: 1.0625rem; line-height: 1.65; color: rgba(22, 19, 26, 0.85); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin: 2.25em 0 0.6em; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.prose h3 { margin: 1.75em 0 0.5em; font-size: 1.125rem; font-weight: 600; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--color-dark); text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--color-dark); }
.prose strong { font-weight: 600; }
.prose .todo { display: inline-block; padding: 0 0.3em; border-radius: 0.25em; background: rgba(207, 241, 40, 0.35); }

.app {
	overflow: hidden;
	border: 1px solid rgba(22, 19, 26, 0.1);
	border-radius: 1.25rem;
	background: var(--color-dark);
	color: var(--color-light);
	box-shadow: 0 24px 60px rgba(22, 19, 26, 0.14);
}

.app__status-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--color-accent);
	animation: app-status 2s ease-out infinite;
}
@keyframes app-status {
	from { box-shadow: 0 0 0 0 rgba(207, 241, 40, 0.6); }
	to   { box-shadow: 0 0 0 8px rgba(207, 241, 40, 0); }
}

.app__avatar {
	display: inline-flex;
	flex: none;
	width: 2rem;
	height: 2rem;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}
.app__avatar .logo-wini { width: 1.4rem; }
.app__avatar .logo-wini__helmet { fill: #4a4652; }
.app__avatar .logo-wini__visor { fill: #16131a; }

@media (prefers-reduced-motion: reduce) {
	.app__status-dot { animation: none; }
}

.scheme {
	display: grid;
	gap: 1rem;
	padding: 1.25rem;
	border: 1px solid rgba(22, 19, 26, 0.1);
	border-radius: 1.25rem;
	background: var(--color-light);
	box-shadow: 0 24px 60px rgba(22, 19, 26, 0.08);
}

/* FAQ — po lewej tytuł, opis i maskotka Wini (śledzi kursor), po prawej rozsuwane pytania (sekcja #faq) */
.faq__inner { display: grid; gap: 3rem; }
@media (min-width: 900px) {
	.faq__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
	.faq__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Maskotka Wini: oczy i tułów reagują na kursor (zmienne --mx/--my z main.js), stuknięcie pokazuje dymek */
.wini {
	--mx: 0;
	--my: 0;
	position: relative;
	width: min(40vw, 10rem); /* zmniejszona o ok. 1/3 (prośba właściciela z 2026-11-06; było min(60vw, 15rem)) */
	margin: 2.5rem 0 0 1rem;
	cursor: pointer;
	user-select: none;
}
@media (min-width: 900px) { .wini { width: min(15vw, 11.5rem); margin-top: 3rem; } }

/* Rozsuwane pytania */
.faq__list { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.faq__item { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 44px;
	padding: 1.25rem 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	line-height: 1.3;
	color: var(--color-light);
	transition: color 0.2s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--color-accent); }
.faq__q:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; border-radius: 4px; }
.faq__icon {
	position: relative;
	flex: none;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.2), background-color 0.25s, border-color 0.25s;
}
.faq__icon::before, .faq__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0.8rem;
	height: 2px;
	margin: -1px 0 0 -0.4rem;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-dark); transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
/* Wysokość odpowiedzi animuje main.js (details nie animuje się natywnie) */
.faq__a { overflow: hidden; }
.faq__a-inner { padding: 0 3.5rem 1.5rem 0; }
.faq__a p { margin: 0; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.faq__item.is-animating .faq__a { transition: height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.faq__more { margin: 1.5rem 0 0; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.6); }
.faq__more a { color: var(--color-accent); font-weight: 500; }
.faq__more a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	.wini__body, .wini__shadow, .wini__eyes, .wini__bubble, .faq__q, .faq__icon, .faq__icon::before, .faq__icon::after { transition: none; }

	.faq__item.is-animating .faq__a { transition: none; }
}

/* Możliwości — kolaż kafelków (sekcja #mozliwosci) */
/* Dziennik pracy agenta: po lewej z czego korzysta rola, po prawej karta „dziś” z wpisami. Nagłówek z bloku „Sekcje”. */

/* Wejście na scroll (klasa is-visible z main.js); w nagłówku kicker, tytuł i lead wchodzą kaskadowo */
.reveal {
	opacity: 0;
	transform: translateY(1.5rem);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.1);
	transition-delay: calc(var(--i, 0) * 0.1s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Logotypy marek */
.brand { display: block; width: auto; height: auto; object-fit: contain; }

/* Panele ról nałożone w jednej komórce siatki; zmiana roli to crossfade */
.day { display: grid; }

.uses { display: grid; gap: 1rem; margin: 0; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.7rem 0.35rem 0.45rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
}
.chip .brand { width: 1.25rem; height: 1.25rem; padding: 0.15rem; border-radius: 50%; background: var(--color-light); box-sizing: content-box; }

/* Prawa kolumna: dziennik, jasna karta jak okno aplikacji */
.log {
	overflow: hidden;
	border-radius: 1.25rem;
	background: var(--color-light);
	color: var(--color-dark);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* Taśma logotypów: płynie, zatrzymuje się po najechaniu, krawędzie zanikają maską */
.strip { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* Dwie kopie listy: przesunięcie o połowę daje pętlę bez skoku */

@media (prefers-reduced-motion: reduce) {
	.reveal, .caps .reveal .section__kicker, .caps .reveal .section__title, .caps .reveal .section__lead { opacity: 1; transform: none; transition: none; }

}
