/**
 * Life Reel — light theme (refined)
 * Shared dark-template CSS is overridden for readable, Soft-premium UI.
 */

:root {
    --primary-color: #1E6CFF;
    --primary-dark: #1557E0;
    --primary-light: #5B8FFF;
    --accent-color: #1E6CFF;

    /* Soft charcoal — not pure black */
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;

    --bg-primary: #F7F9FC;
    --bg-secondary: #EEF3FF;
    --bg-card: #ffffff;
    --border-color: rgba(30, 41, 59, 0.08);

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 10px 28px rgba(15, 70, 160, 0.08);
    --shadow-lg: 0 18px 40px rgba(15, 70, 160, 0.12);
    --shadow-xl: 0 28px 56px rgba(15, 70, 160, 0.14);

    --gradient-primary: linear-gradient(135deg, #1E6CFF 0%, #1557E0 55%, #0D47C9 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 108, 255, 0.08) 0%, rgba(21, 87, 224, 0.03) 100%);
}

body {
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(at 12% -10%, rgba(30, 108, 255, 0.10) 0px, transparent 46%),
        radial-gradient(at 88% 0%, rgba(91, 143, 255, 0.08) 0px, transparent 40%),
        radial-gradient(at 50% 100%, rgba(226, 232, 240, 0.7) 0px, transparent 50%);
    background-attachment: fixed;
}

.grid-background {
    background-image:
        linear-gradient(rgba(30, 108, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 108, 255, 0.045) 1px, transparent 1px);
    opacity: 0.7;
}

/* —— Hero spacing (tighten vs template 120px) —— */
.app-hero {
    background: transparent;
    margin-bottom: 0 !important;
    padding: 56px 20px 28px !important;
}

.app-hero::before {
    opacity: 0.25;
}

.app-hero-container {
    gap: 48px;
}

.app-icon-large {
    margin-bottom: 18px !important;
}

.app-slogan {
    color: #3B82F6;
    background: none;
    -webkit-text-fill-color: #3B82F6;
    filter: none;
    text-shadow: none;
    letter-spacing: 0.14em;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px !important;
}

.app-title {
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    color: var(--text-primary);
    text-shadow: none;
    font-size: clamp(2.25rem, 4.6vw, 3.4rem);
    margin-bottom: 16px !important;
    letter-spacing: -0.03em;
    font-weight: 800;
}

/* Soft blue highlight + lighter glow (~15% less than prior) */
.app-title .highlight-brand,
.highlight-brand,
.section-title .title-accent,
.title-accent {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #1E6CFF;
    color: #1E6CFF;
    filter: none;
    text-shadow:
        0 0 15px rgba(30, 108, 255, 0.30),
        0 0 30px rgba(30, 108, 255, 0.15);
}

.app-tagline {
    color: var(--text-secondary);
    margin-bottom: 28px !important;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.app-tagline .app-store-link,
.app-store-link {
    color: #1E6CFF;
    border-bottom-color: rgba(30, 108, 255, 0.3);
    font-weight: 600;
}

.app-store-link:hover {
    color: #1557E0;
    border-bottom-color: rgba(30, 108, 255, 0.65);
}

/* Clean icon — no plate, no giant halo (logo asset already rounded) */
.app-logo {
    width: 112px !important;
    height: 112px !important;
    object-fit: contain;
    border-radius: 28px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    filter: drop-shadow(0 10px 20px rgba(30, 108, 255, 0.22)) !important;
    box-shadow: none !important;
    transition: transform 0.3s ease, filter 0.3s ease;
    will-change: transform;
}

.app-icon-large:hover .app-logo {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 14px 26px rgba(30, 108, 255, 0.3)) !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

@media (hover: none) and (pointer: coarse), (max-width: 768px) {
    .app-logo {
        width: 96px !important;
        height: 96px !important;
        filter: drop-shadow(0 8px 16px rgba(30, 108, 255, 0.2)) !important;
        animation: none !important;
        transition: none !important;
        transform: none !important;
        will-change: auto !important;
    }

    .app-icon-large:hover .app-logo,
    .app-icon-large:active .app-logo {
        transform: none !important;
        filter: drop-shadow(0 8px 16px rgba(30, 108, 255, 0.2)) !important;
    }
}

/* Hero image +15% on wide desktop */
.hero-frame {
    max-width: 360px;
    margin: 0 auto;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    background: transparent;
}

.hero-frame img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.14));
}

@media (min-width: 1100px) {
    .hero-frame {
        max-width: 414px; /* 360 * 1.15 */
    }
}

@media (min-width: 1400px) {
    .hero-frame {
        max-width: 440px;
    }
}

/* —— Sections: tighten big gaps —— */
.app-section {
    padding: 56px 20px !important;
}

