/* =========================================================
   Kappka — strona marketingowa
   Paleta i promienie zaokrągleń przeniesione 1:1 z prototypu
   aplikacji (artful-app-view / src/styles.css).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --radius: 1rem;

  --background: oklch(0.985 0.005 170);
  --foreground: oklch(0.22 0.03 190);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.22 0.03 190);

  --primary: oklch(0.62 0.16 152);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.93 0.05 152);
  --secondary-foreground: oklch(0.35 0.07 152);
  --muted: oklch(0.94 0.02 155);
  --muted-foreground: oklch(0.55 0.05 155);
  --accent: oklch(0.72 0.14 152);
  --accent-foreground: oklch(1 0 0);

  --border: oklch(0.88 0.02 158);
  --eco-light: oklch(0.94 0.05 152);
  --eco-glow: oklch(0.88 0.09 150);
  --success: oklch(0.65 0.14 145);
  --success-foreground: oklch(1 0 0);

  --shadow-color: oklch(0.22 0.03 190 / 8%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: oklch(0.18 0.02 190);
    --foreground: oklch(0.96 0.01 170);
    --card: oklch(0.24 0.03 190);
    --card-foreground: oklch(0.96 0.01 170);

    --primary: oklch(0.82 0.18 149);
    --primary-foreground: oklch(0.12 0.02 152);
    --secondary: oklch(0.3 0.05 155);
    --secondary-foreground: oklch(0.96 0.01 155);
    --muted: oklch(0.28 0.03 155);
    --muted-foreground: oklch(0.72 0.05 155);
    --accent: oklch(0.62 0.16 152);
    --accent-foreground: oklch(1 0 0);

    --border: oklch(1 0 0 / 12%);
    --eco-light: oklch(0.28 0.04 152);
    --eco-glow: oklch(0.35 0.08 150);
    --success: oklch(0.7 0.12 145);
    --success-foreground: oklch(0.12 0.02 170);
    --shadow-color: oklch(0 0 0 / 35%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --background: oklch(0.18 0.02 190);
  --foreground: oklch(0.96 0.01 170);
  --card: oklch(0.24 0.03 190);
  --card-foreground: oklch(0.96 0.01 170);

  --primary: oklch(0.82 0.18 149);
  --primary-foreground: oklch(0.12 0.02 152);
  --secondary: oklch(0.3 0.05 155);
  --secondary-foreground: oklch(0.96 0.01 155);
  --muted: oklch(0.28 0.03 155);
  --muted-foreground: oklch(0.72 0.05 155);
  --accent: oklch(0.62 0.16 152);
  --accent-foreground: oklch(1 0 0);

  --border: oklch(1 0 0 / 12%);
  --eco-light: oklch(0.28 0.04 152);
  --eco-glow: oklch(0.35 0.08 150);
  --success: oklch(0.7 0.12 145);
  --success-foreground: oklch(0.12 0.02 170);
  --shadow-color: oklch(0 0 0 / 35%);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: color-mix(in oklch, var(--background) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

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

.brand { display: flex; align-items: center; }

/* Logo — w oryginalnych kolorach (czarno-zielone) na jasnym tle; w trybie
   ciemnym (gdy reszta strony też przechodzi na ciemne tło) wymuszony biały
   wariant, bo inaczej czarne linie zlewałyby się z ciemnym tłem. */
