/* ===================================
   판다이츠 가맹점 페이지 전용 스타일
   =================================== */

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

:root {
    /* Colors */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #f97316;
    --secondary-hover: #ea580c;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;

    /* Typography */
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

strong {
    font-weight: 700;
    color: var(--primary-color);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--bg-white);
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(249, 115, 22, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero-title .highlight {
    color: #fbbf24;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: var(--spacing-2xl) 0;
}

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

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-gray);
    margin-bottom: var(--spacing-xl);
}

.section-intro {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-gray);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subsection-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.text-center {
    text-align: center;
}

/* ===================================
   Feature Grid
   =================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.feature-card {
    background-color: var(--bg-gray);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.feature-desc {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   Highlight Box
   =================================== */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bg-white);
    margin: 0;
}

.highlight-text-small {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ===================================
   Benefits Grid
   =================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    background-color: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.benefit-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    color: var(--text-gray);
    line-height: 1.7;
}

.benefit-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ===================================
   Process Flow
   =================================== */
.how-it-works {
    margin-bottom: var(--spacing-2xl);
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.process-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.process-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
    box-shadow: var(--shadow-md);
}

.process-content h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.process-content p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.process-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ===================================
   Fees Section
   =================================== */
.fees-section {
    background-color: var(--bg-gray);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
}

.fees-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.fees-table-wrapper {
    display: flex;
    flex-direction: column;
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-md);
}

.fees-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
}

.fees-table th,
.fees-table td {
    padding: var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.fees-table th {
    font-weight: 700;
    font-size: 1.125rem;
}

.fees-table td {
    font-size: 1rem;
    color: var(--text-gray);
}

.highlight-fee {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.fees-note {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.fees-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fees-list {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.fees-list li {
    padding: var(--spacing-sm) 0;
    color: var(--text-gray);
    line-height: 1.7;
}

.fees-disclaimer {
    background-color: #fef3c7;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--warning-color);
    color: var(--text-dark);
    font-size: 0.9375rem;
}

/* ===================================
   Timeline
   =================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: var(--spacing-xl);
}

.timeline-marker {
    position: absolute;
    left: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.timeline-content {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.timeline-content p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

/* ===================================
   Requirements
   =================================== */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.requirements-card {
    background-color: var(--bg-gray);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.requirements-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
}

.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    color: var(--text-gray);
    line-height: 1.7;
}

.requirements-list li:before {
    content: "📋";
    position: absolute;
    left: 0;
}

.requirements-note {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.9375rem;
}

/* ===================================
   FAQ
   =================================== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg);
    background-color: var(--bg-white);
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--bg-gray);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: var(--spacing-lg);
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

/* ===================================
   CTA Section
   =================================== */
.section-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    padding: var(--spacing-2xl) 0;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--bg-white);
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: #1f2937;
    color: var(--bg-white);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--bg-white);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: var(--spacing-sm);
    color: #d1d5db;
    font-size: 1.125rem;
    line-height: 1.8;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white);
}

.footer-tagline {
    color: #d1d5db;
    font-size: 1.125rem;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: var(--spacing-md);
    text-align: center;
    color: #9ca3af;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .fees-content {
        grid-template-columns: 1fr;
    }

    .process-arrow {
        display: none;
    }

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --font-size-base: 15px;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-2xl) 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle,
    .section-intro {
        font-size: 1rem;
    }

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

    .process-flow {
        flex-direction: column;
    }

    .process-arrow {
        display: none;
    }

    .timeline:before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 70px;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card,
    .benefit-card {
        padding: var(--spacing-lg);
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .hero,
    .section-cta,
    .footer {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
.btn:focus,
.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===================================
/* ===================================
   App Download Section (Updated - 더 컴팩트하게)
   =================================== */
.section-app-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
    padding: var(--spacing-xl) 0;
}

.app-download-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.app-download-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
    line-height: 1.3;
}

.app-download-desc {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    line-height: 1.6;
}

.app-download-features {
    margin-bottom: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: 0.375rem;
    font-size: 1rem;
}

.feature-check {
    color: #10b981;
    font-size: 1.25rem;
    font-weight: bold;
}

.app-download-buttons {
    margin-bottom: var(--spacing-sm);
}

.btn-store {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-store:hover {
    transform: scale(1.05);
}

.store-badge {
    height: 55px;
    width: auto;
}

.app-download-notice {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.6;
}

.app-download-notice a {
    color: #fbbf24;
    text-decoration: underline;
    font-weight: 600;
}

.app-download-notice a:hover {
    color: #fff;
}

.app-download-qr {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-box {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.qr-code {
    width: 180px;
    height: 180px;
    margin: 0 auto var(--spacing-xs);
    background-color: #f3f4f6;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code canvas,
.qr-code img {
    max-width: 100%;
    max-height: 100%;
}

.qr-label {
    font-size: 0.8125rem;
    color: var(--text-gray);
    font-weight: 500;
    line-height: 1.5;
}

/* ===================================
   Hero Notice (iOS 안내)
   =================================== */
.hero-notice {
    font-size: 0.875rem;
    margin-top: var(--spacing-md);
    opacity: 0.9;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* ===================================
   Button with Icon
   =================================== */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.btn-icon {
    font-size: 1.25em;
    line-height: 1;
}

.btn-app,
.btn-kakao {
    min-width: 280px;
}

/* ===================================
   Responsive: App Download Section
   =================================== */
@media (max-width: 1024px) {
    .app-download-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .app-download-qr {
        order: -1;
    }

    .qr-box {
        max-width: 250px;
        margin: 0 auto;
        padding: var(--spacing-sm);
    }
    
    .qr-code {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .section-app-download {
        padding: var(--spacing-lg) 0;
    }

    .app-download-title {
        font-size: 1.75rem;
    }

    .app-download-desc {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }

    .feature-item {
        font-size: 0.9375rem;
        margin-bottom: 0.25rem;
    }

    .store-badge {
        height: 48px;
    }

    .qr-code {
        width: 150px;
        height: 150px;
    }

    .btn-app,
    .btn-kakao {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .app-download-title {
        font-size: 1.5rem;
    }

    .store-badge {
        height: 42px;
    }

    .qr-code {
        width: 140px;
        height: 140px;
    }
    
    .qr-box {
        max-width: 200px;
    }
}
