/* ==========================================================================
   Wenecja — strona (landing page)
   Paleta i typografia spójne z aplikacją: laguna, terakota, złoto,
   kroje Fraunces (nagłówki) i Manrope (tekst).
   ========================================================================== */

/* --- 1. Zmienne ---------------------------------------------------------- */

:root {
  color-scheme: light dark;
  /* Trzy warstwy: wapienne tło strony, papier paneli, zagłębiony pasek. */
  --ivory: #f4ecdd;
  --paper: #fffdf7;
  --lagoon: #0f4c5c;
  --lagoon-deep: #082f39;
  --lagoon-mid: #21697a;
  --lagoon-mist: #d5e7e4;
  /* Terakota dekoracyjna i duża; osobny, ciemniejszy atrament do małego tekstu. */
  --terracotta: #c3653f;
  --terracotta-ink: #9c4826;
  --terracotta-soft: #f4d9cc;
  --gold: #c9a44c;
  --gold-bright: #e6c77a;
  --gold-soft: #f2e3bc;
  --ink: #19211f;
  --muted: #5d645f;
  --outline: #c9b694;

  --bg: var(--ivory);
  --surface: var(--paper);
  --surface-2: #ebe1ce;
  --text: var(--ink);
  --text-muted: var(--muted);
  --head: var(--lagoon-deep);
  --line: color-mix(in srgb, var(--outline) 68%, transparent);
  --shadow-sm: 0 1px 2px rgb(24 40 41 / 0.06), 0 2px 8px rgb(24 40 41 / 0.05);
  --shadow-md: 0 4px 12px rgb(24 40 41 / 0.07), 0 18px 40px rgb(24 40 41 / 0.09);
  --shadow-lg: 0 10px 24px rgb(8 47 57 / 0.16), 0 40px 80px rgb(8 47 57 / 0.16);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Petrol zamiast inwersji światła — panele jaśnieją stopniowo nad tłem. */
    --bg: #071417;
    --surface: #12292e;
    --surface-2: #19343a;
    --text: #eef4f1;
    --text-muted: #a6b7b2;
    --head: #93dbd5;
    --outline: #40656d;
    --line: color-mix(in srgb, var(--outline) 78%, transparent);
    --terracotta: #f0a482;
    --terracotta-ink: #f4b295;
    --terracotta-soft: #3a2119;
    --gold-soft: #2b2310;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 2px 8px rgb(0 0 0 / 0.25);
    --shadow-md: 0 4px 12px rgb(0 0 0 / 0.35), 0 18px 40px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 10px 24px rgb(0 0 0 / 0.45), 0 40px 80px rgb(0 0 0 / 0.45);
  }

  /* Pasek CTA to wyniesiony petrol, nie rozjaśnione złoto. */
  .cta-strip { background: var(--surface-2); }

  /* Hero w ciemnym motywie: delikatniejsze poświaty, inaczej robi się muliste. */
  .hero {
    background:
      radial-gradient(60% 55% at 82% 8%, rgb(230 199 122 / 0.10) 0%, transparent 62%),
      radial-gradient(52% 48% at 8% 0%, rgb(138 211 205 / 0.10) 0%, transparent 60%),
      linear-gradient(180deg, #0c1e22, var(--bg));
  }
  .hero__copy h1 em::after { background: rgb(230 199 122 / 0.18); }
}

/* --- 2. Podstawy --------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: color-mix(in srgb, var(--outline) 80%, transparent) transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  caret-color: var(--terracotta-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lagoon); color: #fff; }
@media (prefers-color-scheme: dark) { ::selection { background: var(--head); color: var(--lagoon-deep); } }

img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  color: var(--head);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.65rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.35rem); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--lagoon-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--head); } }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lagoon);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Tekst tylko dla czytników ekranu */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- 3. Elementy wspólne ------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-ink);
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--gold-bright); }
.eyebrow .dot {
  width: 26px;
  height: 2px;
  background: currentColor;
  display: inline-block;
  border-radius: 2px;
}

.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--tint { background: color-mix(in srgb, var(--surface-2) 55%, var(--bg)); }
.section--dark {
  background: linear-gradient(160deg, var(--lagoon-deep), #061f26 65%, #0a2b33);
  color: #e6f0ee;
}
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { max-width: 62ch; margin-bottom: clamp(34px, 5vw, 60px); }
.section__lead { font-size: 1.06rem; color: var(--text-muted); max-width: 58ch; }
.section--dark .section__lead { color: #b7cdc9; }

/* Przyciski */
.btn {
  --btn-bg: var(--lagoon);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--lagoon); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--lagoon-deep); }
