/* ============================================================
   Miri — style strony WWW
   Tokeny wyciągnięte 1:1 z aplikacji (Figma: Colors – Semantic,
   paleta domyślna Classic/225, font SN Pro Variable).
   ============================================================ */

@font-face {
  font-family: 'SN Pro';
  src: url('../fonts/SNPro-Variable.woff') format('woff');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* surface */
  --surface-base: #D7DFF5;
  --surface-card: rgba(255, 255, 255, 0.85);
  --surface-card-full: #FFFFFF;
  --surface-input: #E6E9F2;
  --surface-item: #FFFFFF;

  /* text */
  --text-primary: #363C4D;
  --text-secondary: #6B7799;
  --text-placeholder: #A1A5B2;
  --text-on-theme: #FFFFFF;

  /* action / theme */
  --accent: #6680CC;
  --accent-pressed: #A1B2E5;
  --accent-soft: #A1B2E5;
  --accent-softer: #D7DFF5;

  /* borders */
  --border-subtle: rgba(0, 0, 0, 0.10);
  --border-theme-subtle: rgba(102, 128, 204, 0.25);
  --border-theme-strong: #6680CC;

  /* funkcje (complete / when / who) */
  --fn-green: #75CC47;
  --fn-orange: #FFB31A;
  --fn-purple: #9966CC;
  --danger: #CC5252;

  /* cienie — appka: blur 8, offset 0, kolor motywu */
  --shadow-small: 0 0 8px rgba(102, 128, 204, 0.20);
  --shadow-medium: 0 0 8px rgba(102, 128, 204, 0.40);
  --shadow-large: 0 18px 60px rgba(54, 60, 77, 0.30);

  --hero-art: url('../img/art/hero-light.png');

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 24px;

  --bubble-opacity: 0.5;
}

/* ── Motyw ciemny ─────────────────────────────────────────
   Dwa wejścia: preferencja systemowa (o ile użytkownik nie
   wymusił jasnego) oraz ręczny wybór [data-theme="dark"].
   Zestawy tokenów muszą być identyczne w obu blokach. */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface-base: #0F1526;
    --surface-card: rgba(38, 45, 64, 0.85);
    --surface-card-full: #262D40;
    --surface-input: #2E364D;
    --surface-item: #262D40;

    --text-primary: #FFFFFF;
    --text-secondary: #A1A5B2;
    --text-placeholder: #737680;

    --border-subtle: rgba(255, 255, 255, 0.20);

    --fn-green: #589935;
    --fn-orange: #CC8F15;
    --fn-purple: #734D99;

    --shadow-small: 0 0 8px rgba(54, 60, 77, 0.30);
    --shadow-medium: 0 0 8px rgba(54, 60, 77, 0.45);
    --shadow-large: 0 18px 60px rgba(0, 0, 0, 0.55);

    --hero-art: url('../img/art/hero-dark.png');

    --bubble-opacity: 0.45;
  }

  /* w ciemnym motywie bąbelki delikatnie świecą — jak w grafice aplikacji */
  :root:not([data-theme="light"]) .bubble {
    background:
      radial-gradient(circle at 32% 30%, rgba(174, 240, 255, 0.5) 0%, rgba(140, 170, 245, 0.14) 30%, rgba(102, 128, 204, 0.06) 62%, rgba(140, 170, 245, 0.22) 100%);
    border-color: rgba(174, 240, 255, 0.28);
    box-shadow: 0 0 18px rgba(120, 200, 255, 0.18);
  }

  :root:not([data-theme="light"]) .theme-toggle .knob { transform: translateX(28px); }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
}

:root[data-theme="dark"] {
  --surface-base: #0F1526;
  --surface-card: rgba(38, 45, 64, 0.85);
  --surface-card-full: #262D40;
  --surface-input: #2E364D;
  --surface-item: #262D40;

  --text-primary: #FFFFFF;
  --text-secondary: #A1A5B2;
  --text-placeholder: #737680;

  --border-subtle: rgba(255, 255, 255, 0.20);

  --fn-green: #589935;
  --fn-orange: #CC8F15;
  --fn-purple: #734D99;

  --shadow-small: 0 0 8px rgba(54, 60, 77, 0.30);
  --shadow-medium: 0 0 8px rgba(54, 60, 77, 0.45);
  --shadow-large: 0 18px 60px rgba(0, 0, 0, 0.55);

  --hero-art: url('../img/art/hero-dark.png');

  --bubble-opacity: 0.45;
}

