/* Page-specific styles */

/* ==========================================================================
   Full-Height Layout
   ========================================================================== */

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ==========================================================================
   Hero Screenshot
   ========================================================================== */

.hero__screenshot {
    margin-top: var(--space-8);
    margin-bottom: var(--space-24);
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .hero__screenshot {
        margin-top: var(--space-10);
        padding: 0;
    }
}

/* Hero Screenshot - Mobile/Desktop Toggle */
.hero__screenshot-mobile {
    display: block;
}

.hero__screenshot-mobile img {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius-lg);
}

.hero__screenshot-desktop {
    display: none;
}

@media (min-width: 825px) {
    .hero__screenshot-mobile {
        display: none;
    }

    .hero__screenshot-desktop {
        display: block;
    }
}

/* Browser Frame */
.browser-frame {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--color-neutral-100);
    border: 1px solid var(--color-neutral-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.browser-frame__toolbar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--color-neutral-100);
    border-bottom: 1px solid var(--color-neutral-300);
}

.browser-frame__dots {
    display: flex;
    gap: 4px;
}

.browser-frame__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-neutral-300);
}

@media (min-width: 600px) {
    .browser-frame__toolbar {
        gap: var(--space-3);
        padding: var(--space-2) var(--space-4);
    }

    .browser-frame__dots {
        gap: 6px;
    }

    .browser-frame__dot {
        width: 12px;
        height: 12px;
    }
}

.browser-frame__content {
    line-height: 0;
}

.browser-frame__content img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Body scroll lock for mobile nav */
body.nav-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    body.nav-open {
        overflow: auto;
    }
}

/* ==========================================================================
   Checklist
   ========================================================================== */

.checklists {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.checklist:last-child {
    margin-bottom: 0;
}

.checklist-icon {
    flex-shrink: 0;
    margin-right: var(--space-3);
    color: var(--color-primary-500);
}

.checklist-text {
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
}

/* ==========================================================================
   Legal Content (Terms, Privacy, etc.)
   ========================================================================== */

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

.legal-content__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--space-4);
}

.legal-content__meta {
    font-size: var(--font-size-sm);
    color: var(--color-neutral-500);
    margin-bottom: var(--space-12);
}

.legal-content__body h2 {
    font-family: var(--font-family-base);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-neutral-900);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
}

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

.legal-content__body p {
    font-size: var(--font-size-base);
    color: var(--color-neutral-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

.legal-content__body a {
    color: var(--color-primary-500);
    text-decoration: underline;
}

.legal-content__body a:hover {
    color: var(--color-primary-600);
}

.legal-content__body ul {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
    list-style-type: disc;
}

.legal-content__body li {
    font-size: var(--font-size-base);
    color: var(--color-neutral-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
    .legal-content__title {
        font-size: var(--font-size-5xl);
    }
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing-section {
    background: var(--color-primary-gradient);
    color: var(--color-white);
}

.pricing-section .section-header__title {
    color: var(--color-white);
}

.pricing-section .section-header__description {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-contact {
    text-align: center;
    margin-top: var(--space-12);
}

.pricing-contact p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
}

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

.pricing-contact__cta:hover {
    background: var(--color-neutral-100);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Mobile Section
   ========================================================================== */

.mobile-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .mobile-section__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-20);
    }

    .mobile-section__grid--reversed {
        direction: rtl;
    }

    .mobile-section__grid--reversed > * {
        direction: ltr;
    }
}

.mobile-section__title {
    margin-bottom: var(--space-4);
    text-align: center;
}

@media (min-width: 768px) {
    .mobile-section__title {
        text-align: left;
    }
}

.mobile-section__description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    line-height: var(--line-height-relaxed);
}

.mobile-section__app-store {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.mobile-section__app-store img {
    height: 3.5rem;
}

@media (min-width: 768px) {
    .mobile-section__app-store {
        margin-left: 0;
    }
}

.mobile-section__image-wrapper {
    display: flex;
    justify-content: center;
}

.mobile-section__image {
    width: 100%;
    max-width: 300px;
}
