/* Fonty 1:1 z apki (vue-app-client/src/assets/fonts) — osobny plik per waga,
   zadnego syntetycznego boldowania (font-synthesis: none nizej). */
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #030712;
  --bg-card: #0b1120;
  --bg-soft: #111a2e;
  --mint: #20f9a2;
  --green: #00a869;
  --green-deep: #008550;
  --text: #f9fafb;
  --muted: #9ca3af;
  --soft: #6b7280;
  --border: rgba(255, 255, 255, 0.07);
  --border-mint: rgba(32, 249, 162, 0.25);
  --radius: 20px;
  --radius-pill: 999px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --font: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; font-synthesis: none; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glows behind everything */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 420px at 82% -5%, rgba(32, 249, 162, 0.10), transparent 65%),
    radial-gradient(700px 500px at -10% 30%, rgba(16, 90, 60, 0.18), transparent 60%),
    radial-gradient(900px 600px at 50% 115%, rgba(32, 249, 162, 0.07), transparent 60%);
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(3, 7, 18, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-mark { display: block; width: 28px; height: 28px; }

.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.logo-text span:first-child { color: #20f9a2; }
.logo-text span:last-child { color: #20f9a2; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text); }

/* ---------- CTA ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #00b876, var(--green-deep));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 168, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 168, 105, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cta-small { padding: 9px 18px; font-size: 14px; }
.cta-big { padding: 15px 28px; font-size: 16px; }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 15px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cta-ghost:hover { border-color: var(--border-mint); color: var(--text); }

/* ---------- LAYOUT ---------- */
main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { margin: 96px 0; }

.section-head { margin-bottom: 40px; }

.section-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 44px;
  padding: 56px 0 40px;
}

/* Copy wycentrowane nad oknem demo */
.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy .hero-sub { margin-left: auto; margin-right: auto; max-width: 560px; }
.hero-copy .hero-actions { justify-content: center; }
.hero-copy .hero-proof { justify-content: center; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-mint);
  background: rgba(32, 249, 162, 0.06);
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero-title .grad {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--mint), #a7f3d0 60%, #f9fafb);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 460px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-proof {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--soft);
  font-size: 13.5px;
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-proof li::before {
  content: "✓";
  color: var(--mint);
  font-weight: 700;
}

/* ---------- DEMO CARD ---------- */
.demo-wrap {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  /* grid item: bez tego nowrap w inpucie wypycha cala karte (min-width:auto) */
  min-width: 0;
}

.demo-wrap::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(closest-side, rgba(32, 249, 162, 0.13), transparent 70%);
  z-index: -1;
}

/* ===== Replika okna aplikacji (motyw "green" z apki) =====
   Kolory wprost z vue-app-client/src/styles/variables.scss:
   tlo #080808, bąbelek bota #272727, bąbelek usera #008550, tekst #AAAAAA */
.demo-card {
  --app-bg: #080808;
  --app-bot-bubble: #272727;
  --app-user-bubble: #008550;
  --app-text-dim: #aaaaaa;
  font-family: "Outfit", "Inter", sans-serif;
  background: var(--app-bg);
  border: 1px solid #1f1f1f;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-top {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px 6px;
  color: #fff;
}

.app-back {
  width: 16px;
  height: 16px;
  align-self: center;
  color: #fff;
  flex: none;
}

/* Tytul jak w apce: Outfit-Medium 24px (nie bold) */
.app-title {
  font-size: 22px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-step { color: var(--app-text-dim); font-size: 13.5px; font-weight: 600; white-space: nowrap; }

.app-skip {
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.app-skip-chev { text-decoration: none; display: inline-block; }

/* Uklad jak w prawdziwej lekcji: awatar (wideo) z lewej, czat z prawej */
.demo-stage {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 6px 10px;
}

/* Wezszy panel, ale z pelniejszym kadrem awatara (glowa + tors) */
.demo-video {
  width: 33%;
  flex: none;
  background: #05070d;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.demo-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.app-avatar-name {
  position: absolute;
  top: 10px;
  left: 12px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.demo-chat {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.demo-body {
  flex: 1;
  min-height: 460px;
  max-height: 460px;
  overflow: hidden;
  padding: 6px 4px 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.row-teacher { justify-content: flex-start; }
.row-user { justify-content: flex-end; }

.msg-icons {
  display: flex;
  gap: 10px;
  padding-top: 8px;
  color: #cfcfcf;
  flex: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Rozmiary 1:1 z apki: sluchawki 12x12, tlumaczenie 14x14, kolor lightgray */
.msg-icons { color: lightgray; }
.msg-icons svg { display: block; }
.msg-icons svg:first-child { width: 12px; height: 12px; }
.msg-icons svg:last-child { width: 14px; height: 14px; }
.msg-icons.show { opacity: 1; }

.demo-bubble {
  max-width: 95%;
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  animation: bubble-in 0.35s ease both;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.demo-bubble .w { animation: word-in 0.22s ease both; }

@keyframes word-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.demo-teacher {
  background: var(--app-bot-bubble);
  color: #fff;
}

.demo-user {
  background: var(--app-user-bubble);
  color: #fff;
}

/* Podswietlenie fraz jak w apce: --color-text-highlight (zielen 0,133,80) */
.demo-bubble .pill {
  display: inline;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(0, 133, 80, 0.3);
  color: #fff;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.typing {
  display: inline-flex;
  gap: 5px;
  padding: 4px 2px;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--soft);
  animation: blink 1.1s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes blink {
  0%, 70%, 100% { opacity: 0.25; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

.wave {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
}

.wave span {
  width: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  animation: wave 0.9s infinite ease-in-out;
}

.wave span:nth-child(1) { height: 8px; }
.wave span:nth-child(2) { height: 16px; animation-delay: 0.12s; }
.wave span:nth-child(3) { height: 11px; animation-delay: 0.24s; }
.wave span:nth-child(4) { height: 18px; animation-delay: 0.36s; }
.wave span:nth-child(5) { height: 9px;  animation-delay: 0.48s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.15); }
}

.demo-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 16px;
}

/* Glosniczek 1:1 z apki (AvatarButtons.vue) — klikalny, domyslnie WYCISZONY */
.app-sound {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid #555;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.app-sound .ic-on { display: none; }
.app-sound.on .ic-on { display: block; }
.app-sound.on .ic-off { display: none; }

/* Settings + kebab 1:1 z apki (KebabMenu.vue: 3 kropki 4px, gap 2px) */
.app-settings {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

.app-settings .kebab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 10px;
}

.app-settings .kebab span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

/* Jak textarea w apce: tekst zawija sie i pole rosnie W DOL, bez poziomego wypychania */
.demo-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #3a3a3a;
  background: transparent;
  color: #8b8b8b;
  font-size: 14.5px;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.demo-input .typed { color: #fff; }

.demo-input.active .ph { display: none; }

.demo-input.active .typed::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: #fff;
  animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.demo-mic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--app-user-bubble, #008550);
  color: #fff;
  transition: background-color 0.25s ease;
}

.demo-mic .ic-mic { width: 17px; height: 22px; }
.demo-mic .ic-rec { width: 20px; height: 18px; }

.demo-mic .ic-rec { display: none; }

/* Stan nagrywania 1:1 z apki: czerwone tlo + pulsowanie + ikona fal */
.demo-mic.rec { background: red; animation: mic-pulse 2s infinite; }
.demo-mic.rec .ic-mic { display: none; }
.demo-mic.rec .ic-rec { display: block; }

@keyframes mic-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.18); opacity: 0.65; }
}

.demo-caption {
  text-align: center;
  color: var(--soft);
  font-size: 13px;
  margin: 14px 0 0;
}

/* ---------- MARQUEE ---------- */
.marquee-section {
  margin: 48px -24px 0;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee { overflow: hidden; padding: 7px 0; }

.marquee-track {
  display: inline-flex;
  gap: 12px;
  white-space: nowrap;
  animation: marquee 44s linear infinite;
  will-change: transform;
}

/* Obie tasmy plyna w TE SAMA strone, druga wolniej i z przesunietym startem —
   parallax zamiast ruchu w przeciwnych kierunkach (krecilo w glowie) */
.marquee-track.reverse { animation-duration: 62s; animation-delay: -20s; }

.marquee-track span {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  font-size: 14px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Wyrazna plakietka nad osia: skad jest ten przyklad */
.flow-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-mint);
  background: rgba(32, 249, 162, 0.07);
  color: var(--mint);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 22px;
}

.flow-label strong { color: #fff; font-weight: 600; }

/* Mini-chip poziomu (B1 itp.) w plakietkach */
.level-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  margin-left: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-mint);
  background: rgba(32, 249, 162, 0.12);
  color: var(--mint);
  font-weight: 700;
  font-size: 12.5px;
  vertical-align: middle;
}

/* ---------- Anatomia lekcji: 5 krokow z linia laczaca ---------- */
.lesson-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.flow-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.flow-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-mint);
}

/* lacznik miedzy kartami */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  right: -18px;
  width: 18px;
  height: 2px;
  background: var(--border-mint);
}

.flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.flow-icon { color: var(--mint); opacity: 0.9; }
.flow-icon svg { width: 28px; height: 28px; display: block; }

/* Numer kroku stonowany — ikona gra pierwsze skrzypce */
.flow-num {
  color: var(--soft);
  font-weight: 600;
  font-size: 15px;
}

.flow-step h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.flow-facts {
  text-align: center;
  color: var(--soft);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  margin: 26px 0 0;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-mint);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(32, 249, 162, 0.08);
  border: 1px solid var(--border-mint);
  color: var(--mint);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
}

