/*
 * /landing/ w wyglądzie /setter/ (25.10.2026, v310). Kopia landing-setter/css/robert.css
 * (design system „Robert”, DESIGN-SYSTEM.md w rootcie repo) + na końcu pliku: hero /landing/,
 * okno „Zostaw numer” (#book-dialog) i drobiazgi. Szkło na jesiennym zdjęciu, font systemowy,
 * jeden akcent #007AFF, dymki jak w iMessage. Nazwa pliku zawiera „landing.css”, bo
 * landing/deploy.sh czyta wersję z linku `landing.css?v=`.
 */

:root {
  --ink: #1d1d1f;
  --ink2: rgba(60, 60, 67, 0.6);
  --ink3: rgba(60, 60, 67, 0.45);
  --accent: #007aff;
  --accent-h: #0a6fe0;
  --line: rgba(0, 0, 0, 0.05);
  --glass-hi: rgba(255, 255, 255, 0.72);
  --glass-lo: rgba(255, 255, 255, 0.6);
  --card: rgba(255, 255, 255, 0.6);
  --sh-panel: 0 18px 50px rgba(30, 60, 110, 0.16), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  --sh-card: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.55), 0 6px 18px rgba(15, 40, 90, 0.08);
  --sh-bubble: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.55);
  --sh-btn: 0 1px 2px rgba(0, 122, 255, 0.3);
  --blur: blur(40px) saturate(1.7);
  --ai-grad: linear-gradient(145deg, #4da3ff, #0a5fd6);
  --lead-grad: linear-gradient(180deg, #b8bfca, #8a94a3);
  --t: 0.15s ease;
}

/* ---------- Podstawa ---------- */

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

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #b85a2a;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html.is-page-lock,
html.is-page-lock body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

p,
h1,
h2,
h3,
ul,
ol {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t);
}

a:hover {
  color: var(--accent-h);
}

strong,
b {
  font-weight: 600;
}

u {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(0, 122, 255, 0.45);
}

.acc {
  color: var(--accent);
}

button {
  font: inherit;
}

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

input::placeholder {
  color: rgba(60, 60, 67, 0.5);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--sh-card);
}

.skip:focus {
  top: 12px;
}

/* ---------- Tło i panele ---------- */

.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 14px 14px 40px;
  background: #b85a2a;
}

/* Tło w osobnej, nieruchomej warstwie. `background-attachment: fixed` razem
   z backdrop-filter paneli kazał przeglądarce rysować całą stronę od nowa przy
   każdym przewinięciu: tło przeskakiwało, a scroll się zacinał (Adrian 23.10.2026). */
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  height: 100lvh;
  background: url("../assets/jesien.webp?v=310") center / cover no-repeat #b85a2a;
  transform: translateZ(0);
  pointer-events: none;
}

.panel {
  max-width: 1120px;
  margin: 12px auto 0;
  padding: 36px;
  background: var(--glass-hi);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--sh-panel);
}

.panel-lo {
  background: var(--glass-lo);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px 48px;
  align-items: start;
}

.split-center {
  align-items: center;
}

.split-faq {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.g12 { gap: 12px; }
.g14 { gap: 14px; }
.g18 { gap: 18px; }

.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--sh-card);
}

/* ---------- Typografia ---------- */

.h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: pretty;
}

.h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: pretty;
}

.h1 strong,
.h2 strong {
  font-weight: 700;
}

.h2-vsl {
  font-size: 32px;
}

.h2-final {
  max-width: 760px;
  font-size: 36px;
  line-height: 1.12;
}

.head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink2);
}

.body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
  min-width: 0;
}

.lead {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink2);
}

.lead-wide {
  max-width: none;
}

.sub {
  font-size: 12.5px;
  color: var(--ink2);
}

.bridge {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tail {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink2);
}

.tail strong,
.cell p strong {
  color: var(--ink);
}

.sign {
  font-size: 14px;
}

/* ---------- Przyciski i plakietki ---------- */

.btn,
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--sh-btn);
  transition: background-color var(--t), transform var(--t);
}

