/* ============================================================
   kurniki.online - landing
   Motyw: jasny premium (lock), paleta stone + bursztyn
   Fonty: Outfit Variable (display), Inter Variable (tekst)
   ============================================================ */

@font-face {
  font-family: "Outfit Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Outfit Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

:root {
  /* stone */
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0f0e0d;
  /* brand: bursztyn */
  --brand-50: #fffbeb;
  --brand-100: #fef3c7;
  --brand-200: #fde68a;
  --brand-400: #fbbf24;
  --brand-500: #f59e0b;
  --brand-600: #d97706;
  --brand-700: #b45309;
  --brand-800: #92400e;
  --brand-900: #78350f;

  --bg: #f9f8f6;
  --text: var(--stone-900);
  --muted: var(--stone-500);

  --font-sans: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Outfit Variable", "Inter Variable", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 1px 2px rgb(28 25 23 / 0.04), 0 4px 16px -2px rgb(28 25 23 / 0.06);
  --shadow-lifted: 0 2px 4px rgb(28 25 23 / 0.05), 0 18px 44px -8px rgb(28 25 23 / 0.13);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
::selection { background: var(--brand-200); color: var(--brand-900); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--stone-900);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: 880px; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 0.72rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.btn--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 1px 2px rgb(120 53 15 / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.15);
}
.btn--primary:hover { background: var(--brand-700); transform: translateY(-1px); }
.btn--outline {
  background: #fff;
  color: var(--stone-800);
  border-color: var(--stone-300);
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.05);
}
.btn--outline:hover { border-color: var(--stone-400); background: var(--stone-50); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--stone-600); }
.btn--ghost:hover { color: var(--stone-900); background: var(--stone-100); }
.btn--inverse {
  background: #fff;
  color: var(--brand-800);
  box-shadow: 0 2px 8px rgb(69 26 3 / 0.28);
}
.btn--inverse:hover { background: var(--brand-50); transform: translateY(-1px); }
.btn--lg { padding: 0.95rem 1.6rem; font-size: 1.02rem; border-radius: 13px; }
.btn--block { width: 100%; }

/* ---------- nawigacja ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(249 248 246 / 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.nav.is-scrolled { border-color: var(--stone-200); }
.nav__inner {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--stone-900);
}
.nav__wordmark em { font-style: normal; color: var(--brand-600); }
.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-inline: auto;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--stone-600);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--stone-900); }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--stone-800);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
  border-top: 1px solid var(--stone-200);
  background: var(--bg);
}
.nav__mobile a {
  padding: 0.65rem 0.5rem;
  text-decoration: none;
  font-weight: 500;
  color: var(--stone-700);
  border-radius: var(--radius-sm);
}
.nav__mobile a:hover { background: var(--stone-100); }
.nav__mobile .btn { justify-content: center; margin-top: 0.5rem; color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vh, 5.5rem) clamp(3.5rem, 8vh, 6rem);
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(42% 55% at 68% 38%, rgb(251 191 36 / 0.16), transparent 70%),
    radial-gradient(36% 50% at 22% 18%, rgb(217 119 6 / 0.10), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__copy h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}
.hero__sub {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
}
.hero__ctas {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* zdjęcie w hero */
.hero__photo {
  position: relative;
  margin: 0;
}
.hero__photo-img {
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  background-color: var(--brand-100);
  background-image: url("../img/kurnik.jpg");
  background-size: cover;
  background-position: center 55%;
  box-shadow: var(--shadow-lifted);
}
/* Kafelek z liczbą: sygnał, że za zdjęciem stoi konkretne narzędzie */
.hero__stat {
  position: absolute;
  left: -1.25rem;
  bottom: 1.75rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.85rem 1.15rem;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  box-shadow: var(--shadow-lifted);
}
.hero__stat-label { font-size: 0.7rem; font-weight: 500; color: var(--stone-500); }
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}
.hero__stat-hint { font-size: 0.7rem; color: var(--stone-400); font-variant-numeric: tabular-nums; }

/* Oznaczenie treści wygenerowanej przez AI (art. 50 aktu o sztucznej inteligencji) */
.ai-note {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--stone-400);
  text-align: right;
}

/* ---------- podgląd aplikacji ---------- */
.showcase { padding-block: clamp(3rem, 7vh, 5rem); }
.showcase__head { max-width: 38rem; margin-bottom: 2rem; }
.showcase__head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 650; }
.showcase__head p { margin-top: 0.8rem; font-size: 1.08rem; color: var(--muted); }
.showcase__frame { max-width: 62rem; }
.showcase__note { margin-top: 0.9rem; font-size: 0.78rem; color: var(--stone-400); }

