@charset "UTF-8";

:root {
    --primary-color: #5B4DFF;
    --primary-light: #ECE9FE;
    --text-main: #191F28;
    --text-sub: #6B7684;
    --border-color: #E5E8EB;
    --bg-card: #FFFFFF;
    --container-max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'NanumSquare', -apple-system, sans-serif;
    color: var(--text-main);
    background-color: #F8F9FA;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================
   상단 공지바 및 헤더 
   ==================== */
.top-announcement-bar {
    background: #F4F6F8;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-sub);
    padding: 8px 0;
}
.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notice-badge {
    background: var(--primary-color);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 6px;
}
.top-auth-links {
    display: flex;
    gap: 16px;
    align-items: center;
}
.top-auth-links a:hover { color: var(--text-main); }
.demo-status { color: var(--primary-color); font-weight: 600; }

.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    font-size: 24px;
    font-weight: 800;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
}
.logo-icon {
    background: #5B4DFF;
    color: #fff;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
}

.gnb-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    white-space: nowrap;
}
.gnb-nav a {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    position: relative;
    padding: 24px 0;
}
.gnb-nav a:hover, .gnb-nav a.active {
    color: var(--primary-color);
}
.gnb-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.header-search-box {
    position: relative;
    width: 240px;
}
.header-search-box input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: #F9FAFB;
    font-size: 13px;
    outline: none;
}
.header-search-box input:focus {
    border-color: var(--primary-color);
    background: #fff;
}
.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    cursor: pointer;
}

/* ====================
   히어로 섹션 및 슬라이더 
   ==================== */
.hero-section {
    padding: 30px 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.hero-slider-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-color: #0F172A; /* 이미지가 로드되기 전 기본 배경 */
}

.hero-slide {
    display: none;
    position: absolute;
    inset: 0;
    padding: 50px;
    color: #fff;
    flex-direction: column;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-slide.active {
    display: flex;
}

.badge-apple {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}

.hero-slide h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-slide p {
    color: #94A3B8;
    font-size: 15px;
    margin-bottom: 28px;
}

.btn-benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #0F172A;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    width: fit-content;
    transition: background 0.2s;
}
.btn-benefit:hover {
    background: #F1F5F9;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.slider-dots-group {
    display: flex;
    gap: 6px;
}

.s-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.s-dot.active {
    width: 20px;
    border-radius: 4px;
    background: #fff;
}

.s-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: background 0.2s;
}
.s-arrow:hover {
    background: rgba(255,255,255,0.25);
}

/* 우측 로그인 & 퀵메뉴 카드 */
.hero-login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.login-card-top p {
    font-size: 13px;
    color: var(--text-sub);
}
.login-card-top h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 4px 0 16px 0;
}
.btn-join-custom {
    display: block;
    width: 100%;
    padding: 12px;
    background: #EDE9FE;
    color: #7C3AED;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    font-size: 14px;
}
.quick-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.quick-item-btn {
    background: #F8F9FA;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    padding: 20px 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.quick-item-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.quick-icon {
    font-size: 20px;
}

/* ====================
   하단 컨텐츠 섹션 
   ==================== */
.section {
    padding: 30px 0;
}
.section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}

.prod-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
}
.prod-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}
.prod-sidebar-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-sub);
    cursor: pointer;
}
.prod-sidebar-item:last-child { border-bottom: none; }
.prod-sidebar-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.prod-content-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.prod-item-row {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tag-badge {
    display: inline-block;
    background: #E5E7EB;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}
.tag-badge.red { background: #FEE2E2; color: #DC2626; }
.tag-badge.blue { background: #DBEAFE; color: #2563EB; }

.prod-info h4 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 4px;
}
.sub-desc {
    font-size: 14px;
    color: var(--text-sub);
}
.btn-detail {
    background: #F3F4F6;
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}
.btn-detail:hover {
    background: var(--primary-color);
    color: #fff;
}

.plans-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.plan-main-card {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.plan-tag {
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.plan-main-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 12px 0 6px 0;
}
.plan-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
}
.plan-price span {
    font-size: 14px;
    color: #9CA3AF;
    text-decoration: line-through;
    font-weight: 400;
}
.plan-spec {
    font-size: 14px;
    color: var(--text-sub);
    margin-top: 4px;
}
.btn-plan-select {
    background: var(--primary-color);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
}

.plan-sub-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.plan-sub-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.plan-sub-item strong {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}
.plan-sub-item p {
    font-size: 13px;
    color: var(--text-sub);
}
.btn-sub-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
}

.curation-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}
.curation-row {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
}
.curation-row:last-child { border-bottom: none; }
.badge-hot {
    background: #EF4444;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    margin-right: 10px;
}
.text-link {
    color: var(--text-sub);
    font-size: 14px;
}
.text-link:hover { color: var(--primary-color); }

/* ====================
   푸터 및 플로팅 위젯 
   ==================== */
.site-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 60px 0;
    margin-top: 60px;
    font-size: 13px;
    color: var(--text-sub);
}
.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}
.footer-links a { color: var(--text-main); text-decoration: none; }
.footer-links a:hover { color: var(--primary-color); }
.footer-links .bar { color: #D1D5DB; font-weight: 400; }
.footer-info p { line-height: 1.6; margin: 2px 0; }

.talktalk-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    background: #03C75A !important;
    color: #fff !important;
    padding: 14px 22px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(3, 199, 90, 0.4) !important;
    z-index: 9999 !important;
    text-align: center !important;
    cursor: pointer !important;
    display: block !important;
    transition: transform 0.2s, background 0.2s;
}
.talktalk-float:hover {
    transform: translateY(-3px) !important;
    background: #02b351 !important;
}

/* ====================
   단말기 상세 페이지 스타일 
   ==================== */
.detail-container {
    padding: 40px 0;
}
.page-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
}
.detail-grid {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 32px;
    align-items: start;
}

/* 좌측 패널 */
.detail-left-pane {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    position: sticky;
    top: 100px;
}
.device-preview-box {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}
.badge-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.device-img-area {
    width: 100%;
    height: 260px;
    background: #F8F9FA;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.device-img-area img {
    max-height: 85%;
    object-fit: contain;
}
.device-preview-box h3 {
    font-size: 20px;
    font-weight: 800;
}
.model-code {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 4px;
}

.price-summary-box {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-sub);
}
.price-row strong {
    color: var(--text-main);
}
.total-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8F9FA;
    padding: 16px;
    border-radius: 12px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
}
.total-price-box strong {
    font-size: 20px;
    color: var(--primary-color);
}

/* 우측 패널 (옵션 선택) */
.detail-right-pane {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
}
.option-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}
.option-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.option-section h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}
.btn-group-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.opt-btn {
    flex: 1;
    min-width: 70px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.opt-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
}

.color-picker-row {
    display: flex;
    gap: 10px;
}
.color-chip {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s;
}
.color-chip.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.link-more {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 600;
}
.select-box {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    outline: none;
    cursor: pointer;
}

/* 하단 액션 버튼 (실시간 상담 및 가입신청) */
.action-btn-group {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    margin-top: 30px;
}
.btn-consult {
    background: #F3F4F6;
    color: var(--text-main);
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.btn-apply {
    background: var(--primary-color);
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.btn-apply:hover {
    background: #4839EB;
}

/* 체크박스 및 서브 설명 레이아웃 스타일 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

