/* 
 * Kallax Landing Page Styles
 * Neo-Brutalist Dark Theme - Extends design system
 * Version 1.0
 */

/* Import design system variables from styleguide */
@import url('./styleguide/kallax-styles.css');

/* ===================================
   LANDING PAGE SPECIFIC OVERRIDES
   =================================== */

:root {
    /* Override container max-width for landing page */
    --container-max-width: 1200px;
}

/* ===================================
   CONTAINER (Landing Page)
   =================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-8);
    }
}

/* ===================================
   SECTIONS
   =================================== */

section {
    padding: var(--space-16) 0;
}

@media (min-width: 768px) {
    section {
        padding: var(--space-16) 0;
    }
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0.7) 0%,
        rgba(15, 15, 15, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-8) var(--space-4);
}

.hero-logo-link {
    position: absolute;
    top: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.hero-logo-link:hover {
    transform: translateX(-50%) translate(1px, 1px);
}

.hero-logo {
    height: 32px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .hero-logo-link {
        top: var(--space-6);
    }

    .hero-logo {
        height: 36px;
    }
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: var(--font-weight-black);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--color-text-primary);
}

.hero-highlight {
    background: var(--color-brand-yellow);
    color: var(--color-stroke);
    padding: 0 0.2em;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */

.testimonials {
    background: var(--color-bg-secondary);
    padding: var(--space-8) 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.testimonials .container {
    max-width: 1400px;
    width: 100%;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-bg-secondary);
    border: var(--border-medium);
    box-shadow: var(--shadow-small);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-primary);
    z-index: 10;
}

.testimonial-nav-prev {
    left: var(--space-4);
}

.testimonial-nav-next {
    right: var(--space-4);
}

.testimonial-nav svg {
    width: 16px;
    height: 16px;
}

.testimonial-nav:hover,
.testimonial-nav:focus {
    transform: translateY(-50%) translate(2px, 2px);
    box-shadow: var(--shadow-small-pressed);
    outline: none;
}

.testimonial-nav:active {
    transform: translateY(-50%) translate(4px, 4px);
    box-shadow: 1px 1px 0px 0px var(--color-stroke);
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    align-items: stretch;
    justify-items: center;
    position: relative;
    width: 100%;
}

.testimonial-card {
    background: var(--color-bg-secondary);
    padding: var(--space-5);
    border: var(--border-medium);
    box-shadow: var(--shadow-medium);
    transition: opacity 0.4s ease,
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
    opacity: 1;
    width: 100%;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Hover effect - gentle elevation */
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-large);
}

/* Desktop (1024px+) - show 3 cards at a time via carousel */
@media (min-width: 1024px) {
    .testimonial-card {
        display: none;
        opacity: 0;
        transform: translateX(-20px);
    }

    .testimonial-card.active {
        display: flex;
        opacity: 1;
        transform: translateX(0);
    }

    .testimonial-card:hover {
        transform: translateY(-6px);
    }

    .testimonial-card.active:hover {
        transform: translateY(-6px);
    }
}

.testimonial-content {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    width: 100%;
}

.testimonial-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--color-bg-primary);
    border: var(--border-medium);
    box-shadow: var(--shadow-small);
}

.testimonial-icon svg {
    color: var(--color-brand-yellow);
}

.testimonial-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.testimonial-text {
    flex: 1;
    text-align: left;
}

.testimonial-quote {
    font-size: 1em;
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin-bottom: var(--space-1);
    quotes: """ """ "'" "'";
}

.testimonial-quote::before {
    content: open-quote;
}

.testimonial-quote::after {
    content: close-quote;
}

.testimonial-attribution {
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Tablet adjustments (768px - 1023px) - show 2 cards */
@media (min-width: 768px) and (max-width: 1023px) {
    .testimonials-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
        align-items: stretch;
        justify-content: center;
    }

    .testimonial-card {
        display: none;
        opacity: 0;
        transform: translateX(-20px);
    }

    .testimonial-card.active {
        display: flex;
        opacity: 1;
        transform: translateX(0);
    }

    .testimonial-card:hover {
        transform: translateY(-6px);
    }

    .testimonial-card.active:hover {
        transform: translateY(-6px);
    }
}

