/* ========== 디자인 토큰 ========== */
:root {
  --color-highlighter-mint: #e2ffcc;
  --color-sage-stone: #84907f;
  --color-carbon-ink: #161b13;
  --color-forest-charcoal: #2d3329;
  --color-topo-gray: #dde2e4;
  --color-pure-black: #000000;

  --font-body: "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
  --font-display: "Black Han Sans", "Pretendard Variable", sans-serif;

  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-40: 40px;
  --spacing-67: 67px;
  --spacing-70: 70px;

  --radius: 0px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-style: normal;
  background: var(--color-topo-gray);
  color: var(--color-forest-charcoal);
  min-height: 100vh;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-x: hidden;
}
em, i { font-style: normal; }

/* ========== 헤더 ========== */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--spacing-16) var(--spacing-24);
  background: var(--color-carbon-ink);
  border: 0;
}
.nav-btn {
  background: transparent;
  color: var(--color-highlighter-mint);
  border: 1px solid var(--color-highlighter-mint);
  border-radius: 0;
  padding: var(--spacing-12) var(--spacing-16);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.06em;
}
.nav-btn:hover { background: var(--color-highlighter-mint); color: var(--color-carbon-ink); }

/* ========== 브랜드(유튜브 채널형) ========== */
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand:hover .wordmark { color: #ffffff; }
.brand:focus-visible { outline: 2px solid var(--color-highlighter-mint); outline-offset: 4px; border-radius: 8px; }
.brand-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}
.brand-avatar img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.4);
}
.brand .wordmark {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f1f1f1;
}
.brand-badge { width: 16px; height: 16px; color: #aaaaaa; flex-shrink: 0; }
.brand small {
  display: block; margin-top: 3px;
  font-size: 13px;
  letter-spacing: 0;
  color: #aaaaaa;
}

/* ========== 헤더 상담 ========== */
header { gap: 12px; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-call {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 18px 5px 5px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-carbon-ink);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.12);
  transition: background .2s ease, transform .2s ease;
}
.header-call:hover { background: #eaffda; transform: translateY(-1px); }
.header-call:focus-visible { outline: 2px solid var(--color-highlighter-mint); outline-offset: 3px; }
.hc-ico {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #1d9667;
  color: #ffffff;
  flex-shrink: 0;
}
.hc-ico::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  animation: dock-pulse 2s ease-out infinite;
}
.hc-text {
  display: flex; align-items: center; gap: 6px;
  line-height: 1;
  white-space: nowrap;
}
.hc-text small {
  font-size: 15px; font-weight: 700;
  color: #1d9667;
}
.hc-text strong {
  font-size: 19px; font-weight: 800;
  letter-spacing: -0.01em;
}

/* ========== 히어로 ========== */
.hero-band {
  background: var(--color-carbon-ink);
  background-image: radial-gradient(ellipse 900px 420px at 50% 360px, rgba(226,255,204,.08), transparent 80%);
  padding: 56px var(--spacing-24) 88px;
}
.hero-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(226,255,204,.08);
  border: 1px solid rgba(226,255,204,.14);
  color: var(--color-highlighter-mint);
  font-size: 12px; font-weight: 600;
  margin-bottom: 20px;
}
.hero-band h1 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  color: var(--color-highlighter-mint);
  word-break: keep-all;
}
.hero-band .sub {
  font-size: 14px;
  color: var(--color-sage-stone);
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}

/* ========== 검색창 ========== */
.search-area { max-width: 680px; margin: 0 auto 56px; }
.search-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 20px;
  border: 1.5px solid rgba(255,0,0,.55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,0,0,.12), rgba(255,0,0,.04));
  box-shadow: 0 0 0 4px rgba(255,0,0,.06), 0 10px 40px rgba(255,0,0,.15);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-row:focus-within {
  border-color: #ff0000;
  box-shadow: 0 0 0 4px rgba(255,0,0,.18), 0 14px 48px rgba(255,0,0,.3);
}
.yt-icon { width: 34px; height: auto; flex-shrink: 0; }
.search-row input {
  flex: 1; min-width: 0;
  padding: 12px 4px;
  border: 0; outline: none;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
}
.search-row input::placeholder { color: rgba(255,255,255,.4); }
.search-row button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #ff3b30, #e00000);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 14px rgba(255,0,0,.35);
  transition: transform .15s ease, filter .15s ease;
}
.search-row button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.search-row button svg { width: 18px; height: 18px; }

/* ========== 예시 키워드 ========== */
.examples {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
}
#caseChips { display: contents; }
.examples span.label {
  font-size: 11px;
  color: var(--color-sage-stone);
  margin-right: 4px;
}
.chip {
  display: inline-block; margin: 0;
  padding: 7px 14px;
  border: 1px solid rgba(226,255,204,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--color-highlighter-mint);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--color-highlighter-mint); background: var(--color-highlighter-mint); color: var(--color-carbon-ink); }

