/*
 * Strona wiemile.app (D-207). Kolory wyłącznie ze zmiennych w kolory.css (tworzy je scripts/strona.mjs z palety
 * aplikacji); tu tylko układ, odstępy i krój. Bez skryptów i stylów w atrybutach – pilnuje tego nagłówek CSP w .htaccess.
 */

@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonty/PlusJakartaSans-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonty/PlusJakartaSans-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonty/PlusJakartaSans-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonty/PlusJakartaSans-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }

/* Wartości tylko dla strony: rama makiety telefonu, cienie i wysokość tła „Zorza” (jak `wysokoscPoswiaty.mocna` z zapasem). */
:root {
  --rama: #1B1930;
  --cien: 0 1px 2px rgba(27, 25, 48, 0.04), 0 12px 32px -16px rgba(27, 25, 48, 0.18);
  --cien-telefonu: 0 40px 80px -32px rgba(27, 25, 48, 0.5);
  --wysokosc-zorzy: 860px;
  --kolumna: 1120px;
  --margines: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --rama: #2B2840;
    --cien: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
    --cien-telefonu: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tekst);
  background-color: var(--tlo);
  background-image: var(--zorza);
  background-repeat: no-repeat;
  background-size: 100% var(--wysokosc-zorzy);
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
img, svg { display: block; }
a { color: var(--akcent); }

:focus-visible { outline: 3px solid var(--akcent); outline-offset: 3px; border-radius: 8px; }

.ukryte { position: absolute; width: 0; height: 0; overflow: hidden; }

.pomin {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--akcent);
  color: var(--tekst-na-akcencie);
  font-weight: 700;
  text-decoration: none;
}
.pomin:focus { top: 16px; }

.kolumna { max-width: var(--kolumna); margin: 0 auto; padding: 0 var(--margines); }

