:root {
  --violet:  #6B5AED;
  --cream:   #F4F2FC;
  --ink:     #2F2B36;
  --ink-2:   #55525E;
  --ink-3:   #6E6A78;
  --line:    #E8E4F6;
  --dark:    #2A2430;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, p { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
q { quotes: "\201C" "\201D"; }

:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

.by-h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.032em;
}

.rt u { text-decoration: underline; text-underline-offset: 3px; }
.rt b { color: inherit; font-weight: 800; }
.rt em { font-style: normal; color: var(--violet); }
.rt .hl { background: linear-gradient(to top, rgba(107, 90, 237, .26) 40%, transparent 40%); }

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet);
}

.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 242, 252, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
}
.head.is-dark {
  background: rgba(42, 36, 48, .94);
  box-shadow: 0 10px 30px rgba(47, 43, 54, .18);
  color: #fff;
}
.head__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-mark {
  display: block;
  height: 22px;
  aspect-ratio: 120.88 / 24;
  background: currentColor;
  -webkit-mask: url("uploads/logo.svg") no-repeat center / contain;
          mask: url("uploads/logo.svg") no-repeat center / contain;
}
.head__logo { color: #2F2B36; transition: color .3s ease; }
.head.is-dark .head__logo { color: #fff; }
.head__back { font-size: 14px; font-weight: 600; color: var(--ink-3); transition: color .3s ease; }
.head.is-dark .head__back { color: rgba(255, 255, 255, .7); }

.progress { height: 3px; background: rgba(47, 43, 54, .08); }
.progress i { display: block; height: 100%; background: var(--violet); width: 0; transition: width .25s ease; }

.quiz { padding: 70px 0 100px; text-align: center; }
.quiz__count {
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--violet);
}
.quiz__stage {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 14px;
  border-radius: 200px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}
.quiz__q {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.03em;
}
.quiz__opts { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; }

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 17px 24px;
  border: 1.5px solid transparent;
  border-radius: 18px;
  background: #fff;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color .18s ease, transform .18s ease;
}
.opt:hover { border-color: var(--violet); transform: translateY(-2px); }
.opt i {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #DFD8FB;
}
.opt small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.opt--un { border: 1.5px dashed #D5CDEF; color: var(--ink-3); }
.opt--un i { border-color: #E6E0D4; }

.quiz__back {
  margin-top: 28px;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
}
.quiz__back:hover { color: var(--violet); }

.result { display: none; }

.r1 { padding: 64px 0 80px; text-align: center; }
.r1 h1 {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.035em;
}
.r1__sub { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); }

.map {
  margin-top: 40px;
  padding: clamp(24px, 3vw, 30px) clamp(20px, 2.8vw, 28px);
  border-radius: 24px;
  background: #fff;
  text-align: left;
}
.map__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.map__row:first-child { border-top: 0; }
.map__name { padding-top: 8px; font-size: 12.5px; font-weight: 800; color: var(--ink-3); }
.map__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 200px;
  font-size: 13px;
  font-weight: 700;
}
.chip i { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; }

