/* Landing page. Ported from `src/app/landing/landing.scss` at the site/app
   split: the component host became the page body, the SCSS nesting was
   flattened, and selectors that targeted the CTA <button>s now target the CTA
   links (`[data-cta]`) that replaced them. */

.bn-landing-body {
  width: 100%;
  overflow-x: hidden;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.bn-spinner {
  animation: spin 0.8s linear infinite;
}

/* Hover states (ported from the design's style-hover attributes) */
.bn-navlinks a:not(.bn-langpicker__btn):not([data-cta]):hover {
  color: #1b201c !important;
}

.bn-footer-links a {
  color: inherit;
  text-decoration: none;
}

.bn-footer-links a:hover {
  color: #1b201c;
}

.bn-btn-google:hover,
.bn-rec-btn:hover {
  box-shadow: 0 4px 14px rgba(27, 32, 28, 0.12);
  border-color: #c9cdc6 !important;
}

.bn-fb-btn:hover {
  background: #f3f6f1 !important;
  border-color: #c9cdc6 !important;
}

.bn-cta-btn:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

[data-cta]:focus-visible,
.bn-rec-btn:focus-visible,
.bn-fb-btn:focus-visible {
  outline: 2px solid #3f6b4f;
  outline-offset: 2px;
}

.bn-cta [data-cta]:focus-visible {
  outline-color: #9db89f;
}

/* The sign-in note under the final call to action. */
.bn-signin-note {
  max-width: 52ch;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #8d958a;
}

.bn-signin-note a {
  color: #c9d8c8;
}

/* =================================================================
   RESPONSYWNOŚĆ — podejście MOBILE-FIRST
   Reguły bazowe (bez media query) opisują widok MOBILNY (360–480px+).
   @media (min-width:768px)  -> TABLET (768–1024px)
   @media (min-width:1025px) -> DESKTOP (>1024px, układ jak dotąd)
   !important jest konieczny, bo nadpisujemy style inline.
   ================================================================= */

/* ---------- BASE: MOBILE (360–767px) ---------- */
.bn-nav {
  padding: 16px 20px !important;
}
.bn-navlinks {
  gap: 14px !important;
}
.bn-navlinks > a:not([data-cta]) {
  display: none !important;
}

.bn-hero {
  grid-template-columns: 1fr !important;
  min-height: auto !important;
}
.bn-hero-copy {
  padding: 48px 20px 36px !important;
}
.bn-hero-title {
  font-size: 38px !important;
}
.bn-hero-sub {
  font-size: 17px !important;
}
.bn-hero-cta {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
}
.bn-hero-cta [data-cta] {
  width: 100% !important;
  justify-content: center !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
.bn-hero-pills {
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-top: 40px !important;
}
.bn-hero-media {
  padding: 0 20px 40px !important;
}
.bn-hero-photo {
  min-height: 240px !important;
}
.bn-hero-chip {
  left: 14px !important;
  bottom: 14px !important;
}

.bn-features {
  padding: 56px 20px !important;
}
.bn-features-head {
  margin-bottom: 40px !important;
}
.bn-section-title {
  font-size: 30px !important;
}
.bn-features-grid {
  grid-template-columns: 1fr !important;
  gap: 32px !important;
}

.bn-preview {
  padding: 56px 20px !important;
}
.bn-preview-head {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin-bottom: 32px !important;
}
.bn-preview-title {
  font-size: 28px !important;
}
.bn-preview-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  padding: 20px !important;
}

.bn-ai {
  grid-template-columns: 1fr !important;
  gap: 40px !important;
  padding: 56px 20px !important;
}
.bn-ai-title {
  font-size: 30px !important;
}
.bn-ai-card {
  padding: 20px !important;
}
.bn-ai-card button {
  min-height: 44px !important;
}

.bn-cta {
  padding: 72px 20px !important;
}
.bn-cta-title {
  font-size: 32px !important;
}
.bn-cta [data-cta] {
  min-height: 52px !important;
}

.bn-footer {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 18px !important;
  padding: 28px 20px !important;
}
.bn-footer-links {
  flex-wrap: wrap !important;
  gap: 16px !important;
}

/* ---------- TABLET (768–1024px) ---------- */
@media (min-width: 768px) {
  .bn-nav {
    padding: 20px 40px !important;
  }
  .bn-navlinks {
    gap: 20px !important;
  }
  .bn-navlinks > a:not([data-cta]) {
    display: inline !important;
  }

  .bn-hero {
    grid-template-columns: 1.05fr 0.95fr !important;
  }
  .bn-hero-copy {
    padding: 72px 40px !important;
  }
  .bn-hero-title {
    font-size: 52px !important;
  }
  .bn-hero-sub {
    font-size: 18px !important;
  }
  .bn-hero-cta {
    flex-direction: row !important;
    align-items: center !important;
    gap: 18px !important;
  }
  .bn-hero-cta [data-cta] {
    width: auto !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
  .bn-hero-pills {
    gap: 24px !important;
    margin-top: 48px !important;
  }
  .bn-hero-media {
    padding: 40px 40px 40px 0 !important;
  }
  .bn-hero-photo {
    min-height: 360px !important;
  }
  .bn-hero-chip {
    left: -20px !important;
    bottom: 80px !important;
  }

  .bn-features {
    padding: 80px 40px !important;
  }
  .bn-features-head {
    margin-bottom: 56px !important;
  }
  .bn-section-title {
    font-size: 40px !important;
  }
  .bn-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px !important;
  }

  .bn-preview {
    padding: 80px 40px !important;
  }
  .bn-preview-head {
    flex-direction: row !important;
    align-items: flex-end !important;
    gap: 16px !important;
    margin-bottom: 40px !important;
  }
  .bn-preview-title {
    font-size: 34px !important;
  }
  .bn-preview-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 28px !important;
  }

  .bn-ai {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
    padding: 80px 40px !important;
  }
  .bn-ai-title {
    font-size: 36px !important;
  }
  .bn-ai-card {
    padding: 24px !important;
  }

  .bn-cta {
    padding: 96px 40px !important;
  }
  .bn-cta-title {
    font-size: 44px !important;
  }

  .bn-footer {
    flex-direction: row !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 32px 40px !important;
  }
  .bn-footer-links {
    gap: 24px !important;
  }
}

