/* mChat — style strony.
   Bez zasobów zewnętrznych i bez stylów inline: strona chodzi pod CSP
   default-src 'none' / style-src 'self', więc żaden font ani obraz z sieci
   się nie doładuje. Cała grafika to CSS i SVG. */

:root {
  --bg:         #000000;
  --bg-2:       #060607;
  --surface:    #0d0d0f;
  --surface-2:  #141418;
  --surface-3:  #1b1b21;
  --border:     #1e1e24;
  --border-2:   #2b2b33;

  --text:       #fafafa;
  --text-mid:   #a1a1ad;
  --text-dim:   #71717f;
  --text-faint: #52525e;

  /* Jeden akcent, wyłącznie do sygnałów bezpieczeństwa. */
  --accent:      #34d399;
  --accent-dim:  rgba(52, 211, 153, .12);
  --accent-line: rgba(52, 211, 153, .32);

  --font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
          "Segoe UI", Inter, system-ui, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont,
          "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;

  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --header-h:  64px;
  --gutter:    22px;
  --maxw:      1140px;

  /* Wspolna wysokosc kontrolek w naglowku. Przycisk i hamburger dobieraly
     wysokosc kazdy po swojemu - jeden z wypelnienia i wysokosci wiersza,
     drugi ze sztywnych 37px - wiec na telefonie stały obok siebie
     nierowno. Jedna zmienna trzyma je w linii. */
  --control-h: 38px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
strong { color: var(--text); font-weight: 600; }

.ico {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Wciecia boczne biora pod uwage wyciecie ekranu. Strona deklaruje
   viewport-fit=cover, wiec w poziomie na telefonie z notchem tresc potrafi
   wjechac pod zaokraglenie - max() pilnuje, by margines nigdy nie byl
   mniejszy niz strefa bezpieczna. */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--text); color: #000;
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ------------------------------------------------------------ nagłówek */

/* Wysokosc siedzi na wewnetrznym pasku, nie na samym naglowku - dzieki temu
   wciecie na status bar (safe-area) DOKLADA sie do paska, zamiast zjadac
   jego wysokosc. Wczesniej przy viewport-fit=cover logo potrafilo wjechac
   pod zegar telefonu. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 16.5px; letter-spacing: -0.03em;
}
.brand__mark {
  display: grid; place-items: center;
  width: 27px; height: 27px; border-radius: 8px;
  background: var(--text); color: #000; font-size: 15px;
}
.brand__mark .ico { stroke-width: 1.9; }
.brand--sm { font-size: 15px; }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 28px; }
.site-nav a {
  color: var(--text-dim); font-size: 14px; font-weight: 450;
  letter-spacing: -0.01em; transition: color .15s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.site-header__cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Staly odstep od nawigacji TYLKO wtedy, gdy nawigacja jest widoczna.
   Regula bez tego ograniczenia byla zrodlem rozjechanego paska na telefonie:
   selektor sasiedztwa dziala takze wtedy, gdy sasiad ma display: none, a ma
   wyzsza specyficznosc niz margin-left: auto powyzej. Przycisk i hamburger
   dostawaly wiec sztywne 28px od logo zamiast dosuniecia do prawej krawedzi
   i po prawej stronie paska zostawala pusta przestrzen. */
@media (min-width: 901px) {
  .site-nav + .site-header__cta { margin-left: 28px; }
}

/* Obie kontrolki naglowka na jedna wysokosc i z wysrodkowanym napisem:
   line-height: 1 zdejmuje odziedziczone 1.6, przez ktore tekst w pigulce
   siedzial optycznie za wysoko. */
.site-header__cta .btn--sm {
  height: var(--control-h);
  padding: 0 18px;
  line-height: 1;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 550; letter-spacing: -0.015em; cursor: pointer;
  transition: opacity .15s;
}
.btn--sm { padding: 8px 17px; font-size: 13.5px; }
.btn--primary { background: var(--text); color: #000; }
.btn--primary:hover { opacity: .88; }

.navmenu { display: none; position: relative; }
.navmenu__btn {
  list-style: none; cursor: pointer;
  display: grid; place-items: center;
  width: var(--control-h); height: var(--control-h); font-size: 19px;
  border: 1px solid var(--border-2); border-radius: 10px;
  background: var(--surface); color: var(--text);
}
.navmenu__btn::-webkit-details-marker { display: none; }
.navmenu__panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 208px; padding: 7px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius); box-shadow: 0 28px 60px -22px #000;
}
.navmenu__list a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-mid); font-size: 14.5px;
}
.navmenu__list a:hover { background: var(--surface-2); color: var(--text); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; padding: 78px 0 26px; overflow: hidden; }
.hero__inner { position: relative; text-align: center; z-index: 1; }

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
  background-size: 68px 68px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(58% 52% at 50% 26%, #000 12%, transparent 78%);
  mask-image: radial-gradient(58% 52% at 50% 26%, #000 12%, transparent 78%);
  pointer-events: none;
}
.hero__spot {
  position: absolute; inset: -16% -10% auto; height: 620px;
  background: radial-gradient(46% 42% at 50% 24%, rgba(255, 255, 255, .07), transparent 72%);
  pointer-events: none;
}

/* Ta sama poprawka co w pigulce "Wkrotce": bez line-height: 1 tekst siedzial
   w kapsule za wysoko, a na waskim ekranie kapsula rozjezdzala sie na dwa
   wiersze zamiast zmniejszyc wciecia. */
.eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  max-width: 100%;
  padding: 7px 14px; margin-bottom: 30px;
  border: 1px solid var(--border-2); border-radius: 999px;
  background: rgba(13, 13, 15, .8);
  color: var(--text-mid);
  font-size: 11.5px; font-weight: 500; line-height: 1.25; letter-spacing: .01em;
}
.eyebrow__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}