.btn--gold { --btn-bg: var(--gold-bright); --btn-fg: #26200c; }
.btn--gold:hover { --btn-bg: #f0d590; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--lagoon);
  border-color: color-mix(in srgb, var(--lagoon) 35%, transparent);
  box-shadow: none;
}
@media (prefers-color-scheme: dark) { .btn--ghost { --btn-fg: var(--head); border-color: var(--line); } }
.btn--ghost:hover { background: color-mix(in srgb, var(--lagoon) 8%, transparent); }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }
.btn--lg { padding: 15px 28px; font-size: 1.03rem; }
.btn--block { width: 100%; }

.link-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--gold-bright) 45%, transparent);
  padding-bottom: 2px;
}
.link-light:hover { border-bottom-color: var(--gold-bright); }
.link-light svg { width: 1em; height: 1em; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-muted); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--terracotta) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--terracotta) 45%, transparent);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 0.72em;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--terracotta);
  border-bottom: 2px solid var(--terracotta);
  transform: rotate(-45deg);
}
.ticks--light li { color: #b7cdc9; }
.ticks--light li::before { background: rgb(230 199 122 / 0.16); box-shadow: inset 0 0 0 1px rgb(230 199 122 / 0.5); }
.ticks--light li::after { border-color: var(--gold-bright); }

/* --- 4. Pasek nawigacji ------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.topbar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgb(8 47 57 / 0.06); }
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  box-shadow: var(--shadow-sm);
  display: block;
}
.brand__mark svg, .brand__mark img { width: 100%; height: 100%; stroke: none; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 1.22rem; font-weight: 600; color: var(--head); }
.brand__text small { font-size: 0.74rem; color: var(--text-muted); letter-spacing: 0.02em; }

.topbar__nav { display: flex; gap: 26px; margin-left: auto; }
.topbar__nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.78;
  transition: opacity 0.15s var(--ease), color 0.15s var(--ease);
}
.topbar__nav a:hover { opacity: 1; color: var(--terracotta-ink); }
.topbar__cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.language-switch { display: flex; gap: 2px; flex: none; }
.language-switch a {
  display: grid; place-items: center; min-width: 36px; min-height: 44px;
  border-radius: 10px; text-decoration: none; font-weight: 800; font-size: 0.8rem;
  color: var(--text-muted);
}
.language-switch a[aria-current="page"] { background: var(--surface-2); color: var(--head); }
.language-switch a:hover { color: var(--terracotta-ink); }
.edition-note { margin-top: 1rem; color: var(--text-muted); font-size: 0.9rem; }
.hero__edition .hero__visual { min-height: 640px; }
html[lang="en"] .hero__copy h1 em { white-space: normal; }
@media (max-width: 900px) {
  .hero__edition .hero__visual { min-height: 540px; }
}
@media (max-width: 600px) {
  .topbar__inner { gap: 8px; }
  .topbar__cta { gap: 4px; }
  .topbar__cta > .btn { display: none; }
  .brand__text small { max-width: 135px; }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3.5px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --- 5. Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 110px);
  background:
    radial-gradient(60% 55% at 82% 8%, color-mix(in srgb, var(--gold-soft) 70%, transparent) 0%, transparent 62%),
    radial-gradient(52% 48% at 8% 0%, color-mix(in srgb, var(--lagoon-mist) 65%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 80%, var(--bg)), var(--bg));
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.hero__copy h1 { margin-bottom: 20px; }
.hero__copy h1 em {
  font-style: normal;
  color: var(--terracotta);
  position: relative;
  white-space: nowrap;
}
.hero__copy h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.34em;
  background: color-mix(in srgb, var(--gold-bright) 55%, transparent);
  border-radius: 6px;
  z-index: -1;
}
.lead { font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.18rem); color: var(--text-muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
}
.hero__meta li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}

/* Telefony w hero */
.hero__visual { position: relative; min-height: 460px; }
.phone {
  position: absolute;
  width: clamp(200px, 25vw, 268px);
  aspect-ratio: 9 / 19.5;
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(160deg, #22383d, #0d2126);
  box-shadow: var(--shadow-lg);
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0b2b32;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone--back {
  right: 6%;
  top: 2%;
  transform: rotate(7deg);
  opacity: 0.92;
}
.phone--front {
  left: 4%;
  bottom: 0;
  transform: rotate(-4deg);
  z-index: 2;
}
.hero__chip {
  position: absolute;
  right: 0;
  bottom: 12%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.hero__chip svg { width: 18px; height: 18px; color: var(--lagoon-mid); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- 6. Liczby ---------------------------------------------------------- */

.stats { padding: 0 0 clamp(40px, 6vw, 70px); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
  font-weight: 600;
  color: var(--lagoon);
  line-height: 1.1;
}
.stat--long b { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .stat b { color: var(--head); } }
.stat span { font-size: 0.87rem; color: var(--text-muted); }

/* --- 7. Karty funkcji --------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--terracotta) 35%, var(--line)); }
.card--wide { grid-column: span 2; }
@media (max-width: 780px) { .card--wide { grid-column: span 1; } }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--lagoon) 9%, transparent);
  color: var(--lagoon);
  margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) { .card__icon { background: color-mix(in srgb, var(--head) 12%, transparent); color: var(--head); } }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card strong { color: var(--text); }

/* --- 8. Kroki ----------------------------------------------------------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lagoon);
  color: #fff;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-muted); font-size: 0.98rem; }

/* --- 9. Showcase -------------------------------------------------------- */

.showcase { display: grid; gap: clamp(48px, 7vw, 90px); }
.showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}
.showcase__grid--flip .showcase__media { order: 2; }
.showcase__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #0b2b32;
  max-width: 330px;
  margin-inline: auto;
}
.showcase__media img { width: 100%; height: auto; }
.showcase__copy h2 { margin-bottom: 18px; }

/* --- 10. Galeria -------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.shot { margin: 0; }
.shot__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b2b32;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.shot__btn:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.shot__btn img { width: 100%; height: auto; }
.shot figcaption {
  margin-top: 10px;
  font-size: 0.87rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

/* Podgląd pełnego zrzutu */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 460px);
  max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgb(6 20 24 / 0.78); backdrop-filter: blur(4px); }
.lightbox img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
  background: #0b2b32;
}
.lightbox__caption {
  color: #e6f0ee;
  text-align: center;
  font-size: 0.9rem;
  margin: 14px 0 0;
}
.lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* Bramka testu zamkniętego: grupa testerów, potem Google Play */
.gate {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  max-width: min(94vw, 480px);
  max-height: 92vh;
  overflow: auto;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.gate::backdrop { background: rgb(6 20 24 / 0.78); backdrop-filter: blur(4px); }
.gate__body { padding: clamp(22px, 4vw, 30px); display: grid; gap: 12px; }
.gate__body h2 { margin: 0; font-size: clamp(1.45rem, 3.2vw, 1.85rem); color: var(--head); }
.gate__body p { margin: 0; line-height: 1.55; }
.gate__step {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.gate__note { font-size: 0.86rem; color: var(--text-muted); }
.gate__note a { color: var(--lagoon-mid); }
.gate__subtitle { margin: 0; font-size: 1.05rem; color: var(--head); }
.gate__how {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 4px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.gate__promo { display: grid; gap: 10px; }
.gate__code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--outline);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.gate__code code {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--head);
  user-select: all;
  word-break: break-all;
}
.gate__status { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); }
.gate__status[data-tone="ok"] { color: var(--lagoon-mid); }
.gate__status[data-tone="warn"] { color: var(--terracotta-ink); }
.gate__link {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--lagoon-mid);
  text-decoration: underline;
  cursor: pointer;
}
.gate__link[hidden] { display: none; }
.gate__alert {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--terracotta) 38%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--terracotta) 10%, transparent);
  font-size: 0.9rem;
  line-height: 1.5;
}
.gate__alert[hidden] { display: none; }
.gate__alert p { margin: 0; }
.gate__mail {
  justify-self: start;
  font-weight: 700;
  color: var(--terracotta-ink);
  text-decoration: underline;
  word-break: break-word;
}
.gate .btn { margin-top: 2px; }
.gate .is-locked { opacity: 0.45; pointer-events: none; }
.gate__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* --- 11. Co jest w środku ------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.ticks--stack { margin-top: 24px; }