:root[data-theme="dark"] .bubble {
  background:
    radial-gradient(circle at 32% 30%, rgba(174, 240, 255, 0.5) 0%, rgba(140, 170, 245, 0.14) 30%, rgba(102, 128, 204, 0.06) 62%, rgba(140, 170, 245, 0.22) 100%);
  border-color: rgba(174, 240, 255, 0.28);
  box-shadow: 0 0 18px rgba(120, 200, 255, 0.18);
}

:root[data-theme="dark"] .theme-toggle .knob { transform: translateX(28px); }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

/* ── Reset / baza ─────────────────────────────────────────── */

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

/* kolor canvasu = tło nav/stopki: Safari pokazuje go przy gumowym
   przescrollowaniu nad/pod stronę — bez tego wystawało lawendowe
   tło propagowane z body */
html {
  scroll-behavior: smooth;
  background: var(--surface-card-full);
}

body {
  font-family: 'SN Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--surface-base);
  color: var(--text-primary);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }

::selection { background: rgba(102, 128, 204, 0.25); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nagłówki ─────────────────────────────────────────────── */

h1, h2, h3 {
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

/* ── Nawigacja ────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* pełne, stałe tło bez blura (decyzja Widima) — jeden kolor
     z canvasem przy overscrollu; bez meta theme-color, żeby
     belki Safari na iOS zostały szkłem z prześwitem contentu */
  background: var(--surface-card-full);
  transition: box-shadow 0.25s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-small);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.2px;
}

.nav-logo img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: var(--shadow-small);
  /* optyczne wyrównanie do „Miri": glify (bez dolnych wydłużeń)
     siedzą ~1px wyżej niż środek linii tekstu */
  transform: translateY(-1px);
}

/* kafelek logo ma jasny i ciemny wariant (favicon / favicon-dark);
   ten sam wzorzec dual-block co reszta motywu */
.logo-d { display: none; }

:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: inline-block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-l { display: none; }
  :root:not([data-theme="light"]) .logo-d { display: inline-block; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 640px) {
  .nav-hide-sm { display: none !important; } /* na mobile strona dostępna ze stopki */
}

/* przełącznik wersji językowej w nawigacji */
.nav-lang {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  background: var(--surface-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-lang:hover {
  color: var(--accent);
  border-color: var(--border-theme-subtle);
  box-shadow: var(--shadow-small);
}

/* przełącznik motywu — switch z suwakiem; pozycję i ikonę steruje CSS
   (media query + [data-theme]), JS ustawia tylko aria-checked */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 32px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--border-theme-subtle);
  border-radius: 999px;
  background: var(--surface-card);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.theme-toggle:hover {
  border-color: var(--border-theme-strong);
  box-shadow: var(--shadow-small);
}

.theme-toggle .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--shadow-small);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: transform 0.25s ease;
}

/* 16px = parzysty margines 4px w 24px gałce (przy 15px wychodziło
   4,5px i subpiksele przesuwały ikonę optycznie w bok) */
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-moon { display: none; }

/* ── Przyciski (styl CustomButton z aplikacji) ────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-m);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 693;
  text-decoration: none;
  cursor: pointer;
  /* bez animowania transform — translateY na hoverze re-rasteryzuje
     tekst i ikony (widoczne „pływanie" zawartości) */
  transition: background 0.12s ease-out, box-shadow 0.12s ease-out;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-theme);
  box-shadow: var(--shadow-small);
}

/* hover = pastelowy pierścień w kolorze motywu — wyraźny w obu motywach,
   nie rusza zawartości przycisku */
.btn-primary:hover { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-medium); }
.btn-primary:active { background: var(--accent-pressed); }

.btn-secondary {
  background: var(--surface-input);
  color: var(--accent);
  border: 1px solid var(--border-theme-subtle);
}

.btn-secondary:hover { border-color: var(--border-theme-strong); }
.btn-secondary:active { background: var(--accent-pressed); color: var(--text-on-theme); }

