/* ==========================================================================
   LIVIZU — wspólny arkusz stylów dla wszystkich podstron
   Wszystkie kolory, typografia i komponenty zdefiniowane są tutaj.
   Ścieżki w HTML są względne, więc działa też z file:// i z podkatalogu.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokeny systemu projektowego (zmienne CSS)
   -------------------------------------------------------------------------- */
:root {
  /* kolory bazowe */
  --bg: #FDFCF8;
  --ink: #141B3D;
  --ink-strong: #1F2747;
  --muted: #4A5170;
  --muted-2: #3A4368;
  --white: #fff;

  /* fiolet (primary) */
  --primary: #5453EC;
  --primary-dark: #3D3CD4;
  --primary-darker: #283269;
  --purple-pale: #F1EAFE;

  /* limonka (accent) */
  --lime: #E1F44B;
  --lime-bright: #C9F04C;
  --lime-soft: #D7F18C;
  --lime-pale: #F4FADF;
  --lime-pale-2: #F8FCEA;
  --lime-ink: #2C3A12;
  /* obramowania */
  --card-border: #EEEBDF;
  --border-soft: #E8E5DA;
  --border-hover: #D9D2EE;

  /* typografia */
  --font-head: 'Baloo 2', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* promienie */
  --r-pill: 999px;

  /* czas trwania animacji */
  --t-fast: .25s;
}

/* --------------------------------------------------------------------------
   2. Reset i style bazowe
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

::selection { background: var(--lime-soft); }

img { display: block; }

.page {
  min-height: 100vh;
  overflow-x: hidden;
}
.page--home {
  background-image:
    radial-gradient(circle at 4% 17%, var(--lime-pale) 0 42px, transparent 43px),
    radial-gradient(circle at 96% 25%, transparent 0 30px, var(--purple-pale) 31px 42px, transparent 43px),
    radial-gradient(circle at 7% 39%, var(--purple-pale) 0 54px, transparent 55px),
    radial-gradient(circle at 94% 48%, var(--lime-pale) 0 38px, transparent 39px),
    radial-gradient(circle at 3% 61%, transparent 0 34px, var(--lime-soft) 35px 44px, transparent 45px),
    radial-gradient(circle at 97% 70%, var(--purple-pale) 0 50px, transparent 51px),
    radial-gradient(circle at 6% 82%, var(--lime-pale) 0 46px, transparent 47px),
    radial-gradient(circle at 93% 91%, transparent 0 28px, var(--purple-pale) 29px 40px, transparent 41px);
  background-repeat: no-repeat;
}

/* uchwyt do logo opakowanego w link */
.logo-link { display: block; }

/* --------------------------------------------------------------------------
   3. Animacje
   -------------------------------------------------------------------------- */
@keyframes lvz-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ujawnianie sekcji przy scrollu (klasę .lvz-in dodaje JS) */
.lvz-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s cubic-bezier(.22, .61, .36, 1),
    transform .7s cubic-bezier(.22, .61, .36, 1);
}
.lvz-reveal.lvz-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   4. Nagłówek strony
   -------------------------------------------------------------------------- */
.site-header {
  max-width: 1140px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo { height: 70px; width: auto; }

/* --------------------------------------------------------------------------
   5. Przyciski i linki
   -------------------------------------------------------------------------- */
.btn-contact {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 2px solid var(--border-soft);
  transition: all var(--t-fast);
}
.btn-contact:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* przyciski sklepów (App Store / Google Play) */
.btn-store {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 16px;
  transition: all var(--t-fast);
}
.btn-store__icon { flex-shrink: 0; }
.btn-store__labels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.btn-store__small { font-size: 11px; font-weight: 600; opacity: .8; }
.btn-store__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
}
.btn-store--apple { background: var(--primary); }
.btn-store--apple:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(84, 83, 236, .32);
}
.btn-store--google { background: var(--ink); }
.btn-store--google:hover {
  background: var(--primary-darker);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 27, 61, .28);
}