/* ========== 소개 영상 ========== */
.video-embed {
  width: 100%; max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(226,255,204,.12);
  box-shadow: 0 20px 80px rgba(120,200,120,.18);
}
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ========== 절차 검색 ========== */
.proc-section {
  margin-top: 96px; padding-top: 72px;
  border-top: 1px solid rgba(226,255,204,.08);
}
.proc-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  color: #ffffff;
  word-break: keep-all;
}
.proc-section .sub { margin-bottom: 32px; }

/* ========== 검색 결과 ========== */
#searchView { background: #f1fbea; }
main { max-width: 1100px; margin: 0 auto; padding: 48px var(--spacing-24) 80px; }
.results-head {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--color-forest-charcoal);
  letter-spacing: -0.01em;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--spacing-24); }
.video {
  background: #ffffff;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(22, 27, 19, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.video:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(22, 27, 19, 0.16);
}
.thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.thumb.t0 { background: var(--color-sage-stone); --thumb-fg: var(--color-carbon-ink); }
.thumb.t1 { background: var(--color-forest-charcoal); --thumb-fg: var(--color-highlighter-mint); }
.thumb.t2 { background: var(--color-highlighter-mint); --thumb-fg: var(--color-carbon-ink); }
.thumb.t3 { background: var(--color-carbon-ink); --thumb-fg: var(--color-highlighter-mint); }
.thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-label {
  position: absolute; top: 12px; left: 14px; right: 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.05;
  color: var(--thumb-fg);
  word-break: keep-all;
  text-align: left;
}
.thumb-brand {
  position: absolute; left: 14px; bottom: 10px;
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--thumb-fg); opacity: .7;
}
.thumb .play {
  position: absolute; right: 14px; bottom: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.thumb .play::after {
  content: "";
  border-left: 12px solid var(--color-carbon-ink);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
  transition: border-left-color .2s ease;
}
.video:hover .thumb .play {
  background: #1d9667;
  transform: scale(1.08);
}
.video:hover .thumb .play::after { border-left-color: #ffffff; }
.video .body { padding: 18px 18px 16px; flex: 1; display: flex; flex-direction: column; }
.video h3 {
  margin: 0 0 10px;
  font-size: 16px; font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--color-carbon-ink);
  word-break: keep-all;
}
.tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; }
.tag-chip {
  font-size: 11px; font-weight: 700;
  color: var(--color-forest-charcoal);
  letter-spacing: 0;
}
.video p {
  margin: 0;
  color: #8a9087;
  font-size: 13px; line-height: 1.6;
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.video .meta {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0;
  display: flex; justify-content: space-between; align-items: center;
  color: #8a9087;
}
.empty { text-align: left; color: var(--color-forest-charcoal); opacity: .7; padding: var(--spacing-40) 0; font-size: 14px; }
mark { background: var(--color-highlighter-mint); color: var(--color-carbon-ink); border-radius: 2px; padding: 0 2px; }

/* ========== 대시보드 ========== */
.view.hidden { display: none; }
#dashView { background: var(--color-carbon-ink); }
#dashView .dash-inner { max-width: 1100px; margin: 0 auto; padding: var(--spacing-67) var(--spacing-24) var(--spacing-70); }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--spacing-40); }
.dash-head h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 6vw, 72px); line-height: 0.95;
  margin: 0; color: var(--color-highlighter-mint);
}
.reset {
  background: transparent; border: 1px solid var(--color-sage-stone);
  color: var(--color-sage-stone); padding: 8px 14px;
  border-radius: 0; cursor: pointer; font-size: 12px;
  font-family: var(--font-body);
}
.reset:hover { border-color: var(--color-highlighter-mint); color: var(--color-highlighter-mint); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--spacing-24); margin-bottom: var(--spacing-40); }
.stat { border: 1px solid var(--color-highlighter-mint); border-radius: 0; padding: var(--spacing-16); background: transparent; }
.stat .n {
  font-family: var(--font-display); font-weight: 400;
  font-size: 48px; line-height: 0.95;
  color: var(--color-highlighter-mint);
}
.stat .l { color: var(--color-sage-stone); font-size: 10px; letter-spacing: 0.08em; margin-top: 8px; text-transform: uppercase; }
.panel { border: 1px solid var(--color-forest-charcoal); border-radius: 0; padding: var(--spacing-24); margin-bottom: var(--spacing-24); background: transparent; }
.panel h2 {
  margin: 0 0 var(--spacing-16); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-highlighter-mint);
}
.bar-row { display: flex; align-items: center; gap: var(--spacing-12); margin: 10px 0; }
.bar-row .name { width: 150px; font-size: 13px; color: var(--color-topo-gray); flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; background: var(--color-forest-charcoal); border-radius: 0; height: 20px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 0; background: var(--color-highlighter-mint); }
.bar-row .val { width: 42px; text-align: right; color: var(--color-sage-stone); font-size: 13px; }
.dash-empty { color: var(--color-sage-stone); padding: var(--spacing-16) 0; font-size: 13px; }

