/* ==========================================================================
   BANGIT 공식 홈페이지 공통 스타일시트
   --------------------------------------------------------------------------
   - 순수 CSS (빌드 도구 / 프레임워크 / JavaScript 없음)
   - 모바일 우선(Mobile-first) 반응형
   - 브랜드 컬러와 공통 값은 모두 :root 의 CSS 변수로 관리
   - 앱 개수·앱 이름에 의존하는 스타일은 작성하지 않음

   목차
   01. 디자인 토큰 (CSS 변수) / 다크 모드
   02. 폰트
   03. 리셋 & 기본 요소
   04. 레이아웃 유틸리티 (container, section, 접근성)
   05. 버튼 & 링크
   06. 헤더 & 내비게이션 (모바일 메뉴: details/summary)
   07. Hero
   08. 스마트폰 목업
   09. 섹션 헤더
   10. 앱 포트폴리오 그리드 & 앱 카드
   11. 회사 소개
   12. 고객지원 (메인 요약)
   13. 서브 페이지 공통 (page-hero, 문서 레이아웃, 목차)
   14. 문서 본문 (개인정보처리방침 / 고객지원)
   15. FAQ (details/summary)
   16. Footer
   17. 404
   18. 모션 감소 / 인쇄
   ========================================================================== */


/* ==========================================================================
   01. 디자인 토큰
   ========================================================================== */