.step-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

/* ---------- SPLIT SECTIONS ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.split-copy .section-title { max-width: 480px; }
.split-copy .section-sub { max-width: 460px; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}

/* ptaszek pozycjonowany absolutnie — tresc li plynie inline,
   bez flex-gap wcinajacego sie miedzy <em>/<strong> a tekst */
.check-list li {
  position: relative;
  padding-left: 26px;
  color: #e5e7eb;
  font-size: 15px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
  flex: none;
}

/* Feedback visual */
/* ---------- Panel "Level Up Your Grammar" 1:1 z apki ---------- */
.lug-card {
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 18px;
  padding: 24px 26px;
  font-family: "Outfit", sans-serif;
}

.lug-title { font-size: 19px; font-weight: 500; color: #fff; margin-bottom: 16px; }

.lug-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.lug-filters span {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid #3a3a3a;
  color: #ddd;
  font-size: 13.5px;
}

.lug-filters span.on { background: #fff; color: #111; border-color: #fff; font-weight: 500; }

.lug-item { padding: 14px 0; border-top: 1px solid #242424; }
.lug-item:first-of-type { border-top: none; }

.lug-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #2a2a2a;
  color: #ccc;
  font-size: 12.5px;
  margin-bottom: 10px;
}

.lug-row { font-size: 14.5px; color: #fff; margin-bottom: 6px; }
.lug-label { color: #9a9a9a; margin-right: 4px; }
.lug-fix { color: var(--mint); }
.lug-why { color: #8b8b8b; font-size: 13px; line-height: 1.55; }

.lug-pager { display: flex; gap: 14px; align-items: center; color: #9a9a9a; font-size: 14px; margin-top: 14px; }
.lug-pager .on {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: #111; font-weight: 500;
}

.fb-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fb-bubble {
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.6;
}

.fb-user {
  align-self: flex-end;
  max-width: 85%;
  background: linear-gradient(135deg, #00b876, var(--green-deep));
  color: #fff;
  border-bottom-right-radius: 6px;
  font-weight: 500;
}

.fb-user s { opacity: 0.75; }

.fb-mic { margin-right: 6px; }

.fb-teacher {
  align-self: flex-start;
  max-width: 92%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.fb-fix { font-size: 16px; margin-bottom: 8px; }
.fb-fix strong { color: var(--mint); }
.fb-check { color: var(--mint); font-weight: 700; }

.fb-note {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 12px;
}

.fb-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.fb-chips span {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-mint);
  background: rgba(32, 249, 162, 0.07);
  color: var(--mint);
  font-size: 13px;
}

/* ---------- PROGRESS ---------- */
/* Desktopowo odwracamy kolumny (wizual z lewej), DOM zostaje copy-first dla mobile. */
@media (min-width: 981px) {
  .split-rev .split-copy { order: 2; }
  .split-rev .split-visual { order: 1; }
}

.shot-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #05070d;
}

.shot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(32, 249, 162, 0.06);
  border-radius: inherit;
}

.shot-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- GAME FORMATS ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-mint);
}

.game-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 14px;
}

.game-card h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 0 0 6px;
}

.game-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

.games-more {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 22px 4px 0;
  max-width: 640px;
}

/* ---------- TEACHERS ---------- */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.teacher-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.teacher-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-mint);
}