.btn:hover,
.btn-pill:hover {
  background: var(--accent-h);
  color: #fff;
}

.btn:active,
.btn-pill:active {
  transform: scale(0.98);
}

.btn-lg {
  height: 50px;
  padding: 0 26px;
  font-size: 16px;
}

.btn-xl {
  height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-blue {
  background: rgba(0, 122, 255, 0.12);
  color: #0062cc;
}

.badge-green {
  background: rgba(52, 199, 89, 0.16);
  color: #1f8a3b;
}

.badge-live {
  margin-left: auto;
}

.badge-live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #34c759;
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.cta-left {
  align-items: flex-start;
  text-align: left;
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.45;
}

.ticks li {
  display: flex;
  gap: 10px;
}

.ticks li > span:first-child {
  flex: none;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Nawigacja ---------- */

.topbar {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 56px;
  padding: 9px 9px 9px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--glass-hi);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: var(--sh-panel);
}

.topbar-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.topbar-logo img {
  display: block;
  height: 34px;
  width: auto;
  filter: brightness(0);
  opacity: 0.88;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink);
}

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

.topbar .btn-sm {
  margin-left: 0;
}

/* ---------- Hero ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Test po lewej, opis po prawej (Adrian 23.10.2026). Na telefonie to samo: test pierwszy. */
.hero-test {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  order: 1;
}

.hero-copy {
  order: 2;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  color: var(--ink2);
}

.meta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meta-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 13.5px;
}

.meta-brand img {
  height: 22px;
  width: auto;
}

.meta-brand span {
  color: var(--ink2);
}

.chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chip {
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--sh-card);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: pretty;
}

.chip i {
  flex: none;
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Ramka testu ---------- */

.frame {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--sh-card);
  overflow: hidden;
}

.frame-bar {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 0 rgba(15, 40, 90, 0.06);
}

