/* Landing homepage — dark emerald composition matching the marketing design. */

body.landing {
    --lp-page: #08140F;
    --lp-panel: #12201A;
    --lp-card: #15241C;
    --lp-green: #2B9659;
    --lp-green-bright: #45C278;
    --lp-gold: #E8B84A;
    --lp-cream: #F6F3EA;
    --lp-ink: #102018;
    --lp-muted: #A4B8AB;
    --lp-line: rgba(246, 243, 234, 0.09);
    background:
        radial-gradient(ellipse 70% 45% at 8% -8%, rgba(45, 150, 90, 0.22), transparent 58%),
        radial-gradient(ellipse 50% 35% at 92% 0%, rgba(232, 184, 74, 0.07), transparent 48%),
        var(--lp-page);
    color: var(--lp-cream);
    font-family: Nunito, system-ui, sans-serif;
}

body.landing .nav {
    background: rgba(8, 20, 15, 0.82);
    border-bottom-color: transparent;
    padding-top: 1rem;
    padding-bottom: 1rem;
    backdrop-filter: blur(16px);
}

body.landing .brand {
    color: var(--lp-cream);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

body.landing .mark {
    background: linear-gradient(145deg, var(--lp-gold), #c9922e);
    color: #143D28;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(232, 184, 74, 0.12);
}

body.landing .nav nav {
    gap: 0.35rem 1.15rem;
}

body.landing .nav nav a {
    color: rgba(246, 243, 234, 0.72);
    font-size: 0.95rem;
    font-weight: 700;
}

body.landing .nav nav a:hover {
    color: var(--lp-cream);
}

body.landing .nav-store {
    background: var(--lp-green) !important;
    color: white !important;
    margin-left: 0.35rem;
    box-shadow: 0 8px 22px rgba(43, 150, 89, 0.28);
}

body.landing .theme-toggle {
    background: rgba(47, 155, 95, 0.14);
    color: var(--lp-green-bright);
}

body.landing main.landing-main {
    max-width: none;
    margin: 0;
    padding: 0;
}

body.landing .footer {
    background: #050D0A;
    color: var(--lp-cream);
    margin-top: 0;
}

body.landing .footer a {
    color: var(--lp-gold);
}

body.landing .fine {
    color: var(--lp-muted);
}

.lp-hero,
.lp-daily,
.lp-quran,
.lp-explore,
.lp-app,
.lp-support {
    width: min(1160px, calc(100% - 7vw));
    margin: 0 auto;
    padding: 3.8rem 0;
}

.lp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    padding-top: 2.2rem;
    padding-bottom: 3.2rem;
}

.lp-hero-copy {
    animation: lp-rise 0.7s ease both;
}

.lp-kicker {
    color: var(--lp-green-bright);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.76rem;
    margin: 0 0 1.05rem;
}

.lp-hero h1,
.lp-daily h2,
.lp-quran h2,
.lp-explore h2,
.lp-app h2,
.lp-support h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--lp-cream);
    margin: 0 0 1rem;
}

.lp-hero h1 {
    font-size: clamp(2.7rem, 5.2vw, 4.35rem);
    max-width: 12.5ch;
}

.lp-hero h1 em {
    font-style: italic;
    color: var(--lp-green-bright);
    font-weight: 500;
}

.lp-lede,
.lp-daily-copy p,
.lp-app-copy p,
.lp-support-copy p,
.lp-quran-grid p {
    color: var(--lp-muted);
    font-size: 1.06rem;
    line-height: 1.7;
    max-width: 34rem;
    margin: 0;
}

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.75rem 0 1.35rem;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.92rem 1.3rem;
    border-radius: 999px;
    font-weight: 800;
    font-family: inherit;
    text-decoration: none !important;
    border: 1.5px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.lp-btn:hover {
    transform: translateY(-1px);
}

.lp-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

.lp-btn-primary {
    background: var(--lp-green);
    color: white !important;
    box-shadow: 0 10px 28px rgba(43, 150, 89, 0.28);
}

.lp-btn-primary:hover {
    background: var(--lp-green-bright);
}

.lp-btn-outline {
    background: rgba(246, 243, 234, 0.03);
    color: var(--lp-cream) !important;
    border-color: rgba(246, 243, 234, 0.28);
}

.lp-btn-outline:hover {
    border-color: rgba(246, 243, 234, 0.55);
    background: rgba(246, 243, 234, 0.06);
}

