:root {
  --paper: #ffffff;
  --ink: #384052;
  --muted: #6b7684;
  --rule: #dce2e8;
  --dot: #4fb3a0;
  --link: #1c7364;
  --wash: #f2f7f6;
  --measure: 40rem;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.5rem; }

/* header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.brand { display: flex; align-items: baseline; gap: .6rem; color: var(--ink); text-decoration: none; }
.brand img { height: 1.75rem; width: auto; display: block; }
.brand span { font-size: .875rem; color: var(--muted); }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .9375rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* notice */
.notice { background: var(--wash); font-size: .9375rem; }
.notice .wrap { padding-top: .7rem; padding-bottom: .7rem; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.25; letter-spacing: -.03em; font-weight: 700; margin: 0 0 1.25rem; }
.hero p { max-width: 34rem; color: var(--muted); font-size: 1.125rem; margin: 0; }
.hero figure { margin: 0; }
.matrix { width: 100%; max-width: 17rem; height: auto; display: block; margin-left: auto; fill: var(--dot); }
.hero figcaption { max-width: 17rem; margin: .9rem 0 0 auto; font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* sections */
.section { border-top: 1px solid var(--rule); }
.section .wrap { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; padding-top: 3.25rem; padding-bottom: 3.25rem; }
.section h2 { font-size: 1.25rem; margin: 0; letter-spacing: -.01em; }
.section .body { max-width: var(--measure); }
.section .body > :first-child { margin-top: 0; }
.section p { margin: 0 0 1rem; }
.plain { margin: 0; padding-left: 1.2rem; }
.plain li { margin-bottom: .45rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.4rem 2.6rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .15rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1.5px solid var(--link); color: var(--link); font-size: .875rem; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.steps b { display: block; }
.steps span { color: var(--muted); }

.price { font-size: 2.25rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .25rem; }
.price small { font-size: 1rem; font-weight: 400; color: var(--muted); margin-left: .4rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: .65rem .75rem; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; background: var(--wash); white-space: nowrap; }

/* legal pages */
.doc .wrap { padding-top: 3.5rem; padding-bottom: 4rem; }
.doc article { max-width: 44rem; }
.doc h1 { font-size: 2rem; letter-spacing: -.02em; margin: 0 0 .5rem; }
.doc .meta { color: var(--muted); font-size: .9375rem; margin: 0 0 2.5rem; }
.doc h2 { font-size: 1.125rem; margin: 2.5rem 0 .75rem; }
.doc p, .doc li { font-size: 1rem; }
.doc ol, .doc ul { padding-left: 1.3rem; }
.doc li { margin-bottom: .4rem; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); background: var(--wash); font-size: .875rem; color: var(--muted); line-height: 1.8; }
.site-foot .wrap { padding-top: 2rem; padding-bottom: 2.5rem; }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.site-foot nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-foot p { margin: 0; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
  .matrix, .hero figcaption { margin-left: 0; max-width: 13rem; }
  .section .wrap { grid-template-columns: 1fr; gap: 1rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
}
