/* =================================================================
   2. 페이지 스타일
   ================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* 테마에 맞는 스크롤바 스타일 */
/* WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--sp-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--sp-border);
    border-radius: 5px;
    border: 2px solid var(--sp-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sp-muted);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--sp-border) var(--sp-bg);
}

/* i18n 딕셔너리 적용 전 렌더링 숨김(FOL - Flash of Original Language 방지) */
html:not([data-i18n-ready]) body {
    visibility: hidden;
}

body {
    font-family: var(--sp-font);
    background-color: var(--sp-bg);
    color: var(--sp-fg);
    line-height: 1.6;
    transition: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 헤더 & 네비게이션 */
.header {
    background-color: var(--sp-glass);
    border-bottom: 1px solid var(--sp-glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 데스크톱 네비게이션 */
.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }
}

/* 모바일 메뉴 토글 버튼 */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--sp-fg);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.menu-toggle:hover {
    background-color: var(--sp-hover-bg);
}

.menu-toggle .menu-icon-open {
    display: block;
}

.menu-toggle .menu-icon-close {
    display: none;
}

.menu-toggle.is-open .menu-icon-open {
    display: none !important;
}

.menu-toggle.is-open .menu-icon-close {
    display: block !important;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* 모바일 메뉴 */
.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
    background-color: var(--sp-glass);
    border-top: 1px solid var(--sp-glass-border);
}

.nav-mobile.is-open {
    display: flex;
}

.nav-mobile .nav-link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--sp-border);
    font-size: 1rem;
}

.nav-mobile .nav-link:last-of-type {
    border-bottom: none;
}

.nav-mobile .nav-login-mobile {
    margin-top: 16px;
    text-align: center;
}

@media (min-width: 768px) {

    .nav-mobile,
    .nav-mobile.is-open {
        display: none !important;
    }
}

/* 데스크톱 로그인 버튼 - 모바일에서 숨김 */
@media (max-width: 767px) {

    .nav-login-desktop,
    .nav-right .btn-login.nav-login-desktop {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .nav-login-desktop {
        display: inline-block !important;
    }
}

@media (max-width: 768px) {
    .info-layout {
        display: block;
    }

    .info-sidebar {
        display: none;
        /* 모바일에서 사이드바 숨김 (또는 햄버거 메뉴로 대체) */
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--sp-border);
        margin-bottom: 24px;
        padding: 0;
    }
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--sp-border);
    background-color: var(--sp-surface);
    color: var(--sp-fg);
    font-weight: 600;
    cursor: pointer;
}

.lang-select:hover {
    background-color: var(--sp-hover-bg);
    border-color: var(--sp-hover-border);
}

/* 드롭다운 버튼 스타일 (언어 선택용) */
.dropdown>.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--sp-border);
    background-color: var(--sp-surface);
    color: var(--sp-fg);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    justify-content: space-between;
}

.dropdown>.btn:hover {
    background-color: var(--sp-hover-bg);
    border-color: var(--sp-hover-border);
}

.dropdown>.btn svg {
    width: 16px;
    height: 16px;
    color: var(--sp-muted);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--sp-fg);
    text-decoration: none;
}

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

.nav-menu>li {
    display: inline-block;
}

.nav-menu>li:not(:last-child) {
    margin-right: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--sp-muted);
    font-weight: 500;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-link:link,
.nav-link:visited {
    color: var(--sp-muted);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--sp-fg);
}

.nav-link.active {
    color: var(--sp-accent);
    border-bottom-color: var(--sp-accent);
}


.icon-btn {
    background: none;
    border: 1px solid var(--sp-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-icon);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    padding: 0;
}

.icon-btn:hover {
    background-color: var(--sp-hover-bg);
    border-color: var(--sp-hover-border);
}

.theme-toggle {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-muted);
    transition: background-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
    background-color: var(--sp-hover-bg);
    color: var(--sp-fg);
}

.theme-toggle svg,
.icon-btn svg {
    width: 20px;
    height: 20px;
}

#sun-icon,
#moon-icon {
    display: none;
}

html[data-theme="light"] #sun-icon {
    display: block;
}

html[data-theme="dark"] #moon-icon {
    display: block;
}

/* 페이지 컨텐츠 (SPA) */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SPA 메인 영역: 첫 화면에서 footer가 안 보이도록 */
.spa-main {
    min-height: calc(100dvh - 80px);
    /* 100vh - header height */
}

/* 히어로 섹션 */
.hero {
    text-align: center;
    padding: 80px 0;
}

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

/* 홈 섹션은 한 화면을 채우고, 히어로+피쳐가 함께 보이도록 배치 */
#home {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr;
}

