/* allowip web: 공용 스타일 (빌드 없음). 결정 이유는 web/DESIGN_NOTES.md
   웹폰트(Pretendard, IBM Plex Mono)는 각 HTML <head>에서 렌더링을 막지 않게 불러온다. */

/* ------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "D2Coding", monospace;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --sunk: #eef0f3;
  --fg: #14171c;
  --muted: #4a525c;
  --faint: #5f6872;
  --line: #dde1e6;
  --line-strong: #b8bfc8;

  --go: #0a7353;          /* 허용·200·주요 버튼. 흰 바탕 대비 5.9:1 */
  --go-ink: #ffffff;
  --go-soft: #e3f3ec;
  --stop: #b42318;        /* 403·거절에만 */
  --stop-soft: #fbe9e7;
  --wait: #8a5300;        /* 검증 중·만료 임박 */
  --wait-soft: #f8eedc;

  --code-bg: #f0f2f5;
  --code-fg: #1b1f24;
  --code-com: #5d6670;
  --code-key: #0a6b4d;
  --code-fn: #6a4fa3;
  --code-str: #9a4a12;
  --code-num: #8a5300;
  --code-pun: #4a525c;

  --focus: #1f5fd1;
  --r-sm: 6px;
  --r: 10px;
  --wrap: 1120px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1216;
  --surface: #161a20;
  --sunk: #1b2027;
  --fg: #e7e9ec;
  --muted: #a7b0ba;
  --faint: #8f99a4;
  --line: #262c34;
  --line-strong: #3b434e;
  --go: #3fcf95;
  --go-ink: #04140d;
  --go-soft: #10271e;
  --stop: #ff8f84;
  --stop-soft: #2c1513;
  --wait: #f0bb63;
  --wait-soft: #2a2113;
  --code-bg: #12161b;
  --code-fg: #dfe3e8;
  --code-com: #8a949f;
  --code-key: #5fd3a2;
  --code-fn: #b9a3f0;
  --code-str: #e8b27a;
  --code-num: #e8c37a;
  --code-pun: #a7b0ba;
  --focus: #86b2ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1216;
    --surface: #161a20;
    --sunk: #1b2027;
    --fg: #e7e9ec;
    --muted: #a7b0ba;
    --faint: #8f99a4;
    --line: #262c34;
    --line-strong: #3b434e;
    --go: #3fcf95;
    --go-ink: #04140d;
    --go-soft: #10271e;
    --stop: #ff8f84;
    --stop-soft: #2c1513;
    --wait: #f0bb63;
    --wait-soft: #2a2113;
    --code-bg: #12161b;
    --code-fg: #dfe3e8;
    --code-com: #8a949f;
    --code-key: #5fd3a2;
    --code-fn: #b9a3f0;
    --code-str: #e8b27a;
    --code-num: #e8c37a;
    --code-pun: #a7b0ba;
    --focus: #86b2ff;
  }
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--go) 28%, transparent); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 1.25rem + 2.4vw, 2.9rem); font-weight: 700; letter-spacing: -0.032em; line-height: 1.22; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: .9em; }
:not(pre) > code { background: var(--sunk); border: 1px solid var(--line); border-radius: 4px; padding: .05em .35em; overflow-wrap: anywhere; word-break: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
strong { font-weight: 650; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 18px; } }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-weight: 500; font-size: 15px; text-decoration: none; letter-spacing: -0.01em; }
/* 로고 v3 (assets/brand/v3/lockup-currentcolor.svg 인라인): 잉크 = currentColor(--fg), 심볼·"ip" = --go */
.brand { color: var(--fg); }
.brand-logo { display: block; height: 24px; width: auto; flex: none; overflow: visible; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; padding: 8px 10px; border-radius: var(--r-sm); min-height: 40px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--sunk); }
.theme-btn { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--muted); width: 40px; height: 40px; border-radius: var(--r-sm); display: inline-grid; place-items: center; cursor: pointer; margin-left: 4px; }
.theme-btn:hover { color: var(--fg); border-color: var(--line-strong); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
@media (max-width: 760px) {
  .nav .nav-hide { display: none; }
  .nav a { padding: 8px 8px; font-size: 14.5px; }
  .site-header .wrap { gap: 8px; }
}

/* ------------------------------------------------------------ buttons */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid var(--fg); background: var(--fg); color: var(--bg); font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: color-mix(in srgb, var(--fg) 86%, var(--bg)); }
.btn-go { background: var(--go); border-color: var(--go); color: var(--go-ink); }
.btn-go:hover { background: color-mix(in srgb, var(--go) 88%, var(--fg)); }
.btn-line { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-line:hover { background: var(--sunk); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }

.copy-btn { appearance: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 10px; min-height: 32px; cursor: pointer; white-space: nowrap; }
.copy-btn:hover { color: var(--fg); border-color: var(--line-strong); }
.copy-btn[data-copied="true"] { color: var(--go); border-color: var(--go); }
@media (pointer: coarse) { .copy-btn { min-height: 40px; padding: 6px 14px; } }

/* ------------------------------------------------------------ badges */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1; padding: 6px 9px; border-radius: var(--r-sm); white-space: nowrap; border: 1px solid; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--go); background: var(--go-soft); border-color: color-mix(in srgb, var(--go) 35%, transparent); }
.status-wait { color: var(--wait); background: var(--wait-soft); border-color: color-mix(in srgb, var(--wait) 35%, transparent); }
.status-bad { color: var(--stop); background: var(--stop-soft); border-color: color-mix(in srgb, var(--stop) 35%, transparent); }

/* ------------------------------------------------------------ code */
.code { position: relative; min-width: 0; background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.code-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.code-head .code-file { flex: 1; color: var(--fg); }
.code-head .code-lang { flex: none; font-size: 11.5px; color: var(--faint); letter-spacing: .02em; }
.code pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; color: var(--code-fg); font-size: 13.5px; line-height: 1.7; tab-size: 2; }
.code pre code { font-size: inherit; white-space: pre; }
.code pre:focus-visible { outline-offset: -2px; }
.tok-c { color: var(--code-com); font-style: italic; }
.tok-k { color: var(--code-key); }
.tok-s { color: var(--code-str); }
.tok-n { color: var(--code-num); }
.code + .code { margin-top: 14px; }

