/* ===== Strona powitalna (/ dla niezalogowanych, /rejestracja) — według projektu z Canvy =====
   Zawsze jasna, niezależnie od motywu aplikacji. Grafiki: /img/canva/ (z projektu w Canvie). */
@font-face {
  font-family: 'Lexend'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/vendor/lexend-latin-ext-wght-normal.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: 'Lexend'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/vendor/lexend-latin-wght-normal.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;
}

.lp {
  --lp-navy: #0b2849; --lp-blue: #1255c6; --lp-blue-h: #0d45a5; --lp-logo: #1b59c6; --lp-muted: #4a5d74;
  --lp-line: #e3eaf3; --lp-shadow: 0 6px 22px rgba(11, 40, 73, .08);
  color-scheme: light; background: #fff; color: var(--lp-navy); min-height: 100vh;
  font-family: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.55;
  overflow-x: clip;
}
.lp a { text-decoration: none; }
.lp h1, .lp h2, .lp h3 { color: var(--lp-navy); margin: 0; }
.lp img { display: block; }
.lp-wrap { max-width: 1230px; margin: 0 auto; padding: 0 32px; }

/* Przyciski */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 7px;
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer; border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.lp-btn.lg { height: 48px; padding: 0 28px; font-size: 16.5px; border-radius: 8px; }
.lp-btn.primary { background: var(--lp-blue); color: #fff; box-shadow: 0 6px 16px rgba(18, 85, 198, .28); }
.lp-btn.primary:hover { background: var(--lp-blue-h); transform: translateY(-1px); }
.lp-btn.outline { background: #fff; color: var(--lp-blue); border-color: var(--lp-blue); }
.lp-btn.outline:hover { background: #eef4fd; }
.lp-btn.ghost { background: #fff; color: #5b6b80; border-color: #d5dce5; }
.lp-btn.ghost:hover { color: var(--lp-navy); border-color: #b9c4d2; }

/* Pasek */
.lp-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--lp-line), 0 2px 10px rgba(11, 40, 73, .04); }
.lp-nav-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; }
.lp-logo { font-size: 26px; font-weight: 700; letter-spacing: -.015em; color: var(--lp-logo); justify-self: start; }
.lp-links { display: flex; gap: 58px; }
.lp-links a { color: var(--lp-navy); font-weight: 600; font-size: 15.5px; }
.lp-links a:hover { color: var(--lp-blue); }
.lp-nav-btns { justify-self: end; display: flex; gap: 12px; }
.lp-nav-btns .lp-btn { height: 34px; padding: 0 16px; font-size: 14px; }

/* ---------- Górny pas — położenie jak w projekcie (1366 × 312), --u = 1 piksel projektu ---------- */
.lp-hero {
  position: relative; z-index: 2; container-type: inline-size;
  background: linear-gradient(90deg, #fbfcfd 50%, transparent 50%), linear-gradient(180deg, #677c89 0%, #5d7380 60%, #a4a5a0 100%);
}
.lp-stage {
  --u: min(calc(100cqw / 1366), 2px); /* zdjęcie 2x wystarcza do ekranów 2732 px */
  position: relative; width: calc(1366 * var(--u)); height: calc(312 * var(--u)); margin: 0 auto;
  background: url(/img/gora-szybowiec.jpg) 0 0 / 100% 100% no-repeat;
  background-image: image-set(url(/img/gora-szybowiec.jpg) 1x, url(/img/gora-szybowiec@2x.jpg) 2x);
}
.lp-hero-text { position: absolute; left: calc(68 * var(--u)); top: calc(33 * var(--u)); }
.lp-hero h1 { font-size: calc(37 * var(--u)); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.lp-lead { margin: calc(17 * var(--u)) 0 0; width: calc(430 * var(--u)); font-size: calc(17 * var(--u)); line-height: 1.12; color: rgba(11, 40, 73, .78); }
.lp-hero .lp-cta { position: absolute; left: calc(4 * var(--u)); top: calc(216 * var(--u)); display: flex; gap: calc(20 * var(--u)); }
.lp-btn.hero { height: calc(37 * var(--u)); padding: 0; font-size: calc(15 * var(--u)); border-radius: calc(6 * var(--u)); }
.lp-btn.hero.primary { width: calc(172 * var(--u)); }
.lp-btn.hero.outline { width: calc(204 * var(--u)); border-width: calc(1.5 * var(--u)); }

.lp-hero-visual { position: absolute; inset: 0; pointer-events: none; }
.cv-phone { position: absolute; left: calc(1005 * var(--u)); top: 0; width: calc(238 * var(--u)); height: calc(339 * var(--u)); z-index: 2; }
.cv-phone > * { position: absolute; }
.cv-frame { left: 0; top: 0; width: 100%; height: 100%; }
/* Ekran telefonu w perspektywie. Treść jest rysowana na płasko w układzie 390×844 (ekran iPhone'a), a macierz
   przenosi ją na czworokąt wyświetlacza zmierzony na grafice (skrypt tools/telefon-perspektywa.cjs).
   .cv-design ma wymiary projektu telefonu (238×339) i jest skalowany jednostką --u; --k to ta jednostka
   jako liczba (tan(atan2()) zamienia długość na liczbę, bo scale() i matrix3d() nie przyjmują px).
   Warstwa z perspektywą (.cv-screen) jest mała, a treść 390×844 jest w niej pomniejszona (.cv-ui): Chrome rysuje
   taką warstwę w skali co najmniej 1 jej piksela, więc duża warstwa byłaby pomniejszana bez wygładzania
   i krawędzie (np. przycisku START) wychodziły poszarpane. */
.cv-phone { --k: tan(atan2(var(--u), 1px)); }
.cv-design { left: 0; top: 0; width: 238px; height: 339px; transform-origin: 0 0; transform: scale(var(--k)); }
.cv-screen {
  position: absolute; left: 0; top: 0; width: 130px; height: 281.3333px; transform-origin: 0 0;
  transform: matrix3d(1.197877, 0.07639787, 0, -0.0001542081, -0.227563, 1.073055, 0, -0.00005311251, 0, 0, 1, 0, 67.67869, 5.309639, 0, 1);
}
.cv-ui {
  position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform-origin: 0 0; transform: scale(.333333);
  color: var(--lp-navy); line-height: 1; white-space: nowrap;
}
.cv-ui > * { position: absolute; display: block; }
.ps-time { left: 28px; top: 15px; width: 60px; text-align: center; font-size: 17px; font-weight: 600; }
.ps-sig { left: 314px; top: 19px; width: 20px; height: 13px; }
.ps-bat { left: 340px; top: 18.5px; width: 28px; height: 14px; }
.ps-menu { left: 26px; top: 64px; width: 28px; height: 24px; }
.ps-bell { left: 338px; top: 62px; width: 26px; height: 28px; }
.ps-title { left: 0; top: 117px; width: 390px; text-align: center; font-size: 33px; font-weight: 700; letter-spacing: -.01em; }
.ps-sub { left: 0; top: 163px; width: 390px; text-align: center; font-size: 18px; color: #61708a; }
.ps-ring { left: 80px; top: 240px; width: 230px; height: 230px; color: #179a4c; }
.ps-start {
  left: 50px; top: 553px; width: 290px; height: 86px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #1aa753, #0d7f39); box-shadow: 0 12px 26px rgba(13, 127, 57, .28);
  color: #fff; font-size: 33px; font-weight: 700; letter-spacing: .08em;
}
.ps-tabs { left: 0; top: 735px; width: 390px; height: 72px; border-top: 1.5px solid #e2e8ef; display: flex; align-items: center; justify-content: space-around; padding: 0 22px; color: #9aa7b8; }
.ps-tabs svg { width: 30px; height: 30px; }
.ps-tabs .on { color: #179a4c; }
.ps-ind { left: 128px; top: 823px; width: 134px; height: 5px; border-radius: 3px; background: #10161e; }
.lp .cv-loop { display: none; } /* pętla z projektu Canvy wypadała na statecznik szybowca na zdjęciu */

/* ---------- Sekcje ---------- */
.lp-section { padding: 40px 0; }
#funkcje { padding-top: 26px; scroll-margin-top: 40px; }
.lp-h2 { text-align: center; font-size: clamp(22px, 2vw, 27px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 26px; }
.lp-h3 { text-align: center; font-size: clamp(21px, 1.8vw, 24px); font-weight: 700; margin-bottom: 22px; }
.lp-anchor { scroll-margin-top: 70px; }

.lp-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.lp-card { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 16px; align-items: start; background: #fff; border: 1px solid var(--lp-line); border-radius: 10px; padding: 20px 20px; box-shadow: var(--lp-shadow); }
.lp-card h3 { font-size: 16.5px; font-weight: 600; line-height: 1.25; margin: 2px 0 7px; }
.lp-card p { margin: 0; font-size: 14px; color: var(--lp-muted); line-height: 1.5; }
.lp-ic img { width: 46px; height: 52px; object-fit: contain; object-position: left top; }
.lp-soon { display: inline-block; vertical-align: 2px; margin-left: 2px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #fdf0d5; color: #8a5600; }

.lp-duo-sec { padding-top: 16px; padding-bottom: 48px; }
.lp-duo { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: 44px; }
.lp-vline { background: var(--lp-line); }
.lp-audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-who { text-align: center; background: #fff; border: 1px solid var(--lp-line); border-radius: 10px; padding: 16px 12px 18px; box-shadow: var(--lp-shadow); }
.lp-bubble { height: 64px; width: auto; max-width: 96px; margin: 0 auto; object-fit: contain; }
.lp-who h3 { font-size: 15px; font-weight: 600; line-height: 1.3; margin: 10px 0 4px; }
.lp-who p { margin: 0; font-size: 13px; color: var(--lp-muted); line-height: 1.45; }

#jak-to-dziala { position: relative; }
.lp-steps { list-style: none; margin: 0; padding: 18px 120px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.lp-steps::before { content: ""; position: absolute; top: 33px; left: 16px; right: 110px; border-top: 2px dashed #a8c7ec; }
.lp-steps li { position: relative; }
.lp-dot { position: relative; z-index: 1; display: block; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3b7be0, var(--lp-blue)); box-shadow: 0 0 0 6px #fff, 0 6px 14px rgba(18, 85, 198, .3); }
.lp-steps p { margin: 16px 0 0; font-size: 14px; color: var(--lp-muted); line-height: 1.5; }
.lp-steps p span { color: var(--lp-navy); font-weight: 600; }
.lp-steps-plane { position: absolute; right: -4px; top: 46px; width: 136px; height: auto; }

/* Pas z chmurami */
.lp-band { position: relative; overflow: hidden; background: #dcecfb url(/img/canva/pas-dol.jpg) center / cover no-repeat; }
.lp-band-plane { position: absolute; left: 14%; top: 50%; transform: translateY(-50%); width: 100px; height: auto; }
.lp-band-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 48px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; text-align: center; }
.lp-band h2 { font-size: clamp(22px, 2.1vw, 29px); font-weight: 700; letter-spacing: -.01em; }

.lp-foot-in { display: flex; justify-content: center; gap: 64px; padding-top: 14px; padding-bottom: 18px; font-size: 13.5px; color: var(--lp-muted); }
.lp-foot a { color: var(--lp-muted); }
.lp-foot a:hover { color: var(--lp-navy); }

/* Informacja o rejestracji */
.lp-solo { background: linear-gradient(90deg, #ffffff 0%, #f3f8fd 45%, #cfe3f7 100%); }
.lp-solo-in { display: grid; place-items: center; padding-top: 64px; padding-bottom: 64px; }
.lp-solo-card { max-width: 580px; background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; padding: 36px 34px; box-shadow: 0 14px 40px rgba(11, 40, 73, .1); }
.lp-solo-card h1 { font-size: 30px; font-weight: 700; letter-spacing: -.015em; margin: 14px 0 12px; }
.lp-solo-card p { margin: 0 0 10px; color: var(--lp-muted); }
.lp-solo-card .lp-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* Logowanie w tym samym stylu co strona powitalna (zawsze jasne) */
.lp-auth {
  color-scheme: light; --bg: #f3f5f8; --surface: #ffffff; --surface-2: #f6f8fa; --surface-3: #eceff3; --border: #dde3ea; --border-strong: #c7cfd9;
  --text: #0b2849; --muted: #4a5d74; --primary: #1255c6; --primary-hover: #0d45a5; --primary-contrast: #ffffff; --primary-soft: #e4edfc;
  --danger: #c22a2a; --danger-soft: #fce3e3;
  background: linear-gradient(90deg, #ffffff 0%, #f3f8fd 45%, #cfe3f7 100%); color: var(--text);
  font-family: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
.lp-auth .auth-theme { display: none; }
.lp-auth .auth-card { box-shadow: 0 14px 40px rgba(11, 40, 73, .1); }
.lp-auth .brand div { color: #1b59c6; font-size: 26px; font-weight: 700; letter-spacing: -.015em; }
.lp-auth .input, .lp-auth .btn { font-family: inherit; }

/* ---------- Węższe ekrany: tekst nad pasem ze zdjęciem i telefonem ---------- */
@media (max-width: 1099px) {
  .lp-links { gap: 28px; }
  .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-duo { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .lp-vline { display: none; }

  .lp-hero { background: linear-gradient(180deg, #fbfcfd 0%, #f3f7fc 100%); container-type: normal; }
  .lp-stage { width: auto; height: auto; background: none; }
  .lp-hero-text { position: static; padding: 34px 32px 0; max-width: 640px; }
  .lp-hero h1 { font-size: clamp(30px, 5.4vw, 42px); white-space: normal; }
  .lp-lead { width: auto; margin-top: 16px; font-size: 17px; line-height: 1.5; }
  .lp-hero .lp-cta { position: static; margin-top: 22px; gap: 12px; flex-wrap: wrap; }
  .lp-btn.hero { height: 46px; padding: 0 24px; font-size: 16px; border-radius: 8px; }
  .lp-btn.hero.primary, .lp-btn.hero.outline { width: auto; }
  .lp-btn.hero.outline { border-width: 1.5px; }

  .lp-hero-visual {
    --u: .82px; position: relative; inset: auto; margin-top: 28px; height: 270px;
    background: url(/img/gora-szybowiec@2x.jpg) 62% 0 / auto 100% no-repeat;
  }
  .cv-phone { left: auto; right: max(4%, calc(50% - 330px)); top: 8px; }
  .cv-loop { display: none; }
  #funkcje { padding-top: 56px; }
}
@media (max-width: 900px) {
  .lp-wrap { padding: 0 18px; }
  .lp-nav-in { display: flex; height: 58px; }
  .lp-links { display: none; }
  .lp-nav-btns { margin-left: auto; gap: 8px; }
  .lp-logo { font-size: 23px; }
  .lp-hero-text { padding: 30px 18px 0; }
  .lp-solo-in { padding-top: 28px; padding-bottom: 28px; }
}
@media (max-width: 600px) {
  .lp-nav-btns .lp-btn.primary { display: none; } /* „Załóż konto” jest zaraz pod spodem */
  .lp-br { display: none; }
  .lp-hero .lp-cta .lp-btn.hero { width: 100%; }
  .lp-hero-visual { --u: .64px; height: 220px; background-position: 60% 0; }
  .lp-features, .lp-audience { grid-template-columns: minmax(0, 1fr); }
  .lp-who { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 2px 14px; text-align: left; padding: 14px 16px; align-items: center; }
  .lp-who .lp-bubble { grid-row: span 2; height: 54px; }
  .lp-who h3 { margin: 0; }
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 0; }
  .lp-steps::before { top: 16px; bottom: 16px; left: 15px; right: auto; border-top: 0; border-left: 2px dashed #a8c7ec; }
  .lp-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; align-items: start; }
  .lp-steps p { margin: 5px 0 0; }
  .lp-steps-plane { display: none; }
  .lp-band-plane { display: none; }
  .lp-band-in { gap: 18px; padding-top: 28px; padding-bottom: 28px; }
  .lp-foot-in { gap: 28px; }
  .lp-solo-card { padding: 26px 20px; }
}
