/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --blue: #1A61EA;
  --blue-dark: #1450C8;
  --blue-light: #60A5FA;
  --blue-pale: #EEF4FF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.18s ease;
}

/* ── Reset & Base ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  background: none;
}

input,
textarea {
  font-family: var(--font);
}

/* ── Screen visibility ──────────────────────────────────────────── */
.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

/* ── Container ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ─────────────────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 26px;
  display: block;
}

.logo-fallback {
  display: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(26, 97, 234, .25);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 97, 234, .35);
}

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

.btn-primary:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary.btn-lg {
  font-size: 17px;
  padding: 16px 36px;
  border-radius: 10px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--gray-500);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.btn-ghost:hover {
  background: var(--gray-50);
  color: var(--gray-700);
  border-color: var(--gray-400);
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.btn-share:hover {
  background: #E0EAFF;
  transform: translateY(-1px);
}

.header-exit-btn {
  margin-left: auto;
  padding: 8px 14px;
  font-size: 14px;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  padding: 28px 32px;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════
   SCREEN 1 — LANDING
═══════════════════════════════════════════════════════════════ */

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, #F0F5FF 0%, #E8F0FE 50%, #F5F3FF 100%);
  padding: 80px 20px 64px;
  text-align: center;
}

.hero-inner {
  max-width: 620px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(26, 97, 234, .1);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(26, 97, 234, .2);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--blue);
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  padding: 8px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.meta-divider {
  width: 4px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 50%;
}

/* Level preview */
.levels-section {
  padding: 56px 20px 48px;
  background: var(--white);
}

.levels-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.levels-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.level-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  min-width: 120px;
  transition: all var(--transition);
  cursor: default;
}

.level-preview-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.5px;
}

.level-preview-icon {
  font-size: 28px;
  line-height: 1;
}

.level-preview-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

.level-preview-en {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

.level-preview-arrow {
  font-size: 18px;
  color: var(--gray-300);
  flex-shrink: 0;
}


/* CTA */
.cta-section {
  padding: 16px 20px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-note {
  font-size: 13px;
  color: var(--gray-400);
}

/* ═══════════════════════════════════════════════════════════════
   SCREEN 2 — QUESTION
═══════════════════════════════════════════════════════════════ */

#screen-question {
  background: var(--white);
}

/* Progress bar */
.progress-bar-wrapper {
  height: 4px;
  background: var(--gray-200);
  flex-shrink: 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
}

/* Question header row */
.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 0;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.progress-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
}

/* Question card */
.question-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 40px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  gap: 20px;
}

.question-card {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.question-text {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.45;
  margin-bottom: 28px;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 15px;
  color: var(--gray-700);
  transition: all var(--transition);
  line-height: 1.5;
}

.option-btn:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--gray-900);
  transform: translateX(2px);
}

.option-btn.selected {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--gray-900);
  box-shadow: 0 0 0 3px rgba(26, 97, 234, .12);
}

.option-label {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  transition: all var(--transition);
}

.option-btn:hover .option-label,
.option-btn.selected .option-label {
  background: var(--blue);
  color: var(--white);
}

.option-text {
  flex: 1;
}

/* Nav */
.question-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
}

/* ═══════════════════════════════════════════════════════════════
   SCREEN 3 — RESULT
═══════════════════════════════════════════════════════════════ */

.result-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 32px 72px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  gap: 0;
}

.result-complete-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

/* Badge */
.result-level-badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(26, 97, 234, .3);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.result-badge-num {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  line-height: 1;
}

.badge-icon {
  font-size: 48px;
  line-height: 1;
}

.result-level-title {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  color: var(--gray-900);
}

.result-level-en {
  color: var(--gray-500);
  font-weight: 500;
}

.result-tagline {
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
  text-align: center;
  margin-bottom: 32px;
}

/* Level progression */
.level-progression {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  width: 100%;
  max-width: 600px;
}

.level-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.level-step-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s ease;
  color: var(--gray-400);
}

