/* =====================================================================
   클리닉웹 서비스 소개 — clinicweb.kr (2026-09-28, 164차)

   디자인은 brank.kr 을 따른다 (클리닉웹은 브랭크 제품군). 값은 brank.kr 의 css/style.css · css/ui2.css 에서 읽었다 :
     바탕 · 글 #0a0a0a(ui2-ink) · #f5f5f7(ui2-soft) · 선 #ececee(ui2-line) · 흐린 글 #6e6e73
     둥글기 14px(ui2-r) · 단추 999px · 최대 폭 1240px(ui2-wrap) · 좌우 32px · 절 여백 104px · 머리 68px(ui2-gnb)
     제목 clamp(38px,6vw,62px) · 절 제목 clamp(27px,3.2vw,40px) · 머리말 12px .14em 대문자
   * 핑크는 행동 자리(［서비스 신청］)에만. brank.kr 의 #e91e63 은 흰 글자와 명암비가 4.4 라 AA(4.5)에 조금 모자라
     같은 계열의 #d81b60 (흰 글자 4.9) 을 쓴다. 머리말(eyebrow)은 brank.kr 과 달리 핑크를 쓰지 않는다.
   * 바깥 요청 0 — 글꼴은 이 폴더의 Pretendard(OFL · fonts/OFL-Pretendard.txt) 뿐. 첫 화면 영상 대신 CSS 격자 무늬.
   ===================================================================== */

@font-face {
  font-family: "Pretendard Variable";
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations"),
       url("../fonts/PretendardVariable.woff2") format("woff2");
}

:root {
  --ink: #0a0a0a;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --line: #ececee;
  --white: #ffffff;
  --brand: #d81b60;
  --brand-dark: #c2185b;
  --r: 14px;
  --wrap: 1240px;
  --gnb: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--gnb); }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 8px; }

