/* Strona promocyjna aplikacji Android (/app). Ciemna, "podwodna" jak sama aplikacja:
   te same fonty i akcent, szkło na głębokim tle, ruch tylko gdy użytkownik go nie wyłączył. */

:root {
  --abyss: #03141c;
  --deep: #062a38;
  --surface: #0d4a5c;
  --accent: #2de0c7;
  --accent-strong: #14b8a6;
  --accent-ink: #032a26;
  --coral: #ff7a8a;
  --sand: #ffb454;
  --text: #f2fffb;
  --muted: #a6d9d4;          /* 8.9:1 na --deep */
  --line: rgba(166, 217, 212, 0.18);
  --glass: rgba(13, 74, 92, 0.42);
  --glass-strong: rgba(9, 52, 66, 0.72);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -24px rgba(0, 8, 12, 0.85);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body.promo {
  margin: 0;
  min-height: 100vh;
  font: 400 1rem/1.6 var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, #06303f 0%, var(--deep) 28%, #04202b 70%, var(--abyss) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- tło: promienie światła, poświata, bąbelki ---------- */

.ocean { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ocean-rays {
  position: absolute; inset: -20% -10% 40%;
  background: repeating-linear-gradient(100deg, rgba(120, 255, 235, 0.07) 0 6%, transparent 6% 13%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  transform-origin: top center;
  animation: rays 18s ease-in-out infinite alternate;
}
.ocean-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.ocean-glow-a { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: #0f766e; }
.ocean-glow-b { width: 38vw; height: 38vw; right: -10vw; top: 30vh; background: #0e4f74; opacity: 0.45; }
.bubble {
  position: absolute; bottom: -40px; width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid rgba(200, 255, 247, 0.45);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 60%);
  animation: rise 16s linear infinite;
}
.b1 { left: 8%; animation-delay: 0s; }
.b2 { left: 22%; width: 6px; height: 6px; animation-delay: 5s; animation-duration: 20s; }
.b3 { left: 64%; width: 14px; height: 14px; animation-delay: 2s; animation-duration: 22s; }
.b4 { left: 82%; width: 8px; height: 8px; animation-delay: 9s; }
.b5 { left: 46%; width: 5px; height: 5px; animation-delay: 12s; animation-duration: 14s; }

@keyframes rays { from { transform: skewX(-4deg) translateX(-2%); } to { transform: skewX(4deg) translateX(2%); } }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(18px, -110vh); opacity: 0; }
}

/* ---------- nawigacja ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  padding: 12px var(--gutter);
  background: rgba(4, 28, 38, 0.66);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 1.05rem var(--font-display); min-height: 44px; }
.brand img { border-radius: 10px; }
.nav-links { display: none; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 10px 14px; border-radius: 10px; transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links + .nav-end { margin-left: 8px; }
.lang {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px;
  color: var(--muted); text-decoration: none; font: 600 0.85rem var(--font-mono);
  border: 1px solid var(--line); border-radius: 12px; transition: color 0.2s, border-color 0.2s;
}
.lang:hover { color: var(--text); border-color: var(--accent); }

/* ---------- przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 0.95rem; }
.btn-primary {
  color: var(--accent-ink); background: linear-gradient(180deg, #4ff0d8, var(--accent));
  box-shadow: 0 10px 30px -10px rgba(45, 224, 199, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(45, 224, 199, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(166, 217, 212, 0.35); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(45, 224, 199, 0.08); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.play-badge { display: inline-block; border-radius: 12px; transition: transform 0.2s var(--ease-out); }
.play-badge img { height: 56px; width: auto; }
.play-badge:hover { transform: translateY(-2px); }

/* ---------- układ ---------- */

main { position: relative; z-index: 1; }
.hero, .stats, .section { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.hero {
  display: grid; gap: 48px; align-items: center;
  padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--muted);
  background: rgba(45, 224, 199, 0.08); border: 1px solid rgba(45, 224, 199, 0.28);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(45, 224, 199, 0.6); animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(45, 224, 199, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(45, 224, 199, 0); } }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; }
.grad {
  display: inline-block;
  background: linear-gradient(100deg, #7ff7e4 0%, var(--accent) 45%, #58b6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 22px 0 0; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.cta-center { justify-content: center; }
.cta-note { margin: 14px 0 0; color: var(--muted); font-size: 0.95rem; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.95rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--accent); }

/* telefon z prawdziwym zrzutem ekranu */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone {
  position: relative; width: min(300px, 76vw); aspect-ratio: 300 / 649;
  padding: 10px; border-radius: 46px;
  background: linear-gradient(145deg, #1c3f4b, #07202a 55%, #16343f);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.phone::before {    /* aparat */
  content: ""; position: absolute; top: 20px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: #01090d; box-shadow: inset 0 0 0 2px #0d2630; z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; }
.phone-hero { transform: rotate(-3deg); }
.phone-hero::after {   /* odblask szkła */
  content: ""; position: absolute; inset: 10px; border-radius: 37px; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14) 0%, transparent 28%);
}

.float-card {
  position: absolute; z-index: 3;
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(166, 217, 212, 0.25); border-radius: 18px; box-shadow: var(--shadow);
}
.notif { display: flex; gap: 12px; align-items: flex-start; width: min(320px, 86vw); padding: 14px 16px; top: 6%; right: 50%; margin-right: -60px; animation: bob 7s ease-in-out infinite; }
.notif img { border-radius: 8px; margin-top: 2px; }
.notif p { margin: 0; }
.notif-app { font-size: 0.78rem; color: var(--muted); }
.notif-title { font-weight: 600; font-size: 0.95rem; }
.notif-text { font-size: 0.88rem; color: #d9f3ef; line-height: 1.4; }
.chip { display: grid; gap: 2px; padding: 12px 16px; min-width: 132px; }
.chip-label { font-size: 0.78rem; color: var(--muted); }
.chip-value { font: 600 1.45rem var(--font-mono); letter-spacing: -0.02em; }
.chip-ok { font-size: 0.78rem; font-weight: 600; color: var(--accent); }
.chip-temp { left: 50%; margin-left: -210px; bottom: 16%; animation: bob 8s ease-in-out -2s infinite; }
.chip-ph { right: 50%; margin-right: -205px; bottom: 34%; animation: bob 9s ease-in-out -4s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- liczby ---------- */

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin: 8px auto; padding: 0;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter));
  border-radius: var(--radius); overflow: hidden;
  background: var(--line); border: 1px solid var(--line);
}
.stat { display: grid; gap: 4px; padding: 24px 22px; background: rgba(5, 34, 45, 0.88); }
.stat strong { font: 600 clamp(1.8rem, 4vw, 2.6rem) var(--font-display); color: var(--accent); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* ---------- sekcje ---------- */

.section { padding-top: clamp(64px, 10vw, 120px); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; }
.section-head p:not(.kicker) { margin: 14px 0 0; color: var(--muted); font-size: 1.08rem; }
.kicker { margin: 0 0 12px; font: 600 0.82rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* bento */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 106, 128, 0.32), rgba(6, 42, 56, 0.55));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(45, 224, 199, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 40px -24px rgba(45, 224, 199, 0.35); }
.card h3 { font-size: 1.3rem; margin: 18px 0 8px; }
.card p { margin: 0; color: var(--muted); }
.icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  color: var(--accent); background: rgba(45, 224, 199, 0.1); border: 1px solid rgba(45, 224, 199, 0.25);
}
.icon svg { width: 24px; height: 24px; }
.card-xl {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 122, 138, 0.16), transparent 55%),
    linear-gradient(160deg, rgba(20, 106, 128, 0.4), rgba(6, 42, 56, 0.6));
}
.card-xl h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.card-xl .icon { color: var(--coral); background: rgba(255, 122, 138, 0.1); border-color: rgba(255, 122, 138, 0.3); }
.alert-feed { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.af {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; font-size: 0.92rem;
  background: rgba(3, 20, 28, 0.55); border: 1px solid var(--line);
}
.af-dot { width: 10px; height: 10px; border-radius: 50%; }
.af-crit .af-dot { background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.af-warn .af-dot { background: var(--sand); }
.af-ok .af-dot { background: var(--accent); }
.af-crit { border-color: rgba(255, 122, 138, 0.45); }
.af-time { font: 500 0.8rem var(--font-mono); color: var(--muted); }
.js .af { opacity: 0; transform: translateX(-12px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.js .in .af { opacity: 1; transform: none; }
.js .in .af:nth-child(2) { transition-delay: 0.15s; }
.js .in .af:nth-child(3) { transition-delay: 0.3s; }
.spark { display: block; width: 100%; height: 72px; margin-top: 22px; }
.spark path { stroke-width: 2; }
.spark .band { fill: rgba(45, 224, 199, 0.12); stroke: none; }
.spark .line { stroke: var(--accent); fill: none; }
.spark .limit { stroke: rgba(255, 180, 84, 0.6); stroke-dasharray: 4 5; stroke-width: 1.2; fill: none; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; }
.tags li { padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }

/* galeria */
.gallery { position: relative; }
.gallery-track {
  display: flex; gap: 24px; overflow-x: auto; padding: 12px 4px 28px;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.shot { flex: none; margin: 0; scroll-snap-align: center; display: grid; justify-items: center; gap: 14px; }
.shot .phone { width: min(260px, 70vw); }
.shot figcaption { color: var(--muted); font-size: 0.95rem; text-align: center; max-width: 240px; }
.gallery-nav { display: flex; justify-content: center; gap: 12px; }
.round {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(166, 217, 212, 0.3);
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.round:hover { background: rgba(45, 224, 199, 0.12); border-color: var(--accent); }
.round:disabled { opacity: 0.35; cursor: default; }

/* kroki */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.step h3 { font-size: 1.25rem; margin: 16px 0 8px; }
.step p { margin: 0; color: var(--muted); }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font: 600 1.1rem var(--font-mono); color: var(--accent-ink); background: var(--accent);
  box-shadow: 0 0 0 6px rgba(45, 224, 199, 0.12);
}

/* prywatność */
.privacy-panel {
  display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 48px);
  border-radius: 28px; border: 1px solid rgba(45, 224, 199, 0.3);
  background: radial-gradient(100% 140% at 0% 0%, rgba(45, 224, 199, 0.16), transparent 55%), var(--glass);
}
.privacy-panel h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.privacy-panel p { color: var(--muted); margin: 12px 0 18px; max-width: 46em; }
.privacy-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: rgba(45, 224, 199, 0.12); color: var(--accent); }
.privacy-icon svg { width: 36px; height: 36px; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.link-arrow span { transition: transform 0.2s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--glass); border: 1px solid var(--line); transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(45, 224, 199, 0.4); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 16px 22px; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-body); color: var(--accent); transition: transform 0.25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* końcowe wezwanie */
.final-cta {
  text-align: center; padding: clamp(40px, 7vw, 72px) var(--gutter); border-radius: 32px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(45, 224, 199, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(13, 74, 92, 0.6), rgba(6, 42, 56, 0.6));
  border: 1px solid rgba(45, 224, 199, 0.3);
}
.final-cta img { margin: 0 auto 20px; border-radius: 20px; box-shadow: 0 16px 40px -16px rgba(45, 224, 199, 0.6); }
.final-cta h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.final-cta p { color: var(--muted); margin: 12px auto 0; max-width: 32em; font-size: 1.08rem; }

.footer { position: relative; z-index: 1; padding: 64px var(--gutter) 40px; text-align: center; color: var(--muted); font-size: 0.92rem; }
.footer p { margin: 6px 0; }
.footer a { color: var(--text); }
.legal { font-size: 0.8rem; opacity: 0.8; }

/* wejście sekcji przy przewijaniu (klasa .js dodawana przez promo.js: bez JS wszystko widać) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- większe ekrany ---------- */

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-xl { grid-column: span 2; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .privacy-panel { grid-template-columns: auto 1fr; }
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .hero { grid-template-columns: 1.05fr 0.95fr; }
  .hero-visual { min-height: 660px; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .card-xl { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
  .card-xl .alert-feed { margin-bottom: auto; padding-bottom: 28px; }
  .card-wide { grid-column: span 2; }
}

@media (max-width: 480px) {
  .chip-temp { margin-left: -46vw; bottom: 8%; }
  .chip-ph { margin-right: -46vw; bottom: 30%; }
  .notif { margin-right: -43vw; top: 2%; }
  .cta-row .btn { flex: 1 1 100%; }
}

/* ---------- mniej ruchu na życzenie ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .af { opacity: 1; transform: none; }
  .bubble { display: none; }
}

/* =====================================================================
   Efekty w stylu 21st.dev / Magic UI, bez Reacta: siatka w tle, poświata
   za kursorem na kartach, obramowanie w ruchu, pas przewijany, liczniki,
   lekki obrót telefonu 3D. Ruch tylko na urządzeniach z kursorem i bez
   prefers-reduced-motion; bez JS strona wygląda tak samo, tylko statycznie.
   ===================================================================== */

@property --beam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* siatka kropek za hero, wygaszana do krawędzi */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -40px 0 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(166, 217, 212, 0.18) 1px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(60% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 40%, #000 30%, transparent 75%);
}

/* nagłówek: przesuwający się połysk na gradiencie */
.grad { background-size: 200% auto; animation: shine 7s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }

/* karty: poświata i jaśniejsza krawędź tam, gdzie jest kursor */
.card { overflow: hidden; --mx: 50%; --my: 50%; }
.card::before, .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.35s var(--ease-out); }
.card::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(45, 224, 199, 0.12), transparent 45%); }
.card::after {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(45, 224, 199, 0.75), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

/* obramowanie w ruchu ("border beam") */
.btn-primary { position: relative; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--beam-angle), transparent 0 70%, rgba(255, 255, 255, 0.9) 80%, #58b6ff 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 4.5s linear infinite;
}
@keyframes beam { to { --beam-angle: 360deg; } }

/* pas przewijany (marquee) z wygaszonymi krawędziami */
.marquee {
  max-width: var(--max); margin: 28px auto 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; gap: 12px; padding: 6px 6px; margin: 0; list-style: none; }
.marquee-list li {
  white-space: nowrap; padding: 9px 16px; border-radius: 999px; font-size: 0.92rem; color: var(--text);
  background: rgba(13, 74, 92, 0.45); border: 1px solid var(--line);
}
.marquee-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%;
  vertical-align: middle; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* telefon: lekki obrót 3D za kursorem */
.hero-visual { perspective: 1200px; }
.phone-hero { transition: transform 0.5s var(--ease-out); transform-style: preserve-3d;
  transform: rotate(-3deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* pasek nawigacji po przewinięciu */
.nav { transition: background-color 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: rgba(4, 28, 38, 0.88); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9); }

@media (hover: none) {
  .card::before, .card::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .grad { animation: none; }
  .btn-primary::after { display: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .marquee-list { flex-wrap: wrap; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .phone-hero { transform: rotate(-3deg); }
}
.stat strong [data-count] { font: inherit; color: inherit; }

/* ---------- podstrony SEO (funkcje i poradniki, scripts/build_site.py) ---------- */

.article { max-width: 820px; padding-bottom: 24px; }
.article h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.08; }
.crumbs { margin: 0 0 20px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.prose { margin-top: 40px; }
.prose h2, .faq-title, .related h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--muted); font-size: 1.06rem; text-wrap: pretty; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }

.prose code { font: 500 0.98rem var(--font-mono); color: var(--text); background: var(--glass); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.faq-title + .faq { margin: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.co2-table { width: 100%; border-collapse: collapse; font: 500 1rem var(--font-mono); text-align: center; }
.co2-table caption { caption-side: bottom; padding: 10px 14px; text-align: left; font: 400 0.9rem var(--font-body); color: var(--muted); }
.co2-table th, .co2-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.co2-table thead th { color: var(--accent); background: var(--glass-strong); }
.co2-table tbody th { text-align: left; color: var(--muted); font-weight: 500; white-space: nowrap; }
.co2-table .co2-ok { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.co2-table .co2-high { color: var(--coral); }
.co2-table .co2-low { color: var(--muted); }
.article-cta { margin-top: 64px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related a, .guides a {
  display: flex; align-items: center; min-height: 52px; padding: 12px 18px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; background: var(--glass); border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.related a:hover, .guides a:hover { border-color: rgba(45, 224, 199, 0.45); }
.guides { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: grid; gap: 10px; }
@media (min-width: 720px) { .guides { grid-template-columns: 1fr 1fr; } }
.prose .formula { display: inline-block; max-width: 100%; overflow-x: auto; white-space: nowrap; font-size: 0.9rem; }

/* ---------- pobieranie i prośba o dostęp ---------- */

.cta-note a { color: var(--accent); }
.play-center { margin-top: 20px; }
.get-grid { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
@media (min-width: 820px) { .get-grid { grid-template-columns: 1fr 1fr; } }
.get-card { display: flex; flex-direction: column; }
.get-card > .btn { align-self: flex-start; margin-top: auto; }
.get-steps { margin: 14px 0 0; padding-left: 1.3em; color: var(--muted); }
.get-steps li + li { margin-top: 6px; }
.get-card .get-note { margin: 14px 0 18px; font-size: 0.92rem; }
.get-card .get-note-strong { color: var(--text); margin-top: auto; }
.get-list { margin-bottom: 18px; }

/* formularz „Poproś o dostęp” */
.access-form { display: grid; gap: 12px; margin-top: 16px; }
.af-field { display: grid; gap: 6px; font-size: 0.92rem; color: var(--muted); }
.af-field input, .af-field textarea, .af-field select {
  font: inherit; font-size: 1rem; color: var(--text); background: rgba(3, 20, 28, 0.55);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; min-height: 46px; width: 100%;
}
.af-field input:focus-visible, .af-field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.af-field textarea { resize: vertical; min-height: 80px; }
.af-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.af-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.af-check a { color: var(--accent); }
.access-form .btn { justify-self: start; }
.af-status { margin: 0; min-height: 1.4em; font-size: 0.95rem; color: var(--coral); }
.af-status.af-ok { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kit-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 0.95rem; color: var(--text);
  background: rgba(255, 180, 84, 0.1); border: 1px solid rgba(255, 180, 84, 0.35); }
.kit-note strong { color: var(--sand); }
.cf-turnstile { min-height: 65px; }
.beta-note { margin: 18px 0 0; max-width: 34em; padding: 10px 14px; border-radius: 12px; font-size: 0.98rem;
  color: var(--text); background: rgba(45, 224, 199, 0.08); border: 1px solid rgba(45, 224, 199, 0.35); }
.beta-note strong { color: var(--accent); }