.level-step.passed .level-step-dot {
  background: var(--blue-pale);
  border-color: var(--blue-light);
  font-size: 16px;
  color: var(--blue-light);
}

.level-step.active .level-step-dot {
  background: var(--white);
  border-color: var(--blue);
  border-width: 3px;
  box-shadow: 0 0 0 5px rgba(26, 97, 234, .15);
  width: 56px;
  height: 56px;
  font-size: 26px;
}

.level-step-label {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
  white-space: nowrap;
}

.level-step.active .level-step-label {
  color: var(--blue);
  font-weight: 700;
}

.level-step.passed .level-step-label {
  color: var(--blue-light);
}

.level-step-line {
  height: 2px;
  flex: 1;
  background: var(--gray-200);
  margin-bottom: 24px;
  transition: background 0.3s;
}

.level-step-line.passed {
  background: var(--blue-light);
}

.result-description {
  font-size: 15px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 640px;
}

.result-description p {
  margin: 0 0 6px;
}

.result-description p:last-child {
  margin-bottom: 0;
}

.result-score {
  display: none;
}

/* Summary cards — result screen */
.result-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  margin-bottom: 28px;
}

.summary-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.summary-card-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.summary-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.summary-card-body {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

.summary-card-body strong {
  color: var(--gray-700);
}

/* Blurred locked section */
.blurred-section {
  width: 100%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--gray-200);
}

.blurred-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  background: var(--white);
}

.blurred-item h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.blurred-item p {
  font-size: 14px;
  color: var(--gray-500);
}

.blur-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.blur-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.lock-icon {
  font-size: 24px;
}

.blur-overlay-inner p {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}

/* Result actions */
.result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.result-actions-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   SCREEN 4 — LEAD FORM
═══════════════════════════════════════════════════════════════ */

.form-container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px 64px;
}

.form-card {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.form-back-btn {
  margin-bottom: 20px;
  padding: 8px 12px;
  font-size: 14px;
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.form-row .form-group {
  margin-bottom: 0;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 6px;
}

.required {
  color: var(--blue);
  font-size: 13px;
}

.optional {
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 500;
}

.field-hint {
  font-size: 12px;
  color: var(--gray-400);
}

.field-hint-error {
  color: #DC2626;
  font-weight: 600;
}

input.input-invalid {
  border-color: #DC2626;
}

input.input-invalid:focus {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--gray-900);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

select {
  cursor: pointer;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 97, 234, .12);
}

input::placeholder {
  color: var(--gray-400);
}

.form-error {
  font-size: 13px;
  color: #DC2626;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.form-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 24px;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-500);
  cursor: pointer;
  line-height: 1.5;
}

.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
  flex-shrink: 0;
  cursor: pointer;
}

.check-link {
  color: var(--blue);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 15px;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════
   SCREEN 5 — DETAILED RESULT
═══════════════════════════════════════════════════════════════ */

.detail-container {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: 44px 24px 88px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Header card */
.detail-header-card {
  background: linear-gradient(135deg, var(--blue-pale) 0%, #F5F3FF 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  gap: 26px;
  border: 1px solid rgba(26, 97, 234, .1);
}

.detail-badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(26, 97, 234, .3);
}

.detail-badge-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: var(--white);
}

.detail-badge-num .badge-icon {
  font-size: 36px;
  line-height: 1;
}

.detail-header-text {
  flex: 1;
  min-width: 0;
}

.detail-greeting {
  font-size: 15px;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 4px;
}

.detail-level-name-h {
  font-size: 25px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.detail-score-text {
  font-size: 16px;
  color: var(--gray-500);
  font-weight: 600;
}

/* Section cards */
.detail-section {
  padding: 8px 0;
}

/* Flat section (no card box, just title + content) */
.detail-flat {
  padding: 8px 0;
}

.detail-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.detail-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
}

.detail-section-title.title--bar {
  font-size: 20px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
  border-bottom: none;
}

.detail-section-desc {
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: 22px;
}

/* Level tagline in header */
.detail-level-tagline {
  font-size: 15px;
  color: var(--blue);
  font-weight: 600;
  margin-top: 4px;
}

/* ── Level position steps ──────────────────── */
.level-steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 28px;
  position: relative;
}

