/* ============================================================
   Skin D — 네이버 UI 라이트 (화이트 + 네이버 그린 #03C75A)
   색상은 공통 9토큰(var(--bg) 등)만 사용 → themes.json naver-light 주입으로 변경
   라이트 테마: 색상 칩/버튼 위 텍스트는 #fff 고정(토큰 --text는 다크 본문색)
   ============================================================ */

:root{
  --bg:#ffffff; --text:#1f2124; --muted:#6b7684; --line:#ebedf0; --panel:#f7f8fa;
  --a:#03c75a; --b:#00b843; --c:#019d3f; --d:#e7f9ef;
}

/* ---------- 리셋 & 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- 진행바 (build.mjs가 삽입) ---------- */
.progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: transparent; z-index: 9999; }
.progress span { display: block; height: 100%; width: 0; background: var(--a); transition: width .1s linear; }

/* ---------- 로봇 캐러셀 (build.mjs가 삽입: <ol><li><a>) ---------- */
/* 그린 액센트 리본 — 배경 var(--a), 텍스트 var(--text) (진한 다크 텍스트, 대비 검증됨) */
.robot-carousel { background: var(--a); padding: 7px 0; }
.robot-carousel ol { display: flex; gap: 22px; overflow-x: auto; padding: 0 clamp(14px, 3vw, 40px); max-width: none; scrollbar-width: none; justify-content: center; justify-content: safe center; }
.robot-carousel ol::-webkit-scrollbar { display: none; }
.robot-carousel li { flex-shrink: 0; }
.robot-carousel a { font-size: .78rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.robot-carousel a:hover { opacity: .75; }

/* ---------- 상단 보조 스트립 (renderTopStrip: .top-strip > a) ---------- */
.top-strip { display: flex; gap: 18px; overflow-x: auto; padding: 8px clamp(14px, 3vw, 40px); max-width: none; scrollbar-width: none; justify-content: center; justify-content: safe center; }
.top-strip::-webkit-scrollbar { display: none; }
.top-strip a { font-size: .8rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.top-strip a:hover { color: var(--text); }

/* ---------- 헤더 (topbar) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand span { width: 22px; height: 22px; border-radius: 6px; background: var(--a); display: block; flex-shrink: 0; box-shadow: inset 0 0 0 3px color-mix(in srgb, #fff 30%, transparent); }
.brand b { font-weight: 800; }
.phone-note { font-size: .82rem; color: var(--muted); margin-left: auto; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- GNB (renderGnb: .nav-links#site-menu > .nav-dd > .nav-dd-btn + .nav-dd-menu) ---------- */
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-dd { position: relative; }
.nav-dd-btn { display: block; padding: 8px 12px; font-size: .9rem; font-weight: 600; color: var(--text); border-radius: 8px; transition: background .18s, color .18s; }
.nav-dd:hover .nav-dd-btn, .nav-dd:focus-within .nav-dd-btn { background: var(--d); color: var(--c); }
.nav-dd-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: block; }
.nav-dd-menu a { display: block; padding: 9px 12px; font-size: .85rem; color: var(--muted); border-radius: 7px; transition: background .16s, color .16s; }
.nav-dd-menu a:hover { background: var(--panel); color: var(--a); }
.nav-links > a { padding: 8px 12px; font-size: .9rem; font-weight: 600; color: var(--text); border-radius: 8px; }
.nav-links > a:hover { background: var(--d); color: var(--c); }

/* ---------- 리빌 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   HERO — 화이트, 좌 텍스트 / 우 이미지, 그린 포인트
   ============================================================ */
.d-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 48px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.d-hero-copy { display: flex; flex-direction: column; gap: 18px; }
.d-badge {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  color: var(--c);
  background: var(--d);
  border: 1px solid color-mix(in srgb, var(--a) 30%, transparent);
}
.d-hero-copy h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--text);
  letter-spacing: -.02em;
}
.d-hero-copy > p { font-size: 1.05rem; color: var(--muted); }