/* Dostępność treści offline i online */
.compare {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 24px 16px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}
.compare thead th {
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
  padding: 8px 10px;
}
.compare__title {
  margin: 6px 10px 8px;
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--terracotta-ink);
}
.compare thead th.compare__us { color: var(--terracotta-ink); }
.compare tbody th,
.compare tbody td {
  padding: 13px 10px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.compare tbody th { font-weight: 700; color: var(--head); width: 36%; }
.compare tbody td { color: var(--text-muted); }
.compare tbody td:last-child { color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .compare { padding: 10px 14px 14px; }
  .compare tbody th { width: 38%; }
}

/* --- 12. Pobieranie ------------------------------------------------------ */

.download__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.download__copy p { color: #b7cdc9; }
.download__copy h2 { margin-bottom: 16px; }
.download__copy .ticks { margin: 22px 0 26px; }

.download__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
/* Karta jest jasna w motywie jasnym i ciemna w ciemnym, dlatego wszystkie
   kolory w środku biorą się ze zmiennych motywu. */
.download__card h3 { color: var(--head); }
.download__head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.download__head h3 { margin: 0; font-size: 1.4rem; }
.download__head p { margin: 2px 0 0; font-size: 0.88rem; color: var(--text-muted); }
.download__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 0 10px;
  border-radius: 14px;
  background: #0f4c5c;
  color: #e6c77a;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.download__meta { margin: 22px 0 0; display: grid; gap: 0; }
.download__meta > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.download__meta > div:last-child { border-bottom: 0; }
.download__meta dt { color: var(--text-muted); }
.download__meta dd { margin: 0; font-weight: 700; text-align: right; }

.install { margin: 18px 0 0; padding-left: 20px; font-size: 0.9rem; color: var(--text-muted); }
.install li { margin-bottom: 4px; }
.install code { background: var(--surface-2); }

/* --- 13. FAQ -------------------------------------------------------------- */

.faq__wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  color: var(--head);
  font-size: 1.03rem;
  position: relative;
  padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--terracotta);
  border-bottom: 2px solid var(--terracotta);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { padding-bottom: 20px; color: var(--text-muted); margin: 0; }

/* --- 14. Pasek CTA ------------------------------------------------------- */

.cta-strip {
  background: color-mix(in srgb, var(--gold-soft) 45%, var(--bg));
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 66px) 0;
}
.cta-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.cta-strip h2 { margin: 0 0 4px; }
.cta-strip p { margin: 0; color: var(--text-muted); }