.lps-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  position: relative;
  z-index: 0;
  text-align: center;
}

.lps-line {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.lps-line-past {
  background: #93C5FD;
}

.lps-dot {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.lps-dot-icon {
  font-size: 22px;
  line-height: 1;
  display: block;
  opacity: 0.5;
}

.lps-past .lps-dot-icon {
  opacity: 0.7;
}

.lps-current .lps-dot-icon {
  font-size: 29px;
  opacity: 1;
}

.lps-check {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 20px;
  height: 20px;
  background: #2563EB;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--white);
  font-weight: 800;
  line-height: 1;
}

.lps-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-400);
  white-space: nowrap;
}

.lps-current .lps-num {
  color: var(--blue);
  font-weight: 800;
}

.lps-past .lps-num {
  color: #93C5FD;
}

.lps-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-400);
  white-space: nowrap;
}

.lps-current .lps-label {
  color: var(--gray-900);
  font-weight: 800;
}

.lps-past .lps-label {
  color: #93C5FD;
}

.lps-en {
  font-size: 12px;
  color: var(--gray-400);
  white-space: nowrap;
}

.lps-current .lps-en {
  color: var(--gray-500);
}

/* Narrative paragraphs */
.detail-narrative {
  width: 100%;
  margin-top: 8px;
  padding: 0 calc(12.5% - 26px);
}

.detail-narrative p {
  font-size: 17px;
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 14px;
}

.detail-narrative p:last-child {
  margin-bottom: 0;
}

/* ── Radar chart ───────────────────────────── */
.radar-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.radar-chart-wrap {
  flex: 0 0 460px;
  max-width: 460px;
}

.radar-cards {
  flex: 0 0 350px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.radar-score-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
}

.radar-score-badge {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 1px;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.radar-score-val {
  font-size: 23px;
  font-weight: 800;
}

.radar-score-max {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.7;
}

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

.radar-score-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.radar-score-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.radar-score-sub {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

.radar-score-hint {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── Competency bars (legacy) ───────────────── */
.competency-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comp-bar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.comp-bar-icon {
  font-size: 16px;
}

.comp-bar-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800, #1F2937);
  flex: 1;
}

.comp-bar-level {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 2px 10px;
  border-radius: 100px;
}

.comp-bar-track {
  width: 100%;
  height: 10px;
  background: var(--gray-100);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}

.comp-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.comp-bar-hint {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ── Rich cards ───────────────────────────── */
.detail-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rich-card {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
}

.rich-card--green {
  background: #F0FDF4;
  border-color: #22C55E;
}

.rich-card--orange {
  background: #FFF7ED;
  border-color: #F97316;
}

.rich-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.rich-card-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-600, #4B5563);
}

/* ── Guide items ───────────────────────────── */
#detail-guide {
  max-width: 880px;
  margin: 0 auto;
}

.guide-item {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  margin-bottom: 10px;
}

.guide-item:last-child {
  margin-bottom: 0;
}

.guide-action {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.guide-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.guide-detail {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.7;
  padding-left: 36px;
}

/* ── Product cards (AI Fluent + SkillFit) ─ */
.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product-card {
  padding: 26px;
  border-radius: 16px;
  border: 1.5px solid var(--gray-100);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: all var(--transition);
}

.product-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 100%);
}

.product-card--primary {
  position: relative;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.product-card--primary::before {
  content: '지금 추천';
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
}

.product-card-icon {
  font-size: 40px;
  line-height: 1;
}

.product-card-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}

.product-card-tag--eval {
  background: var(--blue);
}

.product-card-tag--learn {
  background: #7C3AED;
}

.product-card-name {
  font-size: 23px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.3px;
}

.product-card-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  flex: 1;
}

.track-cta-btn {
  margin-top: 4px;
  font-size: 15px;
  padding: 10px 18px;
  align-self: flex-start;
}

