@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@1.3.9/dist/web/variable/pretendardvariable.css");

:root {
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  --ink: #172033;
  --muted: #5a6475;
  --line: #d8dee8;
  --paper: #edf2f8;
  --navy: #071b54;
  --blue: #1e4fd8;
  --red: #d9422f;
  --gold: #efc260;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: -0.015em;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  width: min(100%, 820px);
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 8px 18px;
}

.header-inner img {
  display: block;
  width: 134px;
  max-height: 34px;
  object-fit: contain;
}

.header-inner span {
  border: 1px solid #c9d5f4;
  border-radius: 999px;
  background: #f5f8ff;
  color: var(--blue);
  padding: 7px 11px;
  font-size: 14px;
  font-weight: 900;
}

.hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(55, 102, 224, 0.32), transparent 28%),
    linear-gradient(135deg, #06194b, #0a2b75);
  color: white;
}

.hero-inner {
  display: grid;
  gap: 12px;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 42px 18px 64px;
}

.eyebrow {
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.55;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero-badges span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
}

.check-shell {
  position: relative;
  width: min(100%, 820px);
  margin: -30px auto 0;
  padding: 0 18px 52px;
}

.check-card {
  overflow: hidden;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 24px 70px rgba(7, 27, 84, 0.12);
  scroll-margin-top: 76px;
}

.intro-view,
.question-view {
  display: grid;
  gap: 22px;
  padding: 26px;
}

.intro-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 16px;
  background: #eaf0ff;
  color: var(--blue);
  font-size: 30px;
  font-weight: 900;
}

.overline {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.intro-view h2,
.question-copy h2,
.grade-copy h2 {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: clamp(27px, 5vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.intro-view p,
.grade-copy p,
.focus-box p,
.consult-box p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.score-guide {
  display: grid;
  gap: 8px;
}

.score-guide div {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfe;
  padding: 12px 14px;
}

.score-guide strong {
  display: inline-flex;
  min-width: 46px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 15px;
}

.score-guide span {
  font-size: 16px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 18px;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--red);
  color: white;
}

.start-button,
.phone-button {
  width: 100%;
}

.privacy-note {
  margin: -10px 0 0 !important;
  font-size: 14px !important;
  text-align: center;
}

.progress-head,
.result-title,
.category-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-head span {
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
}

.progress-head strong {
  color: var(--muted);
  font-size: 15px;
}

.progress-bar,
.category-bar {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e3e9f2;
}

.progress-bar span,
.category-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 220ms ease;
}

.question-copy {
  min-height: 132px;
  padding-top: 4px;
}

.question-copy > span {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 13px 14px;
  text-align: left;
  cursor: pointer;
}

.option-button:hover,
.option-button:focus-visible {
  border-color: #9bb1e8;
  background: #f8faff;
}

.option-button.selected {
  border-color: var(--blue);
  background: #eff4ff;
  box-shadow: 0 0 0 3px rgba(30, 79, 216, 0.08);
}

.option-symbol {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf1f6;
  color: var(--muted);
  font-size: 22px;
  font-weight: 900;
}

.option-button.selected .option-symbol {
  background: var(--blue);
  color: white;
}

.option-copy {
  display: grid;
  gap: 3px;
}

.option-copy strong {
  font-size: 18px;
  line-height: 1.3;
}

.option-copy small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.option-button b {
  color: var(--blue);
  font-size: 15px;
  white-space: nowrap;
}

.question-navigation {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 10px;
}

.button-back {
  border-color: var(--line);
  background: white;
}

.question-navigation button:disabled {
  background: #c7cfdd;
  cursor: not-allowed;
}

.result-view {
  display: grid;
}

.result-head {
  padding: 30px 26px;
  background: linear-gradient(135deg, #f2f6ff, #ffffff);
}

.result-head.result-care {
  background: linear-gradient(135deg, #fff8e8, #ffffff);
}

.result-head.result-start {
  background: linear-gradient(135deg, #fff1ed, #ffffff);
}

.score-wrap {
  display: grid;
  gap: 22px;
  align-items: center;
  margin-top: 16px;
}

.score-ring {
  display: grid;
  width: 154px;
  height: 154px;
  place-items: center;
  border-radius: 50%;
}

.score-ring > div {
  display: grid;
  width: 124px;
  height: 124px;
  place-content: center;
  border-radius: 50%;
  background: white;
  text-align: center;
}

.score-ring strong {
  color: var(--navy);
  font-size: 52px;
  line-height: 0.95;
}

.score-ring span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.grade-copy > span {
  display: inline-flex;
  border-radius: 999px;
  background: var(--navy);
  padding: 7px 11px;
  color: white;
  font-size: 14px;
  font-weight: 900;
}

.result-section,
.focus-box,
.consult-box,
.result-footer {
  margin: 0 26px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.result-title h3,
.focus-box h3,
.consult-box h3 {
  margin: 0;
  color: var(--navy);
  font-size: 23px;
  line-height: 1.35;
}

.result-title > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.category-list {
  display: grid;
  gap: 17px;
  margin-top: 20px;
}

.category-row {
  display: grid;
  gap: 8px;
}

.category-row strong {
  font-size: 16px;
}

.category-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.focus-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
}

.focus-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #fff1ed;
  color: var(--red);
  font-weight: 900;
}

.focus-box p strong {
  color: var(--ink);
}

.consult-box {
  display: grid;
  gap: 10px;
}

.consult-box p {
  margin-top: 0;
}

.result-footer {
  display: grid;
  gap: 14px;
}

.result-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.restart-button {
  display: inline-flex;
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.noscript-box {
  padding: 24px;
  color: var(--red);
  font-weight: 800;
}

footer {
  background: #101827;
  color: rgba(255, 255, 255, 0.76);
}

footer > div {
  display: grid;
  gap: 4px;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 28px 18px;
  font-size: 14px;
  line-height: 1.5;
}

footer strong {
  color: white;
  font-size: 16px;
}

@media (max-width: 520px) {
  .header-inner {
    padding-right: 12px;
    padding-left: 12px;
  }

  .header-inner img {
    width: 108px;
  }

  .hero-inner {
    padding-top: 32px;
    padding-bottom: 58px;
  }

  .hero p {
    font-size: 18px;
  }

  .check-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .intro-view,
  .question-view {
    gap: 19px;
    padding: 22px 18px;
  }

  .question-copy {
    min-height: 146px;
  }

  .option-button {
    grid-template-columns: auto 1fr;
  }

  .option-button b {
    display: none;
  }

  .result-head {
    padding: 26px 20px;
  }

  .score-ring {
    width: 142px;
    height: 142px;
  }

  .score-ring > div {
    width: 114px;
    height: 114px;
  }

  .result-section,
  .focus-box,
  .consult-box,
  .result-footer {
    margin-right: 20px;
    margin-left: 20px;
  }
}

@media (min-width: 760px) {
  .score-wrap {
    grid-template-columns: auto 1fr;
  }

  .score-guide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .progress-bar span,
  .category-bar span {
    transition: none;
  }
}