:root {
    /* 브랜드 컬러 (공식 브랜드 컬러 가이드 기준 — 임의 변경 금지) */
    --color-primary: #22228F;
    --color-primary-hover: #19196F;
    --color-secondary: #7777D6;
    --color-accent: #A5B4FC;
    --color-accent-light: #E8E8FA;
    --color-background: #FFFFFF;
    --color-surface: #F8F9FC;
    --color-text: #15152E;
    --color-text-secondary: #64687A;
    --color-border: #E5E7EF;

    /* 파생 토큰 (컴포넌트에서는 가능하면 아래 의미 기반 변수를 사용) */
    --color-card: #FFFFFF;
    --color-label: #5A5AC2;            /* 작은 영문 라벨: Secondary 계열에서 AA 명도 대비를 확보한 톤 */
    --color-link: var(--color-primary);
    --color-heading-accent: var(--color-primary);
    --color-btn-primary-bg: var(--color-primary);
    --color-btn-primary-bg-hover: var(--color-primary-hover);
    --color-btn-primary-text: #FFFFFF;
    --color-btn-outline-border: #C9CCF2;
    --color-pill-bg: var(--color-accent-light);
    --color-pill-text: var(--color-primary);
    --color-notice-bg: #FFF8E6;
    --color-notice-border: #F2D68A;
    --color-notice-text: #6B4E00;
    --color-blob: #DCE0FD;
    --color-blob-strong: #C3CBFB;
    --color-focus: #4F4FD9;

    /* 휴대폰 목업 */
    --phone-frame: linear-gradient(150deg, #F1F2F7 0%, #C9CCD8 45%, #EEF0F6 100%);
    --phone-bezel: #14152A;
    --phone-screen: #FFFFFF;
    --phone-label: #2A2B45;

    /* 형태 */
    --radius-card: 20px;
    --radius-button: 12px;
    --radius-pill: 999px;
    --radius-icon: 22.5%;              /* 앱 아이콘 모서리 (iOS 스타일 비율) */

    /* 그림자 (최소한으로 부드럽게) */
    --shadow-card: 0 1px 2px rgba(21, 21, 46, .04), 0 4px 16px rgba(34, 34, 143, .05);
    --shadow-card-hover: 0 2px 4px rgba(21, 21, 46, .05), 0 12px 28px rgba(34, 34, 143, .10);
    --shadow-icon: 0 4px 12px rgba(21, 21, 46, .12);

    /* 레이아웃 */
    --container-width: 1280px;
    --container-padding: 16px;
    --header-height: 64px;
    --section-space: 64px;

    /* 타이포그래피 */
    --font-sans: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
                 system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕",
                 "Noto Sans KR", "Segoe UI", Roboto, sans-serif;

    --transition: 180ms ease;

    color-scheme: light dark;
}

@media (min-width: 768px) {
    :root {
        --container-padding: 32px;
        --header-height: 80px;
        --section-space: 88px;
    }
}

@media (min-width: 1280px) {
    :root {
        --container-padding: 32px;
    }
}

/* 다크 모드: 운영체제 설정에 따라 자동 적용 (어두운 인디고 / 네이비 계열) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-background: #0D0E24;
        --color-surface: #121332;
        --color-card: #17183B;
        --color-text: #ECEDFA;
        --color-text-secondary: #A9ACC8;
        --color-border: #2A2C57;

        --color-label: #A5B4FC;
        --color-link: #B4BFFD;
        --color-heading-accent: #A5B4FC;
        --color-btn-primary-bg: #4747C9;
        --color-btn-primary-bg-hover: #5656D6;
        --color-btn-outline-border: #3B3E78;
        --color-pill-bg: #23255A;
        --color-pill-text: #C7CEFE;
        --color-notice-bg: #2A2414;
        --color-notice-border: #5E4E1E;
        --color-notice-text: #F3DFA6;
        --color-blob: #1C1E4D;
        --color-blob-strong: #26296A;
        --color-focus: #A5B4FC;

        --phone-frame: linear-gradient(150deg, #4A4C66 0%, #2A2C40 45%, #4A4C66 100%);
        --phone-bezel: #05060F;
        --phone-screen: #141533;
        --phone-label: #E3E5F7;

        --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
        --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 12px 28px rgba(0, 0, 0, .35);
        --shadow-icon: 0 4px 12px rgba(0, 0, 0, .35);
    }
}


/* ==========================================================================
   02. 폰트
   --------------------------------------------------------------------------
   Pretendard v1.3.9 Variable 자체 호스팅 (SIL OFL 1.1 — assets/fonts/Pretendard-LICENSE.txt)
   - 방문자 기기에 Pretendard가 설치되어 있으면 local() 로 그것을 먼저 사용
   - 없으면 /assets/fonts/PretendardVariable.woff2 를 내려받아 사용 (외부 요청 없음)
   - font-display: swap → 폰트를 받는 동안에도 시스템 폰트로 글자가 바로 보임
   ========================================================================== */
@font-face {
    font-family: "Pretendard";
    font-weight: 45 920;
    font-style: normal;
    font-display: swap;
    src: local("Pretendard Variable"), local("PretendardVariable"),
         url("/assets/fonts/PretendardVariable.woff2") format("woff2-variations"),
         url("/assets/fonts/PretendardVariable.woff2") format("woff2");
}


/* ==========================================================================
   03. 리셋 & 기본 요소
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
    margin: 0;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
    padding: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--color-link);
    text-underline-offset: 3px;
}

button,
summary {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection {
    background: var(--color-accent);
    color: #15152E;
}


/* ==========================================================================
   04. 레이아웃 유틸리티
   ========================================================================== */
.container {
    width: 100%;
    max-width: calc(var(--container-width) + var(--container-padding) * 2);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.section {
    padding-block: var(--section-space);
}

.section--surface {
    background: var(--color-surface);
}

/* 스크린 리더 전용 텍스트 */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 본문 바로가기 링크 (키보드 접근성) */
.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-button);
    background: var(--color-btn-primary-bg);
    color: var(--color-btn-primary-text);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

/* 아이콘 공통 (인라인 SVG) */
.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
}


/* ==========================================================================
   05. 버튼 & 링크
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 24px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-button);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition),
                color var(--transition), transform var(--transition);
}

.btn--primary {
    background: var(--color-btn-primary-bg);
    color: var(--color-btn-primary-text);
}

.btn--primary:hover {
    background: var(--color-btn-primary-bg-hover);
}

.btn--outline {
    background: var(--color-background);
    border-color: var(--color-btn-outline-border);
    color: var(--color-text);
}

.btn--outline:hover {
    border-color: var(--color-secondary);
    color: var(--color-link);
}

.btn--small {
    min-height: 40px;
    padding: 8px 16px;
    font-size: .9375rem;
}

.btn .icon-arrow {
    transition: transform var(--transition);
}

.btn:hover .icon-arrow {
    transform: translateX(3px);
}

/* 화살표가 있는 텍스트 링크 */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-link);
}

.link-arrow:hover {
    text-decoration: underline;
}

/* 출시 상태 / 카테고리 등에 쓰는 알약형 배지 */
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--color-pill-bg);
    color: var(--color-pill-text);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