/* główny przycisk CTA */
.btn-cta {
  background: var(--lime);
  color: #1E2A06;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: var(--r-pill);
  transition: all var(--t-fast);
}
.btn-cta--sm { font-size: 18px; padding: 15px 32px; }
.btn-cta:hover {
  background: var(--lime-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(225, 244, 75, .45);
}

/* Akcja drugorzędna „Zobacz, jak uzyskać dostęp" — pełna limonkowa pigułka
   w tym samym języku co główne CTA (limonka + ciemny lime-ink), przez co jest
   wyraźnie widoczna i klikalna. Inny kolor niż przyciski sklepów (fiolet/granat),
   więc pozostaje czytelnie drugorzędna. To realny <button> (otwiera okno),
   dlatego resetuje wygląd natywnego przycisku. */
.btn-access {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--lime);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17.5px;
  line-height: 1.15;
  color: var(--lime-ink);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(44, 58, 18, .10);
  transition: all var(--t-fast);
}
.btn-access:hover {
  background: var(--lime-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(201, 240, 76, .5);
}
.btn-access__icon { flex-shrink: 0; transition: transform var(--t-fast); }
.btn-access:hover .btn-access__icon { transform: translateX(3px); }

.nav-link {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--primary); }
.nav-link.is-active { color: var(--primary); }

.back-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  transition: opacity var(--t-fast);
}
.back-link:hover { opacity: .7; }

/* uniwersalna karta z efektem uniesienia */
.card-hover {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(20, 27, 61, .10);
  border-color: var(--border-hover);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 32px 88px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.badge-lime {
  background: var(--lime-soft);
  color: var(--lime-ink);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.14;
  margin: 0;
  text-wrap: pretty;
  letter-spacing: -0.5px;
}
.hero__title-sub {
  display: block;
  font-size: 28px;
  margin-top: 14px;
}
.hero__highlight {
  background: linear-gradient(transparent 58%, var(--lime-soft) 58%);
}
.hero__lead {
  font-size: 20px;
  line-height: 1.55;
  margin: 0;
  color: var(--muted);
  max-width: 480px;
}
.hero__lead strong { font-weight: 700; color: var(--ink); }
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__note {
  align-self: flex-start;
  margin: 0;
  max-width: 500px;
  text-align: center;
  animation: lvz-float 4s ease-in-out infinite;
  will-change: transform;
}
.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.hero__access {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.hero__access-lead {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted-2);
}

/* hero — strona wizualna z makietą telefonu */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.hero__blob {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: #F0F6D8;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero__ring {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 10px solid var(--primary);
  opacity: 0.15;
  top: 8%;
  right: 6%;
}
.hero__square {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lime);
  opacity: 0.5;
  bottom: 12%;
  left: 4%;
  transform: rotate(18deg);
}

