/* ============================================================
   KONIVO — shared.css  v2.0
   글로벌 디자인 시스템 — Stripe-inspired Crisp & Modern SaaS
   Font    : Pretendard
   Primary : Blurple #635BFF  |  Text: #0A2540  |  Muted: #425466
   Canvas  : #FFFFFF / #F6F9FC  |  Border: #E3E8EF
   Shadow  : Stripe Soft — rgba(10,37,64,…)
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ──────────────────────────────────────────
   CSS Variables
────────────────────────────────────────── */
:root {
  /* ── Brand — Blurple Palette ── */
  --clr-primary:       #635BFF;   /* Stripe Blurple */
  --clr-primary-deep:  #4f48d4;   /* hover / pressed */
  --clr-primary-press: #3a35a8;   /* active */
  --clr-primary-soft:  #7a74ff;   /* lighter tint */
  --clr-primary-sub:   #ebe9ff;   /* 매우 연한 Blurple 배경 */
  --clr-primary-mid:   #c7c4ff;   /* border accent */
  --clr-dark:          #0A2540;   /* Stripe dark navy */
  --clr-ruby:          #ea2261;

  /* ── Surface ── */
  --bg:      #FFFFFF;
  --bg2:     #F6F9FC;
  --border:  #E3E8EF;
  --border2: #aabdd4;

  /* ── Text ── */
  --text:    #0A2540;   /* Stripe dark navy */
  --text2:   #1a3352;
  --muted:   #425466;   /* Stripe muted */
  --muted2:  #546a7f;

  /* ── Semantic ── */
  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;

  /* ── Radius ── */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  20px;
  --r-pill: 9999px;

  /* ── Shadow — Stripe Soft ── */
  --shadow-1: 0 2px 8px rgba(10,37,64,.06);
  --shadow-2: 0 8px 32px rgba(10,37,64,.08), 0 1px 4px rgba(10,37,64,.04);
  --shadow-3: 0 20px 60px rgba(10,37,64,.10), 0 4px 16px rgba(10,37,64,.05);

  /* ── Layout ── */
  --max-w:    1160px;
  --max-w-sm: 720px;
  --px:       24px;

  /* ── Section padding — Generous Whitespace ── */
  --sec-py: 104px;
}

/* ──────────────────────────────────────────
   Base Reset
────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-feature-settings: "ss01"; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Noto Sans KR', 'Inter',
               system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ──────────────────────────────────────────
   NAV (nav.css 통합)
────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 16px; font-weight: 400; letter-spacing: .06em;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.nav-logo span { color: var(--clr-primary); }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-item > .nav-top-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 600; color: var(--text2);
  text-decoration: none; padding: 8px 14px; border-radius: var(--r-md);
  transition: all .18s; white-space: nowrap;
  cursor: pointer; background: none; border: none; font-family: inherit;
}
.nav-item > .nav-top-link:hover,
.nav-item:hover > .nav-top-link { color: var(--clr-primary); background: var(--clr-primary-sub); }
/* Pretendard 적용 후 nav 자간 보정 */
.nav-item > .nav-top-link { letter-spacing: -.01em; }
.chevron-text { font-size: 10px; transition: transform .2s; color: var(--muted); }
.nav-item:hover > .nav-top-link .chevron-text { transform: rotate(180deg); color: var(--clr-primary); }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: 0 16px 48px rgba(0,0,0,.12);
  padding-top: 16px; margin-top: -8px; min-width: 220px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 200;
}
.nav-dropdown::before {
  content: ''; display: block; position: absolute;
  top: 0; left: 0; right: 0; height: 8px;
}
.nav-item:hover > .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown.wide {
  min-width: 480px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 16px 12px 12px;
  max-height: calc(100vh - 80px); overflow-y: auto;
}
.nav-dropdown.wide3 {
  min-width: 720px; display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 4px; padding: 16px 12px 12px;
}
.nav-dropdown.wide::before,
.nav-dropdown.wide3::before { display: none; }
.nav-dropdown-section-title {
  grid-column: 1/-1; font-size: 10px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 8px 14px 2px;
  border-top: 1px solid var(--border); margin-top: 4px;
}
.nav-dropdown-section-title:first-child { border-top: none; margin-top: 0; padding-top: 4px; }
.nav-dropdown-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  text-decoration: none; transition: background .15s; color: var(--text2);
}
.nav-dropdown-item:hover { background: var(--clr-primary-sub); }
.nav-dropdown-item:hover .ndi-title { color: var(--clr-primary); }
.nav-dropdown-item.is-active .ndi-title { color: var(--clr-primary); font-weight: 700; }
.ndi-text { display: flex; flex-direction: column; gap: 2px; }
.ndi-title { font-size: 13px; font-weight: 400; color: var(--text); line-height: 1.3; }
.ndi-current {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  background: var(--clr-primary); color: #fff;
  border-radius: var(--r-sm); padding: 1px 6px; margin-left: 4px;
}
.ndi-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }
.nav-dropdown-divider { grid-column: 1/-1; height: 1px; background: var(--border); margin: 4px 0; }
.nav-dropdown-label {
  grid-column: 1/-1; font-size: 10px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 4px 14px 2px;
}
.nav-cta {
  font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  padding: 8px 20px; border-radius: var(--r-md); border: none; cursor: pointer;
  background: var(--clr-primary); color: #fff; text-decoration: none;
  transition: background .2s, box-shadow .2s; box-shadow: 0 2px 8px rgba(99,91,255,.30);
  white-space: nowrap; margin-left: 8px;
}
.nav-cta:hover { background: var(--clr-primary-deep); box-shadow: 0 4px 14px rgba(99,91,255,.38); }
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 10px 8px; width: 44px; height: 44px; /* 탭타겟 44px */
  margin-right: -8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--muted2); border-radius: 2px;
  transition: all .2s;
}
.mobile-nav {
  display: none; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border); background: var(--bg);
  max-height: 80vh; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-section { border-bottom: 1px solid var(--border); }