.brand-logo { display: block; height: 22px; width: auto; }
.nav .brand-logo { height: 56px; }
footer .brand-logo { height: 112px; filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo { filter: brightness(0) invert(1); }
}
:root[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--foreground); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 20px -8px oklch(0.62 0.16 152 / 55%);
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta:active { transform: scale(0.97); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  align-items: center; justify-content: center;
  color: var(--foreground);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.mobile-menu a {
  padding: 12px 4px;
  font-weight: 500;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }

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

.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 560px;
  background:
    radial-gradient(420px 280px at 15% 20%, oklch(0.72 0.14 152 / 22%), transparent 70%),
    radial-gradient(380px 260px at 85% 0%, oklch(0.62 0.16 152 / 18%), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid color-mix(in oklch, var(--primary) 25%, transparent);
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.hero p.lead {
  margin: 20px 0 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  max-width: 46ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 24px -10px oklch(0.62 0.16 152 / 60%);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--muted); }

.soon-label {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted-foreground); font-weight: 700;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

/* Odznaki App Store / Google Play — oficjalne grafiki Apple/Google.
   Google'owy PNG ma spory wbudowany margines wewnątrz kadru, więc przy
   tej samej wysokości wygląda mniejszy niż ciasno przycięty SVG Apple'a —
   stąd wyższa wartość dla Google, żeby wizualnie wyrównać obie odznaki. */
.store-badge { display: inline-flex; line-height: 0; }
.store-badge img { display: block; width: auto; }
.store-badge--apple img { height: 58px; }
.store-badge--google img { height: 78px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.hero-trust span { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.hero-trust .icon { color: var(--primary); font-size: 1.05rem; }

/* ---------- Phone mockup ---------- */

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 300px;
  height: 610px;
  border-radius: 46px;
  background: #0c0c0e;
  padding: 12px;
  box-shadow:
    0 40px 80px -30px oklch(0.22 0.03 190 / 45%),
    0 0 0 1px oklch(0.22 0.03 190 / 8%);
}

.phone::after {
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #0c0c0e;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--background);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-content {
  flex: 1;
  overflow: hidden;
  padding: 34px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phone-header { display: flex; align-items: center; justify-content: space-between; }
.phone-header .hello { font-size: 0.68rem; color: var(--muted-foreground); display: flex; align-items: center; gap: 4px; }
.phone-header h2 { margin: 1px 0 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.phone-avatar {
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  display: grid; place-items: center; font-size: 0.85rem;
}

.hero-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, oklch(0.66 0.15 152), oklch(0.56 0.16 155));
  color: white;
  padding: 18px 18px 0;
}
.hero-card .blob {
  position: absolute;
  border-radius: 999px;
  background: oklch(0.94 0.05 152 / 35%);
  filter: blur(18px);
}
.hero-card .b1 { width: 90px; height: 90px; top: -30px; left: -24px; }
.hero-card .b2 { width: 80px; height: 80px; top: -22px; right: -28px; opacity: .8;}
.hero-card .b3 { width: 80px; height: 80px; bottom: -30px; left: -20px; opacity: .7;}

.hero-card-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-card-inner .label { font-size: 0.68rem; opacity: 0.85; margin: 0; }
.hero-card-inner .amount { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 0; }
.hero-card-inner .level { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 0.72rem; font-weight: 600; }
.hero-card-inner .bar { width: 130px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.3); margin-top: 6px; overflow: hidden; }
.hero-card-inner .bar span { display: block; height: 100%; width: 66%; background: rgba(255,255,255,.95); border-radius: 999px; }
.hero-card-inner .xp { font-size: 0.62rem; opacity: .85; margin: 4px 0 0; }

.chips { display: flex; gap: 6px; margin-top: 10px; }
.chip { display: flex; align-items: center; gap: 4px; font-size: 0.6rem; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }

.mini-chart { margin-top: 10px; height: 54px; position: relative; }
.mini-chart svg { width: 100%; height: 100%; }
.mini-chart .caption { position: absolute; left: 0; bottom: 4px; font-size: 0.62rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }

.scan-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: var(--primary-foreground);
  border-radius: 16px; padding: 13px; font-size: 0.85rem; font-weight: 600;
}

.recent-title { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; font-weight: 600; margin-top: 2px;}
.recent-title span:last-child { color: var(--primary); font-weight: 500; display:flex; align-items:center; gap:2px; font-size: 0.68rem; }

.coupon-row {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 14px; padding: 9px 11px; font-size: 0.72rem;
}
.coupon-row .store { display: flex; align-items: center; gap: 8px; }
.coupon-row .ic { width: 26px; height: 26px; border-radius: 9px; background: var(--muted); color: var(--muted-foreground); display: grid; place-items: center; font-size: 0.85rem;}
.coupon-row b { display:block; font-size: 0.76rem; font-weight: 600; }
.coupon-row small { color: var(--muted-foreground); font-size: 0.62rem; }
.coupon-row .amt { color: var(--primary); font-weight: 700; font-size: 0.8rem; }

.phone-tabbar {
  display: flex; align-items: center; justify-content: space-around;
  padding: 10px 6px 14px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 70%, transparent);
  backdrop-filter: blur(10px);
}
.phone-tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.55rem; color: var(--muted-foreground); font-weight: 600; }
.phone-tabbar .tab.active { color: var(--primary); }
.phone-tabbar .tab .dot { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: 1rem; }
.phone-tabbar .tab.active .dot { background: color-mix(in oklch, var(--primary) 12%, transparent); }

.float-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 20px 40px -18px var(--shadow-color);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 1.1rem; }
.float-1 { top: 14%; right: 2%; }
.float-1 .ic { background: color-mix(in oklch, var(--success) 15%, transparent); color: var(--success); }
.float-2 { bottom: 10%; left: 2%; }
.float-2 .ic { background: color-mix(in oklch, var(--primary) 14%, transparent); color: var(--primary); }
.float-card small { display: block; color: var(--muted-foreground); font-weight: 500; font-size: 0.68rem; }

@media (max-width: 720px) {
  .float-card { display: none; }
}

/* ---------- Sections shared ---------- */

section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.section-head p { color: var(--muted-foreground); font-size: 1.02rem; line-height: 1.6; margin: 0; }

