/* ===========================================
   INDEX / LANDING PAGE — New Figma Design
   =========================================== */

.landing-page {
    background: #ffffff;
}

/* ===========================================
   SHARED: Content container
   =========================================== */
.lp-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    overflow: visible;
}

.lp-section {
    padding: 50px 0;
    overflow: visible;
}

/* ===========================================
   SHARED: Buttons
   =========================================== */
.lp-btn {
    display: inline-block;
    font-weight: 400;
    text-decoration: none;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.15s;
}
.lp-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.lp-btn--red {
    background: var(--tb-red, #D33F49);
    color: #fff;
}
.lp-btn--dark {
    background: var(--tb-dark, #20212D);
    color: #fff;
}

.lp-btn--lg {
    height: 60px;
    line-height: 60px;
    padding: 0 40px;
    font-size: 18px;
}
.lp-btn--sm {
    height: 40px;
    line-height: 40px;
    padding: 0 24px;
    font-size: 14px;
}

/* ===========================================
   SHARED: Red text accent
   =========================================== */
.lp-text-red {
    color: var(--tb-red, #D33F49);
}

/* ===========================================
   SHARED: Carousel dots
   =========================================== */
.lp-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.lp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tb-dark, #20212D);
    opacity: 0.25;
    cursor: pointer;
    transition: opacity 0.3s, background 0.3s;
    transition: all 0.3s ease;
}
.lp-dot.active {
    opacity: 1;
}

/* ===========================================
   SHARED: Carousel scroll container
   =========================================== */
.lp-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 4px;
    /* Break out on the right only so cards scroll off-screen right */
    margin-right: calc(-50vw + 50%);
    padding-right: 40px;
}
.lp-carousel::-webkit-scrollbar {
    display: none;
}

/* ===========================================
   1. HERO
   =========================================== */
.lp-hero {
    height: 800px;
    background-color: #e8ecef;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    padding: 150px 0 80px;
    overflow: hidden;
}

.lp-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    z-index: 0;
}
.lp-hero-bg--active {
    opacity: 1;
}

.lp-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    position: relative;
    z-index: 1;
}

/* Hero arrows (Tesla-style) */
.lp-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(4px);
    color: #20212D;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    opacity: 0;
}
.lp-hero:hover .lp-hero-arrow { opacity: 1; }
.lp-hero-arrow:hover { background: rgba(255,255,255,0.95); }
.lp-hero-arrow--prev { left: 20px; }
.lp-hero-arrow--next { right: 20px; }

/* Hero dots (Tesla-style) */
.lp-hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 10px;
}
.lp-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.3s;
}
.lp-hero-dot--active {
    background: #fff;
}