.teacher-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.teacher-info { padding: 16px 18px 18px; }

.teacher-name { font-weight: 600; font-size: 16px; }

.teacher-accent {
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 4px 0 8px;
}

.teacher-trait { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 96px 0;
  padding: 30px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat { text-align: center; }

.stat-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--mint), #d1fae5);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 4px;
}

/* ---------- PRODUCT TOUR ---------- */
/* Kolumna splitu ma ~520px, screeny natywnie ~769px — tylko downscaling, ostro. */
.tour-shot img { transition: opacity 0.2s ease; }

.tour-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.tour-tab {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tour-tab:hover { color: var(--text); border-color: var(--border-mint); }

.tour-tab.active {
  background: rgba(32, 249, 162, 0.08);
  border-color: var(--border-mint);
  color: var(--mint);
  font-weight: 600;
}

.tour-caption {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 4px 0;
  min-height: 44px; /* dwie linie — zmiana taba nie przesuwa layoutu */
  max-width: 460px;
}

/* ---------- WHY FREE ---------- */
.founder-note {
  margin-top: 26px;
  padding: 22px 24px;
  border-left: 3px solid var(--mint);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-card);
}

.founder-note p {
  margin: 0 0 12px;
  color: #e5e7eb;
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
}

.founder-sig { color: var(--soft); font-size: 13.5px; }