/* HTTP 응답 블록: 페이지의 반복 모티프 */
.resp { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 14px; overflow: hidden; min-width: 0; }
.resp .mono, .resp-code, .resp-url, .resp-req b { font-family: var(--font-mono); font-size: 13.5px; }
.resp + .resp { margin-top: 12px; }
.resp-req { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; min-width: 0; }
.resp-url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resp-url-ko { font-family: var(--font-sans); font-size: 14px; }
.resp-req .resp-tag { flex: none; margin-left: auto; white-space: nowrap; }
.resp-req > :not(b) { min-width: 0; }
.resp-req b { color: var(--fg); font-weight: 500; }
.resp-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.resp-line { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.resp-code { font-weight: 500; padding: 1px 7px; border-radius: 4px; }
.resp-bad .resp-code { color: var(--stop); background: var(--stop-soft); }
.resp-ok .resp-code { color: var(--go); background: var(--go-soft); }
.resp-msg { font-family: var(--font-sans); font-size: 15px; }
.resp-note { color: var(--faint); font-family: var(--font-sans); font-size: 13.5px; }

/* ------------------------------------------------------------ sections */
section { scroll-margin-top: 70px; }
.sec { padding: 88px 0; border-top: 1px solid var(--line); }
.sec-tight { padding: 64px 0; }
@media (max-width: 760px) { .sec { padding: 56px 0; } .sec-tight { padding: 44px 0; } }
.sec h2 { margin-bottom: 14px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--fg); }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------ hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero-aside { display: grid; gap: 12px; padding-top: 6px; }
.hero-aside .code pre { font-size: 13px; }
@media (max-width: 520px) { .hero-aside .code pre { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; } .hero-aside .code pre code { white-space: inherit; } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding: 44px 0 56px; }
}

/* ------------------------------------------------------------ platform list */

/* ------------------------------------------------------------ how it works */
.seesplit { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-strong); }
.seesplit > div { padding: 20px 24px 8px 0; }
.seesplit > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.seesplit h3 { margin-bottom: 10px; }
.seesplit ul { margin: 0; padding-left: 1.1em; }
.seesplit li { margin-bottom: 6px; }
@media (max-width: 700px) {
  .seesplit { grid-template-columns: 1fr; }
  .seesplit > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
.note { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 16px 20px; margin-top: 32px; max-width: 76ch; }
.note p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 28px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan h3 { font-size: 1.15rem; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.plan-price .amt { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--muted); }
.plan-price .alt { color: var(--muted); font-size: 15px; }
.plan-sum { color: var(--muted); margin: 0; }
.plan ul { margin: 0; padding-left: 1.1em; }
.plan li { margin-bottom: 4px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.terms { margin-top: 36px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line-strong); max-width: 880px; }
.terms dt, .terms dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 650; padding-right: 16px; }
.terms dd { color: var(--muted); }
@media (max-width: 600px) {
  .terms { grid-template-columns: 1fr; }
  .terms dt { border-bottom: 0; padding-bottom: 0; }
}

