/* Pikkola API & Webhook Lab: a request on the left, what came back on the right.
   Cool paper, iris accent, monospace for everything that crosses the wire.
   Weights stay at 400, 500, 600 and 700. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/tools/hook/fonts/inter.woff2) format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/tools/hook/fonts/jetbrains-mono.woff2) format("woff2");
}

:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --r: 8px;
  --r-sm: 5px;
  --radius: 8px;
}

html[lang="ko"] {
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all;
}
html[lang="ja"] {
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  word-break: normal;
}
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] p,
html[lang="ja"] li,
html[lang="ja"] summary,
html[lang="ja"] .hook-card p,
html[lang="ja"] .check span { word-break: auto-phrase; line-break: strict; overflow-wrap: break-word; }
html[lang="ja"] .hero h1 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }

html[data-theme="light"] {
  --bg: #f5f4ef;
  --bg-2: #ecebe3;
  --surface: #fffefa;
  --surface-2: #f7f6f0;
  --ink: #15171c;
  --ink-2: #454a54;
  --ink-3: #6c7280;
  --line: #dcdad1;
  --line-2: #c5c2b6;
  --accent: #4a3ac2;
  --accent-ink: #fdfdff;
  --accent-soft: #e8e6fb;
  --pass: #1f6b4d;
  --pass-soft: #e2efe7;
  --warn: #8a5c12;
  --warn-soft: #f7eed6;
  --fail: #a3342a;
  --fail-soft: #f8e4e0;
  --info: #2b4ba8;
  --info-soft: #e5e9f8;
  --code-bg: #14161c;
  --code-ink: #dfe3ea;
  --code-line: #262b35;
  --code-key: #9fb2ff;
  --code-str: #8fd6a8;
  --code-num: #f0b67f;
  --code-bool: #c3a6ff;
  --code-null: #8b94a5;
  --m-get: #1f6b4d;
  --m-post: #2b4ba8;
  --m-put: #8a5c12;
  --m-patch: #6b3fa0;
  --m-delete: #a3342a;
  --m-head: #4a5568;
  --shadow: 0 1px 2px rgba(21, 23, 28, .05), 0 26px 50px -40px rgba(21, 23, 28, .5);
}

html[data-theme="dark"] {
  --bg: #0f1116;
  --bg-2: #13161c;
  --surface: #171a21;
  --surface-2: #141720;
  --ink: #e8eaf0;
  --ink-2: #b2b8c6;
  --ink-3: #7f8798;
  --line: #262b35;
  --line-2: #39404e;
  --accent: #a89bff;
  --accent-ink: #14102a;
  --accent-soft: #221e3d;
  --pass: #7fd0a6;
  --pass-soft: #15281f;
  --warn: #e3b366;
  --warn-soft: #2b2413;
  --fail: #ef8b78;
  --fail-soft: #331a15;
  --info: #9db3ff;
  --info-soft: #1b2340;
  --code-bg: #0b0d12;
  --code-ink: #d8dde7;
  --code-line: #1e232c;
  --code-key: #9fb2ff;
  --code-str: #8fd6a8;
  --code-num: #f0b67f;
  --code-bool: #c3a6ff;
  --code-null: #7b8496;
  --m-get: #7fd0a6;
  --m-post: #9db3ff;
  --m-put: #e3b366;
  --m-patch: #c3a6ff;
  --m-delete: #ef8b78;
  --m-head: #a8b2c4;
  --shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 30px 55px -42px rgba(0, 0, 0, .95);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 34% at 94% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    radial-gradient(38% 28% at 0% 12%, color-mix(in srgb, var(--ink) 3%, transparent), transparent 72%);
  pointer-events: none;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.16; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 0 0 var(--r-sm) var(--r-sm); background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand-name { font-weight: 600; letter-spacing: -0.015em; }
.brand-tool { padding-left: 9px; margin-left: 2px; border-left: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3); }
.site-nav { display: flex; gap: 18px; margin-left: 4px; }
.site-nav a { color: var(--ink-2); font-size: 13.5px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-field { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; height: 32px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang-globe { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
.lang-field select { appearance: none; border: 0; background: transparent; padding: 0 2px; font-size: 12.5px; font-family: var(--mono); color: var(--ink-2); cursor: pointer; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 16px; height: 16px; }
.ico-sun { display: none; }
html[data-theme="dark"] .ico-sun { display: block; }
html[data-theme="dark"] .ico-moon { display: none; }

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(26px, 4.4vw, 56px);
  align-items: center;
  padding: clamp(2.8rem, 6vw, 4.6rem) 0 clamp(1.8rem, 3.4vw, 2.8rem);
}
.eyebrow { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
html[lang="ko"] .eyebrow, html[lang="ja"] .eyebrow { letter-spacing: 0.05em; }
.hero h1 { margin-top: 14px; font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.032em; text-wrap: balance; }
.hero-lede { margin-top: 18px; max-width: 52ch; font-size: 16.5px; color: var(--ink-2); }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid var(--accent); border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: filter .15s ease, border-color .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.small { padding: 8px 14px; font-size: 13px; }
.hero-note { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.03em; }
.facts { display: flex; gap: 30px; margin: 30px 0 0; padding: 0; flex-wrap: wrap; }
.facts dt { font-family: var(--mono); font-size: 18px; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); }

/* hero: the wire card */
.wire-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.wire-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
}
.wire-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pass); flex: none; }
.wire-method { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--m-post); }
.wire-url { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wire-status { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--pass); white-space: nowrap; }
.wire-body { padding: 14px 15px 16px; background: var(--code-bg); color: var(--code-ink); font-family: var(--mono); font-size: 11.5px; line-height: 1.7; overflow-x: auto; white-space: pre; }
.wire-body .k { color: var(--code-key); }
.wire-body .s { color: var(--code-str); }
.wire-body .n { color: var(--code-num); }
.wire-body .b { color: var(--code-bool); }
.wire-body .c { color: var(--code-null); }
.wire-arrow { display: flex; align-items: center; gap: 8px; padding: 9px 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); font-size: 10.5px; color: var(--ink-3); }
.wire-arrow svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.wire-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 15px; font-size: 10.5px; color: var(--ink-3); }
.wire-foot b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- sections */
section[id] { scroll-margin-top: 80px; }
.section { padding-block: clamp(2.2rem, 5vw, 3.6rem); border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; }
.section-head h2 { font-size: clamp(1.5rem, 2.9vw, 2.15rem); text-wrap: balance; }
.section-lede { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); max-width: 74ch; }
.section-note { margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* -------------------------------------------------------------- the lab */
.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-top: 26px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.panel-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.panel-head .panel-title { color: var(--ink); letter-spacing: .1em; }
.panel-head .panel-aside { margin-left: auto; letter-spacing: .04em; text-transform: none; font-size: 10.5px; }

/* method + url */
.method-row { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.method-chips { display: flex; flex: none; overflow-x: auto; scrollbar-width: none; }
.method-chips::-webkit-scrollbar { display: none; }
.method-chip {
  border: 0; background: transparent; padding: 9px 11px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap;
}
.method-chip:hover { color: var(--ink); }
.method-chip[aria-checked="true"] { color: var(--ink); border-bottom-color: currentColor; background: var(--surface-2); }
.method-chip[data-method="GET"][aria-checked="true"] { color: var(--m-get); }
.method-chip[data-method="POST"][aria-checked="true"] { color: var(--m-post); }
.method-chip[data-method="PUT"][aria-checked="true"] { color: var(--m-put); }
.method-chip[data-method="PATCH"][aria-checked="true"] { color: var(--m-patch); }
.method-chip[data-method="DELETE"][aria-checked="true"] { color: var(--m-delete); }
.method-chip[data-method="HEAD"][aria-checked="true"] { color: var(--m-head); }

.url-bar { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.url-field { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.url-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.url-scheme { font-family: var(--mono); font-size: 11px; color: var(--ink-3); flex: none; }
.url-field input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-family: var(--mono); font-size: 12.5px; }
.url-field input:focus { outline: none; }
.send-btn { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 0 18px; border: 1px solid var(--accent); border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.send-btn:hover { filter: brightness(1.08); }
.send-btn[disabled] { opacity: .65; cursor: progress; }
.send-btn svg { width: 15px; height: 15px; }

.lab-tabs { display: flex; align-items: center; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); overflow-x: auto; }
.lab-tab {
  border: 0; background: transparent; padding: 9px 10px; font-size: 12.5px; color: var(--ink-3);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.lab-tab:hover { color: var(--ink); }
.lab-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.lab-tab .count { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-left: 4px; }
.lab-pane { padding: 12px 14px 14px; }
.lab-pane[hidden] { display: none !important; }

.kv-list { display: grid; gap: 6px; }
.kv-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) 28px; gap: 6px; }
.kv-row input {
  min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); font-family: var(--mono); font-size: 12px;
}
.kv-row input:focus { outline: none; border-color: var(--accent); }
.kv-del { border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--ink-3); font-size: 15px; line-height: 1; }
.kv-del:hover { color: var(--fail); border-color: var(--line); }
.kv-add { margin-top: 8px; border: 1px dashed var(--line-2); background: transparent; border-radius: 4px; padding: 7px 10px; font-size: 12px; color: var(--ink-2); }
.kv-add:hover { border-color: var(--accent); color: var(--accent); }