/* ── Track cards (legacy) ──────────────────── */
#detail-tracks {
  display: block;
  max-width: 880px;
  margin: 0 auto;
}

.track-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  transition: all var(--transition);
}

.track-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.track-card.primary-track {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.track-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  padding: 3px 8px;
  border-radius: 100px;
  width: fit-content;
}

.track-tag.secondary-tag {
  background: var(--gray-400);
}

.track-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

.track-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}

.track-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 4px;
}

.track-link:hover {
  text-decoration: underline;
}

/* ── Detail page CTA ──────────────────────── */
.detail-cta {
  text-align: center;
  padding: 48px 36px;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.detail-cta-eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.detail-cta-title {
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 12px;
}

.detail-cta-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.detail-cta .btn-primary {
  background: var(--white);
  color: #1E3A8A;
  box-shadow: none;
}

.detail-cta .btn-primary:hover {
  background: #F0F5FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

/* Analysis */
.analysis-block {
  margin-bottom: 20px;
}

.analysis-block:last-child {
  margin-bottom: 0;
}

.analysis-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.analysis-item {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 8px;
  border-left: 3px solid var(--blue);
}

.analysis-item:last-child {
  margin-bottom: 0;
}

.analysis-q-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(26, 97, 234, .08);
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 6px;
}

.analysis-item p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 4px;
}

.analysis-item em {
  font-style: normal;
  font-weight: 600;
}

.analysis-insight {
  color: var(--gray-500) !important;
  font-size: 13px !important;
}

/* Lists */
#detail-strengths,
#detail-improvements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

#detail-strengths li,
#detail-improvements li {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
}

#detail-strengths li {
  background: #F0FDF4;
  border-left: 3px solid #22C55E;
  color: #166534;
}

#detail-improvements li {
  background: #FFF7ED;
  border-left: 3px solid #F97316;
  color: #9A3412;
}

/* Guide items */
.guide-item {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  margin-bottom: 10px;
}

.guide-item:last-child {
  margin-bottom: 0;
}

.guide-action {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.guide-dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.guide-detail {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.7;
  padding-left: 36px;
}

/* Feedback survey link (header card, right side) */
.detail-feedback-btn {
  flex-shrink: 0;
  background: var(--white);
  border-color: rgba(26, 97, 234, .2);
  white-space: nowrap;
}

/* Back button row */
.detail-footer-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
}

/* Share toast */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  background: var(--gray-900);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.app-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .header {
    padding: 14px 20px;
  }

  .hero {
    padding: 52px 20px 40px;
  }

  .levels-row {
    gap: 6px;
  }

  .level-preview-card {
    min-width: 72px;
    padding: 14px 10px;
  }

  .level-preview-icon {
    font-size: 22px;
  }

  .level-preview-name {
    font-size: 13px;
  }

  .level-preview-en {
    display: none;
  }

  .level-preview-arrow {
    font-size: 14px;
  }

  .question-card {
    padding: 24px 18px;
  }

  .option-btn {
    padding: 14px 14px;
    font-size: 14px;
  }

  .form-card {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .detail-header-card {
    flex-direction: column;
    text-align: center;
  }

  .detail-feedback-btn {
    margin-top: 4px;
  }

  .detail-two-col {
    grid-template-columns: 1fr;
  }

  .level-steps-row {
    gap: 0;
  }

  .lps-label,
  .lps-en {
    font-size: 10px;
  }

  .lps-dot {
    width: 40px;
    height: 40px;
  }

  .lps-dot-icon {
    font-size: 16px;
  }

  .lps-current .lps-dot-icon {
    font-size: 20px;
  }

  .lps-line {
    top: 20px;
  }

  .lps-check {
    width: 14px;
    height: 14px;
    font-size: 7px;
  }

  #detail-tracks {
    grid-template-columns: 1fr;
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

  .radar-layout {
    flex-direction: column;
  }

  .radar-chart-wrap {
    max-width: 100%;
    flex: unset;
    width: 100%;
  }

  .detail-cta {
    padding: 32px 20px;
  }

  .level-step-label {
    font-size: 10px;
  }
}