.hero__title {
  font-size: clamp(40px, 7.6vw, 74px);
  font-weight: 600; letter-spacing: -0.045em;
  margin-bottom: 22px;
}
.hero__title span { display: block; color: var(--text-dim); }

.hero__lead {
  max-width: 480px; margin: 0 auto 34px;
  color: var(--text-dim);
  font-size: 15px; line-height: 1.65; letter-spacing: -0.005em;
}

/* --------------------------------------------------------- store badge */

.stores { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.stores--start { justify-content: flex-start; margin-bottom: 46px; }

.store {
  display: inline-flex; align-items: center; gap: 11px;
  max-width: 100%;
  padding: 10px 18px 10px 16px;
  border: 1px solid var(--border-2); border-radius: 12px;
  background: var(--surface);
  transition: border-color .16s, background .16s;
}
.store:hover { border-color: #3a3a45; background: var(--surface-2); }
.store__icon { font-size: 25px; display: grid; place-items: center; color: var(--text); }
.store__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store__small { font-size: 10.5px; color: var(--text-dim); letter-spacing: .02em; }
.store__big {
  font-family: var(--font-display);
  font-size: 17.5px; font-weight: 550; letter-spacing: -0.028em;
}

/* Pigulka "Wkrotce".
   Napis to wersaliki, ktore nie maja wydluzen dolnych, wiec przy
   odziedziczonej wysokosci wiersza 1.6 linia bazowa spychala go optycznie do
   gory - w kolku widac bylo tekst przyklejony do sufitu. line-height: 1 plus
   wysrodkowanie flexem sadza go dokladnie w srodku, niezaleznie od kroju. */
.store__tag {
  display: inline-flex; align-items: center; justify-content: center;
  /* Dol o piksel mniejszy niz gora: wersaliki nie siegaja do linii
     wydluzen dolnych, wiec przy rownym wypelnieniu ink napisu siedzi
     optycznie za wysoko. */
  margin-left: 5px; padding: 6px 9px 5px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--accent-dim);
  color: var(--accent);
  font-size: 9.5px; font-weight: 600; line-height: 1;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.store-note { margin-top: 15px; color: var(--text-faint); font-size: 12.5px; }

/* ------------------------------------------------------------- telefony */

.phones {
  position: relative;
  margin-top: 58px;
  perspective: 1500px;
  perspective-origin: 50% 30%;
  padding-bottom: 34px;
}
.phones__stage {
  position: relative;
  display: flex; align-items: flex-start; justify-content: center;
  /* NIE preserve-3d. Gdy przodek zachowuje przestrzeń 3D, przeglądarka
     przestaje obcinać potomków do zaokrąglonego prostokąta - biały przycisk
     „Nowa rozmowa" wychodził wtedy poza obudowę telefonu. Perspektywa jest
     na .phones, a kolejność warstw daje z-index, więc preserve-3d nie jest
     tu do niczego potrzebne. */
  transform-style: flat;
}
.phones__floor {
  position: absolute; inset: auto 14% -4% 14%; height: 200px;
  background: radial-gradient(48% 58% at 50% 60%, rgba(255, 255, 255, .06), transparent 74%);
  filter: blur(10px); pointer-events: none;
}

.phone {
  position: relative;
  width: clamp(212px, 26vw, 288px);
  aspect-ratio: 9 / 19.2;
  padding: 8px;
  border-radius: 40px;
  /* Tytan: jasne krawędzie, ciemny środek. Na czystej czerni obudowa bez
     światła krawędziowego znika - sylwetkę buduje właśnie ten rant. */
  background: linear-gradient(148deg,
    #6e6e7d 0%, #2a2a33 9%, #141419 30%,
    #0d0d11 62%, #2f2f3a 90%, #7a7a89 100%);
  box-shadow:
    0 54px 110px -38px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 255, 255, .11) inset,
    0 1px 0 rgba(255, 255, 255, .16) inset;
  /* Druga bariera obcinania, na wypadek gdyby ekran wewnątrz nie wystarczył. */
  overflow: hidden;
  isolation: isolate;
}
.phone--left {
  transform: rotateY(14deg) rotateZ(-16deg) translate3d(26px, 22px, -60px);
  margin-right: -34px; z-index: 1;
}
.phone--right {
  transform: rotateY(-10deg) rotateZ(11deg) translate3d(-12px, -14px, 0);
  z-index: 2;
}

.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px; border-radius: 999px; background: #000; z-index: 3;
}
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 31px; background: var(--bg-2);
  display: flex; flex-direction: column;
}