/* ---------- How it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
}
.step .num {
  position: absolute; top: -14px; left: 24px;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  font-weight: 700; font-size: 0.85rem;
  display: grid; place-items: center;
}
.step .ic {
  width: 48px; height: 48px; border-radius: 16px;
  background: var(--secondary); color: var(--secondary-foreground);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted-foreground); font-size: 0.92rem; line-height: 1.55; }

/* ---------- Features ---------- */

.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: 0 auto; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px var(--shadow-color); border-color: color-mix(in oklch, var(--primary) 30%, var(--border)); }
.feature-card .ic {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px;
  background: color-mix(in oklch, var(--primary) 12%, transparent); color: var(--primary);
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted-foreground); font-size: 0.9rem; line-height: 1.55; }

/* ---------- Showcase (ranking) ---------- */

.showcase { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.showcase-copy .check-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.showcase-copy .check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.96rem; color: var(--foreground); }
.showcase-copy .check-list .ic { flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; background: color-mix(in oklch, var(--success) 16%, transparent); color: var(--success); display: grid; place-items: center; margin-top: 1px;}
.showcase-copy .check-list .ic svg { width: 13px; height: 13px; }

.ranking-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 60px -30px var(--shadow-color);
}
.leader-banner {
  position: relative;
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(155deg, oklch(0.66 0.15 152), oklch(0.56 0.16 155));
  color: #fff;
  display: flex; align-items: center; gap: 16px;
  overflow: hidden;
  margin-bottom: 18px;
}
.leader-banner .blob { position: absolute; border-radius: 999px; background: rgba(255,255,255,.18); filter: blur(20px); }
.leader-banner .b1 { width: 100px; height: 100px; top: -30px; left: -20px; }
.leader-banner .b2 { width: 90px; height: 90px; bottom: -30px; right: -10px; }
.leader-banner .trophy-box { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; font-size: 1.6rem; flex-shrink: 0; }
.leader-banner .info { position: relative; z-index: 1; }
.leader-banner .info p:first-child { margin: 0; font-size: 0.78rem; opacity: 0.85; }
.leader-banner .info p.name { margin: 2px 0 0; font-size: 1.25rem; font-weight: 700; }
.leader-banner .info p.amt { margin: 2px 0 0; font-size: 0.85rem; opacity: 0.92; }

.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.rank-row:last-child { border-bottom: none; }
.rank-row .place { width: 26px; height: 26px; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.rank-row.me .place { background: var(--primary); color: var(--primary-foreground); }
.rank-row .av { width: 36px; height: 36px; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.rank-row.me .av { background: var(--primary); color: var(--primary-foreground); }
.rank-row .who { flex: 1; min-width: 0; }
.rank-row .who b { display: block; font-weight: 600; }
.rank-row .who small { color: var(--muted-foreground); font-size: 0.72rem; }
.rank-row .amt { font-weight: 700; color: var(--primary); }

/* ---------- Impact ---------- */

.impact { background: linear-gradient(180deg, color-mix(in oklch, var(--eco-light) 55%, var(--background)), var(--background)); }

.impact-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.section-head--left { text-align: left; margin: 0 0 32px; max-width: none; }

.impact-list { display: flex; flex-direction: column; gap: 22px; }
.impact-row { display: flex; align-items: flex-start; gap: 16px; }
.impact-row .ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 999px;
  background: color-mix(in oklch, var(--primary) 14%, transparent); color: var(--primary);
  display: grid; place-items: center;
}
.impact-row h3 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 700; }
.impact-row p { margin: 0; color: var(--muted-foreground); font-size: 0.92rem; line-height: 1.55; }

/* Zielony, minimalistyczny globus 3D (linie wireframe) — prawdziwy obrót
   w 3D liczony na canvasie (script.js), nie płaska animacja CSS. */
.impact-globe-wrap { display: flex; justify-content: center; }
.impact-globe {
  width: 100%; max-width: 420px; aspect-ratio: 1;
  filter: drop-shadow(0 20px 40px color-mix(in oklch, var(--primary) 35%, transparent));
  cursor: grab; touch-action: none;
}
.impact-globe:active { cursor: grabbing; }

@media (max-width: 900px) {
  .impact-layout { grid-template-columns: 1fr; gap: 36px; }
  .impact-globe-wrap { order: -1; }
  .impact-globe { max-width: 280px; }
}

/* ---------- Levels ---------- */

.levels-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Karty poziomów w stylu "hero card" telefonu — pełne kolorowe tło +
   szklane poświaty (te same .blob co .hero-card), zamiast białej karty
   z małą kolorową plakietką. */
