/* ===== AutoFiszki — landing page ===== */

/* Font Inter hostowany lokalnie (bez zapytań do serwerów Google — RODO) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b1020;
  --bg-alt: #0f1630;
  --surface: #151d3b;
  --surface-2: #1b2547;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1fb;
  --text-dim: #a8b1cf;
  --accent: #5eead4;      /* mięta — kolor linii z ikony aplikacji */
  --accent-2: #818cf8;    /* indygo — kolor tła ikony w Google Play */
  --accent-warm: #e8b34b; /* bursztyn — kolor tłumaczenia na ekranie blokady */
  --gradient: linear-gradient(135deg, var(--accent-2), var(--accent));
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* kotwice nie chowają się pod przyklejoną nawigacją */
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }

::selection {
  background: rgba(94, 234, 212, 0.28);
  color: var(--text);
}

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.container-narrow { width: min(780px, 92%); }

/* ===== Ikony (system inline SVG — stroke) ===== */
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-check {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ===== Przyciski ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn .icon { width: 18px; height: 18px; }

.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--gradient);
  color: #0b1020;
  box-shadow: 0 8px 30px rgba(94, 234, 212, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(94, 234, 212, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Zapowiedź „Wkrótce w Google Play" — wygląda jak przycisk, ale nie jest klikalna */
.btn-soon {
  color: var(--text);
  border: 1px dashed rgba(94, 234, 212, 0.45);
  background: rgba(94, 234, 212, 0.07);
  cursor: default;
  user-select: none;
}

.btn-soon .pulse-dot { margin-right: 0; }

.btn-soon:active { transform: none; }

.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ===== Nagłówek / nawigacja ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 32, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a:not(.btn) {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(129, 140, 248, 0.25), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(94, 234, 212, 0.18), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 34rem;
  margin-bottom: 24px;
  text-wrap: pretty;
}

.hero-sub strong { color: var(--text); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-highlight);
  padding: 7px 14px;
  border-radius: 999px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ===== Telefon ze zrzutem ekranu ===== */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone::after {
  content: "";
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 34px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(6px);
}

.phone {
  position: relative;
  z-index: 1;
  width: 290px;
  height: 615px;
  background: #05070f;
  border-radius: 42px;
  border: 3px solid #2a3354;
  box-shadow: var(--shadow), 0 0 80px rgba(129, 140, 248, 0.18);
  padding: 12px;
  animation: phone-float 6s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(0.5deg); }
  50% { transform: translateY(-14px) rotate(-0.5deg); }
}

.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

/* ===== Pasek liczb ===== */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 44px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat { position: relative; }

.stat + .stat::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
}

.stat-value {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ===== Sekcje ===== */
.section { padding: 96px 0; }

.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 14px;
  text-wrap: balance;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 40rem;
  margin: 0 auto 54px;
  text-wrap: pretty;
}

/* ===== Karty (wspólny język wizualny) ===== */
.step, .feature, .deck {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-highlight);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step:hover, .feature:hover, .deck:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.35);
}

/* ===== Kroki ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.step { padding: 32px 28px; }

.step-num {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #0b1020;
  background: var(--gradient);
  border-radius: 12px;
  margin-bottom: 18px;
}

.step h3 { font-size: 1.15rem; margin-bottom: 10px; }

.step p { color: var(--text-dim); font-size: 0.95rem; }

.step strong, .step em { color: var(--text); }

/* ===== Funkcje ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature { padding: 30px 26px; }

.feature-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 13px;
  margin-bottom: 16px;
}

.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }

.feature p { color: var(--text-dim); font-size: 0.93rem; }

/* ===== Talie ===== */
.decks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.deck { padding: 30px 28px; }

.deck-featured {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border-color: rgba(129, 140, 248, 0.35);
}

.deck-tag {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 13px;
  margin-bottom: 16px;
}

.deck h3 { font-size: 1.2rem; margin-bottom: 8px; }

.deck p { color: var(--text-dim); font-size: 0.95rem; }

.deck strong { color: var(--accent); }

/* ===== Cennik ===== */
.pricing {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 22px;
  padding: 44px 36px 36px;
  text-align: center;
  box-shadow: var(--shadow), var(--card-highlight);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #0b1020;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-price {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-warm);
}

.pricing-period {
  color: var(--text-dim);
  margin-bottom: 26px;
}

.pricing-list {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.95rem;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.pricing-list .icon-check { margin-top: 4px; }

.pricing-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.pricing-compare h3 { font-size: 1.3rem; margin-bottom: 14px; }

.pricing-compare > p {
  color: var(--text-dim);
  margin-bottom: 14px;
  text-wrap: pretty;
}

.pricing-compare strong { color: var(--text); }

.compare-table {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-highlight);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  padding: 12px 18px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.compare-row:last-child { border-bottom: none; }

.compare-row:nth-child(odd):not(.compare-head) { background: rgba(255, 255, 255, 0.02); }

.compare-head {
  background: var(--surface);
  font-weight: 700;
}

.compare-row .good { color: var(--accent); font-weight: 700; }
.compare-row .bad { color: #f87171; }

/* ===== FAQ ===== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-highlight);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq details[open] { border-color: rgba(94, 234, 212, 0.3); }

.faq summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 52px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p {
  padding: 0 24px 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ===== CTA końcowe ===== */
.final-cta {
  padding: 110px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(129, 140, 248, 0.2), transparent 65%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
}

.final-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 44rem;
  margin: 0 auto 12px;
  text-wrap: balance;
}

.final-cta p {
  color: var(--text-dim);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

/* ===== Stopka ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo { font-weight: 800; font-size: 1.2rem; margin-bottom: 8px; }

.footer-tag { color: var(--text-dim); font-size: 0.9rem; }

.site-footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.footer-h4-gap { margin-top: 18px; }

.site-footer a { color: var(--accent); text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

.footer-small { font-size: 0.8rem; color: var(--text-dim); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}

/* ===== Podstrony prawne (polityka prywatności) ===== */
.legal { padding: 60px 0 90px; }

.legal h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}

.legal p, .legal li {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin-bottom: 10px;
}

.legal strong { color: var(--text); }

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

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

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

.legal code {
  font-family: Consolas, Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}

.legal .tldr {
  background: var(--surface);
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--card-highlight);
  padding: 22px 26px;
  margin: 24px 0 8px;
}

.legal .tldr p { margin-bottom: 6px; }

.legal .tldr p:first-child {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

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

/* ===== Animacje wejścia ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* ===== Responsywność ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-badges, .hero-cta { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .decks { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0b1020;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    padding: 10px 4%;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 10px 0; }

  .nav-links .btn { justify-content: center; margin-top: 6px; }

  .section { padding: 64px 0; }

  .stats-grid { gap: 24px; }

  .stat + .stat::before { display: none; }

  .phone { width: 260px; height: 550px; }
}