/* Mobile adjustments (under 768px) - show 1 card */
@media (max-width: 767px) {
    .testimonials {
        padding: var(--space-6) 0;
    }

    .testimonial-nav {
        width: 20px;
        height: 20px;
    }

    .testimonial-nav-prev {
        left: var(--space-2);
    }

    .testimonial-nav-next {
        right: var(--space-2);
    }

    .testimonial-nav svg {
        width: 12px;
        height: 12px;
    }

    .testimonials-carousel {
        grid-template-columns: 1fr;
        gap: 0;
        overflow: hidden;
        justify-items: center;
    }

    .testimonial-card {
        padding: var(--space-4);
        max-width: calc(100% - 50px);
        position: absolute;
        opacity: 0;
        transform: translateX(-30px);
        pointer-events: none;
        height: auto;
        min-height: unset;
    }

    .testimonial-card.active {
        position: relative;
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .testimonial-card:hover {
        transform: translateX(0);
    }

    .testimonial-card.active:hover {
        transform: translateX(0);
    }

    .testimonial-icon {
        width: 40px;
        height: 40px;
    }

    .testimonial-icon svg {
        width: 24px;
        height: 24px;
    }

    .testimonial-content {
        gap: var(--space-3);
    }
}

/* ===================================
   CTA BUTTON
   =================================== */

.cta-button {
    display: inline-block;
    padding: var(--space-4) var(--space-10);
    font-family: var(--font-primary);
    font-size: var(--font-size-label);
    font-weight: var(--font-weight-black);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-stroke);
    background: var(--color-brand-yellow);
    border-top: 4px solid var(--color-stroke);
    border-left: 4px solid var(--color-stroke);
    border-right: 8px solid var(--color-stroke);
    border-bottom: 8px solid var(--color-stroke);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-fast);
    cursor: pointer;
    min-height: 48px;
    line-height: 1.2;
}

.cta-button:hover,
.cta-button:focus {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-medium-pressed);
    outline: none;
}

.cta-button:active {
    transform: translate(4px, 4px);
    box-shadow: 1px 1px 0px 0px var(--color-stroke);
}

/* ===================================
   FEATURES SECTION
   =================================== */

.features {
    background: var(--color-bg-secondary);
}

.features .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .features .container {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

.feature-card {
    background: var(--color-bg-primary);
    padding: var(--space-8);
    border: var(--border-medium);
    box-shadow: var(--shadow-large);
    transition: all var(--transition-fast);
}

.feature-card:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-large-pressed);
}

.feature-title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-black);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-brand-yellow);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.feature-text {
    font-size: var(--font-size-body-regular);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===================================
   FEATURES LIST SECTION
   =================================== */

.features-list {
    background: var(--color-bg-primary);
}

.feature-bullets {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.feature-bullets li {
    font-size: var(--font-size-body-regular);
    font-weight: var(--font-weight-medium);
    padding: var(--space-5) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.6;
}

.feature-bullets li:last-child {
    border-bottom: none;
}

.feature-bullets strong {
    color: var(--color-brand-yellow);
    font-weight: var(--font-weight-black);
}

/* ===================================
   AVAILABILITY SECTION
   =================================== */

.availability {
    background: var(--color-bg-secondary);
    text-align: center;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-black);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.availability-text {
    font-size: var(--font-size-body-large);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
}

/* ===================================
   DOWNLOAD SECTION
   =================================== */

.download-section {
    background: var(--color-bg-primary);
    text-align: center;
}

.download-subtitle {
    /* Big, statement subtitle under the section title */
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-secondary);
    max-width: clamp(20rem, 80vw, 40rem);
    margin: 0 auto var(--space-8);
    line-height: 1.6;
}

/* ===================================
   STORE BUTTONS
   =================================== */

.store-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    justify-content: center;
    margin-top: var(--space-6);
}

@media (min-width: 480px) {
    .store-buttons {
        flex-direction: row;
        gap: var(--space-4);
    }
}

.store-buttons-inline {
    margin-top: var(--space-6);
}