.lp-hero-title {
    font-size: 64px;
    font-weight: 700;
    color: var(--tb-dark, #20212D);
    line-height: 1.0;
    letter-spacing: -0.64px;
    margin: 0;
    max-width: 773px;
}

.lp-dots--hero {
    margin-bottom: 25px;
}

/* ===========================================
   2. LIFE MOMENTS CAROUSEL (cards)
   =========================================== */
.lp-moments-section {
    margin-top: -465px;
    position: relative;
    z-index: 2;
    padding-top: 0;
}
.lp-carousel-card {
    flex: 0 0 283px;
    width: 283px;
    min-height: 567px;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
}

/* Intro card (red or dark background) */
.lp-carousel-card--intro {
    padding: 25px;
    gap: 15px;
}
.lp-carousel-card--red {
    background: var(--tb-red, #D33F49);
    color: #fff;
}
.lp-carousel-card--dark {
    background: var(--tb-dark, #20212D);
    color: #fff;
}

.lp-carousel-intro-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.lp-carousel-intro-icon svg {
    width: 48px;
    height: 48px;
}

.lp-carousel-intro-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.lp-carousel-intro-subtitle {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
    margin: 0;
}

/* Photo cards */
.lp-carousel-card-img {
    width: 283px;
    height: 283px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 10px 10px 0 0;
}
.lp-carousel-card-img--dark {
    background: #444;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.lp-carousel-card-img--dark:has(.lp-card-screenshot--3d) {
    align-items: center;
}

.lp-card-screenshot {
    width: calc(100% - 40px);
    height: 80%;
    margin: 0 auto;
    border-radius: 8px 8px 0 0;
    border: 2px solid rgba(255,255,255,0.2);
    border-bottom: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    object-fit: cover;
    object-position: top left;
}

.lp-card-screenshot--top {
    width: calc(100% - 40px);
    height: 80%;
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    object-fit: cover;
    object-position: top right;
    align-self: flex-start;
}

.lp-carousel-card-img--dark:has(.lp-card-screenshot--top) {
    align-items: flex-start;
}

.lp-carousel-card-img--stacked {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding: 0;
}
.lp-card-screenshot--stack-top,
.lp-card-screenshot--stack-bottom {
    width: 90%;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    object-fit: contain;
    margin-right: -5px;
}
.lp-card-screenshot--stack-top {
    max-height: 52%;
}
.lp-card-screenshot--stack-bottom {
    max-height: 38%;
}

.lp-card-screenshot--3d-right {
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 82%;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.2);
    object-fit: contain;
    object-position: center;
    margin: auto;
    transform: perspective(400px) rotateY(12deg) rotateX(5deg) scale(1.02);
    box-shadow: -12px 12px 30px rgba(0,0,0,0.5), -4px 4px 10px rgba(0,0,0,0.3);
}

.lp-carousel-card-img--dark:has(.lp-card-screenshot--3d-right) {
    align-items: center;
}

.lp-card-screenshot--3d {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 65%;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.2);
    object-fit: contain;
    object-position: center;
    margin-bottom: auto;
    margin-top: auto;
    transform: perspective(400px) rotateY(-12deg) rotateX(5deg) scale(1.02);
    box-shadow: 12px 12px 30px rgba(0,0,0,0.5), 4px 4px 10px rgba(0,0,0,0.3);
}

.lp-carousel-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lp-carousel-card-label {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--tb-dark, #20212D);
}

.lp-carousel-card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--tb-dark, #20212D);
}

/* ===========================================
   3. STAT CARDS
   =========================================== */
.lp-stat-row {
    display: flex;
    gap: 25px;
}

