/* go5x.pl — styles
   Color, type and spacing tokens derived from the logo.
*/

:root {
  /* Palette */
  --navy-900: #0A1322;
  --navy-800: #0F1B2D;
  --navy-700: #18253D;
  --navy-500: #3C4D6B;
  --navy-300: #8995AA;

  --orange-500: #F58A2E;
  --orange-600: #E67617;
  --orange-100: #FFE8D2;

  --sky-600: #1F66C7;
  --sky-500: #2E78D8;
  --sky-400: #5BA0E8;
  --sky-300: #9FC9EF;
  --sky-100: #E5F0FA;

  --bg: #FAF8F3;
  --bg-elev: #FFFFFF;
  --bg-soft: #F4F0E7;
  --border: #E7E2D5;
  --border-strong: #D4CCB8;

  --text: #0F1B2D;
  --text-muted: #5C6478;
  --text-subtle: #8A91A3;

  --accent: var(--orange-500);
  --accent-deep: var(--orange-600);

  /* Type */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Geist", "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "JetBrains Mono", monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(15, 27, 45, 0.04), 0 24px 48px -24px rgba(15, 27, 45, 0.18);
  --shadow-pop: 0 1px 0 rgba(15, 27, 45, 0.06), 0 30px 60px -20px rgba(15, 27, 45, 0.25);
  --shadow-soft: 0 1px 2px rgba(15, 27, 45, 0.04), 0 8px 24px -12px rgba(15, 27, 45, 0.10);

  --max-w: 1240px;
  --max-w-text: 880px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--navy-800); color: var(--bg); }

/* ─── Layout helpers ─────────────────────────── */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 120px 0; position: relative; }
.section--tight { padding: 80px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.eyebrow--plain::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(52px, 5.8vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.032em;
  font-weight: 600;
}

h2 {
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
}

p { margin: 0; }
.lead { font-size: 20px; line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }

/* ─── Header ─────────────────────────── */

.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(250, 248, 243, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.header.is-scrolled {
  border-color: var(--border);
  background: rgba(250, 248, 243, 0.92);
}
.header__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.header__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--navy-900);
}
.header__logo img { height: 32px; width: 32px; }
.header__logo span em {
  color: var(--accent); font-style: normal;
}
.header__nav {
  display: flex; gap: 36px;
  font-size: 15px; color: var(--text-muted); font-weight: 500;
}
.header__nav a { transition: color 0.15s; }
.header__nav a:hover { color: var(--text); }
.header__cta { display: flex; align-items: center; gap: 18px; }

/* ─── Buttons ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  font-family: var(--font-body);
  font-weight: 500; font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s, box-shadow 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 20px -8px rgba(15,27,45,0.5);
}
.btn--primary:hover {
  background: var(--navy-800);
  box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset, 0 12px 28px -8px rgba(15,27,45,0.55);
}

.btn--accent {
  background: var(--accent);
  color: var(--navy-900);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 10px 24px -8px rgba(230, 118, 23, 0.5);
}
.btn--accent:hover { background: var(--accent-deep); color: #fff; }

.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: rgba(15,27,45,0.04); border-color: var(--navy-500); }

.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }

.btn .arrow {
  display: inline-flex; transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Hero ─────────────────────────── */

.hero {
  padding-top: 64px; padding-bottom: 100px;
  position: relative; overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero__copy { max-width: 640px; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .underline {
  background: linear-gradient(to top, rgba(245,138,46,0.28) 38%, transparent 38%);
  padding: 0 2px;
}
.hero__sub {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 540px;
}
.hero__ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 36px;
  display: flex; align-items: center; gap: 18px;
  font-size: 13.5px; color: var(--text-muted);
}
.hero__meta__avatars {
  display: flex;
}
.hero__meta__avatars .av {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background-size: cover; background-position: center;
  display: inline-grid; place-items: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  color: #fff;
}
.hero__meta__avatars .av:first-child { margin-left: 0; }

.hero__bg {
  position: absolute; pointer-events: none; inset: 0;
  z-index: -1;
}
.hero__bg .blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.55;
}
.hero__bg .blob--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--sky-300), transparent 70%);
  top: -180px; right: -120px;
}
.hero__bg .blob--2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--orange-100), transparent 70%);
  bottom: -120px; left: 20%;
}
.hero__bg .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,27,45,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  opacity: 0.7;
}