/* 출시 완료 상태 (앱 출시 후 사용) */
.pill--live {
    background: #E3F5EA;
    color: #146C3A;
}

@media (prefers-color-scheme: dark) {
    .pill--live {
        background: #123826;
        color: #9BE3B9;
    }
}


/* ==========================================================================
   06. 헤더 & 내비게이션
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--color-background) 92%, transparent);
    border-bottom: 1px solid var(--color-border);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-height);
}

/* 회사 워드마크: 추후 실제 로고 이미지로 교체 시 <a class="logo"> 안의 텍스트를 <img>로 바꾸면 됩니다. */
.logo {
    display: inline-flex;
    align-items: center;
    color: var(--color-heading-accent);
    font-size: 1.625rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1;
    text-decoration: none;
}

.logo img {
    height: 28px;
    width: auto;
}

@media (min-width: 768px) {
    .logo {
        font-size: 2rem;
    }
}

/* 데스크톱 메뉴 */
.nav-desktop {
    display: none;
}

.nav-list {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    display: block;
    padding: 8px 16px;
    border-radius: 10px;
    color: var(--color-text);
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition), background-color var(--transition);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: var(--color-link);
    background: var(--color-pill-bg);
}

/* 헤더 우측 이메일 버튼 */
.header-email {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid var(--color-heading-accent);
    border-radius: var(--radius-pill);
    color: var(--color-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--transition), color var(--transition);
}

.header-email:hover {
    background: var(--color-btn-primary-bg);
    border-color: var(--color-btn-primary-bg);
    color: var(--color-btn-primary-text);
}

/* 모바일 메뉴: JavaScript 없이 details/summary 로 구현 */
.nav-mobile {
    position: relative;
}

.nav-mobile > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    list-style: none;
    cursor: pointer;
    color: var(--color-text);
}

.nav-mobile > summary::-webkit-details-marker {
    display: none;
}

.nav-mobile .icon-close,
.nav-mobile[open] .icon-menu {
    display: none;
}

.nav-mobile[open] .icon-close {
    display: block;
}

.nav-mobile__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(300px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-card);
    box-shadow: var(--shadow-card-hover);
}

.nav-mobile__panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-mobile__panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.nav-mobile__panel a:hover,
.nav-mobile__panel a[aria-current="page"] {
    background: var(--color-pill-bg);
    color: var(--color-link);
}

.nav-mobile__email {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
    border-radius: 0 0 10px 10px !important;
    padding-top: 16px !important;
    color: var(--color-link) !important;
    word-break: break-all;
}

@media (min-width: 1024px) {
    .site-header__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
    }

    .nav-desktop {
        display: block;
    }

    .header-email {
        display: inline-flex;
        justify-self: end;
    }

    .nav-mobile {
        display: none;
    }
}


/* ==========================================================================
   07. Hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: clip;
    padding-top: 40px;
}

.hero__inner {
    display: grid;
    gap: 24px;
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-bottom: 8px;
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--color-label);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.hero__title {
    font-size: clamp(1.625rem, .9rem + 3.4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.035em;
}

.hero__title .line {
    display: block;
}

/* '작은 앱들' 강조 + 붓 터치 밑줄 */
.highlight {
    position: relative;
    display: inline-block;
    color: var(--color-heading-accent);
    z-index: 0;
}

.highlight::after {
    content: "";
    position: absolute;
    left: -2%;
    right: 4%;
    bottom: -0.12em;
    height: .34em;
    z-index: -1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15 C 70 7, 170 5, 296 9 C 220 12, 130 15, 40 21' fill='none' stroke='%23A5B4FC' stroke-width='6' stroke-linecap='round' opacity='.85'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.hero__desc {
    max-width: 40em;
    margin-top: 24px;
    color: var(--color-text);
    font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero__actions .btn {
    flex: 1 1 180px;
}

@media (min-width: 480px) {
    .hero__actions .btn {
        flex: 0 0 auto;
        min-width: 200px;
    }
}

@media (min-width: 768px) {
    .hero {
        padding-top: 56px;
    }

    .hero__actions .btn {
        min-height: 60px;
        min-width: 240px;
        font-size: 1.0625rem;
    }
}

@media (min-width: 1024px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: 32px;
    }

    .hero__title {
        font-size: clamp(2.25rem, 3.6vw, 3.5rem);
    }

    .hero__content {
        padding-bottom: 48px;
    }
}


