/* heimdallX Help Center — shared styles. Mirrors the product/landing design
   system (dark navy + gold, Inter / JetBrains Mono). Self-hosted fonts so type
   renders identically to heimdallx.ai regardless of the visitor's OS. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-800.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jbmono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/jbmono-700.woff2") format("woff2"); }

:root {
  --bg: #070b16;
  --surface: #0f172a;
  --surface-2: #111a2e;
  --subtle: #1e293b;
  --border: #233047;
  --border-soft: #1a2438;
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --brand: #f5b301;
  --brand-fg: #ffd54f;
  --crit: #ef4444;
  --high: #f97316;
  --med: #eab308;
  --low: #3b82f6;
  --ok: #22c55e;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1100px 560px at 82% -12%, rgba(245, 179, 1, 0.10), transparent),
    radial-gradient(820px 460px at -5% 2%, rgba(59, 130, 246, 0.08), transparent);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
code, kbd { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.9em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 22, 0.78);
  border-bottom: 1px solid var(--border-soft);
}
.nav .inner { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--brand-fg); letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; }
.brand .x { color: var(--brand); }
.brand .tag { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; margin-left: 2px; }
.nav-links { display: flex; gap: 20px; margin-left: 14px; color: var(--muted); font-size: 14px; }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.spacer { flex: 1; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; font-size: 13px; font-weight: 600; }
.lang a { padding: 6px 11px; color: var(--muted); }
.lang a.on { background: var(--subtle); color: var(--fg); }
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--fg);
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.btn:hover { background: var(--subtle); }
.btn-primary { background: var(--brand); color: #1a1300; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-fg); }

/* ── Hero ────────────────────────────────────────── */
.hero { padding: 70px 0 26px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--brand-fg);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
  background: rgba(245, 179, 1, 0.06);
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin: 20px 0 14px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--brand-fg), var(--brand), #ff8a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 680px; }
.hero .search { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Quick-start cards ───────────────────────────── */
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 30px; }
.qcard {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px;
  background: linear-gradient(180deg, var(--surface), rgba(15, 23, 42, 0.5));
  transition: border-color .15s, transform .15s;
}
.qcard:hover { border-color: var(--brand); transform: translateY(-2px); }
.qcard .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(245, 179, 1, 0.12); color: var(--brand-fg); font-size: 17px; margin-bottom: 11px; }
.qcard h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.qcard p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── Sections ────────────────────────────────────── */
section.doc { padding: 40px 0; border-top: 1px solid var(--border-soft); }
section.doc:first-of-type { border-top: none; }
.sec-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.sec-h { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -0.015em; margin: 8px 0 10px; }
.sec-sub { font-size: 16px; color: var(--muted); max-width: 720px; margin-bottom: 8px; }

.prose { font-size: 15.5px; color: #cbd5e1; }
.prose p { margin: 14px 0; }
.prose strong { color: var(--fg); font-weight: 700; }
.prose a.link { color: var(--brand-fg); border-bottom: 1px solid rgba(255, 213, 79, 0.35); }
.prose a.link:hover { border-color: var(--brand-fg); }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 20px 0; display: grid; gap: 12px; }
.steps li { position: relative; padding: 14px 16px 14px 58px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: var(--brand); color: #1a1300;
}
.steps li h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.steps li p { font-size: 13.5px; color: var(--muted); }

