/* Homepage artwork gallery. The source artwork already includes device mockups. */
.home-page {
    --text: #30261f;
    --muted: #7a6e65;
    --line: rgba(93, 64, 44, .14);
    --purple: #a96843;
    background: radial-gradient(ellipse at 18% 45%, #f0dfcc 0, transparent 48%), #faf8f4;
}
.home-page .website-header { background: transparent; backdrop-filter: none; }
.home-page .header-content { justify-content: flex-start; max-width: 1100px; min-height: 88px; }
.home-page .logo-image { box-shadow: none; }
.home-page .phone-showcase {
    max-width: 1100px;
    grid-template-columns: minmax(300px, 460px) minmax(320px, 1fr);
    gap: 80px;
    padding: 48px 0 64px;
    min-height: auto;
}
.home-page .phone-mockup { position: relative; gap: 20px; padding: 12px 24px 0; }
.home-page .phone-frame {
    position: relative;
    isolation: isolate;
    width: min(100%, 310px);
    aspect-ratio: 1290 / 2796;
    border-radius: 16px;
    padding: 0;
    background: #eee5d9;
    box-shadow: 0 24px 60px -24px rgba(74, 46, 25, .35);
}
.home-page .phone-frame::before,
.home-page .phone-frame::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 16px;
    z-index: -1;
    border: 1px solid rgba(116, 79, 49, .10);
}
.home-page .phone-frame::before { background: #e7cfb7; transform: rotate(-6deg); }
.home-page .phone-frame::after { background: #f3e9dc; transform: rotate(4deg); }
.home-page .phone-screen { border: 0; border-radius: 16px; background: #f4f0e7; }
.home-page .screenshot-img { background: #f4f0e7; }
.home-page .phone-indicators { gap: 4px; }
.home-page .indicator { width: 28px; height: 28px; background: transparent; position: relative; }
.home-page .indicator::after {
    content: ''; position: absolute; width: 6px; height: 6px;
    left: 11px; top: 11px; border-radius: 8px; background: #cdbdac;
    transition: width 180ms ease, left 180ms ease;
}
.home-page .indicator.active::after { width: 22px; left: 3px; background: #a96843; }
.home-page .phone-nav-external { gap: 12px; margin-top: -16px; }
.home-page .nav-btn-external {
    min-height: 44px; border-radius: 999px; background: transparent;
    box-shadow: none; font-weight: 600; padding: 0 20px;
}
.home-page .nav-btn-external.next-btn { background: #30261f; border-color: #30261f; color: #fff; }
.home-page .nav-btn-external:hover { transform: translateY(-2px); box-shadow: 0 4px 12px #30261f12; border-color: #a96843; }
.home-page button:focus-visible, .home-page a:focus-visible { outline: 3px solid #a96843; outline-offset: 4px; }
.home-page .eyebrow { font-weight: 600; font-size: .7rem; letter-spacing: .1em; line-height: 1.5; }
.home-page .eyebrow::before { background: #a96843; box-shadow: none; width: 6px; height: 6px; }
.home-page .app-description h1 { font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 800; letter-spacing: -.065em; }
.home-page .app-description h2 { font-weight: 500; margin-top: 24px; letter-spacing: -.035em; }
.home-page #slide-subtext { min-height: 84px; font-size: 1rem; }
/* Editorial introduction to the current app. */
.home-page .app-features { margin-top: 30px; text-align: left; }
.home-page .features-kicker { color: #96603d; font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.home-page .app-features > h3 { margin: 12px 0; font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; }
.home-page .app-features > h3 em { font-family: Georgia, 'Times New Roman', serif; color: #a96843; font-weight: 400; letter-spacing: -.04em; }
.home-page .features-intro { max-width: 340px; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.home-page .app-feature-list { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); }
.home-page .app-feature-list li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.home-page .feature-number { color: #a96843; font-size: .65rem; font-weight: 500; padding-top: 4px; font-variant-numeric: tabular-nums; }
.home-page .app-feature-list h4 { font-size: .88rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.home-page .app-feature-list p { color: var(--muted); font-size: .77rem; line-height: 1.55; max-width: 340px; }
.home-page .download-section h3 { font-weight: 500; font-size: .8rem; margin-bottom: 4px; }
.home-page .footer-sidebar { display: none; }
.home-page .simple-footer { display: block; background: transparent; border-top: 1px solid var(--line); }
.home-page .footer-links a { border: none; background: transparent; font-weight: 500; }
@media (max-width: 1080px) {
    .home-page .phone-showcase { gap: 40px; padding: 40px 12px; }
}
@media (max-width: 820px) {
    .home-page .header-content { justify-content: center; min-height: 76px; }
    .home-page .phone-showcase { gap: 44px; padding: 32px 0 40px; }
    .home-page .phone-frame { width: min(100%, 280px); }
    .home-page .phone-mockup { padding: 8px 20px 0; }
    .home-page .phone-nav-external { width: auto; }
    .home-page .nav-btn-external { flex: none; }
    .home-page .app-description { max-width: 440px; padding: 0 8px; }
    .home-page .app-features { margin-top: 32px; }
    .home-page #slide-subtext { min-height: 0; }
    .home-page .mobile-app-store { margin-top: 2px; gap: 8px; }
    .home-page .mobile-app-store img { width: 144px; }
    .home-page .mobile-app-store .google-play-btn { width: 144px; height: 48px; }
    .home-page .mobile-app-store .google-play-btn img { width: 166px; }
}
@media (max-width: 380px) {
    .home-page .phone-frame { width: 250px; }
    .home-page .phone-mockup { padding-left: 8px; padding-right: 8px; }
}

.home-page .language-switch {
    margin-inline-start: auto; padding: 9px 16px; border: 1px solid var(--line);
    border-radius: 999px; text-decoration: none; font-size: .85rem;
    background: rgba(255,255,255,.5); color: var(--text);
}
.home-page .footer-language-note { font-size: .75rem; color: var(--muted); }
html[dir="rtl"] .home-page { font-family: 'IBM Plex Sans Arabic', 'Tahoma', sans-serif;
    font-weight: 400; }
html[dir="rtl"] .home-page .app-features { text-align: right; }
html[dir="rtl"] .home-page .app-description h1,
html[dir="rtl"] .home-page .app-description h2,
html[dir="rtl"] .home-page .app-features > h3,
html[dir="rtl"] .home-page .app-features > h3 em {
    letter-spacing: normal; line-height: 1.4;
}
html[dir="rtl"] .home-page .app-features > h3 em { font-family: inherit; font-style: normal; }
html[dir="rtl"] .home-page .eyebrow,
html[dir="rtl"] .home-page .features-kicker { letter-spacing: normal; }
html[dir="rtl"] .home-page .app-feature-list p,
html[dir="rtl"] .home-page .features-intro { line-height: 1.85; }
html[dir="rtl"] .home-page .nav-btn-external svg { transform: scaleX(-1); }
@media (max-width: 820px) {
    .home-page .header-content { justify-content: space-between; }
}

/* Arabic type: geometric headings with a more readable text family. */
html[dir="rtl"] .home-page .logo-title,
html[dir="rtl"] .home-page .app-description h1,
html[dir="rtl"] .home-page .app-description h2,
html[dir="rtl"] .home-page .app-features > h3 {
    font-family: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 600;
}
html[dir="rtl"] .home-page .logo-title { font-size: 1.3rem; line-height: 1.6; }
html[dir="rtl"] .home-page .tagline { font-size: .85rem; font-weight: 400; line-height: 1.6; }
html[dir="rtl"] .home-page .app-description h1 { font-weight: 700; line-height: 1.5; }
html[dir="rtl"] .home-page .app-description h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.65; font-weight: 500; margin-top: 8px; }
html[dir="rtl"] .home-page .app-features > h3 { font-size: clamp(1.9rem, 2.7vw, 2.5rem); line-height: 1.6; font-weight: 500; }
html[dir="rtl"] .home-page .app-features > h3 em { font-weight: 600; }
html[dir="rtl"] .home-page #slide-subtext { font-size: 1.08rem; line-height: 1.9; font-weight: 400; }
html[dir="rtl"] .home-page .features-intro { font-size: .98rem; }
html[dir="rtl"] .home-page .app-feature-list h4 { font-size: 1rem; font-weight: 600; line-height: 1.7; }
html[dir="rtl"] .home-page .app-feature-list p { font-size: .9rem; }
html[dir="rtl"] .home-page .features-kicker,
html[dir="rtl"] .home-page .eyebrow { font-size: .8rem; font-weight: 500; }
html[dir="rtl"] .home-page .footer-content p { font-weight: 400; }
html[dir="rtl"] .home-page .language-switch { font-family: 'Inter', sans-serif; }

.home-page .description-content > p:not(.eyebrow) {
    margin-top: 12px;
    max-width: 520px;
    color: var(--muted);
    line-height: 1.65;
}
@media (max-width: 820px) {
    .home-page .description-content > p:not(.eyebrow) { margin-inline: auto; }
}

/* Desktop viewport shell: compact content fits without an inner scroll area. */
@media (min-width: 821px) {
    body.home-page {
        height: 100dvh;
        min-height: 0;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        overflow: hidden;
    }
    .home-page .showcase-container {
        min-height: 0;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
    }
    .home-page .header-content { min-height: 60px; }
    .home-page .phone-showcase {
        height: 100%;
        min-height: 0;
        grid-template-columns: minmax(210px, .7fr) minmax(0, 1fr);
        gap: 40px;
        padding: 10px 12px;
        align-items: stretch;
    }
    .home-page .phone-mockup {
        min-height: 0;
        padding: 10px 24px 0;
        gap: 8px;
        align-content: center;
        grid-template-rows: minmax(0, 1fr) 28px 44px;
        container-type: size;
    }
    .home-page .phone-frame {
        width: auto;
        height: min(670px, calc(100cqh - 88px));
        max-width: 100%;
        align-self: center;
    }
    .home-page .phone-nav-external { margin-top: 0; }
    .home-page .app-description {
        min-height: 0;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        padding: 0;
    }
    .home-page .description-content {
        min-height: 0;
        padding: 0 10px 8px;
        overflow: visible;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .home-page .app-description h1,
    html[dir="rtl"] .home-page .app-description h1 { font-size: clamp(2.25rem, 4.8vh, 3.5rem); line-height: 1.25; }
    .home-page .eyebrow { margin-bottom: 4px; }
    .home-page .app-description h2,
    html[dir="rtl"] .home-page .app-description h2 { margin-top: 4px; font-size: 1.25rem; line-height: 1.4; }
    .home-page #slide-subtext,
    html[dir="rtl"] .home-page #slide-subtext { min-height: 0; font-size: .9rem; line-height: 1.5; margin-top: 6px; }
    .home-page .app-features { margin-top: clamp(8px, 1.5vh, 16px); }
    .home-page .app-features > h3,
    html[dir="rtl"] .home-page .app-features > h3 { font-size: 1.5rem; line-height: 1.4; margin: 4px 0; }
    .home-page .app-features > h3 br { display: none; }
    .home-page .app-features > h3 em::before { content: ' '; }
    .home-page .app-feature-list { margin-top: 8px; }
    .home-page .app-feature-list li { padding: clamp(5px, 1vh, 10px) 0; gap: 10px; }
    .home-page .features-intro,
    html[dir="rtl"] .home-page .features-intro { max-width: none; font-size: .85rem; line-height: 1.5; }
    .home-page .app-feature-list h4,
    html[dir="rtl"] .home-page .app-feature-list h4 { font-size: .9rem; line-height: 1.45; margin-bottom: 2px; }
    .home-page .app-feature-list p,
    html[dir="rtl"] .home-page .app-feature-list p { max-width: none; font-size: .85rem; line-height: 1.5; }
    .home-page .features-kicker,
    html[dir="rtl"] .home-page .features-kicker { font-size: .72rem; line-height: 1.5; }
    .home-page .download-section { margin: 0; padding: 8px 10px 0; border-top: 1px solid var(--line); }
    .home-page .simple-footer { padding: 6px 20px; }
    .home-page .footer-content { gap: 3px; }
    .home-page .footer-content p { font-size: .7rem; }
    .home-page .footer-links { gap: 2px 8px; }
    .home-page .footer-links a { padding: 4px 6px; font-size: .72rem; }
}
