/* =========================================
   MOBILE-APP.CSS — Mobile app page styles
   ========================================= */

/* ── Hero Grid ── */
.app-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.app-hero-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.app-hero-text p {
    color: var(--color-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Store buttons */
.store-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

.store-btn--dark {
    background: var(--color-dark);
}

.store-btn--blue {
    background: var(--color-blue);
}

.store-btn--dark:hover {
    background: #111827;
    transform: translateY(-2px);
}

.store-btn--blue:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.store-btn__icon {
    font-size: 1.5rem;
}

.store-btn small {
    display: block;
    font-size: 0.68rem;
    opacity: 0.75;
}

.store-btn strong {
    display: block;
    font-size: 1rem;
}

/* Bullet list */
.app-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.app-bullet {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--color-gray);
    font-size: 0.95rem;
}

.app-bullet span:first-child {
    color: #22c55e;
}

/* Mockup image */
.app-mockup-img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-blue);
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.app-mockup-img:hover {
    transform: rotate(0deg);
}

/* ── Feature Cards ── */
.feature-card {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

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

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 1rem 0 0.5rem;
}

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

/* ── UBT Dark Banner ── */
.ubt-banner {
    background: var(--color-dark);
    border-radius: var(--radius-2xl);
    padding: 4rem;
    position: relative;
    overflow: hidden;
    color: var(--color-white);
}

.ubt-banner__blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: -30%;
    right: -10%;
}

.ubt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ubt-text h2 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.ubt-text p {
    color: rgba(255, 255, 255, 0.70);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.ubt-img {
    border-radius: var(--radius-xl);
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

/* ── Screenshot Scroll ── */
.screenshots-wrap {
    position: relative;
    overflow: hidden;
}

.screenshots-fade-left,
.screenshots-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6rem;
    z-index: 10;
    pointer-events: none;
}

.screenshots-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--color-light), transparent);
}

.screenshots-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--color-light), transparent);
}

.screenshots-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll-track 40s linear infinite;
    padding: 1rem 0.5rem;
}

.screenshots-track:hover {
    animation-play-state: paused;
}

.screenshot-item {
    width: 16rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 6px solid var(--color-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    flex-shrink: 0;
}

.screenshot-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-lg);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes scroll-track {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── FAQ ── */
.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    gap: 1rem;
}

.faq-question span {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark);
    transition: color 0.2s;
}

.faq-question:hover span,
.faq-item.open .faq-question span {
    color: var(--color-blue);
}

.faq-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    transition: var(--transition);
}

.faq-item.open .faq-icon {
    background: var(--color-blue);
    color: var(--color-white);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.35s ease;
    opacity: 0;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    opacity: 1;
}

.faq-answer p {
    padding-top: 1rem;
    color: var(--color-gray);
    line-height: 1.75;
    padding-right: 3rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .app-hero-grid {
        grid-template-columns: 1fr;
    }

    .app-mockup-img {
        display: none;
    }

    .ubt-grid {
        grid-template-columns: 1fr;
    }

    .ubt-img {
        display: none;
    }

    .ubt-banner {
        padding: 2.5rem;
    }
}