#home .features {
    padding-top: 24px;
    padding-bottom: 40px;
}

@media (max-width: 1024px) {
    .hero {
        padding: 96px 0;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 56px 0;
    }

    #home .features {
        padding-top: 16px;
        padding-bottom: 32px;
    }
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Hero animated headline (example.html 스타일 이식) */
.hero .hero-headline {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
}

@media (min-width: 768px) {
    .hero .hero-headline {
        gap: 16px;
    }
}

#dynamic-text-container {
    transition: opacity .3s ease-in-out, transform .3s ease-in-out;
    display: inline-block;
    min-width: 8rem;
    text-align: right;
}

@media (min-width: 768px) {
    #dynamic-text-container {
        min-width: 12rem;
    }
}

.hero .highlight {
    color: var(--sp-accent);
}

.hero p {
    font-size: 1rem;
    color: var(--sp-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.2rem;
    }
}

/* 버튼 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--sp-accent);
    color: var(--sp-on-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--sp-shadow);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--sp-shadow-pressed);
}

.btn-secondary {
    background-color: var(--sp-surface);
    color: var(--sp-fg);
    border: 1px solid var(--sp-border);
}

.btn-secondary:hover {
    background-color: var(--sp-hover-bg);
    border-color: var(--sp-hover-border);
    transform: translateY(-2px);
    box-shadow: var(--sp-shadow);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--sp-shadow-pressed);
}

.btn-login {
    /* 미니멀 스타일: 테두리 없음, hover 시 배경 표시 */
    background-color: transparent;
    color: var(--sp-muted);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.btn-login:hover {
    background-color: var(--sp-hover-bg);
    color: var(--sp-fg);
}

.btn-login:active {
    background-color: var(--sp-hover-bg);
    opacity: 0.8;
}

/* =============================
   Sider 스타일 랜딩 페이지
   ============================= */

/* =============================
   Sider 스타일 랜딩 페이지
   ============================= */

/* Pill 버튼 (eluda.css .btn 확장) */
.btn-pill {
    border-radius: 999px;
    /* eluda.css .btn 스타일 상속, 추가 오버라이드 */
    padding: 10px 24px;
    /* .btn보다 조금 더 넓게 */
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    border: 1px solid transparent;
    /* 높이 통일 (secondary-pill과 동일) */
}

.btn-pill:hover {
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
    opacity: 0.95;
}

.btn-pill.btn-large {
    padding: 14px 40px;
    font-size: 1.1rem;
}

.btn-pill.btn-secondary-pill {
    background-color: var(--sp-surface);
    color: var(--sp-fg);
    border: 1px solid var(--sp-border);
}

.btn-pill.btn-secondary-pill:hover {
    background-color: var(--sp-hover-bg);
    box-shadow: var(--sp-shadow);
}

/* Dropdown Styles (Footer) - Ported from eluda.css */
.dropdown {
    position: relative;
    display: inline-block;
    overflow: visible !important;
}

.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.98);
    min-width: 140px;
    background-color: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    /* eluda.css: 12px */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* eluda.css shadow */
    z-index: 10000;
    padding: 6px;
    /* eluda.css: 6px */
    margin-bottom: 8px;

    /* Animation & Visibility */
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 2px;
    font-size: 15px;
    color: var(--sp-text-primary);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
    text-decoration: none;
    /* a 태그일 경우 대비 */
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background-color: var(--sp-bg-hover);
}

.dropdown-item.is-selected {
    color: var(--sp-primary);
    font-weight: 600;
    background-color: color-mix(in srgb, var(--sp-primary) 10%, var(--sp-surface));
}

.dropdown-item .check-icon {
    width: 18px;
    height: 18px;
    color: var(--sp-primary);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.dropdown-item.is-selected .check-icon {
    opacity: 1;
    transform: scale(1);
}


/* 중복 .dropdown-item 제거됨 - eluda.css 스타일 사용 */


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* 랜딩 히어로 */
.landing-hero {
    text-align: center;
    padding: 100px 0 80px;
    background: linear-gradient(180deg, var(--sp-panel-bg) 0%, var(--sp-bg) 100%);
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--sp-accent) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
}

.landing-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--sp-fg) 0%, var(--sp-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    font-size: 1.5rem;
    color: var(--sp-muted);
    margin-bottom: 24px;
    font-weight: 500;
}

.landing-desc {
    font-size: 1.1rem;
    color: var(--sp-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 60px 0 50px;
    }

    .landing-title {
        font-size: 2.5rem;
    }

    .landing-subtitle {
        font-size: 1.2rem;
    }
}

