/*
  BIWO — landing page.
  Paleta i typografia 1:1 z brand package (Biwo/pkiki/BIWO-brand-package-final/brand/colors.css)
  i z tokenów appki (Apka/src/theme/tokens.css) — patrz zmienne niżej.
*/

:root {
  --forest: #173b32;
  --forest-shade: #102821;
  --forest-tint: #2e4f45;
  --primary: #142d25; /* kolor przycisków primary w appce */
  --primary-hover: #2b4138;
  --ember: #f27a3d;
  --ember-shade: #da6e37;
  --sand: #f4efe3;
  --stone: #e8e3d8;
  --ink: #18201d;
  --white: #ffffff;

  --text: var(--ink);
  --text-muted: color-mix(in srgb, var(--ink) 62%, transparent);
  --text-on-forest: #ffffff;
  --text-on-forest-muted: color-mix(in srgb, var(--sand) 68%, transparent);
  --border: color-mix(in srgb, var(--ink) 12%, transparent);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 12px color-mix(in srgb, var(--ink) 10%, transparent);
  --shadow-md: 0 12px 40px color-mix(in srgb, var(--ink) 16%, transparent);

  --font: "Manrope", Arial, sans-serif;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--forest);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

p {
  margin: 0 0 16px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-shade);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn--accent {
  background: var(--ember);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

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

.btn--ghost {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--forest);
}

.btn--lg {
  padding: 15px 30px;
  font-size: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.site-header__wordmark {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--forest);
  letter-spacing: -0.01em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.94rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  opacity: 0.85;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--forest);
}

.site-header__cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 auto;
  width: 20px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
  .site-header__cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* Mobile nav drawer */
@media (max-width: 899px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.is-open {
    display: flex;
    max-height: 320px;
  }
  .site-nav a {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero__brand-logo {
  height: 64px;
  width: auto;
  margin-bottom: 18px;
}

.hero__lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 18px;
}

.hero__soon {
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

.hero__icon {
  position: absolute;
  padding: 10px;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.hero__icon--fire {
  top: 8%;
  left: -4px;
  color: var(--ember);
}

.hero__icon--hammock {
  bottom: 14%;
  right: -10px;
  color: var(--forest);
}

.hero__icon--water {
  top: 48%;
  left: -22px;
  color: var(--forest);
  display: none;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .hero__icon--water {
    display: block;
  }
}

/* Phone frame */
.phone-frame {
  width: min(280px, 72vw);
  aspect-ratio: 390 / 844;
  border-radius: 42px;
  background: var(--forest-shade);
  padding: 12px;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.phone-frame--hero {
  width: min(300px, 78vw);
}

/* Sections */
section {
  padding: 72px 0;
}

.section-head {
  max-width: 60ch;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
}

/* About */
.about {
  background: var(--white);
}

.about__grid {
  display: grid;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}

.about__text {
  font-size: 1.04rem;
  color: var(--text-muted);
}

.about__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.about__points li {
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.94rem;
}

@media (min-width: 800px) {
  .about__grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

/* Features */
.features__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.feature-card img {
  margin-bottom: 14px;
  color: var(--ember);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Screens */
.screens {
  background: var(--white);
}

.screen-row {
  display: grid;
  gap: 36px;
  align-items: center;
  margin-bottom: 64px;
}

.screen-row:last-child {
  margin-bottom: 0;
}

.screen-row .phone-frame {
  margin: 0 auto;
}

/* Bez max-width tekst rozciągał się przez całą szerokość kolumny obok telefonu (1fr, na desktopie
   nawet ~750px) — linie robiły się bardzo długie i puste, wyglądało nieproporcjonalnie do wąskiego
   phone-frame. max-width + wyśrodkowanie (margin: auto, tylko dopóki tekst jest w jednej kolumnie
   z telefonem, patrz media query niżej) trzyma go w czytelnej, zwartej mierze. */
.screen-row__copy {
  text-align: center;
  max-width: 46ch;
  margin: 0 auto;
}

.screen-row__copy h3 {
  font-size: 1.55rem;
}

.screen-row__copy p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

@media (min-width: 860px) {
  .screen-row {
    grid-template-columns: 340px 1fr;
    text-align: left;
  }
  .screen-row .phone-frame {
    margin: 0;
  }
  .screen-row__copy {
    text-align: left;
    /* Węższa miara niż na mobile (kolumna obok telefonu jest szeroka) + margin:0 zamiast auto —
       tekst ma zaczynać się tuż przy telefonie, nie być wyśrodkowany w pustej przestrzeni kolumny. */
    max-width: 42ch;
    margin: 0;
  }
  .screen-row--reverse {
    grid-template-columns: 1fr 340px;
  }
  .screen-row--reverse .phone-frame {
    order: 2;
  }
}

/* Coming soon */
.coming-soon {
  background: var(--forest);
  color: var(--text-on-forest);
  text-align: center;
}

.coming-soon h2 {
  color: #fff;
}

.coming-soon__mark {
  margin: 0 auto 18px;
}

.coming-soon__inner {
  max-width: 640px;
}

.coming-soon p {
  color: var(--text-on-forest-muted);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 24px 0 30px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1.5px dashed color-mix(in srgb, var(--sand) 45%, transparent);
  color: var(--text-on-forest-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--forest-shade);
  color: var(--text-on-forest-muted);
  padding-top: 56px;
}

.site-footer__inner {
  display: grid;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid color-mix(in srgb, var(--sand) 18%, transparent);
}

.site-footer__brand p {
  margin-top: 12px;
  max-width: 32ch;
  font-size: 0.9rem;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.site-footer__nav a {
  text-decoration: none;
  color: var(--text-on-forest-muted);
}

.site-footer__nav a:hover {
  color: #fff;
}

.site-footer__contact a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}

.site-footer__social {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.88rem;
}

.site-footer__social a {
  text-decoration: none;
  color: var(--text-on-forest-muted);
}

.site-footer__social a:hover {
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 20px 24px 28px;
  font-size: 0.82rem;
}

.site-footer__tagline {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-footer__tagline span {
  color: var(--ember);
}

@media (min-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* Strony prawne (polityka prywatności, docelowo regulamin) — jedna kolumna tekstu, węższa niż
   .wrap (1180px), żeby linie nie robiły się nieczytelnie długie na desktopie. */
.legal {
  background: var(--white);
  padding-top: 56px;
}

.legal__wrap {
  max-width: 760px;
}

.legal__head {
  max-width: none;
  margin: 0 0 36px;
  text-align: left;
}

.legal__updated {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal__body h2 {
  font-size: 1.2rem;
  margin: 40px 0 12px;
}

.legal__body h2:first-child {
  margin-top: 0;
}

.legal__body p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.legal__body ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-muted);
  display: grid;
  gap: 10px;
}

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

.legal__body a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: var(--border);
}

.legal__body a:hover {
  text-decoration-color: currentColor;
}
