/* Hold. Landing Page Styles */

:root {
    /* Primary Colors - from Hold app theme */
    --midnight-navy: #1B2436;
    --accent: #60A5FA;
    --accent-light: #93C5FD;
    --accent-pale: rgba(96, 165, 250, 0.1);

    /* Backgrounds */
    --bg-primary: #EEF4FB;
    --bg-white: #FFFFFF;
    --bg-card: #F5F7FA;

    /* Text */
    --text-primary: #1B2436;
    --text-secondary: #5A6673;
    --text-light: #FFFFFF;

    /* Status */
    --success: #60A5FA;
    --danger: #E64D4D;

    /* Border */
    --border-accent: #60A5FA;

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

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(27, 36, 54, 0.05);
    --shadow-md: 0 4px 6px rgba(27, 36, 54, 0.07);
    --shadow-lg: 0 10px 25px rgba(27, 36, 54, 0.1);
    --shadow-xl: 0 20px 50px rgba(27, 36, 54, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-light);
}

img {
    max-width: 100%;
    height: auto;
}

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

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    background: var(--bg-white);
    border-bottom: 3px solid var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-lg);
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    margin-left: 1rem;
}

.lang-switcher button {
    padding: 4px 10px;
    border: 1px solid var(--accent);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    transition: all 0.2s ease;
}

.lang-switcher button:hover {
    background: var(--accent-pale);
}

.lang-switcher button.active {
    background: var(--accent);
    color: white;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section - Split Layout */
.hero {
    padding: 90px 0 var(--spacing-2xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-content {
    padding-right: var(--spacing-xl);
}

.hero-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.hero h1 .highlight {
    color: var(--accent);
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* Store Badge Buttons */
.store-badge {
    display: inline-block;
    height: 56px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.store-badge img {
    height: 100%;
    width: auto;
}

.store-badge.android-badge {
    height: 80px;
}

.store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Download buttons container */
.download-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: nowrap;
    align-items: center;
}

.download-buttons.cta-buttons {
    justify-content: center;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 36, 54, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-icon {
    width: 160px;
    height: auto;
    margin: 0 auto var(--spacing-md);
}

.modal-icon img {
    width: 100%;
    height: auto;
}

.modal h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.modal-form input {
    padding: 14px 18px;
    border: 2px solid var(--bg-card);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.modal-form input:focus {
    border-color: var(--accent);
}

.btn-submit {
    padding: 14px 24px;
    background: var(--midnight-navy);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: #2a3a52;
}

.modal-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
}

/* Social Proof Badge */
.social-proof {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
    padding: 10px 20px;
    background: var(--bg-white);
    border: 2px solid var(--accent-pale);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.social-proof .icon {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Phone Mockup Section - Lovelee style */
.hero-phone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.phone-container {
    position: relative;
    z-index: 2;
}

/* Dark frame card - positioned over the background */
.phone-frame {
    position: relative;
    background: var(--midnight-navy);
    border-radius: 40px;
    padding: 24px 24px 20px;
    box-shadow:
        0 25px 50px -12px rgba(27, 36, 54, 0.4),
        0 12px 24px -8px rgba(27, 36, 54, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    margin-right: 40px;
}

.phone-frame-text {
    text-align: center;
    color: var(--bg-white);
    margin-bottom: 16px;
    line-height: 1.3;
}

.phone-frame-text p {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin: 0 0 2px 0;
}

.phone-frame-text strong {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}

/* Phone mockup container */
.phone-mockup {
    border-radius: 36px;
    overflow: hidden;
}

/* Fixed size phone screen container */
.phone-carousel {
    position: relative;
    width: 250px;
    height: 541px;
    border-radius: 36px;
    overflow: hidden;
    background: var(--midnight-navy);
}

.phone-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-screen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-text {
    background: rgba(255,255,255,0.2);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

/* Carousel slides */
.carousel-slide {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Carousel navigation arrows - outside the frame */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-nav:hover {
    color: var(--text-primary);
}

.carousel-nav.prev {
    left: -70px;
}

.carousel-nav.next {
    right: -30px;
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 3;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--midnight-navy);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: var(--accent);
}

/* Features Section */
.features {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-xs);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    background: var(--midnight-navy);
    padding: var(--spacing-2xl) 0;
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    text-align: center;
}

.stat-item h3 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--accent);
    margin-bottom: var(--spacing-xs);
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* How It Works */
.how-it-works {
    padding: var(--spacing-3xl) 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.step-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-xs);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
}

.cta-box {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    text-align: center;
}

.cta-box h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: var(--spacing-sm);
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--bg-white);
    border-top: 3px solid var(--accent);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

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

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-primary);
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(27, 36, 54, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Legal Pages */
.legal-page {
    padding: 140px 0 var(--spacing-3xl);
}

.legal-page h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--spacing-xs);
}

.legal-page .last-updated {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.legal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.legal-content h2 {
    font-size: 1.25rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.legal-content ul,
.legal-content ol {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-lg);
}

.legal-content li {
    margin-bottom: var(--spacing-xs);
}

/* Help Center */
.help-page {
    padding: 140px 0 var(--spacing-3xl);
}

.help-page h1 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--spacing-sm);
}

.help-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

.faq-section {
    margin-bottom: var(--spacing-xl);
}

.faq-section h2 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-card);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.2s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-secondary);
}

.faq-answer-inner ol,
.faq-answer-inner ul {
    padding-left: var(--spacing-lg);
    margin: var(--spacing-sm) 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.contact-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
}

.contact-box h2 {
    margin-bottom: var(--spacing-sm);
}

.contact-box p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.contact-email {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-icon {
        margin: 0 auto var(--spacing-lg);
    }

    .hero h1 .highlight {
        display: inline;
    }

    .hero-content {
        order: 1;
    }

    .hero-phone {
        order: 2;
        min-height: auto;
        padding: 40px 0;
    }

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

    .phone-frame {
        margin-right: 20px;
    }

    .carousel-nav.prev {
        left: -50px;
    }

    .carousel-nav.next {
        right: -10px;
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .nav-mobile-toggle {
        display: block;
    }

    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: var(--spacing-md);
        border-bottom: 3px solid var(--accent);
        gap: var(--spacing-sm);
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: var(--spacing-xs);
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-phone {
        min-height: auto;
        padding: 30px 20px;
    }

    .phone-frame {
        margin-right: 0;
        padding: 20px 20px 16px;
        border-radius: 32px;
    }

    .phone-carousel {
        width: 220px;
        height: 476px;
        border-radius: 32px;
    }

    .phone-mockup {
        border-radius: 32px;
    }

    .phone-screen {
        border-radius: 32px;
    }

    .store-badge {
        height: 36px;
    }

    .store-badge.android-badge {
        height: 52px;
    }

    .carousel-nav {
        font-size: 1.5rem;
    }

    .carousel-nav.prev {
        left: -40px;
    }

    .carousel-nav.next {
        right: -40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}
