/* ============================================================
   WSPOLNY SYSTEM WIZUALNY — cennik i CTA
   ============================================================

   Jedno zrodlo prawdy dla obu przestrzeni:
   - serwis statyczny (public/index.html) laduje ten plik przez <link>,
   - aplikacja Next.js laduje go w app/layout.tsx.

   System: struktura BRAYLO + poprawki wlascicielki (2026-07-29):
   1. Cennik JASNY: biale, wysokie karty z rozbudowana lista cech.
      Wyrozniony plan ma gradientowa obwodke niebiesko-fioletowa.
   2. DWA kolory marki uzywane rownorzednie: niebieski i fiolet,
      najczesciej jako gradient miedzy nimi.
   3. Koncowe CTA rozciagniete na CALA szerokosc ekranu, gradientowe.
   4. Naglowki DOKLADNIE jak na landingu symulatora: Inter 800, ciasny
      tracking, ostatnie slowa naglowka w gradiencie marki (.ui-accent-word,
      ten sam efekt co .highlight). Bez szeryfow i bez podkresleni —
      decyzja wlascicielki 2026-07-29.
   5. Animacja tylko wejsciowa, raz. Zero zapetlen.

   Tokeny sa lokalne (prefiks --ui-), zeby plik dzialal takze na stronach
   statycznych, ktore nie laduja globals.css.
   ============================================================ */

:root {
  --ui-blue: #2f5cff;
  --ui-blue-deep: #2563eb; /* bialy tekst na nim: kontrast 5,2:1 (AA) */
  --ui-violet: #7c3aed;    /* bialy tekst na nim: kontrast 5,9:1 (AA) */
  --ui-ink: #0f172a;
  --ui-ink-muted: #475569;
  --ui-line: #e2e8f0;
  --ui-gradient: linear-gradient(135deg, var(--ui-blue) 0%, var(--ui-violet) 100%);
  /* Naglowki jak na landingu symulatora: Inter 800, ciasny tracking. */
  --ui-font-heading: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Pomocnicze: naglowki sekcji ---------- */

/* Mala etykieta nad naglowkiem sekcji. */
.ui-label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--ui-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ui-blue-deep); /* awaryjnie, gdy brak background-clip */
}

/* Slowo akcentowe w naglowku: gradient marki w tym samym kroju co naglowek.
   DOKLADNIE ten sam efekt co .highlight na landingu symulatora
   (decyzja wlascicielki 2026-07-29: zadnej szeryfowej kursywy,
   zadnych podkresleni). JEDNO slowo lub fraza na naglowek. */
.ui-accent-word {
  background: var(--ui-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ui-violet); /* awaryjnie, gdy brak background-clip */
  /* Gdy slowo akcentowe lamie sie na dwie linie (np. "krok po kroku" na
     waskim ekranie), kazda linia dostaje PELNY gradient zamiast wycinka —
     bez tego gorna linia wychodzi niebieska, a dolna fioletowa. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Cennik: jasne, wysokie karty ---------- */

.ui-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
}

@media (max-width: 900px) {
  .ui-pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
  }
}

.ui-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 560px;
  padding: 2.5rem 2rem 2.25rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ui-ink);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.06),
    0 16px 48px rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Najechanie: niebieska poswiata — DOKLADNIE ten sam efekt, ktory strona
   glowna miala od poczatku (pierscien + halo w kolorze marki). */
@media (hover: hover) and (pointer: fine) {
  .ui-price-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 124, 255, 0.55);
    box-shadow:
      0 18px 45px rgba(15, 23, 42, 0.12),
      0 0 0 6px rgba(79, 124, 255, 0.08),
      0 24px 58px rgba(79, 124, 255, 0.14);
  }
}

/* Wyrozniony plan: gradientowa obwodka niebiesko-fioletowa + poswiata. */
.ui-price-card--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97))
      padding-box,
    var(--ui-gradient) border-box;
  box-shadow:
    0 14px 34px rgba(47, 92, 255, 0.16),
    0 22px 60px rgba(124, 58, 237, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .ui-price-card--featured:hover {
    box-shadow:
      0 18px 45px rgba(79, 124, 255, 0.22),
      0 0 0 10px rgba(79, 124, 255, 0.12);
  }
}