.compare-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.compare-col { padding: 26px 24px; }

/* Plakietka "+4 nauczycieli" w stylu flow-label, wycentrowana */
.teachers-more {
  display: inline-flex;
  margin: 26px auto 0;
}

.teachers-grid + .teachers-more { display: flex; width: fit-content; }

/* Porownanie wiersz-w-wiersz na pelna szerokosc (sekcja Why Speakearly) */
.compare-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cmp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* jedyny poziomy separator: pod naglowkami kolumn */
.cmp-row.cmp-head { border-bottom: 1px solid var(--border); }

.cmp-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  color: var(--muted);
  font-size: 16px;
  background: var(--bg-card);
}

.cmp-cell.cmp-good {
  background: rgba(32, 249, 162, 0.045);
  border-left: 1px solid var(--border-mint);
  color: var(--text);
}

.cmp-head .cmp-cell {
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  padding: 16px 28px;
}

.cmp-head .cmp-cell.cmp-good { color: var(--mint); }

.cmp-x { color: #f87171; font-size: 18px; line-height: 1; }
.cmp-v { color: var(--mint); font-weight: 700; line-height: 1; }

@media (max-width: 700px) {
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-cell.cmp-good { border-left: none; }
  .cmp-head { display: none; }
}

.compare-them { background: var(--bg-card); }

.compare-us {
  background: linear-gradient(160deg, rgba(32, 249, 162, 0.10), rgba(0, 133, 80, 0.10));
  border-left: 1px solid var(--border-mint);
}

.compare-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.compare-us .compare-title { color: var(--mint); }

.compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.compare-col li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.compare-them li::before { content: "✕"; color: #f87171; flex: none; font-size: 12px; }
.compare-us li::before { content: "✓"; color: var(--mint); font-weight: 700; flex: none; }
.compare-us li { color: #e5e7eb; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 22px;
  transition: border-color 0.2s ease;
}

.faq details[open] { border-color: var(--border-mint); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--mint);
  font-size: 22px;
  font-weight: 400;
  flex: none;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  margin: 110px 0 40px;
  padding: 64px 32px;
  text-align: center;
  border-radius: 28px;
  border: 1px solid var(--border-mint);
  background:
    radial-gradient(500px 260px at 50% -20%, rgba(32, 249, 162, 0.16), transparent 70%),
    var(--bg-card);
  box-shadow: var(--shadow);
}

.final-cta h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 28px;
}

.final-note {
  color: var(--soft);
  font-size: 13.5px;
  margin: 18px 0 0;
}

/* ---------- FOOTER ---------- */
.footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 24px 40px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--soft);
  text-align: center;
}

.footer-link {
  margin-left: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-link:hover { color: var(--text); border-bottom-color: var(--text); }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .demo-bubble { animation: none; }
  .demo-bubble .w { animation: none; }
  .demo-mic.on { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 48px;
  }

  .hero-title { font-size: 46px; }

  .split { grid-template-columns: 1fr; gap: 36px; }

  .teachers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }

  .lesson-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .flow-step:not(:last-child)::after { display: none; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }

  .nav-inner { padding: 12px 18px; }

  main { padding: 0 18px; }

  .section { margin: 64px 0; }

  .hero-title { font-size: 37px; }

  .hero-title .grad { font-size: 24px; }

  .hero-sub { font-size: 15.5px; }

  .hero-actions .cta-big { width: 100%; }

  .hero-actions .cta-ghost { display: none; }

  .steps { grid-template-columns: 1fr; }

  .lesson-flow { grid-template-columns: 1fr; }

  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section-title { font-size: 27px; }

  .demo-stage { flex-direction: column; }

  .demo-video {
    width: 100%;
    height: 300px;
  }

  /* Szeroki niski panel: kadruj na twarz i tors, nie na gorna krawedz klatki */
  .demo-video video { object-position: 50% 22%; }

  .demo-body { min-height: 280px; max-height: 280px; }

  .app-title { font-size: 16px; }

  .app-settings { display: none; }

  .compare-card { grid-template-columns: 1fr; }

  .compare-us { border-left: none; border-top: 1px solid var(--border-mint); }

  .final-cta { padding: 44px 22px; }

  .final-cta h2 { font-size: 28px; }

  .final-cta .cta-big { width: 100%; }

  .stats { padding: 24px 18px; margin: 64px 0; }

  .stat-num { font-size: 28px; }

  .marquee-section { margin: 40px -18px 0; }
}