/* Feature 섹션 */
.feature-section {
    padding: 80px 0;
}

.feature-section:nth-child(even) {
    background-color: var(--sp-panel-bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-reverse .feature-grid {
    direction: rtl;
}

.feature-reverse .feature-content {
    direction: ltr;
}

.feature-reverse .feature-image {
    direction: ltr;
}

.feature-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: var(--sp-muted);
    line-height: 1.6;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--sp-accent);
    font-size: 1.5rem;
    line-height: 1;
}

.feature-image {
    display: flex;
    justify-content: center;
}

.feature-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sp-shadow);
}

.feature-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--sp-muted);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .feature-section {
        padding: 50px 0;
    }

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

    .feature-reverse .feature-grid {
        direction: ltr;
    }

    .feature-content h2 {
        font-size: 1.6rem;
    }
}

/* Why 섹션 */
.why-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--sp-panel-bg);
}

.why-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.why-card {
    background: var(--sp-surface);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--sp-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sp-shadow);
}

.why-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.95rem;
    color: var(--sp-muted);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .why-section {
        padding: 60px 0;
    }

    .why-section h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Final CTA 섹션 */
.final-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--sp-bg) 0%, var(--sp-panel-bg) 100%);
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.1rem;
    color: var(--sp-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .final-cta {
        padding: 60px 0;
    }

    .final-cta h2 {
        font-size: 1.8rem;
    }
}

/* 기존 피쳐 섹션 (하위 호환) */
.features {
    padding: 48px 0;
    background-color: var(--sp-panel-bg);
}

@media (min-width: 768px) {
    .features {
        padding: 80px 0;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.feature-card {
    background-color: var(--sp-surface);
    padding: 24px;
    border: 1px solid var(--sp-border);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--sp-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .feature-card {
        padding: 32px;
    }
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    color: var(--sp-accent);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--sp-fg);
}

.feature-card p {
    color: var(--sp-muted);
}

/* 토스트 메시지 예시 */
.toast-example {
    padding: 80px 0;
}

.toast {
    max-width: 350px;
    margin: 20px auto;
    background-color: var(--sp-toast-bg);
    color: var(--sp-toast-fg);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--sp-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-label {
    display: block;
    text-align: center;
    color: var(--sp-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.toast-btn {
    font-weight: 600;
    text-transform: uppercase;
    color: var(--sp-accent);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* 다운로드 & 플랜 공통 스타일 */
.download-content,
.plans-content {
    padding: 60px 0 100px;
    background-color: var(--sp-bg);
}

/* 다운로드 그리드 */
.download-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .download-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 다운로드 카드 */
.download-card {
    background-color: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
    box-shadow: var(--sp-shadow);
}

.card-icon {
    width: 64px;
    height: 64px;
    background-color: var(--sp-panel-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-fg);
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-info p {
    font-size: 0.9rem;
    color: var(--sp-muted);
}

/* 플랜 그리드 */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
    /* 카드 높이 통일 */
}

@media (min-width: 768px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 플랜 카드 */
.plan-card {
    background-color: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
    box-shadow: var(--sp-shadow);
}

.plan-card.pro {
    border: 2px solid var(--sp-accent);
    background-color: var(--sp-panel-bg);
}

.plan-header {
    text-align: center;
    padding-bottom: 16px;
}

.plan-divider {
    height: 1px;
    background-color: var(--sp-border);
    margin-bottom: 24px;
    width: 100%;
}

.plan-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.plan-header .price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}

.plan-header .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sp-fg);
}

.plan-header .period {
    font-size: 1rem;
    color: var(--sp-muted);
}

.plan-header p {
    font-size: 0.95rem;
    color: var(--sp-muted);
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
    /* 버튼을 바닥으로 밀어내기 */
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--sp-fg);
}

.plan-features li svg {
    width: 20px;
    height: 20px;
    color: var(--sp-accent);
    flex-shrink: 0;
}

.btn-full {
    width: 100%;
    justify-content: center;
}


/* 푸터 - Sider 스타일 */
.footer {
    padding: 60px 0 24px;
    background-color: var(--sp-panel-bg);
    border-top: 1px solid var(--sp-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sp-fg);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-logo:hover {
    color: var(--sp-accent);
}

.footer-brand p {
    color: var(--sp-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    text-align: left;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sp-fg);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    color: var(--sp-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--sp-fg);
}

.footer-links .dropdown {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--sp-border);
}

.footer-bottom p {
    color: var(--sp-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 16px;
    }

    /* 모바일에서 제품/지원/언어를 한 줄에 배치 */
    .footer-links {
        text-align: center;
    }

    .footer-links h4 {
        margin-bottom: 8px;
    }

    .footer-links a {
        display: inline-block;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 20px;
    }

    .footer-links a {
        display: block;
        padding: 6px 0;
    }
}

/* =============================
   Docs layout (sidebar + content)
   ============================= */
.info-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    align-items: start;
    padding: 0;
}

.info-sidebar {
    position: sticky;
    top: 80px;
    /* header height + margin */
    height: calc(100dvh - 100px);
    overflow: auto;
    padding: 0 12px;
    /* 좌우 내부 여백 */
    border-right: 1px solid var(--sp-border);
}

/* .toc-search removed */

.toc {
    list-style: none;
    padding-left: 0;
}

.toc>li {
    margin-bottom: 12px;
}

.toc .toc-sep {
    list-style: none;
    height: 1px;
    background: var(--sp-border);
    margin: 10px 0;
    padding: 0;
}

.toc .toc-title {
    list-style: none;
    color: var(--sp-muted);
    font-weight: 700;
    font-size: 1.5rem;
    padding: 6px 12px;
    user-select: none;
    cursor: default;
}

.toc a {
    display: block;
    color: var(--sp-muted);
    text-decoration: none;
    padding: 12px 14px;
    border-left: 2px solid transparent;
    border-radius: 6px;
    opacity: .75;
    font-size: 1rem;
}

.toc a:hover {
    color: var(--sp-fg);
    background: var(--sp-hover-bg);
    opacity: 1;
}

.toc a.active {
    color: var(--sp-fg);
    background: var(--sp-hover-bg);
    font-weight: 600;
    opacity: 1;
    border-left-color: transparent;
}

.toc .sublist {
    list-style: none;
    padding-left: 12px;
    margin-top: 4px;
    display: none;
}

.toc li.open>.sublist {
    display: block;
}

.toc .sublist li {
    margin: 2px 0;
}

/* Group labels (non-clickable headers) */
.toc .group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--sp-fg);
    padding: 12px 14px;
    margin: 12px 0 8px;
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
    transition: background-color .15s ease, color .15s ease;
}