/* statyczna makieta iPhone */
.phone {
  width: 285px;
  height: 620px;
  position: relative;
  z-index: 2;
  animation: lvz-float 7s ease-in-out infinite;
}
.phone__scale {
  transform: scale(0.71);
  transform-origin: top left;
  width: 402px;
  height: 874px;
}
.phone__frame {
  width: 402px;
  height: 874px;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  background: #F2F2F7;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .12);
  font-family: -apple-system, system-ui, sans-serif;
}
.phone__island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
}
.phone__statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 34px 19px;
}
.phone__time { font-weight: 600; font-size: 17px; color: #000; }
.phone__icons { display: flex; gap: 7px; align-items: center; }
.phone__screen {
  height: 100%;
  background: repeating-linear-gradient(45deg, #F1EAFE 0, #F1EAFE 16px, #FAF6FF 16px, #FAF6FF 32px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone__placeholder {
  font-family: monospace;
  font-size: 15px;
  color: #7B5BC8;
  background: rgba(255, 255, 255, .85);
  padding: 8px 14px;
  border-radius: 8px;
}
.phone__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* the screenshot already includes its own status bar — hide the mock one */
.phone__frame:has(.phone__img) .phone__statusbar { display: none; }
.phone__home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 139px;
  height: 5px;
  border-radius: 100px;
  background: rgba(0, 0, 0, .25);
  z-index: 60;
}

/* --------------------------------------------------------------------------
   7. Sekcja funkcji (naprzemienne wiersze)
   -------------------------------------------------------------------------- */
.features {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.feature__head { display: flex; align-items: center; gap: 14px; }
.feature__icon { width: 52px; height: 52px; flex-shrink: 0; }
.feature__icon--circle-primary { border-radius: 50%; background: var(--primary); }
.feature__icon--rounded-lime   { border-radius: 16px; background: var(--lime); }
.feature__icon--diamond-lime   { border-radius: 16px; background: var(--lime); transform: rotate(45deg) scale(0.85); }
.feature__icon--leaf-primary   { border-radius: 50% 50% 0 50%; background: var(--primary); }
.feature__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--primary);
  letter-spacing: 1px;
}
.feature__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  margin: 0;
  line-height: 1.15;
}
.feature__title-addon {
  display: block;
  margin-top: 22px;
  color: var(--primary-darker);
  font-size: 24px;
  line-height: 1.25;
}
.feature__desc {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 420px;
}
.feature__note {
  position: relative;
  padding: 26px 20px 18px;
  border: 2px solid var(--lime-soft);
  border-top: 6px solid var(--lime);
  border-radius: 6px 18px 18px 18px;
  background: var(--lime-pale-2);
  color: var(--lime-ink);
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(84, 83, 236, .12);
  animation: lvz-float 5s ease-in-out -1.5s infinite;
  will-change: transform;
}
.feature__paperclip {
  position: absolute;
  z-index: 2;
  top: -20px;
  right: 22px;
  color: var(--primary);
  transform: rotate(12deg);
  filter: drop-shadow(0 3px 2px rgba(84, 83, 236, .18));
}
.feature__desc-copy {
  position: relative;
  z-index: 1;
}
.feature__desc-emphasis {
  background: linear-gradient(transparent 58%, var(--lime-soft) 58%);
  font-weight: 800;
}
.reminder-timeline {
  margin: 8px 0 0;
  padding-left: 22px;
  font-size: 20px;
  line-height: 1.55;
}
.reminder-timeline li { padding-left: 2px; }
.reminder-timeline li::marker { color: var(--primary); }
.feature__media {
  position: relative;
  display: flex;
  justify-content: center;
}
.feature__media-bg {
  position: absolute;
  width: 92%;
  height: 88%;
  border-radius: 36px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.feature__media-bg--purple { background: var(--purple-pale); }
.feature__media-bg--lime   { background: var(--lime-pale); }
.feature__screen {
  position: relative;
  z-index: 2;
  width: 260px;
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature__screen--purple {
  background: repeating-linear-gradient(45deg, #EAE0FD 0, #EAE0FD 14px, #F6F0FF 14px, #F6F0FF 28px);
  border: 1px solid #E2D5FB;
  box-shadow: 0 12px 30px rgba(84, 83, 236, .12);
}
.feature__screen--lime {
  background: repeating-linear-gradient(45deg, #EAF2CA 0, #EAF2CA 14px, #F6FAE4 14px, #F6FAE4 28px);
  border: 1px solid #DDE9B6;
  box-shadow: 0 12px 30px rgba(159, 214, 14, .16);
}
.feature__placeholder {
  font-family: monospace;
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, .9);
}
.feature__placeholder--purple { color: #7B5BC8; }
.feature__placeholder--lime   { color: #5E7A12; }
/* a real screenshot is shown in a hero-style phone frame: bigger, rounded,
   with a soft device shadow instead of the small striped placeholder card */
.feature__screen:has(.feature__img) {
  width: 285px;
  aspect-ratio: 402 / 874;
  border-radius: 34px;
  background: #F2F2F7;
  border: none;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .12);
}
.feature__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 34px;
}

.benefits {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 32px 96px;
}
.benefits__title {
  margin: 0 0 28px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.benefit-card {
  display: flex;
  align-items: center;
  min-height: 170px;
  padding: 28px;
  border: 2px solid var(--card-border);
  border-radius: 24px;
  background: var(--white);
}
.benefit-card:nth-child(1),
.benefit-card:nth-child(4) { background: var(--lime-pale); }
.benefit-card:nth-child(2),
.benefit-card:nth-child(3) { background: var(--purple-pale); }
.benefit-card__text {
  margin: 0;
  color: var(--muted-2);
  font-size: 17px;
  line-height: 1.65;
}
.benefit-card__text strong {
  color: var(--primary-darker);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   8. Sekcja „Poznaj LIVIZU"
   -------------------------------------------------------------------------- */
.intro-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px 96px;
}
.intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--lime-pale-2) 0%, var(--lime-pale) 100%);
  border: 1px solid var(--card-border);
  border-radius: 40px;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(84, 83, 236, .07);
}
.intro__deco { position: absolute; }
.intro__deco--top {
  top: -60px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50% 50% 0 50%;
  background: var(--lime);
  opacity: 0.5;
}
.intro__deco--bottom {
  bottom: -55px;
  left: -45px;
  width: 140px;
  height: 140px;
  border-radius: 30px;
  background: var(--primary);
  opacity: 0.08;
  transform: rotate(45deg);
}
.intro__eyebrow {
  position: relative;
  z-index: 1;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--r-pill);
}
.intro__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 38px;
  margin: 0;
  line-height: 1.2;
  max-width: 620px;
}
.intro__body {
  position: relative;
  z-index: 1;
  margin: 4px 0 0;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--muted-2);
  max-width: 660px;
  text-wrap: pretty;
}
.intro__body + .intro__body { margin-top: 0; }
.intro__body strong { color: var(--ink-strong); font-weight: 700; }