.store-buttons-large {
    margin: var(--space-10) auto;
}

.store-button {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #1a1a1a;
    border: 3px solid #0f0f0f;
    box-shadow: 4px 4px 0px 0px #0f0f0f;
    text-decoration: none !important;
    color: #f5f5f5;
    transition: all 0.15s ease;
    min-height: 56px;
    font-family: 'Archivo', sans-serif;
}

.store-button.google-play {
    background: #FFD53D !important;
    color: #0f0f0f !important;
    border-color: #0f0f0f;
}

.store-button.google-play:hover,
.store-button.google-play:focus {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px #0f0f0f;
    background: #f5f5f5 !important;
    color: #0f0f0f !important;
}

.store-button.apple-coming-soon {
    background: #1a1a1a;
    color: #a0a0a0;
    cursor: default;
    opacity: 0.8;
}

.store-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.store-name {
    font-size: 18px;
    font-weight: 700;
}

/* Exit modal CTA link styling */
.exit-modal-cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.fine-print {
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    margin-top: var(--space-4);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

/* Form success/error states */
.form-message {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border: var(--border-medium);
    font-size: var(--font-size-body-regular);
    font-weight: var(--font-weight-medium);
}

.form-message.success {
    background: rgba(127, 176, 105, 0.1);
    border-color: var(--color-success);
    color: var(--color-success);
}

.form-message.error {
    background: rgba(214, 40, 40, 0.1);
    border-color: var(--color-error);
    color: var(--color-error);
}

/* ===================================
   FAQ SECTION
   =================================== */

.faq {
    position: relative;
    background: var(--color-brand-yellow);
    padding: var(--space-16) 0;
    text-align: center;
    overflow: hidden;
}

.faq-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.faq-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 213, 61, 0.85); /* Yellow overlay to maintain yellow tint */
    z-index: 1;
}

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

.faq .section-title {
    color: var(--color-stroke);
}

.faq-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    margin: var(--space-8) auto 0;
    font-family: var(--font-primary);
    font-size: var(--font-size-label);
    font-weight: var(--font-weight-black);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
    border: var(--border-medium);
    box-shadow: var(--shadow-small);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-toggle:hover,
.faq-toggle:focus {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-small-pressed);
    outline: none;
}

.faq-toggle:active {
    transform: translate(4px, 4px);
    box-shadow: 1px 1px 0px 0px var(--color-stroke);
}

