:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-2: #f1f4f8;
    --text: #172033;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #2563eb;
    --brand-hover: #1d4ed8;
    --brand-soft: #eaf1ff;
    --shadow: 0 14px 40px rgba(17, 24, 39, .08);
    --radius: 16px;
    --header-height: 82px;
}

html[data-theme="dark"] {
    --bg: #0f1420;
    --surface: #171e2b;
    --surface-2: #202938;
    --text: #edf2f7;
    --muted: #a4afbf;
    --line: #2b3545;
    --brand: #6d9cff;
    --brand-hover: #8bb0ff;
    --brand-soft: #1d2b48;
    --shadow: 0 18px 48px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    line-height: 1.6;
    transition: background-color .2s ease, color .2s ease;
}

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; }

.site-container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-height);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-logo {
    position: relative;
    flex: 0 0 220px;
    width: 220px;
    height: 72px;
    display: block;
}

.site-logo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.site-logo-dark { display: none; }

html[data-theme="dark"] .site-logo-light { display: none; }

html[data-theme="dark"] .site-logo-dark { display: block; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-right: auto;
}

.main-nav a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}

.main-nav a:hover { color: var(--text); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn,
.theme-toggle {
    min-height: 40px;
    border-radius: 10px;
    padding: 0 15px;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    font-weight: 700;
}

.btn-ghost,
.theme-toggle {
    background: var(--surface);
    color: var(--text);
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

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

.theme-toggle:hover,
.btn-ghost:hover { background: var(--surface-2); }

.theme-icon-dark { display: none; }

html[data-theme="dark"] .theme-icon-light { display: none; }

html[data-theme="dark"] .theme-icon-dark { display: inline; }

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 24px;
}

.mobile-menu {
    display: none;
    padding: 10px 20px 18px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.mobile-menu.is-open {
    display: grid;
    gap: 8px;
}

.mobile-menu a {
    padding: 10px 4px;
    font-weight: 650;
}

.site-main {
    min-height: calc(100vh - var(--header-height) - 150px);
}

/* 상단 헤더와 첫 콘텐츠 사이 여백 축소: 기존 86px → 54px */
.hero {
    padding: 54px 0 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    align-items: center;
    gap: 72px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    margin: 18px 0 20px;
    max-width: 760px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.12;
    letter-spacing: -.055em;
}

.hero p {
    margin: 0;
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.hero-actions .btn {
    min-height: 48px;
    padding: 0 20px;
}

.hero-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.hero-panel-title { font-weight: 800; }

.badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.metric-list {
    display: grid;
    gap: 12px;
}

.metric {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.metric:last-child { border-bottom: 0; }

.metric-label {
    color: var(--muted);
    font-size: 14px;
}

.metric-value { font-weight: 800; }

.section {
    padding: 34px 0 84px;
}

.section-title {
    margin: 0 0 10px;
    font-size: 30px;
    letter-spacing: -.035em;
}

.section-desc {
    margin: 0 0 28px;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.feature-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 900;
}

.feature-card h3 {
    margin: 18px 0 8px;
    font-size: 19px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-inner {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner p {
    margin: 5px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-button { display: block; }

    .site-logo {
        flex-basis: 200px;
        width: 200px;
        height: 64px;
    }

    .hero {
        padding-top: 42px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

@media (max-width: 560px) {
    :root {
        --header-height: 72px;
    }

    .site-container {
        width: min(100% - 28px, 1280px);
    }

    .site-logo {
        flex-basis: 174px;
        width: 174px;
        height: 56px;
    }

    .hero {
        padding-top: 34px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .footer-inner {
        padding: 28px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   모바일 주/야간 모드 버튼
   - 회원가입 메뉴 뒤에 배치
   - 데스크톱 버튼과 동일한 테마 상태 공유
   ========================================================= */

.mobile-theme-toggle {
    width: 100%;
    min-height: 44px;
    margin-top: 2px;
    justify-content: flex-start;
    padding: 10px 4px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
}

.mobile-theme-toggle:hover {
    background: var(--surface-2);
}

@media (min-width: 901px) {
    .mobile-theme-toggle {
        display: none;
    }
}

/* =========================================================
   버튼 위계 공통
   - .btn-primary : 주요 실행
   - .btn-subtle  : 보조 실행 / 이동 / 찾기
   ========================================================= */

.btn-subtle {
    border: 1px solid color-mix(in srgb, var(--brand) 12%, var(--line));
    background: color-mix(in srgb, var(--brand) 5%, var(--surface));
    color: var(--text);
    box-shadow: none;
}

.btn-subtle:hover {
    border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.btn-subtle:active {
    background: color-mix(in srgb, var(--brand) 11%, var(--surface));
}

.btn-subtle:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
    outline-offset: 2px;
}


/* Public footer business / legal information */
.footer-brand-block { min-width: 0; }
.footer-business-info { display:flex; flex-wrap:wrap; gap:5px 14px; margin-top:10px; color:var(--muted); font-size:11px; line-height:1.55; }
.footer-business-info span, .footer-business-info a { position:relative; color:inherit; text-decoration:none; }
.footer-business-info a:hover { color:var(--brand); }
.footer-links { flex-wrap:wrap; justify-content:flex-end; }
@media (max-width: 760px) {
  .footer-business-info { gap:4px 10px; }
  .footer-links { justify-content:flex-start; }
}


/* 2026-08-22 공개 푸터 compact 정보표시 */
.footer-inner { min-height: 112px; gap: 20px; }
.footer-brand-block > strong { font-size: 13px; }
.footer-brand-block > p { margin-top: 3px; font-size: 10px; line-height: 1.35; }
.footer-business-info { flex-wrap: nowrap; gap: 0 10px; margin-top: 6px; font-size: 10px; line-height: 1.35; white-space: nowrap; }
.footer-business-info span + span::before,
.footer-business-info span + a::before,
.footer-business-info a::before { content: '·'; margin-right: 10px; color: var(--line-strong, var(--muted)); }
.footer-links { flex-wrap: nowrap; gap: 12px; font-size: 10px; white-space: nowrap; }
@media (max-width: 980px) {
    .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 20px; padding-bottom: 20px; }
    .footer-business-info, .footer-links { flex-wrap: wrap; white-space: normal; }
}