/* ==========================================================================
   08. 스마트폰 목업 (HTML + CSS)
   --------------------------------------------------------------------------
   - 화면 안의 앱은 <li class="phone__app"> 를 복사해 추가/삭제
   - 앱이 많아지면 대표 앱만 남기면 됩니다 (그리드는 3열 자동 줄바꿈)
   ========================================================================== */
.hero__visual {
    position: relative;
    height: 300px;
    margin-inline: calc(var(--container-padding) * -1);
    /* 휴대폰 하단만 잘리도록 처리 (시안과 동일하게 화면 하단에서 잘림) */
    clip-path: inset(-200px -200px 0 -200px);
}

/* 배경 추상 도형 */
.hero__blob {
    position: absolute;
    border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
    background: var(--color-blob);
    pointer-events: none;
}

.hero__blob--1 {
    width: 76%;
    aspect-ratio: 1.15;
    left: 6%;
    top: 22%;
    transform: rotate(-14deg);
}

.hero__blob--2 {
    width: 46%;
    aspect-ratio: 1;
    right: -6%;
    top: 4%;
    background: var(--color-blob-strong);
    opacity: .55;
    transform: rotate(18deg);
}

/* 휴대폰 좌측 상단의 짧은 강조 선 */
.hero__spark {
    position: absolute;
    left: calc(50% - 150px);
    top: 18px;
    width: 34px;
    height: 34px;
}

.hero__spark span {
    position: absolute;
    left: 0;
    height: 4px;
    border-radius: 4px;
    background: var(--color-primary);
}

.hero__spark span:nth-child(1) {
    top: 6px;
    width: 22px;
    transform: rotate(52deg);
    left: 10px;
}

.hero__spark span:nth-child(2) {
    top: 24px;
    width: 18px;
    transform: rotate(-16deg);
    background: #3B5BDB;
}

.phone {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 240px;
    aspect-ratio: 9 / 19;
    margin-left: -110px;
    padding: 4px;
    border-radius: 44px;
    background: var(--phone-frame);
    box-shadow:
        0 30px 60px -20px rgba(21, 21, 80, .35),
        0 10px 24px -12px rgba(21, 21, 80, .25);
    transform: rotate(12deg);
    transform-origin: 50% 30%;
}

.phone__screen {
    height: 100%;
    padding: 18px 14px;
    border: 7px solid var(--phone-bezel);
    border-radius: 40px;
    background: var(--phone-screen);
    overflow: hidden;
}

.phone__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 10px;
    color: var(--phone-label);
    font-size: .75rem;
    font-weight: 700;
}

.phone__island {
    width: 30%;
    height: 22px;
    border-radius: 999px;
    background: var(--phone-bezel);
}

.phone__indicators {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.phone__signal {
    display: flex;
    align-items: flex-end;
    gap: 1.5px;
    height: 10px;
}

.phone__signal i {
    width: 3px;
    border-radius: 1px;
    background: currentColor;
}

.phone__signal i:nth-child(1) { height: 35%; }
.phone__signal i:nth-child(2) { height: 55%; }
.phone__signal i:nth-child(3) { height: 78%; }
.phone__signal i:nth-child(4) { height: 100%; }

.phone__battery {
    position: relative;
    width: 20px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    padding: 1px;
}

.phone__battery::before {
    content: "";
    display: block;
    width: 80%;
    height: 100%;
    border-radius: 1px;
    background: currentColor;
}

.phone__apps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 10px;
    margin: 28px 0 0;
    padding: 0 4px;
    list-style: none;
}

.phone__app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--phone-label);
    font-size: .6875rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.phone__app img {
    width: 100%;
    max-width: 62px;
    aspect-ratio: 1;
    border-radius: var(--radius-icon);
    box-shadow: var(--shadow-icon);
    object-fit: cover;
}

.phone__app span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .hero__visual {
        height: 340px;
    }

    .phone {
        width: 270px;
        margin-left: -125px;
    }
}

@media (min-width: 768px) {
    .hero__visual {
        height: 400px;
    }

    .phone {
        width: 300px;
        margin-left: -140px;
    }

    .phone__app {
        font-size: .75rem;
    }

    .phone__app img {
        max-width: 68px;
    }
}