.field-row { display: grid; gap: 6px; margin-bottom: 12px; }
.field-row:last-child { margin-bottom: 0; }
.field-label { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.field-row input, .field-row select {
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  font-family: var(--mono); font-size: 12.5px;
}
.field-row input:focus, .field-row select:focus { outline: none; border-color: var(--accent); }

.editor-wrap { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--code-bg); }
.editor {
  display: block; width: 100%; min-height: 190px; resize: vertical;
  border: 0; padding: 12px 13px; background: var(--code-bg); color: var(--code-ink);
  font-family: var(--mono); font-size: 12px; line-height: 1.65; tab-size: 2;
}
.editor:focus { outline: none; }
.editor::placeholder { color: var(--code-null); }
.editor-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 11px; border-top: 1px solid var(--code-line);
  background: color-mix(in srgb, var(--code-bg) 80%, var(--ink));
  font-family: var(--mono); font-size: 10.5px; color: var(--code-null);
}
.editor-foot .spacer { margin-left: auto; }
.mini-btn { border: 1px solid var(--code-line); background: transparent; color: var(--code-ink); border-radius: 3px; padding: 4px 8px; font-family: var(--mono); font-size: 10.5px; }
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }

.validity { display: inline-flex; align-items: center; gap: 5px; }
.validity[data-state="ok"] { color: #8fd6a8; }
.validity[data-state="bad"] { color: #f0a094; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); font-size: 13px; }
.switch-row:last-child { border-bottom: 0; }
.switch-row span small { display: block; font-size: 11px; color: var(--ink-3); }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .15s ease; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s ease; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.hint { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }
.hint code { font-family: var(--mono); font-size: 11px; padding: 1px 4px; border-radius: 3px; background: var(--bg-2); }

/* ---------------------------------------------------------- the response */
.resp { min-height: 360px; }
.resp-idle { padding: 34px 22px 38px; text-align: center; color: var(--ink-3); }
.resp-idle svg { width: 30px; height: 30px; color: var(--line-2); margin-bottom: 10px; }
.resp-idle p { font-size: 13.5px; max-width: 34ch; margin-inline: auto; }
.resp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 3px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.status-pill[data-class="2"] { background: var(--pass-soft); color: var(--pass); }
.status-pill[data-class="3"] { background: var(--info-soft); color: var(--info); }
.status-pill[data-class="4"] { background: var(--warn-soft); color: var(--warn); }
.status-pill[data-class="5"] { background: var(--fail-soft); color: var(--fail); }
.status-pill[data-class="0"] { background: var(--fail-soft); color: var(--fail); }
.resp-status-text { font-size: 12.5px; color: var(--ink-2); }
.resp-metrics { display: flex; gap: 14px; margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.resp-metrics b { color: var(--ink); font-weight: 600; }
.resp-url { padding: 8px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--ink-3); overflow-wrap: anywhere; background: var(--surface-2); }
.resp-url b { color: var(--ink-2); font-weight: 500; }
.resp-url .moved { color: var(--warn); }

.hops { padding: 9px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--info-soft) 40%, var(--surface)); }
.hops-title { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.hop { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); padding: 2px 0; }
.hop-code { color: var(--info); font-weight: 600; }
.hop-ms { color: var(--ink-3); }
.hop-loc { overflow-wrap: anywhere; }
.hop-arrow { color: var(--ink-3); }

