
:root {
    --bg: #0f172a;
    --card: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #38bdf8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #020617, var(--bg));
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeUp 0.9s ease-out both;
}

header h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 1rem;
}

p strong {
    color: var(--accent);
}
header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
}

section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1.5rem;
    padding: 2.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.app-store-badge-container {
    padding-bottom: 1.5rem;
    padding-top: 0;
    background: none;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-block h2 {
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    margin-bottom: 1rem;
}

.text-block p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
}

.image-placeholder {
    border-radius: 1.25rem;
    display: flex;
    gap: 3rem;
    justify-content: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.image-placeholder div {
    border-radius: 1.25rem;
    display: flex;
    gap: 3rem;
    justify-content: center;
    color: var(--muted);
    font-size: 0.95rem;
}


.flex {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.flex-column {
    flex-direction: column;
    align-items: center;
}

.image-placeholder img {
    max-height: 260px;
    width: auto;
    border-radius: 1.25rem;
    object-fit: cover;
}

.image-placeholder img.img-landscape {
    max-height: 120px;
    width: auto;
    border-radius: 1.25rem;
    object-fit: cover;
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cards .card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

ul li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

ul {
    list-style: none;
    /* on the left, on the right on the Arabic and Urdu pages */
    margin-inline-start: 1.2rem;
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.accent {
    color: var(--accent);
}
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.app-store-badge-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.app-store-image {
    width: 20em;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Responsive layout */
@media (max-width: 768px) {
    section {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .flex-reverse {
        flex-direction: column-reverse;
    }

    header {
        margin-bottom: 1rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* the language menu at the top of every page: a button with the page's language, its list opens below it */
header {
    /* the open list lies above the sections below the header */
    position: relative;
    z-index: 2;
}

.select-language {
    display: flex;
    /* the end of the line: on the right, on the left on the Arabic and Urdu pages */
    justify-content: flex-end;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.select-language details {
    position: relative;
}

.select-language summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.select-language summary::-webkit-details-marker {
    display: none;
}

/* a chevron: down while the list is closed, up while it is open */
.select-language summary::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.select-language details[open] summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.select-language summary:hover,
.select-language details[open] summary {
    border-color: var(--accent);
}

.select-language summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.select-language ul {
    position: absolute;
    top: calc(100% + 0.4rem);
    inset-inline-end: 0;
    min-width: 12rem;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    text-align: start;
}

.select-language li {
    margin: 0;
}

.select-language li a {
    display: block;
    padding: 0.55rem 0.9rem;
    border-radius: 0.6rem;
    color: var(--text);
}

.select-language li a:hover,
.select-language li a:focus-visible {
    background: rgba(56, 189, 248, 0.12);
    text-decoration: none;
}

.select-language li a[aria-current="page"] {
    color: var(--accent);
    font-weight: 600;
}

/* app screenshots next to the descriptions of its functions */
.image-placeholder img.screenshot {
    max-height: 560px;
    border-radius: 1.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

section.single-column {
    grid-template-columns: 1fr;
}

.feature-list {
    list-style: disc;
    color: var(--muted);
}

.feature-list li strong {
    color: var(--accent);
}

@media (max-width: 768px) {
    .image-placeholder img.screenshot {
        max-height: 480px;
    }
}

.podcast-link img {
    width: 7em;
    height: auto;
    object-fit: scale-down;
    border-radius: 7px;

}