/* =========================================================
   PHP 보안 센터 — Design System
   Ink navy + signal lime + alert red / Pretendard + JetBrains Mono
   ========================================================= */
:root {
  --ink-950: #060a12;
  --ink-900: #0a0f1a;
  --ink-850: #0e1522;
  --ink-800: #131c2c;
  --ink-700: #1d2a40;
  --ink-600: #2c3c57;
  --line-d: rgba(160, 185, 220, .12);
  --text-d: #e7edf6;
  --muted-d: #93a1b8;

  --paper: #f6f7f4;
  --paper-2: #eceee8;
  --white: #fff;
  --text: #121826;
  --muted: #5b6577;
  --line: #dcdfd6;

  --signal: #c6f432;      /* 메인 포인트: 방어/정상 */
  --signal-dk: #5d7d00;
  --php: #8892bf;         /* PHP 브랜드 톤 */
  --alert: #ff4d4f;
  --warn: #ffb020;
  --info: #5cc8ff;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 15, 26, .06), 0 8px 24px rgba(10, 15, 26, .06);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Pretendard Variable", Pretendard, "Malgun Gothic", monospace;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text);
  background: var(--paper); word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.02em; font-weight: 750; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: .88em; background: rgba(136, 146, 191, .16); padding: .1em .4em; border-radius: 4px; }
