/* voli landing — Zdrowe Zakupy–style layout */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --border: #e8ecf1;
  --text: #1a1a1a;
  --text-soft: #3d4a5c;
  --muted: #5c6478;
  --accent: #2fae84;
  --accent-hover: #24916c;
  --wave: #e8f4fc;
  --band-bad: #ec4b3c;
  --band-poor: #f5a623;
  --band-good: #8bc34a;
  --band-great: #3da35d;
  --header-h: 76px;
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'almoni', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

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

.skip-link {
  position: absolute;
  right: 16px;
  top: -100px;
  z-index: 400;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.skip-link:focus,
.skip-link:focus-visible { top: 12px; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--text);
}

.btn-outline:hover { background: var(--surface-2); }

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  min-height: 52px;
}

.btn-nav {
  padding: 10px 22px;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nav-desktop {
  display: flex;
  gap: 28px;
  margin-inline-start: auto;
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.nav-desktop a:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  margin-inline-start: auto;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 24px;
  border-top: 1px solid var(--border);
}

.nav-mobile:not([hidden]) { display: flex; }

.nav-mobile a {
  padding: 14px 0;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}

/* Hero */

.hero {
  position: relative;
  padding: 56px 0 80px;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  inset-inline-start: -10%;
  bottom: -20%;
  width: 70%;
  height: 90%;
  background: var(--wave);
  border-radius: 50% 40% 50% 60%;
  z-index: 0;
  pointer-events: none;
}

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

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-item strong {
  font-size: 1.35rem;
  font-weight: 800;
}

.proof-item span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-hero { transform: rotate(-4deg); }

/* Phone */

.phone-frame {
  position: relative;
  z-index: 2;
  width: 270px;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 40px 80px rgba(0, 0, 0, 0.16),
    0 12px 32px rgba(0, 0, 0, 0.08);
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 34px;
}

/* Sections */

.section { padding: 88px 0; }

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
}

.section-title.center { text-align: center; }

.how { padding-top: 48px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
  text-align: center;
}

.step-art {
  width: min(280px, 100%);
  height: auto;
  margin: 0 auto 20px;
}

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

.step p {
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 280px;
  margin-inline: auto;
}

/* Why */

.why {
  position: relative;
  overflow: hidden;
}

.why-wave {
  position: absolute;
  inset-inline-end: -8%;
  top: 8%;
  width: 55%;
  height: 85%;
  background: var(--wave);
  border-radius: 46% 50% 40% 55%;
  z-index: 0;
}

.why-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.why-copy h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 32px;
}

.why-list { display: flex; flex-direction: column; gap: 22px; }

.why-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.smile { flex-shrink: 0; width: 48px; height: 48px; }
.smile svg { width: 100%; height: 100%; }

.why-list h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.why-list p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.why-visual {
  display: flex;
  justify-content: center;
}

.join-line {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 8px 24px 48px;
  max-width: 720px;
  margin-inline: auto;
}

/* FAQ */

.faq { padding: 24px 0 8px; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
  margin-top: 40px;
}

.faq-item h3 {
  font-size: 1.06rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.faq-item p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Download */

.download-section { padding-top: 40px; }

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.download-copy h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.download-copy p {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 460px;
}

.badge-link { display: inline-block; transition: transform 0.2s, opacity 0.2s; }
.badge-link:hover { transform: translateY(-2px); opacity: 0.85; }

/* Download CTA swaps to a QR code on desktop, where a store link can't install. */

.only-desktop { display: none; }
[data-device="desktop"] .only-desktop { display: flex; }
[data-device="desktop"] .only-mobile { display: none; }

.qr-card {
  align-items: center;
  gap: 20px;
  padding: 20px;
  max-width: 460px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.qr-code {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  image-rendering: pixelated;
}

.qr-text { display: flex; flex-direction: column; gap: 6px; }

.qr-text strong { font-size: 1.05rem; font-weight: 800; }

.qr-text span {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.download-phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.phone-back {
  width: 230px;
  transform: rotate(-10deg) translate(36px, 12px);
  z-index: 1;
}

.phone-front {
  width: 250px;
  transform: rotate(6deg) translate(-20px, 0);
  z-index: 3;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h2 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 16px;
}

.operator {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 16px;
  line-height: 1.65;
}

.operator a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col a {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 0;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-bottom p { font-size: 0.85rem; color: var(--muted); }
.footer-legal { margin-top: 6px; }

/* Legal pages */

.legal-page { padding: 48px 0 80px; }
.legal-crumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.legal-crumb a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body { max-width: 760px; }
.legal-body h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.legal-body .meta { color: var(--muted); margin-bottom: 28px; }
.legal-body h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}
.legal-body p,
.legal-body li { color: var(--text); font-size: 1rem; line-height: 1.75; }
.legal-body p { margin-bottom: 0.9rem; }
.legal-body ul,
.legal-body ol {
  list-style: disc;
  padding-inline-start: 1.4rem;
  margin: 0 0 1rem;
}
.legal-body li { margin-bottom: 0.4rem; }
.legal-body a {
  color: #0b63ce;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.legal-footer a { color: var(--accent); font-weight: 600; }
[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .why-grid,
  .download-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy,
  .download-copy { text-align: center; }

  .hero-lead,
  .download-copy p { margin-inline: auto; }

  .qr-card { margin-inline: auto; text-align: start; }

  .hero-actions,
  .hero-proof { justify-content: center; }

  .hero-wave,
  .why-wave { width: 100%; inset: auto 0 0 0; height: 42%; border-radius: 40% 40% 0 0; }

  .hero-visual { min-height: 440px; }

  .steps { grid-template-columns: 1fr; gap: 28px; }

  .faq-grid { grid-template-columns: 1fr; gap: 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }

  .nav-desktop,
  .btn-nav { display: none; }

  .menu-toggle { display: flex; }

  .section { padding: 64px 0; }

  .hero { padding: 32px 0 56px; }

  .phone-frame { width: 240px; }
  .phone-hero { transform: none; }

  .phone-back,
  .phone-front { transform: none; }
  .download-phones { min-height: auto; flex-direction: column; }
  .phone-back { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