/* --------------------------------------------------------------------------
   9. Karty informacyjne (jak to działa / dlaczego wygodne)
   -------------------------------------------------------------------------- */
.info-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.info-card {
  background: var(--white);
  border: 2px solid var(--card-border);
  border-radius: 28px;
  padding: 44px;
}
.info-card--delay { transition-delay: .08s; }
.info-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 18px;
}
.info-card__lead {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.steps__item { display: flex; gap: 14px; align-items: flex-start; }
.steps__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.steps__text { font-size: 16px; line-height: 1.55; color: var(--muted); }
.steps__text strong { color: var(--ink-strong); font-weight: 700; }

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checks__item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-strong);
}
.checks__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   10. Pasek przepływu
   -------------------------------------------------------------------------- */
.flow-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.flow {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.flow__step {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  text-align: center;
}
.flow__step--start { background: var(--purple-pale); color: var(--primary); }
.flow__step--mid   { background: var(--primary); color: var(--white); }
.flow__step--end   { background: var(--lime-pale); color: #3C5210; }
.flow__arrow {
  display: inline-block;
  color: var(--primary);
  font-size: 26px;
  font-weight: 800;
}
.flow__tagline {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   11. Sekcja CTA
   -------------------------------------------------------------------------- */
.cta {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px 56px;
}
.cta__card {
  background: var(--primary);
  border-radius: 40px;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__card.lvz-in {
  animation: lvz-float 6s ease-in-out -2s infinite;
  will-change: transform;
}
.cta__card .btn-cta { margin-top: 10px; }
.cta__deco { position: absolute; }
.cta__deco--circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(225, 244, 75, .25);
  top: -80px;
  right: -60px;
}
.cta__deco--ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, .1);
  bottom: -50px;
  left: -30px;
}
.cta__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 44px;
  margin: 0;
  color: var(--white);
  line-height: 1.15;
}
.cta__text {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
  max-width: 520px;
}

/* --------------------------------------------------------------------------
   12. Stopka
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 2px solid var(--card-border);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer__logo { height: 38px; width: auto; }
.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  transition: background var(--t-fast), transform var(--t-fast);
}
.footer-social:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.footer-social:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   13. Podstrona „Serwis"
   -------------------------------------------------------------------------- */
.page-intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 32px 8px;
}
.eyebrow {
  display: block;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.page-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 18px;
}
.page-lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 660px;
  text-wrap: pretty;
}
.section-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px 24px;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  margin: 0 0 28px;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.help-card {
  background: var(--white);
  border: 2px solid var(--card-border);
  border-radius: 28px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.help-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.help-card__icon--purple { background: var(--purple-pale); }
.help-card__icon--lime   { background: var(--lime-pale); }
.help-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  margin: 0;
}
.help-card__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.contact-cta {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 32px 80px;
}
.contact-banner {
  background: var(--primary);
  border-radius: 32px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.contact-banner__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-banner__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  margin: 0;
  color: var(--white);
}
.contact-banner__sub {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, .85);
}

/* --------------------------------------------------------------------------
   14. Podstrona „Polityka prywatności"
   -------------------------------------------------------------------------- */
.legal-head {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 32px 20px;
}
.page-title--legal {
  font-size: 46px;
  line-height: 1.12;
  margin: 0 0 12px;
}
.legal-meta {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}
.legal-intro-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 32px 0;
}
.legal-intro {
  background: var(--purple-pale);
  border-radius: 24px;
  padding: 28px 32px;
}
.legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal-section__num {
  color: var(--primary);
  white-space: nowrap;
}
.legal-text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted-2);
}
.legal-text--spaced { margin-top: 4px; }
.legal-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.legal-subhead {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 16px;
}
.legal-list {
  margin: 0;
  padding-left: 22px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted-2);
}
.legal-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.legal-contact-box {
  background: var(--lime-pale);
  border-radius: 20px;
  padding: 24px 28px;
  margin-top: 4px;
}
.legal-contact-box .legal-text { color: var(--lime-ink); }

/* Ustępy numerowane (§ N ust. M) i podpunkty literowe (lit. a, b, c).
   Numeracja restartuje się w każdym paragrafie — odsyłacze w treści mają postać
   „§ N ust. M lit. X", więc licznik nie musi nieść numeru paragrafu. */