.app-section-alt {
    background: rgba(30, 108, 255, 0.035);
}

#features.app-section {
    padding-top: 24px !important;
}

.section-header {
    margin-bottom: 36px !important;
}

.section-title {
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    color: var(--text-primary);
    font-size: clamp(1.85rem, 3.5vw, 2.75rem) !important;
}

.section-subtitle,
.about-copy {
    color: var(--text-secondary);
}

.about-copy .app-store-link {
    color: #1E6CFF;
}

/* —— Feature cards —— */
.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.feature-card:hover {
    border-color: rgba(30, 108, 255, 0.22);
    box-shadow: var(--shadow);
}

.feature-icon-container {
    background: rgba(30, 108, 255, 0.1);
    color: var(--primary-color);
}

.feature-title {
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
}

/* —— Screenshots —— */
.screenshots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1100px;
}

.screenshot-item {
    background: transparent;
    border: none;
    box-shadow: var(--shadow);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-width: 320px;
    width: 100%;
}

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

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

@media (max-width: 900px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .screenshot-item {
        max-width: 280px;
    }
}

/* —— FAQ —— smoother close (no opacity fight) —— */
.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item[open] {
    border-color: rgba(30, 108, 255, 0.28);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.faq-question {
    color: var(--text-primary);
}

.faq-icon {
    color: #1E6CFF;
}

.faq-item[open] .faq-icon,
.faq-item.is-closing .faq-icon {
    color: #1557E0;
}

.faq-answer {
    color: var(--text-secondary);
    opacity: 1 !important;
    transition: none !important;
}

.faq-answer-wrap {
    transition: none !important;
}

.faq-item.is-closing .faq-answer-wrap {
    transition: none !important;
}

.faq-answer .app-store-link {
    color: #1E6CFF;
    border-bottom-color: rgba(30, 108, 255, 0.3);
}

/* —— Download CTA block — richer, not flat —— */
.cta-section {
    padding: 48px 20px 64px !important;
}

.cta-card {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255, 255, 255, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 100%, rgba(13, 71, 201, 0.55) 0%, transparent 50%),
        linear-gradient(145deg, #4B8AFF 0%, #1E6CFF 42%, #1557E0 78%, #0D47C9 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 28px 64px rgba(21, 87, 224, 0.35),
        0 0 0 1px rgba(13, 71, 201, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 0, transparent 42%),
        radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: auto, 28px 28px;
    animation: none;
}

.cta-title {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(11, 40, 120, 0.25);
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
}

.cta-description .app-store-link {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.cta-description .app-store-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* —— Hero CTA: flat solid primary (no cartoon glow) —— */
.btn-app-store {
    background: #1E6CFF !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(30, 108, 255, 0.22) !important;
    padding: 18px 28px !important;
    min-height: 56px !important;
    font-size: 1.0625rem !important;
    border-radius: 14px !important;
    border: none !important;
    gap: 0;
}

.btn-app-store svg {
    fill: #ffffff;
    color: #ffffff;
}

.btn-app-store .btn-free,
.btn-app-store .btn-divider {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-app-store .btn-divider {
    background: rgba(255, 255, 255, 0.35);
}

.btn-app-store:hover {
    background: #1557E0 !important;
    box-shadow: 0 6px 18px rgba(30, 108, 255, 0.28) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .btn-app-store {
        padding: 16px 24px !important;
        min-height: 52px !important;
        font-size: 1rem !important;
    }
}

.cta-card .btn-app-store {
    background: #ffffff !important;
    color: #1E6CFF !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(11, 30, 80, 0.18) !important;
}

.cta-card .btn-app-store svg {
    fill: #1E6CFF;
    color: #1E6CFF;
}

.cta-card .btn-free,
.cta-card .btn-divider {
    color: #1E6CFF;
    border-color: rgba(30, 108, 255, 0.25);
}

.cta-card .btn-divider {
    background: rgba(30, 108, 255, 0.25);
}

.cta-card .btn-app-store:hover {
    background: #F8FBFF !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11, 30, 80, 0.22) !important;
}

/* —— Footer —— */
.app-footer {
    background:
        linear-gradient(180deg, #121A2E 0%, #0B1220 100%);
    border-top: 1px solid rgba(30, 108, 255, 0.18);
    padding: 48px 20px 32px !important;
}

.app-footer .footer-content {
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: block;
    box-shadow: 0 0 20px rgba(30, 108, 255, 0.25);
}

.logo-circle {
    display: none !important;
}

.logo-text {
    color: #F1F5F9 !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-link {
    color: #94A3B8 !important;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #5B8FFF !important;
}

.footer-copyright {
    color: #64748B !important;
    margin-top: 28px;
}