/* przyciski sklepów — białe „badge" z kolorowymi ikonami brandów;
   celowo stałe kolory niezależne od motywu */
.btn-store {
  background: #FFFFFF;
  color: #363C4D;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-small);
}

.btn-store:hover { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-medium); }
.btn-store:active { background: #EDEFF5; }

.btn-small { height: 40px; padding: 8px 16px; font-size: 0.9rem; }

.btn .btn-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 450;
  opacity: 0.75;
  line-height: 1.1;
  text-align: left;
}

.btn .btn-label { display: block; line-height: 1.15; text-align: left; }

.btn svg { flex-shrink: 0; }

.cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-card);
  border: 1px solid var(--border-theme-subtle);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-bottom: 22px;
}

.hero-title .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 450;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-sub strong { color: var(--text-primary); font-weight: 650; }

/* bąbelki — jak w podwodnym świecie aplikacji */

.bubble {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.22) 24%, rgba(161, 178, 229, 0.12) 60%, rgba(161, 178, 229, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: var(--bubble-opacity);
  animation: bubble-float 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bubble-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-26px) translateX(10px); }
}

/* ── Telefon (ramka ze slotem na PNG ekranu) ─────────────── */

.hero-phone {
  display: flex;
  justify-content: center;
}

.phone {
  width: 292px;
  border-radius: 46px;
  background: #0F1526;
  padding: 9px;
  box-shadow: var(--shadow-large);
}

.phone-sm {
  width: 232px;
  border-radius: 38px;
  padding: 7px;
}

.phone-float { animation: phone-float 7s ease-in-out infinite; }

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-float, .bubble { animation: none; }
}

.phone-screen {
  position: relative;
  border-radius: 38px;
  background: var(--surface-base);
  overflow: hidden;
  aspect-ratio: 9 / 19.8;
}

.phone-sm .phone-screen { border-radius: 31px; }

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 26px;
  border-radius: 14px;
  background: #0F1526;
  z-index: 5;
}

.phone-sm .phone-notch { width: 70px; height: 21px; top: 8px; }

.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* tymczasowy slot do czasu dostarczenia PNG ekranów */
.phone-shot-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--hero-art) center / cover no-repeat;
}

.shot-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  color: #363C4D;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.phone-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--text-secondary);
}

/* ── Sekcje ───────────────────────────────────────────────── */

section { padding: 90px 0; }

.section-label {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 18px;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 56px;
  font-weight: 450;
}

/* filozofia */

.philosophy {
  padding: 40px 0;
}

.philosophy-card {
  background: var(--surface-card);
  border: 1px solid var(--border-theme-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-small);
  padding: 52px 40px;
  text-align: center;
}

.philosophy-line {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.45;
  letter-spacing: -0.2px;
}

.philosophy-line strong {
  color: var(--text-primary);
  font-weight: 750;
}

/* filary */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  background: var(--surface-card-full);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  box-shadow: var(--shadow-small);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--pillar-color, var(--accent));
  background: var(--pillar-bg, rgba(102, 128, 204, 0.14));
}

.pillar-icon svg { width: 28px; height: 28px; }

.pillar-name {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 450;
}

/* ── Współpraca: dwa telefony, dwa style ─────────────────── */

.duo-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 56px;
}

/* ── Wygląd: rząd skór / carousel na mobile ──────────────── */

.skins-row {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.skins-row .phone { flex-shrink: 0; }

/* ── Od twórcy ───────────────────────────────────────────── */

.creator-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface-card-full);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-small);
  padding: 48px;
}

.creator-card .section-label { text-align: left; margin-bottom: 10px; }

.creator-heading {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 20px;
}

