/* RCN Info — landing page. Jasny, oszczędny styl: dużo światła, duża
   typografia, jeden kolor akcentu wzięty z ikony aplikacji. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --hairline: #d2d2d7;
  --accent: #0a66d8;        /* niebieski z ikony */
  --accent-hover: #0857bb;
  --accent-deep: #0b3d91;   /* granat napisu „RCN" */
  --radius-card: 28px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 22px;
}

/* --- Nawigacja ---------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Trzy kolumny: logo | linki | przycisk. Boczne mają równą szerokość (1fr),
   więc linki stoją na środku strony, niezależnie od szerokości logo i przycisku. */
.nav .wrap {
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.nav .wrap > .btn { grid-column: 3; justify-self: end; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  justify-self: start;
}
.nav-brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 13px;
}
.nav-links a { color: var(--text); opacity: 0.8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }

.btn {
  display: inline-block;
  border-radius: 980px;
  padding: 11px 22px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.btn-secondary:hover { background: rgba(10, 102, 216, 0.06); }
.btn-small { padding: 6px 14px; font-size: 13px; }

/* --- Ikona aplikacji ----------------------------------------------------- */
/* Plik ikony nie ma kanału alfa: wokół zaokrąglonego kwadratu jest czerń.
   Przycinamy go do własnego kształtu i lekko powiększamy, żeby czerń
   wypadła poza kadr — tak samo jak na ekranie startowym aplikacji. */

.app-icon {
  width: var(--size, 120px);
  height: var(--size, 120px);
  border-radius: 22.5%;
  overflow: hidden;
  flex: none;
  box-shadow: 0 10px 30px rgba(11, 61, 145, 0.18);
}
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}
.app-icon--nav { --size: 26px; box-shadow: none; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  text-align: center;
  padding-block: 72px 0;
  overflow: hidden;
}

.hero .app-icon { --size: 128px; margin: 0 auto 28px; }

.eyebrow {
  font-size: 21px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 auto 18px;
  max-width: 20ch;
}

.hero .lead {
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.3;
  color: var(--muted);
  margin: 0 auto 34px;
  max-width: 40ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.cta-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Trzy telefony w wachlarzu pod nagłówkiem. */
.hero-devices {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(12px, 3vw, 36px);
  padding-inline: 22px;
}
.hero-devices .phone { --w: clamp(150px, 24vw, 260px); }
.hero-devices .phone:nth-child(1),
.hero-devices .phone:nth-child(3) { --w: clamp(120px, 20vw, 220px); }
.hero-devices .phone:nth-child(2) { margin-bottom: -40px; }

/* --- Telefon (ramka na zrzut ekranu) ------------------------------------- */
/* Ekran ma proporcje zrzutów z img/screens (720×1453 — zrzut 1080×2400
   po obcięciu paska statusu i nawigacji). Ramka bierze wysokość z ekranu,
   więc zrzut wypełnia ją w całości, bez przycinania boków.
   Brakujący zrzut: .shot-placeholder w miejsce <img>. */

.phone {
  width: var(--w, 280px);
  border-radius: calc(var(--w, 280px) * 0.16);
  padding: calc(var(--w, 280px) * 0.035);
  background: #1d1d1f;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 30px 60px -20px rgba(11, 61, 145, 0.35);
  flex: none;
  max-width: 100%;
}

.phone-screen {
  width: 100%;
  aspect-ratio: 720 / 1453;
  border-radius: calc(var(--w, 280px) * 0.125);
  overflow: hidden;
  background: #fff;
  position: relative;
}
.phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.shot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background:
    linear-gradient(160deg, rgba(10, 102, 216, 0.10), rgba(10, 102, 216, 0.02) 55%),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(10, 102, 216, 0.07) 38px 39px),
    repeating-linear-gradient(25deg, transparent 0 52px, rgba(10, 102, 216, 0.05) 52px 53px),
    #f8fafd;
}
.shot-placeholder strong { color: var(--accent-deep); font-size: 15px; }

/* --- Pasek faktów -------------------------------------------------------- */