/* podgląd produktu */
.preview {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lifted);
  overflow: hidden;
  transform: rotate(0.4deg);
}
.preview__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--stone-100);
  background: var(--stone-50);
}
.preview__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--stone-300); }
.preview__url {
  margin-inline: auto;
  font-size: 0.72rem;
  color: var(--stone-400);
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  padding: 0.15rem 0.9rem;
}
.preview__body { padding: 1.1rem; display: grid; gap: 0.9rem; }
.preview__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.pkpi {
  border: 1px solid var(--stone-100);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  display: grid;
  gap: 0.1rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.pkpi__label { font-size: 0.68rem; font-weight: 500; color: var(--stone-500); }
.pkpi__value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--stone-900);
}
.pkpi__hint { font-size: 0.66rem; color: var(--stone-400); font-variant-numeric: tabular-nums; }
.pkpi__hint--up { color: #059669; }
.preview__chart {
  border: 1px solid var(--stone-100);
  border-radius: 12px;
  padding: 0.8rem 0.85rem 0.3rem;
  box-shadow: var(--shadow-soft);
}
.preview__chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--stone-700);
  margin-bottom: 0.4rem;
}
.preview__chart-avg { color: var(--stone-400); font-weight: 500; font-variant-numeric: tabular-nums; }
.preview__chart svg { width: 100%; height: 96px; }
.preview__rows { display: grid; gap: 0.35rem; }
.prow {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--stone-100);
  border-radius: 10px;
}
.prow__name { color: var(--stone-700); font-weight: 500; }
.prow__val { color: var(--stone-500); font-variant-numeric: tabular-nums; }
.badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.badge--good { background: #d1fae5; color: #065f46; }
.badge--warn { background: var(--brand-100); color: var(--brand-800); }

/* ---------- pain ---------- */
.pain { padding-block: clamp(4.5rem, 10vh, 7.5rem); }
.pain h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 650;
}
.pain__lead {
  margin-top: 1.2rem;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 40rem;
}
.pain__points {
  margin-top: 2.8rem;
  display: grid;
  gap: 1.4rem;
}
.pain__point {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  max-width: 40rem;
}
.pain__point:nth-child(2) { margin-left: clamp(0rem, 6vw, 5rem); }
.pain__point:nth-child(3) { margin-left: clamp(0rem, 12vw, 10rem); }
.pain__num {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-800);
}
.pain__point h3 { font-size: 1.08rem; font-weight: 600; }
.pain__point p { margin-top: 0.25rem; font-size: 0.95rem; color: var(--muted); }