.creator-card p {
  color: var(--text-secondary);
  font-weight: 450;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.creator-sign {
  font-weight: 693;
  color: var(--text-primary);
  margin: 24px 0 20px;
}

.creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.creator-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.creator-links a:hover { text-decoration: underline; }

/* ── Strzałka przepływu prośba → misja ───────────────────── */

.duo-arrow {
  align-self: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  border: 1px solid var(--border-theme-subtle);
  box-shadow: var(--shadow-small);
  color: var(--accent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.duo-arrow svg { width: 26px; height: 26px; }

/* ── Scrollytelling sekcji Wygląd (tylko desktop + JS) ───── */

.scrolly-active .skins-scrolly { height: 320vh; }

.scrolly-active .skins-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* strefa fixed nav (+ oddech) u góry — bez tego przy niższych
     oknach wycentrowany w pełnym 100vh tytuł podchodzi pod menu */
  padding: 112px 0 40px;
}

.scrolly-active .skins-stage > .container { width: 100%; }

/* w przypiętej scenie tytuł gra w skali opowieści
   (klasa scrolly-active ląduje na samej sekcji #wyglad) */
#wyglad.scrolly-active .section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
}

.scrolly-active .skins-row .phone { will-change: transform, opacity; }

/* na niższych ekranach telefony oddają trochę wysokości, żeby
   tytuł z podtytułem i rząd mieściły się swobodnie pod menu */
@media (max-height: 860px) {
  .scrolly-active .skins-row .phone-sm { width: 204px; }
}

/* ── Overlay pobierania ──────────────────────────────────── */

.download-dialog {
  margin: auto; /* globalny reset zeruje UA margin:auto, które centruje dialog */
  border: none;
  padding: 0;
  border-radius: var(--radius-xl);
  background: var(--surface-card-full);
  color: var(--text-primary);
  box-shadow: var(--shadow-large);
  max-width: 400px;
  width: calc(100% - 48px);
}

.download-dialog::backdrop {
  background: rgba(15, 21, 38, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.download-dialog[open] { animation: dialog-pop 0.22s ease; }

@keyframes dialog-pop {
  from { opacity: 0; transform: translateY(14px); }
}

.dialog-inner {
  position: relative;
  padding: 44px 32px 32px;
  text-align: center;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-m);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dialog-close:hover { background: var(--surface-input); color: var(--text-primary); }

.dialog-close svg { width: 16px; height: 16px; }

.dialog-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-small);
}

.dialog-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.dialog-sub {
  color: var(--text-secondary);
  font-weight: 450;
  margin-bottom: 24px;
}

.dialog-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialog-buttons .btn { width: 100%; }

/* ── Overlay twórców (ta sama rama co overlay pobierania) ── */

/* szerszy niż pobieranie: wiersz osoby (zdjęcie + rola + link)
   potrzebuje ~430px na jedną linię */
.creators-dialog { max-width: 460px; }

.creators-dialog .dialog-title { margin-bottom: 20px; }

.creators-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.creator-row {
  display: flex;
  align-items: center;
  /* wrap: na wąskich ekranach link „Strona WWW" schodzi do własnej
     linii zamiast najeżdżać na zawinięte imię/rolę */
  flex-wrap: wrap;
  gap: 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: 14px 16px;
}

.creator-row img,
.creator-row-ph {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-small);
  flex-shrink: 0;
}

/* placeholder z inicjałami do czasu dostarczenia zdjęcia */
.creator-row-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-softer);
  color: var(--accent);
  font-weight: 700;
}

/* min-width: bez niego flex ściska kolumnę poniżej szerokości słów
   (tekst wystaje pod link); z nim ciasny wiersz ZAWIJA link niżej */
.creator-row-info { flex: 1; min-width: 150px; }

.creator-row-name { font-weight: 700; }

.creator-row-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.creator-row-site {
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-left: auto;
}

.creator-row-site:hover { text-decoration: underline; }

/* ── Overlay premiery (lista oczekujących) ───────────────── */

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* honeypot dla botów — poza ekranem, niewidoczny dla ludzi */
.waitlist-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-input {
  height: 48px;
  padding: 10px 16px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-theme-subtle);
  background: var(--surface-input);
  color: var(--text-primary);
  font-family: inherit;
  /* 16px minimum — mniejszy font każe iOS przybliżać stronę przy fokusie */
  font-size: 1rem;
  font-weight: 550;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.waitlist-input::placeholder {
  color: var(--text-placeholder);
  font-weight: 500;
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--border-theme-strong);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.waitlist-note {
  margin-top: 18px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-placeholder);
}

.waitlist-done {
  font-weight: 650;
  line-height: 1.6;
}

.waitlist-error {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--danger);
}