/* ─── Exercise card (hero) ─────────────────────────── */

.ex-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop);
  padding: 0;
  overflow: hidden;
  position: relative;
}
.ex-card__top {
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, #fff, var(--bg));
}
.ex-card__topline {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.ex-card__topline .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.ex-card__pill {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--sky-100);
  color: var(--sky-600);
  font-weight: 500;
}

.ex-card__body { padding: 32px 28px 28px; }
.ex-card__prompt {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.ex-card__sentence {
  font-family: var(--font-display);
  font-size: 28px; line-height: 1.35;
  color: var(--navy-900);
  letter-spacing: -0.015em;
  font-weight: 500;
  text-wrap: pretty;
}
.ex-card__sentence .pl-hint {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-subtle);
  letter-spacing: 0;
  font-style: italic;
  font-weight: 400;
}

.gap-input {
  display: inline-block;
  min-width: 120px;
  max-width: 100%;
  margin: 0 4px;
  padding: 2px 10px;
  font: inherit;
  font-family: var(--font-display);
  background: transparent;
  border: none;
  border-bottom: 2px dashed var(--border-strong);
  color: var(--accent-deep);
  font-weight: 600;
  text-align: center;
  outline: none;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
  vertical-align: baseline;
}
.gap-input::placeholder { color: var(--text-subtle); font-weight: 400; opacity: 0.7; }
.gap-input:focus {
  border-bottom-color: var(--navy-900);
  background: rgba(245,138,46,0.06);
}
.gap-input.is-correct {
  color: #1F8A5B;
  border-bottom: 2px solid #1F8A5B;
  background: rgba(31, 138, 91, 0.08);
}
.gap-input.is-wrong {
  color: #C13030;
  border-bottom: 2px solid #C13030;
  background: rgba(193, 48, 48, 0.06);
  animation: shake 0.35s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.ex-card__bottom {
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.ex-card__bottom .left {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.progress-dots {
  display: flex; gap: 4px;
}
.progress-dots span {
  width: 18px; height: 4px; border-radius: 2px;
  background: var(--border-strong);
  transition: background 0.2s;
}
.progress-dots span.is-done { background: var(--navy-900); }
.progress-dots span.is-current { background: var(--accent); }

.ex-card__feedback {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  min-height: 18px;
}
.ex-card__feedback.is-correct { color: #1F8A5B; }
.ex-card__feedback.is-wrong { color: #C13030; }

/* dropdown variant */
.gap-select {
  display: inline-block;
  padding: 2px 12px;
  font: inherit;
  font-family: var(--font-display);
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--navy-900);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  vertical-align: baseline;
}
.gap-select .caret {
  display: inline-block;
  margin-left: 6px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ─── Trust strip ─────────────────────────── */

.trust {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.trust__row strong {
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 2px;
}
.trust__row .stat { display: block; }

/* ─── How it works ─────────────────────────── */

.how {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: end; margin-bottom: 80px;
}
.how__head h2 { max-width: 540px; }
.how__head p { max-width: 480px; }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pillar {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

.pillar__num {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text-subtle);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.pillar__visual {
  height: 180px;
  margin-bottom: 28px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.pillar h3 {
  margin-bottom: 10px;
  font-size: 24px;
}
.pillar p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
}

/* visuals — pure CSS/SVG illustrations */
.viz-steps {
  display: flex; flex-direction: column;
  justify-content: center; height: 100%;
  padding: 16px 18px; gap: 9px;
}
.viz-steps .row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted);
}
.viz-steps .row .bar {
  height: 7px; border-radius: 3px;
  background: var(--border-strong);
  flex: 1;
}
.viz-steps .row.done .bar { background: var(--navy-900); }
.viz-steps .row.now .bar {
  background: linear-gradient(to right, var(--accent) 60%, var(--border-strong) 60%);
}
.viz-steps .row .check {
  width: 14px; height: 14px;
  display: inline-grid; place-items: center;
  border-radius: 50%; background: var(--navy-900); color: white;
  font-size: 9px;
}
.viz-steps .row.todo .check { background: transparent; border: 1.5px solid var(--border-strong); }
.viz-steps .row.now .check { background: var(--accent); color: var(--navy-900); }

.viz-teacher {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--sky-100), var(--bg-soft));
}
.viz-teacher .bubble {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 13px; color: var(--navy-900);
  align-self: end;
  max-width: 80%;
}
.viz-teacher .meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
}
.viz-teacher .meta .avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-400), var(--sky-600));
  display: inline-grid; place-items: center;
  color: #fff; font-size: 10px; font-family: var(--font-display); font-weight: 600;
}