/* ------------------------------------------------------------ comparison table → stacked on mobile */
.cmp { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 13.5px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.cmp tbody th { font-weight: 650; }
.cmp .tbd { color: var(--wait); font-size: 14px; }
.cmp tr.self th, .cmp tr.self td { background: color-mix(in srgb, var(--go-soft) 60%, transparent); }
.cmp tr.self th { padding-left: 12px; }
@media (max-width: 760px) {
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr { border-top: 1px solid var(--line-strong); padding: 14px 0; }
  .cmp tr.self { padding: 14px 12px; background: color-mix(in srgb, var(--go-soft) 60%, transparent); }
  .cmp tr.self th, .cmp tr.self td { background: none; padding-left: 0; }
  .cmp th, .cmp td { border: 0; padding: 3px 0; }
  .cmp tbody th { font-size: 1.05rem; margin-bottom: 4px; }
  .cmp td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
  .cmp td + td { margin-top: 6px; }
}

/* ------------------------------------------------------------ signup */
.steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 20px 42px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 13.5px; font-weight: 650; font-family: var(--font-mono); background: var(--surface); }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 1px; background: var(--line); }
.steps strong { display: block; }
.steps p { margin: 2px 0 0; color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-width: 0; }
@media (max-width: 600px) { .panel { padding: 18px; } }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13.5px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], select {
  font: inherit; font-size: 16px; width: 100%; min-height: 46px; padding: 10px 12px;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
input::placeholder { color: var(--faint); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[aria-invalid="true"] { border-color: var(--stop); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 4px 0 20px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--go); flex: none; }
.radio-row { display: grid; gap: 8px; }
.radio { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; min-height: 46px; }
.radio input { accent-color: var(--go); width: 18px; height: 18px; margin: 0; }
.radio:has(input:checked) { border-color: var(--go); background: var(--go-soft); }
.radio span { flex: 1; }
.radio b { font-variant-numeric: tabular-nums; font-weight: 600; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
fieldset legend { margin-bottom: 6px; padding: 0; }

.alert { border: 1px solid; border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 16px; font-size: 15px; }
.alert p { margin: 0; }
.alert p + p { margin-top: 6px; }
.alert-bad { color: var(--fg); background: var(--stop-soft); border-color: color-mix(in srgb, var(--stop) 40%, transparent); }
.alert-bad strong { color: var(--stop); }
.alert-warn { color: var(--fg); background: var(--wait-soft); border-color: color-mix(in srgb, var(--wait) 40%, transparent); }
.alert-warn strong { color: var(--wait); }
.alert-ok { color: var(--fg); background: var(--go-soft); border-color: color-mix(in srgb, var(--go) 40%, transparent); }
.alert-ok strong { color: var(--go); }

.kv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 14px; margin: 16px 0; border-top: 1px solid var(--line); }
.kv dt, .kv dd, .kv .act { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; display: flex; align-items: center; min-height: 52px; }
.kv dt { color: var(--muted); font-size: 14.5px; }
.kv dd { font-family: var(--font-mono); font-size: 15px; overflow-wrap: anywhere; }
.kv dd.hl { color: var(--go); font-weight: 500; }

.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* ------------------------------------------------------------ footer */
/* pass 12: 브랜드 + 4열 + 얇은 하단 줄 */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; color: var(--muted); background: var(--bg); }
.ft-top { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2.4fr); gap: 40px 48px; padding-bottom: 40px; }
.ft-brand .brand { display: inline-flex; }
.ft-brand p { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.ft-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.ft-col h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--fg); margin: 0 0 14px; text-wrap: nowrap; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft-col li { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; border-radius: 4px; transition: color .15s; }
.site-footer a:hover { color: var(--fg); }
.site-footer a:focus-visible { color: var(--fg); outline: 2px solid var(--focus); outline-offset: 3px; }
.ft-col a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.ft-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; font-size: 12.5px; color: var(--muted); }
.ft-bottom p { margin: 0; }
@media (max-width: 860px) {
  .ft-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .site-footer { padding-top: 40px; }
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .ft-col ul { gap: 4px; }
  .ft-col a { display: inline-block; padding: 6px 0; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------ platform docs layout */
.doc-head { padding: 52px 0 36px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.doc-head h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin-bottom: 14px; max-width: 24ch; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; font-size: 14.5px; color: var(--muted); }
.doc-head .lead { margin-bottom: 0; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 64px; padding-top: 44px; padding-bottom: 80px; }
.doc main, .doc article { min-width: 0; max-width: 740px; }
.doc article > section { padding: 8px 0 36px; }
.doc article > section + section { border-top: 1px solid var(--line); padding-top: 36px; }
.doc h2 { font-size: 1.45rem; margin-bottom: 14px; }
.doc h3 { margin: 24px 0 8px; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.doc .code, .doc .resp { margin: 16px 0; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14px; }
.toc p { font-weight: 650; margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--fg); border-left-color: var(--fg); }
.toc .toc-cta { margin-top: 20px; display: inline-flex; padding: 6px 12px; color: var(--go-ink); border-left: 1px solid var(--go); margin-left: 0; }
.toc .toc-cta:hover { color: var(--go-ink); border-left-color: var(--go); }
@media (max-width: 980px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .toc { display: none; }
}
.callout { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; background: var(--surface); margin: 16px 0; }
.callout-wait { border-color: color-mix(in srgb, var(--wait) 45%, transparent); background: var(--wait-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: inherit; }
.snippet-pending { padding: 18px 16px; color: var(--muted); font-size: 15px; margin: 0; }
.end-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 20px 24px; }
.end-cta p { margin: 0; }
.other-platforms { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }

/* ------------------------------------------------------------ dashboard */
.dash { padding: 40px 0 72px; }
.login { max-width: 520px; margin: 40px auto; }
.login h1, .login .login-h { font-size: 1.6rem; margin-bottom: 8px; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; min-width: 0; }
.dash-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.dash-top h1 { font-size: 1.7rem; }
.who { font-family: var(--font-mono); font-size: 14px; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.toolbar { display: flex; gap: 8px; }
.ip-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; padding: 24px 0 28px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.ip-label { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.ip-value { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ip-howto { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 15px; max-width: 70ch; }
.ip-howto strong { color: var(--fg); }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; }
.dgrid > section { padding: 24px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.dgrid .full { grid-column: 1 / -1; }
.dgrid h2 { font-size: 1.05rem; margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.dgrid h2 small { font-weight: 400; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .dgrid { grid-template-columns: minmax(0, 1fr); } .ip-hero { grid-template-columns: minmax(0, 1fr); } }
.big { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.big small { font-size: 15px; font-weight: 400; color: var(--muted); }
.url-box { display: flex; align-items: center; gap: 8px; background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 8px 8px 14px; }
.url-box code { flex: 1; min-width: 0; font-size: 14px; overflow-x: auto; white-space: nowrap; background: none; border: 0; padding: 4px 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.mini dt { font-size: 13.5px; color: var(--muted); }
.mini dd { margin: 0; font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.hosts { list-style: none; margin: 0 0 10px; padding: 0; font-family: var(--font-mono); font-size: 14px; }
.hosts li { padding: 6px 0; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.logs { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.logs th, .logs td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.logs th { font-size: 13px; color: var(--muted); font-weight: 600; border-bottom-color: var(--line-strong); }
.logs .num { text-align: right; }
.logs td.ts, .logs td.host, .logs td.num { font-family: var(--font-mono); font-size: 13.5px; }
.logs .empty { white-space: normal; color: var(--muted); padding: 20px 0; }
.res { font-family: var(--font-mono); font-size: 12.5px; padding: 2px 7px; border-radius: 4px; }
.res-ok { color: var(--go); background: var(--go-soft); }
.res-denied { color: var(--stop); background: var(--stop-soft); }
.res-upstream_error { color: var(--wait); background: var(--wait-soft); }
@media (max-width: 600px) {
  .logs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .logs, .logs tbody, .logs tr, .logs td { display: block; }
  .logs tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .logs td { border: 0; padding: 0; white-space: normal; }
  .logs td.host { grid-column: 1; grid-row: 1; overflow-wrap: anywhere; }
  .logs td.result { grid-column: 2; grid-row: 1; }
  .logs td.ts { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 13px; }
  .logs td.num { display: none; }
  .logs td.dur { display: block; grid-column: 2; grid-row: 2; color: var(--muted); font-size: 13px; text-align: right; }
}

.mock-banner { background: var(--wait-soft); color: var(--fg); border-bottom: 1px solid color-mix(in srgb, var(--wait) 45%, transparent); font-size: 13.5px; padding: 8px 18px; text-align: center; }
.mock-banner strong { color: var(--wait); }
[hidden] { display: none !important; }

.callout-bad { border-color: color-mix(in srgb, var(--stop) 45%, transparent); background: var(--stop-soft); }

/* trading page */
.setup { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 32px; max-width: 820px; }
.setup-item { min-width: 0; }
.setup-item h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; font-size: 1.15rem; }
.setup-item h3 .status { font-size: 12.5px; }
.setup-item > p { max-width: 70ch; }
.setup-item .code { margin: 14px 0 10px; }
.hostlist { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hostlist code { font-size: 14px; padding: 4px 8px; }
.field-label { font-weight: 600; font-size: 15px; }
.field-static { display: inline-flex; align-self: start; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--sunk); font-weight: 600; }
.callout-wait[data-trading-live] { margin-top: 16px; max-width: 820px; }

/* 준비 중: 상태 표시만 하고 경고색은 쓰지 않음 */
.status-plan { color: var(--muted); background: var(--sunk); border-color: var(--line-strong); }

/* 결제 단계 (결제 다이얼로그 안) */
.pay { display: grid; gap: 16px; text-align: center; }
.pay-title { font-size: 1.35rem; outline: none; }
.pay-sub { margin: -8px 0 0; color: var(--muted); font-size: 14.5px; }
.pay-qr { display: grid; justify-items: center; gap: 10px; padding: 8px 0 4px; }
/* QR은 테마와 관계없이 흰 바탕: 카메라 인식용 */
.toss-qr-img { position: relative; width: 224px; height: 224px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 0 0 1px var(--line); }
.toss-qr-img svg { width: 100%; height: 100%; display: block; }
.toss-qr-logo { position: absolute; left: 50%; top: 50%; width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%); background: #fff; border-radius: 22%; display: grid; place-items: center; }
.toss-qr-logo img { width: 82%; height: 82%; }
.pay-amount { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pay-account { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; color: var(--muted); flex-wrap: wrap; }
.pay-account .mono { color: var(--fg); font-size: 15px; }
.toss-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 14px; background: #0064FF; color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
.toss-btn:hover { background: #0057de; }
.toss-btn img { width: 24px; height: 24px; }
.pay > .btn-block { min-height: 52px; font-size: 16px; }
.pay-back { justify-self: start; appearance: none; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14.5px; padding: 6px 2px; min-height: 36px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.pay-back:hover { color: var(--fg); }
.pay input[type="text"] { text-align: center; font-size: 18px; min-height: 52px; }
.pay-done { padding: 12px 0; }
.pay-done p { margin: 0; color: var(--muted); }
.pay-ref { font-size: 12.5px; color: var(--faint) !important; font-family: var(--font-mono); }
@media (max-width: 600px) {
  .panel:has(.pay) { padding: 20px 18px; }
}

/* ================================================================ allowip pass 9 */
/* header CTA */
.nav-cta { margin-left: 6px; min-height: 36px; color: var(--go-ink) !important; background: var(--go) !important; }
.nav-cta:hover { background: color-mix(in srgb, var(--go) 88%, var(--fg)) !important; }
@media (max-width: 420px) { .nav > a:not(.nav-cta):not(.nav-hide) { display: none; } }


/* --- 플랫폼 선택 타일 --- */
.picker { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 18px; min-height: 92px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--line-strong); }
@media (prefers-reduced-motion: no-preference) { .tile:hover { transform: translateY(-1px); } }
.tile-glyph { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--sunk); color: var(--fg); }
.tile-glyph svg { width: 26px; height: 26px; }
.tile-name { grid-column: 2; grid-row: 1; font-weight: 700; font-size: 1.05rem; line-height: 1.3; min-width: 0; }
.tile-sub { grid-column: 2; grid-row: 2; font-size: 14px; color: var(--muted); line-height: 1.4; min-width: 0; }
.tile .status { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 12px; padding: 4px 7px; }
.tile .status-ok { background: transparent; border-color: transparent; padding-right: 0; }
@media (max-width: 1060px) { .picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .picker { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tile { min-height: 72px; padding: 14px 16px; }
}


/* --- 하단 CTA 띠 --- */
/* pass 12: 바닥글 위 CTA 카드 */
.cta-sec { padding: 24px 0 72px; }
.cta-card { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 36px 40px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--go) 28%, var(--line)); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--go) 14%, transparent) 0%, transparent 55%), linear-gradient(180deg, color-mix(in srgb, var(--go-soft) 55%, var(--surface)), var(--surface)); }
.cta-copy h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0; }
.cta-copy p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.cta-act { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-link { color: var(--fg); font-weight: 600; font-size: 15px; text-decoration: none; }
.cta-link::after { content: " →"; color: var(--go); }
.cta-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) {
  .cta-sec { padding: 8px 0 48px; }
  .cta-card { padding: 26px 22px 24px; }
  .cta-act { width: 100%; }
  .cta-act .btn { flex: 1; }
}

/* --- 결제 다이얼로그 --- */
html.co-lock, html.co-lock body { overflow: hidden; }
.checkout { padding: 0; border: 0; background: transparent; width: min(480px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); overflow: visible; color: var(--fg); }
.checkout::backdrop { background: rgba(10, 12, 16, .5); }
.co-sheet { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); max-height: calc(100dvh - 48px); overflow: auto; padding: 28px 28px 24px; }
.co-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: var(--r-sm); cursor: pointer; z-index: 1; }
.co-close:hover { color: var(--fg); background: var(--sunk); }
.co-title { font-size: 1.35rem; text-align: center; outline: none; margin-bottom: 6px; }
.co-form .field { margin-bottom: 14px; }
.co-form fieldset { margin-bottom: 16px; }
.co-form .btn-block { min-height: 50px; font-size: 16px; }
.co-consent { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.co-consent a { color: var(--muted); }
.checkout .pay { padding-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .checkout[open] .co-sheet { animation: co-in .18s ease-out; }
  @keyframes co-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 640px) {
  .checkout { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; }
  .co-sheet { min-height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; padding: 60px 20px calc(24px + env(safe-area-inset-bottom)); }
  .co-close { top: calc(8px + env(safe-area-inset-top)); right: 8px; }
}


/* ================================================================ pass 10 */
/* --- 코드 하이라이트 (Prism 토큰, 사이트 변수로 라이트/다크) --- */
.code .token.comment, .code .token.prolog, .code .token.doctype { color: var(--code-com); font-style: italic; }
.code .token.keyword, .code .token.boolean, .code .token.important, .code .token.builtin.class-name { color: var(--code-key); }
.code .token.string, .code .token.template-string, .code .token.char, .code .token.attr-value, .code .token.url { color: var(--code-str); }
.code .token.function, .code .token.class-name, .code .token.method { color: var(--code-fn); }
.code .token.number, .code .token.constant, .code .token.symbol { color: var(--code-num); }
.code .token.punctuation, .code .token.operator { color: var(--code-pun); }
.code .token.interpolation-punctuation, .code .token.template-punctuation { color: var(--code-key); }
.code .token.property, .code .token.parameter, .code .token.variable { color: var(--code-fg); }
.code .token.assign-left, .code .token.environment { color: var(--code-key); }

/* --- 헤더: 솔루션 메뉴 --- */
.nav-menu { position: relative; }
.nav-trigger { appearance: none; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--muted); padding: 8px 10px; border-radius: var(--r-sm); min-height: 40px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--fg); background: var(--sunk); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; list-style: none; margin: 0; padding: 6px; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); }
.menu a { display: grid; gap: 1px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--fg); min-height: 44px; }
.menu a:hover, .menu a:focus-visible, .menu a[aria-current="page"] { background: var(--sunk); }
.menu b { font-weight: 650; font-size: 14.5px; }
.menu small { font-size: 12.5px; color: var(--muted); }
.menu small.mono { font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 760px) { .menu { position: fixed; top: 60px; left: 12px; right: 12px; min-width: 0; } }

/* --- 히어로 목적지 칩 --- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; text-decoration: none; color: var(--fg); }
.chip:hover { border-color: var(--go); color: var(--go); }

/* --- 응답 카드 태그 --- */
.resp-tag { margin-left: auto; font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.resp-tag-ok { color: var(--go); }
.tun-ico { flex: none; }
.req-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 18px 20px; }
.req-t { font-weight: 650; margin: 0 0 8px; }
.req-card ul { margin: 0; padding-left: 1.1em; }
.req-card li { margin-bottom: 4px; }
.reg-steps { margin: 20px 0 12px; padding-left: 1.3em; max-width: 72ch; }
.reg-steps li { margin-bottom: 8px; }
.guide-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.guide-links a:hover { border-color: var(--line-strong); }
.sol-hero .crumbs { margin-bottom: 14px; }

/* --- 요금 토글 --- */
.billing { display: inline-flex; padding: 4px; gap: 4px; margin-top: 20px; background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; }
.billing button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); padding: 8px 16px; min-height: 40px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billing button[aria-checked="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.billing-tag { font-size: 12px; font-weight: 700; color: var(--go); }
.plan-price { flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan-price .amt { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-price .was { color: var(--faint); font-size: 15px; font-variant-numeric: tabular-nums; }
.plan-price .save { font-size: 12.5px; font-weight: 700; color: var(--go-ink); background: var(--go); padding: 3px 8px; border-radius: 6px; }
.plan-bill { margin: -8px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.radio-tag { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--go); margin-left: 4px; white-space: nowrap; }

/* --- AI 연동 박스 + 직접 연동 접기 --- */
/* --- AI 프롬프트 카드 (pass 12): 중립 표면, 강조색은 아이콘·버튼에만 --- */
.doc article > section.ai-card, .ai-card { position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 20px 22px; margin: 0 0 28px; display: grid; gap: 14px; box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.doc article > section.ai-card + * { border-top: 0; }
.ai-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ai-ico { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--go); background: var(--go-soft); }
.ai-card h2, .doc .ai-card h2 { font-size: 1.08rem; margin: 0; letter-spacing: -.01em; flex: 1 1 auto; }
.ai-ctrl { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--sunk); }
.seg button { appearance: none; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); padding: 0 10px; min-height: 30px; border-radius: 6px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / .06); }
.seg button:hover { color: var(--fg); }
.ai-copy { min-height: 36px; gap: 6px; }
.ai-copy[data-copied="true"] { background: var(--surface); color: var(--go); border-color: var(--go); }
.ai-prompt, .doc .ai-prompt { margin: 0; padding: 14px 16px; background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; line-height: 1.75; color: var(--fg); word-break: keep-all; overflow-wrap: normal; }
.ai-prompt[lang="en"] { word-break: normal; }
.ai-prompt .ai-url { font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: .1em .4em; overflow-wrap: anywhere; word-break: normal; }
.ai-foot, .doc .ai-foot { margin: 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 0; line-height: 1.6; }
.ai-foot > * + *::before { content: "·"; margin: 0 8px; color: var(--faint); }
.ai-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); white-space: nowrap; }
.ai-foot a:hover { color: var(--fg); }
@media (max-width: 560px) {
  .doc article > section.ai-card, .ai-card { padding: 18px; gap: 12px; }
  .ai-ctrl { width: 100%; margin-left: 0; }
  .ai-copy { flex: 1; }
  .ai-prompt, .doc .ai-prompt { font-size: 14.5px; padding: 12px 14px; }
  .ai-foot { display: grid; gap: 2px; }
  .ai-foot > * + *::before { content: none; }
}
.manual { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 36px; }
.manual > summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 650; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; min-height: 52px; border-radius: 14px; }
.manual > summary::-webkit-details-marker { display: none; }
.manual > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.manual[open] > summary::before { transform: rotate(45deg); }
.manual > summary:hover { background: var(--sunk); }
.manual-body { padding: 4px 20px 20px; border-top: 1px solid var(--line); }
.manual-body h3 { margin: 22px 0 8px; }
@media (prefers-reduced-motion: reduce) { .manual > summary::before { transition: none; } }