/* ── 단추 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:focus-visible { outline: 3px solid #90caf9; outline-offset: 2px; }
.btn-apply { background: var(--brand); color: var(--white); }
.btn-apply:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-line { border-color: rgba(255,255,255,.45); color: var(--white); background: transparent; }
.btn-line:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }

/* ── 머리 ── */
.gnb {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0,0,0,.86);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.gnb .wrap { height: var(--gnb); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gnb .logo img { width: 92px; }

/* ── 첫 화면 : 어두운 바탕 + 얇은 격자 (영상 대신) ── */
.hero {
  position: relative;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.78) 48%, rgba(10,10,10,.40) 100%),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  padding: 120px 0 112px;
}
.hero-in { max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.hero .eyebrow { color: rgba(255,255,255,.70); }
.hero h1 {
  font-size: clamp(34px, 6vw, 60px); font-weight: 700; line-height: 1.18; letter-spacing: -.045em;
  margin-bottom: 22px;
}
.hero p { font-size: 17px; line-height: 1.75; color: rgba(255,255,255,.78); max-width: 580px; margin-bottom: 36px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── 절 공통 ── */
.sec { padding: 104px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.soft { background: var(--soft); border-top: 0; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }

/* 고민 */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pains li {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white); font-size: 16px; line-height: 1.7; color: var(--ink-2);
}

/* 하는 일 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column;
  padding: 30px 26px 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
}
.card .tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--ink); background: var(--soft); border-radius: 999px; padding: 4px 10px;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.75; color: var(--ink-2); }

/* 숫자 */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.proof li { padding: 32px 26px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.proof b { display: block; font-size: clamp(40px, 5vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; margin-bottom: 10px; }
.proof span { font-size: 15px; color: var(--ink-2); }

/* 진행 순서 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; counter-reset: none; }
.steps li { padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.steps .no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--white); font-size: 14px; font-weight: 700;
  margin-bottom: 14px;
}
.steps .nm { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.45; }

/* 자주 묻는 질문 */
.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; font-size: 17px; font-weight: 600; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 3px solid #90caf9; outline-offset: 2px; }
.faq .ans { padding: 0 4px 24px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.faq .ans a { text-decoration: underline; text-underline-offset: 3px; }

/* 끝 띠 */
.cta {
  color: var(--white); background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  padding: 96px 0;
}
.cta h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; line-height: 1.3; letter-spacing: -.035em; margin-bottom: 32px; }

/* 바닥 */
.foot { background: #000; color: rgba(255,255,255,.66); font-size: 14px; line-height: 1.8; padding: 56px 0 48px; }
.foot .logo img { width: 92px; margin-bottom: 14px; }
.foot .tagline { color: rgba(255,255,255,.82); margin-bottom: 8px; }
.foot .prods { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 22px; }
.foot .prods a, .foot .links a, .foot .contact a { color: rgba(255,255,255,.82); text-decoration: none; }
.foot .prods a:hover, .foot .links a:hover, .foot .contact a:hover { color: var(--white); text-decoration: underline; }
.foot dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin-bottom: 22px; }
.foot dt { color: rgba(255,255,255,.5); }
.foot dd { overflow-wrap: anywhere; }
.foot .links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 18px; }
.foot .copy { color: rgba(255,255,255,.5); font-size: 13px; }

/* ── 좁은 화면 ── */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 80px 0 76px; }
  .hero p { font-size: 16px; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 32px; }
  .cta { padding: 72px 0; }
  .gnb .logo img { width: 80px; }
}
@media (max-width: 400px) {
  .hero-btns .btn { width: 100%; }
  .cta .hero-btns .btn { width: 100%; }
  .foot dl { grid-template-columns: 1fr; gap: 0; }
  .foot dt { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* =====================================================================
   165차 — 사용 설명(/guide/) 에서만 쓰는 새 클래스. 위의 규칙은 한 줄도 안 바꿨다 (소개 페이지 모양 그대로).
   ===================================================================== */

/* 차례 — JS 없이 앵커로 */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.toc a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  color: rgba(255,255,255,.88); font-size: 14px; text-decoration: none;
}
.toc a:hover { border-color: var(--white); color: var(--white); }
.toc a:focus-visible { outline: 3px solid #90caf9; outline-offset: 2px; }

/* 빵부스러기 — 첫 화면 머리말 위 한 줄 */
.crumb { font-size: 13px; color: rgba(255,255,255,.62); margin-bottom: 14px; }
.crumb a { color: rgba(255,255,255,.82); text-decoration: none; }
.crumb a:hover { color: var(--white); text-decoration: underline; }
.crumb span[aria-hidden] { margin: 0 6px; }

/* 설명 본문 */
.gd-body { max-width: 880px; }
.gd-body p { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.gd-body p + p, .gd-body p + ul, .gd-body ul + p, .gd-body table + p, .gd-body dl + p, .gd-body p + table, .gd-body p + dl { margin-top: 16px; }
.gd-list li {
  position: relative; padding: 14px 18px 14px 18px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
  font-size: 16px; line-height: 1.7; color: var(--ink-2);
}

/* 단계 표 */
.gd-steps { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.gd-steps th, .gd-steps td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.6; }
.gd-steps thead th { background: var(--soft); font-weight: 600; color: var(--ink); font-size: 14px; }
.gd-steps tbody tr:last-child td { border-bottom: 0; }
.gd-steps .n { width: 48px; font-weight: 700; color: var(--ink); }
.gd-steps .nm { width: 30%; font-weight: 600; color: var(--ink); }
.gd-tbx { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 화면 표시 셋 */
.gd-marks { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; }
.gd-marks dt, .gd-marks dd { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.gd-marks dt { font-weight: 600; color: var(--ink); background: var(--soft); }
.gd-marks dd { color: var(--ink-2); }
.gd-marks dt:last-of-type, .gd-marks dd:last-of-type { border-bottom: 0; }

.gd-next { margin-top: 16px; }

@media (max-width: 560px) {
  .gd-marks { grid-template-columns: 1fr; }
  .gd-marks dt { border-bottom: 0; padding-bottom: 4px; }
  .gd-marks dd { padding-top: 4px; }
  .gd-steps th, .gd-steps td { padding: 10px 10px; }
  .gd-steps .nm { width: auto; }
}

/* 사용 설명 끝 띠 — 제목이 아닌 한 줄 (절 제목 h2 는 절마다 하나라서) */
.cta-t { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; line-height: 1.4; letter-spacing: -.03em; margin-bottom: 24px; }
