:root {
  --ink: #1C1E3A;
  --ink2: #5A5F7D;
  --ink3: #676C85;
  --bg: #FFFFFF;
  --gray: #F6F7F9;
  --line: #E7E8EF;
  --line2: #D7D9E4;
  --pt: #6363F1;
  --pt-d: #4F4FD9;
  --violet: #8B5CF6;
  --sky: #4F9CF7;
  --ok: #10B981;
  --ok-bg: #E7F8F1;
  --warn: #A95205;
  --warn-bg: #FEF3E2;
  --bad: #E11D48;
  --bad-bg: #FDE8EE;
  --navy: #050720;
  --navy2: #0D1030;
  --navy3: #171B45;
  --dk-tx: #E6E8F2;
  --dk-tx2: #9AA0C3;
  --dk-line: rgba(177, 179, 246, .14);
  --mint: #2EE6B6;
  --lav: #B1B3F6;
  --r: 16px;
  --shadow: 0 1px 2px rgba(28, 30, 58, .04), 0 8px 24px -8px rgba(28, 30, 58, .1);
  --shadow-lg: 0 2px 4px rgba(28, 30, 58, .04), 0 24px 60px -20px rgba(28, 30, 58, .22);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --hdr: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--sans); letter-spacing: -0.012em; word-break: keep-all;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, .plan-heading, p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); letter-spacing: -0.02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pt); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--pt); outline-offset: 3px; border-radius: 8px; }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.arr { font-style: normal; font-size: 1.25em; line-height: 1; transition: transform .2s; display: inline-block; margin-top: -2px; }
