/* selling.css — arkusz stron sprzedażowych mokebe.ai (BIZ-108)
 *
 * Samodzielny: nowe strony NIE ładują legacy style.css (82 KB), bo strona
 * produktu ma trzymać Lighthouse 100/100/100/100. Tokeny są te same, co na
 * stronach legacy — spójność wizualna zostaje, balast nie.
 *
 * Paleta Warm Tech z brandbooka. Fontów ani kolorów nie zmieniamy bez zgody
 * Kierownika (worker-directive BIZ-108).
 */

:root {
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --bg: #09091a;
  --bg-section: #0e0e24;
  --bg-card: #14142e;
  --text: #e8e0d0;
  --text-heading: #ffffff;
  --text-muted: #a89e8c;          /* 7,3:1 na --bg — z zapasem ponad próg WCAG AA */
  --accent: #f5a623;
  --accent-strong: #ffc766;        /* akcent na tekście: 10,5:1 */
  --teal: #24b3b8;
  --line: rgba(245, 166, 35, .16);

  --radius: 16px;
  --radius-xs: 8px;
  --max-width: 1140px;
  --measure: 68ch;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.container.narrow { max-width: min(var(--measure), 100%); }
.center { text-align: center; }

/* --- pominięcie nawigacji (a11y) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #12121f;
  padding: .75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-xs) 0;
}
.skip-link:focus { left: 0; }

/* --- nawigacja --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 26, .92);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  padding: .8rem 0;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: clamp(.9rem, 2.5vw, 1.9rem);
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  padding: .5rem 0;
  display: inline-block;
}
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--text-heading); }
.nav-cta {
  background: var(--accent);
  color: #12121f;
  padding: .7rem 1.15rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover { background: var(--accent-strong); color: #12121f; }

/* --- typografia --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  letter-spacing: -.02em;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; margin-bottom: .5rem; }
p { margin-bottom: 1rem; max-width: var(--measure); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--text-muted); margin-bottom: 2rem; }
strong { color: var(--text-heading); font-weight: 600; }
code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .9em;
  background: rgba(245, 166, 35, .1);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .08em .3em;
}

/* --- pasy sekcji --- */
.band { padding: clamp(3rem, 7vh, 5.5rem) 0; }
.band-section { background: var(--bg-section); }
.band-cta {
  background: linear-gradient(160deg, rgba(245, 166, 35, .12), rgba(36, 179, 184, .07));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* --- hero --- */
.hero { padding: clamp(3rem, 8vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem); }
.hero .subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 1.25rem 0 0;
}
.hero-benefits {
  list-style: none;
  margin: 1.75rem 0 0;
  display: grid;
  gap: .6rem;
  max-width: 60ch;
}
.hero-benefits li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text);
}
.hero-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- przyciski --- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.15rem;
  margin-top: 2rem;
}
.cta-row.center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.btn-primary { background: var(--accent); color: #12121f; }
.btn-primary:hover { background: var(--accent-strong); color: #12121f; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text-heading);
  border: 1px solid rgba(232, 224, 208, .3);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-note { font-size: .88rem; color: var(--text-muted); }

/* --- sygnały zaufania --- */
.trust-row {
  list-style: none;
  display: grid;
  gap: .5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 60ch;
}
.trust-row li {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-size: .93rem;
  color: var(--text-muted);
}
.trust-mark {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  transform: translateY(-2px);
}

/* --- karty --- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  margin-top: 2rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { list-style: none; display: grid; gap: .5rem; }
.card ul li { position: relative; padding-left: 1.4rem; font-size: .95rem; }
.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* --- oferta --- */
.offer-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  margin-top: 2rem;
  align-items: start;
}
.offer-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.offer-card.is-highlight {
  border-color: rgba(245, 166, 35, .5);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, .18), 0 18px 50px rgba(0, 0, 0, .35);
}
.offer-tag {
  position: absolute;
  top: -.75rem;
  left: 1.6rem;
  background: var(--accent);
  color: #12121f;
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .28rem .7rem;
  border-radius: 999px;
}
.offer-price {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent-strong);
  margin: .35rem 0 .1rem;
  font-variant-numeric: tabular-nums;
}
.offer-unit { font-size: .9rem; color: var(--text-muted); margin-bottom: .9rem; }
.offer-for {
  font-size: .95rem;
  color: var(--text);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.offer-card ul { list-style: none; display: grid; gap: .65rem; margin-bottom: 1.5rem; }
.offer-card ul li { position: relative; padding-left: 1.5rem; font-size: .95rem; }
.offer-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.offer-card .btn { margin-top: auto; width: 100%; }

/* --- liczby --- */
.stat-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  margin-top: 2rem;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: .35rem;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .96rem; color: var(--text); }
.stat-source {
  font-size: .8rem;
  color: var(--text-muted);
  padding-top: .5rem;
  border-top: 1px solid var(--line);
}

/* --- kroki --- */
.steps { list-style: none; display: grid; gap: 1.5rem; margin-top: 2rem; counter-reset: step; }
.step { display: flex; gap: 1.15rem; align-items: flex-start; }
.step-no {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: .55;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.step p:last-child { margin-bottom: 0; }

/* --- listy kontrolne --- */
.checklist { list-style: none; display: grid; gap: .7rem; margin: 1.25rem 0; max-width: var(--measure); }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* --- FAQ (natywne <details> — działa bez JavaScriptu) --- */
.faq { display: grid; gap: .75rem; margin-top: 2rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: .35rem 1.25rem;
}
.faq-item summary {
  cursor: pointer;
  padding: .95rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-heading);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-body { padding-bottom: 1rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* --- stopka --- */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-section);
}
.footer-brand { font-family: var(--font-heading); color: var(--text-heading); font-weight: 600; }
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  margin: 1.25rem 0;
}
.footer-links a { color: var(--text-muted); font-size: .92rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent-strong); }
.footer-contact { color: var(--text-muted); font-size: .92rem; margin-bottom: 0; }

/* --- formularz --- */
.form-grid { display: grid; gap: 1.1rem; margin-top: 2rem; max-width: 34rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .92rem; font-weight: 600; color: var(--text-heading); }
.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid rgba(232, 224, 208, .22);
  border-radius: var(--radius-xs);
  padding: .8rem .95rem;
  min-height: 48px;
  width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 7rem; resize: vertical; }
.form-note { font-size: .86rem; color: var(--text-muted); }

@media (max-width: 640px) {
  /* Nawigacja zjadala ~170 px pierwszego ekranu i wypychala CTA poza kadr
   * (zmierzone na 390x844). Logo i przycisk musza zmiescic sie w JEDNYM
   * wierszu, linki w drugim - inaczej komplet decyzyjny nie wchodzi nad
   * zgiecie (selling-page-playbook §0). */
  .nav { padding: .55rem 0; }
  .nav .container { gap: .5rem; }
  .nav-logo { font-size: .92rem; gap: .4rem; flex: 1 1 auto; min-width: 0; }
  .nav-logo img { height: 24px; width: 24px; }
  .nav-cta { flex: 0 0 auto; padding: .55rem .8rem; font-size: .78rem; min-height: 40px; }
  .nav nav { order: 3; width: 100%; }
  .nav-links { justify-content: space-between; gap: .4rem; }
  .nav-links a { font-size: .8rem; padding: .25rem 0; }
  .hero { padding: 2rem 0 2.5rem; }
  .btn { width: 100%; }
  .cta-row { gap: .75rem; margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