/* --- 흐름도 v4 (pass 15): 노드 3개 + 얇은 연결선, 강조색은 --go 하나 --- */
.flow-sec { padding-top: 64px; padding-bottom: 64px; }
.fv { margin: 0; }
.fv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, .62fr) minmax(0, 1fr) minmax(72px, .42fr) minmax(0, 1fr); align-items: center; max-width: 1040px; margin: 0 auto; }
.fv-node { position: relative; min-width: 0; }
.fv-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 2px rgb(0 0 0 / .04); display: grid; gap: 6px; }
.fv-card p { margin: 0; }
.fv-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.fv-glyph { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--sunk); color: var(--muted); flex: none; }
.fv-title { font-size: 16px; font-weight: 700; color: var(--fg); letter-spacing: -.01em; }
.fv-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
/* 앱 노드: 뒤에 겹친 카드 두 장 = 여러 인스턴스, IP 한 줄만 바뀐다 */
.fv-stack, .fv-stack::before { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fv-stack { transform: translate(6px, 6px); opacity: .7; }
.fv-stack::before { content: ""; transform: translate(6px, 6px); opacity: .7; }
.fv-ips { position: relative; display: inline-grid; font-family: var(--font-mono); font-size: 13px; color: var(--fg); }
.fv-ip { grid-area: 1 / 1; }
.fv-ip:not(.fv-ip-0) { visibility: hidden; }
/* allowip 노드: 강조색 테두리 + 고정 IP 배지 */
.fv-us .fv-card { border-color: color-mix(in srgb, var(--go) 55%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--go) 9%, transparent); }
.fv-brand { color: var(--fg); font-size: 15px; font-weight: 700; }
.fv-brand .fv-glyph { background: color-mix(in srgb, var(--go) 14%, var(--surface)); color: var(--go); }
.fv-badge { justify-self: start; font: 700 15px var(--font-sans); color: var(--go-ink); background: var(--go); padding: 4px 10px; border-radius: 7px; letter-spacing: .01em; }
/* 대상 API */
.fv-dst .cyc { display: none; }
.fv-dst .cyc-0 { display: inline; }
.fv-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--go); }
.fv-ico { flex: none; }
/* 연결선: 1.5px 선 + 화살촉, 위에 라벨 */
.fv-link { position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; padding: 0 10px; min-width: 0; }
.fv-line { position: relative; display: block; width: 100%; height: 1.5px; background: var(--line-strong); }
.fv-line::after { content: ""; position: absolute; right: -1px; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong); transform: translateY(-50%) rotate(45deg); }
.fv-link-tunnel .fv-line { background: var(--go); height: 2px; }
.fv-link-tunnel .fv-line::after { border-color: var(--go); }
.fv-label { order: -1; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--go); white-space: nowrap; }
.fv-label-quiet { color: var(--muted); font-weight: 500; }
.fv-dot { position: absolute; top: 50%; left: 0; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--go); opacity: 0; }
.fv-dot-2 { background: var(--muted); }
.fv figcaption { margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 15.5px; max-width: 52ch; }
@media (prefers-reduced-motion: no-preference) {
  .fv-ip { animation: fv-ip 7.5s steps(1, end) infinite; visibility: hidden; }
  .fv-ip-0 { animation-delay: 0s; }
  .fv-ip-1 { animation-delay: -5s; }
  .fv-ip-2 { animation-delay: -2.5s; }
  @keyframes fv-ip { 0% { visibility: visible; } 33.33% { visibility: hidden; } }
  .fv-dot { animation: fv-dot 2.4s cubic-bezier(.4, 0, .2, 1) infinite; }
  .fv-dot-2 { animation-delay: 1.2s; }
  @keyframes fv-dot { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
}
/* 모바일: 세로로 쌓고 연결선은 세로 */
@media (max-width: 760px) {
  .flow-sec { padding-top: 44px; padding-bottom: 44px; }
  .fv-row { grid-template-columns: minmax(0, 1fr); max-width: 400px; }
  .fv-link { height: 64px; padding: 0; justify-items: start; grid-template-columns: 24px auto; align-items: center; gap: 0 10px; margin-left: 22px; }
  .fv-line { width: 1.5px; height: 100%; grid-row: 1; grid-column: 1; justify-self: center; }
  .fv-link-tunnel .fv-line { width: 2px; height: 100%; }
  .fv-line::after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
  .fv-label { order: 0; grid-row: 1; grid-column: 2; }
  .fv-dot { left: 50%; top: 0; margin: 0 0 0 -3px; }
  @media (prefers-reduced-motion: no-preference) {
    @keyframes fv-dot { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
  }
  .fv-stack { transform: translate(5px, 5px); }
  .fv-stack::before { transform: translate(5px, 5px); }
  .fv figcaption { margin-top: 22px; }
}

/* --- pass 11: 요금 카드 기능 목록, 같은 줄 카드 높이 --- */
.pricing { align-items: stretch; }
.plan { height: 100%; }
.plan-feat { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 8px; }
.plan-feat li { position: relative; padding-left: 22px; margin: 0; }
.plan-feat li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--go); }

