/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Warm Light palette — synced with main site */
  --bg: #FFFBF5;
  --bg-warm: #FFF5EB;
  --bg-card: #ffffff;

  --text: #1A1A2E;
  --text-mid: #3D3D56;
  --text-muted: #7C7C96;
  --text-light: #A8A8BE;

  --coral: #7C3AED;
  --coral-dark: #6D28D9;
  --coral-light: rgba(124, 58, 237, .1);
  --coral-glow: rgba(124, 58, 237, .2);
  --accent-pink: #EC4899;

  --navy: #1A1A2E;
  --mint: #10B981;
  --mint-light: rgba(16, 185, 129, .1);
  --gold: #F59E0B;
  --gold-light: rgba(245, 158, 11, .1);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xl: 24px;
  --shadow: 0 4px 16px rgba(26, 26, 46, .06), 0 1px 4px rgba(26, 26, 46, .04);
  --shadow-lg: 0 8px 32px rgba(26, 26, 46, .08), 0 2px 8px rgba(26, 26, 46, .04);
}

html { font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #FFF0E2 0%, var(--bg) 50%, var(--bg-warm) 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 251, 245, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 26, 46, .06);
}

.nav__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav__logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -.02em;
}

.nav__back {
  font-size: .82rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.nav__back:hover { color: var(--coral); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s;
  font-size: .95rem;
  padding: .65rem 1.5rem;
  font-family: inherit;
}

.btn--primary {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
  box-shadow: 0 4px 14px var(--coral-glow);
}
.btn--primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  box-shadow: 0 6px 20px rgba(255, 107, 53, .3);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(26, 26, 46, .1);
}
.btn--ghost:hover { border-color: var(--coral); color: var(--coral); }
.btn--ghost:disabled { opacity: .4; cursor: not-allowed; }
.btn--ghost:disabled:hover { border-color: rgba(26, 26, 46, .1); color: var(--text-muted); }

.btn--outline {
  background: transparent;
  color: var(--coral);
  border-color: var(--coral);
}
.btn--outline:hover { background: var(--coral-light); }

.btn--lg { padding: .85rem 2.2rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn--full { width: 100%; }

.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover { transform: none; box-shadow: 0 4px 14px var(--coral-glow); }

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--coral);
  background: var(--coral-light);
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

/* ===== TEST CONTAINER ===== */
.test-container {
  max-width: 580px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== SCREENS ===== */
.screen {
  display: none;
  width: 100%;
  animation: fadeIn .4s ease;
}

.screen--active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen__inner {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid rgba(26, 26, 46, .04);
}

/* ===== INTRO ===== */
#screen-intro h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--navy);
}

.intro-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.intro-note {
  font-size: .78rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* ===== PROGRESS ===== */
.progress {
  width: 100%;
  height: 6px;
  background: rgba(26, 26, 46, .06);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: .5rem;
}

.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  border-radius: 10px;
  transition: width .4s ease;
  width: 0%;
}

.progress__text {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: .02em;
}

/* ===== QUESTION ===== */
.question {
  margin-bottom: 2rem;
  text-align: left;
}

.question__text {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .4rem;
  letter-spacing: -.01em;
  color: var(--navy);
}

.question__hint {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* OPTIONS */
.options {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.option {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.2rem;
  border: 2px solid rgba(26, 26, 46, .08);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
  font-size: .92rem;
  line-height: 1.5;
  text-align: left;
  background: var(--bg-card);
}

.option:hover {
  border-color: var(--coral);
  background: var(--coral-light);
}

.option.selected {
  border-color: var(--coral);
  background: var(--coral-light);
  font-weight: 600;
}

.option__radio {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(26, 26, 46, .15);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all .2s;
}

.option.selected .option__radio {
  border-color: var(--coral);
  background: var(--coral);
}

.option.selected .option__radio::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

/* Korean text in options */
.option .kr-text {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
}

/* ===== Q NAV ===== */
.q-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* ===== INFO SCREEN ===== */
#screen-info h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: .6rem;
  letter-spacing: -.02em;
  color: var(--navy);
}

.info-sub {
  color: var(--text-muted);
  font-size: .92rem;
  max-width: 380px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.info-form {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  max-width: 340px;
  margin: 0 auto;
}

.info-form input {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 1px solid #E8DDD4;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(26, 26, 46, .04);
}

.info-form input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-light);
}

.info-note {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 1rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== RESULT ===== */
.result-card {
  text-align: center;
}

.result__level-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.result__level-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--coral), var(--gold), var(--mint));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.result__level-number {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--navy);
}

.result__level-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
}

.result__greeting {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: .3rem;
}

.result__title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
  color: var(--navy);
}

.result__desc {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: left;
}

.result__recommendation {
  background: var(--coral-light);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.result__recommendation strong {
  display: block;
  font-size: .82rem;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}

.result__recommendation p {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.6;
}

.result__cta {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.result__share {
  font-size: .78rem;
  color: var(--text-light);
  margin-top: 1.2rem;
}

/* ===== NEW RESULT STRUCTURE (Phase + 4 standards) ===== */
.result__starting {
  text-align: center;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(236,72,153,.08));
  border: 1px solid rgba(124,58,237,.2);
  margin-bottom: 1.25rem;
}
.result__starting-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.result__starting-phase {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--coral), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .35rem;
  line-height: 1.2;
}
.result__starting-position {
  font-size: .92rem;
  color: var(--text);
  font-weight: 500;
}

.result__standards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.result__standard {
  background: var(--bg-card);
  border: 1px solid rgba(26,26,46,.08);
  border-radius: 12px;
  padding: .85rem .5rem;
  text-align: center;
}
.result__standard-label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.result__standard-value {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}

.result__cando {
  background: var(--coral-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.result__cando strong {
  display: block;
  font-size: .75rem;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
  font-weight: 700;
}
.result__cando p {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}

.result__journey {
  margin-bottom: 1.5rem;
  text-align: left;
}
.result__journey-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: .75rem;
  text-align: center;
}
.result__phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .4rem;
}
.result__phase {
  background: var(--bg-card);
  border: 1px solid rgba(26,26,46,.08);
  border-radius: 10px;
  padding: .8rem .5rem;
  text-align: center;
  transition: all .2s;
}
.result__phase--active {
  background: linear-gradient(135deg, var(--coral), var(--accent-pink));
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(124,58,237,.25);
}
.result__phase--active .result__phase-num,
.result__phase--active .result__phase-name,
.result__phase--active .result__phase-summary { color: #fff; }
.result__phase--future { opacity: .55; }
.result__phase-num {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.result__phase-name {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  margin: .15rem 0;
  letter-spacing: -.01em;
}
.result__phase-summary {
  display: block;
  font-size: .68rem;
  color: var(--text-light);
  line-height: 1.3;
}

.result__desc-box {
  text-align: left;
  background: rgba(26,26,46,.03);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.result__desc-box p {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.result__cta-note {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: center;
  margin: .25rem 0 .6rem;
  line-height: 1.5;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .screen__inner {
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
  }

  #screen-intro h1 { font-size: 1.8rem; }
  #screen-info h2 { font-size: 1.3rem; }
  .result__title { font-size: 1.4rem; }
  .result__starting-phase { font-size: 1.4rem; }

  .question__text { font-size: 1.05rem; }
  .option { padding: .75rem 1rem; font-size: .88rem; }

  .result__phases { grid-template-columns: 1fr 1fr; }
  .result__standards { gap: .35rem; }
  .result__standard { padding: .7rem .35rem; }
  .result__standard-value { font-size: .82rem; }
}
