/* ==========================================================================
   Daily Picks — 브랜드 테마 (앱 테마와 동기화)
   앱 시드 컬러: #F59E0B (amber) / M3 fromSeed 웜톤 크림·브라운 팔레트
   브랜드 그라데이션(라이트): #FBBF24 → #F59E0B → #F97316
   브랜드 그라데이션(다크):   #B45309 → #92400E → #7C2D12
   ========================================================================== */

/* ---------- Theme Tokens ---------- */
:root {
    /* Light (기본) — 앱 light_theme 크림/브라운 톤 */
    --bg: #FFFBF4;
    --bg-soft: #FAF2E5;
    --surface: #FFFFFF;
    --text: #3B3227;
    --text-muted: #6E6152;
    --accent: #F59E0B;
    --accent-strong: #B45309;
    --border: #EBDFCC;
    --brand-gradient: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #F97316 100%);
    --on-brand: #431407;              /* 밝은 앰버 그라데이션 위 딥브라운 (AA 확보) */
    --on-brand-inverse: #FFF6E7;
    --nav-bg: rgba(255, 251, 244, 0.92);
    --img-border: rgba(67, 20, 7, 0.08);
    --shadow-sm: 0 2px 8px rgba(67, 20, 7, 0.06);
    --shadow-md: 0 6px 18px rgba(67, 20, 7, 0.10);
    --shadow-lg: 0 12px 30px rgba(67, 20, 7, 0.14);
    --footer-bg: #2E2418;
    --footer-text: #F4EADB;
    --footer-accent: #FBBF24;
    color-scheme: light;
}

/* 다크 팔레트 정의 (수동 토글) — 앱 dark_theme 웜 다크브라운 톤 */
:root[data-theme="dark"] {
    --bg: #17130B;
    --bg-soft: #1F1911;
    --surface: #262019;
    --text: #EDE6DC;
    --text-muted: #BCAF9E;
    --accent: #FBBF24;
    --accent-strong: #FBBF24;
    --border: #3B352F;
    --brand-gradient: linear-gradient(135deg, #B45309 0%, #92400E 50%, #7C2D12 100%);
    --on-brand: #FFF8EE;
    --on-brand-inverse: #5A2E0C;
    --nav-bg: rgba(23, 19, 11, 0.92);
    --img-border: rgba(255, 248, 238, 0.14);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.55);
    --footer-bg: #100D08;
    --footer-text: #E7DECF;
    --footer-accent: #FBBF24;
    color-scheme: dark;
}

/* 시스템 다크 모드 (수동 라이트 지정이 없을 때) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #17130B;
        --bg-soft: #1F1911;
        --surface: #262019;
        --text: #EDE6DC;
        --text-muted: #BCAF9E;
        --accent: #FBBF24;
        --accent-strong: #FBBF24;
        --border: #3B352F;
        --brand-gradient: linear-gradient(135deg, #B45309 0%, #92400E 50%, #7C2D12 100%);
        --on-brand: #FFF8EE;
        --on-brand-inverse: #5A2E0C;
        --nav-bg: rgba(23, 19, 11, 0.92);
        --img-border: rgba(255, 248, 238, 0.14);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
        --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.55);
        --footer-bg: #100D08;
        --footer-text: #E7DECF;
        --footer-accent: #FBBF24;
        color-scheme: dark;
    }
}

/* ---------- Reset and Base Styles ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 다크에서 아이콘/이미지가 배경에 뜨지 않게 은은한 테두리 */
.nav-logo img,
.preview-icon img {
    border: 1px solid var(--img-border);
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent-strong);
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-strong);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent-strong);
    border-color: var(--accent);
    background: var(--bg-soft);
}

/* 아이콘 전환: 라이트=달(다크로 전환), 다크=해(라이트로 전환) */
.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: inline-block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun {
        display: inline-block;
    }

    :root:not([data-theme="light"]) .theme-toggle .icon-moon {
        display: none;
    }
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
    display: inline-block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
    display: inline-block;
}

/* ---------- Hamburger ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu.active {
    display: flex;
}

/* ---------- Hero Section ---------- */
.hero {
    padding: 120px 20px 80px;
    background: var(--brand-gradient);
    color: var(--on-brand);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.92;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.9rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #431407;
    box-shadow: var(--shadow-sm);
}

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