.ai-ava {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ai-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.who,
.ig-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.who strong,
.ig-who strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who span,
.ig-who span {
  font-size: 11.5px;
  color: var(--ink2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Animacja „liquid/burst” z ciemnej wersji nie wraca. Elementy zostają dla app.js. */
.liquid,
.liquid-svg,
.demo-burst,
.demo-sparks {
  display: none !important;
}

.liquid-svg {
  position: absolute;
  width: 0;
  height: 0;
}

.hero,
.hero-inner {
  position: relative;
  min-width: 0;
}

/* Stan 1: nick */

.demo-idle {
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-idle.is-chat-on {
  display: none;
}

.idle-h {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.nick-field {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 14px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(60, 60, 67, 0.2);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(15, 40, 90, 0.06);
  cursor: text;
  transition: border-color var(--t), box-shadow var(--t);
}

.nick-field:hover {
  border-color: rgba(60, 60, 67, 0.32);
}

.nick-field:focus-within {
  border-color: var(--accent);
  box-shadow: inset 0 1px 2px rgba(15, 40, 90, 0.06), 0 0 0 3px rgba(0, 122, 255, 0.18);
}

.nick-at {
  font-size: 16px;
  color: var(--ink2);
  transition: color var(--t);
}

.nick-field.is-filled .nick-at {
  color: var(--ink);
}

.nick-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}

.demo-cta-row {
  display: flex;
  flex-direction: column;
}

.demo-cta-row .btn-pill {
  height: auto;
  min-height: 48px;
  padding: 10px 16px;
  line-height: 1.25;
}

.btn-pill:disabled {
  opacity: 0.6;
  cursor: progress;
}

.idle-note {
  font-size: 12px;
  color: var(--ink2);
  text-align: center;
}

.chat-err,
.theater-err {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 59, 48, 0.1);
  color: #c0392b;
  font-size: 13.5px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.chat-err .btn-pill,
.theater-err .btn-pill {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

/* Stan 2: wczytywanie profilu */

.demo-theater {
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: opacity 0.18s ease;
}

.demo-theater.is-burst {
  animation: robert-in 0.18s ease-out both;
}

.demo-theater.is-out {
  opacity: 0;
}

.theater-core {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
}

.theater-ava-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--lead-grad);
  box-shadow: var(--sh-card);
}

.theater-ava-ph,
.theater-ava {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.theater-ava-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
}

.theater-ava {
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.theater-ava.is-on {
  opacity: 1;
}

.theater-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.theater-handle {
  margin-top: -6px;
  font-size: 13px;
  color: var(--ink2);
}

.theater-name:empty,
.theater-handle:empty,
.theater-lines:empty {
  display: none;
}

.theater-bar-row {
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.theater-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(120, 120, 128, 0.16);
  overflow: hidden;
}

.theater-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

#theater-pct {
  min-width: 36px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.theater-status {
  max-width: 340px;
  min-height: 2.9em;
  font-size: 14px;
  line-height: 1.45;
  transition: opacity 0.18s ease;
}

.theater-status.is-out {
  opacity: 0;
}

.theater-lines {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink2);
  text-align: left;
}

.theater-lines li {
  display: flex;
  gap: 8px;
}

.theater-lines li::before {
  content: "✓";
  flex: none;
  color: var(--accent);
  font-weight: 700;
}

.theater-err {
  width: 100%;
}

/* Stan 3: rozmowa */

.demo-board {
  display: flex;
  flex-direction: column;
}

.demo-board.is-in {
  animation: robert-in 0.18s ease-out both;
}

.ig {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ig-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}

.ig-ava-wrap {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--lead-grad);
}

.ig-ava,
.ig-ava-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ig-ava {
  object-fit: cover;
}

.ig-ava-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.chat-stream {
  height: 380px;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#chat-bubbles,
.convo-stream {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ig-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 78%;
}

.ig-row-ava {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--ai-grad);
}

.ig-row-ava-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

.bubble {
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.38;
  white-space: pre-line;
  overflow-wrap: anywhere;
  min-width: 0;
}

.bubble.assistant {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--sh-card);
  border-bottom-left-radius: 5px;
}

.bubble.user {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.bubble-stack {
  align-self: flex-end;
  max-width: 78%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.bubble-wrap {
  position: relative;
  max-width: 100%;
}

.ig-row + .bubble-stack,
.bubble-stack + .ig-row,
.ig-row + .bubble.user,
.bubble.user + .ig-row,
#chat-bubbles + #chat-typing {
  margin-top: 6px;
}

.convo-stream > .bubble.user {
  align-self: flex-end;
  max-width: 78%;
}

.ig-heart {
  position: absolute;
  left: 8px;
  bottom: -11px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 40, 90, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.bubble-wrap:has(.ig-heart) {
  margin-bottom: 11px;
}

.ig-seen {
  margin-right: 4px;
  font-size: 11px;
  color: var(--ink3);
}

.bubble.has-photo {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.bubble-photo {
  display: block;
  max-width: 220px;
  max-height: 300px;
  object-fit: cover;
  border-radius: 18px;
}

.bubble.has-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}

.voice-play {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--t);
}

.voice-play:hover {
  background: rgba(255, 255, 255, 0.36);
}

.voice-wave {
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.voice-wave i {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.bubble.is-playing .voice-wave i {
  background: #fff;
}

.voice-dur {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.bubble.has-voice audio {
  display: none;
}

.ig-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 11px 12px;
}

.ig-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #bdbdbd;
  animation: robert-typing 1.2s infinite;
}

.ig-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.ig-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.ig-wait-hint {
  margin-left: 6px;
  font-size: 12px;
  color: var(--ink2);
}

/* Composer */

.ig-compose {
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.ig-cam {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(15, 40, 90, 0.1);
  transition: background-color var(--t);
}

.ig-cam:hover {
  background: rgba(255, 255, 255, 0.95);
}

.ig-compose-pill {
  flex: 1;
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 5px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 14px rgba(15, 40, 90, 0.12);
  transition: box-shadow var(--t);
}

.ig-compose-pill:focus-within {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 3px rgba(0, 122, 255, 0.18);
}

.ig-compose-pill.is-rec {
  background: rgba(255, 59, 48, 0.1);
}

.ig-compose-pill input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.ig-compose-send {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--t), transform var(--t);
}

.ig-compose-send::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.ig-compose-send:hover {
  background: var(--accent-h);
}

.ig-compose-send:active {
  transform: scale(0.94);
}

#board-err {
  margin: 0 14px 12px;
}

.chat-offer {
  margin: 0 14px 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: robert-in 0.18s ease-out both;
}

.chat-offer p {
  font-size: 13.5px;
  line-height: 1.45;
}

.chat-offer .btn-pill {
  height: 44px;
}

/* Panel „co AI złapało” (app.js maluje go, jeśli #live-body istnieje). */

.live-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.live-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-row strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink2);
}