.ui-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 15px 4px; color: var(--text-dim); font-size: 9px; font-weight: 600;
}
.ui-status__icons { display: inline-flex; align-items: center; gap: 3px; }
.ui-status .dot { width: 3.5px; height: 3.5px; border-radius: 50%; background: #46464f; }
.ui-status .bar { width: 13px; height: 6.5px; border-radius: 2px; border: 1px solid #46464f; }

.ui-top {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 13px 11px; border-bottom: 1px solid var(--border);
}
.ui-top__title { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.03em; }
.ui-top__badge {
  margin-left: auto; display: grid; place-items: center;
  width: 21px; height: 21px; border-radius: 7px;
  background: var(--accent-dim); color: var(--accent); font-size: 11px;
}
.ui-top__who { display: flex; flex-direction: column; line-height: 1.25; }
.ui-top__who b { font-size: 12px; font-weight: 600; letter-spacing: -0.02em; }
.ui-verified {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--accent); font-size: 8.5px; font-weight: 500;
}

.ui-av {
  display: grid; place-items: center; flex: none;
  width: 31px; height: 31px; border-radius: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: -0.01em;
  background: var(--surface-3); color: var(--text-mid);
  border: 1px solid var(--border-2);
}
.ui-av--sm { width: 25px; height: 25px; border-radius: 8px; font-size: 8.5px; }
.ui-av--a { background: #f4f4f5; color: #000; border-color: transparent; }

.ui-list { padding: 6px 9px; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.ui-row { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 11px; }
.ui-row--on { background: var(--surface-2); }
.ui-row--dim { opacity: .48; }
.ui-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ui-row__line { display: flex; align-items: baseline; gap: 6px; }
.ui-row__line b { font-size: 11px; font-weight: 550; letter-spacing: -0.02em; }
.ui-row__time { margin-left: auto; color: var(--text-faint); font-size: 8.5px; }
.ui-row__msg {
  color: var(--text-dim); font-size: 9.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 4px;
}
.ui-tick { color: var(--accent); font-size: 9.5px; display: inline-grid; place-items: center; }

.ui-foot { padding: 8px 11px 12px; }
.ui-foot__pill {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px; border-radius: 11px;
  background: var(--text); color: #000;
  font-size: 10px; font-weight: 600; letter-spacing: -0.01em;
}

.ui-thread { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ui-day {
  align-self: center; margin-bottom: 2px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-faint);
  font-size: 8px; font-weight: 500; letter-spacing: .03em;
}
.bubble { max-width: 76%; padding: 7px 10px; border-radius: 13px; font-size: 10px; line-height: 1.45; }
.bubble--in {
  align-self: flex-start; background: var(--surface-2);
  border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text-mid);
}
.bubble--out {
  align-self: flex-end; background: var(--text); color: #000;
  font-weight: 500; border-bottom-right-radius: 4px;
}
.bubble__meta { display: block; margin-top: 1px; font-size: 7.5px; opacity: .55; text-align: right; }

.ui-e2ee {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px; margin: 0 10px; border-radius: 8px;
  background: var(--accent-dim); color: var(--accent);
  font-size: 8px; font-weight: 500;
}
.ui-input { display: flex; align-items: center; gap: 7px; padding: 9px 11px 14px; }
.ui-input__box {
  flex: 1; padding: 8px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-2);
  color: var(--text-faint); font-size: 9.5px;
}
.ui-input__send { width: 29px; height: 29px; border-radius: 50%; flex: none; background: var(--text); }

/* ------------------------------------------------------ podstrona treści */

.page { position: relative; padding: 68px 0 96px; overflow: hidden; }
.page__inner { position: relative; z-index: 1; }

.backlink {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 26px;
  color: var(--text-dim); font-size: 13.5px; transition: color .15s;
}
.backlink:hover { color: var(--text); }
.backlink .ico { font-size: 15px; }

.page__title { font-size: clamp(32px, 5.4vw, 50px); letter-spacing: -0.045em; margin-bottom: 16px; }
.page__lead { color: var(--text-dim); font-size: 15.5px; line-height: 1.65; margin-bottom: 32px; max-width: 560px; }
.page__h2 {
  font-size: clamp(22px, 3.2vw, 30px); letter-spacing: -0.04em;
  margin: 58px 0 20px;
}

.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex; gap: 15px; padding: 24px 22px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface);
}
.step__num {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--text); color: #000;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: -0.03em;
}
.step__title { font-size: 15.5px; font-weight: 600; letter-spacing: -0.028em; margin-bottom: 6px; }
.step__text { color: var(--text-dim); font-size: 14px; line-height: 1.62; }

