/* ── Listening index ─────────────────────────────────────────────────────── */

.ls-page { max-width: 900px; }

.ls-section { margin-bottom: var(--sp-8); }

.ls-section-heading {
  font-size: var(--fs-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-5);
}

/* Accent cards grid */
.ls-accent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .ls-accent-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .ls-accent-grid { grid-template-columns: 1fr; }
}

.ls-accent-card {
  background: #ffffff;
  border: 0.5px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.ls-accent-card:hover {
  border-color: rgba(0,0,0,0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ls-accent-card--unavailable {
  cursor: default;
}

.ls-accent-flag {
  font-size: 32px;
  line-height: 1;
}

.ls-accent-name {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

/* Comprehension placeholder cards */
.ls-coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

@media (max-width: 640px) {
  .ls-coming-grid { grid-template-columns: 1fr; }
}

.ls-coming-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.ls-coming-title {
  font-size: var(--fs-4);
  font-weight: 600;
  color: var(--text-primary);
}

.ls-coming-badge {
  font-size: var(--fs-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

/* ── Listening lesson ────────────────────────────────────────────────────── */

.ls-lesson-wrapper { max-width: 600px; margin: 0 auto; }

.ls-breadcrumb {
  font-size: var(--fs-3);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}

.ls-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.ls-breadcrumb a:hover { color: var(--text-secondary); }

/* Progress dots */
.ls-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ls-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
}

.ls-dot--on { background: #111; }

/* Step 1 page header */
.ls-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 1rem 0 0.25rem;
  line-height: 1.2;
}

.ls-page-subtitle {
  font-size: var(--fs-4);
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

/* Step nav row (steps 2-4) */
.ls-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.ls-back-link {
  font-size: var(--fs-3);
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  font-family: var(--font-body);
  transition: color 0.15s;
}

.ls-back-link:hover { color: var(--text-primary); }

.ls-step-heading {
  font-size: var(--fs-6);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 var(--sp-2);
}

.ls-step-desc {
  font-size: var(--fs-4);
  color: var(--text-secondary);
  margin: 0 0 var(--sp-5);
  line-height: 1.6;
}

/* Dark button */
.ls-btn-dark {
  background: #111;
  color: #fff;
  border-color: #111;
}

.ls-btn-dark:hover {
  background: #222;
  border-color: #222;
  color: #fff;
}

.ls-btn-dark:disabled {
  background: #555;
  border-color: #555;
  cursor: not-allowed;
}

/* Step footer */
.ls-step-footer {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--card-border);
  flex-wrap: wrap;
}

/* ── Step 1: Feature cards ───────────────────────────────────────────────── */

.ls-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ls-fc {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
}

.ls-fc-title {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  margin-bottom: 1rem;
}

.ls-audio-rows {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.ls-audio-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ls-row-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.35);
}

.ls-row-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.ls-audio-btn {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.2);
  color: #111111;
  font-weight: 500;
  font-size: 13px;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  line-height: 1.4;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
  word-break: break-word;
}

.ls-audio-btn:hover:not(.ls-playing) {
  background: #f7f5f1;
}

.ls-audio-btn.ls-playing {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

/* Premium gate */
.ls-gate-card {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
}

/* ── Step 2: Isolation drill ─────────────────────────────────────────────── */

.ls-iso-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ls-iso-item {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.ls-iso-word {
  font-size: 28px;
  font-weight: 500;
  color: #111;
  text-align: center;
}

.ls-iso-play-btn { align-self: center; }

.ls-iso-input {
  width: 100%;
  background: #f7f5f1;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.65em 1em;
  font-size: 14px;
  font-family: var(--font-body);
  color: #111;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.ls-iso-input:focus { border-color: rgba(0, 0, 0, 0.35); }

.ls-iso-reveal-row { align-self: flex-start; }

.ls-iso-note {
  background: #f7f5f1;
  border-left: 3px solid rgba(0, 0, 0, 0.2);
  border-radius: 0 6px 6px 0;
  padding: 0.65em 1em;
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  align-self: stretch;
}

/* ── Step 3: Script player ───────────────────────────────────────────────── */

.ls-script-player {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ls-speed-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ls-speed-label {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 500;
  margin-right: 0.25rem;
}

.ls-speed-btn {
  background: #f7f5f1;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 0.3em 0.9em;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  color: #555;
  transition: background 0.12s, color 0.12s;
}

.ls-speed-btn:hover:not(.active) { background: #eeece7; }

.ls-speed-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.ls-play-btn { align-self: flex-start; }

.ls-transcript-card {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-left: 3px solid rgba(0, 0, 0, 0.3);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-top: 0.5rem;
}

/* ── Step 4: Quiz ────────────────────────────────────────────────────────── */

.ls-quiz-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ls-q-card {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.ls-q-text {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  padding: 14px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  line-height: 1.5;
}

.ls-q-options {
  display: flex;
  flex-direction: column;
}

.ls-q-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f7f5f1;
  cursor: pointer;
  border: none;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 14px;
  color: #333;
  line-height: 1.45;
  transition: background 0.1s;
}

.ls-q-option:first-child { border-top: none; }

.ls-q-option:hover:not(:disabled):not(.ls-q-option--selected):not(.ls-q-option--correct):not(.ls-q-option--wrong) {
  background: #f0ede8;
}

.ls-q-option--selected { background: #e8e6e1; }

.ls-q-option--correct {
  background: #f0faf3;
  color: #2d7a4f;
}

.ls-q-option--wrong {
  background: #fff5f5;
  color: #c0392b;
}

.ls-q-option:disabled { cursor: default; }

.ls-q-badge {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #555;
}

.ls-q-option--correct .ls-q-badge {
  background: rgba(45, 122, 79, 0.15);
  color: #2d7a4f;
}

.ls-q-option--wrong .ls-q-badge {
  background: rgba(192, 57, 43, 0.15);
  color: #c0392b;
}

.ls-q-confirm { padding: 0.75rem 1rem; }

.ls-q-feedback {
  margin: 0 1rem 1rem;
  padding: 0.65em 1em;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  line-height: 1.55;
}

.ls-q-feedback--correct {
  background: #f0faf3;
  border-left: 3px solid #2d7a4f;
  color: #2d7a4f;
}

.ls-q-feedback--wrong {
  background: #fff5f5;
  border-left: 3px solid #c0392b;
  color: #c0392b;
}

/* Screen animation */
@keyframes ls-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

#ls-screen { animation: ls-in 0.2s ease both; }