/* --- pass 12: 모바일 메뉴(솔루션 → 메뉴, 연동·요금·대시보드 포함) --- */
.nt-narrow, .menu-narrow { display: none; }
@media (max-width: 760px) {
  .nt-wide { display: none; }
  .nt-narrow { display: inline; }
  .menu .menu-narrow { display: block; }
  .menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
  .menu .menu-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .nav .menu .menu-row a { display: grid !important; padding: 8px; }
  .menu .menu-row a { min-height: 44px; display: grid; place-items: center; font-weight: 600; font-size: 14.5px; background: var(--sunk); }
}

/* --- pass 12: 요금 카드(월간 기본, 가격 옆 VAT) --- */
.billing-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 20px; }
.billing-row .billing { margin: 0; }
.refund-link { font-size: 13.5px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.refund-link:hover { color: var(--fg); }
.plan-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.plan-head h3 { margin: 0; }
.plan-subt { font-size: 14px; color: var(--muted); }
.plan-head .status { margin-left: auto; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.plan-price .amt { font-size: 1.9rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-price .per { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan-price .was { color: var(--faint); font-size: 14px; }
.plan-price .vat, .vat { font-size: 12.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.plan-price .vat { flex-basis: 100%; margin-top: -2px; }
.plan-feat strong { font-weight: 700; }
.plan-soon .plan-price .amt { color: var(--muted); }
.plan .btn { align-self: stretch; }
@media (min-width: 761px) { .plan .btn { align-self: flex-start; } }

/* --- pass 12: 결제 모달 보강 --- */
.field label .opt { font-weight: 500; font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.radio b small.vat { display: block; text-align: right; font-weight: 500; }
.co-note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.co-lead { margin: 0 0 14px; color: var(--muted); }
.pay-sum { margin: 0 0 16px; font-size: 15px; color: var(--fg); }
.pay-sum b { font-variant-numeric: tabular-nums; }
.pay-alt { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.pay-restart { appearance: none; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 0; margin-top: 8px; display: block; width: 100%; text-align: center; }
.pay-restart:hover { color: var(--fg); }

/* --- pass 12: 접기(Windows 등) --- */
.fold { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin: 20px 0 0; }
.fold > summary { cursor: pointer; padding: 14px 18px; font-weight: 650; list-style: none; display: flex; align-items: center; gap: 10px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.fold[open] > summary::before { transform: rotate(45deg); }
.fold-body { padding: 0 18px 16px; }

/* --- pass 12: 대시보드 로그인·연장 --- */
.login-label { display: block; font-weight: 650; margin: 0 0 8px; }
.login-label .muted { font-weight: 500; font-size: 13.5px; }
.login-hint { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
#renew { margin-top: 4px; }
.renew-note { margin: 8px 0 0; }

/* --- pass 13: 바닥글 사업자 줄(메일·약관 링크 포함 한 줄) --- */
.ft-bottom { justify-content: flex-start; }
.ft-biz { margin: 0; line-height: 1.7; }
.ft-biz a { white-space: nowrap; }
@media (max-width: 560px) { .ft-biz { line-height: 1.9; } }

/* --- pass 14: 바닥글 브랜드 열 로고는 링크 회색이 아니라 잉크 색 --- */
.site-footer .ft-brand .brand, .site-footer .ft-brand .brand:hover { color: var(--fg); }

/* --- pass 15: 대기 목록 메모 --- */
.co-form textarea { width: 100%; font: inherit; font-size: 16px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--fg); resize: vertical; min-height: 68px; }
.co-form textarea::placeholder { color: var(--faint); }
.co-form textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field-count { margin: 4px 0 0; font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* --- 히어로 보조 줄, 코드 접기 --- */
.hero-points { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--go); letter-spacing: .01em; }
.hero-fold { margin-top: 12px; }
.hero-fold .code { margin: 0; }

/* --- pass 15: 흐름도 노드 세 장 같은 높이 --- */
@media (min-width: 761px) {
  .fv-row { align-items: stretch; }
  .fv-node { display: grid; }
  .fv-card { height: 100%; align-content: start; }
  .fv-link { align-self: center; }
}

/* --- pass 16: 흐름도, 암호화 구간이 앱→allowip→API 전체에 걸친다 --- */
.fv { position: relative; }
.fv-row { position: relative; z-index: 1; }
/* 두 연결선 모두 같은 초록 실선: 잠기지 않은 구간이 없다 */
.fv-link .fv-line { background: var(--go); }
.fv-link .fv-line::after { border-color: var(--go); }
@media (min-width: 761px) { .fv-link .fv-line { height: 2px; } }
@media (max-width: 760px) { .fv-link { height: 72px; } .fv-link .fv-line { width: 2px; height: 52px; align-self: center; } }
.fv-dot-2 { background: var(--go); }
.fv-label { color: var(--go); font-weight: 600; }
/* 줄 전체를 감싸는 터널 띠 + 그 위 라벨 하나 */
.fv-tunnel { position: relative; max-width: 1040px; margin: 0 auto 14px; height: 22px; display: flex; justify-content: center; }
.fv-tunnel::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid color-mix(in srgb, var(--go) 45%, transparent); }
.fv-tunnel-l { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border: 1px solid color-mix(in srgb, var(--go) 45%, var(--line)); border-radius: 999px; background: var(--bg); font-size: 12.5px; font-weight: 700; color: var(--go); white-space: nowrap; }
.fv-row::before { content: ""; position: absolute; z-index: -1; inset: -14px -14px; border: 1.5px solid color-mix(in srgb, var(--go) 30%, transparent); border-radius: 20px; background: color-mix(in srgb, var(--go) 4%, transparent); pointer-events: none; }
.fv-tunnel { margin-bottom: 22px; }
.fv-tunnel::before { left: 6%; right: 6%; }
@media (max-width: 760px) {
  .fv-tunnel { margin-bottom: 18px; }
  .fv-tunnel-l { white-space: normal; text-align: center; }
  .fv-row::before { inset: -10px -10px; }
}


/* --- pass 16: 자동매매 페이지 지연 비교 --- */
.lat { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 48px; align-items: center; }
.lat-copy .lead { margin: 10px 0 0; }
.lat-fig { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.lat-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lat-row { display: grid; gap: 6px; }
.lat-name { font-size: 14px; font-weight: 650; }
.lat-track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lat-bar { display: block; height: 14px; width: var(--w); min-width: 8px; border-radius: 4px; background: var(--line-strong); max-width: calc(100% - 110px); flex: none; }
.is-self .lat-bar { background: var(--go); }
.lat-bar-range { position: relative; width: calc(100% - 110px); background: var(--line-strong); overflow: hidden; }
/* 100ms에서 250ms까지 범위: 뒤 40%를 빗금으로 */
.lat-bar-range::after { content: ""; position: absolute; top: 0; bottom: 0; left: 60%; right: 0; background: repeating-linear-gradient(135deg, var(--line-strong) 0 4px, var(--surface) 4px 8px); }
.lat-val { font-family: var(--font-mono); font-size: 13.5px; white-space: nowrap; }
.is-self .lat-val { color: var(--go); font-weight: 600; font-family: var(--font-sans); }
.lat-fig figcaption { margin: 14px 0 0; }
@media (max-width: 760px) { .lat { grid-template-columns: minmax(0, 1fr); } .lat-fig { padding: 16px; } }

/* --- pass 16: AI 도구 줄(공식 마크, 기본 흑백 → hover/focus에 원래 색) --- */
.tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1; transition: color .15s, border-color .15s; }
.tool .vl { width: 16px; height: 16px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .15s, opacity .15s; }
.tool:hover { color: var(--fg); border-color: var(--line-strong); }
.tool:hover .vl { filter: none; opacity: 1; }
.vl-dark { display: none; }
:root[data-theme="dark"] .vl-light:has(+ .vl-dark) { display: none; }
:root[data-theme="dark"] .vl-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vl-light:has(+ .vl-dark) { display: none; }
  :root:not([data-theme="light"]) .vl-dark { display: block; }
}
.vl-mono { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: var(--sunk); border: 1px solid var(--line); font-size: 8.5px; font-weight: 800; letter-spacing: -.02em; color: var(--muted); }
.ai-tools { margin-top: -2px; }
@media (max-width: 560px) { .tool-n { font-size: 11.5px; } }

/* --- pass 16 fixes --- */
.doc .tools, .doc ul.tools { padding-left: 0; }
.doc .tools li { margin: 0; }
.hero-points { margin-bottom: 20px; }

/* --- final: 히어로 "AI에게 맡기기" 장면 (보여 주기 전용) --- */
.ch { margin: 0; min-width: 0; display: grid; gap: 14px; }
.ch-win { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 24px 48px -32px rgb(0 0 0 / .35); }
.ch-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.ch-dots { display: inline-flex; gap: 6px; }
.ch-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); opacity: .7; }
.ch-title { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.ch-body { padding: 22px 22px 24px; display: grid; gap: 18px; }
.ch-body p { margin: 0; }
.ch-user { justify-self: end; max-width: 92%; background: var(--fg); color: var(--bg); padding: 11px 15px; border-radius: 14px 14px 4px 14px; font-size: 15px; line-height: 1.55; word-break: keep-all; }
.ch-agent { display: grid; gap: 10px; }
.ch-who { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ch-spark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--go); background: var(--go-soft); }
.ch-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ch-step { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--fg); word-break: keep-all; }
.ch-step .mono { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.ch-ok { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; color: var(--go); background: var(--go-soft); }
.ch-body .ch-result { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--line); }
.ch-bad, .ch-good { font: 500 13px var(--font-mono); padding: 3px 8px; border-radius: 6px; }
.ch-bad { color: var(--stop); background: var(--stop-soft); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ch-good { color: var(--go); background: var(--go-soft); font-weight: 600; }
.ch-arrow { color: var(--faint); }
.ch-lock { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; font-size: 13px; font-weight: 600; color: var(--go); }
.ch-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 0 4px; }
.ch-with { display: inline-flex; align-items: center; gap: 10px; }
.ch-with-l { font-size: 12px; color: var(--faint); letter-spacing: .02em; }
.ch-tools { gap: 12px; }
.ch-tools .tool-icon { padding: 0; border: 0; background: none; }
.ch-tools .tool-icon .vl { width: 16px; height: 16px; }
.ch-copy { appearance: none; border: 0; background: none; padding: 6px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; cursor: pointer; min-height: 32px; }
.ch-copy:hover { color: var(--fg); }
.ch-copy[data-copied="true"] { color: var(--go); text-decoration-color: var(--go); }
/* 한 번만, 차례로 등장. 움직임 줄이기면 JS가 클래스를 붙이지 않아 처음부터 최종 상태 */
.ch-wait .ch-user, .ch-wait .ch-who, .ch-wait .ch-step, .ch-wait .ch-result { opacity: 0; }
.ch-play .ch-user { animation: ch-in .45s ease-out both; }
.ch-play .ch-who { animation: ch-in .35s ease-out .75s both; }
.ch-play .ch-step, .ch-play .ch-result { animation: ch-in .35s ease-out both; animation-delay: calc(.75s + var(--i) * .55s); }
@keyframes ch-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .ch-body { padding: 18px 16px 20px; gap: 16px; }
  .ch-user { font-size: 14.5px; max-width: 100%; }
  .ch-step { font-size: 14px; }
}

/* --- final: 플랫폼 AI 블록 단순화(프롬프트 하나 + 복사 하나, 언어는 작은 텍스트 토글) --- */
.ai-lang { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); }
.ai-lang button { appearance: none; border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; min-height: 28px; }
.ai-lang button[aria-checked="true"] { color: var(--fg); font-weight: 700; text-decoration: underline; text-decoration-color: var(--go); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ai-act { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.ai-act .ai-foot { margin: 0; }
@media (max-width: 560px) { .ai-act .ai-copy { width: 100%; } }

/* --- 비교: 직접 서버 vs allowip (2열 표) --- */
.vs { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.vs:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vs-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.vs-table col.vs-c-k { width: 18%; }
.vs-table col.vs-c-a, .vs-table col.vs-c-b { width: 41%; }
.vs-table th, .vs-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vs-table tbody tr:last-child th, .vs-table tbody tr:last-child td { border-bottom: 0; }
.vs-table thead th, .vs-table thead td { padding-top: 18px; padding-bottom: 14px; font-size: 15px; font-weight: 700; color: var(--fg); background: var(--sunk); }
.vs-table thead small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.vs-table tbody th { font-size: 14px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.vs-table tbody td { color: var(--muted); word-break: keep-all; }
.vs-table .vs-us { color: var(--fg); background: color-mix(in srgb, var(--go) 5%, transparent); }
.vs-table thead .vs-us { color: var(--go); background: color-mix(in srgb, var(--go) 10%, var(--sunk)); box-shadow: inset 0 3px 0 var(--go); }
.vs-t { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.vs-us .vs-t { background: var(--go-soft); color: var(--go); }
.vs-cost th, .vs-cost td { font-size: 16px; }
.vs-cost td:not(.vs-us) { color: var(--fg); }
.vs-cost .vs-us strong { font-size: 18px; font-weight: 750; color: var(--go); font-variant-numeric: tabular-nums; }
.vs-plus { color: var(--muted); font-size: 14px; }
.vs-note { margin: 14px 0 0; color: var(--muted); }
/* 모바일: 행마다 카드처럼 세로로 쌓는다(항목 → 직접 서버 → allowip). 표 머리는 숨기고 각 칸에 열 이름을 붙인다 */
@media (max-width: 640px) {
  .vs { overflow: visible; }
  .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td { display: block; width: auto; }
  .vs-table colgroup, .vs-table thead { display: none; }
  .vs-table tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .vs-table tbody tr:last-child { border-bottom: 0; }
  .vs-table tbody th, .vs-table tbody td { padding: 0; border: 0; background: none; white-space: normal; }
  .vs-table tbody th { font-size: 13px; color: var(--fg); margin-bottom: 8px; }
  .vs-table tbody td { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 14px; padding: 6px 0; }
  .vs-table tbody td::before { content: attr(data-l); font-size: 12px; font-weight: 600; color: var(--faint); }
  .vs-table tbody td.vs-us { margin: 2px -8px 0; padding: 8px; border-radius: 8px; background: color-mix(in srgb, var(--go) 7%, transparent); }
  .vs-table tbody td.vs-us::before { color: var(--go); }
  .vs-v { min-width: 0; }
  .vs-t { display: inline-block; margin: 0 0 0 6px; }
  .vs-cost .vs-us strong { font-size: 16px; }
}

/* --- 무료 체험 시작 화면(checkout) --- */
.trial { display: grid; gap: 18px; text-align: left; }
.trial-kicker { margin: 0; justify-self: center; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: var(--go-soft); color: var(--go); font-size: 13px; font-weight: 700; }
.trial-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 3px color-mix(in srgb, var(--go) 25%, transparent); }
.trial-title { margin: -6px 0 0; }
.trial-ip { display: grid; justify-items: center; gap: 6px; padding: 18px 16px 16px; border: 1px solid color-mix(in srgb, var(--go) 35%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--go) 5%, var(--surface)); }
.trial-ip p { margin: 0; }
.trial-ip-l { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.trial-ip-v { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.3rem); letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--fg); overflow-wrap: anywhere; text-align: center; }
.trial-until { margin: -8px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.trial-secret { display: grid; gap: 8px; }
.trial-secret p { margin: 0; }
.trial-secret-l code { font-size: 13px; }
.trial-url code { font-size: 13px; }
.trial-warn { margin: 0; font-size: 14px; }
.trial-next { border-top: 1px solid var(--line); padding-top: 16px; }
.trial-next h3 { font-size: 15px; margin: 0 0 10px; }
.trial-steps { margin: 0; padding: 0; list-style: none; counter-reset: ts; display: grid; gap: 12px; }
.trial-steps li { counter-increment: ts; position: relative; padding-left: 32px; display: grid; gap: 5px; font-size: 14.5px; }
.trial-steps li::before { content: counter(ts); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--go); color: var(--go-ink); font-size: 12px; font-weight: 700; }
.trial-steps code { font-size: 12.5px; }
.trial-links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; }
.trial-links a { color: var(--go); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--go) 40%, transparent); text-underline-offset: 3px; }
.trial-pay { border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); }
.trial-pay > summary { cursor: pointer; list-style: none; padding: 12px 14px; font-weight: 650; font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.trial-pay > summary::-webkit-details-marker { display: none; }
.trial-pay > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); align-self: center; transition: transform .15s; }
.trial-pay[open] > summary::after { transform: rotate(-135deg); }
.trial-pay-s { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.trial-pay-b { padding: 0 14px 14px; display: grid; gap: 10px; }
.trial-pay-b p { margin: 0; font-size: 14px; color: var(--muted); }
.trial-line { color: var(--go); font-weight: 600; }
/* 대시보드 체험 배지 */
.status-trial { color: var(--go); background: var(--go-soft); border-color: color-mix(in srgb, var(--go) 35%, transparent); }
.alert-trial { color: var(--fg); background: var(--go-soft); border-color: color-mix(in srgb, var(--go) 35%, transparent); }
.alert-trial strong { color: var(--go); }
@media (max-width: 480px) {
  .trial { gap: 16px; }
  .trial-ip { padding: 16px 12px 14px; }
}
.hero-cta + .hero-trial { margin: -8px 0 16px; font-size: 14px; font-weight: 600; color: var(--go); }
/* 터널 URL은 길다: 시트를 넓히지 않고 상자 안에서 줄바꿈 */
.trial-url { align-items: flex-start; }
.trial-url code { white-space: normal; overflow-wrap: anywhere; word-break: break-all; overflow: visible; line-height: 1.5; }
.trial-url .copy-btn { flex: none; }
.trial, .trial > * { min-width: 0; }
