/* ==========================================================
   BANTTAS — Lifetime Healthcare Data Platform
   밝고 신뢰감 있는 Healthcare + Data. 대표 그래픽은 산과에서 노년까지 이어지는 하나의 Line.
   Line의 여섯 생애주기 색은 로고의 여섯 막대에서 가져왔다.
   ========================================================== */
:root {
  --white: #FFFFFF;
  --mist: #F4F7FB;
  --mist-2: #E8EEF6;
  --ink: #072E67;          /* 로고 네이비 (공식 팔레트) */
  --ink-soft: #3A4A66;
  --muted: #64718A;
  --rule: #E1E7EF;
  --rule-strong: #C5CFDC;
  --blue: #2463EB;         /* 실제 환자 App의 블루 */
  --blue-ink: #1D40B0;
  --blue-wash: #EAF2FF;

  /* 생애주기 색: 산과 → 영유아 → 소아 → 청소년 → 성인 → 노년 */
  /* 공식 로고 팔레트 PURPLE·BLUE·TEAL·GREEN·ORANGE·RED */
  --s1: #5A2DBD; --s2: #0B83DF; --s3: #27C7BC; --s4: #9FBE00; --s5: #FF8A00; --s6: #F01C0B;
  --gray: #565B63; --yellow: #F6BD00;
  --life-stops: var(--s1), var(--s2) 20%, var(--s3) 40%, var(--s4) 60%, var(--s5) 80%, var(--s6);
  --life: linear-gradient(90deg, var(--life-stops));

  /* 어두운(ink) 바탕 위 텍스트·선 */
  --on-ink-soft: #B9C6DE;
  --on-ink-rule: rgba(255, 255, 255, .14);
  --on-ink-link: #CFE0FF;

  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(88px, 11vw, 160px);
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink);
  background: var(--white); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { letter-spacing: -0.035em; font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.en { font-size: 15px; color: var(--muted); letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand .mark { width: 26px; height: 31px; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav-group > a { display: block; white-space: nowrap; padding: 10px 14px; border-radius: 8px; font-size: 15.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.nav > a:hover, .nav-group > a:hover { color: var(--ink); background: var(--mist); }
.nav [aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav .nav-cta { white-space: nowrap; margin-left: 12px; background: var(--ink); color: #fff; font-weight: 600; padding: 11px 18px; }
.nav .nav-cta:hover { background: var(--blue-ink); color: #fff; }
/* 용어서버(새 창): 문의 버튼 옆의 테두리 버튼 */
.nav .nav-ext { display: inline-flex; align-items: center; margin-left: 12px; padding: 10px 16px; border: 1px solid var(--rule-strong); color: var(--ink); font-weight: 600; }
.nav .nav-ext:hover { border-color: var(--ink); background: #fff; }
.nav .nav-ext + .nav-cta { margin-left: 8px; }
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group > a { padding-right: 4px; }
.sub-toggle { display: grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; border: 0; border-radius: 6px; background: none; color: var(--ink-soft); cursor: pointer; }
.sub-toggle:hover { background: var(--mist); color: var(--ink); }
.sub-toggle svg { transition: transform .15s; }
.nav-group.open .sub-toggle svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: -8px; width: 320px; padding: 8px;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 24px 48px -24px rgba(7, 46, 103, .35);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-group:hover .dropdown, .nav-group:focus-within .dropdown, .nav-group.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.dropdown a:hover { background: var(--mist); }
.dropdown a[aria-current="page"] { background: var(--blue-wash); }
.dropdown b { display: block; font-size: 15px; }
.dropdown span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; color: var(--ink); cursor: pointer; }
.ext { display: inline-block; margin-left: 4px; vertical-align: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border-radius: 12px; border: 1.5px solid transparent; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-wash); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.text-link { font-weight: 600; color: var(--blue-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: rgba(29, 64, 176, .35); }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Section scaffolding ---------- */
.sec { padding: var(--sec) 0; }
.sec.mist { background: var(--mist); }
.sec.ink { background: var(--ink); color: #fff; }
.head { max-width: 46em; margin-bottom: clamp(40px, 5vw, 72px); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.22; letter-spacing: -0.045em; }
.head p { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); }
.ink .head p { color: var(--on-ink-soft); }
.kicker { margin-bottom: 14px; font-size: 16px; font-weight: 700; color: var(--blue-ink); }
.ink .kicker { color: #8DB6FF; }
.split { display: grid; grid-template-columns: minmax(0, var(--split-a, 1fr)) minmax(0, var(--split-b, 1fr)); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split > * { min-width: 0; } /* 안의 고정 폭 요소(관리자 화면 목업 등)가 칸을 밀어내지 않게 */
.split > .head { margin: 0; }
.split.top { align-items: start; }
.sec.flush { padding-top: 0; }
.prose p { font-size: 18px; color: var(--ink-soft); max-width: 34em; }
.prose p + p { margin-top: 14px; }
.prose .actions { margin-top: 32px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 9vw, 128px) 0 0; overflow: hidden; }
.hero h1 { font-size: clamp(42px, 6.6vw, 92px); line-height: 1.1; letter-spacing: -0.055em; font-weight: 800; max-width: 12em; }
.hero .sub { margin-top: 28px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-soft); max-width: 34em; }
.hero .en { margin-top: 14px; }
.hero .actions { margin-top: 40px; }
.hero .actions .text-link { margin-left: 8px; }

/* 첫 화면 대표 Line (1200px 이상) */
.hero { position: relative; }
.hero-line { display: none; }
.hero-line svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-line .path { fill: none; stroke: url(#heroGrad); stroke-width: 6; stroke-linecap: round; }
.hero-line .node { fill: #fff; stroke: var(--c); stroke-width: 5; transform-box: fill-box; transform-origin: center; }
.hero-line .lbl { font-family: var(--font); }
.hero-line .n { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; fill: var(--ink); }
.hero-line .d { font-size: 14px; font-weight: 500; fill: var(--muted); }
.js .hero-line .path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.45, .05, .2, 1) .25s forwards; }
.js .hero-line .node, .js .hero-line .lbl { opacity: 0; animation: pop .5s ease forwards; animation-delay: calc(.45s + var(--i) * .34s); }
@media (min-width: 1200px) {
  .hero { min-height: 800px; padding-bottom: 0; overflow: hidden; }
  .hero .wrap { position: relative; z-index: 1; }
  .hero .lifeline { display: none; }
  .hero-line { display: block; position: absolute; right: 0; bottom: 0; width: min(100%, 1640px); pointer-events: none; }
}

/* 생애주기 Line */
.lifeline { position: relative; margin-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.lifeline svg { display: block; width: 100%; height: auto; overflow: visible; }
.lifeline .path { fill: none; stroke: url(#lifeGrad); stroke-width: 5; stroke-linecap: round; }
.lifeline .node { fill: #fff; stroke: var(--c); stroke-width: 4; }
.lifeline .labels { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 14px; text-align: center; }
.lifeline .labels li { font-size: clamp(14px, 1.4vw, 18px); font-weight: 700; color: var(--ink); }
.lifeline .labels small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.js .lifeline .path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.45, .05, .2, 1) .2s forwards; }
.js .lifeline .node, .js .lifeline .labels li { opacity: 0; animation: pop .5s ease forwards; animation-delay: calc(.35s + var(--i) * .32s); }
.lifeline .node { transform-box: fill-box; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 제품 화면 목업 (실제 App·관리자 화면 구성 기준) ---------- */
.mock-note { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--rule); padding: 3px 10px; border-radius: 999px; }
.stage { position: relative; }
.stage .mock-note, .schematic .mock-note { position: absolute; top: -14px; left: 16px; z-index: 3; }
.stage.center { display: flex; justify-content: center; }

/* 관리자: Material 계열의 실제 bIMS 화면을 단순화 */
.dash {
  --ui: #1E6FD9; background: #FAFAFA; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 var(--rule), 0 40px 80px -48px rgba(7, 46, 103, .45); font-size: 12px; line-height: 1.45; color: #222;
}
.dash-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); position: relative; z-index: 1; }
.dash-top .hamb { width: 14px; height: 10px; border-top: 2px solid #444; border-bottom: 2px solid #444; position: relative; margin-right: 6px; }
.dash-top .hamb::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid #444; }
.dash-top b { font-size: 14px; color: var(--ink); }
.dash-top .search { flex: 1; max-width: 46%; margin: 0 auto; padding: 5px 10px; border: 1px solid #DDD; border-radius: 4px; color: #999; }
.dash-top .org { color: #333; }
.dash-top .me { width: 22px; height: 22px; border-radius: 50%; background: var(--ui); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.dash-body { display: grid; grid-template-columns: 150px 1fr; min-height: 360px; }
.dash-side { background: #F5F5F5; border-right: 1px solid #E6E6E6; padding: 10px 0; }
.dash-side .org-name { display: flex; align-items: center; gap: 8px; padding: 4px 12px 10px; font-weight: 700; border-bottom: 1px solid #E6E6E6; }
.dash-side .org-name span { width: 20px; height: 20px; border-radius: 50%; background: var(--ui); }
.dash-side small { display: block; padding: 10px 12px 4px; color: #777; font-weight: 600; }
.dash-side li { padding: 5px 12px 5px 22px; color: #444; }
.dash-side li.on { color: var(--ui); font-weight: 700; background: rgba(30, 111, 217, .08); }
.dash-main { padding: 14px 16px; }
.dash-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dash-title span { width: 30px; height: 30px; border-radius: 50%; background: var(--ui); }
.dash-title b { display: block; font-size: 16px; font-weight: 500; }
.dash-title small { color: #888; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.kpi { background: #fff; border: 1px solid #E3E3E3; border-radius: 4px; }
.kpi p { padding: 9px 10px 4px; font-weight: 600; color: #333; }
.kpi .nums { display: flex; gap: 14px; padding: 2px 10px 9px; }
.kpi .nums span { color: #888; font-size: 11px; }
.kpi .nums b { display: block; font-size: 18px; font-weight: 500; color: #222; line-height: 1.3; }
.kpi .nums b.main { color: var(--ui); }
.kpi .nums .warn b { color: #F08A00; }
.kpi a, .kpi .kpi-link { display: block; padding: 7px 10px; border-top: 1px solid #EEE; color: var(--ui); font-weight: 600; }
.chart { background: #fff; border: 1px solid #E3E3E3; border-radius: 4px; padding: 10px 12px 12px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.chart-head p { font-weight: 600; }
.chart-head span { color: #888; font-size: 11px; display: flex; align-items: center; gap: 5px; }
.chart-head i { width: 8px; height: 8px; border-radius: 2px; background: #B9D3F5; }
.chart-head i.r { background: var(--ui); margin-left: 6px; }
.bars2 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; height: 100px; align-items: end; }
.bars2 span { display: flex; align-items: end; justify-content: center; gap: 3px; height: 100%; }
.bars2 i { width: 12px; height: var(--v); border-radius: 3px 3px 0 0; background: #B9D3F5; }
.bars2 i.r { background: var(--ui); }
.bar-x { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 6px; color: #999; font-size: 11px; text-align: center; }

/* 환자 App: 실제 App의 카드형 홈 화면 */
.phone { width: 290px; border-radius: 44px; padding: 10px; background: #0B1530; box-shadow: 0 40px 80px -36px rgba(7, 46, 103, .55); flex: none; }
.phone-screen {
  --app: var(--blue); --app-dk: var(--blue-ink); border-radius: 35px; overflow: hidden; background: #F6F8FF; height: 600px;
  display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.4; color: #111827;
}
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 6px; font-weight: 700; font-size: 12px; }
.phone-status .sig { display: flex; gap: 2px; align-items: end; }
.phone-status .sig i { width: 3px; background: #111; border-radius: 1px; }
.phone-status .sig i:nth-child(1) { height: 5px; } .phone-status .sig i:nth-child(2) { height: 7px; } .phone-status .sig i:nth-child(3) { height: 9px; }
.app-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 12px; background: #fff; border-bottom: 1px solid #E5E9F2; }
.app-head b { font-size: 15px; letter-spacing: -0.02em; }
.app-head .bell { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #E1E6F0; display: grid; place-items: center; }
.app-body { flex: 1; padding: 10px 12px; display: grid; gap: 8px; align-content: start; }
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-card { background: #fff; border: 1px solid #E1E6F0; border-radius: 16px; padding: 10px 12px; }
.app-card small { display: block; color: #6B7280; font-size: 10.5px; }
.app-card .big { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0; }
.app-card em { font-style: normal; font-size: 11px; font-weight: 500; color: #6B7280; margin-left: 2px; }
.app-card .up { color: #16A34A; font-weight: 600; }
.app-line { display: flex; justify-content: space-between; align-items: center; }
.app-line .mid { font-size: 18px; font-weight: 800; }
.app-card .chk { display: inline-flex; align-items: center; gap: 4px; color: #374151; font-size: 11px; }
.app-card .chk::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--app); }
.app-prog { display: flex; height: 6px; border-radius: 6px; background: #EEF1F6; margin: 8px 0; overflow: hidden; }
.app-prog i { background: #16A34A; } .app-prog i.tmp { background: #F59E0C; }
.legend { display: flex; gap: 10px; font-size: 10px; color: #4B5563; }
.legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 4px; background: #E5E7EB; }
.legend .g::before { background: #16A34A; } .legend .o::before { background: #F59E0C; }
.app-ring { display: flex; align-items: center; gap: 12px; }
.app-ring .ring { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--app) calc(var(--v) * 1%), #EEF1F6 0); position: relative; }
.app-ring .ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.app-ring .ring b { position: relative; font-size: 13px; }
.app-ring div > b { font-size: 12.5px; }
.wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; height: 56px; align-items: end; margin-top: 8px; }
.wk i { display: block; height: max(5px, var(--v)); border-radius: 4px; background: var(--app); }
.wk i.today { background: var(--app-dk); }
.wk-x { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; text-align: center; color: #6B7280; font-size: 9.5px; margin-top: 4px; }
.wk-x .today { color: var(--app); font-weight: 700; }
.phone-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #E5E9F2; background: #fff; padding: 8px 2px 18px; }
.phone-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8.5px; color: #4B5563; white-space: nowrap; letter-spacing: -0.03em; }
.phone-tabs svg { width: 17px; height: 17px; }
.phone-tabs span.on { color: var(--app); font-weight: 700; }

/* 홈 Patient Experience 무대 */
.px-stage { position: relative; padding: 0 0 40px; }
.px-stage .dash { width: 88%; }
.px-stage .phone { position: absolute; right: -12px; bottom: -8px; z-index: 2; zoom: .74; }
.split.media-wide { --split-a: .9fr; --split-b: 1.1fr; }

/* ---------- How it works: 6단계 ---------- */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; counter-reset: step; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--rule-strong); }
.flow li { position: relative; padding-right: 20px; counter-increment: step; }
.flow li::before {
  content: counter(step); position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink); font-weight: 800; font-size: 17px; margin-bottom: 22px;
}
.flow li:last-child::before { background: var(--ink); color: #fff; }
.flow h3 { font-size: 19px; margin-bottom: 8px; }
.flow p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- Vision: NOW → PLATFORM ---------- */
.roadmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--on-ink-rule); }
.roadmap li { padding: 32px 28px 36px; position: relative; }
.roadmap li + li { border-left: 1px solid var(--on-ink-rule); }
.roadmap .when { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--on-ink-link); margin-bottom: 22px; }
.roadmap li:first-child { background: rgba(36, 99, 235, .22); }
/* NOW 칸의 화살표는 칸과 같은 색으로 채워 칸이 다음 단계로 뻗어 나가는 모양으로 */
.roadmap li:first-child:not(:last-child)::after { background: linear-gradient(rgba(36, 99, 235, .22), rgba(36, 99, 235, .22)), var(--ink); }
.roadmap li:first-child .when { background: var(--blue); color: #fff; }
.roadmap h3 { font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
.roadmap p { color: var(--on-ink-soft); font-size: 15.5px; }
.roadmap .shown { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--on-ink-rule); font-size: 14px; color: #8EA3C8; }
.roadmap li:not(:last-child)::after {
  content: ""; position: absolute; right: -9px; top: 38px; width: 16px; height: 16px; z-index: 1;
  border-top: 2px solid rgba(255, 255, 255, .35); border-right: 2px solid rgba(255, 255, 255, .35); transform: rotate(45deg); background: var(--ink);
}

/* ---------- Lifetime Journey (스크롤 연동) ---------- */
.journey { position: relative; --p: 1; }
.js .journey { --p: 0; }
.journey-stages-wrap { position: relative; }
.journey-stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.journey-track { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 15px; height: 4px; border-radius: 4px; background: var(--mist-2); }
.journey-track i { position: absolute; inset: 0; border-radius: 4px; background: var(--life); clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.journey-stages li { position: relative; padding: 0 10px; text-align: center; }
.journey-stages .dot { display: block; width: 34px; height: 34px; margin: 0 auto 20px; border-radius: 50%; background: #fff; border: 4px solid var(--mist-2); position: relative; z-index: 1; transition: border-color .3s, transform .3s; }
.journey-stages li.on .dot { border-color: var(--c); transform: scale(1.08); }
.journey-stages h3 { font-size: 21px; margin-bottom: 12px; }
.journey-stages ul li { font-size: 14.5px; color: var(--ink-soft); padding: 3px 0; }
.journey-stages > li > ul { opacity: .45; transition: opacity .4s; }
.journey-stages li.on > ul { opacity: 1; }
.journey-stages .drop { display: block; width: 2px; height: 48px; margin: 18px auto 0; background: linear-gradient(var(--c), transparent); opacity: .5; }
.phr-sink {
  margin: 0 calc(100% / 12); padding: 26px 32px; border-radius: var(--r-lg); text-align: center;
  background: var(--ink); color: #fff; position: relative;
}
.phr-sink::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--life); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.phr-sink b { display: block; font-size: 22px; letter-spacing: -0.03em; }
.phr-sink span { color: var(--on-ink-soft); font-size: 15.5px; }

/* ---------- Experience BANTTAS ---------- */
.demos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* 현재 상용 제품은 한 줄 전체를 쓰는 큰 카드로 (Particle 참고) */
.demo-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 48px; padding: clamp(28px, 4vw, 44px); background: var(--ink); border-color: var(--ink); color: #fff; }
.demo-card.featured .host { color: var(--on-ink-link); grid-column: 1 / -1; }
.demo-card.featured h3 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.demo-card.featured p { color: var(--on-ink-soft); font-size: 17px; }
.demo-card.featured .go { grid-column: 2; padding-top: 16px; color: #fff; }
.demo-card.featured:hover { border-color: var(--blue); }
.demo-card { display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--rule); text-decoration: none; transition: border-color .2s, transform .2s; }
.demo-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.demo-card .host { font-size: 13.5px; font-weight: 600; color: var(--blue-ink); margin-bottom: 14px; }
.demo-card h3 { font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
.demo-card p { font-size: 15.5px; color: var(--ink-soft); }
.demo-card .go { margin-top: auto; padding-top: 24px; font-weight: 700; font-size: 15px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.demo-card.live .go::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #18B26B; box-shadow: 0 0 0 4px rgba(24, 178, 107, .18); }

/* ---------- Technology ---------- */
.card .chips { margin-top: 16px; }

/* Before → After: 각 쪽을 화살표로 이어진 단계로 보여준다 (PatientLink 참고) */
.ba { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.ba-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); border: 1px solid var(--rule); background: #fff; }
.ba-card.before { background: var(--mist); border-color: transparent; }
.ba-card.after { border: 1.5px solid var(--blue); box-shadow: 0 24px 48px -32px rgba(36, 99, 235, .45); }
.ba-tag { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.after .ba-tag { color: var(--blue-ink); }
.ba-card h3 { font-size: clamp(20px, 2vw, 24px); margin-bottom: 20px; }
.ba-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ba-flow li { padding: 9px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--rule); font-size: 15px; font-weight: 600; }
.after .ba-flow li { background: var(--blue-wash); border-color: transparent; color: var(--blue-ink); }
/* 줄이 바뀌면 그 줄 첫 칩 앞의 연결선은 보이지 않게: 목록을 칸 간격만큼 왼쪽으로 당기고 그만큼 잘라낸다 */
.after .ba-flow { gap: 8px 0; margin-left: -30px; clip-path: inset(0 0 0 30px); }
.after .ba-flow li { position: relative; margin-left: 30px; }
.after .ba-flow li::before { content: ""; position: absolute; left: -22px; top: 50%; width: 14px; height: 2px; background: var(--blue); opacity: .5; }

/* 세로 데이터 흐름: 번호가 붙은 단계 (Open Health Hub 참고) */
.dataflow { counter-reset: df; position: relative; }
.dataflow::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--rule-strong); }
.dataflow > li { counter-increment: df; position: relative; padding: 0 0 32px 68px; }
.dataflow > li:last-child { padding-bottom: 0; }
.dataflow > li::before { content: counter(df); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; }
.dataflow h3 { font-size: 20px; padding-top: 8px; margin-bottom: 4px; }
.dataflow p { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.std-list { border-top: 1.5px solid var(--ink); }
.std-list > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.std-list dt { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.std-list dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--ink); }

/* ---------- Video ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--ink);
  display: grid; place-items: center; color: #fff; text-align: center;
}
.video .line-bg { position: absolute; left: 0; right: 0; top: 50%; height: 4px; background: var(--life); opacity: .9; }
.video .play { position: relative; width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255, 255, 255, .12); }
.video .play::after { content: ""; border-left: 22px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.video figcaption { position: absolute; left: 0; right: 0; bottom: 28px; font-size: 15px; color: var(--on-ink-soft); }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.trust li { padding: 26px 24px 26px 0; font-size: 17px; font-weight: 600; line-height: 1.5; }
.trust li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.trust small { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }

/* ---------- 공통 리스트·표 ---------- */
.checks li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--rule); font-size: 16.5px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='%231D40B0' stroke-width='1.6'/%3E%3C/svg%3E") center no-repeat; }
.checks li:first-child { border-top: 1px solid var(--rule); }
.checks b { font-weight: 700; }
.checks span { color: var(--muted); }

.steps10 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.steps10 li { counter-increment: s; padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--rule); font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.steps10 li::before { content: counter(s); display: block; font-size: 13px; font-weight: 800; color: var(--blue-ink); margin-bottom: 8px; }

.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table th { font-size: 14px; color: var(--muted); font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.table td:first-child { font-weight: 700; white-space: nowrap; }
.table .stage-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 10px; }
.table-wrap { overflow-x: auto; }

.cards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; }
.card { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--rule); }
.mist .card { border-color: transparent; }
.ink .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.ink .card h3 { color: #fff; }
.ink .card p { color: var(--on-ink-soft); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p, .card li { font-size: 15.5px; color: var(--ink-soft); }
.card li { padding: 3px 0; }
.card .chips li { padding: 6px 12px; } /* 카드 안 칩도 좌우 여백 유지 */

/* 자료 요청 자리표시 */
.pending { border: 1.5px dashed var(--rule-strong); border-radius: var(--r); padding: 22px; color: var(--muted); font-size: 15px; background: rgba(255, 255, 255, .6); }
.pending b { color: var(--ink-soft); }

/* ---------- 하위 페이지 머리 ---------- */
.page-head { padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 6vw, 80px); }
.page-head .crumb { font-size: 15px; font-weight: 600; color: var(--blue-ink); margin-bottom: 18px; }
.page-head .crumb a { text-decoration: none; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.15; letter-spacing: -0.05em; font-weight: 800; max-width: 15em; }
.page-head .sub { margin-top: 22px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-soft); max-width: 38em; }
.page-head .actions { margin-top: 36px; }
.page-head .split h1 { font-size: clamp(34px, 4vw, 54px); }
.page-head .thin-line { margin-top: clamp(48px, 6vw, 72px); height: 4px; border-radius: 4px; background: var(--life); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.form { padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--rule); }
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 24px; border: 0; padding: 0; }
.types legend { font-size: 15px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.types label { position: relative; display: block; cursor: pointer; }
.types input { position: absolute; opacity: 0; }
.types span { display: block; text-align: center; padding: 12px 8px; border-radius: 10px; border: 1.5px solid var(--rule); font-weight: 600; font-size: 15px; }
.types input:checked + span { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-ink); }
.types input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.req { color: var(--s6); }
.field .req { margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--mist); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 99, 235, .16); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14.5px; color: var(--ink-soft); }
.consent input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--blue); }
.form .btn { margin-top: 22px; }
.form-status { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.form-status[data-state="done"] { color: var(--blue-ink); font-weight: 600; }
.form-status[data-state="error"] { color: #B42318; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
/* 봇만 채우는 숨은 입력칸(허니팟) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.info dt { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 24px; }
.info dt:first-child { margin-top: 0; }
.info dd { margin: 6px 0 0; font-size: 17px; }

/* ---------- 문의 띠 ---------- */
.band { padding: 0 0 var(--sec); }
/* 앞 섹션이 색 배경(mist·ink)이면 배너가 그 경계에 붙지 않도록 위 여백을 둔다 */
main:has(> :is(.sec.mist, .sec.ink):last-child) + .band { padding-top: var(--sec); }
.band .wrap > div:first-child { flex: 1 1 420px; }
.band .wrap {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden; border-radius: 28px; background: var(--ink); color: #fff;
  width: min(100% - 2 * var(--gutter), var(--wrap) - 2 * var(--gutter)); margin-inline: auto;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 64px);
}
.band .wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--life); }
.band h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.3; letter-spacing: -0.04em; }
.band p { margin-top: 12px; color: var(--on-ink-soft); font-size: 17px; max-width: 32em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); padding: 72px 0 40px; font-size: 15px; color: var(--ink-soft); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr); gap: 48px; }
.foot-brand p { margin-top: 14px; }
.foot-brand .en { margin-top: 4px; }
.foot-nav { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 24px; }
.foot-nav a { white-space: nowrap; }
.foot-nav h2 { font-size: 14px; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.foot-nav li { margin-bottom: 8px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copyright { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }

/* ---------- ATLAS 패널 (홈 07, Technology #atlas) ---------- */
.atlas-wrap { margin-top: clamp(48px, 6vw, 80px); }
.atlas-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.atlas-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--life); }
.atlas-tag { font-size: 15px; font-weight: 700; color: var(--on-ink-link); margin-bottom: 14px; }
.atlas-panel h3 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; margin-bottom: 14px; }
.atlas-panel > div:first-child h3 { color: #8DB6FF; font-size: clamp(26px, 3vw, 38px); }
.atlas-panel p, .ink .atlas-detail p { color: var(--on-ink-soft); font-size: 17px; }
.atlas-panel strong, .ink .atlas-detail strong { color: #8DB6FF; font-weight: 700; }
.atlas-list { margin-top: 18px; }
.atlas-list li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--on-ink-rule); font-size: 16px; color: #fff; }
.atlas-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid #8DB6FF; border-bottom: 2px solid #8DB6FF; transform: rotate(-45deg); }
.atlas-panel .actions { margin-top: 24px; }
.ink .atlas-detail h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.ink .atlas-cards { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- 정보보안 (홈 09) ---------- */
.security-strip {
  margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--mist);
}
.security-strip h3 { font-size: 22px; margin-bottom: 10px; }
.security-strip p { color: var(--ink-soft); font-size: 16.5px; }
.security-strip p + p { margin-top: 12px; }
.security-strip .chips li { background: #fff; }
.trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .atlas-panel, .security-strip { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } .trust li, .trust li + li { padding-left: 0; border-left: 0; } .trust li + li { border-top: 1px solid var(--rule); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    /* iOS Safari의 100vh는 아래 주소창에 가려지는 영역까지 포함하므로 보이는 높이(dvh)로 제한 */
    max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    box-shadow: 0 24px 40px -24px rgba(7, 46, 103, .3);
  }
  .nav > * { flex-shrink: 0; }
  html.menu-open { overflow: hidden; }
  .nav.open { display: flex; }
  .nav > a, .nav-group > a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav > a:hover, .nav-group > a:hover { background: none; }
  .nav-group { display: block; }
  .nav-group > a { padding-right: 0; }
  .sub-toggle { display: none; }
  .dropdown { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px; }
  .nav .nav-cta { margin: 16px 0 0; text-align: center; border-radius: 12px; border-bottom: 0; }
  .nav .nav-ext { justify-content: center; margin: 24px 0 0; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--rule-strong); }
  .nav .nav-ext + .nav-cta { margin: 10px 0 0; }
}
@media (max-width: 1080px) {
  .demos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-card.featured { grid-template-columns: 1fr; }
  .demo-card.featured .go { grid-column: 1; }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap li:nth-child(3) { border-left: 0; }
  .roadmap li:nth-child(n + 3) { border-top: 1px solid var(--on-ink-rule); }
  .roadmap li:nth-child(2)::after { display: none; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .flow::before { display: none; }
  .foot-top { grid-template-columns: 1fr; }
  .steps10 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; }
  .tab-panel { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .px-stage .dash { width: 100%; }
  .px-stage .phone { position: relative; right: auto; bottom: auto; margin: -60px auto 0; zoom: .86; }
  /* 관리자 화면: PC 레이아웃 그대로 화면 폭에 맞춰 축소(썸네일처럼). 정확한 배율은 site.js 가 맞춘다 */
  .js .dash { width: 720px !important; flex: none; }
  .tab-panel > *, .tab-visual { min-width: 0; }
  /* 데스크톱과 같은 구성: 관리자 화면(폭 88%) 오른쪽 아래에 같은 높이감의 휴대폰을 겹친다. 배율은 site.js */
  .js .px-stage { display: block; padding-bottom: 20px; }
  .js .px-stage .phone { position: absolute; right: 0; bottom: 4px; margin: 0; zoom: .4; }
  html:not(.js) .dash-body { grid-template-columns: 1fr; }
  html:not(.js) .dash-side { display: none; }
  html:not(.js) .dash-top .search { display: none; }
  html:not(.js) .kpis { grid-template-columns: 1fr; }
  /* 여정: 세로 배치 */
  .journey-stages { grid-template-columns: 1fr; gap: 28px; padding-left: 52px; }
  .journey-track { left: 15px; right: auto; top: 15px; bottom: 15px; width: 4px; height: auto; }
  .journey-track i { clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0); background: linear-gradient(180deg, var(--life-stops)); }
  .journey-stages li { text-align: left; padding: 0; }
  .journey-stages .dot { position: absolute; left: -52px; top: 0; margin: 0; }
  .journey-stages .drop { display: none; }
  .phr-sink { margin: 32px 0 0; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .demos { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap li + li { border-left: 0; border-top: 1px solid var(--on-ink-rule); }
  .roadmap li::after { display: none; }
  .fields { grid-template-columns: 1fr; }
  .types { grid-template-columns: 1fr 1fr; }
  .lifeline .labels small { display: none; }
  /* 좁은 화면에서는 SVG가 크게 축소되므로 선과 점을 굵게 */
  .lifeline .path { stroke-width: 12; }
  .lifeline .node { r: 20px; stroke-width: 9; }
  .actions .btn { flex: 1 1 auto; }
  .hero .actions .text-link { margin: 8px 0 0; }
  .steps10 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .lifeline .path { stroke-dashoffset: 0; }
  .js .lifeline .node, .js .lifeline .labels li { opacity: 1; }
  /* 첫 화면 대표 Line도 애니메이션 없이 완성된 모습으로 (동작 줄이기 설정 사용자) */
  .js .hero-line .path { stroke-dashoffset: 0; }
  .js .hero-line .node, .js .hero-line .lbl { opacity: 1; }
}


/* 스크린리더 전용 텍스트 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Vision 표의 홈페이지 표현 링크 */
.roadmap .shown a { color: var(--on-ink-link); text-underline-offset: 3px; }
.roadmap .shown a:hover { color: #fff; }
.roadmap .shown a + a { margin-left: 18px; }

/* PX 핵심 화면 탭 */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tablist [role="tab"] { font: 600 15px/1 var(--font); padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--rule); background: #fff; color: var(--ink-soft); cursor: pointer; }
.tablist [role="tab"]:hover { border-color: var(--rule-strong); color: var(--ink); }
.tablist [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--mist); }
.tab-panel + .tab-panel { margin-top: 16px; }
.js [data-tabs] .tab-panel + .tab-panel { margin-top: 0; }
.js [data-tabs] .tab-panel[hidden] { display: none; }
.tab-text h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 12px; }
.tab-text p { color: var(--ink-soft); font-size: 17px; }
.tab-visual { display: flex; justify-content: center; }
.tab-visual .dash { width: 100%; }
.tab-visual .phone { zoom: .85; }
/* Clinical Interview 실제 화면 (ciai.banttas.com) */
.ci-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 clamp(32px, 4vw, 48px); padding: 0; list-style: none; counter-reset: step; }
.ci-steps li { counter-increment: step; padding: 18px 20px; border-radius: var(--r); background: var(--mist); }
.ci-steps li::before { content: "0" counter(step); display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--blue-ink); }
.ci-steps b { display: block; font-size: 18px; }
.ci-steps span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-soft); }
.ci-shots { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.ci-facts { margin: 0; border-top: 1px solid var(--rule); }
.ci-facts > div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ci-facts dt { font-weight: 700; color: var(--ink); }
.ci-facts dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) {
  .ci-steps { grid-template-columns: 1fr; }
  .ci-shots { grid-template-columns: 1fr; }
  .ci-shots .capture:last-child { max-width: 420px; }
  .ci-facts > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Patient Assessment 서식 목록 */
.pa-forms { margin-top: clamp(40px, 5vw, 64px); }
.pa-forms h3 { font-size: 22px; }
.pa-forms h3 + p { margin-top: 10px; color: var(--ink-soft); }
.pa-forms h3 + p + .ci-facts { margin-top: 24px; }
.capture.pa-new { max-width: 460px; margin-top: 28px; }
.pa-forms .ci-facts > div { grid-template-columns: 9.5em 1fr; }
@media (max-width: 900px) { .pa-forms .ci-facts > div { grid-template-columns: 1fr; } }

/* app.banttas.com 실제 캡처 (헤더·메뉴 제외 본문만) */
.capture { width: 100%; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--rule); box-shadow: 0 1px 0 #dce3ee, 0 32px 64px -40px rgba(7, 46, 103, .45); }
.capture figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.capture figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.capture figcaption span { margin-left: auto; flex-shrink: 0; white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: var(--mist); font-size: 12px; font-weight: 600; }
.capture img { display: block; width: 100%; height: auto; }
.schematic { position: relative; width: 100%; max-width: 460px; padding: 40px 28px 28px; border-radius: var(--r); background: #fff; border: 1.5px dashed var(--rule-strong); }
.schematic ul { display: grid; gap: 10px; }
.schematic li { padding: 14px 16px; border-radius: 10px; background: var(--mist); font-weight: 600; font-size: 15px; }

/* 문의 폼 개인정보 고지 */
.privacy { margin-top: 22px; padding: 18px 20px; border-radius: 12px; background: var(--mist); font-size: 14px; color: var(--ink-soft); }
.privacy h3 { font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
.privacy dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 10px 0; }
.privacy dt { font-weight: 600; color: var(--ink); }
.privacy dd { margin: 0; }

/* 영상: 썸네일과 실제 영상 */
.video .poster, .video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: transparent; }
/* 썸네일·영상이 있으면 남색 배경을 빼서 둥근 모서리에 어두운 테두리가 비치지 않게 */
.video.has-poster { background: transparent; isolation: isolate; }
.video.has-poster .line-bg, .video.has-poster figcaption { display: none; }
.video[role="button"] { cursor: pointer; }

/* 404 */
.notfound { padding: clamp(120px, 16vw, 200px) 0; text-align: center; }
.notfound .code { font-size: 15px; font-weight: 700; color: var(--muted); }
.notfound h1 { margin-top: 10px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.25; letter-spacing: -0.04em; }
.notfound .sub { margin-top: 16px; color: var(--ink-soft); }
.notfound .actions { justify-content: center; margin-top: 32px; }

/* 모바일 보정 (2026-10-06 반응형 점검) — 위의 기본 규칙보다 뒤에 둬야 적용된다 */
@media (max-width: 900px) {
  .tab-panel { grid-template-columns: 1fr; }
  .foot-nav li { margin-bottom: 2px; }
  .foot-nav a { display: inline-block; padding: 6px 0; }
}
@media (max-width: 760px) {
  /* 2열 흐름 단계는 가운데 정렬: 번호·제목·설명이 각 칸 중앙에 */
  .flow { column-gap: 16px; }
  .flow li { padding-right: 0; text-align: center; }
  .flow li::before { margin: 0 auto 18px; }
  /* JS 전 첫 화면용 대략값(뷰포트 기준). site.js 가 컨테이너 폭에 맞게 다시 계산 */
  .js .dash { zoom: .5; }
  /* 생애주기 여정: 세로 타임라인과 같은 왼쪽 축으로 제목을 맞추고, 세부 항목은 한두 줄로 */
  .head.center:has(+ .journey) { text-align: left; margin-left: 0; }
  .journey-stages { gap: 30px; }
  .journey-stages h3 { margin-bottom: 6px; line-height: 34px; }
  .journey-stages ul { display: flex; flex-wrap: wrap; }
  .journey-stages ul li { padding: 0; }
  .journey-stages ul li + li::before { content: "·"; margin: 0 6px; color: var(--muted); }
}
@media (max-width: 560px) {
  .std-list > div { grid-template-columns: 1fr; gap: 10px; }
}
/* 핵심 화면 탭: 모바일은 한 줄 가로 스크롤(화면 끝까지 이어져 옆에 더 있음을 보여줌), 고른 탭은 가운데로 */
@media (max-width: 640px) {
  .tablist { position: relative; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: -6px calc(-1 * var(--gutter)) 22px; padding: 6px var(--gutter); }
  .tablist::-webkit-scrollbar { display: none; }
  .tablist [role="tab"] { flex: none; white-space: nowrap; scroll-snap-align: center; }
}