.live-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.live-chip {
  padding: 3px 9px;
  border-radius: 13px;
  background: rgba(120, 120, 128, 0.14);
  font-size: 12px;
}

.live-acts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-act {
  display: flex;
  gap: 8px;
  opacity: 0.45;
  transition: opacity 0.18s ease;
}

.live-act.is-on {
  opacity: 1;
}

.live-act.is-done i {
  color: #34c759;
  font-weight: 700;
}

.live-act i {
  font-style: normal;
}

.live-note,
.live-empty {
  font-size: 12px;
  color: var(--ink3);
}

.will-appear {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.will-appear.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Autor, film ---------- */

.autor-photo {
  position: relative;
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sh-card);
}

.autor-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.autor-photo span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.3;
}

.autor-photo span strong {
  display: block;
}

.vsl {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.vsl-frame {
  width: 100%;
  max-width: 760px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--sh-card);
}

.vsl-frame wistia-player {
  display: block;
  width: 100%;
}

wistia-player[media-id="qryq141tjw"]:not(:defined) {
  display: block;
  width: 100%;
  aspect-ratio: 1.5534;
  background: center / cover no-repeat url("https://fast.wistia.com/embed/medias/qryq141tjw/swatch");
  filter: blur(5px);
}

/* ---------- Rozmowa z Kasią (#proof-grid, renderuje app.js) ---------- */

#proof-grid {
  min-width: 0;
}

.convo-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--sh-card);
  overflow: hidden;
}

.convo {
  display: flex;
  flex-direction: column;
}

.convo .ig-head {
  min-height: 56px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 0 rgba(15, 40, 90, 0.06);
}

.convo-stream {
  height: 560px;
  padding: 16px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.convo-stream .ig-row-ava {
  background: var(--lead-grad);
}

/* ---------- Sekcje z kartami ---------- */

.cells {
  display: grid;
  gap: 12px;
}

.c220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.c240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.c280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.cell {
  padding: 18px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--sh-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cell h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cell p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink2);
}

.cell.dim {
  background: rgba(120, 120, 128, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.cell.dim h3 {
  color: var(--ink2);
}

.cell.case {
  padding: 20px;
  gap: 10px;
}

.cell.case h3 {
  margin-bottom: 4px;
}

.cell.case p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

.num {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink3);
}

.step {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Cena */

.price {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 440px;
  width: 100%;
  justify-self: end;
}

.price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-top strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-amount b {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-amount span {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink2);
}

.price-list {
  display: flex;
  flex-direction: column;
}

.price-lbl {
  padding: 4px 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink2);
}

.price-list div {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.price-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.price-list div > span:first-child {
  color: #34c759;
  font-weight: 700;
}

.price-fine {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink2);
  text-align: center;
}

/* Wiersze „co AI robi inaczej” */

.rows {
  padding: 4px 16px;
}

.rows div {
  padding: 11px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rows div + div {
  border-top: 1px solid var(--line);
}

.rows b {
  font-size: 14px;
}

.rows span {
  font-size: 13px;
  color: var(--ink2);
}

/* Porównanie */

.cmp-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cmp {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
}

.cmp th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.cmp th.oth {
  font-size: 12px;
  color: var(--ink2);
}

.cmp td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.cmp td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.cmp td:last-child {
  color: var(--ink2);
}

/* Liczby */

.nums {
  padding: 28px 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 32px;
}

.nums div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nums b {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nums p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink2);
}

/* Zaufanie */

.to-test {
  color: var(--ink);
}

.to-test:hover {
  color: var(--accent);
}

/* FAQ */

.faq-aside {
  align-items: flex-start;
}

.faq {
  padding: 4px 16px;
  min-width: 0;
}

.faq details + details {
  border-top: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 0;
  font-size: 14.5px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent);
}

