/* OSCAR website — static, no external fonts or scripts (CSP: style-src 'self', no inline styles).
   Same system as the SSemRelay Console / SSem TouchOTP sites; teal brand = the shield icon (#0F766E).
   The screen mockups are plain HTML with made-up data (no real hosts, projects or vulnerabilities). */
:root {
  --brand: #0f766e;
  --brand-2: #14b8a6;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #ebf3f2;
  --text: #0f1b24;
  --muted: #4c5a66;
  --border: #d9e3e6;
  --warn-bg: #fff6e5;
  --warn-border: #f2c26b;
  --warn-text: #6b4a00;
  --ok: #14925a;
  --link: #0b6b63;
  --focus: #0b6b63;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 27, 36, 0.06), 0 8px 24px rgba(15, 27, 36, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "D2Coding", monospace;
  /* architecture diagram */
  --d-src: #f4effd;
  --d-src-line: #c3b1ef;
  --d-gw: #e6f6f3;
  --d-gw-line: #8fd0c4;
  --d-core: #e8f0fd;
  --d-core-line: #9bb8ea;
  --d-ext: #fdf4e3;
  --d-ext-line: #e8cf96;
  --d-arrow: #4c5a66;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4fd1c0;
    --bg: #0a0f13;
    --surface: #121a20;
    --surface-2: #17232a;
    --text: #e5ecee;
    --muted: #98a7ae;
    --border: #24323a;
    --warn-bg: #2a2110;
    --warn-border: #7a5a1c;
    --warn-text: #f3d596;
    --ok: #3cc98a;
    --link: #7fdcd0;
    --focus: #7fdcd0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --d-src: #221b36;
    --d-src-line: #5b4a91;
    --d-gw: #10282a;
    --d-gw-line: #2b6f68;
    --d-core: #17243a;
    --d-core-line: #3c5f97;
    --d-ext: #2a2110;
    --d-ext-line: #7a5a1c;
    --d-arrow: #98a7ae;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
img { max-width: 100%; height: auto; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.9em; }
code { padding: 1px 5px; border-radius: 6px; background: var(--surface-2); }

.skip-link { position: absolute; left: -999px; top: 8px; padding: 8px 14px; background: var(--surface); border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 800px; }
.nw { white-space: nowrap; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand .accent { color: var(--brand); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .lang { border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; }
.site-nav a.nav-cta { color: var(--link); border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border)); border-radius: 999px; padding: 3px 12px; font-weight: 700; }
.site-nav a.nav-cta:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }

.badge {
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border));
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--link); white-space: nowrap;
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.button.primary { color: #fff; background: linear-gradient(135deg, #0f766e, #115e59); box-shadow: 0 6px 18px rgba(15, 118, 110, 0.28); }
.button.primary:hover { filter: brightness(1.08); }
.button.secondary { color: var(--text); background: var(--surface); border-color: var(--border); }
.button.secondary:hover { border-color: var(--brand); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }

/* Hero */
.hero { padding: 56px 0 44px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--link); background: color-mix(in srgb, var(--brand) 13%, transparent); padding: 4px 12px; border-radius: 999px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.16; letter-spacing: -0.02em; margin: 18px 0 16px; }
h1 .grad { background: linear-gradient(135deg, #0f9a8c, #115e59); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) {
  h1 .grad { background: linear-gradient(135deg, #8ff0e2, #3fbfae); -webkit-background-clip: text; background-clip: text; }
}
.acronym { font-size: 15px; color: var(--muted); margin: 0 0 14px; letter-spacing: 0.01em; }
.acronym b { color: var(--brand); font-weight: 800; }
.lead { font-size: 19px; color: var(--muted); margin: 0; max-width: 34em; }
.lead strong { color: var(--text); }
.meta { font-size: 14px; color: var(--muted); margin: 0; }

/* ───────── Screen mockups (made-up data) — always dark ───────── */
.mock {
  --m-bg: #0e1215;
  --m-bar: #12171b;
  --m-panel: #161c21;
  --m-sunk: #11161a;
  --m-line: #252e35;
  --m-line2: #334049;
  --m-text: #e5ebee;
  --m-text2: #c2ccd1;
  --m-muted: #97a3aa;
  --m-accent: #4fd1c0;
  --m-accent-ink: #062320;
  --m-user: #1d3a37;
  --sv-c: #e5484d;
  --sv-h: #f2802f;
  --sv-m: #e3b83b;
  --sv-l: #5aa9e6;
  --sv-u: #6b7780;
  font-family: var(--font);
  color: var(--m-text);
  background: var(--m-bg);
  border: 1px solid #252e35;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}
.showcase { display: grid; gap: 14px; min-width: 0; }
.showcase-cap { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--muted); }
.showcase-cap p { margin: 0; }
.cap-k { font-weight: 700; color: var(--text); margin-right: 6px; }

.browser { border-radius: 12px; display: flex; flex-direction: column; font-size: 12.5px; }
.bw-bar { display: flex; align-items: center; gap: 12px; padding: 7px 12px; background: #192026; border-bottom: 1px solid var(--m-line); }
.bw-bar::after { content: ""; width: 42px; flex: none; }
.bw-dots { display: flex; gap: 6px; flex: none; width: 42px; }
.bw-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e0625a; }
.bw-dots i + i { background: #d9a43a; }
.bw-dots i + i + i { background: #3fae58; }
.bw-url { flex: 0 1 320px; margin: 0 auto; text-align: center; font-size: 11px; color: var(--m-muted); background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 7px; padding: 1px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; background: var(--m-bar); border-bottom: 1px solid var(--m-line); white-space: nowrap; }
.db-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.db-logo { width: 22px; height: 22px; border-radius: 6px; background: #0f766e; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.db-menu { display: flex; gap: 12px; color: var(--m-muted); font-size: 11.5px; overflow: hidden; }
.db-menu .on { color: var(--m-accent); font-weight: 700; }
.db-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi { border: 1px solid var(--m-line); border-radius: 10px; padding: 7px 9px; background: var(--m-panel); min-width: 0; }
.kpi .k { font-size: 10.5px; color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.kpi .d { font-size: 10.5px; color: var(--m-text2); }
.kpi.crit .v { color: #ff8a8d; }
.db-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.db-box { border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-panel); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.db-box h4 { margin: 0; font-size: 11.5px; color: var(--m-text2); display: flex; justify-content: space-between; gap: 6px; }
.db-box h4 span { font-weight: 400; color: var(--m-muted); }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 8px; align-items: center; font-size: 11.5px; }
.prow .pn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .pn em { font-style: normal; color: var(--m-muted); margin-left: 5px; font-size: 10.5px; }
.sev { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--m-sunk); }
.sev i { display: block; height: 100%; }
.sev .c { background: var(--sv-c); } .sev .h { background: var(--sv-h); } .sev .m { background: var(--sv-m); } .sev .l { background: var(--sv-l); }
.trend { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; align-items: end; height: 58px; border-bottom: 1px solid var(--m-line); padding-bottom: 2px; }
.trend i { display: block; border-radius: 2px 2px 0 0; background: var(--m-accent); opacity: 0.85; }
.trend i.hot { background: var(--sv-c); opacity: 1; }
.trend-cap { display: flex; justify-content: space-between; font-size: 10px; color: var(--m-muted); }
.sv-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10px; color: var(--m-muted); }
.sv-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
.sv-legend .c::before { background: var(--sv-c); } .sv-legend .h::before { background: var(--sv-h); }
.sv-legend .m::before { background: var(--sv-m); } .sv-legend .l::before { background: var(--sv-l); }

/* Chat panel (AI question) */
.chat { border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--m-muted); }
.chat-head b { color: var(--m-text); font-size: 13.5px; }
.m-user { align-self: flex-end; max-width: 88%; background: var(--m-user); border: 1px solid #2c5a55; border-radius: 14px 14px 4px 14px; padding: 7px 11px; }
.m-asst { color: var(--m-text2); }
.m-asst::before { content: "●"; color: var(--m-accent); font-size: 9px; margin-right: 7px; vertical-align: 2px; }
.m-tools { display: flex; flex-wrap: wrap; gap: 5px; }
.m-tool { font-family: var(--mono); font-size: 11px; border: 1px solid var(--m-line2); background: var(--m-panel); border-radius: 6px; padding: 1px 7px; color: var(--m-text2); }
.m-tool::before { content: "⚙ "; color: var(--m-accent); }
.m-list { margin: 0; padding: 8px 10px; list-style: none; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-panel); display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.m-list li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.m-list .pn { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-list .cv { font-family: var(--mono); font-size: 11px; color: var(--m-muted); white-space: nowrap; }
.pill { font-size: 10.5px; font-weight: 700; padding: 0 7px; border-radius: 999px; white-space: nowrap; }
.pill.c { background: #3a1517; color: #ffb0b2; }
.pill.h { background: #3a2412; color: #ffc896; }
.pill.ok { background: #13322a; color: #8be3c9; }
.m-input { border: 1px solid var(--m-line2); border-radius: 12px; padding: 7px 11px; color: var(--m-muted); display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.m-send { width: 24px; height: 24px; border-radius: 8px; background: var(--m-accent); display: grid; place-items: center; color: var(--m-accent-ink); font-weight: 800; }

/* Small panels (tour) */
.tour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tour figure { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tour figcaption { font-size: 14.5px; color: var(--muted); }
.tour figcaption strong { color: var(--text); display: block; font-size: 16px; }
.panel { border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.panel-t { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.panel-t span { font-weight: 400; font-size: 11px; color: var(--m-muted); }
.lic { border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-panel); padding: 8px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.lic .lk { color: var(--m-accent); font-weight: 700; font-size: 11px; }
.lic .lo { color: var(--m-muted); font-size: 11px; }
.lic .tm { font-family: var(--mono); font-size: 10.5px; color: var(--m-muted); }
.hist { display: flex; flex-direction: column; gap: 5px; }
.hrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 7px; align-items: center; font-size: 11.5px; border: 1px solid var(--m-line); background: var(--m-panel); border-radius: 8px; padding: 5px 8px; }
.hrow .t { font-family: var(--mono); font-size: 10.5px; color: var(--m-muted); }
.hrow .w { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .w em { font-style: normal; color: var(--m-muted); }
.tagrow { display: flex; flex-wrap: wrap; gap: 4px; }
.tg { font-family: var(--mono); font-size: 10.5px; border: 1px solid var(--m-line2); border-radius: 5px; padding: 0 6px; color: var(--m-text2); }
.tg.k { border-color: #2b6f68; color: #8be3c9; }
.vuln { border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-panel); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.vuln .vh { display: flex; justify-content: space-between; gap: 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; }
.vuln .vc { color: var(--m-muted); font-size: 11px; }
.path { font-family: var(--mono); font-size: 10.5px; color: var(--m-text2); line-height: 1.6; }
.path b { color: #ffb0b2; font-weight: 700; }

/* Widths for bars (no inline styles under the CSP) */
.w2 { width: 2%; } .w4 { width: 4%; } .w6 { width: 6%; } .w8 { width: 8%; } .w10 { width: 10%; } .w12 { width: 12%; }
.w14 { width: 14%; } .w18 { width: 18%; } .w20 { width: 20%; } .w22 { width: 22%; } .w26 { width: 26%; } .w30 { width: 30%; }
.w34 { width: 34%; } .w40 { width: 40%; }
.h1 { height: 18%; } .h2 { height: 30%; } .h3 { height: 42%; } .h4 { height: 55%; } .h5 { height: 68%; } .h6 { height: 82%; } .h7 { height: 100%; }

/* Sections */
section { padding: 52px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 20px; line-height: 1.35; margin: 0 0 8px; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 46em; }
.mt { margin-top: 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; min-width: 0; }
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card p + p { margin-top: 8px; }
.card .icon { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 12px; font-size: 22px; background: color-mix(in srgb, var(--brand) 13%, transparent); }

/* Before / after */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--surface-2); font-size: 14px; }
.compare td:first-child { font-weight: 700; white-space: nowrap; }
.compare td.before { color: var(--muted); }
.compare td.after { color: var(--text); }
.compare td.after::before { content: "→ "; color: var(--brand); font-weight: 800; }

/* Steps */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: flow; }
.flow .card { position: relative; padding-top: 52px; }
.flow .card::before { counter-increment: flow; content: counter(flow); position: absolute; top: 18px; left: 22px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--brand); }
@media (prefers-color-scheme: dark) { .flow .card::before { color: #062320; } }

/* Architecture diagram (inline SVG, colours from the variables above) */
.arch figure { margin: 0; min-width: 0; }
.diagram { display: block; width: 100%; height: auto; }
.diagram .box-src { fill: var(--d-src); stroke: var(--d-src-line); }
.diagram .box-gw { fill: var(--d-gw); stroke: var(--d-gw-line); }
.diagram .box-core { fill: var(--d-core); stroke: var(--d-core-line); }
.diagram .box-ext { fill: var(--d-ext); stroke: var(--d-ext-line); }
.diagram .inner { fill: var(--surface); stroke: var(--border); }
.diagram .arrow { stroke: var(--d-arrow); stroke-width: 2; fill: none; }
.diagram .arrow-dash { stroke: var(--d-arrow); stroke-width: 1.6; fill: none; stroke-dasharray: 5 4; }
.diagram .head { fill: var(--d-arrow); }
.diagram text { fill: var(--text); font-family: var(--font); font-size: 14px; }
.diagram .t-title { font-weight: 800; font-size: 15px; }
.diagram .t-sub { fill: var(--muted); font-size: 12.5px; }
.diagram .t-label { fill: var(--muted); font-size: 12.5px; }
.diagram .t-zone { font-weight: 800; font-size: 13px; fill: var(--muted); letter-spacing: 0.02em; }
.swipe-hint { display: none; }
.legend-list { margin: 22px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 15.5px; columns: 2 380px; column-gap: 32px; }
.legend-list li { margin: 0 0 0.6em; break-inside: avoid; }
.legend-list strong { color: var(--text); }
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stack .card h3 { font-size: 17px; }
.stack .card .k { display: block; font-size: 13px; font-weight: 700; color: var(--link); margin-bottom: 4px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--ok); margin-top: 3px; }
.checklist.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.limits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.limits li { position: relative; padding-left: 30px; }
.limits li::before { content: "!"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-border); margin-top: 3px; }

.callout { border: 1px solid var(--warn-border); background: var(--warn-bg); color: var(--warn-text); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.callout strong { color: inherit; }
.callout p { margin: 0.4em 0; }
.callout.info { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); color: var(--text); }

pre { font-family: var(--mono); font-size: 14px; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: pre; margin: 10px 0; line-height: 1.55; }
pre .c { color: var(--muted); }

/* Documents (guide) */
.doc { padding: 48px 0 64px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 42px); margin-top: 0; }
.doc h2 { font-size: 25px; margin-top: 2.2em; padding-top: 0.4em; scroll-margin-top: 80px; }
.doc h3 { margin-top: 1.6em; scroll-margin-top: 80px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; column-gap: 32px; }
.toc li { break-inside: avoid; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-weight: 700; }
.table-wrap { overflow-x: auto; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
details[open] { padding-bottom: 18px; }
summary { cursor: pointer; font-weight: 700; }
details > :not(summary) { margin-top: 10px; }

/* Inquiry */
.cta { text-align: center; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--brand) 6%, var(--bg)); padding: 64px 0; }
.cta h2 { margin-bottom: 12px; }
.cta p { margin: 0 auto 26px; max-width: 34em; color: var(--muted); }
.cta .cta-reach { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 20px auto 0; font-size: 16px; }
.cta-sep { color: var(--muted); }
.fineprint { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer .legal { flex-basis: 100%; margin: 4px 0 0; font-size: 12.5px; line-height: 1.6; }

@media (max-width: 960px) {
  .hero { padding-top: 36px; }
  .hero .container { grid-template-columns: 1fr; }
  .tour { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist.two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-grid { grid-template-columns: 1fr; }
  .db-menu { display: none; }
  /* 비교 표는 휴대폰 폭에서 행마다 카드로 쌓는다 — 영어는 낱말이 길어 세 칸에 들어가지 않는다 */
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .compare tr:last-child { border-bottom: 0; }
  .compare td { border: 0; padding: 2px 0; }
  .compare td:first-child { white-space: normal; margin-bottom: 2px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .button { width: 100%; }
  .site-nav { gap: 2px 14px; font-size: 14px; }
  .flow, .stack { grid-template-columns: 1fr; }
  /* 구성도는 휴대폰 폭에 맞추면 글자가 6px 가 된다 → 원래 크기로 두고 그림만 옆으로 민다 */
  .arch figure { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .diagram { width: 760px; max-width: none; }
  .swipe-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); text-align: center; }
}
@media print {
  .site-header, .site-footer, .buttons, .cta .button { display: none; }
  body { background: #fff; color: #000; }
}

/* ───────── Language switcher — <details> menu (no JavaScript; CSP blocks scripts) ───────── */
.langmenu, .langmenu[open] { position: relative; display: inline-block; background: none; border: 0; padding: 0; margin: 0; border-radius: 0; } /* FAQ 의 details 차림을 지운다 */
.langmenu > ul { margin-top: 0; }
.langmenu:not([open]) > ul { display: none; }
.langmenu > summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text); font-size: 15px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px 3px 10px;
}
.langmenu > summary::-webkit-details-marker { display: none; }
.langmenu > summary::after { content: "▾"; font-size: 11px; color: var(--muted); }
.langmenu[open] > summary, .langmenu > summary:hover { border-color: var(--brand); }
.globe { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.langmenu > ul {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 20;
  list-style: none; margin: 0; padding: 8px; min-width: 210px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.langmenu li a { display: block; padding: 8px 14px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 15.5px; }
.langmenu li a:hover { background: var(--surface-2); }
.langmenu li a[aria-current] { color: var(--brand); font-weight: 700; }
.site-footer .langs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; }
.site-footer .langs a[aria-current] { color: var(--text); font-weight: 700; text-decoration: none; }
@media (max-width: 480px) { .langmenu > ul { right: auto; left: 0; } }

/* ───────── Right-to-left (Arabic) — mirror the page, keep screens · diagram · code left-to-right ───────── */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .mock, [dir="rtl"] .diagram, [dir="rtl"] pre, [dir="rtl"] code, [dir="rtl"] .bw-url { direction: ltr; text-align: left; }
[dir="rtl"] .checklist li, [dir="rtl"] .limits li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .checklist li::before, [dir="rtl"] .limits li::before { left: auto; right: 0; }
[dir="rtl"] .flow .card::before { left: auto; right: 22px; }
[dir="rtl"] .compare th, [dir="rtl"] .compare td, [dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] .compare td.after::before { content: "← "; }
[dir="rtl"] .legend-list, [dir="rtl"] .doc ol, [dir="rtl"] .doc ul, [dir="rtl"] .toc ol { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .langmenu > ul { right: auto; left: 0; }
[dir="rtl"] .cta { text-align: center; }
@media (max-width: 480px) { [dir="rtl"] .langmenu > ul { left: auto; right: 0; } }

/* 일본어 · 중국어는 낱말 사이에 띄어쓰기가 없다 — keep-all 이면 줄이 아예 안 바뀌어 화면 밖으로 나간다 */
html:lang(ja) body, html:lang(zh-Hans) body { word-break: normal; line-break: strict; }
/* RTL 에서는 왼쪽 밖이 스크롤 영역이 된다 — 건너뛰기 링크를 오른쪽 밖으로 숨긴다 */
[dir="rtl"] .skip-link { left: auto; right: -999px; }
[dir="rtl"] .skip-link:focus { right: 8px; }
