/* 공개 랜딩 (#/, #/home) — 명세서 §5.1(구현된 기능만), §12.13 */

/* ---------- 비로그인 셸: LNB 는 그대로 보이고, 헤더의 검색·즐겨찾기만 숨긴다 ---------- */
body.anon .search-form,
body.anon #headerFavorites { display: none; }
body.anon .header { grid-template-columns: minmax(0, 1fr) auto; padding: 0 24px; }
body.anon .header-brand { display: inline; }
body.anon .header-left { gap: 10px; }

/* 비로그인 랜딩은 LNB 폭만큼 좁아진 본문에서도 넘치지 않게 한다 */
body.anon .lp-page { padding-left: 24px; padding-right: 24px; }

/* ---------- 히어로 ---------- */
.lp-page { max-width: 1140px; padding-top: 40px; }
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
  padding: 28px 0 44px;
  border-bottom: 1px solid var(--line);
}
.lp-hero-copy { min-width: 0; }
.lp-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}
.lp-title {
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.lp-tagline {
  margin-top: 14px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.lp-lede {
  margin-top: 14px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lp-cta .btn { min-height: 44px; padding: 0 22px; font-size: 14px; }
.lp-cta-primary { min-width: 160px; }
.lp-hero-note { margin-top: 12px; font-size: 12px; color: var(--ink-3); }

/* 히어로 그래픽 — 외부 이미지 없이 CSS·인라인 SVG 로만 */
.lp-hero-art {
  min-width: 0;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}
.lp-hero-art-head { display: flex; align-items: center; gap: 8px; }
.lp-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: 0 0 auto; }
.lp-hero-art-title { font-size: 13px; font-weight: 700; }
.lp-hero-art-tag {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--pill);
  background: var(--cyan-soft);
  color: #026c86;
  font-size: 10px;
  font-weight: 700;
}
.lp-hero-chart { margin-top: 10px; }
.lp-hero-chart svg { display: block; width: 100%; height: auto; }
.lp-hero-art-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px;
  font-size: 11px; color: var(--ink-3);
}
.lp-hero-art-line { flex: 1 1 auto; height: 1px; background: var(--line); }

/* ---------- 공통 섹션 ---------- */
.lp-section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.lp-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.lp-section-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.lp-section-head p { margin-top: 6px; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.lp-link { font-size: 13px; font-weight: 700; color: var(--cyan); white-space: nowrap; }
.lp-link:hover { text-decoration: underline; }

/* ---------- 기능 6개 ---------- */
.lp-feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0; padding: 0;
}
.lp-feature {
  display: flex; align-items: flex-start; gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lp-feature:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.lp-feature-icon {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: var(--cyan-soft);
  color: #026c86;
  font-size: 18px; font-weight: 700;
}
.lp-feature-body { min-width: 0; }
.lp-feature-body h3 {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 15px; font-weight: 800;
  overflow-wrap: anywhere;
}
.lp-feature-body p { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.lp-badge {
  padding: 2px 7px;
  border-radius: var(--pill);
  background: var(--chip);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 700;
}

/* ---------- 작동 방식 ---------- */
.lp-how { border-bottom: 0; }
.lp-step-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0; padding: 0;
  counter-reset: lp-step;
}
.lp-step {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.lp-step-n {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 12px; font-weight: 800;
}
.lp-step h3 { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.lp-step p { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- 요금 요약 ---------- */
.lp-plans[hidden] { display: none; }
.lp-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lp-plan {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.lp-plan h3 { font-size: 14px; font-weight: 800; }
.lp-plan-price {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.lp-plan-limit { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--ink-3); overflow-wrap: anywhere; }

/* ---------- 고지·법적 링크 ---------- */
.lp-footer {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-top: 40px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.lp-notice { min-width: 0; max-width: 720px; }
.lp-notice strong { font-size: 13px; font-weight: 800; }
.lp-notice p { margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--ink-3); overflow-wrap: anywhere; }
.lp-notice a { color: var(--ink-2); text-decoration: underline; }
.lp-notice a:hover { color: var(--cyan); }
.lp-legal { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.lp-legal a:hover { color: var(--cyan); text-decoration: underline; }

/* ---------- 타깃 탭 히어로 (§12.16) ---------- */
.lp-target-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.lp-target-tab {
  min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  overflow-wrap: anywhere;
}
.lp-target-tab:hover { border-color: var(--line-strong); color: var(--ink); }
.lp-target-tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.lp-hero-pane { min-width: 0; }
.lp-highlight-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin: 18px 0 0; padding: 0; list-style: none;
}
.lp-highlight {
  display: grid; gap: 3px; height: 100%; box-sizing: border-box;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md, 10px);
  background: var(--bg-soft); color: var(--ink);
}
.lp-highlight:hover { border-color: var(--cyan); }
.lp-highlight-icon { font-size: 14px; color: var(--cyan); }
.lp-highlight strong { font-size: 12px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.lp-highlight-body { font-size: 11px; line-height: 1.5; color: var(--ink-3); overflow-wrap: anywhere; }
.lp-highlight-link { margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--cyan); }

/* ---------- 문제-해결 4분면 ---------- */
.lp-quad-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lp-quad {
  min-width: 0; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r-lg, 14px);
  background: var(--surface);
}
.lp-quad-title { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.lp-quad-problem {
  margin-top: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-size: 12px; line-height: 1.6; color: var(--ink-3); overflow-wrap: anywhere;
}
.lp-quad-cards { display: grid; gap: 8px; margin-top: 12px; list-style: none; }
.lp-quad-card {
  display: grid; gap: 2px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: var(--r-md, 10px);
  background: var(--bg-soft); color: var(--ink);
}
.lp-quad-card:hover { border-color: var(--cyan); }
.lp-quad-card strong { font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.lp-quad-card span { font-size: 11px; line-height: 1.5; color: var(--ink-3); overflow-wrap: anywhere; }
.lp-quad-link { font-weight: 700; color: var(--cyan) !important; }

/* ---------- 엔터프라이즈 ---------- */
.lp-enterprise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.lp-enterprise-card {
  display: grid; gap: 8px; align-content: start;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg, 14px);
  background: var(--surface);
}
.lp-enterprise-card h3 { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.lp-enterprise-card p { font-size: 12px; line-height: 1.6; color: var(--ink-3); overflow-wrap: anywhere; }
.lp-enterprise-card .lp-badge { justify-self: start; }
.lp-enterprise-card .lp-link { justify-self: start; }

/* ---------- 리소스 ---------- */
.lp-resources { border-bottom: 1px solid var(--line); }
.lp-resource-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.lp-resource-links a { color: var(--ink-2); }
.lp-resource-links a:hover { color: var(--cyan); text-decoration: underline; }
.lp-resource-links span { color: var(--ink-3); }

/* ---------- 반응형 ---------- */
@media (max-width: 980px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lp-title { font-size: 52px; }
  .lp-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-quad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-enterprise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .lp-page { padding-top: 24px; }
  .lp-title { font-size: 44px; }
  .lp-tagline { font-size: 19px; }
  .lp-feature-grid, .lp-step-list, .lp-plan-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-highlight-grid, .lp-quad-grid, .lp-enterprise-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-section { padding: 32px 0; }
  .lp-footer { padding: 18px; }
}