.toc .group-label:hover {
    background: var(--sp-hover-bg);
    border-radius: 6px;
}

.toc .group-label .group-chevron {
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform .18s ease;
    color: var(--sp-muted);
}

.toc .group-label:hover .group-chevron {
    color: var(--sp-fg);
}

.toc li.open>.group-label .group-chevron {
    transform: rotate(90deg);
    color: var(--sp-fg);
}

.toc .group-label.active {
    color: var(--sp-fg);
}

.info-content {
    min-width: 0;
    padding: 0 12px;
}

.info-content .doc-section {
    margin-bottom: 48px;
}

.info-content #ext-cgpt-mychatfold {
    max-width: 800px;
    margin: 0 auto;
}

.info-content #ext-cgpt-star {
    max-width: 800px;
    margin: 0 auto;
}

.info-content .doc-section h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.info-content .doc-section h3 {
    font-size: 1.15rem;
    margin: 12px 0 8px;
}

.info-content .doc-card {
    background-color: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

/* Info page card (imported pattern from oneui) */
.info-content .card {
    background-color: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--sp-shadow);
    overflow: hidden;
}

.info-content .card-image {
    width: 100%;
    height: 300px;
    background: var(--sp-panel-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content .card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.info-content .card-image svg {
    width: 48px;
    height: 48px;
    color: var(--sp-icon);
}

.info-content .card-content {
    padding: 16px;
}

.info-content .card-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.info-content .card-content p {
    margin: 0;
    color: var(--sp-muted);
}

/* Card header: text left, toggle right */
.info-content .card-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.info-content .card-content-header .card-text {
    flex: 1 1 auto;
    min-width: 0;
}

.info-content .card-content-header .card-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Toggle switch (One UI style) for info cards */
.info-content .switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.info-content .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.info-content .switch .slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background-color: var(--sp-border);
    transition: .2s ease;
    border-radius: 999px;
}

.info-content .switch .slider:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 4px;
    top: 4px;
    background-color: var(--sp-surface);
    border-radius: 50%;
    box-shadow: var(--sp-shadow);
    transition: .2s ease;
}

.info-content .switch input:checked+.slider {
    background-color: var(--sp-accent);
}

.info-content .switch input:checked+.slider:before {
    transform: translateX(20px);
}

.info-content .switch-label {
    color: var(--sp-muted);
    font-size: .95rem;
}

@media (max-width: 1024px) {
    .info-layout {
        grid-template-columns: 1fr;
    }

    .info-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        padding-right: 0;
    }
}