:root {
  color-scheme: light;
  --navy: #172e48;
  --navy-deep: #0c2035;
  --teal: #137f75;
  --teal-dark: #0b625a;
  --mint: #dff4ee;
  --coral: #ef735f;
  --gold: #e9b95b;
  --paper: #f7f4ed;
  --surface: #ffffff;
  --ink: #172235;
  --muted: #617080;
  --line: #e5e0d6;
  --shadow: 0 24px 70px rgba(23, 46, 72, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  line-height: 1.68;
  word-break: keep-all;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral);
}

a:focus-visible {
  outline: 3px solid rgba(19, 127, 117, 0.35);
  outline-offset: 4px;
  border-radius: 5px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(229, 224, 214, 0.85);
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(23, 46, 72, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--teal-dark);
}

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 650px;
  padding: 88px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy-deep);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6vw, 4.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

h3 {
  margin-bottom: 9px;
  font-size: 1.17rem;
}

.hero-copy {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.2rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 14px;
  background: var(--navy);
  color: white;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(23, 46, 72, 0.16);
}

.button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--navy);
  box-shadow: none;
}

.phone {
  position: relative;
  width: min(330px, 100%);
  margin: 0 auto;
  padding: 13px;
  border: 8px solid var(--navy-deep);
  border-radius: 46px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}

.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 50%;
  width: 92px;
  height: 23px;
  transform: translateX(-50%);
  border-radius: 15px;
  background: var(--navy-deep);
}

.screen {
  min-height: 535px;
  padding: 40px 18px 20px;
  overflow: hidden;
  border-radius: 31px;
  background: linear-gradient(155deg, #f9f7f1 10%, #e8f5ef 100%);
}

.screen-label {
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.screen h3 {
  margin: 6px 0 18px;
  font-size: 1.52rem;
}

.progress-track {
  height: 7px;
  margin-bottom: 19px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7dedc;
}

.progress-fill {
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

.question-card,
.answer {
  border: 1px solid rgba(229, 224, 214, 0.85);
  border-radius: 17px;
  background: white;
}

.question-card {
  padding: 17px;
  box-shadow: 0 12px 28px rgba(23, 46, 72, 0.08);
}

.question-card p {
  margin: 0 0 15px;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.5;
}

.answer {
  margin-top: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.76rem;
}

.answer.selected {
  border-color: var(--teal);
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 750;
}

.source-chip {
  margin-top: 15px;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--navy);
  color: white;
  font-size: 0.7rem;
  font-weight: 650;
}

.section {
  padding: 86px 0;
}

.section.alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.container {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.section-intro {
  max-width: 700px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 1.04rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(23, 46, 72, 0.06);
}

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.exam-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.exam-list span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 650;
}

.notice {
  padding: 25px;
  border-left: 5px solid var(--gold);
  border-radius: 0 18px 18px 0;
  background: #fff8e8;
  color: #604a21;
}

.notice strong {
  display: block;
  margin-bottom: 5px;
  color: #483510;
}

.legal-main {
  width: min(850px, calc(100% - 40px));
  min-height: calc(100vh - 230px);
  margin: 0 auto;
  padding: 72px 0 90px;
}

.legal-header {
  margin-bottom: 42px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 6vw, 3.6rem);
}

.legal-header p,
.updated {
  color: var(--muted);
}

.legal-section {
  margin-top: 36px;
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: 1.42rem;
}

.legal-section p,
.legal-section li {
  color: #344252;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.25rem;
}

.legal-section li + li {
  margin-top: 8px;
}

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.link-box {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.link-box::after {
  content: "↗";
  color: var(--teal);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.support-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.support-card p:last-child {
  margin-bottom: 0;
}

.contact-box {
  margin: 34px 0;
  padding: 30px;
  border-radius: 24px;
  background: var(--navy);
  color: white;
}

.contact-box h2,
.contact-box a {
  color: white;
}

.contact-box p {
  color: #dce7ef;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #eee9df;
}

.footer-inner {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  font-size: 0.82rem;
  font-weight: 650;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 64px;
    text-align: center;
  }

  .hero-copy {
    margin-right: auto;
    margin-left: auto;
  }

  .button-row {
    justify-content: center;
  }

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

  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav {
    min-height: 64px;
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

  .hero,
  .container,
  .legal-main,
  .footer-inner,
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 48px;
  }

  .section {
    padding: 64px 0;
  }

  .legal-main {
    padding-top: 48px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .phone {
    transform: none;
  }
}

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