/* =========================================================
   LABS OET CENTER — Design System
   컬러 · 타이포 · 링크 등 브랜드 값은 :root 변수와
   /assets/js/main.js 의 CONFIG 한 곳에서만 관리합니다.
   ========================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Color */
  --mint:        #A8DDCB;   /* 메인 액센트 */
  --mint-deep:   #6FBFA5;   /* 호버, 강조 */
  --lilac:       #B5AFD6;   /* 보조 액센트 (연보라) */
  --lilac-deep:  #7A72A8;   /* 서브 헤딩, 아이콘 */
  --ink:         #2F3548;   /* 본문 텍스트 */
  --ink-soft:    #6B7186;   /* 보조 텍스트 */
  --paper:       #FFFFFF;   /* 기본 배경 */
  --paper-warm:  #F1EEF9;   /* 섹션 구분 배경 (연보라 워시) */
  --lilac-wash:  #F4F1FB;   /* 은은한 연보라 면 */
  --mint-wash:   #ECF6F1;   /* 은은한 민트 면 */
  --line:        #E6E3F0;   /* 얇은 보더 (연보라 기운) */

  /* Radius */
  --radius:      14px;
  --radius-sm:   10px;
  --radius-pill: 999px;

  /* Typography */
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
          system-ui, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo",
          "Malgun Gothic", sans-serif;

  /* Spacing rhythm */
  --section-y:   96px;    /* 데스크톱 섹션 세로 여백 */
  --container:   1120px;  /* 콘텐츠 최대 폭 */

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 17px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 한글: 단어(어절) 중간에서 줄이 끊기지 않게 → 단정한 줄바꿈 */
  word-break: keep-all;
  line-break: strict;
}

/* 제목·리드는 줄 길이를 자동으로 균형 있게 배분 */
h1, h2, h3, .section-lead, .hero__lead { text-wrap: balance; }
p { text-wrap: pretty; }

/* PC에서만 나타나는 의도적 줄바꿈 (모바일에선 자연 줄바꿈) */
.br-pc { display: none; }
@media (min-width: 721px) { .br-pc { display: inline; } }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--ink);
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

/* 키보드 포커스 표시 (접근성) */
:focus-visible {
  outline: 3px solid var(--lilac-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-y) 0; }
.section--warm  { background: var(--paper-warm); }
.section--lilac { background: var(--lilac-wash); }
.section--mint  { background: var(--mint-wash); }
.section--tight { padding: 72px 0; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac-deep);
  background: rgba(122, 114, 168, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(26px, 4.2vw, 38px);
  margin-bottom: 20px;
}

.section-lead {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--ink-soft);
  max-width: 40em;
}

.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- 4. Buttons / CTA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--mint);
  color: #17352C;
}
.btn--primary:hover { background: var(--mint-deep); color: #0E241D; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--lilac); background: #fff; }

.btn--lg { padding: 17px 34px; font-size: 17px; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark b { color: var(--lilac-deep); font-weight: 700; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { padding: 10px 20px; font-size: 14px; }

/* 모바일 가로 메뉴바 — 데스크톱에서는 숨김 (모바일 미디어쿼리에서 표시) */
.mobile-nav { display: none; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 11vw, 120px) 0 clamp(60px, 9vw, 100px);
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(181,175,214,0.42), transparent 60%),
    radial-gradient(95% 80% at -5% 0%, rgba(168,221,203,0.38), transparent 58%),
    var(--lilac-wash);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
}
.hero__copy { max-width: 620px; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 26px 60px rgba(122, 114, 168, 0.22);
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__copy { max-width: 640px; }
  .hero__media { max-width: 380px; }
  .hero__lead { max-width: none; }
}
.hero h1 {
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.24;
  margin-bottom: 26px;
}
.hero__lead {
  font-size: clamp(17px, 2.6vw, 21px);
  color: var(--ink-soft);
  margin-bottom: 38px;
  max-width: 34em;
}
.hero .btn-row { margin-bottom: 14px; }
.hero__note {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- 7. Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  background: linear-gradient(160deg, #FBFAFE 0%, #F6F3FC 100%);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.card--link:hover {
  border-color: var(--lilac);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(122, 114, 168, 0.14);
}
.card__tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac-deep);
}
.card h3 {
  font-size: 23px;
  margin: 14px 0 10px;
}
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mint-deep);
}
.card--link:hover .card__more { gap: 10px; }