@media (min-width: 1024px) {
  .ui-price-card--featured {
    transform: scale(1.04);
  }

  @media (hover: hover) and (pointer: fine) {
    .ui-price-card--featured:hover {
      transform: scale(1.04) translateY(-8px);
    }
  }
}

.ui-price-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: var(--ui-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.ui-price-name {
  margin: 0 0 0.3rem;
  font-family: var(--ui-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ui-ink);
}

.ui-price-tagline {
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ui-ink-muted);
}

.ui-price-value {
  margin: 0;
  font-family: var(--ui-font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ui-ink);
}

.ui-price-card--featured .ui-price-value {
  background: var(--ui-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ui-blue-deep);
}

.ui-price-period {
  margin-left: 0.15rem;
  font-family: var(--ui-font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
  -webkit-text-fill-color: initial;
  background: none;
}

.ui-price-note {
  margin: 0.4rem 0 1.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

.ui-price-card--featured .ui-price-note {
  color: var(--ui-violet);
}

.ui-price-list {
  flex: 1;
  margin: 0 0 2rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--ui-line);
  list-style: none;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.ui-price-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ui-ink-muted);
}

.ui-price-check {
  flex-shrink: 0;
  margin-top: 0.05rem;
  font-weight: 700;
  background: var(--ui-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ui-blue-deep);
}

/* ---------- Przyciski ---------- */

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.9rem 1.7rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s ease, background 0.2s ease, transform 0.15s ease,
    box-shadow 0.2s ease;
}

.ui-btn:active {
  transform: scale(0.98);
}

.ui-btn--block {
  width: 100%;
}

/* Glowny: gradient marki — jedyny taki przycisk w siatce cennika. */
.ui-btn--primary {
  background: var(--ui-gradient);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.35);
}

.ui-btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.45);
}

/* Drugorzedny na JASNEJ karcie: obrys, bez wypelnienia. */
.ui-btn--ghost {
  background: #ffffff;
  border: 1px solid var(--ui-line);
  color: var(--ui-ink);
}

.ui-btn--ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Trzeci wariant: pelny granat (np. plan Pro). */
.ui-btn--dark {
  background: var(--ui-ink);
  color: #ffffff;
}

.ui-btn--dark:hover {
  background: #1e293b;
}

/* ---------- Przycisk HERO w stylu BRAYLO (obie strony) ----------
   Ciemna baza + wewnetrzna poswiata marki (u BRAYLO limonka, u nas
   niebieski→fiolet), asymetryczne rogi 32/16 i kropka-akcent w rogu.
   Jedno zrodlo prawdy — uzywane w hero symulatora i kursow. */
.ui-hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 62px;
  padding: 1.1rem 2.6rem;
  border: 0;
  border-radius: 32px 16px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 92, 255, 0.55), transparent 45%),
    radial-gradient(circle at 88% 90%, rgba(124, 58, 237, 0.6), transparent 48%),
    linear-gradient(135deg, #151b2e 0%, #0b0f19 100%);
  box-shadow:
    0 16px 38px rgba(15, 23, 42, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ui-hero-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow:
    0 22px 50px rgba(79, 70, 229, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ui-hero-btn:active {
  transform: scale(0.98);
}

/* Kropka-akcent w gornym rogu (odpowiednik limonkowej u BRAYLO). */
.ui-hero-btn::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b8cff, #a855f7);
  box-shadow: 0 0 10px 2px rgba(124, 58, 237, 0.65);
}

.ui-hero-btn .ui-hero-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.ui-hero-btn:hover .ui-hero-arrow {
  transform: translateX(4px);
}

/* Jasny wariant tego samego przycisku — na CIEMNYM tle (np. panel cennika),
   zeby mocno kontrastowal. Zachowuje ksztalt (rogi 32/16), kropke i strzalke. */
.ui-hero-btn--light {
  background: #ffffff;
  color: var(--ui-blue-deep);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
}

.ui-hero-btn--light:hover {
  filter: none;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.34);
}

/* Glowny przycisk zakupu na CIEMNYM panelu — ma dominowac: bialy + halo
   (jasny pierscien + kolorowa poswiata) i lekkie powiekszenie na hover.
   To jest punkt konwersji, wiec przyciaga wzrok najmocniej na stronie. */
.ui-hero-btn--cta {
  background: #ffffff;
  color: var(--ui-blue-deep);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.14),
    0 18px 42px rgba(0, 0, 0, 0.4),
    0 10px 30px rgba(124, 58, 237, 0.55);
}

