:root {
  color-scheme: light;
  --ink: #191321;
  --ink-soft: #4f4659;
  --muted: #71697a;
  --brand-950: #321451;
  --brand-900: #43206d;
  --brand-700: #6737a0;
  --brand-100: #eee5f8;
  --brand-50: #f7f2fb;
  --accent: #ff6a55;
  --accent-dark: #c83d2d;
  --teal: #157d79;
  --line: #e5dfea;
  --surface: #ffffff;
  --canvas: #f7f5fa;
  --shadow: 0 16px 44px rgba(50, 20, 81, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  min-width: 280px;
  margin: 0;
  background:
    radial-gradient(circle at 8% -8%, rgba(150, 87, 198, 0.14), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-700);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-950);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(255, 106, 85, 0.5);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(229, 223, 234, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--brand-50);
  color: var(--brand-900);
}

.page-shell {
  padding-block: 22px 88px;
}

.breadcrumbs {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #a59cad;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 6vw, 68px);
  border: 1px solid rgba(103, 55, 160, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff 0%, #f5eefb 66%, #fbece9 100%);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -110px;
  bottom: -145px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(103, 55, 160, 0.2), rgba(255, 106, 85, 0.2));
  filter: blur(2px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.68;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--brand-900);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}

.button:hover {
  border-color: var(--brand-700);
  color: var(--brand-950);
}

.button.primary {
  border-color: var(--brand-900);
  background: var(--brand-900);
  color: #fff;
  box-shadow: 0 10px 26px rgba(67, 32, 109, 0.2);
}

.button.primary:hover {
  background: var(--brand-950);
  color: #fff;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.quick-facts li {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts strong {
  color: var(--brand-900);
  font-size: 14px;
}

.quick-facts span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 42px;
  margin-top: 56px;
  align-items: start;
}

.article {
  min-width: 0;
}

.article > section {
  scroll-margin-top: 92px;
  margin-top: 64px;
}

.article > section:first-child {
  margin-top: 0;
}

.article h2 {
  margin: 0 0 16px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.article h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.article p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.article ul,
.article ol {
  margin: 12px 0 0;
  padding-left: 1.35em;
}

.article li {
  margin: 7px 0;
  color: var(--ink-soft);
}

.section-intro {
  max-width: 760px;
  margin-bottom: 26px !important;
  color: var(--muted) !important;
  font-size: 17px;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(50, 20, 81, 0.06);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.toc ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.toc a:hover {
  background: var(--brand-50);
  color: var(--brand-900);
}

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

.card,
.step,
.scenario {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(50, 20, 81, 0.055);
}

.card {
  padding: 24px;
}

.card p:last-child,
.step p:last-child,
.scenario p:last-child {
  margin-bottom: 0;
}

.card-kicker,
.scenario-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-900);
  font-size: 12px;
  font-weight: 850;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.step {
  position: relative;
  padding: 24px 24px 24px 76px;
  counter-increment: guide-step;
}

.step::before {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-900);
  color: #fff;
  content: counter(guide-step);
  font-weight: 900;
}

.callout {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid #d8c9e8;
  border-left: 5px solid var(--brand-700);
  border-radius: var(--radius-sm);
  background: var(--brand-50);
}

.callout.warning {
  border-color: #f0c5bd;
  border-left-color: var(--accent);
  background: #fff5f2;
}

.callout strong {
  display: block;
  margin-bottom: 5px;
}

.callout p {
  margin: 0;
  color: var(--ink-soft);
}

.comparison {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 14px;
}

.comparison th,
.comparison td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison th {
  background: var(--brand-50);
  color: var(--brand-950);
}

.comparison tr:last-child th,
.comparison tr:last-child td {
  border-bottom: 0;
}

.comparison td {
  color: var(--ink-soft);
}

.scenario-grid {
  display: grid;
  gap: 16px;
}

.scenario {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 26px;
}

.scenario-side strong {
  display: block;
  font-size: 18px;
  line-height: 1.4;
}

.scenario-body dl {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

.scenario-body dt {
  color: var(--brand-900);
  font-size: 14px;
  font-weight: 850;
}

.scenario-body dd {
  margin: 0;
  color: var(--ink-soft);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 24px rgba(50, 20, 81, 0.045);
}

.faq-item summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-900);
  content: "+";
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 20px;
}

.faq-answer p,
.faq-answer ul {
  margin-top: 0;
}

.cta-panel {
  margin-top: 64px;
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-950), var(--brand-700));
  color: #fff;
}

.cta-panel h2 {
  margin-bottom: 10px;
  color: #fff;
}

.cta-panel p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.78);
}

.cta-panel .button {
  border-color: rgba(255, 255, 255, 0.45);
  background: #fff;
  color: var(--brand-950);
}

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  padding-block: 34px 42px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 4px;
}

.footer-brand p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.footer-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.fine-print {
  color: var(--muted) !important;
  font-size: 13px;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: auto;
    padding-block: 11px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .primary-nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

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

  .article > section {
    scroll-margin-top: 132px;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .brand-copy small {
    display: none;
  }

  .primary-nav a {
    padding-inline: 10px;
    font-size: 13px;
  }

  .page-shell {
    padding-top: 14px;
    padding-bottom: 64px;
  }

  .hero {
    padding: 29px 22px 32px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: clamp(31px, 10vw, 44px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .quick-facts,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .content-layout {
    gap: 34px;
    margin-top: 42px;
  }

  .article > section {
    margin-top: 50px;
  }

  .card,
  .step,
  .scenario {
    border-radius: 16px;
  }

  .card {
    padding: 20px;
  }

  .step {
    padding: 68px 20px 20px;
  }

  .step::before {
    top: 18px;
    left: 20px;
  }

  .scenario {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 21px;
  }

  .comparison-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .comparison {
    min-width: 610px;
  }

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

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

@media (max-width: 420px) {
  .hero-actions,
  .inline-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .scenario-body dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .scenario-body dd + dt {
    margin-top: 9px;
  }
}

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

@media print {
  .site-header,
  .toc,
  .hero-actions,
  .cta-panel,
  .site-footer {
    display: none;
  }

  body,
  .hero,
  .card,
  .step,
  .scenario {
    background: #fff;
    box-shadow: none;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }
}