.faq-toggle[aria-expanded="true"] .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-toggle-icon {
    width: 20px;
    height: 20px;
    color: var(--color-brand-yellow);
    transition: transform var(--transition-fast);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 900px;
    margin: var(--space-8) auto 0;
    text-align: left;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.faq-grid.faq-expanded {
    max-height: 2500px;
    opacity: 1;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-toggle-bottom {
    margin-top: var(--space-8);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-toggle-bottom.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.faq-toggle-bottom .faq-toggle-icon {
    transform: rotate(180deg);
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
}

.faq-item {
    background: var(--color-bg-secondary);
    padding: var(--space-6);
    border: var(--border-medium);
    border-color: var(--color-stroke);
    box-shadow: var(--shadow-small);
    transition: all var(--transition-fast);
}

.faq-item:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-small-pressed);
}

.faq-question {
    font-size: var(--font-size-body-large);
    font-weight: var(--font-weight-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.faq-answer {
    font-size: var(--font-size-body-regular);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.faq-answer a {
    color: var(--color-brand-yellow);
    text-decoration: underline;
    font-weight: var(--font-weight-bold);
    transition: opacity var(--transition-fast);
}

.faq-answer a:hover {
    opacity: 0.8;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .faq {
        padding: var(--space-12) 0;
    }
    
    .faq-grid {
        gap: var(--space-5);
    }
    
    .faq-item {
        padding: var(--space-5);
    }
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    padding: var(--space-6) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-bg-secondary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.footer-logo {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-2);
}

.footer-text {
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.footer-text a {
    color: var(--color-brand-yellow);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-copyright {
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-disabled);
    margin-top: var(--space-1);
}

/* ===================================
   PRIVACY MODAL
   =================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    overflow-y: auto;
}

.modal-overlay.modal-open {
    display: flex;
}

.modal-content {
    background: var(--color-bg-primary);
    border: var(--border-medium);
    box-shadow: var(--shadow-large);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    border-bottom: var(--border-medium);
    background: var(--color-bg-secondary);
}

.modal-title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-black);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-brand-yellow);
    margin: 0;
    line-height: 1.2;
}

.modal-close {
    background: var(--color-bg-primary);
    border: var(--border-medium);
    box-shadow: var(--shadow-small);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-primary);
}

.modal-close:hover,
.modal-close:focus {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-small-pressed);
    outline: none;
}

.modal-close:active {
    transform: translate(4px, 4px);
    box-shadow: 1px 1px 0px 0px var(--color-stroke);
}

.modal-close svg {
    color: var(--color-brand-yellow);
}

.modal-body {
    padding: var(--space-8);
}

.modal-intro {
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-disabled);
    margin-bottom: var(--space-6);
}

.modal-body h3 {
    font-size: var(--font-size-body-large);
    font-weight: var(--font-weight-black);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-brand-yellow);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.modal-body h3:first-of-type {
    margin-top: 0;
}

.modal-body p {
    font-size: var(--font-size-body-regular);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--space-4);
}

.modal-body ul li {
    font-size: var(--font-size-body-regular);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-3);
    padding-left: var(--space-6);
    position: relative;
}

.modal-body ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-brand-yellow);
    font-weight: var(--font-weight-black);
}

.modal-body a {
    color: var(--color-brand-yellow);
    text-decoration: underline;
    font-weight: var(--font-weight-bold);
    transition: opacity var(--transition-fast);
}

.modal-body a:hover {
    opacity: 0.8;
}

/* Mobile modal adjustments */
@media (max-width: 767px) {
    .modal-content {
        max-height: 95vh;
    }

    .modal-header {
        padding: var(--space-4);
    }

    .modal-body {
        padding: var(--space-6);
    }
}

/* ===================================
   PHONE MOCKUP SECTION
   =================================== */

.phone-showcase {
    background: var(--color-bg-primary);
    padding: var(--space-16) 0;
    overflow: hidden; /* Prevent horizontal scroll from overlap */
}

.phone-showcase .section-title {
    text-align: center;
    margin-bottom: var(--space-12);
}

.phone-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
    margin-bottom: var(--space-16);
}

.phone-item:last-child {
    margin-bottom: 0;
}

/* Scroll animation - initial hidden state */
.phone-mockup,
.phone-info {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Visible state when scrolled into view */
.phone-item.phone-item-visible .phone-mockup,
.phone-item.phone-item-visible .phone-info {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation: phone appears first, then text */
.phone-item.phone-item-visible .phone-info {
    transition-delay: 0.2s;
}

/* Tablet and up - moderate overlap */
@media (min-width: 768px) {
    .phone-item {
        grid-template-columns: 1fr 1fr; /* More balanced on tablets */
        gap: var(--space-4);
        margin-bottom: var(--space-8);
        position: relative;
    }

    .phone-item-reverse {
        direction: rtl;
    }

    .phone-item-reverse > * {
        direction: ltr;
    }

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

    .phone-info {
        z-index: 1;
        align-self: center;
        max-width: 450px;
    }
}

/* Desktop and up - full overlap effect */
@media (min-width: 1024px) {
    .phone-item {
        grid-template-columns: 1fr 0.85fr; /* Narrower text boxes on desktop */
        gap: 0;
        margin-bottom: var(--space-4); /* Tighter vertical spacing */
    }

    .phone-info {
        margin-left: -100px; /* Overlap on desktop */
    }

    .phone-item-reverse .phone-info {
        margin-left: 0;
        margin-right: -100px; /* Reverse overlap */
    }
}

.phone-mockup {
    position: relative;
    max-width: 272px; /* 15% shorter than 320px */
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: auto;
    display: block;
    border: var(--border-medium);
    box-shadow: var(--shadow-large);
    border-radius: 24px; /* Slight radius for phone mockup only */
    object-fit: cover; /* Ensure videos and images scale properly */
}

/* Video-specific styles */
.phone-screen video {
    background: #000; /* Black background for videos */
}

/* Placeholder images for videos */
.phone-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 24px;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.6s ease-out;
    pointer-events: none; /* Allow clicks to pass through to video */
}

/* Fade out when video is loaded */
.phone-placeholder.loaded {
    opacity: 0;
}

.phone-info {
    background: var(--color-bg-secondary);
    padding: var(--space-8);
    border-top: 4px solid var(--color-stroke);
    border-left: 4px solid var(--color-stroke);
    border-right: 8px solid var(--color-stroke);
    border-bottom: 8px solid var(--color-stroke);
    box-shadow: var(--shadow-medium);
}

.phone-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: var(--font-weight-black);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-brand-yellow);
    margin-bottom: var(--space-4);
    line-height: 1.1;
}

.phone-description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    line-height: 1.5;
}

/* ===================================
   ICON GRID SECTION
   =================================== */

.icon-features {
    background: var(--color-bg-secondary);
    padding: var(--space-16) 0;
}

.icon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 640px) {
    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .icon-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-6);
    }
}

