:root {
  --bg: #efe8db;
  --bg-mid: #f7f2e9;
  --bg-secondary: #d7e4e6;
  --card: #ffffff;
  --ink: #1f2937;
  --ink-strong: #102033;
  --muted: #5f6b7a;
  --line: rgba(16, 32, 51, 0.12);
  --accent: #0f766e;
  --accent-deep: #0b4f4a;
  --accent-soft: #f0fdfa;
  --red: #b3321f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 32, 51, 0.06), 0 10px 30px rgba(16, 32, 51, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 242, 233, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink-strong); font-weight: 800; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--ink-strong); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* ---------- common ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }
h1, h2, h3 { color: var(--ink-strong); letter-spacing: -0.02em; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 1.3em; }
li { margin: 5px 0; }
.note { color: var(--muted); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(15, 118, 110, 0.28);
}
.btn.ghost { background: var(--card); color: var(--ink-strong); box-shadow: none; border: 1px solid var(--line); }
.btn svg.i { width: 20px; height: 20px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-strong); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* ---------- landing ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(15, 118, 110, 0.16), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(215, 228, 230, 0.9), transparent 60%),
    linear-gradient(180deg, var(--bg-mid), var(--bg));
  padding: 40px 0 56px;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 8.4vw, 54px); line-height: 1.18; margin: 14px 0 14px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: var(--muted); font-size: clamp(16px, 4.2vw, 19px); margin: 0 0 24px; max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.hero .facts li { margin: 0; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}