/* ── Finalne CTA ─────────────────────────────────────────── */

.cta-final { text-align: center; }

.cta-final .cta-group { justify-content: center; }

.cta-final-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 14px;
}

.cta-final-sub {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 450;
}

/* ── Stopka ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  /* ta sama pełna powierzchnia co nav — stopka i menu domykają stronę
     jednym kolorem, ciągłym z canvasem przy overscrollu */
  background: var(--surface-card-full);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--text-primary);
  text-decoration: none;
}

.footer-logo img { width: 24px; height: 24px; border-radius: 7px; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-placeholder);
}

/* ── Podstrony prawne ────────────────────────────────────── */

.legal {
  padding: 140px 0 90px;
}

.legal-card {
  background: var(--surface-card-full);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-small);
  padding: 56px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

/* chipy z wersją dokumentu i datą obowiązywania */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 32px;
}

/* chipy: zawsze „białe" (kolor karty) — nie mogą wyglądać jak przyciski */
.pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--surface-card-full);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.pill-theme {
  color: var(--text-primary);
  font-weight: 700;
}

.legal-card h2 {
  font-size: 1.45rem;
  margin: 38px 0 14px;
}

.legal-card h3 {
  font-size: 1.15rem;
  margin: 26px 0 8px;
}

/* 17px na długie czytanie — 15-16px było za małe na podstronach
   (strona główna zostaje przy dużej typografii opowieści) */
.legal-card p, .legal-card li {
  color: var(--text-secondary);
  font-weight: 450;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.legal-card p { margin-bottom: 12px; }

.legal-card strong {
  color: var(--text-primary);
  font-weight: 650;
}

/* osobisty wstęp manifestu — głos twórcy oprawiony jak sekcja
   „Od twórcy" na stronie głównej, bo reszta dokumentu jest bezosobowa */
.author-note {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: 24px;
  margin: 30px 0 6px;
}

.author-note img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-small);
  flex-shrink: 0;
}

.author-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.author-note p:last-child { margin-bottom: 0; }

.legal-card a { font-weight: 600; }

.legal-card ul, .legal-card ol {
  padding-left: 22px;
  margin: 10px 0;
}

.legal-card li { margin-bottom: 6px; }

/* separator: trzy bąbelki — czytelny, ale spokojny */
.legal-card hr {
  border: none;
  width: 76px;
  height: 10px;
  margin: 40px auto;
  background-image:
    radial-gradient(circle, var(--accent-soft) 0 3px, transparent 3.5px),
    radial-gradient(circle, var(--accent) 0 4px, transparent 4.5px),
    radial-gradient(circle, var(--accent-soft) 0 3px, transparent 3.5px);
  background-size: 10px 10px;
  background-position: left center, center center, right center;
  background-repeat: no-repeat;
}

.legal-back {
  display: inline-block;
  margin-top: 36px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.legal-back:hover { text-decoration: underline; }

/* ── Scroll reveal ───────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── Responsywność ───────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { padding: 120px 0 70px; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
  }

  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero .cta-group { justify-content: center; }

  section { padding: 64px 0; }

  .pillars-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }

  /* Współpraca: telefony pionowo, przepływ z góry na dół */
  .duo-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .duo-arrow { transform: rotate(90deg); }

  /* Wygląd: poziomy carousel ze scroll-snap (jak w App Store) */
  .skins-row {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* cień telefonów (0 18px 60px) sięga ~78px w dół i ~42px w górę —
       scroll-kontener przycinał go twardą linią; duży padding robi mu
       miejsce, ujemne marginesy oddają odstępy (netto bez zmian) */
    padding: 48px 40px 88px;
    margin: -40px -24px -16px;
    scrollbar-width: none;
  }

  .skins-row::-webkit-scrollbar { display: none; }

  .skins-row .phone { scroll-snap-align: center; }

  .creator-card { padding: 32px 24px; }

  .legal { padding: 110px 0 64px; }
  .legal-card { padding: 32px 24px; }

  .footer-inner { flex-direction: column; text-align: center; }

  /* każdy link w osobnej linii — zawijany rządek dawał nierówne,
     lewo-równane wiersze i stopka wyglądała na niewycentrowaną */
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}
