/* 홍보 사이트 전용 규칙. V6 코어(assets/impacsys-v6.css)는 고치지 않고 여기서만 덧붙인다.
   대비: 본문 링크·강조 글자는 --accent 대신 --accent-pressed(#0062c4)를 쓴다 —
   --accent 는 --canvas 위에서 4.5:1 에 못 미친다(tests/site.test.mjs 가 대조). --tertiary 는 글자에 쓰지 않는다. */

body { min-width: 0; font-size: 15px; }
h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; }
p, li, td, th { word-break: keep-all; overflow-wrap: anywhere; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--solid);
  color: var(--accent-pressed);
  box-shadow: var(--shadow-card);
  font-weight: 760;
}
.skip-link:focus { top: 12px; }

.v6-brand { min-width: 0; }
.v6-nav a[aria-current] {
  color: var(--text);
  background: white;
  box-shadow: var(--shadow-hairline), 0 8px 18px rgba(0,0,0,0.05);
}

/* 좁은 화면 메뉴(details) — 넓은 화면에서는 숨긴다. 숨긴 쪽은 display:none 이라 랜드마크가 겹치지 않는다 */
.promo-menu { display: none; position: relative; }
.promo-menu > summary {
  list-style: none;
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--solid);
  box-shadow: var(--shadow-hairline);
  font-weight: 760;
  cursor: pointer;
}
.promo-menu > summary::-webkit-details-marker { display: none; }
.promo-menu > summary::before { content: "☰"; margin-right: 6px; }
.promo-menu[open] > summary::before { content: "✕"; }
.promo-menu > nav {
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 40;
  min-width: 200px;
  display: grid;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--solid);
  box-shadow: var(--shadow-card);
}
.promo-menu > nav a { padding: 10px 12px; border-radius: var(--radius-md); color: var(--text); font-weight: 720; }
.promo-menu > nav a[aria-current] { background: var(--accent-soft); color: var(--accent-pressed); }

/* 모바일 하단 고정 [시연 신청] */
.promo-mobile-cta { display: none; }
.promo-footer .promo-mobile-cta { text-decoration: none; }

@media (max-width: 720px) {
  .promo-nav-wide, .promo-header-extra { display: none; }
  .promo-menu { display: block; }
  .v6-topline { grid-template-columns: minmax(0, 1fr) auto; }
  .promo-mobile-cta {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 35;
    justify-content: center;
    height: 48px;
  }
  body { padding-bottom: 80px; }
}

.promo-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main { display: block; }
main:focus { outline: none; }
.promo-section { padding: 64px 0 0; }
.promo-section:last-child { padding-bottom: 72px; }
.section-head { max-width: 760px; margin-bottom: 24px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--accent-pressed); font-size: 14px; font-weight: 760; }
.promo-section h2 { font-size: 26px; line-height: 1.3; }
.lead { margin: 10px 0 0; color: var(--secondary); font-size: 16px; }
.hero-title { font-size: 36px; }
.hero-panel { margin-top: 32px; }

main p a,
main td a,
.link-more,
.promo-footer a { color: var(--accent-pressed); font-weight: 720; text-decoration: underline; text-underline-offset: 3px; }
.link-more { display: inline-block; margin-top: 10px; }

.card-body > h3 + p,
.card-body > h2 + p { margin: 8px 0 0; color: var(--secondary); }
.card-body > p:last-child { margin-bottom: 0; }

.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-pressed); font-weight: 800; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { counter-increment: step; }
.steps .card-body::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: var(--accent-pressed);
  background: var(--accent-soft);
  font-weight: 800;
}
.num { display: block; margin-bottom: 8px; color: var(--accent-pressed); font-weight: 800; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--accent-pressed);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 760;
}

.promo-subhead { margin: 32px 0 12px; font-size: 18px; }
.feature-group + .feature-group { margin-top: 40px; }
.feature-group > h2 { margin-bottom: 16px; font-size: 22px; }
.card-body > .tag { margin-bottom: 10px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: var(--solid); box-shadow: var(--shadow-card); }
.promo-table { width: 100%; min-width: 480px; border-collapse: collapse; }
.promo-table caption { padding: 14px 16px 0; text-align: left; color: var(--secondary); }
.promo-table th, .promo-table td { padding: 12px 16px; border-bottom: 1px solid var(--separator-soft); text-align: left; vertical-align: top; }
.promo-table thead th { color: var(--secondary); font-size: 13px; font-weight: 760; }
.promo-table tbody tr:last-child > * { border-bottom: 0; }

.faq { border-radius: var(--radius-lg); background: var(--solid); box-shadow: var(--shadow-card); }
.faq + .faq { margin-top: 10px; }
.faq summary { padding: 16px; cursor: pointer; font-weight: 760; }
.faq > p { margin: 0; padding: 0 16px 16px; color: var(--text-soft); }