.facts {
  background: var(--bg-alt);
  padding-block: 110px 64px;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.fact-value {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent-deep);
  line-height: 1.15;
  text-wrap: balance;
}
.fact-label { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* --- Sekcje funkcji ------------------------------------------------------ */

.feature { padding-block: 120px; }
.feature--alt { background: var(--bg-alt); }

.feature .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.feature--flip .wrap { grid-template-columns: 0.9fr 1.1fr; }
.feature--flip .feature-text { order: 2; }
.feature--flip .feature-media { order: 1; }

.feature-media { display: flex; justify-content: center; }
.feature-media .phone { --w: 290px; }

.feature h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.012em;
  font-weight: 700;
  margin: 0 0 22px;
}
.feature p { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.feature p.eyebrow { color: var(--accent); margin-bottom: 10px; }
.feature p strong { color: var(--text); font-weight: 600; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 980px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.feature--alt .chip { background: #fff; }
.feature:not(.feature--alt) .chip { background: var(--bg-alt); box-shadow: none; }

/* Legenda kolorów mapy cen. */
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; font-size: 15px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* --- Kafelki ------------------------------------------------------------- */

.tiles-section { padding-block: 120px; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.012em;
  margin: 0 0 14px;
}
.section-head p { font-size: 21px; color: var(--muted); margin: 0 auto; max-width: 36ch; }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  background: var(--bg-alt);
  border-radius: var(--radius-card);
  padding: 34px 30px;
}
.tile svg { width: 36px; height: 36px; color: var(--accent); margin-bottom: 18px; }
.tile h3 { font-size: 21px; margin: 0 0 8px; letter-spacing: -0.005em; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }

/* --- Prywatność ---------------------------------------------------------- */

.privacy {
  background: var(--bg-alt);
  padding-block: 120px;
  text-align: center;
}
.privacy .shield {
  width: 72px; height: 72px; margin: 0 auto 26px;
  border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #3b8af0, var(--accent-deep));
  color: #fff;
}
.privacy .shield svg { width: 38px; height: 38px; }
.privacy h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.012em;
  margin: 0 0 20px;
}
.privacy p {
  font-size: 21px; color: var(--muted);
  max-width: 40ch; margin: 0 auto 14px;
}

/* --- Cennik ------------------------------------------------------------- */

.pricing { padding-block: 120px 0; }
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.plan {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius-card);
  padding: 40px 30px 36px;
  text-align: center;
  border: 2px solid transparent;
}
.plan--best { border-color: var(--accent); }
.plan-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 980px;
  white-space: nowrap;
}
.plan h3 { font-size: 21px; margin: 0 0 14px; letter-spacing: -0.005em; }
.plan-price {
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--accent-deep);
  margin: 0 0 8px;
}
.plan-period { margin: 0; color: var(--muted); font-size: 16px; }
.plans-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  max-width: 52ch;
  margin: 28px auto 0;
}

/* --- Pobierz ------------------------------------------------------------- */

.download { padding-block: 130px; text-align: center; }
.download .app-icon { --size: 104px; margin: 0 auto 26px; }
.download h2 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.download p { font-size: 21px; color: var(--muted); margin: 0 0 32px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 190px;
  padding: 10px 22px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  text-align: left;
}
.store-badge:hover { text-decoration: none; background: #000; }
.store-badge small { font-size: 11px; opacity: 0.75; letter-spacing: 0.02em; }
.store-badge span { font-size: 19px; font-weight: 600; line-height: 1.2; }

/* --- Stopka -------------------------------------------------------------- */

.footer {
  background: var(--bg-alt);
  padding-block: 34px 44px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.footer p { margin: 0 0 10px; }
.footer .rule { border-top: 1px solid var(--hairline); margin: 18px 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0; }
.footer-links a { color: var(--muted); padding-inline: 10px; border-left: 1px solid var(--hairline); }
.footer-links a:first-child { padding-left: 0; border-left: 0; }

/* --- Pojawianie się przy przewijaniu ------------------------------------- */
/* Klasa .js trafia na <html> dopiero ze skryptu — bez JavaScriptu treść
   jest od razu widoczna. */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* --- Węższe ekrany ------------------------------------------------------- */

@media (max-width: 900px) {
  .feature .wrap { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .feature--flip .feature-text { order: 1; }
  .feature--flip .feature-media { order: 2; }
  .checks { justify-items: center; }
  .checks li { text-align: left; }
  .chips, .legend { justify-content: center; }
  .feature-media .phone { --w: 260px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .feature, .tiles-section, .privacy { padding-block: 80px; }
  .download { padding-block: 90px; }
  .tiles { grid-template-columns: 1fr; }
  .pricing { padding-top: 80px; }
  .plans { grid-template-columns: 1fr; row-gap: 32px; }
  .hero-devices .phone:nth-child(1),
  .hero-devices .phone:nth-child(3) { display: none; }
  .hero-devices .phone:nth-child(2) { --w: min(260px, 70vw); }
  .feature p, .section-head p, .privacy p, .download p { font-size: 18px; }
}

/* --- Strona z tekstem (polityka prywatności) ------------------------------ */

.doc { padding-block: 72px 96px; }
.doc .wrap { max-width: 760px; }

.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.doc-meta { color: var(--muted); margin: 0 0 40px; }

.doc h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 44px 0 12px;
}
.doc p, .doc li { color: var(--text); }
.doc p { margin: 0 0 14px; }
.doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc ol > li { margin-bottom: 10px; }
.doc ol ul { margin: 8px 0 0; padding-left: 20px; }

.doc-summary {
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 26px 28px 14px;
}
.doc-summary h2 { margin-top: 0; }
.doc-summary ul { margin: 0; padding-left: 20px; }
.doc-summary li { margin-bottom: 10px; }

.doc-table { overflow-x: auto; margin: 18px 0 20px; }
.doc-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}
.doc-table th, .doc-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.doc-table th {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.doc-table td:first-child { font-weight: 600; }

/* Pole do uzupełnienia przed publikacją — widoczne, żeby nie umknęło. */
.fill {
  background: #fff3bf;
  border-radius: 4px;
  padding: 0 4px;
}

@media (max-width: 600px) {
  .doc { padding-block: 48px 72px; }
  .doc-summary { padding: 20px 20px 8px; }

  /* Na telefonie każdy wiersz tabeli to osobny blok z podpisami —
     przewijanie w bok chowało kolumny „Dokąd" i „Po co". */
  .doc-table table { min-width: 0; }
  .doc-table thead { display: none; }
  .doc-table tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .doc-table td {
    display: grid;
    grid-template-columns: 5.5em 1fr;
    gap: 10px;
    padding: 3px 0;
    border: 0;
  }
  .doc-table td::before {
    content: attr(data-label);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    padding-top: 2px;
  }
}
