@charset "utf-8";
/* ============================================================================
   API 연동 소개 랜딩 (/board/apiIntro) 전용 스타일
   - 2026-07-13 신규. PC/모바일 공용(하나의 소스), .api-lp 스코프로 기존 화면 무영향.
   - 접근성: WCAG 2.2 AA. 브랜드 민트(#15CED1)는 흰 텍스트 대비 1.97:1로 미달이므로
     CTA는 다크 민트(#0F7A7C, 흰 텍스트 5.13:1)를 사용하고 민트는 액센트로만 쓴다.
   - 새 UI 라이브러리/외부 폰트/슬라이더 미사용.
   ========================================================================== */

.api-lp {
    --lp-cta:        #0F7A7C;  /* CTA 배경(흰 텍스트 5.13:1 AA) */
    --lp-cta-hover:  #0B6062;
    --lp-accent:     #15CED1;  /* 브랜드 민트 — 장식/테두리/아이콘 전용(텍스트 배경 금지) */
    --lp-ink:        #1F2427;  /* 본문 텍스트(흰 배경 13.9:1) */
    --lp-ink-sub:    #4B5459;  /* 보조 텍스트(흰 배경 7.5:1) */
    --lp-line:       #E2E8EA;
    --lp-surface:    #F5FAFA;
    --lp-navy:       #012C5F;

    color: var(--lp-ink);
    font-size: 16px;
    line-height: 1.65;
    word-break: keep-all;
}

/* 본문 컨테이너 : 기존 토큰(web_container) 범위에 맞춘 1120~1200 */
.api-lp .lp-inner { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* PC 공개 셸(.subWrap01)에서는 현재 섹션(API) 서브메뉴가 상시 노출된다.
   .sub_menuWrap 은 position:absolute(높이 61px)라 본문을 덮으므로 그만큼 내려준다.
   모바일 공개 셸(.lp-shell)에는 서브메뉴가 없으므로 적용되지 않는다. */
.subWrap01 .api-lp { padding-top: 61px; }

/* 본문 바로가기 (skip link) */
.api-lp-skip {
    position: absolute; left: 0; top: -60px; z-index: 1000;
    padding: 12px 18px; background: var(--lp-navy); color: #fff; font-weight: 700;
    text-decoration: none; border-radius: 0 0 8px 0;
    transition: top .15s ease;
}
.api-lp-skip:focus { top: 0; color: #fff; }

/* 포커스 표시(전역 outline:none 무력화) */
.api-lp a:focus-visible,
.api-lp button:focus-visible,
.api-lp summary:focus-visible,
.api-lp-skip:focus-visible {
    outline: 3px solid var(--lp-navy);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 섹션 공통 */
.api-lp section { padding: 64px 0; border-top: 1px solid var(--lp-line); }
.api-lp section:first-of-type { border-top: 0; }
.api-lp h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.35; font-weight: 800; color: var(--lp-ink); letter-spacing: -0.01em; }
.api-lp h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--lp-ink); }
.api-lp .lp-lead { margin: 0 0 28px; font-size: 17px; color: var(--lp-ink-sub); }
.api-lp p { margin: 0 0 8px; }

