/* Gateway 공개 사이트 · 색은 토큰으로만. 밝은 판(기본) · 어두운 판(OS 설정 또는 data-theme="dark") */
:root {
  --ground: #f4f5fa;
  --ground-2: #eceef6;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --ink: #111529;
  --ink-2: #4a5069;
  --ink-3: #585f7a;
  --line: #dde1ee;
  --line-strong: #c4cadd;
  --accent: #4b55e6;
  --accent-ink: #ffffff;
  --accent-soft: #e8eafe;
  --blue: #2f74e8;
  --teal: #0b7562;
  --teal-soft: #e0f4ef;
  --violet: #6e4fd6;
  --violet-soft: #eee9fd;
  --coral: #b83044;
  --coral-soft: #fbe7ea;
  --warn: #9a6200;
  --ok: #18794e;
  --shadow: 0 1px 2px rgba(17, 21, 41, .06), 0 8px 24px -12px rgba(17, 21, 41, .18);
  --radius: 8px;
  --radius-sm: 6px;
  --font: "Pretendard", "Pretendard Variable", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0a0e1c;
    --ground-2: #0f1426;
    --surface: #121830;
    --surface-2: #161d38;
    --ink: #e8ebf7;
    --ink-2: #a8afc8;
    --ink-3: #848ba6;
    --line: #232b48;
    --line-strong: #323c60;
    --accent: #8f97ff;
    --accent-ink: #0a0e1c;
    --accent-soft: #1d2352;
    --blue: #6fa6ff;
    --teal: #43cdb0;
    --teal-soft: #0f2b2a;
    --violet: #ad92ff;
    --violet-soft: #231d45;
    --coral: #ff7d8c;
    --coral-soft: #3a1720;
    --warn: #f0b44c;
    --ok: #5fd39a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0a0e1c;
  --ground-2: #0f1426;
  --surface: #121830;
  --surface-2: #161d38;
  --ink: #e8ebf7;
  --ink-2: #a8afc8;
  --ink-3: #848ba6;
  --line: #232b48;
  --line-strong: #323c60;
  --accent: #8f97ff;
  --accent-ink: #0a0e1c;
  --accent-soft: #1d2352;
  --blue: #6fa6ff;
  --teal: #43cdb0;
  --teal-soft: #0f2b2a;
  --violet: #ad92ff;
  --violet-soft: #231d45;
  --coral: #ff7d8c;
  --coral-soft: #3a1720;
  --warn: #f0b44c;
  --ok: #5fd39a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ── 바탕 ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .9em; }

/* ── 머리 ── */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name { font-size: 1.15rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 600; }
.nav a:hover { color: var(--ink); background: var(--ground-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: var(--accent-ink); margin-left: 6px; }
.nav .btn:hover { color: var(--accent-ink); background: var(--accent); filter: brightness(1.08); }
.theme-toggle, .nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.theme-toggle { margin-left: 6px; }
.theme-toggle svg, .nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.nav-toggle { display: none; margin-left: auto; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 18px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 6px 0 0; text-align: center; }
  .theme-toggle { margin: 8px 0 0; width: 100%; }
}

/* ── 단추 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn-sm { min-height: 38px; padding: 6px 14px; border-radius: 10px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); filter: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── 구역 ── */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--ground-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; letter-spacing: .02em; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 62ch; margin-top: 16px; }
.head-block { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }

/* ── 히어로 ── */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 .soft { color: var(--ink-2); font-weight: 700; display: block; font-size: .62em; margin-top: 14px; letter-spacing: -0.01em; }
.hero .actions { margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 1040px) { .hero-grid { grid-template-columns: 1fr; } .converge { max-width: 640px; } }

/* 다섯 입구 → 티켓 한 장 그림 */
.converge { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
.converge-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.78fr) 44px minmax(0, 1.3fr); gap: 0; align-items: stretch; }
.converge-grid .doors { align-content: space-between; padding-block: 4px; }
.funnel { width: 44px; height: 100%; align-self: stretch; }
.funnel path { fill: none; stroke: var(--accent); stroke-opacity: .55; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.converge-grid .ticket { align-self: center; }
.doors { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.door { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.door i { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--ground-2); color: var(--ink-2); font-style: normal; }
.door svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ticket { border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); padding: 16px; box-shadow: var(--shadow); }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--ink-3); }
.ticket-title { margin: 8px 0 12px; font-weight: 700; font-size: 1rem; line-height: 1.45; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--ground-2); color: var(--ink-2); white-space: nowrap; }
.pill.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.p-accent { background: var(--accent-soft); color: var(--accent); }
.pill.p-teal { background: var(--teal-soft); color: var(--teal); }
.pill.p-violet { background: var(--violet-soft); color: var(--violet); }
.pill.p-coral { background: var(--coral-soft); color: var(--coral); }
.timeline { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; font-size: .82rem; color: var(--ink-2); }
.timeline time { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); padding-top: 1px; }
@media (max-width: 560px) {
  .converge-grid { grid-template-columns: 1fr; gap: 14px; }
  .funnel { display: none; }
  .converge-grid .doors { display: flex; flex-wrap: wrap; gap: 8px; }
  .door { padding: 6px 10px; font-size: .85rem; white-space: nowrap; }
  .door i { width: 22px; height: 22px; }
}