.icon-item {
    background: var(--color-bg-primary);
    padding: var(--space-6);
    border: var(--border-medium);
    box-shadow: var(--shadow-small);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Visible state when scrolled into view */
.icon-item.icon-item-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger each icon slightly */
.icon-item.icon-item-visible:nth-child(1) {
    transition-delay: 0s;
}

.icon-item.icon-item-visible:nth-child(2) {
    transition-delay: 0.1s;
}

.icon-item.icon-item-visible:nth-child(3) {
    transition-delay: 0.2s;
}

.icon-item.icon-item-visible:nth-child(4) {
    transition-delay: 0.3s;
}

.icon-item.icon-item-visible:nth-child(5) {
    transition-delay: 0.4s;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: var(--color-bg-secondary);
    border: var(--border-medium);
    box-shadow: var(--shadow-small);
}

.icon {
    color: var(--color-brand-yellow);
}

.icon-title {
    font-size: var(--font-size-body-large);
    font-weight: var(--font-weight-black);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.2;
}

.icon-description {
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ===================================
   SMOOTH SCROLL
   =================================== */

html {
    scroll-behavior: smooth;
}

/* ===================================
   ACCESSIBILITY
   =================================== */

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

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--color-brand-yellow);
    outline-offset: 2px;
}

/* ===================================
   INLINE CTA SECTIONS
   =================================== */

.cta-inline {
    background: var(--color-brand-yellow);
    padding: var(--space-12) 0;
    text-align: center;
}

.cta-inline-dark {
    background: var(--color-bg-secondary);
}

.cta-inline-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-black);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-stroke);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.cta-inline-dark .cta-inline-title {
    color: var(--color-brand-yellow);
}

.cta-inline-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: var(--font-weight-medium);
    color: var(--color-stroke);
    margin-bottom: var(--space-6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.cta-inline-dark .cta-inline-subtitle {
    color: var(--color-text-secondary);
}

.cta-inline .cta-button {
    display: inline-block;
}

/* Yellow variant CTA button */
.cta-button-yellow {
    background: var(--color-brand-yellow);
    color: var(--color-stroke);
}

/* Pitch black variant */
.cta-inline-black {
    background: #000000;
}

.cta-inline-black .cta-inline-title {
    color: var(--color-brand-yellow);
}

.cta-inline-black .cta-inline-subtitle {
    color: var(--color-text-secondary);
}

/* ===================================
   STICKY CTA
   =================================== */

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-secondary);
    border-top: var(--border-thick);
    padding: var(--space-3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 100;
    display: none;
}

.sticky-cta.visible {
    transform: translateY(0);
    display: flex;
}

.sticky-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: var(--space-4);
    padding: 0 var(--space-4);
}