.dsc {
  flex: none;
  color: var(--ink3);
  transition: transform var(--t);
}

.faq details[open] .dsc {
  transform: rotate(90deg);
}

.faq details p {
  padding: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(60, 60, 67, 0.75);
}

/* Finał i stopka */

.final {
  padding: 44px 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.final-lead {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.55;
}

.final-lead2 {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink2);
}

.final-lead2 strong {
  color: var(--ink);
}

.final-ticks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, max-content));
  justify-content: center;
  gap: 8px 24px;
  font-size: 14px;
  text-align: left;
}

.foot {
  width: 100%;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--ink2);
  text-align: left;
}

#ads-consent-reopen {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
}

/* ---------- Zgoda na cookies ---------- */

.ads-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 40, 90, 0.3);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: robert-in 0.18s ease-out both;
}

.ads-consent-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ads-consent p {
  font-size: 14px;
  line-height: 1.5;
}

.ads-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ads-consent.is-customize .ads-consent-main .ads-consent-actions {
  display: none;
}

.ads-consent-ghost,
.ads-consent-yes {
  height: 36px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t);
}

.ads-consent-ghost {
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(15, 40, 90, 0.1);
  color: var(--ink);
}

.ads-consent-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
}

.ads-consent-yes {
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--sh-btn);
}

.ads-consent-yes:hover {
  background: var(--accent-h);
}

.ads-consent-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ads-consent-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--sh-card);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink2);
  cursor: pointer;
}

.ads-consent-opt input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.ads-consent-opt strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.ads-consent-panel .ads-consent-actions {
  margin-top: 6px;
}

/* ---------- Ruch ---------- */

@keyframes robert-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes robert-typing {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Węższe ekrany ---------- */

@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }

  .topbar {
    justify-content: space-between;
  }
}

/* Czat na telefonie: app.js ustawia --chat-h (72% wysokości okna, min. 420 px). */
@media (max-width: 833px) {
  .chat-stream {
    height: calc(var(--chat-h, 560px) - 190px);
    min-height: 240px;
  }
}

@media (max-width: 900px) {
  .page::before {
    background-image: url("../assets/jesien-m.webp?v=310");
  }

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

  .hide-m {
    display: none !important;
  }

  .pad {
    padding: 22px 18px;
  }

  .nums.pad {
    padding: 22px 18px;
  }

  .final.pad {
    padding: 28px 18px 22px;
  }

  .h1 {
    font-size: 28px;
  }

  .h2,
  .h2-vsl,
  .h2-final {
    font-size: 26px;
  }

  .cmp {
    font-size: 13px;
  }

  .price {
    justify-self: stretch;
    max-width: none;
  }

  .convo-stream {
    height: 480px;
  }

  .topbar {
    padding: 8px 8px 8px 14px;
    gap: 12px;
  }

  /* Logo większe na telefonie (Adrian 23.10.2026): tyle, ile zmieści się obok przycisku. */
  .topbar-logo img {
    height: 40px;
  }

  /* Cele dotyku co najmniej 42 px. */
  .btn-sm {
    height: 42px;
  }

  .ig-cam {
    width: 44px;
    height: 44px;
  }

  .ig-compose-pill {
    height: 44px;
  }

  .ig-compose-pill input {
    font-size: 16px;
  }

  .ads-consent-ghost,
  .ads-consent-yes {
    height: 42px;
  }

  .ads-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }

  .foot {
    justify-content: flex-start;
  }

  /* Tekstowy przycisk w stopce: większe pole dotyku bez rozpychania linii. */
  #ads-consent-reopen {
    padding: 13px 6px;
    margin: -13px -6px;
  }
}