/* 아이콘 없는 심플 리스트 (왜 1:1인가 등) */
.feature-list { display: grid; gap: 18px; }
.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 16.5px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lilac-deep);
  box-shadow: 0 0 0 4px rgba(122, 114, 168, 0.14);
}

/* ---------- 8. Free-resource block ---------- */
.give-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.give {
  border: 1px solid #D9EDE4;
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--mint-wash);
}
.give h3 { font-size: 19px; margin-bottom: 8px; }
.give p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; }
.give a {
  font-size: 15px; font-weight: 600; color: var(--lilac-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.give a:hover { color: var(--ink); }

/* ---------- 9. Closing CTA band ---------- */
.cta-band {
  border-radius: 22px;
  padding: clamp(44px, 7vw, 72px) clamp(28px, 6vw, 64px);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(181,175,214,0.38), transparent 62%),
    linear-gradient(135deg, #E9F6F0 0%, #EFEBFA 100%);
  border: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 16px; }
.cta-band p { color: var(--ink-soft); margin-bottom: 30px; font-size: 17px; }
.cta-band .btn-row { justify-content: center; }

/* 소소하게 배치되는 링크(커뮤니티/블로그) */
.quiet-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 14px;
}
.quiet-links a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.quiet-links a:hover { color: var(--lilac-deep); }

/* ---------- 10. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 44px;
  background: var(--paper-warm);
  font-size: 14px;
  color: var(--ink-soft);
}
.site-footer .wordmark { display: inline-block; margin-bottom: 18px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.site-footer li { margin-bottom: 9px; }
.site-footer a:hover { color: var(--ink); }
.legal {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal .disclaimer { margin-top: 12px; opacity: 0.85; }

/* ---------- 11. Mobile fixed CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 60;
}
.mobile-cta .btn { width: 100%; box-shadow: 0 8px 24px rgba(47,53,72,0.18); }

/* ---------- 12. Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 13. Sub-page shared bits ---------- */
.page-hero {
  padding: clamp(60px, 9vw, 100px) 0 clamp(44px, 6vw, 64px);
  background:
    radial-gradient(110% 90% at 92% -20%, rgba(181,175,214,0.40), transparent 60%),
    radial-gradient(80% 70% at -5% 10%, rgba(168,221,203,0.30), transparent 58%),
    var(--lilac-wash);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 20px; max-width: 15em; }
.page-hero .section-lead { font-size: clamp(16px, 2.4vw, 20px); }

/* 서브페이지 히어로 2단 (글 + 정물 이미지) */
.page-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}
.page-hero__copy { max-width: 600px; }
.page-hero__media img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 22px 50px rgba(122, 114, 168, 0.20);
}
@media (max-width: 860px) {
  .page-hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .page-hero__copy { max-width: none; }
  .page-hero__media { max-width: 440px; }
}

.prose { max-width: 44em; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: clamp(22px, 3.4vw, 30px); margin-top: 8px; }
.prose h3 { font-size: 20px; color: var(--lilac-deep); }
.prose p { color: var(--ink); }
.prose .soft { color: var(--ink-soft); }

/* --- 에디토리얼 2단 레이아웃 --- */
.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.split__head { position: sticky; top: 92px; }
.split__head .section-title { margin-bottom: 14px; }
.split__head .section-lead { font-size: 16px; }
.split__body { font-size: 17px; }
.split__body > * + * { margin-top: 20px; }
.split__body p { color: var(--ink); line-height: 1.8; }
.split__body .soft { color: var(--ink-soft); }
.split__body strong { color: var(--ink); font-weight: 600; }