.viz-practice {
  position: relative;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, var(--orange-100) 0%, transparent 40%),
    var(--bg-soft);
  padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.viz-practice .gap {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--navy-900);
  font-weight: 500;
}
.viz-practice .gap .blank {
  display: inline-block;
  min-width: 60px;
  padding: 0 6px;
  margin: 0 2px;
  border-bottom: 1.5px dashed var(--border-strong);
  color: var(--accent-deep);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.viz-practice .ring {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0% 73%, var(--border) 73% 100%);
  display: grid; place-items: center;
  align-self: flex-end;
}
.viz-practice .ring::after {
  content: "73%";
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-elev);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--navy-900); font-weight: 600;
}

/* viz-stats — progress bar + meta below exercise sentence */
.viz-stats {
  margin-top: 12px;
}
.viz-stats__bar {
  height: 8px; border-radius: 4px;
  background: var(--border-strong);
  overflow: hidden;
}
.viz-stats__fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(to right, var(--accent), var(--accent-deep));
}
.viz-stats__meta {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-muted); margin-top: 6px;
}

/* viz-path — learning path steps (sam → AI → nauczyciel) */
.viz-path {
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 16px 14px; gap: 10px;
  background: linear-gradient(135deg, var(--sky-100), var(--bg-soft));
}
.viz-path__steps {
  display: flex; align-items: center; gap: 6px;
}
.viz-path__step {
  padding: 5px 12px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 13px;
  font-weight: 600; color: var(--text-muted);
  background: var(--bg-elev); border: 1px solid var(--border);
}
.viz-path__step.active {
  background: var(--navy-900); color: #fff;
  border-color: var(--navy-900);
}
.viz-path__arrow {
  font-size: 13px; color: var(--text-subtle);
}
.viz-path__labels {
  display: flex; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-subtle); text-align: center;
}
.viz-path__labels span { flex: 1; }

/* ─── Exercise showcase ─────────────────────────── */

.showcase__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  margin-bottom: 64px; align-items: end;
}
.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ─── Differentiators ─────────────────────────── */

.diff {
  border-top: 1px solid var(--border);
}
.diff__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.diff__item {
  padding: 8px 32px 8px 0;
  border-right: 1px solid var(--border);
}
.diff__item:last-child { border-right: none; }
.diff__num {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.diff__item h3 {
  font-size: 26px;
  margin-bottom: 14px;
  letter-spacing: -0.022em;
  font-weight: 500;
}
.diff__item p { color: var(--text-muted); font-size: 16px; line-height: 1.55; }

/* ─── Teacher block ─────────────────────────── */

.teacher {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.teacher * { color: inherit; }
.teacher h2 { color: #fff; }
.teacher .lead { color: rgba(255,255,255,0.7); }

.teacher__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.teacher__quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 500;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.teacher__quote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 64px; line-height: 0.5;
  color: var(--accent);
  margin-bottom: 16px;
}
.teacher__attribution {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
}
.teacher__attribution .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-400), var(--sky-600));
  display: inline-grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-weight: 600;
  font-size: 18px;
}
.teacher__attribution strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 2px;
}