@media (max-width: 420px) {
  .ads-consent-actions {
    justify-content: stretch;
  }

  .ads-consent-actions button {
    flex: 1 1 auto;
  }
}


/* ================================================================
   /landing/: hero, chipy funkcji, konsultacja, okno „Zostaw numer”
   ================================================================ */

.show-m {
  display: none;
}

/* Hero: nadtytuł i H1 po lewej, test czatu po prawej. Na telefonie: H1, test, punkty. */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "head test"
    "copy test";
  gap: 24px 32px;
  align-items: start;
}

.lp-head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.lp-test {
  grid-area: test;
  min-width: 0;
}

.lp-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.sit {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.12);
  color: #0062cc;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.h1-lp {
  font-size: 30px;
  line-height: 1.16;
}

.idle-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink2);
}

.chip-d {
  font-weight: 400;
  color: var(--ink2);
}

.h2-sm {
  font-size: 28px;
}

.bonus {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(0, 122, 255, 0.12);
  color: #0062cc;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.cmp-hint {
  display: none;
  text-align: center;
}

.cta .sub {
  max-width: 560px;
}

/* Okno „Zostaw numer” (modal z DESIGN-SYSTEM.md: overlay + blur 6, karta 92% bieli, promień 20). */
.book-dialog {
  width: min(520px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: 0 24px 60px rgba(15, 40, 90, 0.3);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.book-dialog::backdrop {
  background: rgba(30, 50, 90, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.book-dialog[open] {
  animation: robert-in 0.18s ease-out both;
}

.book-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.book-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.book-dialog-head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.book-dialog-close {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.12);
  color: var(--ink2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--t), color var(--t);
}

.book-dialog-close:hover {
  background: rgba(120, 120, 128, 0.2);
  color: var(--ink);
}

.book-dialog-lead {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink2);
}

.book-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
}

.book-opt {
  font-weight: 400;
}

.book-field > input,
.book-field > select,
.book-field > textarea,
.book-ig {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(60, 60, 67, 0.2);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(15, 40, 90, 0.06);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}

.book-field > textarea {
  min-height: 64px;
  padding: 10px 12px;
  line-height: 1.4;
  resize: vertical;
}

.book-field > select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233c3c43' stroke-opacity='.6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.book-field > input:hover,
.book-field > select:hover,
.book-field > textarea:hover,
.book-ig:hover {
  border-color: rgba(60, 60, 67, 0.32);
}

.book-field > input:focus,
.book-field > select:focus,
.book-field > textarea:focus,
.book-ig:focus-within {
  outline: 0;
  border-color: var(--accent);
  box-shadow: inset 0 1px 2px rgba(15, 40, 90, 0.06), 0 0 0 3px rgba(0, 122, 255, 0.18);
}

.book-ig {
  display: flex;
  align-items: center;
  gap: 4px;
}

.book-ig-at {
  color: var(--ink2);
}

.book-ig input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}

.lead-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

.lead-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink2);
  cursor: pointer;
}

.lead-form-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.lead-form-status {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
}

.lead-form-status.is-ok {
  background: rgba(52, 199, 89, 0.14);
  color: #1f8a3b;
}

.lead-form-status.is-err {
  background: rgba(255, 59, 48, 0.1);
  color: #c0392b;
}

.book-submit {
  width: 100%;
}

.book-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

@media (max-width: 900px) {
  .show-m {
    display: inline;
  }

  .lp-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "head"
      "test"
      "copy";
    gap: 20px;
  }

  .h1-lp {
    font-size: 24px;
  }

  .h2-sm {
    font-size: 23px;
  }

  .cmp-hint {
    display: block;
  }

  /* Na telefonie chipy jak na /setter/: dwie kolumny, sama nazwa funkcji. */
  .chip-d {
    display: none;
  }

  .book-form {
    padding: 18px 16px;
  }
}