.legal-olist {
  margin: 0;
  padding-left: 26px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-olist ::marker,
.legal-olist::marker { color: var(--primary); }
.legal-olist > li::marker {
  color: var(--primary);
  font-weight: 800;
}
.legal-olist--alpha {
  list-style: lower-alpha;
  margin-top: 10px;
  padding-left: 22px;
  gap: 8px;
}

/* Słowniczek pojęć (§ 2) */
.legal-defs {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted-2);
}
.legal-defs dt {
  font-weight: 800;
  color: var(--ink);
  margin-top: 12px;
}
.legal-defs dt:first-child { margin-top: 0; }
.legal-defs dd { margin: 2px 0 0; }

/* Tabele (§ 3 i § 5). Wrapper przewija się poziomo, żeby nie przewijała się cała
   strona; na wąskich ekranach tabela rozkłada się na karty (patrz sekcja 16). */
.legal-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  -webkit-overflow-scrolling: touch;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-2);
}
.legal-table__caption {
  caption-side: top;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 8px;
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--card-border);
  padding: 10px 14px;
  vertical-align: top;
  text-align: left;
}
.legal-table th {
  background: var(--purple-pale);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   15. Okno „Jak uzyskać dostęp" (modal na wierzchu strony)
   -------------------------------------------------------------------------- */
/* Natywny <dialog>. Sam element jest przezroczysty i bez paddingu — dzięki temu
   klik w tło trafia w <dialog> (target === dialog w JS) i zamyka okno; widoczna
   karta to .access-modal__panel w środku. */
.access-modal {
  width: 100%;
  max-width: min(520px, 92vw);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  /* wejście/wyjście przez @starting-style + allow-discrete — na starszych
     przeglądarkach po prostu brak animacji, okno działa tak samo */
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition:
    opacity var(--t-fast) ease,
    transform var(--t-fast) ease,
    display var(--t-fast) allow-discrete,
    overlay var(--t-fast) allow-discrete;
}
.access-modal[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@starting-style {
  .access-modal[open] {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
}
.access-modal::backdrop {
  background: rgba(20, 27, 61, 0);
  transition:
    background var(--t-fast) ease,
    display var(--t-fast) allow-discrete,
    overlay var(--t-fast) allow-discrete;
}
.access-modal[open]::backdrop { background: rgba(20, 27, 61, .55); }
@starting-style {
  .access-modal[open]::backdrop { background: rgba(20, 27, 61, 0); }
}
/* nie przewijaj strony pod otwartym oknem */
html:has(.access-modal[open]) { overflow: hidden; }

.access-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  background: var(--white);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(20, 27, 61, .28);
  overflow: hidden; /* przytnij do rogów; przewija się .access-modal__views */
}
/* treść przewija się w środku — „×" zostaje przypięte do rogu panelu */
.access-modal__views {
  overflow-y: auto;
  padding: 32px 28px;
}
.access-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--t-fast);
}
.access-modal__close:hover { background: var(--purple-pale); color: var(--primary); }

/* akcenty ról — paleta strony (fiolet / limonka) */
.access-tint--parent   { background: var(--purple-pale); color: var(--primary); }
.access-tint--teacher  { background: var(--lime-pale);   color: var(--lime-ink); }
.access-tint--director { background: var(--primary);     color: var(--white); }

/* widok 1 — wybór roli */
.access-choose { flex-direction: column; gap: 12px; }
.access-choose:not([hidden]) { display: flex; }
.access-modal__heading {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 25px;
  line-height: 1.2;
  margin: 2px 44px 0 0;
  color: var(--ink);
}
.access-modal__lead {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.access-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border: 2px solid var(--card-border);
  border-radius: 18px;
  background: var(--white);
  font-family: inherit;
  cursor: pointer;
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, border-color var(--t-fast) ease;
}
.access-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(20, 27, 61, .10);
  border-color: var(--border-hover);
}
.access-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.access-card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.access-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.access-card__subtitle { font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.access-card__chevron { flex-shrink: 0; color: var(--muted); }

/* widok 2 — szczegóły roli */
.access-detail { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.access-detail:not([hidden]) { display: flex; }
.access-detail__back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border: none;
  background: none;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity var(--t-fast);
}
.access-detail__back:hover { opacity: .7; }
.access-detail__blob {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.access-detail__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  margin: 0;
  color: var(--ink);
}
.access-detail__title:focus { outline: none; }
.access-detail__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 410px;
}
.access-detail__email {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  user-select: text;
}
.access-detail__mail { margin-top: 6px; }

