/* ============================================================
   Badanie konsumenckie — styl JASNY (Typeform-like)
   Wszystkie kolory w zmiennych: zmiana motywu = zmiana tych wartości.
   ============================================================ */
:root {
  --bg: #eceaf6;
  --bg-2: #f6f5fb;
  --card: #ffffff;
  --card-2: #f3f1fe;      /* delikatny fioletowy tint pod zaznaczenia */
  --line: #e7e6f0;
  --line-strong: #d9d7ea;
  --text: #1c1b2b;
  --muted: #6f6e82;
  --accent: #6d5efc;
  --accent-strong: #5a49e6;
  --accent-2: #22c9a6;    /* zielony akcent (koniec gradientu paska) */
  --on-accent: #ffffff;
  --radius: 20px;
  --radius-sm: 14px;
  --pad: 26px;
  --maxw: 440px;
  --shadow: 0 18px 50px rgba(84, 66, 190, 0.14);
  --shadow-sm: 0 6px 18px rgba(84, 66, 190, 0.10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: radial-gradient(1100px 700px at 50% -10%, #dcd8f5 0%, var(--bg) 55%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex; align-items: center; justify-content: center;
  min-height: 100dvh;
}

/* Ramka telefonu */
.phone {
  position: relative;
  width: 100%; max-width: var(--maxw); height: 100dvh;
  background: var(--card);
  display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 480px) {
  .phone {
    height: min(880px, 94dvh);
    border-radius: 36px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
}

.phone__progress { height: 5px; background: var(--bg-2); flex: 0 0 auto; }
.phone__progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 0 4px 4px 0;
  transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Ekran = jeden moduł */
.screen {
  flex: 1 1 auto; overflow-y: auto; padding: var(--pad);
  display: flex; flex-direction: column;
  animation: fade 0.4s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Typografia */
.eyebrow { color: var(--accent); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
h1.q { font-size: 28px; line-height: 1.22; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
h2.q { font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 20px; }
.spacer { flex: 1 1 auto; }

/* Przyciski */
.btn {
  appearance: none; border: none; cursor: pointer;
  width: 100%; padding: 17px 20px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em;
  background: var(--accent); color: var(--on-accent);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.btn--ghost { background: var(--card); color: var(--text); border: 1.5px solid var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--accent); }

/* Lista odpowiedzi (jedna pod drugą) */
.options { display: flex; flex-direction: column; gap: 11px; }
.option {
  text-align: left; width: 100%; padding: 17px 18px; border-radius: var(--radius-sm);
  background: var(--card); color: var(--text); border: 1.5px solid var(--line);
  font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.option:hover { border-color: var(--accent); }
.option:active { transform: scale(0.99); }
.option.is-selected { border-color: var(--accent); background: var(--card-2); }

/* Skala Likerta 1–5 */
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 10px; }
.likert__btn {
  aspect-ratio: 1 / 1; border-radius: 16px;
  background: var(--card); border: 1.5px solid var(--line); color: var(--text);
  font-size: 20px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.likert__btn:hover { border-color: var(--accent); }
.likert__btn:active { transform: scale(0.93); }
.likert__btn.is-selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.likert__labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 10px; }

/* Dwie duże opcje (szybkie wybory) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.duo__btn {
  min-height: 175px; border-radius: var(--radius);
  background: var(--card); border: 1.5px solid var(--line); color: var(--text);
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
}
.duo__ic { font-size: 54px; line-height: 1; }
.duo__btn:hover { border-color: var(--accent); background: var(--card-2); }
.duo__btn:active { transform: scale(0.97); }

/* Wynik */
.result-badge {
  margin: 14px 0 20px; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(140deg, #efeafe 0%, #f8f6ff 100%);
  border: 1.5px solid var(--line); text-align: center; box-shadow: var(--shadow-sm);
}
.result-badge .emoji { font-size: 52px; }
.result-badge .name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; color: var(--accent-strong); }

/* Drobne */
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--card-2); color: var(--accent-strong); font-size: 12px; font-weight: 600; border: 1px solid var(--line); }
.counter { color: var(--muted); font-size: 14px; font-weight: 700; }
.footer-note { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 16px; text-align: center; }

/* ============================================================
   Moduły: marki, koszulki, telefony, reklamy
   ============================================================ */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.brand {
  min-height: 96px; border-radius: 16px;
  background: var(--card); border: 1.5px solid var(--line); color: var(--text);
  font-weight: 700; font-size: 13px; cursor: pointer; padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, border-color 0.15s ease, opacity 0.2s ease;
}
.brand:hover { border-color: var(--accent); }
.brand:active { transform: scale(0.96); }
.brand--empty { opacity: 0; pointer-events: none; box-shadow: none; }
.brand__logo { width: 48px; height: 48px; object-fit: contain; border-radius: 11px; background: #fff; padding: 6px; border: 1px solid var(--line); }
.brand__name { line-height: 1.1; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.card {
  border-radius: 18px; background: var(--card); border: 2px solid var(--line);
  padding: 16px 8px; cursor: pointer; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, border-color 0.15s ease;
}
.card:hover { border-color: var(--accent); }
.card:active { transform: scale(0.98); }
.card.is-selected { border-color: var(--accent); background: var(--card-2); }
.card .emoji { font-size: 44px; line-height: 1; }
.card .cname { font-weight: 800; font-size: 14px; margin-top: 9px; }
.card .meta { font-size: 12px; color: var(--muted); margin-top: 5px; min-height: 1em; line-height: 1.35; }

.ad {
  border-radius: 20px; background: linear-gradient(140deg, #f0ecfe 0%, #f9f8ff 100%);
  border: 1.5px solid var(--line); padding: 30px 20px; text-align: center; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.ad .emoji { font-size: 60px; }
.ad .headline { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin-top: 12px; line-height: 1.3; }

.qlabel { font-weight: 700; font-size: 15px; margin: 18px 0 4px; }
.scale7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-top: 8px; }
.scale7 button {
  aspect-ratio: 1 / 1; border-radius: 12px; background: var(--card);
  border: 1.5px solid var(--line); color: var(--text); font-weight: 800; font-size: 15px; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.scale7 button:hover { border-color: var(--accent); }
.scale7 button:active { transform: scale(0.92); }
.scale7 button.is-selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.media {
  border-radius: 20px; background: var(--bg-2); border: 1.5px dashed var(--line-strong);
  min-height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 64px; margin-bottom: 18px;
}
textarea.field {
  width: 100%; min-height: 130px; border-radius: 14px; background: var(--card);
  border: 1.5px solid var(--line); color: var(--text); padding: 15px;
  font-family: inherit; font-size: 15px; resize: vertical; box-shadow: var(--shadow-sm);
}
textarea.field:focus { outline: none; border-color: var(--accent); }

/* ============================================================
   Karuzela koszulek (środkowa duża, sąsiedzi wystają po bokach)
   ============================================================ */
.carousel { position: relative; overflow: hidden; width: 100%; margin-top: 8px; }
.carousel__track {
  display: flex; align-items: center;
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.slide {
  flex: 0 0 auto; box-sizing: border-box;
  min-height: 310px; border-radius: 22px;
  background: var(--card); border: 2px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 12px; cursor: pointer;
  opacity: 0.5; transform: scale(0.86);
  box-shadow: var(--shadow-sm);
  transition: transform 0.34s ease, opacity 0.34s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.slide.is-active { opacity: 1; transform: scale(1); border-color: var(--accent); cursor: default; box-shadow: var(--shadow); }
.slide .emoji { font-size: 76px; line-height: 1; }
.slide .meta { font-size: 13.5px; color: var(--muted); margin-top: 12px; text-align: center; line-height: 1.4; font-weight: 600; }

/* ============================================================
   Dodatki: pasek z licznikiem, siatki wypełniające, skala 3/stronę,
   zdjęcia produktów, podpowiedź swipe
   ============================================================ */
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.topbar .eyebrow { margin-bottom: 0; }
.counter-chip {
  background: var(--card-2); color: var(--accent-strong); font-weight: 800; font-size: 14px;
  padding: 6px 15px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap;
}

/* Siatki, które wypełniają całą wolną przestrzeń ekranu */
.grid-fill3 {
  flex: 1 1 auto; min-height: 0; margin-top: 14px;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 11px;
}
.grid-fill2 {
  flex: 1 1 auto; min-height: 0; margin-top: 14px;
  display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 13px;
}
.grid-fill3 .brand { min-height: 0; gap: 12px; font-size: 14px; }
.grid-fill3 .brand__logo { width: 68px; height: 68px; }
/* pozwól kartom kurczyć się w komórce (bez tego wysokie zdjęcia rozpychają siatkę) */
.grid-fill2 .card, .grid-fill2 .pcard { min-height: 0; overflow: hidden; }

/* Karta telefonu ze zdjęciem */
.pcard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; }
.pcard__img { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: contain; }
.pcard__img--emoji { display: flex; align-items: center; justify-content: center; font-size: 54px; }
.pcard .cname { margin-top: 4px; }

/* Skala Likerta 3/stronę (kompaktowa) */
.mlegend { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 18px; }
.mitems { display: flex; flex-direction: column; gap: 22px; }
.mitem .mstmt { font-weight: 700; font-size: 16.5px; line-height: 1.32; letter-spacing: -0.01em; margin-bottom: 12px; }
.mscale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mscale button {
  height: 50px; border-radius: 12px; background: var(--card);
  border: 1.5px solid var(--line); color: var(--text); font-weight: 800; font-size: 16px; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mscale button:hover { border-color: var(--accent); }
.mscale button:active { transform: scale(0.93); }
.mscale button.is-selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Karuzela koszulek: zdjęcie + podpowiedź */
.slide__img { width: 100%; max-height: 250px; object-fit: contain; border-radius: 14px; }
.slide__img--emoji { display: flex; align-items: center; justify-content: center; height: 250px; font-size: 80px; }
.hint { text-align: center; color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: 14px; }

/* Placeholder filmu */
.media--video { position: relative; }
.media--video::after {
  content: ''; position: absolute; width: 0; height: 0;
  border-left: 26px solid var(--accent); border-top: 16px solid transparent; border-bottom: 16px solid transparent;
  left: 50%; top: 50%; transform: translate(-40%, -50%);
}

/* ============================================================
   Odtwarzacz filmu (auto-play wyciszony + odciszanie + Przewiń)
   ============================================================ */
.video-wrap { position: relative; width: 100%; border-radius: 20px; overflow: hidden; background: #0b0b12; margin-top: 6px; box-shadow: var(--shadow-sm); }
.video-wrap video { width: 100%; display: block; max-height: 60vh; object-fit: contain; background: #0b0b12; }
.video-mute {
  position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff; border: none; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.video-mute:active { transform: scale(0.94); }
.video-ph { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 66px; color: #fff; gap: 12px; }
.video-ph__t { font-size: 15px; color: #c9c7d6; }

/* Obrazek w reklamie słuchawek + obrazek w module bodźca (koszulki wartości) */
.ad--img { padding: 10px; background: var(--bg-2); }
.ad__img { width: 100%; max-height: 340px; object-fit: contain; border-radius: 14px; display: block; }
.ad__img--emoji { display: none; align-items: center; justify-content: center; font-size: 58px; min-height: 120px; }
.media--img { display: block; padding: 10px; background: var(--bg-2); border: none; min-height: 0; }
.media__img { max-width: 100%; max-height: 300px; object-fit: contain; border-radius: 12px; display: block; margin: 0 auto; }
.media__img--emoji { display: none; align-items: center; justify-content: center; font-size: 62px; }

/* ============================================================
   Szlif: powitanie, chipy, paski profilu, znacznik wyboru
   ============================================================ */
.welcome-hero { font-size: 54px; line-height: 1; margin: 6px 0 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; }
.chip {
  padding: 8px 14px; border-radius: 999px; background: var(--card-2);
  color: var(--accent-strong); font-size: 13.5px; font-weight: 700;
  border: 1px solid var(--line);
}

/* Ptaszek na zaznaczonej karcie (telefony itd.) */
.card { position: relative; }
.card.is-selected::after {
  content: '✓'; position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* Paski rozkładu profilu na ekranie wyniku */
.bars { display: flex; flex-direction: column; gap: 11px; }
.bar__label { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; margin-bottom: 5px; }
.bar__label span:last-child { color: var(--muted); font-weight: 800; }
.bar__track { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.bar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
.bar--top .bar__label span:first-child { color: var(--accent-strong); }

/* ============================================================
   Gęstość v2: loga na cały kafelek, większe zdjęcia, wideo fullscreen
   (nadpisuje wcześniejsze reguły — celowo na końcu pliku)
   ============================================================ */

/* Marki: logo wypełnia cały kafelek, nazwa drobna pod spodem */
.grid-fill3 .brand { padding: 10px 8px 8px; gap: 8px; }
.grid-fill3 .brand__logo {
  flex: 1 1 auto; min-height: 0; width: 100%; height: 100%;
  object-fit: contain; border: none; background: transparent;
  padding: 0; border-radius: 12px;
}
.grid-fill3 .brand__name { font-size: 13px; flex: 0 0 auto; }

/* Telefony: zdjęcie wypełnia kartę */
.grid-fill2 .pcard { padding: 10px 8px 10px; gap: 6px; }
.pcard__img { flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; object-fit: contain; }
.pcard .cname { font-size: 13.5px; margin-top: 2px; }
.pcard .meta { margin-top: 2px; }

/* Koszulki: zdjęcie wypełnia slajd */
.slide { min-height: 340px; }
.slide__img { flex: 1 1 auto; min-height: 0; width: 100%; max-height: none; object-fit: contain; }
.slide__img--emoji { height: auto; }

/* Bodziec (koszulki wartości): większy obraz */
.media__img { max-height: 340px; }

/* Wideo na cały ekran */
.screen--video { padding: 0; }
.screen--video .video-wrap {
  flex: 1 1 auto; min-height: 0; width: 100%;
  border-radius: 0; margin: 0; box-shadow: none;
  display: flex; align-items: center; justify-content: center;
}
.screen--video video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.screen--video .video-ph { flex: 1; width: 100%; }
.video-skip {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: auto; padding: 14px 30px; border-radius: 999px;
  font-size: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.video-skip:active { transform: translateX(-50%) scale(0.97); }

/* ============================================================
   UI v3 (plan Mateusza): metryczka combo, animacje marek,
   szybkie wybory w pionie z ikoną i strzałką
   ============================================================ */

/* Metryczka: grupy pytań na jednym ekranie, odpowiedzi jako pigułki */
.combo { display: flex; flex-direction: column; gap: 20px; margin-top: 6px; }
.combo .qlabel { margin: 0 0 10px; font-size: 16px; }
.pills { display: grid; gap: 9px; }
.pill-btn {
  padding: 13px 10px; border-radius: 13px;
  background: var(--card); border: 1.5px solid var(--line); color: var(--text);
  font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-sm); text-align: center;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pill-btn:hover { border-color: var(--accent); }
.pill-btn:active { transform: scale(0.95); }
.pill-btn.is-selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Marki: animacja zniknięcia klikniętej i wejścia nowej */
@keyframes brandPop {
  40% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(0.55); opacity: 0; }
}
.brand--pop { animation: brandPop 0.22s ease forwards; border-color: var(--accent) !important; pointer-events: none; }
@keyframes brandIn {
  from { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  to { transform: scale(1); opacity: 1; }
}
.brand--in { animation: brandIn 0.32s cubic-bezier(0.34, 1.4, 0.64, 1); }
@keyframes chipBump { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }
.counter-chip--bump { animation: chipBump 0.3s ease; }

/* Szybkie wybory: karty JEDEN POD DRUGIM, ikona + tekst + strzałka */
.duo { display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; min-height: 0; }
.duo__btn {
  flex: 1 1 auto; min-height: 0;
  flex-direction: row; justify-content: flex-start; gap: 20px;
  text-align: left; padding: 18px 22px; font-size: 19px;
}
.duo__ic { font-size: 62px; }
.duo__btn::after {
  content: '→'; margin-left: auto; flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card-2); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}

/* ============================================================
   UI v4 — wierne mockupom: fale w tle, strzałki w przyciskach,
   ikony przy odpowiedziach, pełne kafelki marek, kropki, plakietki
   ============================================================ */

/* Dekoracyjne fale na dole ekranu (nie łapią kliknięć) */
.phone::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 170px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 440 170' preserveAspectRatio='none'%3E%3Cpath d='M0 90 Q 110 30 220 80 T 440 70 V170 H0 Z' fill='%23ece8fb'/%3E%3Cpath d='M0 120 Q 130 70 260 110 T 440 105 V170 H0 Z' fill='%23e0d9f9' fill-opacity='0.75'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  pointer-events: none; z-index: 0;
}
.screen { position: relative; z-index: 1; }
.screen--video { z-index: 2; } /* wideo zakrywa fale */

/* Strzałka w przyciskach akcji (Zaczynam / Dalej / Okej) */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn#go::after, .btn#next::after { content: '→'; font-size: 18px; line-height: 1; }

/* Wiersze odpowiedzi: ikona w kwadraciku + tekst + szewron */
.option { display: flex; align-items: center; gap: 14px; }
.option__ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px;
  background: var(--card-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.option__txt { flex: 1 1 auto; }
.option__chev { flex: 0 0 auto; color: var(--muted); font-size: 22px; font-weight: 700; }

/* Metryczka: większe pigułki (wypełniamy ekran) */
.pill-btn { padding: 16px 12px; font-size: 15.5px; border-radius: 14px; }
.combo { gap: 22px; }

/* Marki: logo NA CAŁYM kafelku, podpis drobny na dole */
.brand--full { padding: 0; position: relative; overflow: hidden; gap: 0; }
.brand--full .brand__logo {
  position: absolute; top: 10px; left: 10px; right: 10px; bottom: 26px;
  width: calc(100% - 20px); height: calc(100% - 36px);
  object-fit: contain; border: none; background: transparent; padding: 0; border-radius: 10px;
}
.brand__cap {
  position: absolute; bottom: 7px; left: 4px; right: 4px;
  font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Szybkie wybory: duży obrazek w karcie, pod nim etykieta + strzałka (mockup) */
.duo__btn { flex-direction: column; align-items: stretch; gap: 8px; padding: 18px 20px; }
.duo__btn::after { content: none; }
.duo__ic { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; font-size: 92px; line-height: 1; }
.duo__row { display: flex; align-items: center; justify-content: space-between; font-size: 20px; font-weight: 800; }
.duo__arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card-2); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
}

/* Kropki pod karuzelą koszulek */
.dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background 0.2s ease, transform 0.2s ease; }
.dot--on { background: var(--accent); transform: scale(1.25); }

/* Plakietka na filmie */
.video-chip {
  position: absolute; top: 14px; left: 14px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px;
}

/* Wynik: plakietka pod nazwą profilu */
.result-crown {
  display: inline-block; margin-top: 12px; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--accent-strong); font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em;
}

/* Powitanie: większa, śmielsza typografia (mniej pustki) */
.welcome-hero { font-size: 58px; margin: 4px 0 16px; }
h1.q { font-size: 30px; }
.lead { font-size: 17px; }
.chips { margin-bottom: 14px; }
.chip { padding: 10px 16px; font-size: 14px; }

/* ============================================================
   UI v5 — wierność mockupom + poprawki pod realny ekran telefonu
   ============================================================ */

/* Pasek postępu jak w mockupie: wcięta pigułka, nie pełna szerokość */
.phone__progress {
  margin: 16px var(--pad) 0; height: 6px;
  border-radius: 999px; overflow: hidden; background: #e9e6f5;
}
.phone__progress-bar { border-radius: 999px; }

/* Powitanie: chipy w pionie (jak w mockupie), zgoda z kłódką */
.chips { flex-direction: column; align-items: flex-start; gap: 9px; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; }
.consent-lock { opacity: 0.45; font-size: 15px; flex: 0 0 auto; margin-top: 1px; }

/* Przycisk "Zaczynam": strzałka w białym kółku przy prawej krawędzi */
.btn { position: relative; }
.btn--circle#go::after {
  content: '→'; position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}

/* Wiersze .option jako wybór (metryczka płeć): stan zaznaczenia */
.combo .option.is-selected { border-color: var(--accent); background: var(--card-2); }

/* Baner-podpowiedź pod markami */
.hintbox {
  margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--accent-strong); font-size: 12.5px; font-weight: 600; line-height: 1.45;
}

/* Szybkie wybory: strzałka przy prawej krawędzi, wyśrodkowana w pionie karty */
.duo__btn { position: relative; }
.duo__row { justify-content: flex-start; padding-right: 54px; }
.duo__arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }

/* Skala: zaznaczony przycisk lekko większy (mockup) */
.mscale button.is-selected { transform: scale(1.07); }

/* Kropki bliżej karuzeli */
.dots { margin-top: 10px; }

/* ---- Realny telefon (wąski ekran) ---- */
@media (max-width: 420px) {
  :root { --pad: 20px; }
  h1.q { font-size: 26px; }
  h2.q { font-size: 20px; }
  .lead { font-size: 15.5px; }
  .welcome-hero { font-size: 48px; margin-bottom: 10px; }
  .duo__ic { font-size: 72px; }
  .ad__img { max-height: 34vh; }
  .media__img { max-height: 300px; }
  .scale7 { gap: 5px; }
  .scale7 button { font-size: 14px; border-radius: 10px; }
  .mscale button { height: 46px; }
  .slide { min-height: 300px; }
  .slide__img { max-height: 240px; }
  .phone__progress { margin-top: 12px; }
}

/* ============================================================
   UI v6 — DUŻE obrazki: koszulka i reklama dominują ekran,
   odpowiedzi płyną w dół (ekran się scrolluje)
   ============================================================ */

/* Koszulki: karuzela wypełnia całą dostępną wysokość */
.carousel { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; overflow: hidden; margin-top: 8px; }
.carousel__track { width: 100%; align-items: stretch; }
.slide { min-height: 0; padding: 14px; }                 /* wysokość ustawia JS = wysokość karuzeli */
.slide__img { flex: 1 1 auto; min-height: 0; width: 100%; height: auto; max-height: none; object-fit: contain; }
.slide__img--emoji { height: auto; font-size: 120px; }
.slide .meta { flex: 0 0 auto; }

/* Reklamy: DUŻY obrazek reklamy, skale poniżej (scroll) */
.ad { margin-bottom: 18px; }
.ad--img { padding: 8px; }
.ad__img { max-height: 480px; }
.scale7 { margin-top: 6px; }
.scale7 button { min-height: 46px; }

@media (max-width: 420px) {
  /* koszulka duża — karuzela dostaje jeszcze więcej wysokości */
  .ad__img { max-height: none; }        /* obrazek pełnej szerokości, wysokość wg proporcji */
  .slide__img--emoji { font-size: 92px; }
}

/* ============================================================
   UI v7 — poprawki z testu na iPhonie (Safari)
   ============================================================ */

/* Koszulki wartości: ramka zdjęcia NIE kurczy się (zdjęcie duże, reszta scrolluje) */
.media--img { flex: 0 0 auto; }
.media__img { max-height: 42vh; }

/* Zamulanie kliknięć na iOS — usuwa opóźnienie dotyku (podwójny tap) */
button, a, .option, .pill-btn, .brand, .card, .pcard, .duo__btn,
.likert__btn, .mscale button, .scale7 button, .slide, .video-mute {
  touch-action: manipulation;
}

/* Szybsze, bardziej „klikliwe" wejście ekranu */
.screen { animation-duration: 0.2s; }

/* Przycisk „Pomiń" na filmie — wyższa specyficzność (.screen--video ...) bije .btn{position:relative} */
.screen--video .video-skip {
  position: absolute; left: 50%; right: auto;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  transform: translateX(-50%); width: auto; z-index: 5;
}
.screen--video .video-skip:active { transform: translateX(-50%) scale(0.97); }

/* ============================================================
   v8 — manipulation check (przy reklamach) + mini-raport profilu
   ============================================================ */

/* Manipulation check: „o czym była reklama” — 5 pigułek pod skalami */
.manip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.manip button {
  flex: 1 1 auto; min-width: calc(50% - 4px);
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--card); border: 1.5px solid var(--line); color: var(--text);
  font-weight: 600; font-size: 13.5px; cursor: pointer; text-align: left;
  box-shadow: var(--shadow-sm);
}
.manip button:hover { border-color: var(--accent); }
.manip button:active { transform: scale(0.97); }
.manip button.is-selected { border-color: var(--accent); background: var(--card-2); }
.manip__ic { font-size: 17px; flex: 0 0 auto; }

/* Mini-raport na ekranie wyniku (supermoce / na co uważać / marki) */
.report { display: flex; flex-direction: column; gap: 12px; margin: 2px 0 18px; }
.report__card {
  border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.report__card--good  { background: #f0fbf7; border-color: #cdeee2; }
.report__card--watch { background: #fff7ef; border-color: #f4e2cc; }
.report__h { font-weight: 800; font-size: 14px; margin-bottom: 9px; }
.report__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.report__list li { font-size: 14px; line-height: 1.45; color: var(--text); padding-left: 22px; position: relative; }
.report__list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #16a37e; font-weight: 800; }
.report__list--traps li::before { content: '•'; color: #d98a2b; font-size: 18px; line-height: 1; }
.trap__t { display: block; font-weight: 600; }
.trap__fix { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.report__brands {
  font-size: 13.5px; color: var(--muted); padding: 11px 14px;
  background: var(--card-2); border-radius: var(--radius-sm);
}
.report__brands b { color: var(--accent-strong); }
.result-subhead { font-weight: 800; font-size: 13.5px; margin: 4px 0 10px; color: var(--muted); }

/* ============================================================
   v9 — reklamy słuchawek w kwadracie 1:1
   Grafiki są 1:1 → wypełniamy całą szerokość, bez bocznych pasków.
   Selektor .ad--img .ad__img (wyższa specyficzność) bije wcześniejsze
   reguły .ad__img również w media queries.
   ============================================================ */
/* flex:0 0 auto — bez tego overflow:hidden pozwala flexowi skurczyć kontener
   poniżej zawartości (obraz przycinał się do paska). Ten sam fix co .media--img. */
.ad--img { flex: 0 0 auto; padding: 0; background: transparent; border-radius: 18px; overflow: hidden; }
.ad--img .ad__img {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  max-height: none; object-fit: cover; border-radius: 18px; display: block;
}

/* ============================================================
   v10 — konkurs poleceń (zachęta na wyniku + ekran konkursu)
   ============================================================ */

/* Zachęta na dole ekranu wyniku */
.contest-cta { margin-top: 6px; padding: 16px; border-radius: var(--radius-sm); background: var(--card-2); border: 1.5px solid var(--line-strong); text-align: center; }
.contest-cta__text { font-weight: 700; font-size: 15px; line-height: 1.4; margin: 0 0 12px; }

/* Lista TOP */
/* flex:0 0 auto — bez tego overflow:hidden pozwala flexowi zapaść listę (ten sam kwirk co .ad--img/.media--img) */
.lb { flex: 0 0 auto; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 10px 0 16px; box-shadow: var(--shadow-sm); }
.lb-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; padding: 12px 14px; background: var(--card-2); border-bottom: 1.5px solid var(--line); }
.lb-demo { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--bg-2); padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.lb-row:last-child { border-bottom: none; }
.lb-row--top { background: linear-gradient(90deg, #fff6e0, var(--card)); }
.lb-rank { width: 25px; height: 25px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 13px; }
.lb-row--top .lb-rank { background: #f5b301; }
.lb-name { font-weight: 600; font-size: 14.5px; flex: 1 1 auto; }
.lb-count { font-weight: 800; font-size: 15px; color: var(--accent-strong); white-space: nowrap; }
.lb-count__u { font-weight: 600; font-size: 11px; color: var(--muted); }

/* Nagrody */
.prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prize { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px; border-radius: var(--radius-sm); background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.prize__medal { font-size: 24px; line-height: 1; }
.prize__place { font-size: 11px; color: var(--muted); font-weight: 600; }
.prize__amt { font-size: 17px; font-weight: 800; color: var(--text); }
.pay-note { text-align: center; font-weight: 700; font-size: 13.5px; color: var(--accent-strong); margin-top: 10px; }

/* Formularz kontaktu */
.cform { display: flex; flex-direction: column; gap: 10px; }
.cfield { display: flex; flex-direction: column; gap: 5px; }
.cfield span { font-weight: 700; font-size: 13px; color: var(--text); }
.cfield input {
  width: 100%; padding: 14px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--card); color: var(--text);
  font-size: 16px; font-family: inherit; box-shadow: var(--shadow-sm);   /* 16px = iOS nie zoomuje przy focusie */
}
.cfield input:focus { outline: none; border-color: var(--accent); }
.cform__hint { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }

/* Wygenerowany link */
.linkbox { margin: 16px 0 6px; padding: 14px; border-radius: var(--radius-sm); background: #f0fbf7; border: 1.5px solid #cdeee2; }
.linkbox__intro { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.linkbox__row { display: flex; gap: 8px; align-items: stretch; }
.linkbox__url { flex: 1 1 auto; display: flex; align-items: center; padding: 10px 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--accent-strong); word-break: break-all; }
.linkbox__copy { width: auto; flex: 0 0 auto; padding: 10px 16px; margin: 0; }
.contest-consent { text-align: left; margin: 16px 0 12px; }