.mobile-nav-category {
  padding: 10px 24px 4px; font-size: 10px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--bg2); border-bottom: 1px solid var(--border);
}
.mobile-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 24px 13px 36px; font-size: 14px;
  color: var(--text2); text-decoration: none;
  border-bottom: 1px solid var(--border);
  font-weight: 500; transition: color .2s;
}
.mobile-nav a:hover { color: var(--clr-primary); background: var(--clr-primary-sub); }
.mobile-nav-cta { padding: 16px 24px; border-bottom: 1px solid var(--border); }
.mobile-nav-cta a {
  display: block; text-align: center; padding: 12px !important;
  background: var(--clr-primary); color: #fff !important;
  border-radius: 10px; font-weight: 400 !important;
  font-size: 14px !important; border-bottom: none !important;
}
@media (max-width: 900px) { .nav-menu { display: none; } .hamburger { display: flex; } }

/* ──────────────────────────────────────────
   LAYOUT UTILITIES
────────────────────────────────────────── */
.page-wrap  { padding-top: 64px; /* nav 높이 */ }
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.container-sm { max-width: var(--max-w-sm); margin: 0 auto; padding: 0 var(--px); }
.section    { padding: var(--sec-py) 0; }
.section--ice { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: var(--clr-dark); }

/* ──────────────────────────────────────────
   HERO — 전 페이지 공통
────────────────────────────────────────── */
.page-hero {
  padding: 112px var(--px) 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 82% 18%, rgba(99,91,255,.11) 0%, transparent 55%),
    radial-gradient(ellipse 55% 65% at 96% 58%, rgba(234,34,97,.06) 0%, transparent 48%),
    radial-gradient(ellipse 45% 38% at 14% 11%, rgba(240,238,255,.80) 0%, transparent 50%),
    radial-gradient(ellipse 55% 50% at 43% -6%, rgba(199,196,255,.50) 0%, transparent 50%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,.88) 0%, transparent 60%);
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
}

/* Hero — 중앙 정렬 (기본) */
.page-hero--center .page-hero-inner { text-align: center; }
.page-hero--center .page-hero-sub   { margin: 0 auto 32px; }
.page-hero--center .page-hero-cta   { justify-content: center; }

/* Hero — Split 레이아웃 */
.page-hero--split .page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: start;
}