@media (min-width: 1024px) {
    .hero__visual {
        height: 540px;
        margin-inline: 0;
        align-self: end;
    }

    .hero__blob--1 {
        width: 92%;
        left: 2%;
        top: 26%;
    }

    .hero__blob--2 {
        width: 50%;
        right: -14%;
        top: 2%;
    }

    .phone {
        width: 340px;
        top: 40px;
        left: 22%;
        margin-left: 0;
    }

    .phone__screen {
        padding: 22px 18px;
        border-width: 8px;
        border-radius: 46px;
    }

    .phone {
        border-radius: 52px;
    }

    .phone__status {
        font-size: .875rem;
    }

    .phone__island {
        height: 26px;
    }

    .phone__apps {
        gap: 22px 12px;
        margin-top: 34px;
    }

    .phone__app {
        font-size: .8125rem;
    }

    .phone__app img {
        max-width: 76px;
    }

    .hero__spark {
        left: 14%;
        top: 34px;
    }
}


/* ==========================================================================
   09. 섹션 헤더
   ========================================================================== */
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 32px;
}

.section-head__title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    font-weight: 800;
}

.section-head__title .icon {
    width: 28px;
    height: 28px;
    color: var(--color-heading-accent);
}

.section-head__desc {
    margin-top: 6px;
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
}

@media (min-width: 768px) {
    .section-head__desc {
        padding-left: 42px;
    }
}


/* ==========================================================================
   10. 앱 포트폴리오 그리드 & 앱 카드
   --------------------------------------------------------------------------
   - CSS Grid auto-fill: 앱 개수와 관계없이 화면 폭에 맞춰 자동 줄바꿈
     (1920/1440/1280: 5열, 1024: 4열, 768: 3열, 390~430: 2열, 320: 1열)
   - 신규 앱은 index.html 의 <li class="app-card"> 블록을 복사해서 추가
   ========================================================================== */
.apps-section {
    padding-top: 40px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 600px) {
    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 24px 14px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.app-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-btn-outline-border);
    box-shadow: var(--shadow-card-hover);
}

@media (min-width: 600px) {
    .app-card {
        padding: 28px 20px 22px;
    }
}

.app-card__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-icon);
    box-shadow: var(--shadow-icon);
    object-fit: cover;
}

@media (min-width: 600px) {
    .app-card__icon {
        width: 88px;
        height: 88px;
    }
}

.app-card__name {
    margin-top: 18px;
    font-size: 1.25rem;
    font-weight: 800;
}

@media (min-width: 600px) {
    .app-card__name {
        font-size: 1.375rem;
    }
}

.app-card__category {
    margin-top: 4px;
    color: var(--color-label);
    font-size: .8125rem;
    font-weight: 600;
}

.app-card__desc {
    margin-top: 10px;
    color: var(--color-text-secondary);
    font-size: .9375rem;
    line-height: 1.6;
}

/* 카드 하단 영역: margin-top:auto 로 모든 카드의 버튼 위치를 통일 */
.app-card__footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
}

.app-card__footer .pill {
    width: 100%;
}

/* 스토어 다운로드 링크 (앱 출시 후 사용) */
.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.store-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--color-btn-primary-bg);
    color: var(--color-btn-primary-text);
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.store-btn:hover {
    background: var(--color-btn-primary-bg-hover);
}

.app-card__more {
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}

.app-card__more:hover {
    text-decoration: underline;
}

.apps-note {
    margin-top: 24px;
    color: var(--color-text-secondary);
    font-size: .9375rem;
    text-align: center;
}


/* ==========================================================================
   11. 회사 소개
   ========================================================================== */
.about {
    display: grid;
    gap: 40px;
}

.about__title {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    font-weight: 800;
}

.about__lead {
    margin-top: 16px;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about__text p + p {
    margin-top: 12px;
}

.about__text p:not(.eyebrow):not(.about__lead) {
    color: var(--color-text-secondary);
}

.about__facts {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    padding: 0;
    list-style: none;
}

.about__facts li {
    position: relative;
    padding-left: 26px;
    color: var(--color-text);
    font-weight: 500;
}

.about__facts li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .45em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-pill-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2322228F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px;
}

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.value-card {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-card);
}

.value-card__en {
    color: var(--color-heading-accent);
    font-size: 1.125rem;
    font-weight: 800;
}