/* ---------- features / bento ---------- */
.features { padding-block: clamp(3rem, 7vh, 5rem); }
.features__head { max-width: 40rem; margin-bottom: 2.4rem; }
.features__head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 650; }
.features__head p { margin-top: 0.8rem; font-size: 1.08rem; color: var(--muted); }
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.bento__cell {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.bento__cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-lifted); }
.bento__cell h3 { font-size: 1.12rem; font-weight: 600; }
.bento__cell p { margin-top: 0.5rem; font-size: 0.94rem; color: var(--muted); }
.bento__cell--hero {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}
.bento__viz { position: relative; }
.bento__viz svg { width: 100%; height: 110px; }
.bento__viz-badge {
  position: absolute;
  top: -0.4rem;
  right: 0;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--brand-100);
  color: var(--brand-800);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.bento__cell--amber {
  background: linear-gradient(135deg, var(--brand-50), #fff 70%);
  border-color: var(--brand-200);
}
.bento__cell--dark {
  background: var(--stone-900);
  border-color: var(--stone-900);
  grid-column: span 2;
}
.bento__cell--dark h3 { color: var(--stone-50); }
.bento__cell--dark p { color: var(--stone-400); }

/* ---------- pas zdjęciowy ---------- */
/* Zdjęcia wgrywasz do landing/img/. Do czasu ich dodania widać ciepłe tło,
   bez ikon "brakujący obrazek". Nazwy plików: patrz landing/GRAFIKI.md */
.photoband { padding-block: 0 clamp(3rem, 7vh, 5rem); }
.photoband__img {
  /* Wyższy pas = mniej przycięcia kadru 21:9 i zachowane światło z okna */
  height: clamp(260px, 38vw, 500px);
  background-color: var(--brand-100);
  background-image:
    linear-gradient(to bottom, var(--bg) 0%, transparent 7%, transparent 93%, var(--bg) 100%),
    var(--photo, none);
  background-size: auto, cover;
  background-position: center, center 50%;
  background-repeat: no-repeat;
}
.photoband__img--coop { --photo: url("../img/kurnik.jpg"); }

.how__figure { margin: 0; }
.how__figure .ai-note { text-align: left; }
.how__photo {
  border-radius: var(--radius);
  background-color: var(--brand-100);
  background-image: var(--photo, none);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
  /* Proporcja zgodna ze zdjęciem 4:5, więc kadr nie jest przycinany */
  aspect-ratio: 4 / 5;
  min-height: 300px;
}
.how__photo--phone { --photo: url("../img/telefon-w-kurniku.jpg"); }

.bento__cell--photo {
  grid-column: span 1;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bento__photo {
  position: relative;
  flex: 1;
  min-height: 150px;
  background-color: var(--brand-100);
  background-image: var(--photo, none);
  background-size: cover;
  background-position: center;
}
/* Oznaczenie AI bezpośrednio na kadrze, czytelne mimo zdjęcia pod spodem */
.ai-badge {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.16rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--stone-800);
  background: rgb(255 255 255 / 0.92);
  border-radius: 999px;
}
.bento__photo--eggs { --photo: url("../img/jaja.jpg"); }
.bento__photo-copy { padding: 1.25rem 1.5rem 1.5rem; }
.bento__photo-copy h3 { font-size: 1.12rem; font-weight: 600; }
.bento__photo-copy p { margin-top: 0.5rem; font-size: 0.94rem; color: var(--muted); }

/* ---------- how ---------- */
.how { padding-block: clamp(4.5rem, 10vh, 7rem); }
.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.how h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 650; max-width: 36rem; }
.how__steps {
  margin-top: 2.6rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.8rem;
  counter-reset: step;
}
.how__steps li {
  counter-increment: step;
  position: relative;
  padding-top: 1.3rem;
  border-top: 2px solid var(--stone-200);
}
.how__steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -0.85rem;
  left: 0;
  background: var(--bg);
  padding-right: 0.7rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--brand-600);
  font-variant-numeric: tabular-nums;
}
.how__steps h3 { font-size: 1.15rem; font-weight: 600; }
.how__steps p { margin-top: 0.5rem; font-size: 0.95rem; color: var(--muted); }

/* ---------- pricing ---------- */
.pricing { padding-block: clamp(3rem, 7vh, 5rem); }
.pricing__head { text-align: center; max-width: 34rem; margin-inline: auto; margin-bottom: 2.6rem; }
.pricing__head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 650; }
.pricing__head p { margin-top: 0.8rem; font-size: 1.08rem; color: var(--muted); }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}
.plan--pro {
  border-color: var(--brand-400);
  border-width: 2px;
  background: linear-gradient(180deg, var(--brand-50), #fff 30%);
  box-shadow: 0 2px 4px rgb(146 64 14 / 0.06), 0 18px 44px -8px rgb(146 64 14 / 0.16);
}
.plan__flag {
  position: absolute;
  top: -0.8rem;
  right: 1.4rem;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgb(120 53 15 / 0.3);
}
.plan h3 { font-size: 1.2rem; font-weight: 600; }
.plan__price { margin-top: 0.7rem; }
.plan__price strong {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.plan__price span { color: var(--stone-400); font-size: 0.95rem; }
.plan__for { margin-top: 0.5rem; min-height: 3em; font-size: 0.92rem; color: var(--muted); }
.plan__list {
  margin: 1.1rem 0 1.6rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.plan__list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.94rem;
  color: var(--stone-700);
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--brand-100) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2392400e" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 60% no-repeat;
}
.plan .btn { margin-top: auto; }
.pricing__note { margin-top: 1.4rem; text-align: center; font-size: 0.85rem; color: var(--stone-400); }

/* ---------- faq ---------- */
.faq { padding-block: clamp(4rem, 9vh, 6.5rem); }
.faq h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 650; margin-bottom: 2.2rem; }
.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}
.faq__item h3 { font-size: 1.05rem; font-weight: 600; }
.faq__item p { margin-top: 0.45rem; font-size: 0.95rem; color: var(--muted); max-width: 32rem; }

