/* Cell365 Well — international patient site.
   Design: 아워마케팅 기본(흰 바탕 + 블루 #3182F6 + Pretendard). 병원 브랜드 색은 고객 카드에 「확인 필요」라 기본값.
   Motion (35_capabilities/web-motion): NE-26 첫 화면 글판(가벼운 판) · RL-12 제목 한 단어 강조 · GW-03 스크롤 진행 → 배경 단계.
   등장 체계는 하나(.rv). prefers-reduced-motion 이면 모두 끝 상태. */
:root {
  --bg: #ffffff;
  --bg-stage-1: #f4f8ff;
  --bg-stage-2: #f7f8fa;
  --ink: #191f28;
  --ink-2: #333d4b;
  --muted: #6b7684;
  --line: #e5e8eb;
  --blue: #3182f6;
  --blue-deep: #1b64da;
  --blue-soft: #e8f3ff;
  --card: #ffffff;
  --radius: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word;
  transition: background-color .5s var(--ease);
}
body[data-stage="1"] { background: var(--bg-stage-1); }
body[data-stage="2"] { background: var(--bg-stage-2); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .btn { color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); }
@media (max-width: 520px) { .brand small { display: none; } }
@media (max-width: 880px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 20px 16px; gap: 0; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .site-head.open .nav { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; font-size: 16px; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--blue-deep); }
.btn.ghost { background: var(--blue-soft); color: var(--blue-deep); }
.btn.ghost:hover { background: #d6e8ff; }

/* NE-26 hero overlay (light) */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 72px 0 64px; }
.hero::before { content: ""; position: absolute; width: min(760px, 120vw); aspect-ratio: 1; left: 50%; top: 46%; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(49,130,246,.20), rgba(49,130,246,.08) 55%, rgba(49,130,246,0) 72%); pointer-events: none; }
.hero-inner { position: relative; max-width: 1000px; padding: 0 20px; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.hero.after .hero-inner { transform: translateY(-36px); opacity: .25; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--blue-deep); background: var(--blue-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 32px; }
.hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 22px; font-weight: 800; }
.hero p.lead { max-width: 640px; margin: 0 auto 40px; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* RL-12 title: gradient ink + one emphasised word */
.title { background: linear-gradient(180deg, #191f28 0%, #333d4b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue); -webkit-text-fill-color: var(--blue); line-height: 1; font-size: 1.08em; letter-spacing: -.01em; }

/* sections */
section.block { padding: 88px 0; }
section.block.tight { padding: 56px 0; }
.kicker { font-size: 14px; font-weight: 700; color: var(--blue-deep); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.18; letter-spacing: -.025em; margin: 0 0 18px; font-weight: 800; }
h3 { font-size: 21px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.01em; }
.intro { max-width: 720px; color: var(--ink-2); margin: 0 0 40px; }
.grid { display: grid; gap: 20px; }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 880px) { .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { margin: 0; color: var(--ink-2); }
.card .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.note { border-left: 4px solid var(--blue); background: var(--blue-soft); padding: 18px 20px; border-radius: 0 12px 12px 0; color: var(--ink-2); }
.note strong { color: var(--ink); }
ul.clean { margin: 0; padding-left: 20px; }
ul.clean li { margin: 6px 0; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-weight: 800; color: var(--blue); font-size: 18px; }
.steps { padding: 0; margin: 0; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); }

/* doctors */
.doc { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: start; }
.doc img { width: 160px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: #f2f4f6; }
.doc .board { color: var(--blue-deep); font-weight: 700; font-size: 15px; margin: 0 0 8px; }
.doc .small { color: var(--muted); font-size: 14px; margin-top: 8px; }
@media (max-width: 560px) { .doc { grid-template-columns: 1fr; } .doc img { width: 140px; } }

/* table */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f9fafb; font-size: 13px; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--blue); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin: 12px 0 0; }

/* page head for subpages */
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 800; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* contact band */
.band { background: var(--ink); color: #fff; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #c9cdd2; margin: 0; }
.band .ctas { display: flex; flex-direction: column; gap: 12px; }
.band .btn.ghost { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 880px) { .band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 64px; font-size: 14px; color: var(--muted); background: #fff; }
.site-foot .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-foot h4 { color: var(--ink); font-size: 14px; margin: 0 0 10px; }
.site-foot a { color: var(--muted); }
.site-foot p { margin: 4px 0; }
@media (max-width: 880px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* reveal system (single) */
/* visible by default; site.js adds .rv-wait only below the fold and only once frames are painting */
.rv-wait { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv-wait.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv-wait { opacity: 1; transform: none; transition: none; }
  .hero.after .hero-inner { transform: none; opacity: 1; }
  .hero-inner, body { transition: none; }
}