.resp-tabs { display: flex; align-items: center; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); overflow-x: auto; }
.resp-tab { border: 0; background: transparent; padding: 9px 10px; font-size: 12.5px; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.resp-tab:hover { color: var(--ink); }
.resp-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.resp-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; padding: 4px 0; }
.copy-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 3px; padding: 3px 7px; font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.resp-pane { padding: 0; }
.resp-pane[hidden] { display: none !important; }
.code-block {
  margin: 0; padding: 13px 14px; min-height: 168px; background: var(--code-bg); color: var(--code-ink);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.7; overflow: auto; max-height: 460px;
  white-space: pre; tab-size: 2;
}
.code-block .k { color: var(--code-key); }
.code-block .s { color: var(--code-str); }
.code-block .n { color: var(--code-num); }
.code-block .b { color: var(--code-bool); }
.code-block .c { color: var(--code-null); }
.code-block .p { color: var(--code-null); }

.json-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.json-toolbar input { flex: 1 1 140px; min-width: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); font-family: var(--mono); font-size: 11px; }
.json-toolbar input:focus { outline: none; border-color: var(--accent); }
.json-toolbar .mini-link { border: 0; background: transparent; color: var(--ink-3); font-family: var(--mono); font-size: 10.5px; padding: 4px 2px; }
.json-toolbar .mini-link:hover { color: var(--accent); }
.json-toolbar .mini-link.is-on { color: var(--accent); font-weight: 700; }
.json-toolbar .push-right { margin-left: auto; }
.clip-helper { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.json-tree { max-height: 460px; min-height: 214px; overflow: auto; padding: 10px 6px 16px; background: var(--code-bg); color: var(--code-ink); font-family: var(--mono); font-size: 11.5px; line-height: 1.55; }
.jt { padding-left: 14px; }
.jt-root { padding-left: 8px; }
.jt-row { display: flex; align-items: baseline; gap: 6px; padding: 1px 4px; border-radius: 3px; cursor: default; }
.jt-row:hover { background: rgba(255, 255, 255, .04); }
.jt-toggle { width: 12px; flex: none; border: 0; background: transparent; color: var(--code-null); padding: 0; font-size: 9px; line-height: 1; text-align: left; }
.jt-toggle[aria-expanded="false"]::before { content: "\25B8"; }
.jt-toggle[aria-expanded="true"]::before { content: "\25BE"; }
.jt-spacer { width: 12px; flex: none; }
.jt-key { color: var(--code-key); }
.jt-idx { color: var(--code-null); }
.jt-colon { color: var(--code-null); }
.jt-val[data-type="string"] { color: var(--code-str); overflow-wrap: anywhere; }
.jt-val[data-type="number"] { color: var(--code-num); }
.jt-val[data-type="boolean"] { color: var(--code-bool); }
.jt-val[data-type="null"] { color: var(--code-null); }
.jt-summary { color: var(--code-null); font-size: 10.5px; }
.jt-path { margin-left: auto; opacity: 0; border: 0; background: transparent; color: var(--code-null); font-family: var(--mono); font-size: 9.5px; padding: 0 3px; }
.jt-row:hover .jt-path, .jt-path:focus-visible { opacity: 1; }
.jt-path:hover { color: var(--accent); }
.jt-children { margin-left: 5px; border-left: 1px solid var(--code-line); }
.jt-children[hidden] { display: none !important; }
.jt-empty { padding: 16px 14px; color: var(--ink-3); font-size: 12px; }

.hdr-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11.5px; }
.hdr-table th, .hdr-table td { text-align: left; padding: 6px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); vertical-align: top; }
.hdr-table th { width: 34%; color: var(--ink-3); font-weight: 500; overflow-wrap: anywhere; }
.hdr-table td { color: var(--ink); overflow-wrap: anywhere; }
.hdr-table tr:last-child td, .hdr-table tr:last-child th { border-bottom: 0; }