.lp-btn-soon {
    cursor: default;
    opacity: 0.9;
    box-shadow: none !important;
}

.lp-btn-soon:hover {
    transform: none;
    background: var(--lp-green);
}

.lp-btn-outline.lp-btn-soon:hover {
    background: rgba(246, 243, 234, 0.03);
    border-color: rgba(246, 243, 234, 0.28);
}

.lp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--lp-muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.lp-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.lp-trust li::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--lp-green-bright);
    box-shadow: 0 0 0 3px rgba(69, 194, 120, 0.16);
}

.lp-hero-card {
    position: relative;
    min-height: 480px;
    border-radius: 1.75rem;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(8, 18, 14, 0.12) 0%, rgba(8, 18, 14, 0.18) 42%, rgba(8, 18, 14, 0.78) 100%),
        var(--hero-image) center 30% / cover no-repeat;
    border: 1px solid rgba(232, 184, 74, 0.18);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: lp-rise 0.85s ease 0.08s both;
}

.lp-hero-date {
    position: absolute;
    top: 1.2rem;
    left: 1.25rem;
    z-index: 2;
    margin: 0;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(8, 18, 14, 0.55);
    backdrop-filter: blur(10px);
    color: var(--lp-gold);
    font-weight: 800;
    font-size: 0.86rem;
    border: 1px solid rgba(232, 184, 74, 0.22);
}

.lp-hero-card-inner {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 1.15rem 1.2rem 1.2rem;
    display: grid;
    gap: 0.45rem;
    border-radius: 1.2rem;
    background: rgba(10, 22, 17, 0.72);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(246, 243, 234, 0.08);
}

.lp-hero-arabic {
    margin: 0;
    font-size: 1.28rem;
    color: var(--lp-cream);
    line-height: 1.8;
}

.lp-hero-meaning {
    margin: 0;
    color: rgba(246, 243, 234, 0.9);
    font-size: 0.98rem;
    line-height: 1.55;
}

.lp-hero-speaker {
    margin: 0;
    color: var(--lp-muted);
    font-size: 0.86rem;
}

.lp-hero-link {
    color: var(--lp-green-bright) !important;
    font-weight: 800;
    text-decoration: none !important;
    margin-top: 0.15rem;
    width: fit-content;
}

.lp-hero-link:hover {
    text-decoration: underline !important;
}

.lp-daily {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 2.4rem;
    align-items: start;
    padding-top: 1.2rem;
    padding-bottom: 4.2rem;
}

.lp-daily-copy {
    padding-top: 0.4rem;
}

.lp-daily h2,
.lp-quran h2,
.lp-explore h2,
.lp-app h2,
.lp-support h2 {
    font-size: clamp(2.1rem, 3.8vw, 3.15rem);
}

.lp-daily-copy p {
    margin-top: 0.85rem;
}