.sticky-cta-text {
    font-size: var(--font-size-body-regular);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button-small {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: var(--font-weight-black);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-stroke);
    background: var(--color-brand-yellow);
    border-top: 3px solid var(--color-stroke);
    border-left: 3px solid var(--color-stroke);
    border-right: 6px solid var(--color-stroke);
    border-bottom: 6px solid var(--color-stroke);
    box-shadow: var(--shadow-small);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    line-height: 1.2;
}

.cta-button-small:hover,
.cta-button-small:focus {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-small-pressed);
    outline: none;
}

.cta-button-small:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0px 0px var(--color-stroke);
}

@media (min-width: 768px) {
    .sticky-cta {
        top: 0;
        bottom: auto;
        border-top: none;
        border-bottom: var(--border-thick);
    }

    .sticky-cta-content {
        padding: 0 var(--space-8);
    }
}

/* ===================================
   EXIT INTENT MODAL
   =================================== */

.exit-intent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.exit-intent-modal.modal-open {
    display: flex;
}

.exit-modal-content {
    background: var(--color-bg-primary);
    border: var(--border-medium);
    box-shadow: var(--shadow-large);
    max-width: 500px;
    width: 100%;
    padding: var(--space-8);
    position: relative;
}

.exit-modal-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: var(--font-weight-black);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-brand-yellow);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.exit-modal-text {
    font-size: var(--font-size-body-regular);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.exit-modal-perks {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
}

.exit-modal-perks li {
    padding: var(--space-3) 0;
    font-size: var(--font-size-body-regular);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

.exit-modal-form {
    margin-top: var(--space-6);
}

.exit-modal-form .form-input {
    width: 100%;
    margin-bottom: var(--space-4);
}

.exit-modal-form .cta-button {
    width: 100%;
}

.exit-modal-privacy {
    font-size: var(--font-size-body-small);
    color: var(--color-text-disabled);
    text-align: center;
    margin-top: var(--space-4);
}

.exit-modal-content .modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
}

/* ===================================
   GUARANTEE BOX
   =================================== */

.guarantee-box {
    background: var(--color-bg-secondary);
    border: var(--border-medium);
    box-shadow: var(--shadow-small);
    padding: var(--space-6);
    margin: var(--space-8) auto 0;
    max-width: 600px;
    text-align: left;
}

.guarantee-title {
    font-size: var(--font-size-body-large);
    font-weight: var(--font-weight-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-brand-yellow);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

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

.guarantee-list li {
    padding: var(--space-3) 0;
    font-size: var(--font-size-body-regular);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.guarantee-list li:first-child {
    padding-top: 0;
}

.guarantee-list strong {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-bold);
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 767px) {
    .hero {
        min-height: 60vh;
    }

    .hero-title {
        margin-bottom: var(--space-4);
    }

    .hero-subtitle {
        margin-bottom: var(--space-6);
    }

    section {
        padding: var(--space-12) 0;
    }

    .feature-card {
        padding: var(--space-6);
    }

    /* Phone mockup section */
    .phone-showcase {
        padding: var(--space-12) 0;
    }

    .phone-item {
        margin-bottom: var(--space-12);
    }

    .phone-mockup {
        margin-bottom: var(--space-6);
    }

    /* Icon grid section */
    .icon-features {
        padding: var(--space-12) 0;
    }

    .icon-grid {
        gap: var(--space-6);
    }

    /* CTA sections */
    .cta-inline {
        padding: var(--space-8) 0;
    }

    .sticky-cta-text {
        font-size: 12px;
    }

    /* Exit modal */
    .exit-modal-content {
        padding: var(--space-6);
    }

    .guarantee-box {
        padding: var(--space-5);
    }

    /* Mobile performance optimizations */
    /* Videos now enabled on mobile - using compressed versions */

    /* Reduce animation complexity on mobile */
    .phone-mockup,
    .phone-info,
    .icon-item,
    .testimonial-card {
        transition-duration: 0.4s;
    }

    /* Simplify shadows on mobile */
    .testimonial-card,
    .phone-info,
    .icon-item,
    .faq-item {
        box-shadow: var(--shadow-small);
    }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Keep essential transforms */
    .cta-button:hover,
    .cta-button:focus,
    .modal-close:hover,
    .modal-close:focus {
        transform: none;
    }
}