/* 브랜드 그라데이션 위(히어로)에서는 반전 버튼으로 대비 확보 */
.hero .btn-primary {
    background: var(--on-brand);
    color: var(--on-brand-inverse);
}

.btn-secondary {
    background: transparent;
    color: var(--on-brand);
    border: 2px solid var(--on-brand);
}

.btn-secondary:hover {
    background: var(--on-brand);
    color: var(--on-brand-inverse);
}

/* ---------- Phone Mockup ---------- */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1f1f1f;
    border-radius: 40px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1f1f1f;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

/* 앱 스플래시와 동일한 브랜드 그라데이션 (다크 톤다운은 앱과 별개로 라이트 유지) */
.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #F97316 100%);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-preview {
    text-align: center;
    padding: 2rem;
    color: #431407;
}

.preview-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.preview-icon img {
    box-shadow: 0 8px 20px rgba(67, 20, 7, 0.25);
}

.preview-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.preview-text p {
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.product-preview {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ---------- Section Headings (공통 위계) ---------- */
.features h2,
.how-it-works h2,
.download h2,
.about h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}

/* ---------- Features Section ---------- */
.features {
    padding: 80px 20px;
    background: var(--bg-soft);
}

.features h2 {
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 2.75rem;
    color: var(--accent-strong);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- How It Works Section ---------- */
.how-it-works {
    padding: 80px 20px;
    background: var(--bg);
}

.how-it-works h2 {
    color: var(--text);
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.step:hover {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transform: translateX(10px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--brand-gradient);
    color: var(--on-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.step-content p {
    color: var(--text-muted);
}

/* ---------- Download Section ---------- */
.download {
    padding: 80px 20px;
    background: var(--brand-gradient);
    color: var(--on-brand);
    text-align: center;
}

.download > p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.92;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(20, 12, 4, 0.85);
    color: #FFF8EE;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s ease;
    min-width: 180px;
}

.store-button:hover {
    background: rgba(20, 12, 4, 1);
    transform: translateY(-3px);
}

.store-button i {
    font-size: 2rem;
}

.store-text {
    font-size: 0.75rem;
    text-align: left;
}

.store-name {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
}

/* ---------- About Section ---------- */
.about {
    padding: 80px 20px;
    background: var(--bg);
}

.about h2 {
    color: var(--text);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.about-text strong {
    color: var(--accent-strong);
    font-weight: 700;
}

.about-features {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.about-feature i {
    color: var(--accent-strong);
    font-size: 1.5rem;
}

.about-feature span {
    font-size: 1.1rem;
    color: var(--text);
}

/* ---------- FAQ Page ---------- */
.faq-container {
    max-width: 900px;
    margin: 110px auto 60px;
    padding: 0 20px;
}

.faq-container h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    color: var(--text);
    text-align: center;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-strong);
    margin-bottom: 0.75rem;
}

.faq-question i {
    margin-right: 0.5rem;
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 20px 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--footer-accent);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.85;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--footer-text);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--footer-accent);
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: var(--footer-accent);
}

/* FAQ 페이지 푸터 변형 */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--footer-accent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--footer-accent);
}

.footer-info p {
    opacity: 0.75;
    text-align: center;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    opacity: 0.75;
    margin-bottom: 0.5rem;
}

.coupang-notice {
    font-size: 0.85rem;
    opacity: 0.65;
    margin-top: 1rem;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        width: 100%;
        background: var(--surface);
        flex-direction: column;
        padding: 2rem;
        border: 1px solid var(--border);
        border-radius: 0 0 16px 16px;
        box-shadow: var(--shadow-md);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .features h2,
    .how-it-works h2,
    .download h2,
    .about h2 {
        font-size: 1.85rem;
    }

    .faq-container h1 {
        font-size: 1.85rem;
    }

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

    .step {
        flex-direction: column;
        text-align: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ---------- Privacy/Terms Page Styles ---------- */
.page-header {
    padding: 120px 20px 40px;
    background: var(--brand-gradient);
    color: var(--on-brand);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.page-header p {
    opacity: 0.92;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.page-content h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.page-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.page-content ul,
.page-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.page-content ul li,
.page-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.page-content strong {
    color: var(--text);
}

.info-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.info-box strong {
    color: var(--accent-strong);
}