.chip--0 { background: #EEEBF9; border: 1.5px solid #EEEBF9; color: #8A8494; }
.chip--0 i { background: #C9C1B2; }
.chip--1 { background: #fff; border: 1.5px solid #E0D8F7; color: #8079A8; }
.chip--1 i { background: #CFC4F2; }
.chip--2 { background: #fff; border: 1.5px solid #B9A9F5; color: #6B5AED; }
.chip--2 i { background: #B9A9F5; }
.chip--3 { background: #6B5AED; border: 1.5px solid #6B5AED; color: #fff; }
.chip--3 i { background: #fff; }
.chip--4 { background: #fff; border: 1.5px dashed #D5CDEF; color: #A9A4B2; }
.chip--4 i { background: #fff; box-shadow: inset 0 0 0 1.5px #C2BAAA; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-top: 22px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { display: block; width: 9px; height: 9px; border-radius: 50%; }

.gauges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.gauge {
  padding: 24px 26px;
  border-radius: 20px;
  background: #fff;
  text-align: left;
}
.gauge__label { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.gauge__value {
  margin: 4px 0 10px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.gauge__value small { margin-left: 2px; font-size: 15px; color: var(--ink-3); }
.gauge__track { height: 7px; border-radius: 200px; background: #F3F1FB; overflow: hidden; }
.gauge__track i { display: block; height: 100%; border-radius: 200px; background: var(--violet); }
.gauge__note { margin-top: 9px; font-size: 12.5px; color: var(--ink-3); }

.r2 { background: #fff; padding: clamp(56px, 7vw, 80px) 0; text-align: center; }
.symptoms { display: flex; flex-direction: column; gap: 11px; margin-top: 34px; }
.symptom {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--cream);
  text-align: left;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.6;
}
.symptom b { flex-shrink: 0; font-size: 19px; line-height: 1.2; color: var(--violet); }
.r2__foot { margin-top: 26px; font-size: 14.5px; font-weight: 600; color: var(--ink-3); }
.r2__foot:empty { display: none; }

.r3 { padding: clamp(56px, 7vw, 80px) 0; text-align: center; }
.cause {
  margin-top: 34px;
  padding: clamp(26px, 3.2vw, 34px) clamp(22px, 3vw, 32px);
  border-radius: 24px;
  background: #fff;
  text-align: left;
}
.cause h3 {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.025em;
}
.cause p { font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }

.order { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 26px; }
.order__item {
  flex: 1;
  min-width: 88px;
  padding: 13px 6px;
  border-radius: 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
}
.order__item small { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 700; opacity: .8; }
.order--none { background: #fff; color: #A9A4B2; border: 1.5px dashed #D5CDEF; }
.order--here { background: #fff; color: var(--violet); border: 2px dashed var(--violet); }
.order--ok   { background: #F0EDFF; color: var(--violet); }
.order--part { background: #F3F1FB; color: var(--ink-3); }

.r4 {
  background: var(--dark);
  color: #fff;
  padding: clamp(56px, 7vw, 80px) 0;
  text-align: center;
}
.r4 .eyebrow { color: #B9A9F5; }
.r4 .by-h2 { color: #fff; }
.todo {
  margin-top: 32px;
  padding: clamp(24px, 3vw, 30px) clamp(22px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  text-align: left;
}
.todo__label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #B9A9F5;
}
.todo__big { font-size: 19px; font-weight: 700; line-height: 1.6; color: #fff; }
.todo__then {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 14.5px;
  line-height: 1.7;
  color: #CFC7E8;
}

.r5 { padding: clamp(56px, 7vw, 80px) 0; text-align: center; }
.r5__note {
  margin-bottom: 36px;
  padding: 24px 28px;
  border-radius: 20px;
  background: #fff;
  text-align: left;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
}
.r5__note b { color: var(--ink); }

.r5__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 32px; }
.cbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border: 1.5px solid transparent;
  border-radius: 200px;
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .22s ease, border-color .22s ease, color .22s ease;
}
.cbtn--solid { background: var(--dark); color: #fff; }
.cbtn--solid:hover { background: var(--violet); color: #fff; }
.cbtn--ghost { background: transparent; color: var(--ink); border-color: #D5CDEF; }
.cbtn--ghost:hover { background: var(--violet); border-color: var(--violet); color: #fff; }

.share { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.share__label { margin-bottom: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.share__row { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.share__row input {
  flex: 1;
  min-width: 0;
  padding: 13px 20px;
  border: 1.5px solid var(--line);
  border-radius: 200px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-3);
}
.share__copy {
  display: flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 200px;
  background: var(--dark);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
.share__retry {
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot {
  background: var(--dark);
  color: rgba(255, 255, 255, .6);
  padding: 44px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.95;
}
.foot__inner { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.foot b { color: rgba(255, 255, 255, .88); font-weight: 700; }
.foot a { color: rgba(255, 255, 255, .85); }
.foot__copy { margin-top: 11px; font-size: 12px; color: rgba(255, 255, 255, .38); letter-spacing: .02em; }
.nw { white-space: nowrap; }
.sep { padding: 0 9px; color: rgba(255, 255, 255, .26); }
@media (max-width: 600px) { .sep { display: block; height: 0; overflow: hidden; padding: 0; } }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(47, 43, 54, .45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal.is-open { display: flex; }

.modal__box {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: clamp(28px, 3.4vw, 40px);
  border-radius: 26px;
  background: var(--cream);
  text-align: left;
  animation: pop .28s cubic-bezier(.2, .8, .3, 1);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--ink-3);
}
.modal__close:hover { background: rgba(47, 43, 54, .06); color: var(--ink); }

.modal__box h3 {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.modal__form > h3:first-child { margin-top: 0; }
.modal__intro { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--ink-3); }

.field { margin-top: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.field label i { font-style: normal; color: var(--violet); }
.field label span { font-weight: 500; color: var(--ink-3); }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .15s ease;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--violet); outline: none; }

.sizes { display: flex; flex-wrap: wrap; gap: 7px; }
.size {
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .15s ease;
}
.size.is-on { background: var(--violet); border-color: var(--violet); color: #fff; }

.agree {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
  cursor: pointer;
}
.agree input { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--violet); }

.modal__err { margin-top: 14px; font-size: 13px; font-weight: 600; color: #D6455F; }
.modal__err:empty { display: none; }

.modal__submit {
  width: 100%;
  height: 54px;
  margin-top: 16px;
  border-radius: 200px;
  background: var(--dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: background .18s ease;
}
.modal__submit:hover:not(:disabled) { background: var(--violet); }
.modal__submit:disabled { opacity: .6; cursor: default; }

.modal__done { display: none; text-align: center; }
.modal.is-done .modal__form { display: none; }
.modal.is-done .modal__done { display: block; }
.modal__check {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
  color: var(--violet);
}