.faq { display: flex; flex-direction: column; gap: 9px; }
.qa { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.qa__q {
  display: flex; align-items: center; gap: 12px;
  padding: 17px 19px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 550; font-size: 15px; letter-spacing: -0.025em;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__chev { margin-left: auto; font-size: 17px; color: var(--text-dim); transition: transform .2s; }
.qa[open] .qa__chev { transform: rotate(180deg); }
.qa__a { padding: 0 19px 19px; color: var(--text-dim); font-size: 14px; line-height: 1.65; }

/* ------------------------------------------------------------- stopka */

.site-footer { border-top: 1px solid var(--border); padding: 32px 0 44px; }
.site-footer__inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: space-between;
}
.site-footer__note { color: var(--text-faint); font-size: 13px; }

/* ------------------------------------------------------- reveal / RWD */

.reveal-init { opacity: 0; transform: translateY(14px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .navmenu { display: block; }
  .hero { padding-top: 58px; }
  .phone--left { margin-right: -40px; }
}

@media (max-width: 640px) {
  /* Na telefonie pasek moze byc nizszy i ciasniejszy - 64px zabieralo
     zauwazalny kawalek i tak krotkiego ekranu. */
  :root { --header-h: 56px; --gutter: 18px; }

  .site-header__inner { gap: 12px; }

  .page { padding: 48px 0 72px; }
  .eyebrow { font-size: 11px; padding: 6px 12px; margin-bottom: 24px; }
  .phones { margin-top: 48px; perspective: 900px; }
  .phone { width: min(58vw, 214px); }
  .phone--left {
    transform: rotateY(12deg) rotateZ(-14deg) translate3d(18px, 30px, -40px) scale(.94);
    margin-right: -50px;
  }
  .phone--right { transform: rotateY(-9deg) rotateZ(10deg); }
}

/* Waskie telefony (iPhone SE/mini, 360-430 px). Same proporcje, mniej
   powietrza - zeby marka, przycisk i hamburger nadal miescily sie w jednym
   wierszu bez sciskania. */
@media (max-width: 430px) {
  :root { --control-h: 36px; }

  .brand { font-size: 15.5px; }
  .brand__mark { width: 25px; height: 25px; font-size: 14px; }
  .site-header__cta { gap: 8px; }
  .site-header__cta .btn--sm { padding: 0 14px; font-size: 13px; }

  .store { padding: 9px 14px 9px 12px; gap: 9px; }
  .store__big { font-size: 16.5px; }
  /* Asymetria gora/dol jak w regule bazowej - inaczej ten nadpis cofalby
     wysrodkowanie wersalikow akurat na telefonach, czyli tam, gdzie widac
     to najbardziej. */
  .store__tag { margin-left: 4px; padding: 5px 8px 4px; font-size: 9px; }
  .store-note { font-size: 12px; }
}

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