strong { font-weight: 700; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--signal); color: var(--ink-900); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.hl { color: var(--signal-dk); }
.section-dark .hl, .hero .hl { color: var(--signal); }
.br-m { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.2;
  border: 1.5px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn .ico { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-primary { background: var(--signal); color: var(--ink-900); }
.btn-primary:hover { background: #d6ff52; }
.btn-ghost { border-color: currentColor; color: inherit; opacity: .9; }
.btn-ghost:hover { opacity: 1; background: rgba(127, 127, 127, .1); }
.btn-danger { background: var(--alert); color: #fff; }
.btn-danger:hover { background: #ff6668; }

/* ---------- Notice bar ---------- */
.notice-bar { background: var(--ink-950); color: var(--muted-d); font-size: 13px; border-bottom: 1px solid var(--line-d); }
.notice-inner { display: flex; align-items: center; gap: 14px; min-height: 38px; }
.notice-inner p { margin: 0; color: var(--text-d); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-inner .muted { color: var(--muted-d); }
.notice-inner a { color: var(--signal); font-weight: 600; white-space: nowrap; }
.notice-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--alert); font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 0 0 rgba(255, 77, 79, .6); animation: ping 1.8s infinite; display: inline-block; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 79, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255, 77, 79, 0); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(10, 15, 26, .86); color: var(--text-d);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-d);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 36px; height: 36px; color: var(--signal); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; letter-spacing: -.01em; }
.brand-text small { font-size: 11px; color: var(--muted-d); }
.gnb { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.gnb ul { display: flex; gap: 2px; }
.gnb ul a { display: block; padding: 8px 11px; font-size: 14.5px; font-weight: 550; color: #c8d2e2; border-radius: 8px; transition: color .15s, background .15s; }
.gnb ul a:hover, .gnb ul a.is-active { color: #fff; background: rgba(255, 255, 255, .06); }
.gnb ul a.is-active { color: var(--signal); }
.header-tel { display: none; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 700; color: var(--signal); font-size: 15px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; }
.nav-toggle .ico { width: 26px; height: 26px; }
.nav-toggle .i-close { display: none; }

/* ---------- Hero ---------- */
.hero, .sub-hero { position: relative; background: var(--ink-900); color: var(--text-d); overflow: hidden; isolation: isolate; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(var(--line-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -200px; top: -260px;
  background: radial-gradient(circle, rgba(198, 244, 50, .14), transparent 62%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 88px 0 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--signal-dk); text-transform: uppercase; }
.section-dark .eyebrow, .hero .eyebrow, .sub-hero .eyebrow, .section-band .eyebrow { color: var(--signal); }
.eyebrow-alert, .section-dark .eyebrow-alert, .hero .eyebrow-alert { color: var(--alert); }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.14; margin-bottom: 24px; }
.hero-lead { font-size: clamp(16px, 1.5vw, 18.5px); color: #b7c3d6; max-width: 600px; margin-bottom: 32px; }
.hero-lead strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero .btn-ghost, .sub-hero .btn-ghost, .section-dark .btn-ghost, .section-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted-d); }
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust .ico { color: var(--signal); width: 16px; height: 16px; }

/* Terminal */
.terminal { background: #070b13; border: 1px solid var(--line-d); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(198, 244, 50, .05); overflow: hidden; font-family: var(--mono); font-size: 13px; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #0d131f; border-bottom: 1px solid var(--line-d); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3448; }
.term-bar i:first-child { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; color: var(--muted-d); font-size: 12px; }
.term-body { padding: 18px 18px 22px; min-height: 280px; line-height: 1.95; }
.term-body p { margin: 0; color: #c9d4e5; white-space: pre-wrap; }
.js .term-body[data-typer] p { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.js .term-body[data-typer] p.on { opacity: 1; transform: none; }
.t-dim { color: #56637b; } .t-alert { color: var(--alert); font-weight: 700; } .t-warn { color: var(--warn); font-weight: 700; } .t-info { color: var(--info); } .t-ok { color: var(--signal); font-weight: 700; }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--signal); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line-d); }
.stats > div { padding: 28px 24px 36px; border-right: 1px solid var(--line-d); }
.stats > div:last-child { border-right: 0; }
.stats dt { font-size: 13.5px; color: var(--muted-d); margin-bottom: 6px; }
.stats dd { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.stats dd small { font-size: 15px; font-weight: 600; color: var(--signal); margin-left: 2px; letter-spacing: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink-900); color: var(--text-d); }
.section-dark p { color: #b2bfd3; }
.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.sec-head > p:last-child { font-size: 17px; color: var(--muted); margin: 0; }
.section-dark .sec-head > p:last-child { color: var(--muted-d); }
.section-dark .sec-head strong { color: #fff; }
.sec-head-left { text-align: left; margin-left: 0; }

/* Problem */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.problem-grid li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; display: flex; gap: 16px; transition: transform .25s var(--ease), box-shadow .25s; }
.problem-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.problem-grid b { flex: none; font-family: var(--mono); font-size: 13px; color: var(--alert); padding-top: 3px; }
.problem-grid p { margin: 0; font-size: 16.5px; }
.problem-grid strong { box-shadow: inset 0 -.45em 0 rgba(198, 244, 50, .55); }
.problem-answer { margin: 40px auto 0; text-align: center; font-size: clamp(17px, 2vw, 21px); max-width: 820px; }
.problem-answer strong { color: var(--signal-dk); }

/* Incident */
.incident-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: var(--radius); overflow: hidden; margin: 0 0 56px; }
.incident-stats > div { background: var(--ink-850); padding: 28px 24px; }
.incident-stats dt { font-size: 13.5px; color: var(--muted-d); }
.incident-stats dd { margin: 4px 0 0; font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: var(--alert); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.incident-stats dd small { font-size: 16px; color: var(--text-d); margin-left: 2px; font-weight: 600; }
.incident-body { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; }
.incident-body h3 { font-size: 20px; margin-bottom: 20px; }
.attack-path { counter-reset: a; }
.attack-path li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-d); }
.attack-path li > span { flex: none; font-family: var(--mono); color: var(--alert); font-size: 13px; padding-top: 3px; }
.attack-path strong { display: block; font-size: 17px; color: #fff; margin-bottom: 4px; }
.attack-path p { margin: 0; font-size: 15px; }
.incident-aside { background: var(--ink-800); border: 1px solid var(--line-d); border-radius: var(--radius); padding: 30px; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.incident-aside .check-list { margin-bottom: 24px; }
.incident-aside code { background: rgba(255, 77, 79, .12); color: #ffb3b4; }
.sources { margin: 20px 0 0; font-size: 12.5px; color: var(--muted-d) !important; }

/* Check list */
.check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .48em; width: 14px; height: 8px; border-left: 2px solid var(--signal-dk); border-bottom: 2px solid var(--signal-dk); transform: rotate(-45deg); }
.section-dark .check-list li::before, .sub-hero .check-list li::before, .incident-aside .check-list li::before { border-color: var(--signal); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(10, 15, 26, .25); border-color: var(--ink-900); }
.service-card .sc-no { position: absolute; right: 20px; top: 16px; font-family: var(--mono); font-size: 40px; font-weight: 700; color: var(--paper-2); line-height: 1; }
.sc-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ink-900); color: var(--signal); margin-bottom: 20px; position: relative; }
.sc-ico .ico { width: 24px; height: 24px; }
.sc-en { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.service-card h3 { font-size: 18.5px; margin-bottom: 12px; }
.service-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.sc-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink-900); margin-top: 8px; }
.sc-more .ico { width: 16px; height: 16px; transition: transform .2s; }
.service-card:hover .sc-more .ico { transform: translateX(4px); }
.service-card.is-urgent .sc-ico { background: var(--alert); color: #fff; }
.service-card-cta { background: var(--ink-900); color: var(--text-d); border-color: var(--ink-900); justify-content: center; }
.service-card-cta .sc-en { color: var(--signal); }
.service-card-cta p { color: var(--muted-d); }
.service-card-cta .btn { align-self: flex-start; margin-top: 12px; }

/* Band */
.section-band { background: linear-gradient(120deg, var(--ink-900), #142034 60%, #1b2b18); color: var(--text-d); }
.band-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.band-inner h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin-bottom: 18px; }
.band-inner p { color: #b2bfd3; margin-bottom: 28px; font-size: 17px; }
.band-inner p strong { color: var(--signal); }
.version-flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 16px; }
.ver { border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--line-d); }
.ver small { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.ver strong { display: block; font-family: var(--mono); font-size: 24px; margin: 6px 0 14px; }
.ver li { font-size: 14px; padding: 4px 0; color: #b2bfd3; }
.ver-old { background: rgba(255, 77, 79, .06); border-color: rgba(255, 77, 79, .3); }
.ver-old small { color: var(--alert); } .ver-old strong { color: #ffb3b4; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(255, 77, 79, .6); }
.ver-new { background: rgba(198, 244, 50, .07); border-color: rgba(198, 244, 50, .35); }
.ver-new small, .ver-new strong { color: var(--signal); }
.ver-arrow { display: grid; place-items: center; color: var(--signal); }
.ver-arrow .ico { width: 28px; height: 28px; }

/* Tabs */
.tabs { background: var(--ink-900); color: var(--text-d); border-radius: 20px; overflow: hidden; }
.tab-list { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line-d); scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button { flex: 1 0 auto; background: none; border: 0; color: var(--muted-d); padding: 18px 22px; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.tab-list button:hover { color: #fff; }
.tab-list button[aria-selected="true"] { color: var(--signal); border-bottom-color: var(--signal); }
.tab-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; padding: 40px; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 22px; margin-bottom: 20px; }
.tab-panel .check-list li { color: #c3cee0; }
.tab-panel .check-list li::before { border-color: var(--signal); }
.code { margin: 0; background: #060a12; border: 1px solid var(--line-d); border-radius: 12px; padding: 22px 24px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #d5def0; }
.code code { background: none; padding: 0; font-size: inherit; }
.code .c { color: #6a7a96; font-style: italic; }
.std-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.std-chips li { font-family: var(--mono); font-size: 12.5px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); }

/* Compliance table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.comp-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.comp-table th, .comp-table td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; }
.comp-table thead th { background: var(--ink-900); color: var(--text-d); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.comp-table tbody th { font-weight: 700; white-space: nowrap; width: 180px; }
.comp-table tbody td:nth-child(2) { color: var(--muted); }
.comp-table tbody td:last-child { font-weight: 550; }
.comp-table tbody tr:last-child > * { border-bottom: 0; }
.comp-table tbody tr:hover { background: #fbfcf8; }
.disclaimer { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.compare-col { border-radius: var(--radius); padding: 36px; }
.compare-col h3 { font-size: 20px; margin-bottom: 22px; }
.compare-col li { padding: 12px 0; border-bottom: 1px dashed currentColor; display: flex; gap: 10px; align-items: flex-start; }
.compare-col li:last-child { border-bottom: 0; }
.compare-them { background: var(--paper-2); color: var(--muted); }
.compare-them li { border-color: #cfd3c8; text-decoration: line-through; text-decoration-color: rgba(91, 101, 119, .35); }
.compare-us { background: var(--ink-900); color: var(--text-d); box-shadow: 0 24px 60px -24px rgba(10, 15, 26, .5); }
.compare-us h3 { color: var(--signal); }
.compare-us li { border-color: var(--line-d); }
.compare-us .ico { color: var(--signal); margin-top: 3px; }
.compare-us strong { color: #fff; }

/* Process */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.process.process-4 { grid-template-columns: repeat(4, 1fr); }
.process.process-5 { grid-template-columns: repeat(5, 1fr); }
.process li { position: relative; padding: 0 18px 0 0; }
.process li::before { content: ""; position: absolute; top: 22px; left: 48px; right: 6px; height: 1px; background: linear-gradient(90deg, var(--signal), rgba(198, 244, 50, .1)); }
.process li:last-child::before { display: none; }
.p-no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--signal); color: var(--signal); font-family: var(--mono); font-size: 14px; font-weight: 700; margin-bottom: 20px; background: var(--ink-900); position: relative; }
.process h3 { font-size: 17px; margin-bottom: 8px; color: #fff; }
.process p { font-size: 14px; margin-bottom: 10px; }
.process small { font-family: var(--mono); font-size: 11.5px; color: var(--signal); }
.scope { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line-d); }
.scope h3 { font-size: 18px; margin-bottom: 24px; }
.scope ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.scope li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 18px 20px; background: var(--ink-850); border: 1px solid var(--line-d); border-radius: 12px; font-weight: 650; color: #fff; }
.scope li .ico { color: var(--signal); }
.scope li small { width: 100%; padding-left: calc(1.25em + 12px); font-weight: 400; font-size: 13px; color: var(--muted-d); }

/* Self check */
.selfcheck { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.selfcheck .sec-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.sc-result { margin-top: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.sc-meter { height: 10px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.sc-meter span { display: block; height: 100%; width: 0; background: var(--signal-dk); border-radius: inherit; transition: width .4s var(--ease), background .3s; }
.sc-result[data-level="mid"] .sc-meter span { background: var(--warn); }
.sc-result[data-level="high"] .sc-meter span { background: var(--alert); }
.sc-score { margin: 14px 0 4px; font-size: 15px; color: var(--muted); }
.sc-score strong { font-size: 32px; color: var(--text); font-variant-numeric: tabular-nums; margin-right: 2px; }
.sc-msg { font-weight: 600; min-height: 3.4em; }
.sc-result[data-level="high"] .sc-msg { color: #c62828; }
.sc-result[data-level="mid"] .sc-msg { color: #9a6200; }
.sc-list { display: grid; gap: 10px; margin: 0; }
.sc-item { display: flex; align-items: flex-start; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; font-size: 16px; }
.sc-item:hover { border-color: var(--ink-600); }
.sc-item input { position: absolute; opacity: 0; pointer-events: none; }
.sc-box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid #b9beb2; margin-top: 1px; transition: background .15s, border-color .15s; color: transparent; }
.sc-box .ico { width: 16px; height: 16px; }
.sc-item input:checked + .sc-box { background: var(--ink-900); border-color: var(--ink-900); color: var(--signal); }
.sc-item:has(input:checked) { border-color: var(--ink-900); background: #fbfdf3; }
.sc-item input:focus-visible + .sc-box { outline: 2px solid var(--signal-dk); outline-offset: 2px; }

/* Packages */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pkg { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; }
.pkg-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.pkg h3 { font-size: 21px; margin-bottom: 8px; }
.pkg-price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.pkg .check-list { flex: 1; margin-bottom: 28px; }
.pkg .btn { align-self: stretch; }
.pkg-best { background: var(--ink-900); color: var(--text-d); border-color: var(--ink-900); transform: translateY(-12px); box-shadow: 0 30px 60px -24px rgba(10, 15, 26, .55); }
.pkg-best .pkg-tag { color: var(--signal); }
.pkg-best .pkg-price { border-color: var(--line-d); color: var(--signal); }
.pkg-best .check-list li::before { border-color: var(--signal); }

/* Company */
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.company-info { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 30px; }
.company-info > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.company-info > div:last-child { border-bottom: 0; }
.company-info dt { color: var(--muted); font-size: 14px; }
.company-info dd { margin: 0; font-weight: 600; }
.company-info dd small { font-weight: 400; color: var(--muted); }
.company-info a { color: var(--signal-dk); }
.certs h3 { font-size: 18px; margin-bottom: 16px; }
.cert { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--ink-900); color: var(--text-d); margin-bottom: 12px; }
.cert-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(198, 244, 50, .12); color: var(--signal); }
.cert strong { display: block; font-size: 16.5px; margin-bottom: 2px; }
.cert p { margin: 0; font-size: 14px; color: #b2bfd3; }
.cert small { font-size: 12.5px; color: var(--muted-d); }
.timeline { margin-bottom: 40px; }
.timeline h3 { font-size: 18px; margin-bottom: 18px; }
.timeline ol { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink-900); }
.timeline li { padding: 18px 16px 0 0; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); border: 2px solid var(--ink-900); }
.timeline b { font-family: var(--mono); font-size: 13px; color: var(--signal-dk); }
.timeline p { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.products a { display: flex; flex-direction: column; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .2s, transform .2s; }
.products a:hover { border-color: var(--ink-900); transform: translateY(-2px); }
.products strong { font-size: 16px; }
.products strong::after { content: " ↗"; color: var(--muted); font-weight: 400; }
.products span { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: start; }
.faq-wrap .sec-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq-wrap .sec-head a { color: var(--signal-dk); font-weight: 700; font-family: var(--mono); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; gap: 14px; align-items: flex-start; padding: 22px 40px 22px 0; cursor: pointer; font-size: 17px; font-weight: 650; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary > span { font-family: var(--mono); color: var(--signal-dk); font-weight: 700; }
.faq-item summary::after { content: ""; position: absolute; right: 8px; top: 30px; width: 10px; height: 10px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq-a { padding: 0 40px 24px 30px; color: var(--muted); }
.faq-a p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-side h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.contact-side strong { color: #fff; }
.contact-list { margin: 28px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .ico { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--ink-800); color: var(--signal); }
.contact-list small { display: block; font-size: 12.5px; color: var(--muted-d); }
.contact-list a, .contact-list span { font-family: var(--mono); font-size: 17px; font-weight: 700; color: #fff; }
.emergency { border: 1px solid rgba(255, 77, 79, .4); background: rgba(255, 77, 79, .07); border-radius: var(--radius); padding: 24px; }
.emergency h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; color: #ffb3b4; margin-bottom: 8px; }
.emergency h3 .ico { color: var(--alert); }
.emergency p { font-size: 14.5px; }
.contact-main { background: var(--white); color: var(--text); border-radius: 20px; padding: 36px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.contact-main p { color: var(--muted); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 6px; }
.req { font-style: normal; font-size: 11px; font-weight: 700; color: var(--alert); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--text); background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 12px 14px; transition: border-color .15s, background .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-900); background: var(--white); box-shadow: 0 0 0 4px rgba(198, 244, 50, .35); }
.field [aria-invalid="true"] { border-color: var(--alert); background: #fff6f6; }
.field-error { margin: 6px 0 0; font-size: 13px; color: #c62828 !important; font-weight: 600; }
.form-foot { margin-top: 22px; display: grid; gap: 14px; }
.agree { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.agree input { width: 20px; height: 20px; accent-color: var(--ink-900); }
.agree a { text-decoration: underline; text-underline-offset: 3px; }
.form-foot .btn { width: 100%; }
.form-note { margin: 0; font-size: 13px; text-align: center; }

/* Alert box (result page) */
.alert-box { border-radius: var(--radius); padding: 24px 28px; margin-bottom: 28px; }
.alert-ok { background: #f3fbdc; border: 1px solid #c3e36a; }
.alert-ok h2 { color: #3f5600; font-size: 22px; margin-bottom: 8px; }
.alert-err { background: #fff2f2; border: 1px solid #ffc7c7; color: #8f1d1d; }

/* ---------- Sub pages ---------- */
.sub-hero { padding: 40px 0 80px; }
.sub-hero::after { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(198, 244, 50, .12), transparent 62%); }
.sub-hero-urgent::after { background: radial-gradient(circle, rgba(255, 77, 79, .16), transparent 62%); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted-d); margin-bottom: 48px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: var(--signal); }
.sub-hero-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: end; }
.sub-hero h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.sh-no { color: #fff; opacity: .5; }
.sub-hero-card { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-d); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(6px); }
.sub-hero-card h2 { font-size: 15px; font-family: var(--mono); letter-spacing: .06em; color: var(--muted-d); margin: 16px 0 14px; font-weight: 600; }
.sub-hero-card li { font-size: 14.5px; color: #c9d4e5; }
.sub-hero.sub-hero-urgent .sc-ico { background: var(--alert); color: #fff; }
.sub-hero .sc-ico { background: rgba(198, 244, 50, .12); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col .sec-head { margin-bottom: 0; }
.lead-text { font-size: 18px !important; line-height: 1.85; color: var(--text) !important; }
.when-box { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.when-box h3 { font-size: 19px; margin-bottom: 16px; }
.when-list li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.when-list li:last-child { border-bottom: 0; }
.when-list .ico { color: var(--signal-dk); margin-top: 3px; }
.page-service .sub-hero-urgent + .section .when-list .ico { color: var(--alert); }

.item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.item-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; }
.item-card:hover { border-color: var(--ink-900); transform: translateY(-3px); }
.item-no { font-family: var(--mono); font-size: 13px; color: var(--signal-dk); font-weight: 700; }
.item-card h3 { font-size: 18px; margin: 10px 0 10px; }
.item-card p { margin: 0; font-size: 15px; color: var(--muted); }

.deliv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.deliv { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: var(--white); position: relative; overflow: hidden; }
.deliv::after { content: ""; position: absolute; right: -1px; top: -1px; width: 28px; height: 28px; background: linear-gradient(225deg, var(--paper) 50%, var(--line) 50%); }
.deliv .ico { width: 30px; height: 30px; color: var(--ink-900); margin-bottom: 18px; }
.deliv h3 { font-size: 17px; margin-bottom: 6px; }
.deliv p { margin: 0; font-size: 14.5px; color: var(--muted); }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related a { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 650; transition: border-color .2s, background .2s; }
.related a span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.related a .ico { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform .2s, color .2s; }
.related a:hover { border-color: var(--ink-900); }
.related a:hover .ico { transform: translateX(4px); color: var(--ink-900); }

/* Prose (privacy) */
.prose { max-width: 820px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(28px, 5vw, 56px); }
.prose h2 { font-size: 20px; margin: 36px 0 12px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: #333c4d; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--muted-d); padding: 72px 0 32px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-d); }
.footer-logo { margin-bottom: 8px; }
.footer-logo strong { color: #fff; font-size: 20px; }
.footer-logo span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; margin-left: 8px; }
.footer-tag { max-width: 360px; }
.footer-tel { display: inline-block; font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--signal); margin: 4px 0 2px; }
.site-footer .muted { color: var(--muted-d); }
.footer-col h2 { font-size: 13px; color: #fff; letter-spacing: .06em; margin-bottom: 16px; font-weight: 700; }
.footer-col li { margin-bottom: 8px; }
.footer-col a:hover, .footer-info a:hover, .footer-bottom a:hover { color: #fff; }
.footer-info { padding: 28px 0; border-bottom: 1px solid var(--line-d); }
.footer-info p { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom strong { color: #fff; }

.float-call { display: none; }

/* ---------- Reveal animation ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .gnb ul a { padding: 8px 8px; font-size: 14px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .header-tel { display: inline-flex; margin-left: auto; }
  .nav-toggle { margin-left: 4px; }
  .gnb {
    position: fixed; inset: calc(var(--header-h) + 38px) 0 auto 0; flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--ink-900); padding: 16px 24px 28px; border-bottom: 1px solid var(--line-d);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100vh - var(--header-h) - 38px); overflow-y: auto;
  }
  .scrolled .gnb { top: var(--header-h); }
  .nav-open .gnb { opacity: 1; transform: none; visibility: visible; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .gnb ul { flex-direction: column; }
  .gnb ul a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line-d); border-radius: 0; }
  .gnb-cta { padding: 14px; font-size: 16px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; }
  .incident-body, .band-inner, .tab-panel, .selfcheck, .faq-wrap, .contact-grid, .company-grid, .two-col, .sub-hero-inner { grid-template-columns: 1fr; }
  .incident-aside, .selfcheck .sec-head, .faq-wrap .sec-head { position: static; }
  .process, .process.process-5, .process.process-4 { grid-template-columns: repeat(3, 1fr); gap: 36px 0; }
  .process li:nth-child(3n)::before { display: none; }
  .scope ul, .deliv-grid { grid-template-columns: repeat(2, 1fr); }
  .item-grid, .related { grid-template-columns: repeat(2, 1fr); }
  .pkg-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .pkg-best { transform: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .wrap { width: min(1200px, 100% - 36px); }
  .notice-inner a { display: none; }
  .header-tel span { display: none; }
  .brand-text small { display: none; }
  .br-m { display: inline; }
  .hero h1 br:not(.br-m) { display: none; }
  .hero-lead br { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stats, .incident-stats { grid-template-columns: 1fr 1fr; }
  .stats > div { border-bottom: 1px solid var(--line-d); padding: 22px 16px; }
  .stats > div:nth-child(2n) { border-right: 0; }
  .problem-grid, .service-grid, .compare, .item-grid, .related, .deliv-grid, .products, .scope ul { grid-template-columns: 1fr; }
  .version-flow { grid-template-columns: 1fr; }
  .ver-arrow { transform: rotate(90deg); }
  .tab-panel { padding: 24px 20px; }
  .code { font-size: 12px; padding: 16px; }
  .process, .process.process-5, .process.process-4 { grid-template-columns: 1fr; gap: 0; }
  .process li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 0 0 28px; }
  .process li > :not(.p-no) { grid-column: 2; }
  .process .p-no { grid-row: span 3; margin: 0; }
  .process li::before, .process li:nth-child(3n)::before { display: block; top: 44px; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(var(--signal), rgba(198, 244, 50, .1)); }
  .process li:last-child::before { display: none; }
  .timeline ol { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink-900); padding-left: 20px; }
  .timeline li { padding: 0 0 18px; }
  .timeline li::before { left: -28px; top: 4px; }
  .company-info > div { grid-template-columns: 1fr; gap: 2px; }
  .compare-col, .contact-main, .when-box { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .float-call {
    display: flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: 16px; z-index: 40;
    background: var(--alert); color: #fff; font-weight: 700; padding: 13px 18px; border-radius: 999px;
    box-shadow: 0 10px 30px -8px rgba(255, 77, 79, .7);
  }
  .sub-hero { padding-bottom: 56px; }
  .breadcrumb ol { margin-bottom: 32px; }
}


/* ===== 자료 페이지 (수행 사례 · 체크리스트 · 보안 가이드) ===== */
.case-list { display: grid; gap: 24px; }
.case-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.case-tag { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: var(--ink-900); color: var(--signal); margin-bottom: 14px; }
.case-card h2 { font-size: 22px; line-height: 1.4; margin: 0 0 12px; }
.case-card header p { color: var(--muted); margin: 0; }
.case-body h3 { font-size: 14px; letter-spacing: .08em; color: var(--signal-dk); margin: 0 0 12px; }
.case-result { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.case-result li { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.case-note { margin-top: 24px; }

.cl-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cl-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.cl-group h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 16px; }
.cl-group h2 .ico { width: 22px; height: 22px; color: var(--signal-dk); }
.cl-group h2 small { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.cl-group ul { list-style: none; margin: 0; padding: 0; }
.cl-group li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); }
.cl-group li:first-child { border-top: 0; }
.cl-group input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--signal-dk); flex: none; }
.cl-group label { cursor: pointer; line-height: 1.55; }
.cl-group input:checked + label { color: var(--muted); text-decoration: line-through; }

.insight-wrap { align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.toc h2 { font-size: 14px; letter-spacing: .08em; color: var(--signal-dk); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.toc a:hover { color: var(--signal-dk); text-decoration: underline; }
.article { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.article:last-child { border-bottom: 0; margin-bottom: 0; }
.article h2 { font-size: 26px; line-height: 1.4; margin: 0 0 18px; }
.article p { line-height: 1.85; color: #2b3345; }
.article code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; }
.code-block { background: var(--ink-900); color: #d7e2f3; border-radius: var(--radius-sm); padding: 20px 22px; overflow-x: auto; margin: 20px 0 0; font-size: 13.5px; line-height: 1.7; }
.code-block code { background: none; padding: 0; font-size: inherit; color: inherit; }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s; }
.resource:hover { transform: translateY(-3px); border-color: var(--signal-dk); }
.resource .ico { width: 28px; height: 28px; color: var(--signal-dk); }
.resource h3 { font-size: 19px; margin: 0; }
.resource p { color: var(--muted); margin: 0; flex: 1; }
.resource span.more { font-weight: 700; color: var(--signal-dk); }

@media (max-width: 960px) {
  .case-card, .cl-groups, .resource-grid { grid-template-columns: 1fr; }
  .case-card { padding: 24px 20px; gap: 24px; }
  .toc { position: static; }
}


/* ===== 우측 서비스 사이드 배너 (데스크톱) ===== */
.side-banner { display: none; }
@media (min-width: 1025px) {
  .side-banner { display: flex; position: fixed; right: 0; top: 50%; z-index: 45; transform: translate(calc(100% - 44px), -50%); transition: transform .3s var(--ease); filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .35)); }
  .side-banner:hover, .side-banner:focus-within { transform: translate(0, -50%); }
  .sb-tab { writing-mode: vertical-rl; align-self: center; width: 44px; padding: 24px 0; display: flex; align-items: center; justify-content: center; background: var(--signal); color: var(--ink-900); font-weight: 800; font-size: 15px; letter-spacing: .2em; border-radius: 12px 0 0 12px; }
  .sb-panel { width: 280px; background: var(--ink-850); color: var(--text-d); border: 1px solid var(--line-d); border-right: 0; padding: 22px 20px; }
  .sb-panel h2 { font-size: 13px; letter-spacing: .08em; color: var(--signal); margin: 0 0 12px; }
  .sb-panel ul { list-style: none; margin: 0 0 16px; padding: 0; }
  .sb-panel li a { display: block; padding: 10px 0; font-size: 14px; line-height: 1.4; border-bottom: 1px solid var(--line-d); color: #c3cee0; }
  .sb-panel li a:hover, .sb-panel li a[aria-current="page"] { color: var(--signal); }
  .sb-cta { display: block; text-align: center; background: var(--signal); color: var(--ink-900); font-weight: 700; padding: 11px 0; border-radius: 999px; }
  .sb-cta:hover { background: #d6ff52; }
}


/* ===== 모바일·태블릿 서비스 바로가기 ===== */
.m-svc { display: none; }
@media (max-width: 1024px) {
  .m-svc { display: block; position: fixed; left: 16px; bottom: 16px; z-index: 41; }
  .m-svc summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; background: var(--signal); color: var(--ink-900); font-weight: 700; padding: 13px 18px; border-radius: 999px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); }
  .m-svc summary::-webkit-details-marker { display: none; }
  .m-svc summary .ico { width: 20px; height: 20px; }
  .m-svc-panel { position: absolute; left: 0; bottom: 60px; width: min(320px, calc(100vw - 32px)); background: var(--ink-850); color: var(--text-d); border: 1px solid var(--line-d); border-radius: var(--radius); padding: 18px 18px 8px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7); }
  .m-svc-panel h2 { font-size: 13px; letter-spacing: .08em; color: var(--signal); margin: 0 0 6px; }
  .m-svc-panel ul { list-style: none; margin: 0; padding: 0; }
  .m-svc-panel li a { display: block; padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line-d); color: #c3cee0; }
  .m-svc-panel li:last-child a { border-bottom: 0; }
  .m-svc-panel li a[aria-current="page"] { color: var(--signal); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .term-body[data-typer] p { opacity: 1; transform: none; }
}

@media print {
  .notice-bar, .site-header, .float-call, .side-banner, .m-svc, .contact-main, .hero-cta { display: none !important; }
  .hero, .sub-hero, .section-dark { background: #fff; color: #000; }
}
.insight-wrap { grid-template-columns: 280px 1fr; }
@media (max-width: 960px) { .insight-wrap { grid-template-columns: 1fr; } }
.insight-wrap > * { min-width: 0; }
@media (max-width: 960px) { .insight-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; } .article h2 { font-size: 22px; } }

/* 모바일: 컴플라이언스 표를 항목별 카드로 */
@media (max-width: 720px) {
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .comp-table, .comp-table tbody, .comp-table tr, .comp-table th, .comp-table td { display: block; min-width: 0; width: auto; }
  .comp-table { min-width: 0; }
  .comp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .comp-table tbody tr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; padding: 18px 18px 6px; }
  .comp-table tbody th { padding: 0 0 12px; border: 0; font-size: 17px; white-space: normal; width: auto; }
  .comp-table td { padding: 0 0 14px; border: 0; }
  .comp-table td::before { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; margin-bottom: 4px; color: var(--signal-dk); font-weight: 700; }
  .comp-table td:nth-child(2)::before { content: "요구 사항"; }
  .comp-table td:nth-child(3)::before { content: "PHP 구현 항목"; }
}

/* 개인정보처리방침 표: 첫 열 글자 세로 줄바꿈 방지 */
.prose table th:first-child, .prose table td:first-child { white-space: nowrap; }
@media (max-width: 720px) { .prose table { font-size: 13.5px; } .prose th, .prose td { padding: 8px 9px; } }