.page-hero-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase;
  color: var(--clr-primary); background: var(--clr-primary-sub);
  border-radius: var(--r-pill); padding: 4px 12px; margin-bottom: 20px;
}
.page-hero-h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800; line-height: 1.08; letter-spacing: -.035em;
  color: var(--text); margin-bottom: 20px;
}
.page-hero-h1 em {
  font-style: normal; color: var(--clr-primary);
}
.page-hero-sub {
  font-size: 17px; line-height: 1.78; color: var(--muted);
  margin-bottom: 36px; max-width: 600px;
}
.page-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero-meta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px;
}
.page-hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  font-size: 13px; font-weight: 600; color: var(--text2);
}
.page-hero-chip i { color: var(--clr-primary); font-size: 13px; }

/* Hero Right — KPI 카드 패널 */
.page-hero-kpi-panel {
  display: flex; flex-direction: column; gap: 12px;
}
.page-hero-kpi-card {
  background: var(--clr-dark); color: #fff;
  border-radius: var(--r-xl); padding: 20px 24px;
}
.page-hero-kpi-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; opacity: .55; margin-bottom: 6px;
}
.page-hero-kpi-value {
  font-size: 28px; font-weight: 800; letter-spacing: -.02em;
  line-height: 1; margin-bottom: 4px;
}
.page-hero-kpi-sub { font-size: 12px; opacity: .6; line-height: 1.4; }

/* ──────────────────────────────────────────
   SECTION HEADER (공통 eyebrow + h2)
────────────────────────────────────────── */
.sec-header { text-align: center; margin-bottom: 56px; }
.sec-header--left { text-align: left; }
.sec-eyebrow {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase;
  color: var(--clr-primary); margin-bottom: 14px;
}
.sec-h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800; line-height: 1.12; letter-spacing: -.03em;
  color: var(--text); margin-bottom: 16px;
}
.sec-h2 em { font-style: normal; color: var(--clr-primary); }
.sec-sub {
  font-size: 16px; line-height: 1.78; color: var(--muted);
  max-width: 620px; margin: 0 auto;
}
.sec-header--left .sec-sub { margin: 0; }