.value-card__ko {
    margin-top: 2px;
    color: var(--color-label);
    font-size: .8125rem;
    font-weight: 600;
}

.value-card p {
    margin-top: 10px;
    color: var(--color-text-secondary);
    font-size: .9375rem;
}

@media (min-width: 1024px) {
    .about {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 64px;
        align-items: start;
    }

    .values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================================
   12. 고객지원 (메인 페이지 요약 + 고객지원 페이지 공용 연락처 카드)
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
}

.contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--color-pill-bg);
    color: var(--color-heading-accent);
}

.contact-card__title {
    font-size: 1.125rem;
    font-weight: 700;
}

.contact-card__desc {
    color: var(--color-text-secondary);
    font-size: .9375rem;
}

.contact-card__email {
    margin-top: auto;
    padding-top: 10px;
    font-weight: 700;
    word-break: break-all;
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.topic-list li {
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-card);
    color: var(--color-text-secondary);
    font-size: .875rem;
    font-weight: 500;
}

.support-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}


/* ==========================================================================
   13. 서브 페이지 공통 (개인정보처리방침 / 고객지원 / 404)
   ========================================================================== */
.page-hero {
    padding-block: 48px 32px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.page-hero__title {
    font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
    font-weight: 800;
}

.page-hero__desc {
    max-width: 46em;
    margin-top: 12px;
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
    color: var(--color-text-secondary);
    font-size: .9375rem;
}

.page-meta strong {
    color: var(--color-text);
    font-weight: 600;
}

.breadcrumb {
    margin-bottom: 16px;
    font-size: .875rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--color-text-secondary);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--color-border);
}

.breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-link);
    text-decoration: underline;
}

/* 문서 레이아웃: 모바일 1열 → 데스크톱 목차(좌) + 본문(우) */
.doc-layout {
    display: grid;
    gap: 32px;
    padding-block: 40px var(--section-space);
}

.toc {
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface);
}

.toc__title {
    margin-bottom: 10px;
    font-size: .9375rem;
    font-weight: 700;
}

.toc ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.toc a {
    display: block;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-size: .9375rem;
    line-height: 1.45;
    text-decoration: none;
}

.toc a:hover {
    background: var(--color-pill-bg);
    color: var(--color-link);
}

@media (min-width: 1024px) {
    .doc-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 56px;
        align-items: start;
    }

    .toc {
        position: sticky;
        top: calc(var(--header-height) + 24px);
        max-height: calc(100vh - var(--header-height) - 48px);
        overflow-y: auto;
    }
}


/* ==========================================================================
   14. 문서 본문
   ========================================================================== */
.doc {
    max-width: 760px;
    min-width: 0;
    font-size: 1.0625rem;
    line-height: 1.85;
}

.doc section + section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.doc h2 {
    margin-bottom: 16px;
    font-size: 1.375rem;
    font-weight: 800;
}

.doc h3 {
    margin: 24px 0 8px;
    font-size: 1.125rem;
    font-weight: 700;
}

.doc p + p,
.doc p + ul,
.doc p + ol,
.doc ul + p,
.doc ol + p,
.doc .table-wrap + p,
.doc p + .table-wrap {
    margin-top: 12px;
}

.doc ul,
.doc ol {
    padding-left: 1.3em;
}

.doc li + li {
    margin-top: 4px;
}

.doc li::marker {
    color: var(--color-secondary);
}

.doc strong {
    font-weight: 700;
}

.doc .muted {
    color: var(--color-text-secondary);
    font-size: .9375rem;
}

/* 표: 모바일에서는 가로 스크롤 영역 안에서만 스크롤 (페이지 전체 가로 스크롤 방지) */
.table-wrap {
    width: 100%;
    margin-top: 16px;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.doc table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: .9375rem;
    line-height: 1.6;
}

.doc th,
.doc td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.doc thead th {
    background: var(--color-surface);
    font-weight: 700;
    white-space: nowrap;
}

.doc tbody tr:last-child > * {
    border-bottom: 0;
}

/* 안내 박스 */
.callout {
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid var(--color-btn-outline-border);
    border-radius: 14px;
    background: var(--color-pill-bg);
    font-size: .9875rem;
    line-height: 1.7;
}

.callout > :first-child {
    margin-top: 0;
}