.lp-stat-card {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lp-stat-card--red {
    border: 10px solid var(--tb-red, #D33F49);
    color: var(--tb-red, #D33F49);
}
.lp-stat-card--red .lp-stat-label,
.lp-stat-card--red .lp-stat-number,
.lp-stat-card--red .lp-stat-body {
    color: var(--tb-red, #D33F49);
}

.lp-stat-card--dark {
    border: 10px solid var(--tb-dark, #20212D);
    color: var(--tb-dark, #20212D);
}
.lp-stat-card--dark .lp-stat-label,
.lp-stat-card--dark .lp-stat-number,
.lp-stat-card--dark .lp-stat-body {
    color: var(--tb-dark, #20212D);
}

.lp-stat-label {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.lp-stat-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0;
}

.lp-stat-body {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.lp-stat-card .lp-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ===========================================
   4. DOCUMENTS WORKING FOR YOU
   =========================================== */
.lp-docs-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
}

.lp-docs-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 72px;
    letter-spacing: -0.64px;
    color: var(--tb-dark, #20212D);
    margin: 0;
    max-width: 900px;
}

.lp-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px;
    max-width: 657px;
}

.lp-tag-pill {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    padding: 0 15px;
    border-radius: 15px;
    background: var(--tb-dark, #20212D);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* ===========================================
   5. PRODUCT FEATURES — uses same carousel card styles
   =========================================== */

/* ===========================================
   6. VIDEO PLACEHOLDER
   =========================================== */
.lp-video-placeholder {
    width: 100%;
    height: 658px;
    background: #d9d9d9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lp-video-play {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--tb-dark, #20212D);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.lp-video-play:hover {
    transform: scale(1.05);
}
.lp-video-play svg {
    margin-left: 8px; /* optical center for play triangle */
}
.lp-video-play polygon {
    fill: #fff;
}

/* ===========================================
   7. SECURITY CARDS
   =========================================== */
.lp-security-row {
    display: flex;
    gap: 25px;
}

.lp-security-card {
    flex: 1;
    min-width: 0;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 400px;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
}

.lp-security-card--red {
    background: var(--tb-red, #D33F49);
    color: #fff;
}
.lp-security-card--dark {
    background: var(--tb-dark, #20212D);
    color: #fff;
}
.lp-security-card--white {
    background: #fff;
    color: var(--tb-dark, #20212D);
}

.lp-security-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.lp-security-icon svg {
    width: 48px;
    height: 48px;
}
.lp-security-icon-text {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.36px;
    line-height: 48px;
}

.lp-security-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.24px;
    margin: 0;
}

.lp-security-desc {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.14px;
    margin: 0;
    opacity: 0.9;
}

/* ===========================================
   8. TESTIMONIALS
   =========================================== */
.lp-carousel--testimonials {
    /* Same carousel base, just wider cards */
}

.lp-testimonial-card {
    flex: 0 0 437px;
    width: 437px;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--tb-border, #E5E5E5);
    display: flex;
    flex-direction: column;
}

.lp-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--tb-dark, #20212D);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    margin: 25px 25px 0;
}

.lp-testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.lp-testimonial-body {
    padding: 25px 25px 50px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-testimonial-meta {
    font-size: 14px;
    margin: 0;
    color: var(--tb-dark, #20212D);
}
.lp-testimonial-meta strong {
    font-weight: 700;
}

.lp-testimonial-quote {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--tb-dark, #20212D);
}

/* ===========================================
   9. FINAL CTA
   =========================================== */
.lp-final-cta {
    padding: 100px 0;
}

.lp-final-cta .lp-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
}

.lp-final-cta-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.64px;
    color: var(--tb-dark, #20212D);
    margin: 0;
    max-width: 900px;
}

/* ===========================================
   RESPONSIVE: Tablet (max 900px)
   =========================================== */
@media (max-width: 900px) {
    .lp-content {
        padding: 0 25px;
    }

    .lp-hero {
        height: 600px;
        padding: 120px 0 60px;
    }
    .lp-hero-inner {
        padding: 0 25px;
    }
    .lp-moments-section {
        margin-top: -260px;
    }

    .lp-hero-title {
        font-size: 44px;
    }

    .lp-docs-title {
        font-size: 44px;
        line-height: 52px;
    }

    .lp-final-cta-title {
        font-size: 44px;
    }

    .lp-stat-row {
        flex-direction: column;
    }

    .lp-security-row {
        flex-direction: column;
    }

    .lp-stat-number {
        font-size: 36px;
    }

    .lp-stat-body {
        font-size: 18px;
    }

    .lp-video-placeholder {
        height: 400px;
    }

    .lp-video-play {
        width: 90px;
        height: 90px;
    }

    .lp-testimonial-card {
        flex: 0 0 320px;
        width: 320px;
    }
    .lp-testimonial-quote {
        font-size: 18px;
    }
}

/* ===========================================
   RESPONSIVE: Mobile (max 600px)
   =========================================== */
@media (max-width: 600px) {
    .lp-content {
        padding: 0 20px;
    }

    .lp-section {
        padding: 40px 0;
    }

    .lp-hero {
        height: 500px;
        padding: 100px 0 50px;
    }
    .lp-hero-inner {
        padding: 0 20px;
    }
    .lp-hero-arrow { display: none; }
    .lp-moments-section {
        margin-top: -220px;
    }

    .lp-hero-title {
        font-size: 32px;
    }

    .lp-btn--lg {
        height: 50px;
        line-height: 50px;
        padding: 0 30px;
        font-size: 16px;
    }

    .lp-docs-title {
        font-size: 32px;
        line-height: 40px;
    }

    .lp-final-cta-title {
        font-size: 32px;
    }

    .lp-final-cta {
        padding: 60px 0;
    }

    .lp-carousel-card {
        flex: 0 0 240px;
        width: 240px;
        min-height: 460px;
    }
    .lp-carousel-card-img {
        width: 240px;
        height: 240px;
    }
    .lp-carousel-card-title {
        font-size: 18px;
    }
    .lp-carousel-intro-title {
        font-size: 20px;
    }

    .lp-stat-number {
        font-size: 32px;
    }
    .lp-stat-body {
        font-size: 16px;
    }

    .lp-video-placeholder {
        height: 250px;
    }
    .lp-video-play {
        width: 70px;
        height: 70px;
    }
    .lp-video-play svg {
        width: 32px;
        height: 32px;
    }

    .lp-security-card {
        min-height: 300px;
    }
    .lp-security-title {
        font-size: 20px;
    }

    .lp-testimonial-card {
        flex: 0 0 280px;
        width: 280px;
    }
    .lp-testimonial-quote {
        font-size: 16px;
    }
    .lp-testimonial-body {
        padding: 20px 20px 35px;
    }
}
