:root {
  color-scheme: light;
  --ink: #211a31;
  --muted: #554862;
  --paper: #f9f6fd;
  --accent: #563498;
  --line: #e4dbea;
  --heading: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

:lang(ko), :lang(ja), :lang(zh-TW) {
  --heading: "Noto Serif CJK", "Songti TC", "Hiragino Mincho ProN", "AppleMyungjo", Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #7245bd; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.17; }
h1, h2 { font-family: var(--heading); font-weight: 600; text-wrap: balance; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; inset: 12px auto auto 12px; background: #fff; padding: 8px 14px; }
.skip:not(:focus) { clip-path: inset(50%); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-inner { min-height: 78px; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); font-size: 1.25rem; font-weight: 750; text-decoration: none; letter-spacing: -.045em; }
.brand img { border-radius: 10px; }
.nav { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 2rem); }
.nav > a, .footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.nav > a:hover, .nav > a[aria-current], .footer-links a:hover { text-decoration: underline; }
.language { position: relative; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.language summary { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: 100px; padding: .47rem .9rem; font-size: .94rem; font-weight: 600; white-space: nowrap; }
.language summary::after { content: ""; width: .43rem; height: .43rem; margin-block-start: -.2rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.language ul {
  position: absolute; z-index: 1; inset: 100% 0 auto auto; min-width: 148px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; margin: 8px 0 0; list-style: none; box-shadow: 0 12px 28px #2815431a;
}
.language a { display: block; padding: .47rem .75rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.language a:hover, .language a[aria-current] { background: #efe6fa; color: var(--accent); }

.hero {
  display: grid; grid-template-columns: 1fr minmax(0, .94fr); align-items: center;
  gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2.6rem, 6.6vw, 6.4rem);
}
.hero h1 { font-size: clamp(2.4rem, 5.75vw, 5.8rem); letter-spacing: -.065em; line-height: 1.02; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--accent); }
.hero p { max-width: 32rem; font-size: clamp(1.02rem, 1.6vw, 1.24rem); color: var(--muted); margin-block: 1.55rem 1.9rem; }
.hero-art { border-radius: 46% 46% 22px 22px / 28% 28% 22px 22px; overflow: hidden; box-shadow: 0 22px 45px #33244f24; background: #322b40; }
.hero-art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.button { display: inline-block; background: var(--accent); color: #fff; padding: .84rem 1.3rem; border-radius: 100px; font-weight: 670; text-decoration: none; }
.button:hover { background: #432574; }
.process { display: grid; grid-template-columns: minmax(0, .72fr) 1fr; gap: clamp(2rem, 7vw, 6.5rem); align-items: center; border-top: 1px solid var(--line); padding-block: clamp(2.7rem, 6vw, 5.6rem); }
.process img { border-radius: 22px; width: 100%; }
h2 { font-size: clamp(2rem, 3.7vw, 3.4rem); letter-spacing: -.045em; }
.steps { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.steps li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.steps h3 { font-size: 1.06rem; margin-bottom: .25rem; }
.steps p, .faq-intro, .questions p { color: var(--muted); }
.download { background: #ece2f6; border-radius: 20px; padding: clamp(1.25rem, 4vw, 2.5rem); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 4rem; }
.download a { font-weight: 680; }

.faq { max-width: 850px; padding-block: clamp(3rem, 8vw, 7rem); }
.faq h1 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.055em; }
.faq-intro { margin-block: 1rem 2.3rem; font-size: 1.1rem; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1.15rem 0; font-weight: 650; }
.questions summary::after { content: "+"; color: var(--accent); font-size: 1.35rem; line-height: 1; }
.questions details[open] summary::after { content: "−"; }
.questions p { margin: 0 1.75rem 1.2rem 0; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 88px; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .hero, .process { gap: 1.8rem; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 66px; }
  .brand { gap: 8px; font-size: 1.13rem; }
  .brand img { width: 31px; }
  .language summary { gap: .55rem; padding: .42rem .63rem; }
  .hero, .process { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.5rem, 9.6vw, 4.1rem); }
  .hero-art { max-width: 460px; width: 100%; justify-self: center; }
  .process img { max-width: 460px; order: 1; }
}

:lang(ko) h1, :lang(ko) h2, :lang(ko) p { word-break: keep-all; overflow-wrap: anywhere; }

.footer-links { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-links button { border: 0; padding: .35rem 0; background: none; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .22em; }
.analytics-choice {
  position: fixed; z-index: 3; inset: auto 1rem 1rem auto;
  width: min(24rem, calc(100% - 2rem)); padding: 1.15rem;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 15px 38px #28154324;
}
.analytics-choice h2 { font: 700 1.05rem/1.4 system-ui, sans-serif; letter-spacing: normal; }
.analytics-choice p { margin: .5rem 0 .9rem; color: var(--muted); }
.analytics-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.analytics-actions button {
  min-height: 44px; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 100px;
  font: 650 .925rem/1.25 system-ui, sans-serif; color: var(--accent); background: #fff; cursor: pointer;
}
.analytics-actions button:hover { background: #efe6fa; }