/* 스탯 박스 — 라이트 카드 */
.d-stats {
  display: flex;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.d-stat {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
}
.d-stat:last-child { border-right: none; }
.d-stat-value { font-size: 1rem; font-weight: 800; color: var(--c); }
.d-stat-label { font-size: .75rem; color: var(--muted); }

/* 히어로 이미지 — 소프트 섀도우 */
.d-hero-img {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.d-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   공통 섹션 헤더
   ============================================================ */
.d-section-head { text-align: center; margin-bottom: 44px; }
.d-section-head small {
  display: inline-block;
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--a);
  padding: 4px 12px; border-radius: 50px; background: var(--d);
  margin-bottom: 12px;
}
.d-section-head h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; color: var(--text); line-height: 1.35; letter-spacing: -.01em;
}
.d-section-head p { margin-top: 12px; font-size: 1rem; color: var(--muted); max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============================================================
   BLOCK LIST (.d-list)
   ============================================================ */
.d-list { padding: 76px 48px; background: var(--bg); border-bottom: 1px solid var(--line); }
.d-rows { display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.d-row {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.d-row:nth-child(even) { background: var(--panel); }
.d-row:last-child { border-bottom: none; }
.d-row b { min-width: 168px; font-weight: 700; color: var(--c); font-size: .95rem; }
.d-row span { color: var(--muted); font-size: .93rem; line-height: 1.6; }

/* ============================================================
   BLOCK CARDS (.d-cards)
   ============================================================ */
.d-cards { padding: 76px 48px; background: var(--panel); border-bottom: 1px solid var(--line); }
.d-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1100px; margin: 0 auto;
}
.d-card {
  padding: 26px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  position: relative;
}
.d-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--a); border-radius: 14px 0 0 14px;
  opacity: 0; transition: opacity .25s;
}
.d-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.08); transform: translateY(-3px); border-color: color-mix(in srgb, var(--a) 40%, var(--line)); }
.d-card:hover::before { opacity: 1; }
.d-card > span { font-size: 1.5rem; font-weight: 900; color: color-mix(in srgb, var(--a) 55%, var(--line)); line-height: 1; }
.d-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.d-card p { font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   BLOCK STEPS (.d-steps)
   ============================================================ */
.d-steps { padding: 76px 48px; background: var(--bg); border-bottom: 1px solid var(--line); }
.d-steps-list { display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; position: relative; }
.d-steps-list::before { content: ''; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.d-step {
  display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto;
  column-gap: 20px; padding: 22px 0;
  border-bottom: 1px solid var(--line); position: relative;
}
.d-step:last-child { border-bottom: none; }
.d-step b {
  grid-row: 1 / 3; grid-column: 1;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--a);
  color: #fff;
  font-size: .82rem; font-weight: 800;
  z-index: 1;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--a) 35%, transparent);
}
.d-step h3 { grid-column: 2; font-size: 1rem; font-weight: 700; color: var(--text); align-self: center; }
.d-step p { grid-column: 2; font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   BLOCK LINKS (.d-links)
   ============================================================ */
.d-links { padding: 76px 48px; background: var(--panel); border-bottom: 1px solid var(--line); }
.d-links-scroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 8px; max-width: 1100px; margin: 0 auto; }
.d-links-scroll::-webkit-scrollbar { height: 5px; }
.d-links-scroll::-webkit-scrollbar-track { background: var(--line); border-radius: 3px; }
.d-links-scroll::-webkit-scrollbar-thumb { background: var(--a); border-radius: 3px; }
.d-linkcard {
  flex: 0 0 230px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.d-linkcard:hover { border-color: color-mix(in srgb, var(--a) 45%, var(--line)); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.07); }
.d-linkcard img { border-radius: 10px; aspect-ratio: 3/2; object-fit: cover; }
.d-linkcard strong { font-size: .92rem; font-weight: 700; color: var(--text); }
.d-linkcard span { font-size: .8rem; color: var(--muted); line-height: 1.55; }

/* ============================================================
   FAQ (.d-faq)
   ============================================================ */
.d-faq { padding: 76px 48px; background: var(--bg); border-bottom: 1px solid var(--line); }
.d-faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details.faq { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); transition: border-color .2s; }
details.faq[open] { border-color: color-mix(in srgb, var(--a) 40%, var(--line)); }
details.faq summary {
  list-style: none;
  padding: 18px 20px;
  font-weight: 600; font-size: .97rem; color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  transition: color .2s;
}
details.faq summary::before {
  content: 'Q'; flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--a); color: #fff;
  font-size: .75rem; font-weight: 800;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] summary { color: var(--c); }
details.faq p { padding: 0 20px 16px 58px; font-size: .9rem; color: var(--muted); line-height: 1.75; }
details.faq p + p { padding-top: 10px; }

/* ============================================================
   FOOTER (.d-footer)
   ============================================================ */
.d-footer {
  padding: 40px 48px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto;
}
.d-footer p { font-size: .85rem; color: var(--muted); }
.d-footer a { font-size: .85rem; font-weight: 600; color: var(--c); }
.d-footer a:hover { text-decoration: underline; }

/* ============================================================
   FLOATING CTA (.d-cta)
   ============================================================ */
.d-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: .92rem; font-weight: 700;
  background: var(--a); color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--a) 40%, transparent);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.d-cta:hover { transform: translateY(-2px); background: var(--b); box-shadow: 0 12px 30px color-mix(in srgb, var(--a) 50%, transparent); }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 900px) {
  .d-hero { grid-template-columns: 1fr; gap: 28px; padding: 44px 24px; }
  .d-hero-img { order: -1; max-height: 260px; }
  .d-hero-img img { height: 260px; }
  .d-list, .d-cards, .d-steps, .d-links, .d-faq { padding: 52px 24px; }
  .d-footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .d-stats { flex-direction: column; }
  .d-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .d-stat:last-child { border-bottom: none; }
  .d-row { flex-direction: column; gap: 4px; }
  .d-row b { min-width: auto; }
  .d-cards-grid { grid-template-columns: 1fr; }
  .phone-note { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 12px 16px; gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-dd-menu { position: static; display: block; border: none; box-shadow: none; padding: 2px 0 6px 12px; min-width: 0; }
  .nav-dd:hover .nav-dd-btn, .nav-dd:focus-within .nav-dd-btn { background: transparent; }
  .d-cta { bottom: 16px; right: 16px; padding: 12px 18px; font-size: .85rem; }
}

:root{--bg:#ffffff;--text:#1f2124;--muted:#6b7684;--line:#ebedf0;--panel:#f7f8fa;--a:#e68a12;--b:#ea9f3c;--c:#a5630c;--d:#fcf3e7}