/* 제목 앞 민트 액센트 바 */
.title-accent {
  display: block;
  width: 46px; height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--mint-deep), var(--mint));
  margin-bottom: 22px;
}

/* --- 팩트 타일 (숫자는 민트) --- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.facts--2 { grid-template-columns: repeat(2, 1fr); }
.facts--4 { grid-template-columns: repeat(4, 1fr); }
.fact {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  background: var(--paper);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.fact:hover { border-color: var(--mint); transform: translateY(-2px); }
.fact__k {
  font-size: 22px;
  font-weight: 700;
  color: var(--mint-deep);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.fact__v { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.55; }

/* --- 강조 패널 --- */
.note-box {
  border-left: 3px solid var(--lilac);
  background: var(--paper-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px;
  color: var(--ink);
  font-size: 16px;
}
.note-box--mint {
  border-left-color: var(--mint-deep);
  background: var(--mint-wash);
}
.callout {
  border: 1px solid #CDEBDD;
  border-radius: var(--radius);
  padding: 30px 32px;
  background: linear-gradient(155deg, #F1FAF5 0%, #F7F5FC 100%);
}
.callout h3 { font-size: 21px; margin-bottom: 10px; }
.callout p { color: var(--ink-soft); font-size: 15.5px; }

/* --- 인증서 이미지 --- */
.cert { margin: 34px 0 0; max-width: 620px; }
.cert a { display: block; }
.cert img {
  width: 100%; height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(47, 53, 72, 0.12);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cert a:hover img { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(47, 53, 72, 0.16); }
.cert figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.cert figcaption::before {
  content: ""; flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-deep);
}

/* ---------- 13b. FAQ 아코디언 (이 작업에서 유일하게 추가한 새 스타일) ---------- */
.faq { max-width: 720px; }
.faq .section-title { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 2px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
  transition: color 0.15s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  background:
    linear-gradient(var(--lilac-deep), var(--lilac-deep)) center / 100% 2px no-repeat,
    linear-gradient(var(--lilac-deep), var(--lilac-deep)) center / 2px 100% no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  background: linear-gradient(var(--lilac-deep), var(--lilac-deep)) center / 100% 2px no-repeat;
}
.faq summary:hover { color: var(--lilac-deep); }
.faq-answer { padding: 2px 2px 24px; }
.faq-answer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
  max-width: 60ch;
}
.faq-answer a {
  color: var(--lilac-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.faq-answer a:hover { color: var(--ink); }

/* ---------- 14. Responsive ---------- */
@media (max-width: 900px) {
  :root { --section-y: 84px; }
  .grid--3, .give-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .split { grid-template-columns: 1fr; gap: 24px; }
  .split__head { position: static; }
}

/* 모바일: 햄버거 대신 로고 아래 가로 고정 메뉴바 (≤768px) */
@media (max-width: 768px) {
  /* 로고 줄: 스크롤하면 위로 올라가 사라짐 (고정 아님) */
  .site-header {
    position: static;
    background: var(--paper);
    backdrop-filter: none;
    border-bottom: none;
  }
  /* 데스크톱 인라인 네비 숨김 */
  .nav { display: none; }

  /* 가로 메뉴바: 화면 최상단에 달라붙어 고정 */
  .mobile-nav {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 50;
    height: 44px;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px;
    padding: 0 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a {
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    color: var(--ink-soft);
    padding: 0 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s var(--ease);
  }
  .mobile-nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
    border-bottom-color: var(--lilac-deep);
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .grid--3, .grid--2, .give-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .mobile-cta { display: block; }
  /* 모바일 고정 버튼과 겹치지 않도록 푸터 여백 확보 */
  .site-footer { padding-bottom: 96px; }
}

/* ---------- 15. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