.btn:hover .arr, .tlink:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--pt); color: #fff; box-shadow: 0 6px 18px -6px rgba(99, 99, 241, .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover { background: var(--pt-d); box-shadow: 0 10px 24px -8px rgba(99, 99, 241, .8), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-ghost, .btn-line { background: #fff; border-color: var(--line2); color: var(--ink); }
.btn-ghost:hover, .btn-line:hover { border-color: var(--pt); color: var(--pt); }
.btn-kakao { background: #FEE500; color: #191600; margin-top: 28px; }
.btn-kakao:hover { background: #F5DC00; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.tlink { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.tlink .arr { color: var(--ink3); }
.tlink.muted { color: var(--ink2); font-weight: 500; }
.tlink:hover { color: var(--pt); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.hdr.scrolled { background: rgba(255, 255, 255, .78); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-color: var(--line); }
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; font-weight: 750; font-size: 22px; letter-spacing: -0.055em; color: var(--ink); }
.hdr .logo { flex-shrink: 0; }
.logo-morph { line-height: 1.65; height: 1.65em; white-space: nowrap; }
.logo-morph.is-ready { display: inline-block; position: relative; overflow: hidden; perspective: 180px; }
.logo-word { position: absolute; inset: 0 auto auto 0; width: max-content; visibility: hidden; }
.logo-word.is-current, .logo-word.is-outgoing, .logo-word.is-incoming { visibility: visible; }
.logo-piece { display: inline-block; position: relative; color: transparent; }
.logo-piece::before, .logo-piece::after { content: attr(data-glyph); position: absolute; inset: 0; color: var(--ink); clip-path: inset(0 0 50%); }
.logo-piece::after { clip-path: inset(50% 0 0); }
.is-outgoing .logo-piece::before, .is-outgoing .logo-piece::after { animation: logo-out 150ms var(--delay) ease-in both; }
.is-incoming .logo-piece::before, .is-incoming .logo-piece::after { animation: logo-in 280ms var(--delay) cubic-bezier(.2, .9, .3, 1.18) both; }
.logo-piece::before { --slide: -65%; --turn: -65deg; }
.logo-piece::after { --slide: 65%; --turn: 65deg; }
.logo-scramble { position: absolute; inset: 0; letter-spacing: .04em; }
@keyframes logo-out { to { transform: translateY(var(--slide)) rotateX(var(--turn)) rotate(12deg); opacity: 0; } }
@keyframes logo-in { from { transform: translateY(var(--slide)) rotateX(var(--turn)) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.nav { display: none; }
.hdr-cta { display: flex; align-items: center; gap: 8px; }
.hide-m { display: none; }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav.open {
  display: flex; flex-direction: column; position: fixed; inset: var(--hdr) 0 auto; padding: 4px 20px 24px;
  background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.nav.open a { padding: 15px 0; font-size: 18px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a.active { color: var(--pt); }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--hdr) + 40px) 0 72px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 85% 20%, rgba(139, 92, 246, .1), transparent 70%), radial-gradient(ellipse 50% 35% at 5% 55%, rgba(79, 156, 247, .07), transparent 70%);
}
.hero-in { display: grid; gap: 56px; }
h1 { font-size: clamp(38px, 10.4vw, 76px); line-height: 1.12; font-weight: 650; letter-spacing: -0.055em; color: var(--ink); }
h1 em { font-style: normal; background: linear-gradient(95deg, var(--violet) 0%, var(--pt) 45%, var(--sky) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.lead { margin-top: 22px; font-size: 17px; color: var(--ink2); max-width: 33em; line-height: 1.7; }
.diag-form { margin-top: 32px; max-width: 560px; }
.diag-field {
  display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 24px;
  background: #fff; border: 1px solid var(--line2); box-shadow: var(--shadow-lg); transition: border-color .2s, box-shadow .2s;
}
.diag-field:focus-within { border-color: var(--pt); box-shadow: 0 0 0 4px rgba(99, 99, 241, .14), var(--shadow-lg); }
.diag-field > svg { display: none; color: var(--ink3); }
.diag-field input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 0; background: transparent; font-size: 16px; outline: none; }
.diag-field input::placeholder { color: #9A9EB6; }
.diag-field .btn { min-height: 50px; }
.field-err { font-size: 14px; color: var(--bad); margin-top: 8px; }
.field-err:empty { display: none; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 20px; font-size: 15px; }
.fine { font-size: 13px; color: var(--ink3); line-height: 1.65; margin-top: 18px; }

/* hero: 토글 카드 스택 (WorkOS 상태판 모티프) */
.stack { position: relative; padding: 32px 8px 8px; isolation: isolate; }
.stack::before {
  content: ""; position: absolute; z-index: -1; inset: -10% -30%;
  background: repeating-linear-gradient(90deg, rgba(99, 99, 241, .42) 0 2px, transparent 2px 7px);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, transparent 72%);
  opacity: .5;
}
.stack-head { display: flex; justify-content: space-between; align-items: center; margin: 0 auto 14px; max-width: 380px; font-size: 14px; color: var(--ink2); }
.stack-head .mono { font-weight: 500; color: var(--ink); }
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #EEEEFE; color: var(--pt); letter-spacing: .02em; }
#hero-board { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px; max-width: 380px; }
#hero-board li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 15px; font-weight: 500; color: var(--ink3);
  transition: color .3s, box-shadow .3s;
}
#hero-board li:nth-child(1), #hero-board li:nth-child(5) { transform: translateX(28px) scale(.94); opacity: .55; }
#hero-board li:nth-child(2), #hero-board li:nth-child(4) { transform: translateX(14px) scale(.97); opacity: .85; }
#hero-board li:nth-child(3) { box-shadow: var(--shadow-lg); }
#hero-board li.on { color: var(--ink); }
.sw { flex: none; position: relative; width: 36px; height: 20px; border-radius: 99px; background: #D9DBE6; transition: background .3s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s; }
li.on .sw { background: var(--ink); }
li.on .sw::after { transform: translateX(16px); }
#hero-board b { margin-left: auto; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--gray); color: var(--ink3); border: 1px solid var(--line); white-space: nowrap; }
#hero-board b::after { content: "점검 중"; }
#hero-board b.done { background: var(--ok-bg); color: #08875D; border-color: #BDEBD8; }
#hero-board b.done::after { content: attr(data-v); }
#hero-badge { display: flex; width: fit-content; margin: 22px auto 0; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; box-shadow: var(--shadow); }
#hero-badge.on { opacity: 1; transform: none; }

.badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 99px; font-weight: 600; font-size: 14px; border: 1px solid; background: #fff; }
.badge.ok { color: #08875D; background: var(--ok-bg); border-color: #BDEBD8; }
.badge.warn { color: #B45309; background: var(--warn-bg); border-color: #F8D9A8; }
.badge.bad { color: #BE123C; background: var(--bad-bg); border-color: #F8C2D0; }
.badge.sm { padding: 3px 10px; font-size: 13px; }

/* ---------- S2 tiles ---------- */
.strip { padding: 8px 0 72px; }
.strip-label { font-size: 13px; font-weight: 600; color: var(--ink3); letter-spacing: .08em; margin-bottom: 16px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.tiles li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 104px; padding: 16px 10px; border-radius: 12px; background: var(--gray); color: #7A7F9C; font-weight: 600; font-size: 14px; letter-spacing: -0.02em; line-height: 1.35; transition: color .25s, background .25s; }
.tiles svg { width: 30px; height: 30px; flex: none; transition: color .25s, transform .25s; }
.tiles li:hover { background: #EFF0F5; color: var(--ink); }
.tiles li:hover svg { transform: translateY(-2px); color: var(--pt); }
.t-php:hover svg { color: #777BB4 !important; }
.t-db:hover svg { color: #4479A1 !important; }
.t-cart:hover svg { color: #E5484D !important; }
.t-host:hover svg { color: #0E8DA3 !important; }
.t-resp:hover svg { color: #2F7BE0 !important; }
.t-admin:hover svg { color: var(--violet) !important; }

/* ---------- sections ---------- */
.sec { padding: 88px 0; position: relative; }
.gray { background: var(--gray); }
.sec-head { margin-bottom: 44px; max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 10px; background: linear-gradient(95deg, var(--violet), var(--pt) 60%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.sec-head.center .eyebrow { margin-inline: auto; }
h2 { font-size: clamp(30px, 7.4vw, 50px); line-height: 1.18; font-weight: 650; letter-spacing: -0.05em; }
.sec-desc { margin-top: 18px; font-size: 17px; color: var(--ink2); line-height: 1.7; }
.sec-desc + .sec-desc { margin-top: 12px; }
.grid3 { display: grid; gap: 12px; }
.card { padding: 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .25s, box-shadow .25s; }
.card h3, .card .problem-heading { font-size: 18px; font-weight: 650; letter-spacing: -0.03em; margin-bottom: 6px; }
.card .problem-heading { line-height: inherit; }
.card p { color: var(--ink2); font-size: 15px; }
.ico-warn { width: 34px; height: 34px; display: grid; place-content: center; border-radius: 10px; margin-bottom: 18px; font: 700 16px var(--mono); color: var(--warn); background: var(--warn-bg); border: 1px solid #F8D9A8; }
.bridge { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }

/* service: 아이콘 타일 + 텍스트 (WorkOS 기능 목록) */
.svc { display: grid; gap: 48px; }
.svc-grid { gap: 28px 32px; }
.feat { display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; padding: 0; background: none; border: 0; box-shadow: none; }
.feat .ico { grid-row: span 2; }
.feat h3 { margin: 4px 0 4px; }
.ico { width: 52px; height: 52px; display: grid; place-content: center; border-radius: 14px; background: #EEEEFE; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--pt); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat:nth-child(2) .ico { background: var(--ok-bg); } .feat:nth-child(2) .ico svg { stroke: #08875D; }
.feat:nth-child(3) .ico { background: var(--warn-bg); } .feat:nth-child(3) .ico svg { stroke: var(--warn); }
.feat:nth-child(4) .ico { background: #E8F1FE; } .feat:nth-child(4) .ico svg { stroke: #2F7BE0; }
.feat:nth-child(5) .ico { background: #F3EDFE; } .feat:nth-child(5) .ico svg { stroke: var(--violet); }
.feat:nth-child(6) .ico { background: #EAF6F8; } .feat:nth-child(6) .ico svg { stroke: #0E8DA3; }
.report { position: relative; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 50px 80px -40px rgba(28, 30, 58, .35), 0 0 0 8px var(--gray), 0 0 0 9px var(--line); align-self: start; margin: 9px; }
.report-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink3); }
.report-site { margin: 18px 0 14px; font-size: 18px; font-weight: 600; }
.report-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.report-stats div { background: var(--gray); border-radius: 12px; padding: 12px; }
.report-stats b { display: block; font: 600 24px var(--mono); color: var(--pt); }
.report-stats span { font-size: 12px; color: var(--ink2); }
.report-log { list-style: none; margin: 16px 0; padding: 0; font-size: 14px; }
.report-log li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.report-log li::after { content: "완료"; margin-left: auto; font-size: 12px; font-weight: 600; color: #08875D; background: var(--ok-bg); border-radius: 6px; padding: 0 7px; }
.report-bar { display: flex; flex-wrap: wrap; justify-content: space-between; font-size: 13px; color: var(--ink2); gap: 8px; }
.report-bar i { flex-basis: 100%; height: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--violet), var(--pt) calc(var(--p) - 1%), var(--line) var(--p)); }
#service .fine.center { margin-top: 48px; }

/* ---------- dark band (why + process + contact) ---------- */
.dark { background: var(--navy); color: var(--dk-tx); }
.dark .eyebrow { background: none; color: var(--mint); }
.dark .sec-desc, .dark .fine { color: var(--dk-tx2); }
#why { padding-bottom: 40px; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(99, 99, 241, .22), transparent 70%), var(--navy); }
#process { padding-top: 40px; overflow: hidden; isolation: isolate; padding-bottom: 150px; }
#process::after {
  content: ""; position: absolute; z-index: -1; left: -20%; right: -20%; bottom: -330px; height: 420px; border-radius: 50%;
  background: var(--navy2); box-shadow: 0 -2px 0 rgba(120, 180, 255, .55), 0 -30px 80px -10px rgba(79, 156, 247, .35);
}
.why { display: grid; gap: 40px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 16px; padding: 22px; border-radius: var(--r); background: rgba(23, 27, 69, .6); border: 1px solid var(--dk-line); }
.ck { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(46, 230, 182, .12); border: 1px solid rgba(46, 230, 182, .4); position: relative; margin-top: 1px; }
.ck::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.03em; }
.checks p { font-size: 15px; color: var(--dk-tx2); }
.ck-ico { display: grid; place-items: center; color: var(--mint); }
.ck-ico::after { content: none; }
.ck-ico svg { width: 15px; height: 15px; }
.dark .btn-primary { background: var(--mint); color: #03231A; box-shadow: 0 0 0 1px rgba(46, 230, 182, .4), 0 8px 30px -6px rgba(46, 230, 182, .55); }
.dark .btn-primary:hover { background: #52F0C8; }
.dark .form-card .btn-primary { background: var(--pt); color: #fff; box-shadow: 0 6px 18px -6px rgba(99, 99, 241, .7); }

.steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; position: relative; }
.steps li { position: relative; padding: 0 0 32px 64px; }
.steps li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--dk-line); }
.steps li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(var(--pt), var(--mint)); transform-origin: top; }
.steps li:last-child::before, .steps li:last-child::after { display: none; }
.num { position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-content: center; border-radius: 12px; background: var(--navy3); border: 1px solid var(--dk-line); font-size: 14px; font-weight: 600; color: var(--lav); }
.steps h3 { font-size: 18px; font-weight: 600; margin: 8px 0 6px; letter-spacing: -0.03em; }
.steps p { color: var(--dk-tx2); font-size: 15px; }
@supports (animation-timeline: view()) {
  .steps li::after { transform: scaleY(0); animation: fill linear both; animation-timeline: view(); animation-range: entry 60% cover 55%; }
  @keyframes fill { to { transform: scaleY(1); } }
}

/* ---------- pricing ---------- */
.plans { display: grid; gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan .btn { white-space: normal; }
.plan h3, .plan .plan-heading { font-size: 20px; font-weight: 650; letter-spacing: -0.03em; }
.plan-d { color: var(--ink2); font-size: 15px; margin-top: 4px; }
.price { margin: 24px 0; font-size: 15px; color: var(--ink3); }
.price b { font-size: 32px; font-weight: 650; color: var(--ink); letter-spacing: -0.05em; }
.pl { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 15px; flex: 1; align-content: start; }
.pl li { padding-left: 28px; position: relative; }
.pl li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 9.2l2.3 2.3 4.7-5' fill='none' stroke='%2308875D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.pl li.no { color: #A9ADC2; }
.pl li.no::before { background: var(--gray) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6 9h6' stroke='%23B5B9CC' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.plan.best { background: var(--navy); color: var(--dk-tx); border-color: transparent; box-shadow: 0 0 0 1px rgba(99, 99, 241, .6), 0 30px 60px -24px rgba(99, 99, 241, .6); }
.plan.best .plan-d, .plan.best .price { color: var(--dk-tx2); }
.plan.best .price b { color: #fff; }
.plan.best .pl { border-color: var(--dk-line); }
.plan.best .pl li::before { background-color: rgba(46, 230, 182, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 9.2l2.3 2.3 4.7-5' fill='none' stroke='%232EE6B6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.best-tag { position: absolute; top: 28px; right: 24px; padding: 4px 11px; border-radius: 99px; background: linear-gradient(95deg, var(--violet), var(--pt)); color: #fff; font-size: 12px; font-weight: 700; }
#pricing .fine.center { margin-top: 28px; }

/* ---------- case ---------- */
.ind { margin-bottom: 72px; }
.ind-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 20px; padding: 2px 20px; }
.ind-tabs::-webkit-scrollbar { display: none; }
.ind-tabs button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; font-size: 15px; font-weight: 600; color: var(--ink2); cursor: pointer; transition: all .2s; }
.ind-tabs button:hover { color: var(--ink); border-color: var(--ink3); }
.ind-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ind-panel { display: grid; gap: 24px; padding: 28px 24px; border-radius: 20px; background: var(--gray); border: 1px solid var(--line); }
.ind-panel[hidden] { display: none; }
.ind-l h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.04em; margin-bottom: 10px; }
.ind-l { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ind-l p { color: var(--ink2); font-size: 15px; margin-bottom: 10px; }
.ftr-links.ind-links { color: var(--dk-tx2); }
.ftr-links.ind-links a { font-weight: 500; }
.ind-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ind-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.ind-list li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 9.2l2.3 2.3 4.7-5' fill='none' stroke='%2308875D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.cases-h { font-size: 20px; font-weight: 650; letter-spacing: -0.04em; margin-bottom: 16px; }
.cases { display: grid; gap: 16px; }
.case { border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.case-shot { padding: 28px 24px 0; background: radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, .5), transparent 60%), radial-gradient(ellipse at 100% 100%, rgba(79, 156, 247, .45), transparent 60%), var(--navy2); }
.mock { border-radius: 10px 10px 0 0; background: #fff; padding: 10px; aspect-ratio: 16 / 9; display: grid; grid-template-rows: auto 1fr auto auto; gap: 8px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); }
.mock-bar { display: flex; align-items: center; gap: 5px; }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: #D9DBE6; }
.mock-bar span { flex: 1; height: 10px; border-radius: 4px; background: var(--gray); margin-left: 8px; }
.mock-hero { border-radius: 6px; background: linear-gradient(120deg, #1B6CA8, #3BB2C9 60%, #9FE3E0); }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mock-row i { height: 28px; border-radius: 5px; background: var(--gray); }
.mock-lines { display: grid; gap: 4px; }
.mock-lines i { height: 5px; border-radius: 3px; background: var(--gray); }
.mock-lines i:nth-child(2) { width: 80%; } .mock-lines i:nth-child(3) { width: 60%; }
.case-body { padding: 26px; }
.case-meta { font-size: 12px; color: var(--pt); }
.case-body h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.04em; margin: 8px 0 18px; }
.case dl { margin: 0; display: grid; gap: 12px; }
.case dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.case dl div:last-child { border: 0; padding: 0; }
.case dt { color: var(--ink3); }
.case dd { margin: 0; }
.case.empty { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 32px 26px; background: var(--gray); border: 1px dashed var(--line2); box-shadow: none; gap: 10px; }
.case.empty h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.04em; }
.case.empty p { color: var(--ink2); }
.plus { width: 44px; height: 44px; display: grid; place-content: center; border-radius: 12px; background: #fff; border: 1px solid var(--line2); color: var(--pt); font-size: 22px; margin-bottom: 8px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 36px; }
.faq-list { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 22px; box-shadow: var(--shadow); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border: 0; }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 17px; letter-spacing: -0.03em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--gray) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 7v8M7 11h8' stroke='%235A5F7D' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat; transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink2); font-size: 16px; }

/* ---------- contact ---------- */
.contact { overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(99, 99, 241, .25), transparent 70%), var(--navy); }
.contact-in { display: grid; gap: 40px; }
.alt { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.alt:not(:has(> li:not([hidden]))) { display: none; }
.alt a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--dk-line); background: rgba(23, 27, 69, .6); text-decoration: none; transition: border-color .2s; }
.alt a:hover { border-color: var(--lav); }
.alt b { display: block; font-size: 15px; font-weight: 600; }
.alt small { color: var(--dk-tx2); font-size: 13px; }
.alt-ico { flex: none; width: 38px; height: 38px; display: grid; place-content: center; border-radius: 10px; background: var(--navy3); font: 700 15px var(--mono); }
.alt-ico.kakao { background: #FEE500; color: #191600; }
.form-card { background: #fff; color: var(--ink); border-radius: 24px; padding: 26px 20px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }

/* ---------- forms ---------- */
.f { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.f2 { display: grid; gap: 0 14px; }
.f label, .f legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; padding: 0; }
.f label i, .f legend i, .cb i { color: var(--bad); font-style: normal; }
.f small { font-weight: 400; color: var(--ink3); }
.f input:not([type=checkbox]):not([type=radio]), .f select, .f textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--line2); background: #fff; font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.f select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A5F7D' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 15px center; padding-right: 38px; }
.f textarea { resize: vertical; min-height: 110px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--pt); box-shadow: 0 0 0 4px rgba(99, 99, 241, .12); }
.f input[readonly] { background: var(--gray); color: var(--ink2); }
.f .invalid { border-color: var(--bad) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 99px; border: 1px solid var(--line2); font-size: 14px; transition: all .15s; }
.chips label:hover span { border-color: var(--ink3); }
.chips input:checked + span { border-color: var(--pt); background: #EEEEFE; color: var(--pt); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--pt); outline-offset: 2px; }
.cb { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 600 !important; cursor: pointer; }
.cb input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pt); flex: none; }
.consent-d { margin: 6px 0 10px 30px; font-size: 13px; color: var(--ink2); }
.consent-d summary { cursor: pointer; text-decoration: underline; width: fit-content; }
.consent-d p { margin-top: 8px; padding: 12px; background: var(--gray); border-radius: 10px; line-height: 1.7; }
.consent .cb + .consent-d + .field-err + .cb { margin-top: 10px; font-weight: 500 !important; color: var(--ink2); }
.form-err { margin-top: 12px; color: var(--bad); font-size: 14px; text-align: center; }
.form-err:empty { display: none; }
.done-box { text-align: center; padding: 40px 8px; outline: none; }
.done-box h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.04em; margin: 18px 0 10px; }
.done-box p { color: var(--ink2); }
.done-ico { display: inline-grid; width: 60px; height: 60px; border-radius: 50%; background: var(--ok-bg); border: 1px solid #BDEBD8; position: relative; }
.done-ico::after { content: ""; position: absolute; left: 23px; top: 15px; width: 11px; height: 21px; border: solid #08875D; border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* ---------- footer ---------- */
.ftr { background: var(--navy); color: var(--dk-tx); border-top: 1px solid var(--dk-line); padding: 64px 0 calc(110px + env(safe-area-inset-bottom)); }
.ftr-cta { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-bottom: 48px; border-bottom: 1px solid var(--dk-line); }
.ftr-cta h2 { font-size: clamp(26px, 6vw, 40px); }
.ftr .btn-primary { background: var(--mint); color: #03231A; box-shadow: 0 8px 30px -6px rgba(46, 230, 182, .5); }
.ftr-info { padding-top: 32px; font-size: 13px; color: var(--dk-tx2); display: grid; gap: 14px; }
.ftr-info .logo { color: var(--dk-tx); font-size: 17px; }
.ftr-links a { color: var(--dk-tx); font-weight: 600; }
.copy { opacity: .7; }

/* ---------- mobile CTA bar ---------- */
.mbar {
  position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 30px -12px rgba(28, 30, 58, .18); transition: transform .3s;
}
.mbar.hide { transform: translateY(110%); }

/* ---------- dialog ---------- */
.dlg { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink); }
.dlg::backdrop { background: rgba(5, 7, 32, .55); backdrop-filter: blur(6px); }
.dlg[open] { animation: dlgIn .3s ease; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px); } }
.dlg-in { position: relative; padding: 56px 20px calc(32px + env(safe-area-inset-bottom)); }
.dlg .eyebrow { font-size: 15px; }
.dlg-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ink3); cursor: pointer; border-radius: 50%; }
.dlg-x:hover { color: var(--ink); background: var(--gray); }
.dlg-h { font-size: 24px; font-weight: 650; letter-spacing: -0.04em; margin-bottom: 20px; line-height: 1.35; }
.board-list { list-style: none; margin: 0 0 8px; padding: 4px 18px; background: var(--gray); border-radius: var(--r); }
.board-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.board-list li:last-child { border-bottom: 0; }
.board-list b { font: 600 13px var(--sans); color: var(--ink3); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.board-list b::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--pt); animation: spin .8s linear infinite; }
.board-list b::after { content: "점검 중…"; }
.board-list b.done { color: #08875D; }
.board-list b.done::before { animation: none; border: 0; width: auto; height: auto; content: "✓"; font-weight: 700; }
.board-list b.done::after { content: attr(data-v); }
.board-list b.done.s-warn { color: var(--warn); } .board-list b.done.s-warn::before { content: "!"; }
.board-list b.done.s-bad { color: var(--bad); } .board-list b.done.s-bad::before { content: "✕"; }
.board-list b.done.s-unknown { color: var(--ink3); } .board-list b.done.s-unknown::before { content: "?"; }
@keyframes spin { to { transform: rotate(360deg); } }
.overall { margin-bottom: 14px; }
.overall .badge { font-size: 18px; padding: 10px 18px; }
.r-gnu { font-size: 15px; color: var(--ink2); margin-bottom: 18px; }
.r-summary { padding: 18px; border-radius: var(--r); background: linear-gradient(140deg, #F1EEFF, #EAF2FF); border: 1px solid #DCD9FB; margin-bottom: 18px; }
.ai-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--pt); }
.r-summary p { margin-top: 6px; font-size: 16px; line-height: 1.7; }
.r-items { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.r-items li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.r-items .si { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-content: center; font: 700 14px var(--mono); }
.si.ok { color: #08875D; background: var(--ok-bg); }
.si.warn { color: var(--warn); background: var(--warn-bg); }
.si.bad { color: var(--bad); background: var(--bad-bg); }
.si.unknown { color: var(--ink3); background: var(--gray); }
.r-items .rt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-weight: 600; font-size: 15px; }
.r-items .rv { font: 500 13px var(--sans); color: var(--ink2); }
.r-items .rn { font-size: 14px; color: var(--ink2); }
.locked { position: relative; padding: 22px; border-radius: var(--r); background: var(--navy); color: var(--dk-tx); }
.locked-h { font-weight: 600; margin-bottom: 12px; }
.locked-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.locked-list li { font-size: 15px; color: var(--dk-tx2); display: flex; gap: 10px; align-items: center; white-space: nowrap; overflow: hidden; }
.locked-list li::before { content: ""; width: 12px; height: 14px; flex: none; background: var(--lav); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M3 6V4a3 3 0 016 0v2h1a1 1 0 011 1v6a1 1 0 01-1 1H2a1 1 0 01-1-1V7a1 1 0 011-1h1zm1.5 0h3V4a1.5 1.5 0 00-3 0v2z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M3 6V4a3 3 0 016 0v2h1a1 1 0 011 1v6a1 1 0 01-1 1H2a1 1 0 01-1-1V7a1 1 0 011-1h1zm1.5 0h3V4a1.5 1.5 0 00-3 0v2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.locked-list li span { filter: blur(4px); user-select: none; }
.locked .btn-primary { background: var(--mint); color: #03231A; box-shadow: 0 8px 24px -6px rgba(46, 230, 182, .5); }
.dlg-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.dlg .done-ico { margin-bottom: 18px; }
.err-ico { display: inline-grid; place-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--warn-bg); border: 1px solid #F8D9A8; color: var(--warn); font: 700 26px var(--mono); margin-bottom: 18px; }
.pane.center .sec-desc { max-width: 28em; margin-inline: auto; }

/* reveal */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- ≥ 768 ---------- */
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .sec { padding: 120px 0; }
  .diag-field { flex-direction: row; align-items: center; padding: 6px 6px 6px 20px; border-radius: 999px; }
  .diag-field > svg { display: block; flex: none; }
  .diag-field input { padding: 0 10px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .f2 { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 40px; }
  .dlg { max-width: 560px; height: auto; max-height: calc(100% - 48px); margin: auto; border-radius: 24px; box-shadow: var(--shadow-lg); }
  .dlg-in { padding: 48px 36px 36px; }
  .dlg-actions { flex-direction: row; justify-content: center; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases { grid-template-columns: 1.7fr 1fr; }
  .ind-tabs { margin: 0 0 20px; padding: 2px 0; }
  .ind-list { grid-template-columns: 1fr 1fr; }
  .ftr-cta { flex-direction: row; justify-content: space-between; align-items: center; }
  .checks { grid-template-columns: 1fr 1fr; }
  .checks li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps li { padding: 64px 0 0; }
  .steps li::before, .steps li::after { left: 56px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps li::after { background: linear-gradient(90deg, var(--pt), var(--mint)); transform-origin: left; }
  @supports (animation-timeline: view()) { .steps li::after { transform: scaleX(0); animation-name: fillx; } @keyframes fillx { to { transform: scaleX(1); } } }
}

/* ---------- ≥ 1024 ---------- */
@media (min-width: 1024px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root { --hdr: 76px; }
  body { font-size: 17px; }
  .nav { display: flex; gap: 34px; font-size: 15px; font-weight: 500; }
  .nav a { text-decoration: none; color: var(--ink2); transition: color .2s; }
  .nav a:hover, .nav a.active { color: var(--ink); }
  .nav-kakao { display: none; }
  .hide-m { display: inline-flex; }
  .burger { display: none; }
  .hero { padding: calc(var(--hdr) + 96px) 0 88px; }
  .hero-in { grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
  h1 { font-size: clamp(56px, 5.6vw, 76px); }
  .lead { font-size: 18px; }
  .stack { padding-top: 0; }
  .strip { padding-bottom: 96px; }
  .tiles { grid-template-columns: repeat(8, 1fr); }
  .tiles li { min-height: 116px; font-size: 13.5px; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .svc { grid-template-columns: 1fr 380px; gap: 64px; align-items: center; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .why { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
  .why-l { position: sticky; top: calc(var(--hdr) + 40px); }
  #why { padding-bottom: 60px; }
  .case { display: grid; grid-template-columns: 1fr 1fr; }
  .case-shot { padding: 40px 0 0 40px; display: flex; align-items: flex-end; }
  .mock { width: 100%; border-radius: 10px 0 0 0; }
  .case-body { padding: 40px; }
  .ind-panel { grid-template-columns: 320px 1fr; gap: 48px; padding: 40px; align-items: start; }
  .faq { grid-template-columns: 360px 1fr; gap: 72px; }
  .faq-l { position: sticky; top: calc(var(--hdr) + 40px); align-self: start; }
  .faq-list { padding: 8px 32px; }
  .contact-in { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
  .contact-l { position: sticky; top: calc(var(--hdr) + 40px); }
  .mbar { display: none; }
  .ftr { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
  .steps li::after { transform: none !important; }
}

/* Diagnosis evidence and severity, including narrow mobile screens. */
.r-scorebar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:16px 0 8px; }
.r-scorebar strong { font-size:32px; color:var(--ink); }
.r-counts { color:var(--ink2); font-size:14px; margin-bottom:16px; }
.severity { display:inline-block; font-size:12px; font-weight:700; padding:2px 8px; border-radius:999px; vertical-align:middle; }
.severity.high { color:#9F1239; background:#FFE4E6; }
.severity.medium { color:#854D0E; background:#FEF3C7; }
.severity.low { color:#1E40AF; background:#DBEAFE; }
.severity.pass { color:#065F46; background:#D1FAE5; }
.severity.info { color:#374151; background:#E5E7EB; }
.r-items .rt, .r-items .rn, .r-evidence { min-width:0; overflow-wrap:anywhere; }
.r-evidence { grid-column:2; font-size:12px; color:var(--ink2); }
.r-evidence summary { cursor:pointer; padding:4px 0; }
.r-evidence ul { padding-left:16px; margin:4px 0; }
.r-items .r-evidence li { display:list-item; padding:2px 0; border:0; border-radius:0; background:none; }
.dlg [data-host] { overflow-wrap:anywhere; }
.board-list li { min-width:0; flex-wrap:wrap; }
.board-list b { white-space:normal; overflow-wrap:anywhere; }

/* Shared pricing tables and plan cards. */
.pricing-title { margin-bottom: 16px; }
.pricing-block { margin-top: 24px; }
.pricing-block .pl { margin: 20px 0 0; }
.pricing-block .btn { margin-top: 20px; align-self: flex-start; }
.work-prices { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 16px 0; background: #fff; }
.work-prices th, .work-prices td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.work-prices th { font-weight: 650; }
.work-prices th:first-child { width: 60%; }
@media (min-width: 768px) {
  .plans.monthly-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Per-job pricing leads; monthly plans remain a secondary option. */
.per-job-plans { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
.work-group { min-width: 0; padding: 24px 20px; }
.work-group h4 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.03em; }
.work-list { margin: 20px 0 0; }
.work-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.work-list dt { font-size: 15px; overflow-wrap: anywhere; }
.work-list dd { margin: 8px 0 0; color: var(--pt-d); font-size: 20px; font-weight: 650; }
.monthly-pricing { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line2); }
#pricing .monthly-pricing .plan { box-shadow: none; }
@media (min-width: 768px) {
  .per-job-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .per-job-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Five pain/service cards retain a balanced final row. */
.report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  #problem .grid3 > :last-child, .svc-grid > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  #problem .grid3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #problem .grid3 > * { grid-column: span 2; }
  #problem .grid3 > :nth-last-child(-n+2) { grid-column: span 3; }
}
.pricing-page h1 { font-size: clamp(32px, 5vw, 48px); }
.pricing-page h2 { margin-bottom: 24px; }
.pricing-page .sec p { margin-bottom: 20px; }
.pricing-page .work-prices th:first-child { width: 23%; }
.pricing-page .work-prices th:last-child { width: 23%; }
.pricing-page .work-prices tbody + tbody tr:first-child > * { border-top: 2px solid var(--line2); }
.pricing-procedure { padding-left: 24px; }
.pricing-procedure li { margin-bottom: 16px; }
@media (max-width: 767px) {
  .pricing-page .work-prices th, .pricing-page .work-prices td { padding: 10px 6px; font-size: 14px; }
}
/* 왜 보드케어: 제목 위, 카드 5개 (모바일 1열 → 태블릿 2열 → 데스크톱 3열) */
@media (min-width: 1024px) {
  .why.why-stack { grid-template-columns: 1fr; gap: 32px; }
  .why-stack .why-l { position: static; }
  .why-stack .checks { grid-template-columns: repeat(3, 1fr); }
  .why-stack .checks li:last-child:nth-child(odd) { grid-column: auto; }
}

/* Floating Kakao consultation link; dialogs use the browser top layer. */
.kakao-fab {
  position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-sizing: border-box; min-height: 52px; padding: 0 20px; border-radius: 999px;
  background: #FEE500; color: #191919; font-size: 16px; font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 16px rgba(25, 25, 25, .16); transition: transform .2s;
}
.kakao-fab svg { display: block; flex-shrink: 0; }
.kakao-fab:hover { transform: translateY(-2px); }
.kakao-fab:focus-visible { outline: 3px solid #191919; outline-offset: 4px; }
body:has(dialog[open]) .kakao-fab { display: none; }
@media (max-width: 1023px) {
  body.mbar-on .kakao-fab { bottom: calc(var(--mbar-height, calc(69px + env(safe-area-inset-bottom))) + 12px); }
}
@media (max-width: 767px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .kakao-fab { width: 52px; height: 52px; padding: 0; }
  .kakao-fab-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kakao-fab { transition: none; }
  .kakao-fab:hover { transform: none; }
}
/* Free diagnosis CTAs: shared treatment across light and dark sections. */
.btn.btn-ai,
.btn.btn-ai:hover,
.btn.btn-ai:focus-visible {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #4F46E5, #7C3AED); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(79, 70, 229, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-ai::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%);
  transform: translateX(-110%);
}
.btn-ai:hover::after,
.btn-ai:focus-visible::after { animation: diag-shimmer 1s ease-out; }
.spark-ico { width: 16px; height: 16px; flex-shrink: 0; vertical-align: middle; }
.btn-sm .spark-ico { width: 14px; height: 14px; }
.btn-ai .spark-ico { animation: diag-twinkle 6s ease-in-out infinite; }
.dlg-h > .spark-ico { margin-right: 6px; }
@keyframes diag-shimmer { to { transform: translateX(110%); } }
@keyframes diag-twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: .85; }
  50% { transform: scale(1.08) rotate(6deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-ai::after { display: none; animation: none; }
  .btn-ai .spark-ico { animation: none; }
}

/* 모바일 하단 바가 보이는 동안 중복 CTA(플로팅 카톡, 헤더 무료 진단) 숨김 */
body.mbar-on .kakao-fab,
body.mbar-on .hdr-diag { display: none; }
/* sparkles 아이콘: 큰 별·점은 채움, +는 선 유지 */
.spark-ico { stroke-width: 1.5; }
.spark-ico path:first-of-type, .spark-ico circle { fill: currentColor; }
.btn-ai .spark-ico { filter: drop-shadow(0 0 3px rgba(255, 255, 255, .55)); }

/* ---------- Compact mobile layout only (base rules are mobile-first) ---------- */
@media (max-width: 640px) {
  :root { --hdr: 56px; }
  body { line-height: 1.5; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  p, .fine, .lead, .sec-desc, .consent-d p, .r-summary p { line-height: 1.5; }
  .lead, .sec-desc, .eyebrow { font-size: 16px; }
  h1 { font-size: clamp(34px, 9.3vw, 68px); }
  .pricing-page h1 { font-size: clamp(30px, 5vw, 44px); }
  h2, .ftr-cta h2 { font-size: 27px; }
  h3, .card h3, .card .problem-heading, .checks h3, .steps h3, .plan h3, .plan .plan-heading, .ind-l h3,
  .case-body h3, .case.empty h3, .done-box h3 { font-size: 17px; }
  .hero { padding: calc(var(--hdr) + 22px) 0 40px; }
  .sec { padding: 48px 0; }
  .strip { padding: 4px 0 40px; }
  #why { padding-bottom: 22px; }
  #process { padding-top: 22px; padding-bottom: 82px; }
  .ftr { padding: 36px 0 calc(60px + env(safe-area-inset-bottom)); }
  .ftr-cta { padding-bottom: 26px; gap: 16px; }
  .ftr-info { padding-top: 18px; gap: 9px; }
  .sec-head { margin-bottom: 28px; }
  .eyebrow { margin-bottom: 6px; }
  .sec-desc { margin-top: 12px; }
  .sec-desc + .sec-desc { margin-top: 8px; }
  .lead { margin-top: 14px; }
  .fine { margin-top: 12px; }
  .diag-form { margin-top: 20px; }
  .hero-links { margin-top: 14px; gap: 6px 16px; }
  .hero-in { gap: 36px; }
  .grid3 { gap: 8px; }
  .svc { gap: 32px; }
  .svc-grid { gap: 18px 20px; }
  .why, .contact-in { gap: 26px; }
  .faq { gap: 24px; }
  .plans, .cases { gap: 10px; }
  .checks, .alt, .dlg-actions { gap: 6px; }
  .chips, .ind-list, .r-items, .report-stats, .report-bar { gap: 5px; }
  .card, .case-body { padding: 18px; }
  .feat { padding: 0; column-gap: 12px; min-width: 0; }
  .plan { padding: 21px 18px; }
  .checks li { padding: 15px; gap: 10px; }
  .ind-panel { padding: 20px 17px; gap: 16px; }
  .ind-l { gap: 5px; }
  .ind { margin-bottom: 40px; }
  .ind-tabs { margin-bottom: 14px; gap: 4px; }
  .ind-tabs button { padding-inline: 12px; }
  .ind-list li, #hero-board li, .alt a { padding: 10px 11px; gap: 8px; }
  .case-shot { padding: 20px 17px 0; }
  .case.empty { padding: 22px 18px; gap: 6px; }
  .case-body h3 { margin: 6px 0 12px; }
  .case dl, .case dl div { gap: 8px; }
  .case dl div { grid-template-columns: 80px minmax(0, 1fr); padding-bottom: 8px; }
  .faq-list { padding: 4px 15px; }
  .faq-list summary { min-height: 44px; padding: 14px 32px 14px 0; font-size: 16px; }
  .faq-list details p { padding-bottom: 15px; }
  .work-group { padding: 17px 14px; }
  .work-group h4 { font-size: 17px; }
  .work-list { margin-top: 14px; }
  .work-list > div { padding: 11px 0; }
  .work-list dd { margin-top: 5px; }
  .work-prices th, .work-prices td { padding: 8px; }
  .pricing-page .work-prices th, .pricing-page .work-prices td { padding: 7px 4px; }
  .pricing-title { margin-bottom: 10px; }
  .pricing-block, .per-job-plans { margin-top: 16px; }
  .pricing-block .pl, .pricing-block .btn { margin-top: 14px; }
  .monthly-pricing { margin-top: 36px; padding-top: 22px; }
  .pricing-page h2 { margin-bottom: 16px; }
  .pricing-page .sec p { margin-bottom: 14px; }
  .pricing-procedure li { margin-bottom: 10px; }
  .price { margin: 16px 0; }
  .pl { margin-bottom: 18px; padding-top: 15px; gap: 7px; }
  .best-tag { position: static; align-self: flex-start; margin-bottom: 8px; }
  .report { padding: 17px; }
  .report-stats div { padding: 8px; }
  .report-site { margin: 12px 0 9px; }
  .report-log { margin: 10px 0; }
  .report-log li { padding: 7px 0; gap: 8px; }
  .stack { padding: 22px 8px 6px; }
  #hero-board { gap: 6px; width: calc(100% - 32px); }
  #hero-board li { min-width: 0; }
  #hero-board b { padding-inline: 6px; }
  .stack-head { margin-bottom: 9px; }
  #hero-badge { margin-top: 14px; }
  .tiles { gap: 4px; }
  .tiles li { min-height: 76px; padding: 11px 7px; gap: 6px; }
  .strip-label { margin-bottom: 10px; }
  .ico-warn { margin-bottom: 12px; }
  .bridge { margin-top: 30px; gap: 13px; font-size: 16px; }
  #service .fine.center { margin-top: 30px; }
  #pricing .fine.center, .btn-kakao { margin-top: 18px; }
  .steps { margin-bottom: 30px; }
  .steps li { padding: 0 0 22px 56px; min-height: 44px; }
  .alt { margin-top: 18px; }
  .form-card { padding: 18px 14px; }
  .f { margin-bottom: 12px; }
  .f2 { column-gap: 9px; }
  .f input:not([type=checkbox]):not([type=radio]), .f select, .f textarea {
    min-height: 44px; padding: 9px 11px;
  }
  .f select { padding-right: 38px; }
  .f textarea { min-height: 80px; }
  .consent-d p { padding: 8px; }
  .done-box { padding: 28px 6px; }
  .btn { min-height: 44px; padding: 0 16px; white-space: normal; }
  .btn-sm { min-height: 44px; padding: 0 12px; }
  .diag-field { padding: 6px; gap: 5px; }
  .diag-field input { height: 44px; padding-inline: 10px; }
  .diag-field .btn { min-height: 44px; }
  .hdr-in { gap: 10px; }
  .hdr-cta { gap: 5px; }
  .nav.open { padding-bottom: 14px; }
  .nav.open a { min-height: 44px; padding-block: 10px; font-size: 16px; }
  .mbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 5px;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); }
  .mbar .btn { min-width: 0; min-height: 44px; padding-inline: 10px; }
  body.mbar-on .kakao-fab { bottom: calc(var(--mbar-height, calc(57px + env(safe-area-inset-bottom))) + 8px); }
  .dlg-in { padding: 44px 14px calc(22px + env(safe-area-inset-bottom)); }
  .dlg-x { top: 0; right: 4px; }
  .dlg-h { margin-bottom: 14px; }
  .board-list { padding: 3px 12px; }
  .board-list li { padding: 9px 0; gap: 8px; }
  .r-summary { padding: 12px; margin-bottom: 12px; }
  .r-items li { padding: 10px; gap: 3px 8px; }
  .r-items .r-evidence li { padding: 2px 0; }
  .locked { padding: 15px; }
  .locked-list { gap: 6px; margin-bottom: 12px; }
  .dlg-actions { margin-top: 18px; }
  .r-scorebar { gap: 8px; margin-top: 10px; }
  .r-counts, .r-gnu, .r-items { margin-bottom: 12px; }
  .hero-in > *, .ind-panel > *, .contact-in > *, .checks li > div,
  .case dd, .report-log li { min-width: 0; overflow-wrap: anywhere; }
}
