/* Level and goal wizard. One source for the website and the extension page (copied by tools/build-site-assets.mjs). */
.start-page { padding: 40px 0 72px; min-height: 64vh; }
.wizard { max-width: 720px; margin-inline: auto; }
.wizard-top { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; min-height: 36px; }
.wizard-back { font: inherit; font-size: .92rem; color: var(--text-soft); background: none; border: 0; cursor: pointer; padding: 4px 0; }
.wizard-back:hover { color: var(--text); }
.wizard-progress { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.wizard-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.step h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 22px; outline: none; }
.choice-grid { display: grid; gap: 14px; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }
.choice {
  display: grid; gap: 4px; align-content: start; text-align: start; font: inherit; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
button.choice:hover { border-color: var(--text-soft); }
button.choice:focus-visible, .level-pick button:focus-visible, .link-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice strong { font-size: 1.15rem; }
.choice span { color: var(--text-soft); font-size: .95rem; line-height: 1.7; }
.choice-main { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.choice-static { cursor: default; }
.choice-list { display: grid; gap: 8px; }
.choice-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.choice-row[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg-card)); }
.level-chip { font-size: .85rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg-raised); color: var(--text) !important; }
.goal-detail { margin-top: 22px; display: grid; gap: 14px; }
.goal-exams { margin: 0; color: var(--text-soft); }
.goal-detail .btn { justify-self: start; }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field-row label { display: grid; gap: 6px; font-size: .92rem; color: var(--text-soft); }
.field-row input, .field-row select {
  font: inherit; color: var(--text); background: var(--bg-raised); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%;
}
.field-row input:focus-visible, .field-row select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.level-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.level-pick button {
  font: inherit; font-size: .92rem; color: var(--text); background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 14px; cursor: pointer;
}
.level-pick button:hover { border-color: var(--accent); }
.step[data-step="test"] { text-align: center; padding-top: 18px; }
.test-count { color: var(--text-soft); margin: 0; }
.test-word { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 700; margin: 24px 0 32px; direction: ltr; word-break: break-word; }
.test-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.test-buttons .btn { min-width: 170px; }
.step[data-step="test"] .fineprint { margin-top: 28px; }
.link-button { font: inherit; font-size: .92rem; color: var(--text-soft); background: none; border: 0; text-decoration: underline; cursor: pointer; margin-top: 8px; }
.step[data-step="result"] { text-align: center; padding-top: 12px; }
.result-kicker { color: var(--text-soft); margin: 0; outline: none; }
.result-level { font-size: clamp(4rem, 14vw, 6.5rem); font-weight: 900; line-height: 1.1; margin: 4px 0; color: var(--accent); }
.result-vocab { font-size: 1.15rem; margin: 0 0 18px; }
.result-plan { text-align: start; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.result-plan p { margin: 4px 0 0; color: var(--text-soft); }
.result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 640px) {
  .choice-grid.two, .field-row { grid-template-columns: 1fr; }
  .test-buttons .btn { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .wizard-progress span, .choice { transition: none; } }
/* Level codes (B1, A2) in a Latin face: the Persian font draws their digits in Persian shapes. */
.level-chip, .result-level, .wizard .level-pick button[data-level]:not([data-level="A0"]) { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-feature-settings: normal; }

.notice { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent, #f2b544) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent, #f2b544) 35%, transparent); color: var(--text); font-size: .95rem; }
.step[data-step="native"] .btn { margin-top: 16px; }
.result-where { text-align: start; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.result-where h2 { font-size: 1.1rem; margin: 0 0 12px; }
.platform-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.platform-list li { display: grid; gap: 2px; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; }
.platform-list li > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.platform-list small { color: var(--text-soft); line-height: 1.7; }
.tag-status, .tag-cost { font-size: .78rem; padding: 0 9px; border-radius: 999px; line-height: 1.7; }
.tag-checked { background: color-mix(in srgb, var(--teal, #45d3c2) 18%, transparent); color: var(--teal, #45d3c2); }
.tag-experimental { background: var(--bg-raised); color: var(--text-soft); }
.tag-cost { color: var(--text-soft); border: 1px solid var(--line); }
.result-where .btn { margin-top: 4px; }