/* breadcrumb */
.api-lp-crumb { padding: 14px 0; font-size: 13px; color: var(--lp-ink-sub); }
.api-lp-crumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.api-lp-crumb a { color: var(--lp-ink-sub); text-decoration: underline; }
.api-lp-crumb a:hover { color: var(--lp-ink); }
.api-lp-crumb li + li::before { content: "›"; margin-right: 6px; color: #9AA4A8; }
.api-lp-crumb [aria-current="page"] { color: var(--lp-ink); font-weight: 700; }

/* ── CTA 버튼 ───────────────────────────────────────────────────────── */
.api-lp .lp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 12px 26px; box-sizing: border-box;
    font-size: 16px; font-weight: 700; line-height: 1.3; text-align: center;
    border-radius: 8px; border: 2px solid transparent; cursor: pointer;
    text-decoration: none; transition: background-color .15s ease, color .15s ease;
}
.api-lp .lp-btn--primary { background: var(--lp-cta); color: #fff; }
.api-lp .lp-btn--primary:hover { background: var(--lp-cta-hover); color: #fff; }
.api-lp .lp-btn--ghost { background: #fff; color: var(--lp-cta); border-color: var(--lp-cta); }
.api-lp .lp-btn--ghost:hover { background: var(--lp-surface); color: var(--lp-cta-hover); }
.api-lp .lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
/* 히어로를 제외한 섹션은 제목·리드가 가운데 정렬이므로 CTA 도 가운데 (전 폭 공통) */
.api-lp > section:not(.api-lp-hero) .lp-ctas { justify-content: center; }
.api-lp .lp-note { margin: 0; font-size: 14px; color: var(--lp-ink-sub); }

/* ── 히어로 (PC 55:45) ──────────────────────────────────────────────── */
.api-lp-hero { padding: 44px 0 60px; background: linear-gradient(180deg, var(--lp-surface) 0%, #fff 100%); }
.api-lp-hero .lp-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 44px; align-items: center; }
.api-lp-hero .lp-eyebrow {
    display: inline-block; margin: 0 0 12px; padding: 6px 12px;
    font-size: 12px; font-weight: 800; letter-spacing: .08em;
    color: #0B6062; background: #E3F7F7; border: 1px solid var(--lp-accent); border-radius: 999px;
}
.api-lp-hero h1 { margin: 0 0 16px; font-size: 40px; line-height: 1.28; font-weight: 800; letter-spacing: -0.02em; color: var(--lp-ink); }
.api-lp-hero .lp-desc { margin: 0; font-size: 17px; color: var(--lp-ink-sub); }

/* 구성도(텍스트 기반 — 이미지 없음 → CLS 0) */
.api-lp-flow { margin: 0; padding: 22px; background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; box-shadow: 0 6px 24px rgba(1,44,95,.06); }
.api-lp-flow ol { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.api-lp-flow li {
    position: relative; padding: 14px 16px 14px 52px;
    background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 10px;
    font-weight: 700; font-size: 15px;
}
.api-lp-flow li::before {
    counter-increment: flow; content: counter(flow);
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--lp-cta); color: #fff; font-size: 13px; font-weight: 800;
}
.api-lp-flow li + li::after {
    content: ""; position: absolute; left: 26px; top: -8px; width: 2px; height: 8px; background: var(--lp-accent);
}

/* ── 제공 범위 요약 (4열) ───────────────────────────────────────────── */
.api-lp-summary { background: var(--lp-surface); }
.api-lp-summary .lp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.api-lp-summary .lp-card { padding: 20px; background: #fff; border: 1px solid var(--lp-line); border-top: 3px solid var(--lp-accent); border-radius: 12px; }
.api-lp-summary .lp-card strong { display: block; margin-bottom: 4px; font-size: 16px; }
.api-lp-summary .lp-card span { font-size: 14px; color: var(--lp-ink-sub); }

/* ── 카드 그리드 (적용 사례 4열 / 기능 3열×2행) ─────────────────────── */
.api-lp .lp-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.api-lp .lp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.api-lp .lp-item { padding: 22px; background: #fff; border: 1px solid var(--lp-line); border-radius: 12px; }
.api-lp .lp-item p { margin: 0; font-size: 15px; color: var(--lp-ink-sub); }
.api-lp .lp-item .lp-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin-bottom: 12px;
    background: #E3F7F7; border: 1px solid var(--lp-accent); border-radius: 9px;
    font-size: 15px; font-weight: 800; color: #0B6062;
}

/* ── 절차 타임라인 ──────────────────────────────────────────────────── */
.api-lp-process { background: var(--lp-surface); }
.api-lp-process ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.api-lp-process li {
    position: relative; padding: 22px 20px 20px; background: #fff;
    border: 1px solid var(--lp-line); border-radius: 12px;
}
.api-lp-process li::before {
    counter-increment: step; content: "STEP " counter(step);
    display: inline-block; margin-bottom: 8px; padding: 4px 10px;
    font-size: 11px; font-weight: 800; letter-spacing: .06em;
    color: #fff; background: var(--lp-cta); border-radius: 999px;
}
.api-lp-process li strong { display: block; margin-bottom: 4px; font-size: 16px; }
.api-lp-process li span { font-size: 14px; color: var(--lp-ink-sub); }

/* ── 준비사항 ───────────────────────────────────────────────────────── */
.api-lp-ready .lp-check { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.api-lp-ready .lp-check li {
    position: relative; padding: 14px 16px 14px 44px;
    background: #fff; border: 1px solid var(--lp-line); border-radius: 10px; font-size: 15px;
}
.api-lp-ready .lp-check li::before {
    content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--lp-cta); color: #fff; font-size: 12px; font-weight: 800;
}
.api-lp-callout {
    margin: 0 0 22px; padding: 18px 20px;
    background: #FFF8E8; border: 1px solid #F0D089; border-left: 5px solid #B5820B; border-radius: 10px;
    font-size: 15px; color: #4A3A12;
}
.api-lp-callout strong { color: #4A3A12; }

/* ── 요금/정책/가이드 ───────────────────────────────────────────────── */
.api-lp-panel { padding: 26px; background: #fff; border: 1px solid var(--lp-line); border-radius: 12px; }
.api-lp .lp-policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 22px; padding: 0; list-style: none; }

/* ── FAQ (details/summary : 키보드·스크린리더 기본지원) ─────────────── */
.api-lp-faq .lp-faq-list { border-top: 1px solid var(--lp-line); }
.api-lp-faq details { border-bottom: 1px solid var(--lp-line); background: #fff; }
.api-lp-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 60px; padding: 16px 4px; cursor: pointer;
    font-size: 17px; font-weight: 700; color: var(--lp-ink);
    list-style: none;
}
.api-lp-faq summary::-webkit-details-marker { display: none; }
.api-lp-faq summary::after {
    content: ""; flex: 0 0 auto; width: 12px; height: 12px; margin-right: 6px;
    border-right: 2px solid var(--lp-cta); border-bottom: 2px solid var(--lp-cta);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .18s ease;
}
.api-lp-faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.api-lp-faq .lp-faq-a { padding: 0 4px 20px; font-size: 15px; color: var(--lp-ink-sub); }

/* ── 마지막 CTA ─────────────────────────────────────────────────────── */
.api-lp-final { background: var(--lp-navy); border-top: 0; }
.api-lp-final h2, .api-lp-final p { color: #fff; }          /* navy 위 흰 텍스트 13.3:1 */
.api-lp-final p { color: #D6E2F0; }
.api-lp-final .lp-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.api-lp-final .lp-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.api-lp-final a:focus-visible { outline-color: #fff; }

/* ============================================================================
   반응형 — 1024px 부근에서 열 수 축소, 모바일 1열 재배치 (축소가 아닌 재배치)
   ========================================================================== */
@media (max-width: 1024px) {
    .api-lp-hero .lp-grid { grid-template-columns: 1fr; gap: 32px; }
    .api-lp-summary .lp-cards,
    .api-lp .lp-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .api-lp-process ol { grid-template-columns: repeat(2, 1fr); }
    .api-lp .lp-grid-3,
    .api-lp .lp-policy { grid-template-columns: repeat(2, 1fr); }
    .api-lp-hero h1 { font-size: 34px; }
    .api-lp h2 { font-size: 26px; }
}

@media (max-width: 767px) {
    .api-lp section { padding: 44px 0; }
    .api-lp .lp-inner { padding: 0 16px; }
    .api-lp-hero { padding: 28px 0 44px; }
    .api-lp-hero h1 { font-size: 27px; line-height: 1.34; }
    .api-lp-hero .lp-desc, .api-lp .lp-lead { font-size: 16px; }
    .api-lp h2 { font-size: 22px; }

    /* 1열 재배치 */
    .api-lp-summary .lp-cards,
    .api-lp .lp-grid-4,
    .api-lp .lp-grid-3,
    .api-lp .lp-policy,
    .api-lp-process ol,
    .api-lp-ready .lp-check { grid-template-columns: 1fr; }

    /* 44px+ 터치 타깃 & 전체폭 CTA */
    .api-lp .lp-ctas { flex-direction: column; gap: 10px; }
    .api-lp .lp-btn { width: 100%; min-height: 52px; }
    .api-lp-faq summary { min-height: 56px; font-size: 16px; }
    .api-lp-crumb { font-size: 12px; }
}

/* 320px에서도 가로 스크롤 없도록 */
@media (max-width: 359px) {
    .api-lp-hero h1 { font-size: 24px; }
    .api-lp .lp-inner { padding: 0 14px; }
}

/* 모션 최소화 존중 */
@media (prefers-reduced-motion: reduce) {
    .api-lp *, .api-lp *::before, .api-lp *::after {
        transition: none !important;
        animation: none !important;
    }
}