/* --------------------------------------------------------------------------
   16. Responsywność
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .site-header__logo { height: 50px; }
  .hero { grid-template-columns: 1fr; }
  .hero__title { font-size: 31px; line-height: 1.24; font-weight: 700; }
  .hero__title-sub { font-size: 20px; margin-top: 8px; }
  .hero__lead { font-size: 18px; }
  /* przyciski sklepów obok siebie (a nie jeden pod drugim) */
  .hero__actions { flex-wrap: nowrap; gap: 10px; justify-content: center; width: 100%; }
  .hero__actions .btn-store { flex: 0 1 auto; min-width: 0; padding: 11px 14px; justify-content: center; gap: 8px; }
  .hero__actions .btn-store__name { font-size: 16px; white-space: nowrap; }
  /* przycisk „jak uzyskać dostęp" wyśrodkowany pod sklepami; okno ciaśniejsze */
  .hero__access { justify-content: center; width: 100%; }
  .access-modal__panel { border-radius: 26px; }
  .access-modal__views { padding: 26px 20px; }
  .access-modal__heading { font-size: 22px; }
  .access-detail__text { font-size: 15.5px; }
  /* mniej scrollowania: ciaśniejsze sekcje i mniejsze telefony na mobilce */
  .hero { padding-bottom: 48px; }
  .features { gap: 40px; padding-bottom: 40px; }
  .feature { grid-template-columns: 1fr; gap: 20px; }
  .feature__media { order: 2; }
  .feature__title { font-size: 26px; }
  .feature__title-addon { font-size: 21px; }
  .feature__desc { font-size: 16.5px; line-height: 1.55; }
  /* telefony w sekcjach mają ten sam rozmiar co telefon w hero */
  .feature__screen:has(.feature__img) { width: 285px; }
  .benefits { padding-top: 8px; padding-bottom: 56px; }
  .benefits__title { margin-bottom: 20px; font-size: 30px; }
  .benefits__grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 0; padding: 22px; }
  .benefit-card__text { font-size: 16.5px; }
  .info-grid { grid-template-columns: 1fr; }
  .intro-wrap { padding-bottom: 56px; }
  .intro { padding: 36px 24px; border-radius: 30px; gap: 12px; }
  .intro__title { font-size: 27px; }
  .intro__body { font-size: 16.5px; text-align: left; }
  .flow { flex-direction: column; gap: 12px; }
  .flow__step { width: 100%; max-width: 320px; }
  .flow__arrow { transform: rotate(90deg); }
  .cta { padding-bottom: 56px; }
  .cta__card { padding: 48px 24px; border-radius: 28px; }
  .cta__title { font-size: 30px; }
  .cta__text { font-size: 16.5px; }
  .cta__card .btn-cta { font-size: 17px; padding: 15px 26px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Tabele polityki prywatności: zamiast poziomego przewijania każdy wiersz staje
     się kartą, a nagłówek kolumny wraca jako etykieta z atrybutu data-label. */
  .page-title--legal { font-size: 34px; }
  .legal-table-wrap { overflow-x: visible; }
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td { display: block; }
  /* W trybie kartowym tabela jest blokiem, więc caption przestaje dziedziczyć jej
     szerokość i zawijałby się do szerokości najdłuższego wyrazu. */
  .legal-table__caption { display: block; }
  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .legal-table tr {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 6px 16px 14px;
    margin-bottom: 12px;
  }
  .legal-table td {
    border: 0;
    padding: 8px 0 0;
  }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 2px;
  }
  .legal-olist { padding-left: 22px; }
  .legal-olist--alpha { padding-left: 18px; }
}

@media (max-width: 760px) {
  .page-title { font-size: 36px; }
  .help-grid { grid-template-columns: 1fr; }
  .contact-banner { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   17. Ograniczenie ruchu (dostępność)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .lvz-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .phone,
  .hero__note,
  .feature__note,
  .cta__card.lvz-in { animation: none; }
  .card-hover:hover,
  .btn-contact:hover,
  .btn-store--apple:hover,
  .btn-store--google:hover,
  .btn-cta:hover,
  .btn-access:hover,
  .access-card:hover { transform: none; }
  .btn-access:hover .btn-access__icon { transform: none; }
  .access-modal,
  .access-modal::backdrop { transition: none; }
}