/* ── 문제 ── */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.scatter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.scatter span { padding: 8px 14px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--ink-2); font-weight: 600; font-size: .92rem; background: var(--surface); }
.ask { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.ask blockquote { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.ask ol { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ask li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.ask li b { color: var(--coral); font-family: var(--mono); font-size: .85rem; }
.turn { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 700; }
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }

/* ── 세 약속 ── */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.promise { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.promise .tag { align-self: flex-start; }
.promise h3 { font-size: 1.3rem; }
.promise .big { font-weight: 700; color: var(--ink); }
.promise ul { margin: 4px 0 0; padding-left: 1.1em; color: var(--ink-2); display: grid; gap: 6px; font-size: .95rem; }
.promise.t1 { border-top: 4px solid var(--accent); }
.promise.t2 { border-top: 4px solid var(--teal); }
.promise.t3 { border-top: 4px solid var(--violet); }
@media (max-width: 920px) { .promises { grid-template-columns: 1fr; } }

/* ── 전후 비교 ── */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; align-content: start; }
.cmp h3 { display: flex; align-items: center; gap: 10px; }
.cmp-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; font-size: .95rem; }
.cmp-row dt { font-size: .8rem; font-weight: 700; color: var(--ink-3); padding-top: 2px; }
.cmp-row dd { margin: 0; color: var(--ink-2); }
.cmp-row.after dt { color: var(--accent); }
.cmp-row.after dd { color: var(--ink); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ── 모듈 목록 ── */
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.module h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.module p { margin-top: 6px; font-size: .9rem; color: var(--ink-2); }
.module svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 920px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .modules { grid-template-columns: 1fr; } }

/* ── 보안 · AI ── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 5px; border-radius: 6px; background: var(--teal-soft); box-shadow: inset 0 0 0 2px var(--teal); }
.checks b { color: var(--ink); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
.cmp-table caption { text-align: left; padding: 16px 18px 4px; font-weight: 700; }
.cmp-table th, .cmp-table td { text-align: left; padding: 12px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.cmp-table thead th { font-size: .8rem; color: var(--ink-3); font-weight: 700; border-top: 0; }
.cmp-table tbody th { font-weight: 700; white-space: nowrap; }
.cmp-table td.good { color: var(--ink); }
.cmp-table td .note { display: block; color: var(--ink-3); font-size: .82rem; }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.reason { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.reason b { display: block; }
.reason span { color: var(--ink-2); font-size: .9rem; }
.ai-note { margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); font-size: .93rem; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .reasons { grid-template-columns: 1fr; } }

/* ── 나무 · 공정 단계 ── */
.tree { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tree > div { padding: 20px; border-left: 1px solid var(--line); }
.tree > div:first-child { border-left: 0; }
.tree b { display: block; font-size: .8rem; color: var(--ink-3); letter-spacing: .04em; }
.tree strong { display: block; font-size: 1.1rem; margin: 2px 0 6px; }
.tree span { color: var(--ink-2); font-size: .9rem; }
@media (max-width: 760px) { .tree { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tree > div:nth-child(3) { border-left: 0; } .tree > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.stages { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: st; }
.stages li { counter-increment: st; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.stages li::before { content: counter(st); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--ground-2); color: var(--ink-3); font-size: .75rem; font-family: var(--mono); }
.custom { margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); border: 1px dashed var(--line-strong); color: var(--ink-2); }
.custom b { color: var(--ink); }

/* ── 화면 미리보기(가상 자료) ── */
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.pv-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .8rem; color: var(--ink-3); }
.pv-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.pv-bar span { margin-left: 8px; }
.pv-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.pv-list { border-right: 1px solid var(--line); }
.pv-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.pv-row:last-child { border-bottom: 0; }
.pv-row .mono { color: var(--ink-3); }
.pv-row.sel { background: var(--accent-soft); }
.pv-row .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-detail { padding: 18px; display: grid; gap: 12px; align-content: start; font-size: .88rem; }
.pv-detail h3 { font-size: 1rem; }
.pv-msg { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pv-msg.internal { background: var(--surface-2); border-style: dashed; }
.pv-msg small { display: block; color: var(--ink-3); font-size: .76rem; margin-bottom: 2px; }
.pv-caption { margin-top: 14px; font-size: .85rem; color: var(--ink-3); }
@media (max-width: 760px) { .pv-body { grid-template-columns: 1fr; } .pv-list { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ── FAQ ── */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); display: grid; gap: 8px; }

/* ── 마무리 ── */
.closing { text-align: center; }
.closing h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.closing .lede { margin-inline: auto; }
.closing .actions { justify-content: center; margin-top: 28px; }

/* ── 기능 페이지 ── */
.feat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.feat-nav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 600; }
.feat-nav a:hover { color: var(--ink); border-color: var(--line-strong); }
.feat-group { padding-block: 44px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); }
.feat-group h2 { font-size: 1.45rem; }
.feat-group > div > p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.feat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.feat-item { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.feat-item dt { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feat-item dd { margin: 6px 0 0; color: var(--ink-2); font-size: .92rem; }
@media (max-width: 860px) { .feat-group { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .feat-list { grid-template-columns: 1fr; } }

/* ── 양식(상담 · 로그인) ── */
.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 920px) { .form-shell { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 3.5vw, 32px); box-shadow: var(--shadow); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
label, .label { font-weight: 700; font-size: .92rem; }
.req { color: var(--coral); margin-left: 3px; }
.hint { font-size: .82rem; color: var(--ink-3); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--coral); }
.err-text { color: var(--coral); font-size: .84rem; min-height: 0; }
.err-text:empty { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.chip input:checked + span { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { border: 1px solid var(--line-strong); border-radius: 8px; padding: 16px 18px; background: var(--surface-2); display: grid; gap: 12px; }
.consent table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.consent th, .consent td { text-align: left; vertical-align: top; padding: 8px 0; border-top: 1px solid var(--line); }
.consent th { width: 108px; color: var(--ink-3); font-weight: 700; padding-right: 10px; }
.consent .retention { font-size: 1.25em; font-weight: 800; color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 8px; font-size: .93rem; border: 1px solid var(--line); background: var(--surface-2); }
.notice.info { background: var(--accent-soft); border-color: transparent; }
.notice.ok { background: var(--teal-soft); border-color: transparent; color: var(--ink); }
.notice.bad { background: var(--coral-soft); border-color: transparent; color: var(--ink); }
.notice:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.side-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.side-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.side-list li b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-family: var(--mono); }
.login-wrap { max-width: 440px; margin: 0 auto; }
.login-wrap h1 { font-size: 1.8rem; text-align: center; }
.login-wrap .lede { text-align: center; margin-inline: auto; }
.login-wrap form { display: grid; gap: 16px; margin-top: 26px; }

/* ── 문서(처리방침) ── */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.doc h2 { font-size: 1.25rem; margin-top: 40px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 1.2em; display: grid; gap: 6px; margin: 10px 0 0; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .93rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); }
.doc .meta { margin-top: 12px; color: var(--ink-3); font-size: .9rem; }

/* ── 바닥 ── */
.foot { border-top: 1px solid var(--line); background: var(--ground-2); padding-block: 48px 32px; font-size: .9rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.4fr); gap: 32px; }
.foot-line { margin-top: 10px; }
.foot-nav { display: grid; gap: 8px; align-content: start; }
.foot-nav a { color: var(--ink-2); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-nav strong { color: var(--ink); }
.foot-biz { margin: 0; display: grid; gap: 6px; }
.foot-biz div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.foot-biz dt { color: var(--ink-3); }
.foot-biz dd { margin: 0; }
.foot-copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .84rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── 404 ── */
.nf { text-align: center; padding-block: 120px; }
.nf .code { font-family: var(--mono); color: var(--ink-3); }

@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform .2s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .foot, .nav-toggle, .theme-toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* ── 간격 도우미(인라인 style 금지: CSP) ── */
.mt-22 { margin-top: 22px; }
.mt-28 { margin-top: 28px; }
.nf .actions { justify-content: center; }
.login-wrap > .notice { margin: 22px 0 16px; }

.pv-title { font-weight: 700; font-size: 1rem; }
.preview { margin: 0; }

/* ── 그래픽 자리(gfx) ── */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero-visual { min-width: 0; }
.gfx-block { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 12px; }
.gfx-head { display: grid; gap: 4px; }
.gfx-title { font-size: 1.05rem; }
.gfx-note { color: var(--ink-2); font-size: .9rem; }
.gfx-static { padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: 6px; color: var(--ink-2); background: var(--surface); }
kbd { font-family: var(--mono); font-size: .8em; padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--ink); }
.ask li b { font-family: var(--font); font-size: .78rem; white-space: nowrap; padding: 2px 8px; border-radius: 4px; background: var(--coral-soft); }
.pill .gw-icon, .eyebrow .gw-icon { width: 14px; height: 14px; color: currentColor; }
.pill .gw-icon { margin-right: 4px; vertical-align: -2px; }
.module h3 .gw-icon, .feat-group h2 .gw-icon { width: 20px; height: 20px; margin-right: 8px; vertical-align: -3px; }
[data-gfx="bench"] > .preview { margin: 0; }
