/* ========================================================================
   DBTS Solution Catalog — Components (v1.5)
   ------------------------------------------------------------------------
   카탈로그 시리즈 전반에서 재사용되는 블록:
   - .eyebrow (섹션 상단 라벨)
   - h2.section-title / .section-kicker (섹션 제목 체계)
   - .reveal (스크롤 등장 애니메이션)
   - .sys-pay-strip / .sys-pay-chip (결제 수단 스트립)
   - footer (공통 레이아웃)
   ======================================================================== */

/* ===== EYEBROW ===== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: "Inter", "Pretendard Variable", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow .num {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--num-tone);
  letter-spacing: 0.1em;
}
.eyebrow .bar {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--steel);
  opacity: 0.45;
}

/* ===== SECTION TITLE ===== */
h2.section-title {
  font-family: "Pretendard Variable", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.028em;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 760px;
  text-wrap: balance;   /* 짧은 제목: 줄 길이 균등 배분 */
}

.section-kicker {
  max-width: 680px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 60px;
  font-weight: 400;
  text-wrap: pretty;    /* 긴 본문: 마지막 줄에 외톨이 단어 방지 */
}

/* ===== REVEAL ANIMATION =====
   .reveal 초기 상태는 JS 활성 환경에서만 숨김.
   .no-js (JS 차단) / <noscript> CSS 양측이 모두 fallback.
   JS 스크립트가 실패·지연돼도 3초 setTimeout 안전망으로 강제 표시.
*/
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(.2,.6,.2,1),
              transform 0.8s cubic-bezier(.2,.6,.2,1);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== PAYMENT STRIP (공용) ===== */
.sys-pay-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.sys-pay-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  min-height: 56px;
  transition: border-color 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
}
.sys-pay-chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 48, 87, 0.08);
}
.sys-pay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 28px;
}
.sys-pay-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
/* Samsung Pay PNG만 가로로 길어서 대비 맞추기 위한 로고별 미세조정.
   브랜드 로고 공식 비율 유지하면서 시각 크기 동질화. */
.sys-pay-icon img[alt="Samsung Pay"] { max-height: 22px; }
.sys-pay-icon img[alt="Apple Pay"]   { max-height: 26px; }
.sys-pay-icon img[alt="Kakao Pay"]   { max-height: 22px; }
.sys-pay-icon img[alt="Naver Pay"]   { max-height: 22px; }

.sys-pay-text {
  font-family: "Pretendard Variable", sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.3;
}
.sys-pay-text em {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-top: 2px;
}

.sys-pay-label {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}

/* ===== FOOTER (공용 레이아웃) ===== */
footer {
  padding: 72px 0 52px;
  background: var(--bg-dark);
  color: rgba(231, 235, 241, 0.85);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand {
  font-family: "Pretendard Variable", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #F4F6FA;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.footer-tag {
  font-size: 14px;
  color: rgba(231, 235, 241, 0.55);
  line-height: 1.7;
  max-width: 420px;
}
.footer-col h4 {
  font-family: "Inter", "Pretendard Variable", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A96A8;
  margin-bottom: 16px;
}
.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(231, 235, 241, 0.8);
}
.footer-col p + p { margin-top: 4px; }
.footer-col .footer-sub {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(231, 235, 241, 0.55);
  font-family: "Inter", "Pretendard Variable", sans-serif;
  letter-spacing: 0.02em;
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(231, 235, 241, 0.45);
  font-weight: 500;
}
.footer-bottom .ident {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== MINI FEATURE BOX (공용) =====
   작은 보조 기능 카드. 큰 섹션 번호 부여 없이 2×2 그리드로 묶어서 사용.
   LANGUAGE / SMART BILLING / USAGE GUARD / RECEIPT 등 운영 옵션·세부 기능용. */
.mini-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.mini-feature-box {
  padding: 36px 32px 32px;
  background: var(--bg);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.mini-feature-label {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.mini-feature-title {
  font-family: "Pretendard Variable", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: balance;
}
.mini-feature-body {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-2);
  margin-bottom: 16px;
  text-wrap: pretty;
}
.mini-feature-box:not(:has(.mini-feature-hint)) .mini-feature-body {
  margin-bottom: 0;
}
.mini-feature-hint {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-feature-hint .hint-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
}
.mini-feature-hint .hint-label {
  font-family: "Inter", "Pretendard Variable", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1.6;
}
.mini-feature-hint .hint-row.unsupported .hint-label { color: var(--ink-3); }
.mini-feature-hint .hint-list {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.mini-feature-hint .hint-row.unsupported .hint-list { color: var(--ink-3); }

/* 공용 반응형 */
@media (max-width: 900px) {
  .sys-pay-strip { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .sys-pay-chip { padding: 12px 8px; min-height: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
  .mini-feature-grid { grid-template-columns: 1fr; }
  .mini-feature-box { padding: 28px 24px 26px; }
  .mini-feature-title { font-size: 17px; }
  .mini-feature-hint .hint-row { grid-template-columns: 64px 1fr; gap: 10px; }
}

/* ===== 인쇄 (footer 다크 배경 제거) ===== */
@media print {
  footer {
    background: #FFF;
    color: #000;
    border-top: 1px solid #CCC;
    padding: 24px 0;
  }
  .footer-grid {
    border-bottom-color: #CCC;
    padding-bottom: 16px;
  }
  .footer-brand { color: #000; }
  .footer-tag, .footer-col p, .footer-bottom { color: #333; }
  .footer-col h4 { color: #555; }
  .sys-pay-chip { border-color: #BBB; }
  .mini-feature-box { background: #FFF; border-color: #CCC; break-inside: avoid; }
  .mini-feature-label { color: #000; }
  .mini-feature-hint { border-top-color: #CCC; }
}