/* ========== 푸터 ========== */
footer {
  background: #000000;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.75;
  padding: 44px 120px 48px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-company {
  margin: 0 0 14px;
  display: flex; flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.72);
}
.footer-company span + span::before {
  content: "|";
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.3);
}
.footer-offices { list-style: none; margin: 0; padding: 0; }
.footer-offices li { margin: 0 0 2px; }
.footer-offices a { color: inherit; text-decoration: none; }
.footer-offices a:hover { color: var(--color-highlighter-mint); }
.footer-sns { display: flex; gap: 8px; flex-shrink: 0; }
.footer-sns a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: background .2s ease, color .2s ease;
}
.footer-sns a:hover { background: var(--color-highlighter-mint); color: var(--color-carbon-ink); }
.footer-sns a:focus-visible { outline: 2px solid var(--color-highlighter-mint); outline-offset: 2px; }

/* ========== 퀵 메뉴 ========== */
.quick-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: #eaffda;
  border: 1px solid rgba(22, 27, 19, 0.12);
  border-radius: 32px;
  box-shadow: 0 12px 32px rgba(22, 27, 19, 0.28), 0 0 0 4px rgba(226, 255, 204, 0.25);
}
.dock-btn {
  width: 66px;
  padding: 8px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--color-carbon-ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}
.dock-btn .ico {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22, 27, 19, 0.08);
  color: var(--color-carbon-ink);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.dock-btn:hover .ico {
  background: var(--color-carbon-ink);
  color: var(--color-highlighter-mint);
  transform: scale(1.06);
}
.dock-call .ico { background: #1d9667; color: #ffffff; }
.dock-kakao .ico {
  background: #ffd400;
  color: #3c1e1e;
  box-shadow: 0 3px 8px rgba(22, 27, 19, 0.2);
}
.dock-kakao:hover .ico { background: #ebc20d; color: #3c1e1e; }
.dock-call .ico,
.dock-top .ico { box-shadow: 0 3px 8px rgba(22, 27, 19, 0.2); }
.dock-top .ico { background: var(--color-carbon-ink); color: var(--color-highlighter-mint); }
.dock-top:hover .ico { background: var(--color-forest-charcoal); color: #ffffff; }
.dock-call .ico::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  animation: dock-pulse 2s ease-out infinite;
}
@keyframes dock-pulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 150, 103, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(29, 150, 103, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 150, 103, 0); }
}
.dock-divider {
  width: 32px; height: 1px;
  margin: 2px 0;
  background: rgba(22, 27, 19, 0.14);
}
.dock-btn:focus-visible { outline: 2px solid var(--color-carbon-ink); outline-offset: 2px; }

/* ========== 모션 최소화 ========== */
@media (prefers-reduced-motion: reduce) {
  .search-row,
  .search-row button,
  .chip,
  .video,
  .dock-btn .ico { transition: none; }
  .dock-call .ico::after { animation: none; }
}

/* ========== 모바일 ========== */
@media (max-width: 640px) {
  header { padding: 12px 16px; gap: 10px; }
  .nav-btn { padding: 8px 12px; font-size: 11px; white-space: nowrap; }

  .brand { gap: 8px; min-width: 0; }
  .brand-avatar { width: 36px; height: 36px; }
  .brand .wordmark { font-size: 16px; }
  .brand-badge { width: 12px; height: 12px; }
  .brand small { display: none; }

  .header-actions { gap: 8px; }
  .header-call { gap: 6px; padding: 4px 12px 4px 4px; box-shadow: none; }
  .hc-ico { width: 30px; height: 30px; }
  .hc-ico svg { width: 14px; height: 14px; }
  .hc-text small { display: none; }
  .hc-text strong { font-size: 14px; }

  .hero-band { padding: 40px 16px 56px; }
  .hero-badge { font-size: 11px; padding: 6px 12px; margin-bottom: 16px; }
  .hero-band h1 { font-size: clamp(28px, 8vw, 36px); }
  .hero-band .sub { font-size: 13px; margin-bottom: 24px; }

  .search-area { margin-bottom: 40px; }
  .search-row { padding: 6px 6px 6px 14px; gap: 8px; }
  .yt-icon { width: 28px; }
  .search-row input { padding: 10px 2px; font-size: 16px; text-overflow: ellipsis; }
  .search-row input::placeholder { font-size: 13px; }
  .search-row button { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .search-row button span { display: none; }
  .examples span.label { width: 100%; margin: 0 0 2px; }
  .chip { padding: 6px 12px; }

  .video-embed { border-radius: 14px; }
  .proc-section { margin-top: 56px; padding-top: 48px; }
  .proc-title { font-size: clamp(24px, 7vw, 30px); }

  main { padding: 28px 16px 48px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .video h3 { font-size: 15px; }

  .dash-inner { padding: 40px 16px 48px; }
  .dash-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .cards { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .stat .n { font-size: 36px; }
  .panel { padding: 16px; }
  .bar-row .name { width: 92px; font-size: 12px; }

  footer { text-align: left; font-size: 9px; padding: 24px 16px 104px; }

  .quick-dock {
    left: 50%; right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    flex-direction: row;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
  }
  .dock-btn { width: 64px; padding: 4px 0; gap: 3px; font-size: 11px; }
  .dock-btn .ico { width: 34px; height: 34px; }
  .dock-divider { width: 1px; height: 32px; margin: 0 2px; }
}