.ui-hero-btn--cta:hover {
  filter: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.2),
    0 24px 54px rgba(0, 0, 0, 0.45),
    0 12px 34px rgba(124, 58, 237, 0.7);
}

/* Drugorzedny hero: minimalny, ikona „play" w okregu + tekst, bez ramki. */
.ui-hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 62px;
  padding: 1.1rem 1.5rem;
  border: 0;
  background: transparent;
  color: var(--ui-ink);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ui-hero-btn-ghost:hover {
  color: var(--ui-blue-deep);
}

.ui-hero-btn-ghost svg {
  flex: none;
}

/* Mniejszy przycisk na telefonach, zeby etykieta (np. "Kup pakiet · 199 zl")
   miescila sie w jednej linii bez rozrywania. */
@media (max-width: 480px) {
  .ui-hero-btn {
    min-height: 56px;
    padding: 0.95rem 1.4rem;
    font-size: 1rem;
    gap: 0.5rem;
  }
  /* Ozdobna kropka byla przypieta na sztywno (15/18 px). Przy mniejszym
     przycisku, rozciagnietym na cala szerokosc, wygladala na zgubiona -
     dlatego na telefonie jest mniejsza i blizej naroznika. */
  .ui-hero-btn::before {
    top: 10px;
    left: 12px;
    width: 7px;
    height: 7px;
    box-shadow: 0 0 7px 1px rgba(124, 58, 237, 0.6);
  }
  .ui-hero-btn .ui-hero-arrow {
    font-size: 1.3rem;
  }
}

/* ---------- Koncowe CTA: pelna szerokosc, gradient marki ---------- */

/* UWAGA: element z ta klasa ma lezec bezposrednio w <body>/<main>,
   bez rodzica z bocznym paddingiem — sekcja rozciaga sie od krawedzi
   do krawedzi ekranu. */
.ui-cta {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 6.5rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 90% at 15% 10%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 80% at 90% 90%, rgba(255, 255, 255, 0.1), transparent 50%),
    linear-gradient(135deg, #2f5cff 0%, #5847f5 50%, #7c3aed 100%);
  text-align: center;
}

/* Rozmyte jasne kule daja glebie bez dodatkowej grafiki. */
.ui-cta::before,
.ui-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(52px);
  pointer-events: none;
}

.ui-cta::before {
  top: -3rem;
  left: 8%;
  width: 16rem;
  height: 16rem;
}

.ui-cta::after {
  bottom: -4rem;
  right: 6%;
  width: 20rem;
  height: 20rem;
}

.ui-cta > * {
  position: relative;
  z-index: 1;
}

.ui-cta-title {
  margin: 0 auto 1.25rem;
  max-width: 56rem;
  font-family: var(--ui-font-heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.ui-cta-lead {
  max-width: 34rem;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.ui-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 2.4rem;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ui-blue-deep);
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.ui-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
}

.ui-cta-btn:hover .ui-cta-arrow {
  transform: translateX(4px);
}

.ui-cta-btn:active {
  transform: scale(0.98);
}

.ui-cta-arrow {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.ui-cta-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Animacje wejscia: Next.js robi to framer-motion, a strony statyczne
   wlasnym IntersectionObserverem (.animate-fade-up w index.html). */

/* ---------- Drobiazgi na male ekrany ---------- */

@media (max-width: 480px) {
  .ui-price-card {
    min-height: 0;
    padding: 2rem 1.5rem;
  }

  .ui-cta {
    padding: 4.5rem 1.25rem;
  }
}