.level-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  color: #fff;
}
.level-card .blob { position: absolute; border-radius: 999px; filter: blur(18px); background: rgba(255,255,255,.35); }
.level-card .b1 { width: 70px; height: 70px; top: -24px; left: -18px; }
.level-card .b2 { width: 64px; height: 64px; bottom: -22px; right: -16px; opacity: .8; }
.level-card .badge {
  position: relative; z-index: 1;
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(255,255,255,.2); color: #fff;
}
.level-card h4 { position: relative; z-index: 1; margin: 0 0 4px; font-size: 0.98rem; font-weight: 700; }
.level-card p { position: relative; z-index: 1; margin: 0; font-size: 0.78rem; line-height: 1.4; opacity: 0.92; }

.level-card--gray { background: linear-gradient(160deg, #A0A0A5, #7C7C82); }
.level-card--cyan { background: linear-gradient(160deg, #3FC4DE, #1E93AC); }
.level-card--green { background: linear-gradient(160deg, oklch(0.7 0.16 152), oklch(0.56 0.16 155)); }
.level-card--gold {
  background: linear-gradient(160deg, #FFDD55, #EAB000);
  color: #1c1c1e;
}
.level-card--gold .badge { background: rgba(28,28,30,.12); color: #1c1c1e; }
.level-card--gold p { opacity: 0.78; }

/* ---------- CTA / download ---------- */

.cta {
  border-radius: 32px;
  background: linear-gradient(155deg, oklch(0.66 0.15 152), oklch(0.5 0.17 158));
  color: #fff;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta .blob { position: absolute; border-radius: 999px; background: rgba(255,255,255,.14); filter: blur(30px); }
.cta .b1 { width: 220px; height: 220px; top: -80px; left: -60px; }
.cta .b2 { width: 240px; height: 240px; bottom: -100px; right: -60px; }
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.cta p { opacity: 0.92; margin: 0 0 20px; font-size: 1rem; line-height: 1.6; }
.cta .store-row { justify-content: center; }
.cta .soon-label { color: rgba(255,255,255,.8); margin-top: 14px; }

/* ---------- Footer — zawsze pełna czerń, niezależnie od jasnego/ciemnego
   motywu reszty strony. ---------- */

footer { background: #000; color: rgba(255,255,255,.75); padding: 48px 0 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 0.88rem; max-width: 32ch; margin: 12px 0 0; line-height: 1.55; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { margin: 0 0 14px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4); }
.footer-col a { display: block; margin-bottom: 10px; font-size: 0.9rem; color: rgba(255,255,255,.85); }
.footer-col a:hover { color: #fff; }
.footer-bottom-bar { margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom {
  margin-top: 0; padding: 20px 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: rgba(255,255,255,.6);
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-stage { margin-top: 24px; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-copy { order: 2; }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: 1fr; }
  .levels-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .levels-row { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 44px 22px; }
  .hero { padding-top: 40px; }
}

/* ---------- Strony prawne (polityka prywatności / regulamin) ---------- */

.legal-header { padding: 56px 0 8px; border-bottom: 1px solid var(--border); }
.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--muted-foreground);
  margin-bottom: 22px;
}
.legal-back:hover { color: var(--foreground); }
.legal-back .icon { width: 15px; height: 15px; transform: rotate(180deg); }
.legal-header h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.legal-updated { color: var(--muted-foreground); font-size: 0.88rem; font-weight: 600; margin: 0 0 40px; }

.legal-content { padding: 44px 0 88px; max-width: 780px; }
.legal-content h2 {
  font-size: 1.15rem; margin: 44px 0 14px; padding-top: 4px;
  letter-spacing: -0.01em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1rem; margin: 26px 0 10px; color: var(--foreground); }
.legal-content p { margin: 0 0 14px; color: var(--muted-foreground); font-size: 0.98rem; line-height: 1.7; font-weight: 500; }
.legal-content strong { color: var(--foreground); font-weight: 700; }
.legal-content ul, .legal-content ol { margin: 0 0 16px; padding-left: 22px; color: var(--muted-foreground); font-size: 0.98rem; line-height: 1.7; font-weight: 500; }
.legal-content li { margin-bottom: 6px; }
.legal-content li::marker { color: var(--primary); }
.legal-content a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Ekologia — "sadzimy prawdziwe drzewo" ---------- */

.tree-cta { padding: 0 0 40px; }
.tree-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: color-mix(in oklch, var(--primary) 8%, var(--card));
  border: 1px solid color-mix(in oklch, var(--primary) 22%, transparent);
  border-radius: 28px;
  padding: 36px 40px;
}
.tree-card-icon {
  width: 76px; height: 76px; flex-shrink: 0;
  border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  display: grid; place-items: center;
}
.tree-card-copy h2 { margin: 10px 0 10px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -0.01em; }
.tree-card-copy p { margin: 0; color: var(--muted-foreground); font-size: 1rem; line-height: 1.65; max-width: 62ch; }

@media (max-width: 640px) {
  .tree-card { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; }
  .tree-card-icon { margin: 0 auto; }
}
