/* =========================================================
   Fika med Hannah — Swedish Level Test (adaptive): styles
   ---------------------------------------------------------
   Loaded after styles.css. Reuses the site's design tokens and
   component classes (.btn, .eyebrow, .divider, dashed-border card
   language) so this page reads as part of the same scrapbook/planner
   aesthetic as the rest of the site, not a bolted-on app screen.
   ========================================================= */

.eyebrow.center { justify-content: center; }

/* ---------- Card shell (shared by intro / question / results) ---------- */
.lt-card {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  background: var(--paper);
  border: 1.5px dashed var(--rose-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px 36px;
}

/* washi-tape "Gratis test" sticker, echoes the planner's price-sticker */
.lt-sticker {
  position: absolute;
  top: -18px; left: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px; height: 66px;
  padding-top: 2px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  background: var(--rose-dark);
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .6);
  box-shadow: var(--shadow-soft);
  transform: rotate(-9deg);
}

/* ---------- Intro screen ---------- */
.lt-intro { text-align: center; }
.lt-intro h1 { margin-bottom: 10px; }
.lt-intro-facts {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin: 26px 0;
  font-size: 0.9rem;
  color: var(--ink);
}
.lt-intro-facts span { display: block; color: var(--rose); font-family: var(--font-script); font-size: 1.3rem; }

/* ---------- Buttons ---------- */
.lt-btn-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.lt-disclaimer { font-size: 0.78rem; opacity: 0.6; text-align: center; margin: 18px 0 0; }

/* ---------- Progress ---------- */
.lt-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--blush);
  border: 1.5px dashed var(--rose-light);
  overflow: hidden;
  margin-bottom: 20px;
}
.lt-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose) 0%, var(--rose-dark) 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ---------- Question screen ---------- */
.lt-passage, .lt-audio {
  background: var(--cream);
  border: 1.5px dashed var(--rose-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
  font-size: 0.96rem;
}
.lt-audio { display: flex; align-items: center; gap: 14px; }
.lt-audio button {
  background: var(--rose-dark);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px; height: 42px;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}
.lt-audio button:hover { background: var(--rose); transform: scale(1.06); }
.lt-question-prompt { margin-bottom: 20px; }

.lt-options { display: grid; gap: 12px; margin-bottom: 10px; }
.lt-option {
  text-align: left;
  width: 100%;
  padding: 14px 18px;
  border: 1.5px dashed var(--rose-light);
  background: var(--paper);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.lt-option:hover { border-color: var(--rose); transform: translateY(-2px); }
.lt-option[aria-pressed="true"] {
  border: 2px solid var(--rose-dark);
  background: var(--lavender);
  font-weight: 600;
  transform: none;
}

/* ---------- Results screen ---------- */
.lt-results-headline { text-align: center; margin-bottom: 4px; }
.lt-results-sub { text-align: center; opacity: 0.8; margin-bottom: 30px; }

.lt-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.lt-skill-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px 14px;
  border: 1.5px dashed var(--rose-light);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-softer);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lt-skill-grid li:nth-child(odd) .lt-skill-row { transform: rotate(-1deg); }
.lt-skill-grid li:nth-child(even) .lt-skill-row { transform: rotate(1deg); }
.lt-skill-row:hover { transform: translateY(-4px) rotate(0deg); box-shadow: var(--shadow-soft); }

.lt-skill-icon {
  width: 30px; height: 30px;
  padding: 9px;
  color: #fff;
  background: var(--rose-dark);
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.55);
}
.lt-skill-info strong { display: block; font-family: var(--font-heading); color: var(--rose-dark); font-size: 0.95rem; }
.lt-skill-bar-track {
  width: 100%; height: 6px; border-radius: 999px; background: var(--blush); margin-top: 6px; overflow: hidden;
}
.lt-skill-bar-fill { height: 100%; background: var(--rose-dark); border-radius: 999px; }
.lt-skill-level { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--rose-dark); }

.lt-recommendation {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--sage);
  border: 1.5px dashed var(--rose-light);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 26px;
}
.lt-recommendation .lt-skill-icon { background: var(--sage-ink); flex-shrink: 0; }
.lt-recommendation h3 { color: var(--sage-ink); margin-bottom: 4px; }
.lt-recommendation a { color: var(--rose-dark); font-weight: 600; text-decoration: underline; }

@media (max-width: 480px) {
  .lt-card { padding: 32px 22px; }
  .lt-skill-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ---------- Review (post-test question-by-question recap) ---------- */
.lt-review {
  margin-bottom: 26px;
  border: 1.5px dashed var(--rose-light);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 4px 22px;
}
.lt-review summary {
  cursor: pointer;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--rose-dark);
  list-style: none;
}
.lt-review summary::-webkit-details-marker { display: none; }
.lt-review summary::after { content: '\25be'; float: right; }
.lt-review[open] summary::after { content: '\25b4'; }
.lt-review-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lt-review-item { border-top: 1.5px dashed var(--rose-light); padding-top: 16px; }
.lt-review-item:first-child { border-top: none; padding-top: 0; }
.lt-review-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--rose);
  opacity: 0.85;
  margin: 0 0 6px;
}
.lt-review-item.is-incorrect .lt-review-meta { color: var(--rose-dark); font-weight: 600; opacity: 1; }
.lt-review-prompt { font-weight: 600; margin: 0 0 8px; }
.lt-review-context {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  margin: 0 0 10px;
}
.lt-review-options { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.lt-review-options li {
  padding: 8px 12px;
  border: 1.5px dashed var(--rose-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.lt-review-options li.is-correct-answer { border-color: var(--sage-ink); background: var(--sage); font-weight: 600; }
.lt-review-options li.is-your-answer { border-color: var(--rose-dark); background: var(--blush); }
.lt-review-explanation { font-size: 0.86rem; opacity: 0.85; margin: 0; }

/* ---------- Bonus teaser (shown inline on the results screen) ---------- */
.lt-bonus-teaser {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--blush);
  border: 1.5px dashed var(--rose-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 26px;
  font-size: 0.95rem;
}
.lt-bonus-teaser span { font-size: 1.6rem; flex-shrink: 0; }
.lt-bonus-teaser p { margin: 0; }

/* ---------- Email capture screen ---------- */
.lt-email { text-align: center; }
.lt-email h2 { margin-bottom: 10px; }
.lt-email-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
  margin: 22px auto 6px;
}
.lt-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 0.86rem;
  color: var(--ink);
  opacity: 0.85;
}
.lt-checkbox input { margin-top: 3px; flex-shrink: 0; }
.lt-email-message { min-height: 1.4em; color: var(--sage-ink); font-weight: 600; }

/* ---------- Continue-learning screen ---------- */
.lt-continue { text-align: center; }
.lt-continue h2 { margin-bottom: 10px; }
.lt-continue-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

