/* BK labs — 셰이드 가이드 모티프. 진한 청록(진료실) + 차가운 흰색(세라믹) + 상아 셰이드 탭 */
:root {
  --scrub: #123c44;      /* 진료복 청록: 히어로·헤더 */
  --scrub-deep: #0c2a31;
  --ceramic: #f5f8f7;    /* 차가운 흰색 바탕 */
  --paper: #ffffff;
  --ink: #14232b;
  --muted: #55666e;
  --line: #d9e2e1;
  --mint: #7fe3cb;       /* 버튼·포커스 */
  --ivory: #efe3c6;      /* 셰이드 탭 */
  --warn: #b5541f;
  --radius-s: 6px;
  --radius-m: 14px;
  --font: "Plus Jakarta Sans", "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="ja"] { --font: "Plus Jakarta Sans", "Noto Sans JP", system-ui, sans-serif; }
html[lang="zh-Hans"] { --font: "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif; }
html[lang="ko"] { --font: "Pretendard Variable", Pretendard, "Plus Jakarta Sans", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--ceramic); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="ko"] body { word-break: keep-all; }
html[lang="ja"] body, html[lang="zh-Hans"] body { line-break: strict; }
body, h1, h2, h3, p, li, td, label, summary { overflow-wrap: anywhere; }
select { max-width: 100%; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(720px, 100% - 32px); }

/* 헤더 */
.site-header { background: var(--scrub-deep); color: #e9f3f1; position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { text-decoration: none; font-weight: 800; font-size: 1.15rem; display: inline-flex; align-items: center; gap: 8px; letter-spacing: -0.02em; }
.logo { display: inline-grid; place-items: center; width: 30px; height: 34px; border-radius: 6px 6px 10px 10px; background: var(--ivory); color: var(--scrub-deep); font-size: .78rem; font-weight: 800; }
.nav { display: flex; gap: 18px; margin-left: auto; font-size: .95rem; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang { position: relative; font-size: .9rem; }
.lang summary { cursor: pointer; list-style: none; padding: 6px 12px; border: 1px solid #2e5a62; border-radius: 999px; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--paper); color: var(--ink); border-radius: var(--radius-s); box-shadow: 0 12px 32px rgba(12, 42, 49, .25); min-width: 150px; }
.lang li a { display: block; padding: 8px 12px; text-decoration: none; border-radius: 4px; }
.lang li a:hover, .lang li a[aria-current] { background: var(--ceramic); font-weight: 700; }
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; gap: 8px 14px; padding: 10px 0; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 16px; padding-bottom: 4px; font-size: .9rem; white-space: nowrap; }
  .lang { margin-left: auto; }
}

/* 히어로 */
.hero { background: var(--scrub); color: #eef6f4; padding: clamp(56px, 10vw, 112px) 0 0; position: relative; }
.hero.small, .app-hero { padding-bottom: clamp(40px, 6vw, 64px); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40em; color: #c9dfdb; }
.eyebrow { font-weight: 600; color: var(--mint); margin-bottom: 1rem; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.page-home .hero h1 { max-width: 14em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-home .ctas { margin-bottom: clamp(48px, 8vw, 88px); }

/* 셰이드 탭 — 이 사이트의 한 가지 강조 요소 */
.shade-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(4px, 1vw, 10px); width: min(1120px, 100% - 32px); margin-inline: auto; align-items: end; }
.shade-strip i { display: block; height: clamp(44px, 8vw, 88px); background: var(--c); border-radius: 10px 10px 0 0; transform-origin: bottom; animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.shade-strip i:nth-child(odd) { height: clamp(36px, 6.5vw, 72px); }
.shade-strip i:nth-child(1) { animation-delay: .00s } .shade-strip i:nth-child(2) { animation-delay: .04s } .shade-strip i:nth-child(3) { animation-delay: .08s }
.shade-strip i:nth-child(4) { animation-delay: .12s } .shade-strip i:nth-child(5) { animation-delay: .16s } .shade-strip i:nth-child(6) { animation-delay: .20s }
.shade-strip i:nth-child(7) { animation-delay: .24s } .shade-strip i:nth-child(8) { animation-delay: .28s } .shade-strip i:nth-child(9) { animation-delay: .32s }
.shade-strip i:nth-child(10) { animation-delay: .36s }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn.primary { background: var(--mint); color: var(--scrub-deep); }
.btn.primary:hover { background: #a3eedc; }
.btn.ghost { border-color: currentColor; color: inherit; background: transparent; }
.section .btn.ghost { color: var(--scrub); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* 섹션 */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.section.band { background: var(--ivory); }
.section.band p { max-width: 42em; }
.sub { color: var(--muted); max-width: 42em; }

/* 앱 목록: 셰이드 탭처럼 줄지어 */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 28px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; }
.app-card { text-decoration: none; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; transition: border-color .15s; }
.app-card:hover { border-color: var(--scrub); }
.app-card h3 { margin: 2px 0 4px; }
.app-card p { grid-column: 2; margin: 0; color: var(--muted); font-size: .96rem; }
.app-icon { grid-row: span 2; width: 44px; height: 52px; border-radius: 8px 8px 14px 14px; background: var(--app, var(--ivory)); }
.app-interpreter { --app: #7fb9e3; } .app-smile-design { --app: #efe3c6; } .app-aesthetic-guide { --app: #e8b4b8; }
.app-wearable-detector { --app: #9fd8a6; } .app-clinic-staff { --app: #c7b8e8; }
.app-hero { border-bottom: 10px solid var(--app, var(--ivory)); }

.why { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 24px; }
.why-item { border-top: 3px solid var(--scrub); padding-top: 14px; }
.why-item p { color: var(--muted); margin: 0; }
.soon { margin: 0; padding-left: 1.2em; color: var(--muted); columns: 2 320px; column-gap: 40px; }
.soon li { margin-bottom: .6em; break-inside: avoid; }

/* 앱 페이지 */
.ps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.problem p { font-size: 1.15rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 18px; margin: 0; }
.solution p { font-size: 1.15rem; font-weight: 600; border-left: 3px solid var(--scrub); padding-left: 18px; margin: 0; }
.two { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.checks, .dots { margin: 0; padding: 0; list-style: none; }
.checks li, .dots li { padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px; border-left: 3px solid var(--scrub); border-bottom: 3px solid var(--scrub); transform: rotate(-45deg); }
.dots li::before { content: ""; position: absolute; left: 6px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--app, var(--ivory)); border: 2px solid var(--scrub); }
.screens { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.screens img { flex: 0 0 auto; width: min(240px, 62vw); aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 18px; border: 1px solid var(--line); scroll-snap-align: start; background: var(--paper); }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-bottom: 14px; }
.plan h3 { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.per { color: var(--muted); }
.krw { flex-basis: 100%; color: var(--muted); font-size: .85rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--ivory); color: var(--scrub-deep); margin-bottom: 10px; }
.notice { background: #fff6ec; border: 1px solid #f0d6bb; border-radius: var(--radius-m); padding: 22px 24px; }
.notice h2 { font-size: 1.1rem; color: var(--warn); }
.notice p { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.fine { font-size: .86rem; color: var(--muted); }
.hero .fine { color: #a9c6c1; }

/* 가격표 */
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius-m); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { background: var(--scrub); color: #eef6f4; font-weight: 700; }
.price-table .price { font-size: 1.15rem; }
.price-table td:first-child a { font-weight: 700; text-decoration: none; }
.price-table td:first-child a:hover { text-decoration: underline; }
@media (max-width: 560px) { .price-table th:nth-child(2), .price-table td:nth-child(2) { display: none; } }

/* 폼 */
.inquiry { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(18px, 4vw, 32px); display: grid; gap: 14px; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.inquiry label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.inquiry input, .inquiry select, .inquiry textarea { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #b9c7c6; border-radius: var(--radius-s); background: var(--paper); color: var(--ink); width: 100%; }
.inquiry .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry button { justify-self: start; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 600; }
.form-status.ok { color: #18794e; }
.form-status.err { color: #b42318; }

/* 본문 글 */
.prose p { max-width: 38em; }
.prose h2 { margin-top: 1.6em; }

/* 푸터 */
.site-footer { background: var(--scrub-deep); color: #c3d6d3; padding: 48px 0 40px; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer p { margin: 6px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a, .site-footer .fine a { color: #e9f3f1; }
.site-footer .fine { color: #93aeaa; }
