/* ==========================================================================
   Spaans Leertool — Design tokens en basis
   ========================================================================== */

:root {
  /* Kleurenpalet: warme aardetinten met rood-oranje accent */
  --bg: #f6f1e8;
  --bg-card: #fffbf4;
  --bg-elevated: #ffffff;
  --ink: #1a1410;
  --ink-soft: #4a3f35;
  --ink-mute: #8a7f73;
  --line: #e3d9c9;
  --line-soft: #ede4d4;

  --accent: #c83e2a;
  --accent-soft: #e87556;
  --accent-dark: #992818;
  --accent-tint: #fde8e2;

  --ochre: #d89f3e;
  --olive: #6b7a3e;
  --teal: #2a6973;

  --success: #3e7a42;
  --success-tint: #e4efe0;
  --error: #c83e2a;
  --error-tint: #fde8e2;

  /* Typografie */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Ritme */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(26, 20, 16, 0.04), 0 2px 4px rgba(26, 20, 16, 0.03);
  --shadow-md: 0 4px 12px rgba(26, 20, 16, 0.06), 0 8px 24px rgba(26, 20, 16, 0.04);
  --shadow-lg: 0 12px 32px rgba(26, 20, 16, 0.1), 0 24px 48px rgba(26, 20, 16, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }

.hidden { display: none !important; }

/* ==========================================================================
   Landing page
   ========================================================================== */

body.landing {
  overflow-x: hidden;
  position: relative;
}

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.blob-1 { width: 500px; height: 500px; background: var(--accent-soft); top: -100px; right: -150px; }
.blob-2 { width: 400px; height: 400px; background: var(--ochre); bottom: -50px; left: -100px; }
.blob-3 { width: 300px; height: 300px; background: var(--teal); top: 40%; left: 30%; opacity: 0.2; }

.landing-main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.brand-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.hero {
  margin-bottom: 64px;
  max-width: 780px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-title .line {
  display: block;
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) { animation-delay: 0.25s; }
.hero-title .line:nth-child(3) { animation-delay: 0.4s; }

.hero-title .accent {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}

.auth-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 440px;
  box-shadow: var(--shadow-md);
  margin-bottom: 80px;
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s both;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-mute);
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form label span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.auth-form input {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-msg {
  font-size: 13px;
  color: var(--error);
  min-height: 18px;
}

.auth-msg.success { color: var(--success); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  color: var(--accent-tint);
  line-height: 1;
  margin-bottom: 12px;
}

.feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ==========================================================================
   Knoppen algemeen
   ========================================================================== */

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--ink);
}

.btn-secondary {
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--line);
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
}

/* ==========================================================================
   App: header en layout
   ========================================================================== */

body.app {
  background: var(--bg);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.app-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}

.user-streak {
  padding: 4px 10px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* ==========================================================================
   Screens
   ========================================================================== */

.screen {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.screen-sub {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 32px;
}

/* Tool selector */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.tool-card {
  text-align: left;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tool-card-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.tool-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.tool-card p {
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.tool-card-cta {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

/* Dashboard */
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 20px;
}

.lesson-list {
  display: grid;
  gap: 12px;
}

.lesson-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.lesson-row:hover:not(.locked) {
  border-color: var(--accent);
  transform: translateX(4px);
}

.lesson-row.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.lesson-row.completed {
  background: var(--success-tint);
  border-color: #bcd4b2;
}

.lesson-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--accent);
  min-width: 48px;
}

.lesson-row.completed .lesson-num {
  color: var(--success);
}

.lesson-info {
  flex: 1;
  min-width: 0;
}

.lesson-info h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 2px;
}

.lesson-info p {
  color: var(--ink-soft);
  font-size: 13px;
}

.lesson-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 12px;
}

.lesson-badge.done {
  background: var(--success-tint);
  color: var(--success);
}

/* Lesson screen */
.lesson-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.lesson-counter {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-mute);
  min-width: 50px;
  text-align: right;
}

.lesson-body {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  min-height: 320px;
  margin-bottom: 20px;
}

.lesson-foot {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Intro screen (uitleg pagina) */
.intro-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  flex: 1;
}

.intro-body {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 20px;
}

.intro-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--accent-dark);
}

.intro-body h3:first-child { margin-top: 0; }

.intro-body p {
  color: var(--ink-soft);
  margin-bottom: 12px;
  line-height: 1.65;
}

.intro-body .word-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.intro-body .word-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}

.intro-body .word-item .es {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
}

.intro-body .word-item .nl {
  color: var(--ink-soft);
  font-size: 14px;
}

