/* ==========================================================================
   EVARCELL — Patient-facing site (B2C)
   Warm, reassuring white theme. NO CRM / grade / "acquisition" language.
   ========================================================================== */

:root {
  --navy: #10233f;
  --ink: #14213d;
  --slate: #4b5a72;
  --muted: #64748b;
  --line: #e8edf3;
  --line-2: #f0f4f9;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-warm: #f4faf9;

  --teal: #12a594;
  --teal-2: #0d8f80;
  --mint: #34c9b5;
  --sky: #2b8fd6;
  --coral: #ef7d6b;

  --grad-hero: linear-gradient(135deg, #10233f 0%, #12507a 55%, #0f8f82 100%);
  --grad-accent: linear-gradient(135deg, #12a594 0%, #2b8fd6 100%);
  --grad-warm: linear-gradient(135deg, #14b8a6 0%, #22b0d6 100%);

  --shadow-sm: 0 1px 2px rgba(20, 33, 61, .06), 0 2px 6px rgba(20, 33, 61, .05);
  --shadow-md: 0 12px 34px rgba(20, 33, 61, .09);
  --shadow-lg: 0 26px 64px rgba(16, 35, 63, .16);

  --radius: 18px;
  --radius-sm: 13px;
  --radius-lg: 26px;
  --maxw: 1160px;
  --nav-h: 74px;

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
p { margin: 0; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  /* 브랜드 톤(teal→sky) 옅은 틴트 + 불투명 흰색 베이스.
     반투명 흰색만 쓰면 스크롤 시 뒤 콘텐츠가 비쳐 글자가 읽히지 않는다. */
  background:
    linear-gradient(90deg, rgba(18,165,148,.07) 0%, rgba(43,143,214,.05) 52%, rgba(18,165,148,.07) 100%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid #dceaee;
  box-shadow: 0 1px 3px rgba(20,33,61,.05);
}
/* 아래로 스크롤하면 살짝 진해지며 경계가 또렷해진다 (components.js 가 클래스 토글) */
.nav.is-stuck {
  background:
    linear-gradient(90deg, rgba(18,165,148,.1) 0%, rgba(43,143,214,.07) 52%, rgba(18,165,148,.1) 100%),
    linear-gradient(180deg, #ffffff 0%, #f2f8fa 100%);
  border-bottom-color: #cfe2e7;
  box-shadow: 0 6px 20px rgba(20,33,61,.09);
}
/* 자식이 4개(브랜드·메뉴·언어·햄버거)라 space-between 으로는 균등 분산돼 버린다.
   브랜드에 margin-right:auto 를 주어 나머지를 오른쪽으로 묶는다. */
.nav__inner { max-width: var(--maxw); margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 4px; padding: 0 24px; }
.nav__inner > .brand { margin-right: auto; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.brand__mark { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; filter: drop-shadow(0 6px 16px rgba(18,165,148,.35)); }
.brand__name { font-size: 18px; color: var(--navy); font-weight: 600; letter-spacing: -0.01em; }
.brand__name b { font-weight: 800; color: var(--teal-2); }
.brand__name small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; color: var(--teal-2); text-transform: uppercase; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a { padding: 9px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--slate); transition: all .16s ease; }
.nav__menu a:hover { color: var(--navy); background: var(--bg-soft); }
.nav__menu a.active { color: var(--teal-2); background: rgba(18,165,148,.1); }
.nav__cta { padding: 10px 20px !important; border-radius: 999px; color: #fff !important; background: var(--grad-accent); font-weight: 700 !important; box-shadow: 0 8px 20px rgba(18,165,148,.32); }
.nav__cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- 언어 스위처 (KO / EN / ZH) ---------- */
.langsw {
  display: inline-flex; align-items: center; gap: 2px; margin-left: 10px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft);
}
.langsw__btn {
  appearance: none; border: 0; cursor: pointer; padding: 6px 11px; border-radius: 999px;
  font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--slate); background: transparent; transition: color .16s ease, background .16s ease;
  white-space: nowrap; line-height: 1.2;
}
.langsw__btn:hover { color: var(--navy); background: #fff; }
.langsw__btn.active { color: #fff; background: var(--grad-accent); box-shadow: 0 4px 12px rgba(18,165,148,.3); }
.langsw__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(18,165,148,.32); }
/* 모바일에서도 언어 스위처는 드롭다운 안이 아니라 햄버거 버튼 왼쪽에 그대로 노출한다.
   대신 라벨을 짧게(KO / EN / 中) 바꿔 로고·버튼과 한 줄에 들어가게 한다.
   짧은 라벨은 components.js 가 넣어 주는 data-short 속성에서 가져온다. */
@media (max-width: 720px) {
  .langsw { margin-left: 0; padding: 2px; gap: 0; flex-shrink: 0; }
  .langsw__btn { font-size: 0; padding: 7px 9px; }
  .langsw__btn::before { content: attr(data-short); font-size: 12.5px; font-weight: 700; }
}
@media (max-width: 560px) {
  .nav__inner { padding: 0 14px; }
  .brand__name { font-size: 16px; }
  .brand__name small { display: none; }
  .brand__mark { width: 32px; height: 32px; flex: 0 0 32px; }
}

/* 중국어·영어는 자간·줄바꿈 규칙이 달라 제목 폭을 언어별로 조정한다 */
html[data-lang="en"] .hero h1 { max-width: 24ch; }
html[data-lang="zh"] .hero h1 { max-width: 17ch; letter-spacing: 0; }
html[data-lang="zh"] h1, html[data-lang="zh"] h2, html[data-lang="zh"] h3, html[data-lang="zh"] h4 { letter-spacing: 0; }
html[data-lang="zh"] body { word-break: normal; line-break: strict; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); color: #fff; padding: 104px 0 116px; }
.hero::before {
  content: ""; position: absolute; inset: -12px;
  background-image: url("https://images.unsplash.com/photo-1655720828018-edd2daec9349?auto=format&fit=crop&w=1600&q=80");
  background-size: cover; background-position: center; filter: blur(2px) saturate(1.1); opacity: .42; transform: scale(1.03); z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(16,35,63,.84) 0%, rgba(18,80,122,.55) 52%, rgba(15,143,130,.32) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); color: #d9ebff; margin-bottom: 22px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; color: #fff; max-width: 18ch; }
.hero__lead { margin-top: 22px; font-size: clamp(16px, 2vw, 20px); color: #cfe0f2; max-width: 54ch; }
.hero__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { margin-top: 30px; display: flex; gap: 22px; flex-wrap: wrap; color: #bcd3ea; font-size: 14px; }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Partner logos (히어로 상단 · 푸터) ---------- */
/* 원본 로고는 어두운 글자 + 투명 배경이라 네이비 히어로/푸터 위에서는 읽히지 않는다.
   색·비율은 변형하지 않고(상표 사용 원칙) 흰 칩으로 감싸 원본 그대로 노출한다. */
.partner-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.partner-logos__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.partner-logos__tag { flex: 0 0 auto; white-space: nowrap; color: #bff0e6; font-weight: 700; font-size: 11.5px;
  border: 1px solid rgba(52,201,181,.45); border-radius: 999px; padding: 4px 11px; }
.partner-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 8px 13px;
  box-shadow: 0 3px 12px rgba(6,20,38,.22); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.partner-logo:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(6,20,38,.3); }
/* width 속성은 CLS 방지용 힌트일 뿐 — 실제 크기는 높이 기준으로 맞춘다. */
.partner-logo img { display: block; height: 26px; width: auto; }
.hero__partners { margin-bottom: 20px; }
/* 푸터 브랜드 칼럼은 좁아서 태그+로고 2개가 한 줄에 안 들어간다.
   태그를 독립 줄로 올려 두 로고가 나란히 붙게 한다. */
.footer__partners { margin-top: 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 720px) {
  .partner-logo { padding: 7px 11px; border-radius: 10px; }
  .partner-logo img { height: 21px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 15.5px; cursor: pointer; border: 1px solid transparent; transition: all .18s ease; }
.btn--primary { background: var(--grad-accent); color: #fff; box-shadow: 0 12px 30px rgba(18,165,148,.42); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(18,165,148,.52); }
.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--outline { background: #fff; color: var(--teal-2); border-color: var(--line); }
.btn--outline:hover { border-color: var(--teal); }
.btn--white { background: #fff; color: var(--teal-2); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section--navy { background: var(--grad-hero); color: #fff; position: relative; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-2); margin-bottom: 14px; }
.section h2 { font-size: clamp(27px, 3.5vw, 40px); font-weight: 800; }
.section__sub { margin-top: 16px; font-size: 17.5px; color: var(--slate); }
.section--navy .section__sub { color: #cfe0f2; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); transition: all .2s ease; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__icon { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; font-size: 25px; margin-bottom: 18px; background: rgba(18,165,148,.1); color: var(--teal-2); }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 15px; }

/* Treatment card with image */
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .2s ease; }
.tcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.tcard__img { height: 190px; background-size: cover; background-position: center; }
.tcard__body { padding: 26px 28px 30px; }
.tcard__body h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.tcard__body p { color: var(--slate); font-size: 15px; }
.tcard__tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; background: rgba(18,165,148,.1); color: var(--teal-2); margin-bottom: 12px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { text-align: center; position: relative; }
.step__no { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; background: var(--grad-accent); box-shadow: 0 10px 24px rgba(18,165,148,.35); }
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 14px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat__num { font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: var(--teal-2); letter-spacing: -0.03em; }
.section--navy .stat__num { color: #5ee0cd; }
.stat__label { margin-top: 6px; font-size: 14.5px; color: var(--slate); font-weight: 600; }
.section--navy .stat__label { color: #cfe0f2; }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.quote__stars { color: #f5b301; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.quote p { color: var(--ink); font-size: 15.5px; font-style: italic; }
.quote__who { margin-top: 18px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; background: #fff; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 24px; font-size: 16.5px; font-weight: 700; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq__q::after { content: "+"; font-size: 22px; color: var(--teal); font-weight: 400; transition: transform .2s; }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq__a p { padding: 0 24px 22px; color: var(--slate); font-size: 15px; }
.faq__item.open .faq__a { max-height: 320px; }

/* ---------- Callout / CTA ---------- */
.cta-band { background: var(--grad-hero); color: #fff; border-radius: var(--radius-lg); padding: 60px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 260px at 85% 15%, rgba(18,165,148,.4), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(25px, 3.4vw, 36px); }
.cta-band p { color: #cfe0f2; margin-top: 14px; font-size: 17.5px; }
.cta-band .btn { margin-top: 30px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--grad-hero); color: #fff; padding: 82px 0 72px; }
.page-hero::before { content: ""; position: absolute; inset: -12px; background-image: url("https://images.unsplash.com/photo-1628595351029-c2bf17511435?auto=format&fit=crop&w=1600&q=80"); background-size: cover; background-position: center; filter: blur(2px) saturate(1.1); opacity: .4; transform: scale(1.03); z-index: 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, rgba(16,35,63,.86) 0%, rgba(18,80,122,.58) 52%, rgba(15,143,130,.34) 100%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(29px, 4.5vw, 46px); font-weight: 800; color: #fff; }
.page-hero p { margin-top: 16px; color: #cfe0f2; font-size: 18px; max-width: 56ch; }
.breadcrumb { font-size: 13.5px; color: #9fc0e0; margin-bottom: 16px; font-weight: 600; }
.breadcrumb a:hover { color: #fff; }
.page-hero--treatments { --none: 0; }
.page-hero--treatments::before { background-image: url("https://images.unsplash.com/photo-1655720828018-edd2daec9349?auto=format&fit=crop&w=1600&q=80"); }
.page-hero--process::before { background-image: url("https://images.unsplash.com/photo-1614308457932-e16d85c5d053?auto=format&fit=crop&w=1600&q=80"); }
.page-hero--about::before { background-image: url("https://images.unsplash.com/photo-1554475900-0a0350e3fc7b?auto=format&fit=crop&w=1600&q=80"); }
.page-hero--contact::before { background-image: url("https://images.unsplash.com/photo-1628595351029-c2bf17511435?auto=format&fit=crop&w=1600&q=80"); }

/* ---------- Callout ---------- */
.callout { border-left: 4px solid var(--teal); background: var(--bg-warm); border-radius: 0 14px 14px 0; padding: 24px 28px; }
.callout strong { color: var(--navy); }

/* ---------- Form ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,165,148,.12); }
.field textarea { min-height: 120px; resize: vertical; }
.field--check { display: flex; align-items: flex-start; gap: 10px; }
.field--check input { width: auto; margin-top: 4px; }
.field--check label { font-weight: 500; color: var(--slate); font-size: 13.5px; }

/* ---------- AI Talk widget ---------- */
.aitalk { position: fixed; right: 22px; bottom: 22px; z-index: 900; }
.aitalk__btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; background: var(--grad-accent); color: #fff; font-weight: 700; font-size: 15px; font-family: inherit; box-shadow: 0 14px 34px rgba(18,165,148,.45); transition: transform .18s; }
.aitalk__btn:hover { transform: translateY(-2px); }
.aitalk__panel { position: fixed; right: 22px; bottom: 86px; width: min(92vw, 360px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; display: none; z-index: 901; }
.aitalk__panel.open { display: block; }
.aitalk__head { background: var(--grad-hero); color: #fff; padding: 18px 20px; }
.aitalk__head h4 { color: #fff; font-size: 16px; margin: 0; }
.aitalk__head p { color: #cfe0f2; font-size: 12.5px; margin-top: 3px; }
.aitalk__body { padding: 18px 18px 8px; max-height: 320px; overflow-y: auto; background: var(--bg-soft); }
.aitalk__msg { margin-bottom: 12px; display: flex; }
.aitalk__msg .b { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.aitalk__msg.bot .b { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.aitalk__msg.me { justify-content: flex-end; }
.aitalk__msg.me .b { background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.aitalk__quick { padding: 6px 14px 14px; display: flex; flex-wrap: wrap; gap: 7px; background: var(--bg-soft); }
.aitalk__quick button { font-size: 12.5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--teal-2); cursor: pointer; font-family: inherit; font-weight: 600; }
.aitalk__quick button:hover { background: rgba(18,165,148,.08); }
.aitalk__input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
/* min-width:0 필수 — flex 아이템 기본값 min-width:auto 때문에 input 이
   고유 너비 이하로 줄지 않아 모바일에서 전송 버튼을 패널 밖으로 밀어낸다. */
.aitalk__input input { flex: 1 1 auto; min-width: 0; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-family: inherit; }
.aitalk__input input:focus { outline: none; border-color: var(--teal); }
.aitalk__input button { flex: 0 0 auto; white-space: nowrap; min-height: 42px; border: 0; border-radius: 999px; padding: 0 18px; background: var(--grad-accent); color: #fff; font-weight: 700; font-family: inherit; font-size: 14px; cursor: pointer; }
/* 면책 문구 — 규칙이 없어 body(16px)를 상속하고 있었다. 2pt 축소해 14px 고정. */
.aitalk__disc { font-size: 14px; line-height: 1.55; color: var(--muted); padding: 0 14px 12px; background: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #cbd5e1; padding: 66px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__name b { color: #5ee0cd; }
.footer__brand .brand__name small { color: #7fdccb; }
.footer__brand p { margin-top: 16px; color: #c2cfdd; font-size: 14px; max-width: 34ch; }
.footer__col h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col a { display: block; color: #c2cfdd; font-size: 14.5px; padding: 6px 0; transition: color .15s; }
.footer__col a:hover { color: var(--mint); }
/* 함께 운영하는 사이트 링크 줄 */
/* 오른쪽 정렬 — 본문 링크 목록과 구분되는 부가 정보 줄이므로 끝으로 몰아 둔다.
   좁은 화면에서 줄바꿈되면 각 줄도 오른쪽에 맞춰진다. */
.footer__sites { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px 16px; }
.footer__sites-tag { color: var(--mint); font-weight: 700; font-size: 11.5px;
  border: 1px solid rgba(52,201,181,.42); border-radius: 999px; padding: 3px 11px; }
.footer__sites a { display: inline-block; font-size: 13.5px; font-weight: 600; color: #d6e2ee;
  border-bottom: 1px solid rgba(214,226,238,.34); padding-bottom: 1px; transition: color .16s, border-color .16s; }
.footer__sites a:hover { color: #fff; border-bottom-color: var(--mint); }
.footer__sites a::after { content: " ↗"; font-size: 11px; color: var(--mint); }
.footer__bottom { padding-top: 28px; font-size: 12.5px; color: #97a7ba; line-height: 1.8; }
.footer__disc { color: #8b9cb0; font-size: 12px; margin-top: 10px; max-width: 90ch; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.lead { font-size: 18px; color: var(--slate); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  /* 드롭다운 패널 배경도 내비와 같은 톤으로 통일한다 */
  .nav__menu { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%); border-bottom: 1px solid #dceaee; padding: 10px 16px 18px; box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .25s ease; }
  .nav__menu.open { transform: translateY(0); }
  .nav__burger { display: block; }
  .grid--2, .grid--3, .grid--4, .steps, .stats { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 76px 0 84px; }
  .cta-band { padding: 40px 24px; }
  .form { padding: 26px; }
}

/* ---- 모바일 AI 상담 위젯 ---- */
@media (max-width: 480px) {
  .aitalk { right: 12px; bottom: 14px; }
  .aitalk__btn { padding: 12px 18px; font-size: 14px; }
  /* 좌우 12px 여백을 뺀 전체 폭 사용 — 92vw + right:22px 조합은 폭이 넘쳐
     input/전송 버튼이 패널 밖(overflow:hidden)으로 잘렸다. */
  .aitalk__panel { right: 12px; left: 12px; bottom: 74px; width: auto; }
  .aitalk__body { max-height: 46vh; }
  .aitalk__input { gap: 6px; padding: 10px 12px; }
  /* font-size 16px 필수 — iOS Safari 는 16px 미만 input 에 포커스하면 화면을
     자동 확대(zoom)해서 패널 오른쪽(전송 버튼)이 화면 밖으로 밀려난다. */
  .aitalk__input input { padding: 10px 12px; font-size: 16px; }
  .aitalk__input button { padding: 0 14px; font-size: 13.5px; }
}

/* ==========================================================================
   PREMIUM THEME LAYER — warm gradients, depth & rich hover interactions
   ========================================================================== */
:root { --ease: cubic-bezier(.22, 1, .36, .58); --ring: 0 0 0 3px rgba(18,165,148,.18); }
body {
  background:
    radial-gradient(760px 500px at 90% -8%, rgba(18,165,148,.06), transparent 60%),
    radial-gradient(700px 480px at -6% 4%, rgba(43,143,214,.05), transparent 60%),
    var(--bg);
}
.grad-text {
  background: linear-gradient(100deg, #12a594 0%, #2b8fd6 60%, #10233f 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Brand ---- */
.brand { transition: transform .25s var(--ease); }
.brand:hover { transform: translateY(-1px); }
.brand:hover .brand__mark { box-shadow: 0 8px 22px rgba(18,165,148,.55); transform: rotate(-4deg) scale(1.05); }
.brand__mark { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }

/* ---- Nav underline + CTA shine ---- */
.nav__menu a:not(.nav__cta) { position: relative; }
.nav__menu a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav__menu a:not(.nav__cta):hover::after, .nav__menu a.active:not(.nav__cta)::after { transform: scaleX(1); }
.nav__cta { position: relative; overflow: hidden; transition: transform .2s var(--ease), filter .2s ease, box-shadow .3s ease; }
.nav__cta::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg); transition: left .55s var(--ease);
}
.nav__cta:hover::after { left: 130%; }
.nav__cta:hover { box-shadow: 0 12px 28px rgba(18,165,148,.5); }

/* ---- Buttons: shine sweep ---- */
.btn { position: relative; overflow: hidden; will-change: transform; }
.btn::before {
  content: ""; position: absolute; top: 0; left: -85%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
  transition: left .6s var(--ease); pointer-events: none;
}
.btn:hover::before { left: 135%; }
.btn:active { transform: translateY(0) scale(.985); }
.btn--outline:hover { box-shadow: 0 10px 26px rgba(18,165,148,.2); transform: translateY(-2px); }
.btn--white:hover { transform: translateY(-2px); }

/* ---- Cards: gradient top bar + glow lift + icon pop ---- */
.card { position: relative; overflow: hidden; transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease); }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon { transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease); }
.card:hover .card__icon { transform: translateY(-2px) scale(1.08); background: var(--grad-accent); color: #fff; box-shadow: 0 10px 24px rgba(18,165,148,.42); }

/* ---- Treatment cards: image zoom + tag pop ---- */
.tcard { position: relative; }
.tcard__img { transition: transform .55s var(--ease); }
.tcard:hover .tcard__img { transform: scale(1.07); }
.tcard::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); z-index: 2; }
.tcard:hover::after { transform: scaleX(1); }
.tcard__tag { transition: all .25s var(--ease); }
.tcard:hover .tcard__tag { background: var(--grad-accent); color: #fff; }

/* ---- Steps ---- */
.step { transition: transform .3s var(--ease); }
.step:hover { transform: translateY(-4px); }
.step:hover .step__no { transform: rotate(-5deg) scale(1.1); box-shadow: 0 14px 30px rgba(18,165,148,.5); }
.step__no { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }

/* ---- Stats ---- */
.stat { transition: transform .3s var(--ease); }
.stat:hover { transform: translateY(-4px); }
.stat:hover .stat__num { text-shadow: 0 8px 26px rgba(18,165,148,.4); }
.stat__num { transition: text-shadow .3s var(--ease); }

/* ---- Testimonials ---- */
.quote { position: relative; overflow: hidden; transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease); }
.quote::before { content: "\201C"; position: absolute; top: -18px; right: 14px; font-size: 90px; color: rgba(18,165,148,.08); font-family: Georgia, serif; line-height: 1; transition: color .3s ease; }
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.quote:hover::before { color: rgba(18,165,148,.16); }

/* ---- FAQ ---- */
.faq__item { transition: box-shadow .25s ease, border-color .25s ease; }
.faq__item:hover { box-shadow: var(--shadow-sm); border-color: #cfe6e2; }
.faq__q:hover { color: var(--teal-2); }

/* ---- Callout ---- */
.callout { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.callout:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }

/* ---- CTA band ---- */
.cta-band .btn:hover { transform: translateY(-3px); }

/* ---- AI Talk widget ---- */
.aitalk__btn { position: relative; overflow: hidden; }
.aitalk__btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(18,165,148,.5); animation: aiPulse 2.6s var(--ease) infinite; }
@keyframes aiPulse { 0% { box-shadow: 0 0 0 0 rgba(18,165,148,.45); } 70% { box-shadow: 0 0 0 14px rgba(18,165,148,0); } 100% { box-shadow: 0 0 0 0 rgba(18,165,148,0); } }
.aitalk__btn:hover { transform: translateY(-2px) scale(1.03); }
.aitalk__quick button { transition: all .22s var(--ease); }
.aitalk__quick button:hover { background: var(--grad-accent); color: #fff; border-color: transparent; transform: translateY(-1px); }

/* ---- Footer links slide ---- */
.footer__col a { position: relative; transition: color .2s ease, padding-left .25s var(--ease); }
.footer__col a:hover { padding-left: 8px; }
.footer__col a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1.5px; background: var(--mint); transform: translateY(-50%); transition: width .25s var(--ease); }
.footer__col a:hover::before { width: 5px; }

/* ---- Hero image gentle zoom on hover ---- */
.page-hero::before, .hero::before { transition: transform 1.2s var(--ease), opacity .6s ease; }
.page-hero:hover::before, .hero:hover::before { transform: scale(1.07); }

/* ---- Form fields ---- */
.field input, .field select, .field textarea { transition: border-color .18s ease, box-shadow .18s ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfe6e2; }

/* ---- Focus visibility ---- */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .aitalk__btn::before { animation: none; }
}

/* AI 상담 — 타이핑 인디케이터 & 입력 비활성 상태 */
.aitalk__typing .b { padding: 12px 16px; }
.aitalk__typing .dots { display: inline-flex; gap: 5px; align-items: center; }
.aitalk__typing .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); opacity: .35; animation: aiDot 1.2s infinite; }
.aitalk__typing .dots i:nth-child(2) { animation-delay: .18s; }
.aitalk__typing .dots i:nth-child(3) { animation-delay: .36s; }
@keyframes aiDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.aitalk__input input:disabled { background: #f6f8fa; color: var(--muted); }
.aitalk__input button:disabled { cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .aitalk__typing .dots i { animation: none; opacity: .6; } }