/* ---------- cta ---------- */
.cta { padding-block: 1rem clamp(4rem, 9vh, 6rem); }
.cta__panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  /* Gradient celowo głębszy niż brand-600: biały tekst na #d97706 daje tylko
     3,19:1, czyli poniżej progu WCAG AA. Na brand-700 to już 5,0:1. */
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  border-radius: 24px;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 24px 60px -12px rgb(120 53 15 / 0.45);
}
.cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 80% 10%, rgb(255 251 235 / 0.14), transparent 70%),
    radial-gradient(30% 50% at 12% 90%, rgb(255 251 235 / 0.10), transparent 70%);
  pointer-events: none;
}
/* Zdjęcie gospodarstwa pod bursztynową warstwą; bez pliku zostaje sam gradient. */
.cta__ai {
  position: relative;
  margin-top: 1.6rem;
  font-size: 0.72rem;
  color: var(--brand-200);
}
.cta__panel--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/gospodarstwo.jpg");
  background-size: cover;
  background-position: center;
  mix-blend-mode: soft-light;
  opacity: 0.45;
  pointer-events: none;
}
.cta__panel h2 {
  position: relative;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 650;
}
.cta__panel p {
  position: relative;
  margin-top: 0.9rem;
  color: var(--brand-50);
  font-size: 1.05rem;
}
.cta__panel .btn { position: relative; margin-top: 1.8rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--stone-200);
  background: #fff;
  padding-block: 2.6rem 1.6rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
}
.footer__brand p {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 20rem;
}
.footer__nav, .footer__legal { display: grid; gap: 0.5rem; align-content: start; }
.footer__nav a, .footer__legal a {
  font-size: 0.9rem;
  color: var(--stone-600);
  text-decoration: none;
}
.footer__nav a:hover, .footer__legal a:hover { color: var(--stone-900); text-decoration: underline; }
.footer__copy {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--stone-100);
}
.footer__copy p { font-size: 0.8rem; color: var(--stone-400); }
.footer__ai {
  margin-bottom: 0.8rem;
  max-width: 62ch;
  line-height: 1.5;
}

/* ---------- strony treściowe (regulamin, polityka, 404) ---------- */
.legal { padding-block: clamp(2.5rem, 6vh, 4rem) clamp(4rem, 9vh, 6rem); }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 650; }
.legal__meta { margin-top: 0.6rem; font-size: 0.88rem; color: var(--stone-400); }
.legal h2 {
  margin-top: 2.4rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.legal p { margin-top: 0.8rem; color: var(--stone-700); max-width: 62ch; }
.legal ul { margin-top: 0.8rem; padding-left: 1.2rem; color: var(--stone-700); max-width: 62ch; }
.legal li { margin-top: 0.4rem; }
.legal a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--brand-800); }

.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(3rem, 8vh, 6rem);
}
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 650; }
.notfound p { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.notfound__actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.footer__copy a { color: var(--stone-500); }
.footer__copy a:hover { color: var(--stone-800); }

/* ---------- animacje wejścia ---------- */
/* Ukrywamy dopiero, gdy JS potwierdzi, że umie je pokazać (klasa .js na <html>).
   Bez JS strona jest w pełni widoczna. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  .js .hero__preview.reveal { transition-delay: 0.15s; }

  .js .chart-line {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
  }
  .js .is-visible .chart-line, .js .hero__preview.is-visible .chart-line {
    animation: draw-line 1.6s var(--ease-out) 0.4s forwards;
  }
  @keyframes draw-line {
    to { stroke-dashoffset: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsywność ---------- */
@media (max-width: 1023px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile.is-open { display: flex; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__preview { max-width: 620px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__cell--hero { grid-column: span 2; grid-template-columns: 1fr; }
  .bento__cell--dark { grid-column: span 2; }
  .how__grid { grid-template-columns: 1fr; }
  .how__photo { aspect-ratio: 16 / 10; min-height: 220px; order: 2; }
  .pricing__grid { grid-template-columns: minmax(0, 28rem); justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 640px) {
  /* Kafelek z liczbą wjeżdża do środka kadru, żeby nie dotykał krawędzi ekranu */
  .hero__stat { left: 0.75rem; bottom: 0.75rem; padding: 0.7rem 0.95rem; }
  .hero__stat-value { font-size: 1.35rem; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell--hero, .bento__cell--dark { grid-column: span 1; }
  .faq__grid { grid-template-columns: 1fr; }
  .pain__point:nth-child(2), .pain__point:nth-child(3) { margin-left: 0; }
  .preview__kpis { grid-template-columns: 1fr 1fr; }
  .pkpi:last-child { grid-column: span 2; }
  .hero__ctas .btn { width: 100%; }
}