/* --- 15. Stopka ---------------------------------------------------------- */

.footer {
  background: var(--lagoon-deep);
  color: #c4d6d2;
  padding: clamp(48px, 6vw, 74px) 0 30px;
  font-size: 0.92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}
.footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.footer__brand strong { color: #fff; font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 1.1rem; }
.footer__brand p { margin-top: 6px; color: #9db3af; }
.footer__col h3 {
  color: var(--gold-bright);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer__col a { display: block; color: #c4d6d2; text-decoration: none; margin-bottom: 8px; }
.footer__col a:hover { color: var(--gold-bright); }
.footer__col p { color: #9db3af; margin-bottom: 8px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  color: #93aea9;
  font-size: 0.83rem;
}
.footer__bottom p { margin: 0; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .download__grid, .showcase__grid { grid-template-columns: 1fr; }
  .showcase__grid--flip .showcase__media { order: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: clamp(400px, 100vw, 540px); }
  .phone { width: clamp(168px, 44vw, 230px); }
  .phone--front { left: 0; }
  .phone--back { right: 0; }
  .hero__chip { right: 0; bottom: 0; font-size: 0.8rem; padding: 7px 13px; }
}
@media (max-width: 520px) {
  .brand__text small { display: none; }
  .brand__mark { width: 38px; height: 38px; border-radius: 11px; }
}
@media (max-width: 780px) {
  .topbar__nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .topbar__nav.is-open { display: flex; }
  .topbar__nav a { padding: 12px 14px; border-radius: 10px; }
  .topbar__nav a:hover { background: var(--surface-2); }
  .nav-toggle { display: block; }
  .topbar__cta { margin-left: auto; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* --- 16. Animacje wejścia ------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- 17. Wydruk ---------------------------------------------------------- */

@media print {
  .topbar, .cta-strip, .lightbox, .gate, .hero__visual { display: none; }
  body { background: #fff; color: #000; }
  .section--dark { background: #fff; color: #000; }
}

/* --- 18. Polityka prywatności ------------------------------------------- */

.legal { padding: clamp(36px, 6vw, 68px) 0 clamp(56px, 8vw, 92px); }
.legal__wrap { max-width: 880px; }
.legal__head { margin-bottom: clamp(26px, 4vw, 40px); }
.legal__head h1 { margin-bottom: 14px; font-size: clamp(2rem, 1.5rem + 2.1vw, 3.05rem); }
.legal__meta {
  margin: 0 0 14px;
  padding-left: 13px;
  border-left: 3px solid var(--gold);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.legal__meta code { font-size: 0.85em; }
.legal__lead { max-width: 70ch; font-size: 1.06rem; color: var(--text-muted); }

.legal__summary {
  margin: 0 0 26px;
  padding: 22px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.legal__summary h2 { margin: 0 0 12px; font-size: 1.08rem; }
.legal__summary ul { display: grid; gap: 9px; margin: 0; padding-left: 1.15rem; }
.legal__summary li { font-size: 0.96rem; color: var(--text); }
.legal__summary strong { color: var(--text); }

.legal__toc {
  margin: 0 0 clamp(30px, 5vw, 46px);
  padding: 20px 24px;
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  border-radius: var(--radius);
}
.legal__toc h2 { margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.legal__toc ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(7, auto);
  grid-auto-flow: column;
  gap: 0 34px;
  margin: 0;
  padding-left: 1.2rem;
}
.legal__toc li { margin-bottom: 5px; font-size: 0.93rem; break-inside: avoid; }
.legal__toc a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.legal__toc a:hover { border-bottom-color: var(--gold); }

.legal__body h2 { margin: 44px 0 12px; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); scroll-margin-top: 96px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { margin: 26px 0 8px; font-size: 1.05rem; }
.legal__body p { margin: 0 0 12px; }
.legal__body ul { display: grid; gap: 6px; margin: 0 0 14px; padding-left: 1.25rem; }
.legal__body li { font-size: 0.98rem; }
.legal__body a { color: var(--lagoon-mid); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.legal__body a:hover { color: var(--terracotta-ink); }

.legal__table {
  margin: 16px 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.legal__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; }
.legal__table caption { padding: 12px 16px 0; text-align: left; font-size: 0.82rem; color: var(--text-muted); }
.legal__table th, .legal__table td { padding: 11px 14px; text-align: left; vertical-align: top; }
.legal__table thead th { background: var(--surface-2); font-size: 0.82rem; letter-spacing: 0.02em; }
.legal__table tbody th, .legal__table tbody td { border-top: 1px solid var(--line); }

.legal__contact {
  margin: 14px 0 18px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal__contact p { margin: 0 0 6px; font-size: 0.96rem; }
.legal__contact p:last-child { margin-bottom: 0; }

.legal__back { margin: 46px 0 0; }

.privacy__more { margin: 26px 0 0; }
.footer__bottom a { color: #a9c4bf; text-decoration: none; }
.footer__bottom a:hover { color: var(--gold-bright); }

@media (max-width: 640px) {
  .legal__toc ol { grid-template-columns: 1fr; grid-template-rows: auto; grid-auto-flow: row; }
  .legal__summary, .legal__toc { padding: 18px 18px; }

  /* Tabele na telefonie: każdy wiersz staje się osobną kartą. */
  .legal__table { overflow: visible; border: 0; background: none; }
  .legal__table table { min-width: 0; font-size: 0.92rem; }
  .legal__table caption { padding: 0 0 10px; }
  .legal__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .legal__table tbody tr {
    display: block;
    margin-bottom: 10px;
    padding: 12px 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .legal__table tbody tr:last-child { margin-bottom: 0; }
  .legal__table tbody td { display: block; padding: 2px 0; border: 0; }
  .legal__table tbody td::before { font-weight: 700; color: var(--text-muted); }
  .legal__table--permissions tbody td:first-child,
  .legal__table--data tbody td:first-child { margin-bottom: 4px; font-weight: 700; }
  .legal__table--permissions tbody td:nth-child(2)::before { content: "Do czego służy: "; }
  .legal__table--permissions tbody td:nth-child(3)::before { content: "Czy można odmówić: "; }
  .legal__table--data tbody td:nth-child(2)::before { content: "Zbierane: "; }
  .legal__table--data tbody td:nth-child(3)::before { content: "Udostępniane: "; }
  .legal__table--data tbody td:nth-child(4)::before { content: "Cel: "; }
}

@media print {
  .legal__toc, .legal__back, .skip-link { display: none; }
  .legal__wrap { max-width: none; }
  .legal__body h2 { break-after: avoid; }
}
