:root {
    --ink: #173c35;
    --muted: #58706a;
    --paper: #fbfaf5;
    --sage: #dfe9df;
    --gold: #b98a3d;
    --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a { color: inherit; }

.shell {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 750;
    text-decoration: none;
}

.mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(23, 60, 53, .18);
}

.mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

nav { display: flex; gap: 24px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }

.hero {
    display: grid;
    min-height: 620px;
    align-items: center;
    grid-template-columns: 1.1fr .9fr;
    gap: 64px;
    padding: 72px 0 96px;
}

.eyebrow {
    color: var(--gold);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { max-width: 720px; font-size: clamp(3.4rem, 8vw, 6.8rem); font-weight: 500; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; }

.lead {
    max-width: 610px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 1.18rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
    display: inline-block;
    padding: 13px 20px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}
.button.secondary { background: transparent; color: var(--ink); }

.app-store-link {
    display: block;
    width: fit-content;
    margin-top: 18px;
    line-height: 0;
}
.app-store-link img { width: 160px; height: auto; }
.app-store-link:hover { opacity: .82; }

.dua-card {
    position: relative;
    overflow: hidden;
    padding: 58px 40px;
    border: 1px solid #cad9ce;
    border-radius: 36px;
    background: linear-gradient(145deg, #edf3e9, #d9e7db);
    box-shadow: 0 28px 70px rgba(23, 60, 53, .12);
}
.dua-card::before {
    position: absolute;
    width: 240px;
    height: 240px;
    top: -100px;
    right: -80px;
    border: 1px solid rgba(185, 138, 61, .35);
    border-radius: 50%;
    content: "";
}
.arabic { margin: 0 0 28px; font-family: Georgia, serif; font-size: 2.2rem; line-height: 1.8; text-align: right; }
.translation { margin: 0; color: #36534d; font-family: Georgia, serif; font-size: 1.08rem; }

.preview { padding: 94px 0 110px; border-top: 1px solid #d9dfd8; }
.preview-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 54px;
}
.preview-controls { display: flex; gap: 10px; padding-bottom: 6px; }
.carousel-button {
    width: 48px;
    height: 48px;
    border: 1px solid #cbd6ce;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.35rem;
}
.carousel-button:hover { background: var(--sage); }
.carousel-button:focus-visible, .screenshot-carousel:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.screenshot-carousel {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding: 4px 4px 34px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--gold) #e8ece5;
    scrollbar-width: thin;
}
.phone-shot {
    flex: 0 0 min(29vw, 285px);
    margin: 0;
    scroll-snap-align: start;
}
.phone-shot img {
    display: block;
    width: 100%;
    border: 1px solid #d8ded6;
    border-radius: 28px;
    box-shadow: 0 20px 42px rgba(23, 60, 53, .12);
}
.phone-shot figcaption {
    margin-top: 16px;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
    text-align: center;
}

.features { padding: 94px 0; border-top: 1px solid #d9dfd8; }
.section-intro { max-width: 650px; margin-top: 18px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.feature { min-height: 190px; padding: 28px; border: 1px solid #d9dfd8; border-radius: 24px; background: rgba(255,255,255,.5); }
.feature h3 { margin: 0 0 10px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); }

.page { max-width: 760px; padding: 80px 0 120px; }
.page h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.page h2 { margin-top: 48px; font-family: inherit; font-size: 1.35rem; font-weight: 750; }
.page p, .page li { color: var(--muted); }
.page a { color: var(--ink); font-weight: 650; }
.notice { margin: 36px 0; padding: 24px; border-radius: 18px; background: var(--sage); }

footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 0 46px;
    border-top: 1px solid #d9dfd8;
    color: var(--muted);
    font-size: .9rem;
}
.footer-links { display: flex; gap: 18px; }

@media (max-width: 760px) {
    nav { gap: 14px; font-size: .9rem; }
    .hero { min-height: auto; grid-template-columns: 1fr; gap: 44px; padding: 54px 0 72px; }
    h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
    .dua-card { padding: 38px 28px; }
    .preview-heading { align-items: center; gap: 18px; }
    .preview-controls { flex: 0 0 auto; }
    .carousel-button { width: 42px; height: 42px; }
    .screenshot-carousel { gap: 16px; margin-right: -20px; }
    .phone-shot { flex-basis: min(68vw, 285px); }
    .phone-shot img { border-radius: 20px; }
    .grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; }
}