/* ---------- DESKTOP (>1024px) — układ bez zmian ---------- */
@media (min-width: 1025px) {
  .bn-nav {
    padding: 28px 80px !important;
  }
  .bn-navlinks {
    gap: 28px !important;
  }

  .bn-hero {
    grid-template-columns: 1.05fr 0.95fr !important;
    min-height: 760px !important;
  }
  .bn-hero-copy {
    padding: 104px 64px 96px 80px !important;
  }
  .bn-hero-title {
    font-size: 66px !important;
  }
  .bn-hero-sub {
    font-size: 19px !important;
  }
  .bn-hero-cta {
    gap: 20px !important;
  }
  .bn-hero-cta [data-cta] {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
  .bn-hero-pills {
    gap: 34px !important;
    margin-top: 60px !important;
  }
  .bn-hero-media {
    padding: 64px 80px 64px 0 !important;
  }
  .bn-hero-photo {
    min-height: 0 !important;
  }
  .bn-hero-chip {
    left: -30px !important;
    bottom: 110px !important;
  }

  .bn-features {
    padding: 104px 80px !important;
  }
  .bn-features-head {
    margin-bottom: 72px !important;
  }
  .bn-section-title {
    font-size: 46px !important;
  }
  .bn-features-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 36px !important;
  }

  .bn-preview {
    padding: 96px 80px !important;
  }
  .bn-preview-head {
    margin-bottom: 48px !important;
  }
  .bn-preview-title {
    font-size: 40px !important;
  }
  .bn-preview-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    padding: 36px !important;
  }

  .bn-ai {
    grid-template-columns: 0.95fr 1.05fr !important;
    gap: 72px !important;
    padding: 104px 80px !important;
  }
  .bn-ai-title {
    font-size: 44px !important;
  }
  .bn-ai-card {
    padding: 28px !important;
  }

  .bn-cta {
    padding: 120px 80px !important;
  }
  .bn-cta-title {
    font-size: 54px !important;
  }

  .bn-footer {
    padding: 36px 80px !important;
  }
  .bn-footer-links {
    gap: 30px !important;
  }
}