.ikona {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ikona--duza { width: 28px; height: 28px; }

/* Nagłówek i logotyp – leżą wprost na tle „Zorza”, więc biorą kolory „na tle” (D-152). */

.naglowek__wnetrze {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--tekst);
  text-decoration: none;
}
.logo img { border-radius: 10px; }
.logotyp { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.logotyp span { color: var(--na-tle-akcent); }

.menu {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--na-tle-tekst-drugorzedny);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.menu a:hover { background: var(--szklo); color: var(--tekst); }

@media (max-width: 759px) {
  .naglowek nav { width: calc(100% + 2 * var(--margines)); margin: 0 calc(-1 * var(--margines)); }
  .menu { overflow-x: auto; padding: 0 calc(var(--margines) - 14px); scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { font-size: 14px; }
}

/* Pierwszy ekran */

.hero { padding: 24px 0 16px; }

.hero__siatka { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 48px 0 96px; }
  .hero__siatka { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

.znaczek {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--szklo-obrys);
  border-radius: 999px;
  background: var(--szklo);
  font-size: 14px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.znaczek__kropka { width: 8px; height: 8px; border-radius: 50%; background: var(--koral); }

/* Każde zdanie hasła w jednym wierszu: najdłuższe („Wiem, ile odkładam.”) ma ok. 9,6 em szerokości – liczymy z zapasem 10 em. */
.haslo {
  margin: 24px 0 20px;
  font-size: clamp(28px, calc((100vw - 2 * var(--margines)) / 10), 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
@media (min-width: 960px) {
  .haslo { font-size: clamp(40px, 4.4vw, 58px); }
}
.haslo span { display: block; }
.haslo em { font-style: normal; color: var(--na-tle-akcent); }

.wstep {
  max-width: 34em;
  color: var(--na-tle-tekst-drugorzedny);
  font-size: clamp(17px, 1.6vw, 19px);
}

.cechy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}
.cechy li { display: inline-flex; align-items: center; gap: 8px; }
.cechy .ikona { color: var(--na-tle-akcent); stroke-width: 2.4; }

.przycisk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--akcent);
  color: var(--tekst-na-akcencie);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px -12px var(--fiolet);
  transition: transform 0.15s ease;
}
.przycisk:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .przycisk { transition: none; }
  .przycisk:hover { transform: none; }
}

/* Makieta telefonu z pulpitem – ozdoba z opisem dla czytnika ekranu (role="img"). */

.telefon {
  width: min(330px, 100%);
  margin: 0 auto;
  padding: 10px;
  border-radius: 50px;
  background: var(--rama);
  box-shadow: var(--cien-telefonu);
}

.telefon__ekran {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 620px;
  padding: 20px 14px 12px;
  border-radius: 40px;
  overflow: hidden;
  background-color: var(--tlo);
  background-image: var(--zorza);
  background-repeat: no-repeat;
  background-size: 100% 520px;
  font-variant-numeric: tabular-nums;
}

.ekran__gora { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.ekran__miesiac { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.ekran__znak { border-radius: 7px; }

.segment {
  display: flex;
  padding: 3px;
  border: 1px solid var(--szklo-obrys);
  border-radius: 999px;
  background: var(--szklo);
}
.segment__opcja {
  flex: 1;
  padding: 6px 0;
  border-radius: 999px;
  color: var(--tekst-drugorzedny);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.segment__opcja--wybrana { background: var(--akcent); color: var(--tekst-na-akcencie); }

.ekran__karta, .ekran__kafelek {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--szklo-obrys);
  border-radius: 20px;
  background: var(--szklo);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.etykieta { color: var(--tekst-drugorzedny); font-size: 12px; font-weight: 600; }
.kwota-glowna { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.kwota { font-size: 16px; font-weight: 800; }
.kwota--plus { color: var(--sukces); }

.ekran__podpisy { display: flex; justify-content: space-between; color: var(--tekst-drugorzedny); font-size: 11px; }
.ekran__wiersz { display: flex; align-items: baseline; justify-content: space-between; }

.miernik { width: 100%; height: 10px; }
.miernik--maly { height: 8px; margin: 6px 0 4px; }
.miernik__tor { fill: var(--tor-miernika); }
.miernik__wypelnienie { fill: var(--akcent); }

.slupki { width: 100%; height: 48px; }
.slupki rect { fill: var(--akcent); fill-opacity: 0.45; }
.slupki .slupki__wyrozniony { fill: var(--akcent-drugi); fill-opacity: 1; }

.ekran__kafelki { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ekran__kafelek { gap: 2px; }

.pierscien { width: 40px; height: 40px; margin-bottom: 4px; }
.pierscien circle { fill: none; stroke-width: 5; }
.pierscien__tor { stroke: var(--tor-miernika); }
.pierscien__wartosc { stroke: var(--akcent); stroke-linecap: round; }

.pasek-kart {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: auto;
  padding: 8px 10px;
  border: 1px solid var(--szklo-obrys);
  border-radius: 999px;
  background: var(--szklo);
  color: var(--tekst-drugorzedny);
}
.pasek-kart .ikona { width: 22px; height: 22px; }
.pasek-kart .ikona--wybrana { color: var(--akcent); }
.pasek-kart__dodaj {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--akcent-drugi);
  color: var(--tekst-na-akcencie-drugim);
}
.pasek-kart__dodaj .ikona { stroke-width: 2.4; }

/* Sekcje */

.sekcja { padding: 56px 0; }
@media (min-width: 960px) { .sekcja { padding: 80px 0; } }
.sekcja--ostatnia { padding-bottom: 80px; }

.nadtytul {
  margin-bottom: 8px;
  color: var(--akcent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 { font-size: clamp(28px, 4vw, 42px); }

.sekcja__wstep {
  max-width: 40em;
  margin: 14px 0 32px;
  color: var(--tekst-drugorzedny);
  font-size: 18px;
}

.karta {
  padding: 24px;
  border: 1px solid var(--linia);
  border-radius: 24px;
  background: var(--powierzchnia);
  box-shadow: var(--cien);
}

/* Jak działa */

.kroki { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 880px) { .kroki { grid-template-columns: repeat(3, 1fr); } }

.krok { display: flex; flex-direction: column; }
.krok h3 { margin: 16px 0 6px; font-size: 19px; font-weight: 700; }
.krok p { color: var(--tekst-drugorzedny); font-size: 15px; }
.krok__numer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wypelnienie);
  color: var(--akcent);
  font-weight: 800;
}

.obraz-kont { margin: auto 0 0; padding: 20px 0 0; list-style: none; font-size: 15px; font-variant-numeric: tabular-nums; }
.obraz-kont li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--linia); }
.obraz-kont li:first-child { border-top: 0; }
.obraz-kont__ikona {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--wypelnienie);
  color: var(--akcent);
}
.kwota-mala { margin-left: auto; font-weight: 700; }

.obraz-wpisu {
  margin-top: auto;
  padding: 20px 16px;
  border-radius: 18px;
  background: var(--wypelnienie);
  text-align: center;
}
.krok .obraz-wpisu { margin-top: 20px; }
.obraz-wpisu__kwota { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.chipy { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.chip {
  padding: 6px 12px;
  border: 1.5px solid var(--obrys);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.chip--wybrany { border-color: var(--akcent); background: var(--akcent); color: var(--tekst-na-akcencie); }

.obraz-struktury { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.donut { width: 112px; height: 112px; flex-shrink: 0; }
.donut circle { fill: none; stroke-width: 6; }
.donut .seria-1 { stroke: var(--seria-1); }
.donut .seria-2 { stroke: var(--seria-2); }
.donut .seria-3 { stroke: var(--seria-3); }
.donut .seria-4 { stroke: var(--seria-4); }
.donut .seria-5 { stroke: var(--seria-5); }

.legenda { flex: 1; margin: 0; padding: 0; list-style: none; font-size: 13px; font-variant-numeric: tabular-nums; }
.legenda li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.legenda li span:last-child { margin-left: auto; font-weight: 700; }
.legenda__znak { width: 10px; height: 10px; border-radius: 3px; }
.legenda__znak.seria-1 { background: var(--seria-1); }
.legenda__znak.seria-2 { background: var(--seria-2); }
.legenda__znak.seria-3 { background: var(--seria-3); }
.legenda__znak.seria-4 { background: var(--seria-4); }
.legenda__znak.seria-5 { background: var(--seria-5); }

/* Wskaźniki */

.wskazniki { display: grid; gap: 16px; }
@media (min-width: 720px) { .wskazniki { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .wskazniki { grid-template-columns: repeat(4, 1fr); } }

.wskaznik { display: flex; flex-direction: column; gap: 10px; }
.wskaznik .etykieta { font-size: 14px; letter-spacing: 0; }
.wskaznik__wartosc { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.slupki--duze { height: 72px; margin: 6px 0; }

.skala { width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.skala__tor { fill: var(--tor-miernika); }
.skala__wartosc { fill: var(--akcent); }
.skala__pasmo { fill: none; stroke: var(--akcent-drugi); stroke-width: 4; stroke-linecap: round; }
.skala__punkt { fill: var(--powierzchnia); stroke: var(--akcent); stroke-width: 3; }
.skala__opis { fill: var(--tekst-drugorzedny); font-family: inherit; font-size: 11px; font-weight: 600; }

.wskaznik__odniesienie { display: flex; align-items: center; gap: 8px; color: var(--tekst-drugorzedny); font-size: 13px; }
.wskaznik__pasmo { width: 18px; height: 4px; border-radius: 2px; background: var(--akcent-drugi); }

.linia-wykresu { width: 100%; height: 72px; margin: 6px 0; overflow: visible; }
.linia-wykresu__pole { fill: var(--akcent); fill-opacity: 0.12; }
.linia-wykresu__linia { fill: none; stroke: var(--akcent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.linia-wykresu__punkt { fill: var(--akcent-drugi); stroke: var(--powierzchnia); stroke-width: 2; }

.wyjasnienie { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--linia); }
.wyjasnienie summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--akcent);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.wyjasnienie summary::-webkit-details-marker { display: none; }
.wyjasnienie p { padding-bottom: 4px; color: var(--tekst-drugorzedny); font-size: 14px; }

/* Bezpłatnie i dodatek */

.oferty { display: grid; gap: 16px; }
@media (min-width: 880px) { .oferty { grid-template-columns: 1fr 1fr; } }

.oferta h3 { font-size: 22px; }
.oferta__opis { margin-top: 6px; color: var(--tekst-drugorzedny); font-size: 15px; }
.oferta--dodatek {
  border-color: var(--szklo-obrys);
  background: linear-gradient(150deg, color-mix(in srgb, var(--akcent) 12%, var(--powierzchnia)) 0%, var(--powierzchnia) 70%);
}

.lista-ok { margin: 18px 0 0; padding: 0; list-style: none; }
.lista-ok li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-top: 1px solid var(--linia); }
.lista-ok li:first-child { border-top: 0; }
.lista-ok .ikona { margin-top: 2px; color: var(--sukces); stroke-width: 2.2; }
.oferta--dodatek .lista-ok .ikona { color: var(--akcent); }

.uwaga-edukacja {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--wypelnienie);
}
.uwaga-edukacja .ikona { color: var(--akcent); }

/* Prywatność */

.cztery { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .cztery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cztery { grid-template-columns: repeat(4, 1fr); } }

.punkt h3 { margin: 16px 0 6px; font-size: 18px; font-weight: 700; }
.punkt p { color: var(--tekst-drugorzedny); font-size: 15px; }
.punkt__ikona {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--wypelnienie);
  color: var(--akcent);
}
.punkt__ikona .ikona { width: 24px; height: 24px; }

/* Kiedy – blok w kolorach znaku: jasny tekst na fiolecie, w obu trybach. */

.kiedy {
  display: grid;
  gap: 28px;
  padding: 32px 24px;
  border: 0;
  background:
    radial-gradient(55% 75% at 100% 0%, color-mix(in srgb, var(--koral) 32%, transparent) 0%, transparent 100%),
    var(--fiolet);
  color: var(--jasny);
}
@media (min-width: 880px) { .kiedy { grid-template-columns: 1fr 1fr; align-items: center; padding: 48px; } }
.kiedy .nadtytul { color: var(--jasny); }
.kiedy h2 { font-size: clamp(26px, 3.4vw, 36px); }
.kiedy p:last-child { margin-top: 14px; font-size: 17px; }

.etapy { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.etap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(22, 18, 46, 0.28);
}
.etap__znak {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 2px dashed var(--jasny);
  border-radius: 50%;
}
.etap--zrobiony .etap__znak { border: 0; background: var(--koral); color: var(--rama); }
.etap--zrobiony .etap__znak .ikona { width: 18px; height: 18px; stroke-width: 2.6; }
.etap--teraz .etap__znak { border-style: solid; }
.etap--teraz .etap__znak::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--koral); }
.etap__nazwa { flex: 1; font-weight: 700; }
.etap__stan { font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Stopka */

.stopka { border-top: 1px solid var(--linia); }
.stopka__wnetrze {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 48px;
  color: var(--tekst-drugorzedny);
  font-size: 14px;
}
.stopka__marka p { margin-top: 8px; }
.stopka__info { display: grid; gap: 6px; align-content: end; }
@media (min-width: 760px) { .stopka__info { text-align: right; } }

/* Strona 404 */

.brak { display: grid; justify-items: start; gap: 18px; padding: 96px 0 120px; }
.brak p { max-width: 32em; color: var(--na-tle-tekst-drugorzedny); font-size: 18px; }