.resp-error { margin: 14px; padding: 12px 14px; border: 1px solid var(--fail); border-radius: var(--r-sm); background: var(--fail-soft); color: var(--fail); font-size: 12.5px; }
.resp-error b { display: block; font-family: var(--mono); font-size: 11.5px; margin-bottom: 3px; }
.resp-error span { color: var(--ink-2); }

/* ------------------------------------------------------------- webhooks */
.hook-group { margin-top: 26px; }
.hook-group-title { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.hook-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hook-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.hook-card {
  position: relative; display: flex; flex-direction: column; gap: 7px; text-align: left;
  padding: 14px 15px 13px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow); cursor: pointer; color: inherit;
}
.hook-card:hover { border-color: var(--accent); }
.hook-card[data-active="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.hook-card-top { display: flex; align-items: center; gap: 8px; }
.hook-glyph { width: 22px; height: 22px; flex: none; color: var(--accent); }
.hook-name { font-weight: 600; font-size: 13.5px; }
.hook-event { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-left: auto; letter-spacing: .02em; }
.hook-card p { font-size: 12px; color: var(--ink-2); line-height: 1.55; }
.hook-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.hook-card-foot .load { margin-left: auto; color: var(--accent); display: inline-flex; }
.hook-card-foot .load svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hook-checks { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.hook-checks-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hook-checks-head .target { text-transform: none; letter-spacing: 0; color: var(--ink); }
.hook-checks-head .summary { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 10.5px; }
.check-list { list-style: none; margin: 0; padding: 6px 0; }
.check { display: grid; grid-template-columns: 16px 118px minmax(0, 1fr); gap: 9px; align-items: baseline; padding: 6px 14px; font-size: 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.check:last-child { border-bottom: 0; }
.check-dot { font-family: var(--mono); font-size: 10px; font-weight: 700; }
.check[data-state="pass"] .check-dot { color: var(--pass); }
.check[data-state="warn"] .check-dot { color: var(--warn); }
.check[data-state="fail"] .check-dot { color: var(--fail); }
.check[data-state="info"] .check-dot { color: var(--info); }
.check-name { font-family: var(--mono); font-size: 11px; color: var(--ink-2); overflow-wrap: anywhere; }
.check-note { color: var(--ink-2); }
.check[data-state="fail"] .check-note { color: var(--fail); }
.check-empty { padding: 16px 14px; font-size: 12.5px; color: var(--ink-3); }

/* ------------------------------------------------------------------ why */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 24px; }
.why-card { padding: 16px 17px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.why-card h3 { font-size: 14.5px; }
.why-card p { margin-top: 8px; font-size: 13px; color: var(--ink-2); }

/* ------------------------------------------------------------------ faq */
.faq-list { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  position: relative; list-style: none; cursor: pointer; padding: 14px 30px 14px 0;
  font-size: 14.5px; font-weight: 500;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--mono); font-size: 17px; color: var(--ink-3); }
.qa[open] summary::after { content: "\2212"; }
.qa p { padding: 0 30px 16px 0; font-size: 13.5px; color: var(--ink-2); max-width: 82ch; }

/* --------------------------------------------------------- privacy strip */
.priv-strip { padding-block: clamp(1.8rem, 4vw, 2.6rem); border-top: 1px solid var(--line); }
.priv-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.priv-inner h2 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); max-width: 32ch; }
.priv-inner p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); max-width: 66ch; }
.text-link { color: var(--accent); text-decoration: none; font-size: 13.5px; font-weight: 500; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding-bottom: 1px; }
.text-link:hover { border-bottom-color: var(--accent); }

