/* TASK-BC-0534: 자체 글꼴 — 외부 CDN 을 쓰지 않는다. 모든 공개 화면이 shell.css 를 싣는다. */
@font-face{font-family:"Pretendard Variable";font-weight:45 920;font-style:normal;font-display:swap;src:url("../fonts/PretendardVariable.woff2") format("woff2")}
@charset "utf-8";
/* ==========================================================================
   다입찰 디자인 시스템 — 헤더 · 푸터 공용 (shell.css)
   components.css를 쓰지 않는 화면(요금·공지·블로그·추가 콘텐츠)에 헤더·푸터만
   디자인 시스템 §5·§6과 똑같이 입히기 위한 파일. 화면 CSS 뒤에 연결한다.
   토큰은 .gnb / .footer 안에만 선언해 화면 고유 스타일에 영향을 주지 않는다.
   ========================================================================== */
.gnb, .gnb__mobile, .footer {
  --s-brand-300: #c7d2fe; --s-brand-500: #2563eb; --s-brand-700: #1d4ed8;
  --s-heading: #1e293b; --s-body-strong: #475569; --s-body: #64748b; --s-muted: #94a3b8;
  --s-line: #e2e8f0; --s-subtle: #f1f5f9; --s-surface: #fff;
  --s-footer-bg: #0f172a; --s-footer-line: #24345c;
  --s-pad-x: max(var(--gutter, 120px), calc((100% - 1200px) / 2));
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}
.gnb *, .footer * { box-sizing: border-box; }
.gnb a, .footer a { color: inherit; text-decoration: none; }
.gnb p, .footer p { margin: 0; }