/* ──────────────────────────────────────────
   BUTTONS
────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-lg);
  font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all .2s;
  border: none; cursor: pointer; white-space: nowrap;
  font-family: inherit;
}
.btn--primary {
  background: var(--clr-primary); color: #fff;
  box-shadow: 0 4px 16px rgba(99,91,255,.28);
}
.btn--primary:hover { background: var(--clr-primary-deep); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,91,255,.36); }
.btn--secondary {
  background: transparent; color: var(--text2);
  border: 1.5px solid var(--border2);
}
.btn--secondary:hover { border-color: var(--clr-primary-mid); color: var(--clr-primary); }
.btn--white {
  background: #fff; color: var(--clr-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn--ghost {
  background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.btn--ghost:hover { background: rgba(255,255,255,.25); }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 15px 32px; font-size: 16px; }

/* ──────────────────────────────────────────
   CARD GRID — 2/3/4열
────────────────────────────────────────── */
.card-grid       { display: grid; gap: 20px; }
.card-grid--2    { grid-template-columns: repeat(2, 1fr); }
.card-grid--3    { grid-template-columns: repeat(3, 1fr); }
.card-grid--4    { grid-template-columns: repeat(4, 1fr); }
.card-grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* 기본 카드 */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card--ice { background: var(--bg2); }
.card--dark { background: var(--clr-dark); border-color: transparent; color: #fff; }
.card--accent { background: var(--clr-primary); border-color: transparent; color: #fff; }

.card-icon { font-size: 28px; margin-bottom: 14px; }
.card-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.02em; margin-bottom: 8px; }
.card--dark .card-title,
.card--accent .card-title { color: #fff; }
.card-desc { font-size: 14px; line-height: 1.65; color: var(--muted2); }
.card--dark .card-desc  { color: rgba(255,255,255,.7); }
.card--accent .card-desc { color: rgba(255,255,255,.8); }

/* ──────────────────────────────────────────
   FEATURE GRID (이전 구 css들 공통 패턴 통일)
────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.feature-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 24px 22px;
  transition: box-shadow .2s;
}
.feature-card:hover { box-shadow: var(--shadow-2); }
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--r-lg);
  background: var(--clr-primary-sub); color: var(--clr-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.feature-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.feature-desc { font-size: 13px; color: var(--muted2); line-height: 1.65; }

/* ──────────────────────────────────────────
   SPLIT SECTION (교번 2-컬럼)
────────────────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 72px;
  align-items: center;
  padding: var(--sec-py) 0;
  border-bottom: 1px solid var(--border);
}
.split-section:last-child { border-bottom: none; }
.split-section--reverse { grid-template-columns: 440px 1fr; }
.split-section--reverse .split-text  { order: 2; }
.split-section--reverse .split-visual { order: 1; }
.split-num {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  color: var(--clr-primary); margin-bottom: 10px;
  text-transform: uppercase;
}
.split-h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800; color: var(--text);
  letter-spacing: -.03em; line-height: 1.18;
  margin-bottom: 14px;
}
.split-desc { font-size: 15.5px; line-height: 1.75; color: var(--muted2); margin-bottom: 20px; }
.split-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.split-list li {
  font-size: 14px; color: var(--text2);
  padding-left: 22px; position: relative; line-height: 1.5;
}
.split-list li::before { content: '→'; position: absolute; left: 0; color: var(--clr-primary); font-weight: 700; }

/* Split Visual Card */
.split-visual-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: 36px 32px; text-align: center;
}
.split-visual-card--dark {
  background: var(--clr-dark); border-color: transparent;
}
.split-visual-icon { font-size: 44px; margin-bottom: 16px; }
.split-visual-title {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: 20px;
}
.split-visual-card--dark .split-visual-title { color: #fff; }
.split-visual-items { display: flex; flex-direction: column; gap: 8px; }
.split-visual-item {
  font-size: 14px; font-weight: 500; color: var(--text2);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 16px;
}
.split-visual-card--dark .split-visual-item {
  color: rgba(255,255,255,.85); background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

/* ──────────────────────────────────────────
   PROCESS STEPS — 4열 그리드
────────────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: 28px 22px;
}
.process-num {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  color: var(--clr-primary); margin-bottom: 12px; text-transform: uppercase;
}
.process-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.02em; margin-bottom: 10px; }
.process-desc { font-size: 13.5px; line-height: 1.68; color: var(--muted); margin-bottom: 14px; }
.process-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--clr-primary); background: var(--clr-primary-sub);
  border: 1px solid var(--clr-primary-mid); border-radius: var(--r-sm);
  padding: 3px 10px;
}

/* ──────────────────────────────────────────
   STEP LIST — 세로형 타임라인
────────────────────────────────────────── */
.step-list { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex; gap: 20px;
  padding: 28px 0; border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--clr-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.step-body { flex: 1; }
.step-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.step-desc  { font-size: 14px; color: var(--muted2); line-height: 1.65; }

/* ──────────────────────────────────────────
   INCLUDES GRID — 2열 8카드
────────────────────────────────────────── */
.includes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.includes-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: 26px 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .2s, transform .2s;
}
.includes-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.includes-icon { font-size: 28px; }
.includes-title { font-size: 15px; font-weight: 700; color: var(--text); }
.includes-desc  { font-size: 13.5px; line-height: 1.65; color: var(--muted2); }

/* ──────────────────────────────────────────
   COMPARE TABLE
────────────────────────────────────────── */
.compare-wrap {
  border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; margin-top: 24px;
}
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.compare-table th {
  background: var(--bg2); padding: 13px 18px;
  text-align: left; font-size: 11px; font-weight: 700;
  color: var(--muted2); letter-spacing: .08em;
  text-transform: uppercase; border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  color: var(--text2); vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg2); }
.badge-y { background: #dcfce7; color: #16a34a; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: var(--r-sm); }
.badge-n { background: var(--bg2); color: var(--muted); font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: var(--r-sm); }
.badge-p { background: #fde8ef; color: #c2410c; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: var(--r-sm); }

/* ──────────────────────────────────────────
   FAQ (details/summary)
────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow-2); }
.faq-q {
  font-size: 15px; font-weight: 600; color: var(--text);
  padding: 20px 24px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px; user-select: none;
  transition: color .15s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+'; font-size: 20px; font-weight: 300;
  color: var(--clr-primary); flex-shrink: 0; margin-left: 12px;
  transition: transform .2s;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-q:hover { color: var(--clr-primary); }
.faq-a {
  padding: 0 24px 20px;
  border-top: 1px solid var(--border);
}
.faq-a p {
  font-size: 14px; line-height: 1.75; color: var(--muted2); margin-top: 16px;
}

/* ──────────────────────────────────────────
   PLAN LINK CARDS (A/B/CD 연계)
────────────────────────────────────────── */
.plan-link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-link-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.plan-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill); width: fit-content;
}
.plan-badge--a  { background: #dbeafe; color: #1d4ed8; }
.plan-badge--b  { background: #f3e8ff; color: #7c3aed; }
.plan-badge--cd { background: #dcfce7; color: #15803d; }
.plan-link-title { font-size: 17px; font-weight: 700; color: var(--text); }
.plan-link-desc  { font-size: 14px; line-height: 1.65; color: var(--muted2); flex: 1; }
.plan-link-btn {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--clr-primary); text-decoration: none;
  padding: 8px 0; border-top: 1px solid var(--border);
  margin-top: auto; transition: color .2s;
}
.plan-link-btn:hover { color: var(--clr-primary-deep); }

/* ──────────────────────────────────────────
   CHANNEL CARDS
────────────────────────────────────────── */
.channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.channel-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: 26px 22px;
  transition: box-shadow .2s, transform .2s;
}
.channel-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.channel-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: var(--r-sm); margin-bottom: 14px;
}
.channel-badge--coupang { background: #fee2e2; color: #b91c1c; }
.channel-badge--naver   { background: #dcfce7; color: #15803d; }
.channel-badge--kakao   { background: #fef9c3; color: #854d0e; }
.channel-badge--etc     { background: #e0e7ff; color: #3730a3; }
.channel-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.channel-desc  { font-size: 13px; line-height: 1.6; color: var(--muted2); margin-bottom: 14px; }
.channel-list  { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.channel-list li {
  font-size: 13px; color: var(--text2);
  padding-left: 14px; position: relative; line-height: 1.5;
}
.channel-list li::before { content: '·'; position: absolute; left: 4px; color: var(--clr-primary); font-weight: 900; }

/* ──────────────────────────────────────────
   STAT CARDS
────────────────────────────────────────── */
.stat-row  { display: flex; flex-wrap: wrap; gap: 12px; }
.stat-card {
  flex: 1; min-width: 160px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 20px 22px;
}
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--text); }
.stat-label { font-size: 12px; color: var(--muted2); margin-top: 5px; line-height: 1.4; }

/* ──────────────────────────────────────────
   ALERT / BANNER
────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border-radius: var(--r-lg);
  font-size: 14px; line-height: 1.65;
}
.alert--blue   { background: #eff6ff; border: 1px solid #bfdbfe; }
.alert--green  { background: #f0fdf4; border: 1px solid #bbf7d0; }
.alert--yellow { background: #fffbeb; border: 1px solid #fde68a; }
.alert--red    { background: #fef2f2; border: 1px solid #fecaca; }
.alert-icon  { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-body  { flex: 1; }
.alert-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.alert--blue   .alert-title { color: #1e40af; }
.alert--green  .alert-title { color: #15803d; }
.alert--yellow .alert-title { color: #92400e; }
.alert--red    .alert-title { color: #9f1239; }
.alert-text    { font-size: 13px; color: var(--muted2); }

/* ──────────────────────────────────────────
   PRICING BOX
────────────────────────────────────────── */
.pricing-box {
  background: var(--bg2); border: 2px solid var(--border);
  border-radius: var(--r-2xl); padding: 40px;
}
.pricing-box--featured {
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border-color: #86efac;
}
.pricing-label   { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted2); margin-bottom: 8px; }
.pricing-amount  { display: flex; align-items: baseline; gap: 4px; }
.pricing-currency{ font-size: 24px; font-weight: 700; color: var(--text); }
.pricing-number  { font-size: 56px; font-weight: 800; color: var(--text); letter-spacing: -.04em; line-height: 1; }
.pricing-period  { font-size: 16px; font-weight: 600; color: var(--muted2); }
.pricing-items   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.pricing-item    { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text2); line-height: 1.5; }
.pricing-item i  { color: var(--success); font-size: 13px; margin-top: 1px; flex-shrink: 0; }

/* ──────────────────────────────────────────
   CTA SECTION (공통)
────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #071629 0%, #0A2540 60%, #1a3560 100%);
  padding: 112px var(--px); text-align: center;
}
.cta-section-inner { max-width: 680px; margin: 0 auto; }
.cta-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.cta-h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  color: #fff; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 18px;
}
.cta-desc { font-size: 17px; line-height: 1.75; color: rgba(255,255,255,.75); margin-bottom: 40px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 40px var(--px); text-align: center;
}
.footer-links { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a {
  font-size: 13px; color: var(--muted2); transition: color .2s;
  padding: 10px 12px; /* 탭타겟 44px 확보 */
  min-height: 44px; display: inline-flex; align-items: center;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ──────────────────────────────────────────
   DIVIDER
────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }
.divider--mx { margin: 0 var(--px); }

/* ──────────────────────────────────────────
   BADGE / TAG
────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  padding: 4px 10px; border-radius: var(--r-pill);
}
.badge--primary { background: var(--clr-primary-sub); color: var(--clr-primary); }
.badge--green   { background: #dcfce7; color: #15803d; }
.badge--red     { background: #fee2e2; color: #b91c1c; }
.badge--yellow  { background: #fef9c3; color: #854d0e; }
.badge--purple  { background: #f3e8ff; color: #7c3aed; }
.badge--blue    { background: #dbeafe; color: #1d4ed8; }

/* ──────────────────────────────────────────
   RESPONSIVE — ≤768px (40px 기준)
────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --sec-py: 56px; --px: 20px; }

  /* Hero */
  .page-hero { padding: 88px var(--px) 40px; }
  .page-hero--split .page-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-kpi-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .page-hero-kpi-value { font-size: 22px; }

  /* Grids */
  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .feature-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .process-grid  { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .channel-grid  { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .includes-grid { grid-template-columns: 1fr; gap: 12px; }
  .plan-link-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Split */
  .split-section, .split-section--reverse {
    grid-template-columns: 1fr; gap: 28px;
  }
  .split-section--reverse .split-text,
  .split-section--reverse .split-visual { order: unset; }

  /* Compare */
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 13px; }

  /* Pricing */
  .pricing-items { grid-template-columns: 1fr; }

  /* CTA */
  .cta-section { padding: 64px var(--px); }

  /* Stat */
  .stat-card { min-width: 130px; }
}

/* ──────────────────────────────────────────
   RESPONSIVE — ≤480px (32px 기준)
────────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --sec-py: 40px; --px: 16px; }

  .page-hero { padding: 80px var(--px) 32px; }
  .page-hero-kpi-panel { grid-template-columns: 1fr; }

  .feature-grid  { grid-template-columns: 1fr; }
  .process-grid  { grid-template-columns: 1fr; }
  .channel-grid  { grid-template-columns: 1fr; }

  .cta-section { padding: 48px var(--px); }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 320px; justify-content: center; }

  .faq-q { font-size: 14px; padding: 16px 18px; }
  .faq-a { padding: 0 18px 16px; }

  .pricing-number { font-size: 44px; }

  .stat-row { flex-direction: column; }
  .stat-card { min-width: auto; }
}

/* ──────────────────────────────────────────
   Global safety net
────────────────────────────────────────── */
html, body {
  overflow-x: hidden;
}

.hero-container {
  max-width: 100vw;
  overflow-x: clip;
}

@media (max-width: 767px) {
  .hero-visual,
  [class*="dashboard-mock"],
  [class*="hero-graphic"] {
    display: none !important;
  }

  section {
    min-height: auto !important;
  }

  /* Tailwind 고정 높이/여백 모바일 안전망
     ✅ 올바른 패턴: min-h-[560px] md:min-h-screen
     ❌ 잘못된 패턴: min-h-screen (모바일 breakpoint 없음)
  */

  /* 높이 고정 해제 */
  .min-h-screen,
  .md\:min-h-screen    { min-height: auto !important; }
  .h-screen,
  .md\:h-screen        { height: auto !important; }
  .h-\[900px\],
  .md\:h-\[900px\]     { height: auto !important; }
  .h-\[800px\],
  .md\:h-\[800px\]     { height: auto !important; }
  .min-h-\[800px\],
  .md\:min-h-\[800px\] { min-height: 560px !important; }

  /* 과도한 패딩 제한 */
  .padding-y-\[400px\],
  .md\:padding-y-\[400px\] { padding-top: 48px !important; padding-bottom: 48px !important; }
  .py-96,
  .md\:py-96               { padding-top: 48px !important; padding-bottom: 48px !important; }

  /* 과도한 마진 제한 */
  .mt-\[500px\],
  .md\:mt-\[500px\]    { margin-top: 48px !important; }
  .mb-\[500px\],
  .md\:mb-\[500px\]    { margin-bottom: 48px !important; }

  /* absolute 포지션 / translate 모바일 안전망
     모바일에서 뷰포트 밖으로 튀어나오는 요소 방지
     ✅ 올바른 패턴: relative 부모 + hidden overflow, 또는 md:absolute
     ❌ 잘못된 패턴: absolute top-[큰값] / -right-[큰값] 모바일 breakpoint 없음
  */

  /* absolute 데코 요소 — 부모 밖 넘침 차단 */
  .absolute {
    max-width: 100% !important;
    overflow: hidden;
  }

  /* 음수 방향 absolute (뷰포트 밖으로 밀려나는 패턴) */
  .-right-\[100px\], .-right-\[200px\], .-right-\[300px\],
  .-right-\[400px\], .-right-\[500px\],
  .-left-\[100px\],  .-left-\[200px\],  .-left-\[300px\],
  .-left-\[400px\],  .-left-\[500px\],
  .-top-\[100px\],   .-top-\[200px\],   .-top-\[300px\],
  .-bottom-\[100px\],-bottom-\[200px\], .-bottom-\[300px\] {
    display: none !important;
  }

  /* 큰 translate 값 — 요소를 화면 밖으로 이동시키는 패턴 */
  .translate-x-\[100px\], .translate-x-\[200px\], .translate-x-\[300px\],
  .translate-x-\[400px\], .translate-x-\[500px\],
  .-translate-x-\[100px\], .-translate-x-\[200px\], .-translate-x-\[300px\],
  .-translate-x-\[400px\], .-translate-x-\[500px\],
  .translate-y-\[100px\], .translate-y-\[200px\], .translate-y-\[300px\],
  .translate-y-\[400px\], .translate-y-\[500px\],
  .-translate-y-\[100px\], .-translate-y-\[200px\], .-translate-y-\[300px\],
  .-translate-y-\[400px\], .-translate-y-\[500px\] {
    transform: none !important;
  }

  /* md: 이상에서만 absolute를 의도한 경우 모바일에서 static으로 */
  .md\:absolute { position: static !important; }

  /* ✅ 권장 패턴 지원
     <div class="relative md:static overflow-hidden">
       <HeroVisual class="hidden md:block absolute right-0 top-1/2 -translate-y-1/2" />
       <HeroVisualMobile class="block md:hidden mt-8" />
     </div>
  */

  /* 래퍼: 모바일에서 relative → static, overflow-hidden 유지 */
  .relative.md\:static  { position: static !important; }
  .overflow-hidden       { overflow: hidden !important; }

  /* 데스크톱 전용 비주얼 — 모바일에서 완전히 숨김 */
  .hidden.md\:block      { display: none !important; }

  /* 모바일 전용 비주얼 — 모바일에서 반드시 표시 */
  .block.md\:hidden      { display: block !important; }

  /* top-1/2 + -translate-y-1/2 수직 중앙 패턴 — 모바일 해제 */
  .top-1\/2              { top: auto !important; }
  .-translate-y-1\/2     { transform: none !important; }
  .translate-y-1\/2      { transform: none !important; }
}