.callout__title {
    display: block;
    margin-bottom: 4px;
    color: var(--color-heading-accent);
    font-weight: 700;
}

/* 운영 정책 확인이 필요한 항목 표시 */
.callout--pending {
    border-color: var(--color-notice-border);
    background: var(--color-notice-bg);
    color: var(--color-notice-text);
}

.callout--pending .callout__title {
    color: inherit;
}

.tag-pending {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 8px;
    border: 1px solid var(--color-notice-border);
    border-radius: var(--radius-pill);
    background: var(--color-notice-bg);
    color: var(--color-notice-text);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.6;
    vertical-align: 2px;
    white-space: nowrap;
}

/* 단계 안내 (계정 삭제 절차 등) */
.steps {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 0 !important;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    margin: 0 !important;
    padding: 14px 16px 14px 56px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-card);
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-btn-primary-bg);
    color: var(--color-btn-primary-text);
    font-size: .875rem;
    font-weight: 700;
}


/* ==========================================================================
   15. FAQ (details/summary, JavaScript 없음)
   ========================================================================== */
.faq {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.faq details {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-card);
    transition: border-color var(--transition);
}

.faq details[open] {
    border-color: var(--color-btn-outline-border);
}

.faq summary {
    position: relative;
    padding: 16px 52px 16px 20px;
    font-weight: 700;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -7px;
    border-right: 2px solid var(--color-link);
    border-bottom: 2px solid var(--color-link);
    transform: rotate(45deg);
    transition: transform var(--transition);
}

.faq details[open] summary::after {
    margin-top: -2px;
    transform: rotate(-135deg);
}

.faq summary:focus-visible {
    border-radius: 14px;
}

.faq__answer {
    padding: 0 20px 18px;
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.faq__answer p + p {
    margin-top: 8px;
}


/* ==========================================================================
   16. Footer
   ========================================================================== */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-text-secondary);
    font-size: .9375rem;
}

.site-footer__inner {
    display: grid;
    gap: 24px;
    padding-block: 40px 24px;
}

.site-footer__brand .logo {
    font-size: 1.75rem;
}

.site-footer__tagline {
    margin-top: 8px;
}

.biz-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    margin: 0;
}

.biz-info__item {
    display: flex;
    gap: 10px;
    padding-right: 16px;
    margin-right: 16px;
    border-right: 1px solid var(--color-border);
}

.biz-info__item:last-child,
.biz-info__item:has(+ .biz-info__item--break),
.biz-info__item--break {
    border-right: 0;
}

.biz-info__item--break {
    flex-basis: 100%;
}

.biz-info dt {
    color: var(--color-text);
    font-weight: 700;
}

.biz-info dd {
    margin: 0;
}

.biz-info a {
    color: inherit;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    margin-inline: 14px;
    background: var(--color-border);
    vertical-align: middle;
}

.footer-links a {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-link);
    text-decoration: underline;
}

.site-footer__bottom {
    padding-block: 18px 28px;
    border-top: 1px solid var(--color-border);
    font-size: .875rem;
}

@media (min-width: 1024px) {
    .site-footer__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 40px;
    }

    .site-footer__info {
        padding-left: 40px;
        border-left: 1px solid var(--color-border);
    }
}


/* ==========================================================================
   17. 404
   ========================================================================== */
.not-found {
    display: grid;
    place-items: center;
    padding-block: 96px;
    text-align: center;
}

.not-found__code {
    color: var(--color-heading-accent);
    font-size: clamp(4rem, 3rem + 6vw, 7rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.not-found__title {
    margin-top: 16px;
    font-size: clamp(1.375rem, 1.2rem + 1vw, 1.75rem);
    font-weight: 800;
}

.not-found__desc {
    margin-top: 12px;
    color: var(--color-text-secondary);
}

.not-found .support-cta {
    justify-content: center;
}


/* ==========================================================================
   18. 모션 감소 / 인쇄
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .app-card:hover {
        transform: none;
    }
}

@media print {
    .site-header,
    .toc,
    .skip-link,
    .hero__visual {
        display: none !important;
    }

    body {
        background: #FFFFFF;
        color: #000000;
    }

    .doc-layout {
        display: block;
    }
}

/* 문서 안에서 쓰는 연락처 카드 간격 */
.doc .contact-grid,
.doc .contact-grid + p {
    margin-top: 16px;
}