/* --------------------------------------------------------------- funnel */
.funnel { border-top: 1px solid var(--line); padding-block: clamp(2rem, 4vw, 2.8rem); }
.funnel-head { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
html[lang="ko"] .funnel-head, html[lang="ja"] .funnel-head { letter-spacing: .05em; }
.funnel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.funnel-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 17px 15px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  text-decoration: none; color: inherit;
}
.funnel-card:hover { border-color: var(--accent); }
.funnel-card-book { border-left: 3px solid var(--accent); }
.funnel-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.funnel-title { font-size: 15px; font-weight: 600; }
.funnel-sub { font-size: 12.5px; color: var(--ink-2); }
.funnel-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12.5px; }
.funnel-price { font-family: var(--mono); font-weight: 600; color: var(--accent); }
.funnel-cta { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--ink-2); }
.funnel-card:hover .funnel-cta { color: var(--accent); }
.funnel-arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 30px 34px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr); gap: 26px; }
.footer-brand p { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); max-width: 40ch; }
.footer-links h3 { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.footer-links ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer-links a { font-size: 12.5px; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-note { grid-column: 1 / -1; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-3); }

/* --------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px);
  z-index: 80; padding: 9px 15px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------- document pages */
.narrow { max-width: 880px; }
.doc { padding-block: clamp(2.6rem, 6vw, 4rem); max-width: 78ch; }
.doc h1 { font-size: clamp(1.85rem, 4vw, 2.55rem); }
.doc .updated { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.doc .lede-doc { margin-top: 20px; font-size: 17px; color: var(--ink-2); }
.doc h2 { margin-top: 32px; font-size: 18px; }
.doc h3 { margin-top: 22px; font-size: 15.5px; }
.doc p { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); }
.doc li { margin-top: 6px; }
.doc a { color: var(--accent); }
.doc code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; color: var(--ink); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero .wire-card { max-width: 620px; }
  .lab-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-inner { gap: 12px; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .facts { gap: 20px; }
  .method-chip { padding: 9px 8px; font-size: 10.5px; }
  .url-bar { flex-wrap: wrap; }
  .url-field { flex: 1 1 100%; }
  .send-btn { flex: 1 1 100%; justify-content: center; padding: 10px 16px; }
  .resp-metrics { width: 100%; margin-left: 0; }
  .check { grid-template-columns: 14px minmax(0, 1fr); }
  .check-note { grid-column: 2; }
  .kv-row { grid-template-columns: minmax(0, 1fr) 26px; }
  .kv-row input:nth-child(1) { grid-column: 1; }
  .kv-row input:nth-child(2) { grid-column: 1; }
  .kv-del { grid-column: 2; grid-row: 1 / span 2; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .json-tree { font-size: 10.5px; }
  .code-block { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --- related tools (2026-11-16) --- */
.related { margin-top: 68px; padding-top: 34px; border-top: 1px solid var(--line, var(--border, #e4e4e4)); }
.related-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.related-head h2 { margin: 0; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink, var(--text, inherit)); }
.related-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-link {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line, var(--border, #e4e4e4));
  border-radius: var(--r, var(--radius, 12px));
  padding: 15px 17px; background: var(--surface, var(--card, transparent));
  transition: border-color .12s ease, transform .12s ease;
}
.related-link:hover { border-color: var(--accent, #2f6fed); transform: translateY(-1px); }
.related-tag {
  display: block; font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3, var(--muted, inherit)); opacity: .75;
}
.related-title { display: block; margin-top: 6px; font-weight: 600; font-size: .95rem; }
.related-body { display: block; margin-top: 5px; font-size: .8rem; line-height: 1.55; color: var(--ink-2, var(--muted, inherit)); opacity: .9; }
@media (max-width: 720px) { .related-row { grid-template-columns: minmax(0, 1fr); } }
