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

:root {
    --primary-50: #fef3e7;
    --primary-100: #fde7cf;
    --primary-200: #fbcf9f;
    --primary-300: #f9b76f;
    --primary-400: #f79f3f;
    --primary-500: #f5870f;
    --primary-600: #c46c0c;
    --primary-700: #935109;
    --primary-800: #623606;
    --primary-900: #311b03;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
}

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

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
    color: var(--gray-900);
}

.coffee-icon {
    width: 60px;
    height: 60px;
    display: inline-block;
    flex-shrink: 0;
}

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

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-500);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: var(--gray-900);
    border-radius: 2px;
}

/* Buttons */
.btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-500);
    color: white;
    box-shadow: 0 4px 6px rgba(245, 135, 15, 0.3);
}

.btn-primary:hover {
    background: var(--primary-600);
    box-shadow: 0 6px 12px rgba(245, 135, 15, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--gray-900);
    border: 2px solid var(--gray-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--gray-50);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-white {
    background: white;
    color: var(--primary-500);
}

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, white 50%, var(--primary-100) 100%);
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-icon {
    width: 200px !important;
    height: 200px !important;
    color: var(--primary-500);
    margin: 0 auto 24px;
    display: block;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-note {
    color: var(--gray-600);
    font-size: 14px;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 20px;
    color: var(--gray-600);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-500);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* Pricing Section */
.pricing {
    padding: 80px 20px;
    background: var(--gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border: 2px solid var(--primary-500);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-500);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.plan-name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.plan-description {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 24px;
}

.plan-price {
    margin-bottom: 32px;
}

.price {
    font-size: 48px;
    font-weight: bold;
    color: var(--gray-900);
}

.period {
    color: var(--gray-600);
    font-size: 18px;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.plan-features li {
    padding: 12px 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.plan-features li:last-child {
    border-bottom: none;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    padding: 80px 20px;
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 40px;
    margin-bottom: 24px;
}

.cta p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 48px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}

.footer-col h4 {
    margin-bottom: 16px;
    font-size: 18px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--primary-300);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary-100);
}

.footer-col p {
    color: var(--gray-300);
}

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

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.footer-section a {
    color: var(--primary-300);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--primary-100);
}

.footer-section p {
    color: var(--gray-300);
    font-size: 14px;
    line-height: 1.6;
}

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

/* Success/Cancel Pages */
.success-page, .cancel-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.success-content, .cancel-content {
    text-align: center;
    max-width: 600px;
}

.success-icon, .cancel-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 100%;
    height: 100%;
    color: #10b981;
}

.cancel-icon svg {
    width: 100%;
    height: 100%;
    color: #ef4444;
}

.success-content h1, .cancel-content h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.success-content p, .cancel-content p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.session-info {
    font-size: 14px;
    color: var(--gray-500);
    font-family: monospace;
}

.success-actions, .cancel-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
    }

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

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

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

    .success-actions, .cancel-actions {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
    transition: opacity 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cookie-banner-text p {
    margin: 0;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.6;
}

.cookie-banner-text p:first-child {
    font-size: 24px;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.cookie-banner-text a {
    color: var(--primary-600);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--primary-700);
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.cookie-banner-buttons .btn {
    padding: 12px 24px;
    font-size: 15px;
    white-space: nowrap;
    min-width: 120px;
}

.cookie-banner-buttons .btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.cookie-banner-buttons .btn-secondary:hover {
    background: var(--gray-300);
}

.cookie-banner-buttons .btn-link {
    background: transparent;
    color: var(--primary-500);
    padding: 12px 16px;
    text-decoration: underline;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.cookie-banner-buttons .btn-link:hover {
    color: var(--primary-600);
}

/* Cookie Preference Center */
.cookie-preference-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cookie-preference-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-preference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.cookie-preference-header h2 {
    margin: 0;
    font-size: 22px;
    color: var(--gray-900);
}

.cookie-preference-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.cookie-preference-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.cookie-preference-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.cookie-preference-body > p {
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.6;
}

.cookie-category {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.cookie-category-info h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: var(--gray-900);
}

.cookie-category-info p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

.cookie-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-500);
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cookie-toggle-slider {
    width: 48px;
    height: 26px;
    background: var(--gray-300);
    border-radius: 26px;
    position: relative;
    transition: background 0.3s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--primary-500);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(22px);
}

.cookie-toggle.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-toggle.disabled .cookie-toggle-slider {
    background: var(--primary-400);
}

.cookie-toggle-label {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
}

.cookie-preference-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    flex-wrap: wrap;
}

.cookie-preference-footer .btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
}

.cookie-preference-footer .btn-link {
    background: transparent;
    color: var(--gray-600);
    text-decoration: underline;
    border: none;
    cursor: pointer;
    flex: 0;
    min-width: auto;
}

.cookie-preference-footer .btn-link:hover {
    color: var(--gray-900);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-content {
        padding: 25px 20px;
    }
    
    .cookie-banner-text p:first-child {
        font-size: 20px;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .cookie-banner-buttons .btn {
        width: 100%;
    }

    .cookie-preference-modal {
        max-height: 95vh;
    }

    .cookie-category-header {
        flex-direction: column;
    }

    .cookie-toggle {
        align-self: flex-start;
        margin-top: 12px;
    }

    .cookie-preference-footer {
        flex-direction: column;
    }

    .cookie-preference-footer .btn {
        width: 100%;
    }
}