/* Figure / screenshot with browser chrome */
figure.shot { margin: 24px 0 6px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #0a0f1d; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.8); }
figure.shot .bar { display: flex; align-items: center; gap: 7px; padding: 10px 13px; background: #0c1322; border-bottom: 1px solid var(--border-soft); }
figure.shot .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
figure.shot .bar i:nth-child(1) { background: #ff5f57; }
figure.shot .bar i:nth-child(2) { background: #febc2e; }
figure.shot .bar i:nth-child(3) { background: #28c840; }
figure.shot .bar .url { margin-left: 10px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted-2); }
figure.shot img { display: block; width: 100%; height: auto; }
figure.shot.plain { }
figcaption { font-size: 13px; color: var(--muted-2); margin-top: 10px; text-align: center; }

/* Feature grid (modules) */
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 22px 0; }
.feat .item { border: 1px solid var(--border); border-radius: 12px; padding: 18px; background: var(--surface); }
.feat .item .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.feat .item h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; }
.feat .item p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.feat .item .plan { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-fg); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }

/* Callout */
.callout { border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 10px; padding: 14px 16px; background: rgba(245, 179, 1, 0.05); font-size: 14px; color: #cbd5e1; margin: 18px 0; }
.callout strong { color: var(--brand-fg); }

/* Pills / severity legend */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); }
.pill.crit { color: #fecaca; background: rgba(239, 68, 68, .12); border-color: rgba(239,68,68,.4); }
.pill.high { color: #fed7aa; background: rgba(249, 115, 22, .12); border-color: rgba(249,115,22,.4); }
.pill.med { color: #fde68a; background: rgba(234, 179, 8, .12); border-color: rgba(234,179,8,.4); }
.pill.low { color: #bfdbfe; background: rgba(59, 130, 246, .12); border-color: rgba(59,130,246,.4); }
.pill.info { color: #cbd5e1; background: rgba(148, 163, 184, .12); border-color: rgba(148,163,184,.4); }

/* Plans table */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 22px 0; }
.plan-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.plan-card.pro { border-color: rgba(245, 179, 1, 0.5); }
.plan-card h4 { font-size: 18px; font-weight: 800; }
.plan-card .who { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.plan-card ul { list-style: none; display: grid; gap: 8px; }
.plan-card li { font-size: 13.5px; color: #cbd5e1; padding-left: 22px; position: relative; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan-card li.off { color: var(--muted-2); }
.plan-card li.off::before { content: "–"; color: var(--muted-2); }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .body { padding: 0 18px 16px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Footer */
footer { border-top: 1px solid var(--border-soft); padding: 40px 0 60px; margin-top: 30px; color: var(--muted); }
footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
footer .brand { margin-bottom: 8px; }
footer .fnav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 14px; }
footer .fnav a:hover { color: var(--fg); }
footer .fine { font-size: 12.5px; color: var(--muted-2); margin-top: 22px; }

/* Anchor offset helper */
.anchor { position: relative; top: -76px; visibility: hidden; }

/* ── Two-column layout: sticky ToC + content ─────── */
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 46px; align-items: start; padding-top: 8px; }
.toc { position: sticky; top: 84px; font-size: 13.5px; }
.toc .toc-h { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin: 16px 0 8px; }
.toc .toc-h:first-child { margin-top: 0; }
.toc a { display: block; padding: 6px 12px; color: var(--muted); border-left: 2px solid transparent; border-radius: 0 6px 6px 0; transition: all .12s; }
.toc a:hover { color: var(--fg); background: var(--surface); }
.toc a.active { color: var(--brand-fg); border-left-color: var(--brand); background: rgba(245,179,1,0.06); }
.content { min-width: 0; }
.content section.doc:first-child { border-top: none; padding-top: 8px; }

/* Tip / note callout variants */
.callout.tip { border-left-color: var(--ok); background: rgba(34, 197, 94, 0.05); }
.callout.tip strong { color: #86efac; }
.callout.note { border-left-color: var(--low); background: rgba(59, 130, 246, 0.05); }
.callout.note strong { color: #93c5fd; }
/* Plain-language "쉽게 말하면" beginner explainer */
.callout.plain { border-left-color: #a78bfa; background: rgba(167, 139, 250, 0.06); }
.callout.plain strong { color: #c4b5fd; }
.callout.plain .k { color: #c4b5fd; }
.callout .k { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; display: block; margin-bottom: 3px; }

/* Glossary */
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 20px 0; }
.glossary .term { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.glossary .term dt { font-family: "JetBrains Mono", monospace; font-weight: 700; color: var(--brand-fg); font-size: 14px; margin-bottom: 4px; }
.glossary .term dd { font-size: 13px; color: var(--muted); line-height: 1.55; }
.gloss-group { grid-column: 1 / -1; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin: 14px 0 2px; }
.gloss-group:first-child { margin-top: 0; }

/* Role cards */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 18px 0; }
.role { border: 1px solid var(--border); border-radius: 12px; padding: 15px 16px; background: var(--surface); }
.role h4 { font-size: 14px; font-weight: 800; color: var(--fg); margin-bottom: 4px; }
.role p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* Inline sub-figure caption spacing when stacking two shots */
.shot + .shot { margin-top: 18px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 18px; }
  footer .cols { flex-direction: column; gap: 24px; }
}

/* Moved out of style="" attributes. The docs CSP is `style-src 'self'` with no
   'unsafe-inline', which blocks inline style ATTRIBUTES too — six of them were
   being dropped on every page (four module swatches, the footer mark and blurb),
   so the swatches rendered colourless. A CSP that forbids inline styles and HTML
   that uses them is not a strict policy, it is a broken page. */
.dot--brand { background: var(--brand); }
.dot--low   { background: var(--low); }
.dot--ok    { background: var(--ok); }
.dot--high  { background: var(--high); }
.brand-mark { width: 24px; height: 24px; }
.foot-blurb { font-size: 13.5px; max-width: 320px; }

/* The /index.html language-redirect fallback (see that file). */
.redirect-page { background: #070b16; color: #94a3b8; font-family: system-ui, sans-serif; }
.redirect-page .noscript-note { padding: 24px; }
.redirect-page a { color: #ffd54f; }