.intro-body .word-item .play-btn {
  color: var(--ink-mute);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.intro-body .word-item .play-btn:hover {
  color: var(--accent);
  background: var(--accent-tint);
}

.intro-body .example-box {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
}

.intro-body .example-box .es {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}

.intro-body .example-box .nl {
  color: var(--ink-soft);
  font-size: 14px;
}

/* ==========================================================================
   Oefeningen (alle typen)
   ========================================================================== */

.exercise {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exercise-prompt {
  font-size: 14px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.exercise-sentence {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.exercise-sentence.italic { font-style: italic; }

.play-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: all 0.2s;
  margin-left: 8px;
}

.play-inline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.play-inline::before {
  content: '';
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  margin-left: 2px;
}

.exercise-input {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  transition: border-color 0.2s;
}

.exercise-input:focus {
  outline: none;
  border-color: var(--accent);
}

.exercise-input.correct {
  border-color: var(--success);
  background: var(--success-tint);
}

.exercise-input.wrong {
  border-color: var(--error);
  background: var(--error-tint);
}

/* Multiple choice knoppen */
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.choice {
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  text-align: center;
  transition: all 0.2s;
}

.choice:hover {
  border-color: var(--accent);
}

.choice.selected {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.choice.correct {
  border-color: var(--success);
  background: var(--success-tint);
}

.choice.wrong {
  border-color: var(--error);
  background: var(--error-tint);
}

/* Woordvolgorde puzzel */
.word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 80px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
}

.word-answer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 60px;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
}

.word-chip {
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.word-chip:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.word-chip.used {
  opacity: 0.3;
  pointer-events: none;
}

/* Spreek-oefening */
.speak-panel {
  text-align: center;
  padding: 32px 0;
}

.mic-button {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.2s;
  box-shadow: var(--shadow-md);
}

.mic-button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.mic-button.recording {
  background: var(--error);
  animation: pulse 1.2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 62, 42, 0.5); }
  50% { box-shadow: 0 0 0 20px rgba(200, 62, 42, 0); }
}

.mic-status {
  font-size: 14px;
  color: var(--ink-soft);
  min-height: 22px;
}

.mic-result {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  margin-top: 12px;
  color: var(--ink);
  min-height: 30px;
}

/* Feedback na antwoord */
.feedback {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  animation: fadeIn 0.3s;
}

.feedback.correct {
  background: var(--success-tint);
  border: 1px solid #bcd4b2;
  color: var(--success);
}

.feedback.wrong {
  background: var(--error-tint);
  border: 1px solid #f0c5bb;
  color: var(--accent-dark);
}

.feedback-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.feedback-detail {
  font-size: 14px;
  color: var(--ink-soft);
}

.feedback-correct {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
}

/* Resultaat scherm */
.result-card {
  max-width: 640px;
  margin: 40px auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

.result-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 72px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.result-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 8px;
}

.result-card p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.result-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius-md);
}

.result-stat {
  text-align: center;
}

.result-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--accent);
}

.result-stat-label {
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Review blok na les */
.review-block {
  margin-top: 24px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.review-block + .review-block {
  margin-top: 12px;
}

.review-block summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  user-select: none;
  padding: 4px 0;
}

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

.review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.review-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--line);
}

.review-item.ok {
  border-left-color: var(--success);
}

.review-item.bad {
  border-left-color: var(--error);
  background: var(--error-tint);
}

.review-type {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 70px;
  padding-top: 2px;
}

.review-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.review-prompt {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-given {
  font-size: 13px;
  color: var(--error);
}

.review-given span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

.review-correct {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-correct strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
}

.review-note {
  font-size: 12px;
  color: var(--ink-mute);
  font-style: italic;
  padding-top: 4px;
}

.review-play {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.review-play:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Shadowing tool specifiek
   ========================================================================== */

.shadow-dialog {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.shadow-line {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
}

.shadow-line.active {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.shadow-line.done {
  opacity: 0.6;
}

.shadow-speaker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--ink-mute);
  min-width: 60px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shadow-text {
  flex: 1;
}

.shadow-text .es {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}

.shadow-text .nl {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 4px;
}

.shadow-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Mobiel
   ========================================================================== */

@media (max-width: 640px) {
  .landing-main { padding: 24px 20px 60px; }
  .landing-header { margin-bottom: 40px; }
  .hero { margin-bottom: 40px; }
  .hero-title { font-size: clamp(40px, 10vw, 64px); }
  .auth-panel { padding: 24px; }

  .app-header { padding: 16px 20px; }
  .user-name { display: none; }
  .screen { padding: 28px 20px; }
  .screen-title { font-size: 26px; }
  .lesson-body { padding: 24px 20px; }
  .intro-body { padding: 24px 20px; }
  .exercise-sentence { font-size: 22px; }
  .result-card { padding: 40px 24px; margin: 20px auto; }
}