.teacher__panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.teacher__panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.teacher__student-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) minmax(0, 1.6fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}
.teacher__student-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.teacher__student-row .name {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  min-width: 0;
}
.teacher__student-row .name > div {
  min-width: 0;
}
.teacher__student-row .name .student-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.teacher__student-row .av-sm {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 600; color: #fff;
  font-family: var(--font-display);
}
.teacher__student-row .progress {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.6); letter-spacing: 0.04em;
}
.teacher__student-row .progress .bar {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.teacher__student-row .progress .bar::after {
  content: ""; position: absolute; inset: 0; right: var(--rem, 30%);
  background: var(--accent);
  border-radius: 2px;
}
.teacher__student-row .next {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ─── Live lesson section ─────────────────────────── */

.live {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.live__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  margin-bottom: 64px; align-items: end;
}
.live__head h2 .live-dot {
  display: inline-block; vertical-align: middle;
  width: 14px; height: 14px; border-radius: 50%;
  background: #E53935;
  margin-right: 14px;
  position: relative; top: -6px;
  box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(229, 57, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.live__stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
}

/* connector arrow between panes */
.live__connector {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: var(--shadow-soft);
  text-align: center;
  line-height: 1.2;
}
.live__connector .arrow-icon {
  display: block;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 2px;
}

/* student pane */
.live__pane {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.live__pane-head {
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.live__pane-head .who {
  display: flex; align-items: center; gap: 8px;
  color: var(--navy-900);
}
.live__pane-head .who .av-tiny {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 9px; color: #fff;
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.live__pane-head .status {
  display: inline-flex; align-items: center; gap: 6px;
}
.live__pane-head .status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #1F8A5B;
  animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live__pane-body { padding: 28px 24px 24px; min-height: 280px; }

.live__pane--student .question {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.live__pane--student .sentence {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.35;
  color: var(--navy-900);
  letter-spacing: -0.015em;
  font-weight: 500;
  margin-bottom: 12px;
}
.live__pane--student .sentence .blank-typed {
  display: inline-block;
  min-width: 130px;
  padding: 0 8px;
  margin: 0 2px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent-deep);
  font-weight: 600;
  text-align: center;
  position: relative;
}
.live__pane--student .sentence .blank-typed.wrong {
  border-bottom-color: #C13030;
  color: #C13030;
  background: rgba(193, 48, 48, 0.06);
}
.live__pane--student .sentence .blank-typed::after {
  content: "|";
  position: absolute;
  right: 4px;
  color: var(--text);
  font-weight: 300;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret {
  50% { opacity: 0; }
}
.live__pane--student .pl-translation {
  font-size: 13px; color: var(--text-subtle);
  font-style: italic; margin-bottom: 28px;
}
.live__pane--student .timeline {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.live__pane--student .timeline .ev {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: slide-in 0.4s forwards;
}
.live__pane--student .timeline .ev .t {
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  width: 38px;
}
.live__pane--student .timeline .ev .chip {
  padding: 2px 8px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px;
  font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live__pane--student .timeline .ev .chip.ok { background: #E1F2E9; color: #1F8A5B; }
.live__pane--student .timeline .ev .chip.no { background: #FBE3E3; color: #C13030; }
.live__pane--student .timeline .ev.e1 { animation-delay: 0.2s; }
.live__pane--student .timeline .ev.e2 { animation-delay: 1.2s; }
.live__pane--student .timeline .ev.e3 { animation-delay: 2.4s; }

@keyframes slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* teacher pane (reactions) */
.live__pane--teacher { background: var(--navy-900); border-color: var(--navy-900); }
.live__pane--teacher * { color: rgba(255,255,255,0.85); }
.live__pane--teacher .live__pane-head {
  border-bottom-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}
.live__pane--teacher .live__pane-head .who { color: #fff; }

.live__reactions {
  display: flex; flex-direction: column;
  gap: 10px;
}
.live__reaction {
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  opacity: 0;
  animation: react-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}
.live__reaction.r1 { animation-delay: 0.6s; }
.live__reaction.r2 { animation-delay: 1.8s; }
.live__reaction.r3 { animation-delay: 3.0s; }
.live__reaction.r4 { animation-delay: 4.0s; }

@keyframes react-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.live__reaction-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-grid; place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  font-family: var(--font-mono);
}
.live__reaction-icon.alert {
  background: rgba(245, 138, 46, 0.18); color: var(--accent);
}
.live__reaction-icon.flag {
  background: rgba(193, 48, 48, 0.18); color: #FF6B6B;
}
.live__reaction-icon.hint {
  background: rgba(46, 120, 216, 0.18); color: var(--sky-400);
}
.live__reaction-icon.suggest {
  background: rgba(31, 138, 91, 0.18); color: #5BCC93;
}
.live__reaction-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.live__reaction-text {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: #fff;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.live__reaction-text em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}
.live__reaction-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.live__suggest-actions {
  display: flex; gap: 6px;
  margin-top: 10px;
  grid-column: 2 / span 2;
}
.live__suggest-actions .chip {
  padding: 4px 10px;
  background: var(--accent);
  color: var(--navy-900);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}
.live__suggest-actions .chip.ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
}

.live__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}
.live__feature {
  padding-right: 16px;
}
.live__feature__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: inline-grid; place-items: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.live__feature h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-900);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.live__feature p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .live__stage { grid-template-columns: 1fr; }
  .live__connector { display: none; }
  .live__features { grid-template-columns: 1fr 1fr; }
  .live__head { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Pricing strip ─────────────────────────── */

.pricing__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  margin-bottom: 56px; align-items: end;
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tier {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.tier:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tier--featured {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.tier--featured * { color: inherit; }
.tier--featured h3 { color: #fff; }
.tier--featured .tier__price { color: #fff; }
.tier--featured .tier__price-period { color: rgba(255,255,255,0.6); }
.tier--featured .tier__desc { color: rgba(255,255,255,0.7); }
.tier--featured .tier__feature { color: rgba(255,255,255,0.85); }
.tier--featured .tier__feature .ch { color: var(--accent); }

.tier__badge {
  position: absolute; top: -10px; right: 28px;
  background: var(--accent);
  color: var(--navy-900);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em;
  padding: 5px 10px; border-radius: var(--r-full);
  font-weight: 600; text-transform: uppercase;
}
.tier__name {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 18px;
}
.tier--featured .tier__name { color: rgba(255,255,255,0.5); }
.tier__price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--navy-900);
  display: flex; align-items: baseline; gap: 6px;
}
.tier__price-period {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}
.tier__desc { margin-top: 6px; font-size: 14px; color: var(--text-muted); }
.tier__features {
  list-style: none; padding: 24px 0 28px; margin: 24px 0 0;
  border-top: 1px solid var(--border);
  flex: 1;
}
.tier--featured .tier__features { border-top-color: rgba(255,255,255,0.1); }
.tier__feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; line-height: 1.45;
  padding: 7px 0;
  color: var(--text);
}
.tier__feature .ch {
  color: var(--accent-deep);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── For teachers banner ─────────────────────────── */

.teachers-cta {
  background: var(--sky-100);
  border-top: 1px solid var(--border);
}
.teachers-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 64px 48px;
  background: linear-gradient(120deg, var(--sky-100), #FFFFFF);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.teachers-cta__inner::before {
  content: "";
  position: absolute; right: -120px; top: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 120, 216, 0.18), transparent 70%);
}
.teachers-cta h2 {
  font-size: clamp(32px, 3vw, 44px);
  max-width: 540px;
  margin-bottom: 12px;
}
.teachers-cta p {
  max-width: 480px;
  color: var(--text-muted);
  font-size: 17px;
}

/* ─── Footer ─────────────────────────── */

.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.footer__logo em { color: var(--accent); font-style: normal; }
.footer__about { font-size: 14px; max-width: 320px; line-height: 1.55; }
.footer__col h4 {
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  font-size: 14.5px;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

/* ─── Misc ─────────────────────────── */

.kbd {
  display: inline-block;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-elev);
  color: var(--text-muted);
}

.divider-mark {
  width: 32px; height: 2px;
  background: var(--accent);
  margin-bottom: 16px;
}

/* ─── Layout variant: stacked (tweak) ─────────────────────────── */

.layout-stack .hero__grid {
  grid-template-columns: 1fr;
  gap: 80px;
}
.layout-stack .hero__copy { text-align: center; margin: 0 auto; max-width: 800px; }
.layout-stack .hero__sub { margin-left: auto; margin-right: auto; }
.layout-stack .hero__ctas { justify-content: center; }
.layout-stack .hero__meta { justify-content: center; }
.layout-stack .ex-card { max-width: 620px; margin: 0 auto; }

/* ─── Responsive ─────────────────────────── */

@media (max-width: 1024px) {
  .hero__grid, .how__head, .showcase__head, .pricing__head, .teacher__grid {
    grid-template-columns: 1fr; gap: 48px;
  }
  .pillars, .diff__list, .pricing__grid, .showcase__grid { grid-template-columns: 1fr; }
  .diff__item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 32px; margin-bottom: 32px; }
  .diff__item:last-child { border-bottom: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .header__nav { display: none; }
  .section { padding: 80px 0; }
}

/* Mobile — 390px reference width (iPhone 14) */
@media (max-width: 640px) {
  html, body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }

  h1 { font-size: 44px; letter-spacing: -0.025em; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
  .lead { font-size: 17px; }

  .header__row { height: 60px; }
  .header__logo { font-size: 18px; }
  .header__logo img { height: 26px; width: 26px; }
  .header__cta .btn--ghost { display: none; }

  .hero { padding-top: 32px; padding-bottom: 56px; }
  .hero__sub { font-size: 17px; margin-top: 18px; }
  .hero__ctas { margin-top: 28px; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__meta { flex-direction: row; font-size: 12.5px; gap: 12px; }

  /* hero exercise card — compact */
  .ex-card__body { padding: 22px 18px 18px; }
  .ex-card__sentence { font-size: 21px; line-height: 1.3; }
  .ex-card__sentence .pl-hint { font-size: 13px; margin-top: 6px; }
  .gap-input { min-width: 100px; padding: 2px 8px; }
  .ex-card__top, .ex-card__bottom { padding: 12px 16px; }
  .ex-card__bottom { flex-direction: column; gap: 12px; align-items: stretch; }
  .ex-card__bottom .left { flex-direction: row; gap: 10px; flex-wrap: wrap; }
  .ex-card__bottom .btn--sm { width: 100%; justify-content: center; }
  .ex-card__feedback { font-size: 11px; }

  /* trust strip */
  .trust { padding: 24px 0; }
  .trust__row { flex-wrap: wrap; gap: 18px 24px; font-size: 12px; }
  .trust__row .stat { flex: 1 1 calc(50% - 12px); min-width: 0; }
  .trust__row strong { font-size: 22px; }

  /* how it works */
  .how__head { margin-bottom: 40px; }
  .pillars { gap: 16px; }
  .pillar { padding: 24px 22px; }
  .pillar__visual { height: 150px; margin-bottom: 22px; }

  /* live lesson */
  .live__head { margin-bottom: 32px; }
  .live__head h2 .live-dot { width: 10px; height: 10px; margin-right: 10px; top: -4px; }
  .live__stage { gap: 16px; }
  .live__pane-body { padding: 22px 18px 18px; min-height: 0; }
  .live__pane--student .sentence { font-size: 20px; }
  .live__reaction { padding: 12px 14px; gap: 10px; }
  .live__reaction-text { font-size: 13.5px; }
  .live__features {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 36px;
  }

  /* showcase */
  .showcase__head { margin-bottom: 36px; }
  .showcase__grid { gap: 16px; }

  /* diff */
  .diff__item h3 { font-size: 22px; }
  .diff__item p { font-size: 15px; }

  /* teacher block */
  .teacher__quote { font-size: 26px; margin-bottom: 24px; }
  .teacher__panel { padding: 20px 16px; }
  .teacher__student-row { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .teacher__student-row .progress { width: 100%; }
  .teacher__student-row .next { font-size: 11px; }

  /* pricing */
  .pricing__head { margin-bottom: 32px; }
  .pricing__grid { gap: 14px; }
  .tier { padding: 26px 22px; }
  .tier__price { font-size: 38px; }
  .tier__features { padding: 20px 0 24px; margin-top: 20px; }

  /* teachers banner */
  .teachers-cta__inner {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 24px;
  }
  .teachers-cta__inner .btn--lg { width: 100%; justify-content: center; }

  /* footer */
  .footer { padding: 56px 0 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
  .footer__bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