.plan-card { border: 2px solid var(--accent); }
.card-body > .plan-price { margin: 8px 0 14px; color: var(--text); font-size: 20px; font-weight: 800; }

.cta { padding: 32px 24px; border-radius: var(--radius-lg); background: var(--solid); box-shadow: var(--shadow-card); text-align: center; }
.cta .hero-actions { justify-content: center; }
.note { margin: 14px 0 0; color: var(--secondary); font-size: 14px; }

.promo-footer { margin-top: 72px; padding: 32px 0 40px; border-top: 1px solid var(--separator); color: var(--secondary); font-size: 14px; }
.promo-footer-name { color: var(--text); font-weight: 800; }
.promo-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; padding: 0; list-style: none; }
.promo-footer p { margin: 0 0 6px; }

@media (max-width: 900px) {
  .hero-title { font-size: 28px; }
  .promo-section { padding-top: 48px; }
  .promo-section h2 { font-size: 22px; }
}
@media (max-width: 480px) {
  .promo-wrap { padding: 0 16px; }
  .hero-panel { padding: 18px; }
  .hero-title { font-size: 24px; }
}

.promo-ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.card-body > ul + p, .card-body > ol + p { margin: 14px 0 0; }
.card-body > p + h2 { margin-top: 24px; }
.card-body > h2 + p, .card-body > h2 + ul { margin-top: 10px; }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.pricing-grid > section > h2 { margin-bottom: 12px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } }
.card-body > .eyebrow + h2 { margin-top: 0; }
.plan-card h2 { font-size: 24px; }
[id] { scroll-margin-top: 96px; } /* 고정 머리글에 앵커 대상이 가리지 않게 */
.hero-side { align-content: center; }
.check-list { align-content: start; }
.promo-table th[scope="row"] { white-space: nowrap; }

/* 하위 페이지 머리: 이동 경로 + 제목 */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--secondary); font-size: 14px; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--text); font-weight: 720; }
.page-head { padding: 20px 0 8px; margin-bottom: 24px; }
.page-head h1 { font-size: 32px; line-height: 1.3; }
@media (max-width: 900px) { .page-head h1 { font-size: 24px; } }

/* 기능 하위: 알림톡 화면 예시 */
.feature-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.feature-split h2 { font-size: 26px; line-height: 1.3; }
.feature-split .check-list { margin-top: 16px; }
.phone-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.phone { margin: 0; }
.phone figcaption { margin-bottom: 8px; color: var(--secondary); font-size: 13px; }
.phone-screen { padding: 16px; border-radius: 24px; background: var(--solid); box-shadow: var(--shadow-card); font-size: 14px; }
.phone-screen p { margin: 0 0 10px; }
.phone-strong { font-weight: 800; }
.phone-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-pressed); font-size: 12px; font-weight: 760; }
.phone-btn { display: block; padding: 8px; border-radius: var(--radius-md); background: var(--canvas); text-align: center; font-weight: 720; }
.phone-btn.primary { background: var(--accent-pressed); color: #fff; }
.phone-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 900px) { .feature-split, .phone-pair { grid-template-columns: 1fr; } }
.promo-section > h2 { margin-bottom: 16px; }

/* 자주 묻는 질문: 주제 거르기(:target, 스크립트 없음) */
.faq-anchor { display: block; }
.faq-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.faq-tabs a { padding: 6px 14px; border-radius: 999px; background: var(--solid); box-shadow: var(--shadow-hairline); color: var(--text); font-weight: 720; }
.faq-topics:not(:has(.faq-anchor:target)) .faq-tab-all,
#t-feature:target ~ .faq-tabs .faq-tab-feature,
#t-security:target ~ .faq-tabs .faq-tab-security,
#t-contract:target ~ .faq-tabs .faq-tab-contract,
#t-member:target ~ .faq-tabs .faq-tab-member { background: var(--accent-pressed); color: #fff; }
#t-feature:target ~ .faq-list .faq:not([data-topic="feature"]),
#t-security:target ~ .faq-list .faq:not([data-topic="security"]),
#t-contract:target ~ .faq-list .faq:not([data-topic="contract"]),
#t-member:target ~ .faq-list .faq:not([data-topic="member"]) { display: none; }

/* 운영 가이드·약관 */
.guide-card-title { margin: 10px 0 0; font-size: 18px; line-height: 1.4; }
.guide-card-title a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.answer, .toc { margin-bottom: 20px; }
.guide-section, .legal-body > section { margin-top: 28px; }
.guide-section h2, .legal-body > section h2 { font-size: 20px; }
.legal-body { max-width: 760px; }
.toc a { color: var(--accent-pressed); text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.not-found { padding: 72px 0 24px; }
.not-found-code { margin: 0; color: var(--accent-pressed); font-size: 56px; font-weight: 800; }