.lp-text-link {
    display: inline-block;
    margin-top: 1.35rem;
    color: var(--lp-green-bright) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.lp-text-link:hover {
    text-decoration: underline !important;
}

.lp-daily-panel {
    display: grid;
    gap: 0.9rem;
}

.lp-date-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.lp-date-chip {
    background: rgba(21, 36, 28, 0.92);
    border: 1px solid var(--lp-line);
    border-radius: 1.05rem;
    padding: 0.9rem 0.35rem 0.8rem;
    text-align: center;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.lp-date-chip.is-today {
    background: var(--lp-green-bright);
    border-color: var(--lp-green-bright);
    box-shadow: 0 10px 24px rgba(69, 194, 120, 0.25);
    transform: translateY(-2px);
}

.lp-date-chip.is-empty {
    opacity: 0;
    pointer-events: none;
}

.lp-date-num {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--lp-cream);
    line-height: 1;
}

.lp-date-month {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: var(--lp-muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-date-chip.is-today .lp-date-num,
.lp-date-chip.is-today .lp-date-month {
    color: var(--lp-ink);
}

.lp-waqia-card {
    display: grid;
    align-content: end;
    gap: 0.4rem;
    min-height: 260px;
    padding: 1.45rem;
    border-radius: 1.45rem;
    text-decoration: none !important;
    color: var(--lp-cream) !important;
    background:
        linear-gradient(180deg, rgba(8, 18, 14, 0.08) 0%, rgba(8, 18, 14, 0.78) 70%, rgba(8, 18, 14, 0.92) 100%),
        var(--waqia-image) center / cover no-repeat;
    border: 1px solid var(--lp-line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-waqia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.lp-waqia-label {
    color: var(--lp-gold);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-waqia-card strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 600;
    line-height: 1.18;
}

.lp-waqia-meta {
    color: var(--lp-muted);
    font-weight: 700;
}

.lp-quran-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.7rem;
}

.lp-quran-grid article {
    background: var(--lp-card);
    border: 1px solid var(--lp-line);
    border-radius: 1.4rem;
    padding: 1.45rem 1.3rem 1.5rem;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.lp-quran-grid article:hover {
    transform: translateY(-3px);
    border-color: rgba(69, 194, 120, 0.28);
}

.lp-step {
    position: absolute;
    top: 1.15rem;
    right: 1.2rem;
    color: rgba(69, 194, 120, 0.4);
    font-weight: 800;
    font-size: 0.85rem;
}

.lp-icon {
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
    place-items: center;
    border-radius: 0.95rem;
    background: rgba(47, 155, 95, 0.16);
    color: var(--lp-green-bright);
    margin-bottom: 1rem;
}

.lp-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.lp-quran-grid h3 {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
    color: var(--lp-cream);
}

.lp-quran-grid a {
    display: inline-block;
    margin-top: 0.95rem;
    color: var(--lp-green-bright) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.lp-explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.7rem;
}

.lp-explore-card {
    position: relative;
    min-height: 240px;
    border-radius: 1.35rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none !important;
    border: 1px solid var(--lp-line);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.lp-explore-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lp-explore-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 28%, rgba(8, 18, 14, 0.94));
}

.lp-explore-card span {
    position: absolute;
    left: 1.15rem;
    bottom: 1.1rem;
    z-index: 1;
    color: var(--lp-cream);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
}

.lp-app {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
    align-items: center;
}

.lp-phones {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: end;
}

.lp-phone {
    background: #0A1210;
    border: 2px solid rgba(243, 240, 231, 0.16);
    border-radius: 1.45rem;
    padding: 0.45rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.lp-phone.is-lift {
    transform: translateY(-1.1rem);
}

.lp-phone-screen {
    background: linear-gradient(180deg, #163024, #0F1C17);
    border-radius: 1.1rem;
    min-height: 230px;
    padding: 1rem 0.85rem;
    display: grid;
    align-content: start;
    gap: 0.45rem;
}

.lp-phone-kicker {
    margin: 0;
    color: var(--lp-gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-phone-title {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.25rem;
    color: var(--lp-cream);
}

.lp-phone-screen .arabic {
    font-size: 1.25rem;
    color: var(--lp-cream);
}

.lp-phone-screen p {
    margin: 0;
    color: var(--lp-muted);
    font-size: 0.82rem;
}

.lp-support {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2.4rem;
    padding: 2.3rem;
    border-radius: 1.9rem;
    background:
        radial-gradient(circle at 88% 42%, rgba(69, 194, 120, 0.18), transparent 42%),
        var(--lp-panel);
    border: 1px solid var(--lp-line);
}

.lp-support-art {
    width: min(280px, 100%);
    justify-self: center;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

@keyframes lp-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-hero-copy,
    .lp-hero-card,
    .lp-btn,
    .lp-waqia-card,
    .lp-quran-grid article,
    .lp-explore-card {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 980px) {
    .lp-hero,
    .lp-daily,
    .lp-app,
    .lp-support {
        grid-template-columns: 1fr;
    }

    .lp-hero h1 {
        max-width: none;
    }

    .lp-hero-card {
        min-height: 420px;
    }

    .lp-quran-grid,
    .lp-explore-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lp-phones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-phone.is-lift {
        transform: none;
    }
}

@media (max-width: 640px) {
    body.landing .nav nav a:not(.nav-store) {
        display: none;
    }

    body.landing .nav nav {
        margin-left: auto;
    }

    .lp-hero,
    .lp-daily,
    .lp-quran,
    .lp-explore,
    .lp-app,
    .lp-support {
        width: calc(100% - 1.5rem);
        padding: 2.1rem 0;
    }

    .lp-quran-grid,
    .lp-explore-grid {
        grid-template-columns: 1fr;
    }

    .lp-date-strip {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .lp-date-month {
        font-size: 0.58rem;
    }

    .lp-phones {
        grid-template-columns: 1fr 1fr;
    }

    .lp-support {
        padding: 1.35rem;
    }
}