/* phone mockup */
.phone {
  position: relative;
  width: min(330px, 86vw);
  margin: 0 auto;
  aspect-ratio: 9 / 18.6;
  border-radius: 46px;
  padding: 11px;
  background: #0f172a;
  box-shadow: 0 30px 60px rgba(16, 32, 51, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 20px; background: #0f172a; z-index: 3;
}
.screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 30%, #f2faf8);
  display: flex; flex-direction: column;
}
.screen .canvas { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; }
.screen .stage { position: relative; width: 170%; flex: none; margin-left: 50%; transform: translate(-42%, 4%); }
.screen .stage > img { width: 100%; mix-blend-mode: multiply; }
.screen .stage > img.ring {
  position: absolute; width: 25.4%; left: 42%; top: 79%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 10px rgba(16, 32, 51, 0.2));
}
.screen .bar {
  display: grid; grid-template-columns: repeat(5, 1fr) 1.3fr; align-items: center; gap: 2px;
  margin: 0 10px 14px; padding: 8px 6px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(16, 32, 51, 0.1);
  font-size: 9px; color: var(--ink-strong); text-align: center; line-height: 1.2;
}
.screen .bar span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.screen .bar svg.i { width: 16px; height: 16px; stroke-width: 1.7; color: var(--accent); }
.screen .bar .add { background: var(--accent); color: #fff; border-radius: 14px; padding: 6px 0; font-weight: 700; }
.screen .bar .add svg.i { color: #fff; }

/* trust strip */
.strip { background: var(--accent-deep); color: #e6fffb; }
.strip ul { list-style: none; margin: 0 auto; padding-top: 18px; padding-bottom: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.strip li { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.strip svg.i { color: #5eead4; }
@media (min-width: 820px) { .strip ul { grid-template-columns: repeat(4, 1fr); padding-top: 22px; padding-bottom: 22px; } }

/* sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-mid); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 6.4vw, 36px); line-height: 1.25; margin: 8px 0 10px; font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { margin: 0; position: relative; padding: 20px 20px 20px 72px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.2);
}
.steps h3 { margin: 0 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps li { padding: 72px 20px 22px; } }

.split { display: grid; gap: 28px; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } .split.flip > :first-child { order: 2; } }

.ring-figure { max-width: 380px; margin: 0 auto; }
.ring-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ring-legend li { margin: 0; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.ring-legend .dir { flex: none; width: 54px; font-size: 13px; font-weight: 800; color: var(--accent); padding-top: 2px; }
.ring-legend strong { display: block; color: var(--ink-strong); }
.ring-legend span.d { color: var(--muted); font-size: 15px; }

.figure { padding: 12px; }
.figure img { border-radius: 10px; }
.figure .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.figure .scroll img { min-width: 620px; }
.figure figcaption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 10px; }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.cats li { margin: 0; }
.cats .chip b { color: var(--accent); font-weight: 800; }

.privacy-block {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(94, 234, 212, 0.16), transparent 60%),
    var(--accent-deep);
  color: #d5f5ef; border-radius: 28px; padding: 32px 22px;
}
.privacy-block h2 { color: #fff; }
.privacy-block .section-head p:not(.eyebrow) { color: #b7e4dc; }
.privacy-block .eyebrow { color: #5eead4; }
.pgrid { display: grid; gap: 12px; }
.pgrid > div { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 18px; }
.pgrid h3 { color: #fff; margin: 10px 0 4px; font-size: 17px; }
.pgrid p { margin: 0; font-size: 15px; color: #c4ebe4; }
.pgrid svg.i { color: #5eead4; width: 26px; height: 26px; }
.privacy-block .more { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.privacy-block .btn.ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
@media (min-width: 720px) { .privacy-block { padding: 48px 44px; } .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }

.ad-note { display: flex; gap: 14px; align-items: flex-start; }
.ad-note svg.i { color: var(--accent); width: 28px; height: 28px; margin-top: 2px; }
.ad-note h3 { margin: 0 0 4px; font-size: 18px; }
.ad-note p { margin: 0; color: var(--muted); font-size: 15px; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(24px, 6vw, 32px); margin: 0 0 8px; }
.cta p { color: var(--muted); margin: 0 0 20px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- document pages ---------- */
.page-head {
  background:
    radial-gradient(700px 300px at 100% -20%, rgba(15, 118, 110, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-mid), var(--bg));
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(30px, 7.6vw, 42px); line-height: 1.2; margin: 8px 0 8px; font-weight: 800; }
.page-head .meta { margin: 0; color: var(--muted); font-size: 15px; }
.page-head .meta b { color: var(--ink-strong); }

.doc { padding: 28px 0 64px; }
.doc-grid { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .doc-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
  .toc { position: sticky; top: 84px; }
  .toc details > summary { pointer-events: none; }
  .toc details > summary::after { display: none; }
}
.prose { max-width: 720px; }
@media (max-width: 959px) { .toc-desktop { display: none; } }

.toc details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.toc summary { cursor: pointer; padding: 13px 16px; font-weight: 700; color: var(--ink-strong); list-style: none; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "펼치기"; color: var(--accent); font-size: 13px; font-weight: 600; }
.toc details[open] summary::after { content: "접기"; }
.toc ol { list-style: none; margin: 0; padding: 0 8px 10px; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.45; }
.toc a::before { content: counter(toc); color: var(--accent); font-weight: 800; min-width: 1.2em; }
.toc a:hover { background: var(--accent-soft); }

.summary {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 0 0 8px; box-shadow: var(--shadow);
}
.summary .label { margin: 0 0 12px; font-weight: 800; color: var(--accent); font-size: 14px; }
.summary ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.summary li { margin: 0; display: flex; gap: 12px; align-items: flex-start; }
.summary li svg.i { color: var(--accent); margin-top: 2px; }

.prose section { padding-top: 8px; }
.prose h2 { margin: 36px 0 12px; font-size: 21px; line-height: 1.4; display: flex; gap: 12px; align-items: center; }
.prose h2 .q {
  flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 800;
  border: 1px solid rgba(15, 118, 110, 0.2);
}
.prose h3 { margin: 22px 0 6px; font-size: 17px; }
.prose .intro { font-size: 17px; margin: 0 0 20px; }

.callout { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 16px 18px; margin: 16px 0; border: 1px solid; }
.callout svg.i { margin-top: 2px; }
.callout p { margin: 0; }
.callout strong { display: block; margin-bottom: 2px; }
.callout.warn { background: #fff7ed; border-color: rgba(194, 65, 12, 0.22); color: #7c2d12; }
.callout.warn svg.i { color: #c2410c; }
.callout.info { background: var(--accent-soft); border-color: rgba(15, 118, 110, 0.2); color: #134e4a; }
.callout.info svg.i { color: var(--accent); }

.links { list-style: none; padding: 0; display: grid; gap: 8px; }
.links li { margin: 0; }
.links a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 15px; }
.links a::after { content: "↗"; color: var(--muted); }

.table-scroll { overflow-x: auto; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; font-size: 15px; border: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--ink-strong); white-space: nowrap; width: 1%; background: var(--bg-mid); }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* support */
.contact-card { display: grid; gap: 16px; }
.contact-card .row { display: flex; gap: 14px; align-items: center; }
.contact-card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-card .ico svg.i { width: 24px; height: 24px; }
.contact-card .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-card .v { font-size: 18px; font-weight: 800; color: var(--ink-strong); }
.contact-card .v a { color: inherit; text-decoration: none; }
@media (min-width: 720px) { .contact-card { grid-template-columns: 1fr auto; align-items: center; } }

.howto { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: h; }
.howto > li { margin: 0; position: relative; padding: 16px 18px 16px 62px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.howto > li::before {
  counter-increment: h; content: counter(h);
  position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center;
}
.howto strong:first-child { display: block; color: var(--ink-strong); font-size: 16px; margin-bottom: 2px; }
.howto p { margin: 0; color: var(--ink); font-size: 15px; }
.howto ul { margin: 8px 0 0; font-size: 15px; }
.mini-ring { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 10px 0 0; padding: 12px 14px; background: var(--bg-mid); border-radius: 12px; font-size: 14px; }
.mini-ring dt { font-weight: 800; color: var(--accent); }
.mini-ring dd { margin: 0; }

.faq-group { margin: 26px 0 8px; font-size: 14px; font-weight: 800; color: var(--muted); letter-spacing: 0.02em; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: 8px 0; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; color: var(--ink-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 18px 8px; color: var(--ink); font-size: 15px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-mid); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
footer .who { display: flex; align-items: center; gap: 8px; color: var(--ink-strong); font-weight: 700; }
footer .who img { border-radius: 6px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 360px) {
  .brand span { display: none; }
}