/* ---- 헤더 (§5) ---- */
.gnb {
  position: relative; z-index: 30; top: auto;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: none; height: 64px; margin: 0; padding: 0 var(--s-pad-x);
  background: var(--s-surface); border-bottom: 1px solid var(--s-line);
}
.gnb__left { display: flex; align-items: center; gap: 40px; }
.gnb__logo { display: inline-flex; align-items: center; font-size: 0; }
.gnb__logo img { display: block; width: 116px; height: auto; }
.gnb__nav { display: flex; align-items: center; gap: 24px; }
.gnb__nav > a, .gnb__item > a { font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -0.375px; color: var(--s-body-strong); }
.gnb__nav > a:hover, .gnb__item > a:hover,
.gnb__nav > a[aria-current="page"], .gnb__item > a[aria-current="page"] { color: var(--s-brand-500); }
.gnb__item { position: relative; }
.gnb__item > a { display: inline-flex; align-items: center; gap: 4px; }
.gnb__item > a::after {
  content: ""; width: 12px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s ease;
}
.gnb__item:hover > a::after, .gnb__item:focus-within > a::after { transform: rotate(180deg); }
.gnb__dropdown {
  visibility: hidden; opacity: 0; position: absolute; z-index: 20; top: 100%; left: 50%;
  transform: translateX(-50%); width: 280px; margin-top: 12px; padding: 12px;
  background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 20px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .08); transition: opacity .15s ease, visibility 0s linear .4s;
}
.gnb__dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.gnb__item:hover .gnb__dropdown, .gnb__item:focus-within .gnb__dropdown { visibility: visible; opacity: 1; transition: opacity .15s ease; }
.gnb__ddrow { display: block; padding: 12px; border-radius: 12px; }
.gnb__ddrow:hover { background: var(--s-subtle); }
.gnb__ddtitle { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--s-heading); }
.gnb__dddesc { margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--s-body); }
.gnb .badge, .gnb__mobile .badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 9999px;
  background: var(--s-subtle); color: var(--s-body); font-size: 12px; font-weight: 600; letter-spacing: -0.3px;
}
.gnb__right { display: flex; align-items: center; gap: 8px; }
.gnb__btn {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 16px; border-radius: 9999px;
  font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -0.375px; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.gnb__btn--ghost { border: 1px solid rgba(204, 204, 204, .8); background: var(--s-surface); color: #3e3f3f; }
.gnb__btn--primary { border: 0; background: var(--s-brand-500); color: #fff; }
.gnb__btn--ghost:hover { border-color: var(--s-brand-300); color: var(--s-brand-500); }
.gnb__btn--primary:hover { background: var(--s-brand-700); }
.gnb__btn:active { transform: translateY(1px); }

/* 모바일 메뉴 (§16) */
.gnb__menu { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: none; color: var(--s-body-strong); cursor: pointer; }
.gnb__menu:hover { background: var(--s-subtle); }
.gnb__menu svg { width: 24px; height: 24px; }
.gnb__menu .ic-close { display: none; }
.gnb__menu[aria-expanded="true"] .ic-open { display: none; }
.gnb__menu[aria-expanded="true"] .ic-close { display: block; }
.gnb__mobile { display: none; }

/* ---- 푸터 (§6) ---- */
.footer { width: 100%; max-width: none; margin: 0; line-height: normal; padding: 32px var(--s-pad-x) 0; background: var(--s-footer-bg); color: #fff; }
.footer__columns { display: flex; flex-wrap: nowrap; gap: 32px; padding: 0 0 32px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; width: 200px; }
.footer__heading { margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--s-muted); }
.footer__col a { font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: -0.325px; color: #fff; }
.footer__col a:hover { color: var(--s-brand-300); }
.footer__bizbar { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 24px 0; border-top: 1px solid var(--s-footer-line); }
.footer .biz { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--s-muted); }
.footer .biz__value { padding: 0 8px; border-left: 1px solid var(--s-footer-line); white-space: normal; }
.footer .minor {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding: 16px 0 24px; border-top: 1px solid var(--s-footer-line); font-size: 12px; color: var(--s-muted);
}
.minor__contact { display: flex; gap: 24px; }
.minor__contact a:hover { color: #fff; }
.minor__key { margin-right: 6px; color: var(--s-body); }

/* ---- 반응형 ---- */
@media (max-width: 1279px) { .gnb, .gnb__mobile, .footer { --s-pad-x: max(var(--gutter, 48px), 48px); } }
@media (max-width: 859px) {
  .gnb, .gnb__mobile, .footer { --s-pad-x: 24px; }
  .footer__columns { flex-wrap: wrap; row-gap: 24px; }
  .footer__col { width: calc(50% - 16px); }
}
@media (max-width: 767px) {
  .gnb, .gnb__mobile, .footer { --s-pad-x: 16px; }
  .gnb__nav, .gnb__right { display: none; }
  .gnb__menu { display: inline-flex; }
  .gnb__mobile:not([hidden]) {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px var(--s-pad-x) 24px; background: var(--s-surface); border-bottom: 1px solid var(--s-line); box-shadow: 0 4px 10px rgba(15, 23, 42, .08);
  }
  .gnb__mobile > a { padding: 14px 0; font-size: 16px; font-weight: 600; color: var(--s-body-strong); border-bottom: 1px solid var(--s-subtle); }
  .gnb__mobile > a[aria-current="page"] { color: var(--s-brand-500); }
  .gnb__mobile > a.gnb__mobile-sub { padding-left: 16px; font-size: 15px; font-weight: 500; }
  .gnb__mobile > a .badge { margin-left: 6px; vertical-align: 1px; }
  .gnb__mobile-btns { display: flex; gap: 8px; padding-top: 16px; }
  .gnb__mobile-btns .gnb__btn { flex: 1; height: 44px; }
  .footer .minor { flex-direction: column; align-items: flex-start; }
  .minor__contact { flex-wrap: wrap; gap: 4px 16px; }
}
@media (prefers-reduced-motion: reduce) { .gnb__item > a::after, .gnb__btn, .gnb__dropdown { transition: none; } }

/* ---- 화면 고유 푸터 규칙 무력화 (공지·블로그·요금의 예전 1줄 푸터 CSS가 섞이지 않도록) ---- */
.footer.footer { display: block; gap: 0; }
.footer .footer__columns { flex-direction: row; align-items: flex-start; flex-wrap: nowrap; width: auto; gap: 32px; }
.footer .footer__col, .footer .footer__col:last-child { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 12px; margin: 0; text-align: left; }
.footer .footer__col a { color: #fff; white-space: nowrap; line-height: 1.4; }
.footer .footer__col a:hover, .footer .footer__col a[aria-current="page"] { color: var(--s-brand-300); }
.footer .footer__bizbar { width: auto; padding: 24px 0; border-top: 1px solid var(--s-footer-line); }
.footer .biz__key, .footer .biz__value { font-size: 11px; font-weight: 400; line-height: 1.4; letter-spacing: -0.275px; color: var(--s-muted); }
@media (max-width: 859px) {
  .footer .footer__columns { flex-wrap: wrap; row-gap: 24px; }
  .footer .footer__col, .footer .footer__col:last-child { width: calc(50% - 16px); }
}

/* ---- 색 우선순위 보정 ----
   .gnb a { color: inherit } 가 버튼 글자색을 덮어 가입 시작이 검정으로 나오던 문제,
   푸터 현재 페이지 링크가 hover 색으로 보이던 문제 수정. 푸터 링크는 기본 흰색, hover만 brand-300 */
.gnb a.gnb__btn--primary, .gnb__mobile a.gnb__btn--primary { color: #fff; }
.gnb a.gnb__btn--ghost, .gnb__mobile a.gnb__btn--ghost { color: #3e3f3f; }
.gnb a.gnb__btn--ghost:hover, .gnb__mobile a.gnb__btn--ghost:hover { color: var(--s-brand-500); }
.footer .footer__col a[aria-current="page"] { color: #fff; }
.footer .footer__col a:hover { color: var(--s-brand-300); }

/* ==========================================================================
   버튼 hover 통일 — 디자인 시스템 §7 버튼과 동일
   Primary: 배경 brand-700 · White: 글자 brand-500 · Ghost: 테두리 brand-300 + 글자 brand-500
   공통: 0.15s 전환, 누르면 1px 눌림.
   :not(#_#_#_) — 요금 안내 pricing.css의 높은 우선순위 규칙을 이기기 위한 장치(같은 방식)
   ========================================================================== */
:is(.btn-primary, .nl-open, .share__btn--primary, .pill--primary,
    .btn-white, .closing__cta, .pill--line, .sp-btn,
    .btn-ghost, .list-btn, .sidetog, .quote-btn):not(#_#_#_) {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
:is(.btn-primary, .nl-open, .share__btn--primary, .pill--primary):not(#_#_#_):hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
:is(.btn-white, .closing__cta, .pill--line, .sp-btn):not(#_#_#_):hover { background: #fff; color: #2563eb; }
:is(.pill--line, .sp-btn):not(#_#_#_):hover { border-color: #c7d2fe; }
:is(.btn-ghost, .list-btn, .sidetog, .quote-btn):not(#_#_#_):hover { background: #fff; border-color: #c7d2fe; color: #2563eb; }
.cmp__toggle:not(#_#_#_) { transition: color .15s ease; }
.cmp__toggle:not(#_#_#_):hover { color: #2563eb; }
:is(.btn-primary, .nl-open, .share__btn--primary, .pill--primary,
    .btn-white, .closing__cta, .pill--line, .sp-btn,
    .btn-ghost, .list-btn, .sidetog, .quote-btn, .cmp__toggle):not(#_#_#_):active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  :is(.btn-primary, .nl-open, .share__btn--primary, .pill--primary, .btn-white, .closing__cta, .pill--line, .sp-btn, .btn-ghost, .list-btn, .sidetog, .quote-btn, .cmp__toggle):not(#_#_#_) { transition: none; }
}
/* 그라데이션 위 흰 버튼(btn-primary--on-gradient)은 White 버튼 규칙 */
.btn-primary.btn-primary--on-gradient:not(#_#_#_):hover { background: #fff; border-color: transparent; color: #2563eb; }

/* 베타 띠 — 디자인 시스템 HEADER 기본값 (GNB 위) */
.beta-bar{display:flex;align-items:center;justify-content:center;gap:12px;height:44px;padding:0 max(120px,calc((100% - 1200px)/2));background:linear-gradient(90deg,#2563eb 0%,#4f46e5 55%,#7e22ce 100%);color:#fff;font-size:14px;font-weight:600;letter-spacing:-.35px}
.beta-bar__tag{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:9999px;background:rgba(255,255,255,.2);font-size:11px;font-weight:700;letter-spacing:.5px}
.beta-bar__link{color:#fff;text-decoration:underline;text-underline-offset:3px;opacity:.9}.beta-bar__link:hover{opacity:1;color:#fff}
@media (max-width:1279px){.beta-bar{padding:0 48px}}
@media (max-width:859px){.beta-bar{padding:0 24px}}
@media (max-width:767px){.beta-bar{flex-wrap:wrap;height:auto;padding:10px 16px;font-size:13px;text-align:center;row-gap:4px}}

/* OPEN BETA 띠 반응형: 문구 좌측, 혜택 보기 우측 */
@media (max-width:1279px){.beta-bar{display:grid;grid-template-columns:1fr auto;align-items:center;justify-items:start;column-gap:12px;row-gap:4px;height:auto;min-height:44px;padding-top:10px;padding-bottom:10px;text-align:left}.beta-bar__tag{grid-column:1}.beta-bar__link{grid-column:2;grid-row:1 / span 2;align-self:center;white-space:nowrap}}
