/* ==========================================================================
   Timetable Plus — home page
   Light and calm like the app itself: paper white, the app's teal, real screenshots.
   ========================================================================== */

:root {
    --bg: #FBFCFA;
    --bg-soft: #F2F6F4;
    --surface: #FFFFFF;
    --ink: #0F1F1D;
    --ink-2: #44524F;
    --ink-3: #6B7774;
    --line: #E3E9E6;
    --brand: #1F7A72;
    --brand-strong: #155E57;
    --brand-soft: #E3F2EF;
    --brand-tint: #4DB6AC;
    --accent: #F2A33A;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(15, 31, 29, 0.05), 0 8px 24px -12px rgba(15, 31, 29, 0.18);
    --shadow-lg: 0 30px 60px -24px rgba(15, 31, 29, 0.35);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-ar: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
    --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html[dir="rtl"] body { font-family: var(--font-ar); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
}

html[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.92rem; }

.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }

h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

.lead { color: var(--ink-2); font-size: 1.12rem; max-width: 640px; }

section { padding: 96px 0; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 12px 0 14px; }
.section-head.center .lead { margin-inline: auto; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }

.btn-ghost { color: var(--brand); border: 1.5px solid #BFDCD7; background: transparent; }
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand-soft); }

.play-badge img { height: 56px; width: auto; }
.play-badge { display: inline-block; transition: transform 0.2s; }
.play-badge:hover { transform: translateY(-2px); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-weight: 700;
}
.link-arrow i { font-size: 0.8em; transition: transform 0.2s; }
.link-arrow:hover i { transform: translateX(3px); }
html[dir="rtl"] .link-arrow i { transform: scaleX(-1); }
html[dir="rtl"] .link-arrow:hover i { transform: scaleX(-1) translateX(3px); }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 252, 250, 0.86);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-row {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.logo span b { color: var(--brand); font-weight: 800; }

.nav { display: flex; gap: 26px; margin-inline-start: 12px; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: 0.96rem; }
.nav a:hover { color: var(--brand); }
.nav .nav-web {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--brand);
    font-weight: 700;
    padding: 6px 12px;
    margin: -6px 0;
    border-radius: 999px;
    background: var(--brand-soft);
}
.nav .nav-web:hover { background: #D3EBE6; }
.nav .nav-web i { font-size: 0.85em; }
.footer-links .nav-web i { display: none; }
.mobile-only { display: none !important; }
.nav-mobile { display: none; }

/* Hamburger (phones and small tablets) */
.menu-btn {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }

.lang {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.lang i { position: absolute; inset-inline-start: 12px; color: var(--ink-3); font-size: 0.9rem; pointer-events: none; }
.lang select {
    appearance: none;
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    padding-inline-start: 34px;
    cursor: pointer;
}
.lang select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 40px 0 88px;
    overflow: hidden;
}

/* A faint timetable grid behind the hero: the product, as texture */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
    opacity: 0.7;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: start;
}
/* The phones column is tall; the text starts near the top so the headline and the Play
   button are both visible on a laptop screen without scrolling. */
.hero-grid > div:first-child { padding-top: 36px; }

.hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 18px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
html[dir="rtl"] .hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }

.hero .lead { font-size: 1.15rem; margin-bottom: 26px; }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 26px;
    color: var(--ink-2);
    font-size: 0.95rem;
    font-weight: 600;
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust i { color: var(--brand); }

/* "New: AI scan" pill at the top of the hero */
.ai-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid #CDE7E2;
    box-shadow: var(--shadow);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s, transform 0.2s;
}
html[dir="rtl"] .ai-pill { padding: 6px 6px 6px 14px; }
.ai-pill:hover { border-color: var(--brand); transform: translateY(-1px); }
.ai-pill .ai-new {
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ai-pill i { color: var(--brand); font-size: 0.8em; }
html[dir="rtl"] .ai-pill i { transform: scaleX(-1); }

/* Floating AI-scan card beside the phones: a paper timetable with a scan line sweeping it */
.scan-card {
    position: absolute;
    z-index: 4;
    top: 0;
    inset-inline-start: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 215px;
    padding: 9px 12px 9px 9px;
    background: var(--surface);
    border: 1px solid #CDE7E2;
    border-radius: 18px;
    box-shadow: 0 18px 40px -18px rgba(15, 31, 29, 0.45);
    transition: transform 0.25s, border-color 0.25s;
    animation: floaty 6s ease-in-out infinite;
}
html[dir="rtl"] .scan-card { padding: 9px 9px 9px 12px; }
.scan-card:hover { border-color: var(--brand); }
.scan-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.scan-text b { font-size: 0.8rem; line-height: 1.35; color: var(--ink); }
.ai-new {
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
html[dir="rtl"] .ai-new { letter-spacing: 0; font-size: 0.8rem; }

.scan-paper {
    position: relative;
    flex-shrink: 0;
    width: 42px;
    height: 52px;
    padding: 6px 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 4px 10px -4px rgba(15, 31, 29, 0.25);
    overflow: hidden;
    transform: rotate(-4deg);
}
.sp-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; flex: 1; }
.sp-row i { border-radius: 2px; background: #EEF2F1; }
.sp-row i.c1 { background: #BCF5DC; } .sp-row i.c2 { background: #FBBCBC; }
.sp-row i.c3 { background: #BCE3FB; } .sp-row i.c4 { background: #FDD9BC; }
.scan-line {
    position: absolute;
    left: -2px; right: -2px;
    height: 16px;
    top: 0;
    background: linear-gradient(180deg, rgba(77, 182, 172, 0) 0%, rgba(77, 182, 172, 0.35) 70%, #1F9E92 100%);
    border-bottom: 2px solid #1F9E92;
    box-shadow: 0 6px 12px rgba(31, 158, 146, 0.45);
    animation: scan 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes scan { 0% { top: -16px; } 55% { top: 46px; } 100% { top: -16px; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Phones */
.phones {
    position: relative;
    height: 660px;
}

.phone {
    position: absolute;
    width: 270px;
    aspect-ratio: 1080 / 2340;
    border-radius: 40px;
    padding: 9px;
    background: #101614;
    box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2b3532;
}
.phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
}
.phone.front { inset-inline-end: 8%; top: 40px; z-index: 2; }
.phone.back { inset-inline-end: 46%; top: 120px; width: 240px; transform: rotate(-5deg); opacity: 0.96; }
html[dir="rtl"] .phone.back { transform: rotate(5deg); }

.float-note {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
}
.float-note .dot {
    width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand);
}
.float-note small { display: block; color: var(--ink-3); font-weight: 600; font-size: 0.78rem; }
.float-note.n1 { bottom: 70px; inset-inline-end: 0; }

/* ── Audiences ───────────────────────────────────────────────────────── */
.audiences { background: var(--bg-soft); border-block: 1px solid var(--line); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand);
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.card p { color: var(--ink-2); font-size: 0.98rem; }
.card ul { list-style: none; display: grid; gap: 8px; margin: 4px 0 8px; }
.card li { display: flex; gap: 10px; color: var(--ink-2); font-size: 0.95rem; }
.card li i { color: var(--brand); margin-top: 6px; font-size: 0.75rem; }
.card .link-arrow { margin-top: auto; font-size: 0.95rem; }

/* ── Feature rows ────────────────────────────────────────────────────── */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.feature + .feature { margin-top: 112px; }
.feature.flip .feature-media { order: 2; }

.feature h2 { margin: 12px 0 16px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.feature ul { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.feature li { display: flex; gap: 14px; color: var(--ink-2); }
.feature li i {
    flex-shrink: 0;
    width: 26px; height: 26px; border-radius: 8px;
    display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand);
    font-size: 0.75rem;
    margin-top: 1px;
}
.feature li b { color: var(--ink); font-weight: 700; }

.feature-media {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 28px;
}
.feature-media .phone { position: relative; inset: auto; width: 250px; transform: none; }

.feature-media.wide { padding: 40px 28px; }
.landscape {
    width: 100%;
    border-radius: 26px;
    padding: 8px;
    background: #101614;
    box-shadow: var(--shadow-lg);
}
.landscape img { border-radius: 20px; width: 100%; height: auto; aspect-ratio: 2340 / 1080; object-fit: cover; }

/* ── For schools ─────────────────────────────────────────────────────── */
.schools { background: var(--ink); color: #E9F1EF; }
.schools h2 { color: #fff; }
.schools .eyebrow { color: #7FD3C8; }
.schools .eyebrow::before { background: #7FD3C8; }
.schools .lead { color: #B9C8C4; }

.schools-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.steps { list-style: none; counter-reset: step; display: grid; gap: 4px; }
.step {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding: 18px 0;
}
.step + .step { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.step-num {
    counter-increment: step;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1.5px solid #7FD3C8;
    color: #7FD3C8;
    font-weight: 800;
}
.step-num::before { content: counter(step); }
.step h3 { color: #fff; font-size: 1.08rem; margin-bottom: 4px; }
.step p { color: #B9C8C4; font-size: 0.97rem; }

.schools-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.schools .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.schools .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Printed A4 sheet preview */
.sheet-stage { display: flex; justify-content: center; }
.a4-sheet {
    width: min(100%, 430px);
    aspect-ratio: 1 / 1.414;
    background: #fff;
    color: #1F2933;
    border-radius: 4px;
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.7);
    display: grid;
    grid-template-rows: 1fr 1fr;
    position: relative;
    overflow: hidden;
    transform: rotate(-1.5deg);
    transition: transform 0.5s;
}
html[dir="rtl"] .a4-sheet { transform: rotate(1.5deg); }
.sheet-stage:hover .a4-sheet { transform: rotate(0); }

.sheet-half { padding: 5.5% 6% 4%; display: flex; flex-direction: column; gap: 3.2%; min-height: 0; }
.sheet-head { display: flex; align-items: stretch; gap: 8px; }
.sheet-title { flex: 1; min-width: 0; line-height: 1.25; }
.sheet-school, .sheet-kind { font-size: clamp(0.5rem, 1.5vw, 0.62rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-school { color: #6B7280; }
.sheet-kind { color: var(--brand); font-weight: 800; }
.sheet-name { font-size: clamp(0.85rem, 2.4vw, 1.08rem); font-weight: 800; color: #111827; }
.sheet-code {
    background: var(--brand); color: #fff; border-radius: 7px; padding: 4px 10px;
    display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 30%;
}
.sheet-code small { font-size: clamp(0.4rem, 1.2vw, 0.5rem); font-weight: 800; letter-spacing: 0.08em; color: #DDF3F0; }
.sheet-code strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: clamp(0.8rem, 2.3vw, 1.02rem); letter-spacing: 0.12em; }
.sheet-qr { flex-shrink: 0; display: flex; align-items: center; color: #111827; font-size: clamp(1.9rem, 6vw, 2.5rem); }
.sheet-grid { flex: 1; min-height: 0; display: grid; border: 1px solid #CBD2D9; border-radius: 2px; overflow: hidden; }
.sheet-cell {
    border-inline-end: 1px solid #E5E9ED; border-bottom: 1px solid #E5E9ED;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; min-width: 0;
}
.sheet-cell.head { background: #F1F5F4; }
.sheet-cell .bar { height: 3px; border-radius: 2px; background: currentColor; opacity: 0.55; }
.sheet-cell.lesson { background: color-mix(in srgb, currentColor 16%, #fff); }
.sheet-foot { font-size: clamp(0.42rem, 1.3vw, 0.55rem); color: #374151; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-cut { position: absolute; inset-inline: 0; top: 50%; border-top: 1.5px dashed #9CA3AF; }
.sheet-cut i { position: absolute; inset-inline-start: 6px; top: -0.62em; color: #6B7280; background: #fff; padding: 0 4px; font-size: 0.95rem; }
html[dir="rtl"] .sheet-cut i { transform: scaleX(-1); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 0;
    font-weight: 700;
    font-size: 1.06rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    color: var(--brand);
    font-weight: 700;
    transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--brand); }
.faq-item p { color: var(--ink-2); padding: 0 0 24px; max-width: 720px; }

/* ── Final CTA & footer ──────────────────────────────────────────────── */
.final { padding-top: 0; }
.final-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 44px 48px;
    border-radius: 28px;
    background: var(--brand);
    color: #fff;
}
.final-card img { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.final-card h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 6px; }
.final-card p { color: #D7EEEA; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--ink-3); font-size: 0.92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a:hover { color: var(--brand); }

/* Contact: floating at the bottom corner. The address stays inside the link. */
.side-contact {
    position: fixed;
    z-index: 60;
    bottom: 22px;
    inset-inline-end: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 8px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 12px 30px -8px rgba(15, 31, 29, 0.5);
    transition: transform 0.2s, background 0.2s;
}
html[dir="rtl"] .side-contact { padding: 8px 8px 8px 18px; }
.side-contact:hover { transform: translateY(-2px); background: var(--brand-strong); }
.side-contact i {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brand);
    font-size: 0.9rem;
}

/* Google Play button */
.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 60px;
    padding: 0 22px 0 16px;
    border-radius: 14px;
    background: #0B0F0E;
    color: #fff;
    border: 1px solid #2A3230;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
html[dir="rtl"] .play-btn { padding: 0 16px 0 22px; }
.play-btn:hover { transform: translateY(-2px); background: #000; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6); }
.play-btn svg { width: 30px; height: 30px; flex-shrink: 0; }
.play-btn .pb-text { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.play-btn small { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; opacity: 0.85; text-transform: uppercase; }
html[dir="rtl"] .play-btn small { letter-spacing: 0; font-size: 0.78rem; text-transform: none; }
.play-btn b { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 1.32rem; font-weight: 700; letter-spacing: -0.01em; }
.final-card .play-btn { border-color: rgba(255, 255, 255, 0.18); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .menu-btn { display: inline-flex; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        margin: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px 16px 18px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px -18px rgba(15, 31, 29, 0.35);
    }
    .nav.open { display: flex; }
    .nav a { padding: 14px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
    .nav .nav-web { margin: 14px 0 0; padding: 12px 16px; justify-content: center; border-bottom: 0; }
    .nav.open .nav-mobile { display: flex; }
    .nav-langs { flex-wrap: wrap; gap: 8px; padding: 16px 0 4px; }
    .nav .nav-langs a, .nav-langs button {
        font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer;
        padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
        background: var(--surface); color: var(--ink-2);
    }
    .nav .nav-langs a.on, .nav-langs button.on { background: var(--brand-soft); border-color: #BFDCD7; color: var(--brand); }
    .nav-play { padding-top: 14px; }
    .nav .nav-play .play-btn { width: 100%; justify-content: center; color: #fff; padding: 0 22px; border-bottom: 0; font-size: 1rem; }
    .mobile-only { display: inline-flex !important; }
    .hero-grid, .feature, .schools-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-grid > div:first-child { padding-top: 8px; }
    .feature.flip .feature-media { order: 0; }
    .phones { height: 600px; max-width: 520px; margin: 0 auto; width: 100%; }
    .cards-3 { grid-template-columns: 1fr; }
    .final-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 40px 28px; }
    section { padding: 72px 0; }
    .feature + .feature { margin-top: 80px; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .header-row { height: 64px; gap: 12px; }
    /* Phones: just the logo and the menu; language and Google Play live inside it */
    .header-actions .btn-primary { display: none; }
    /* The language picker becomes a globe button beside the menu; tapping it opens the
       phone's own list of languages */
    .header-actions .lang { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
    .header-actions .lang i { position: static; inset: auto; font-size: 1.1rem; color: var(--ink); }
    .header-actions .lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; padding: 0; border: 0; cursor: pointer; }
    .logo span { display: inline; font-size: 1.02rem; }
    .header-actions .btn { padding: 10px 14px; font-size: 0.9rem; }
    .header-actions .btn i { display: none; }
    .header-actions { gap: 8px; }
    .lang select { padding: 8px 10px; padding-inline-start: 30px; font-size: 0.85rem; }
    .hero { padding: 36px 0 64px; }
    .phones { height: 500px; }
    .phone { width: 220px; border-radius: 32px; padding: 7px; }
    .phone img { border-radius: 26px; }
    .phone.front { inset-inline-end: 2%; top: 30px; }
    .phone.back { width: 180px; inset-inline-end: 46%; top: 100px; }
    .float-note.n1 { bottom: 20px; }
    .scan-card { max-width: 185px; padding: 7px 9px 7px 7px; gap: 8px; border-radius: 14px; }
    .scan-text b { font-size: 0.72rem; }
    .ai-new { font-size: 0.62rem; padding: 1px 8px; }
    .scan-paper { width: 34px; height: 42px; padding: 4px; gap: 3px; }
    .float-note { font-size: 0.78rem; padding: 8px 10px; }
    .float-note .dot { width: 26px; height: 26px; }
    .hero h1 { font-size: 2.2rem; }
    html[dir="rtl"] .hero h1 { font-size: 2rem; }
    .hero .lead { font-size: 1.05rem; }
    .trust { gap: 8px 16px; font-size: 0.88rem; }
    .section-head { margin-bottom: 32px; }
    .feature-media { padding: 28px 12px; border-radius: 22px; }
    .feature-media.wide { padding: 20px 12px; }
    .final-card h2 { font-size: 1.4rem; }
    .footer-row { flex-direction: column; align-items: flex-start; }
    .feature-media .phone { width: 220px; }
    .play-badge img { height: 52px; }
    .side-contact { bottom: 14px; inset-inline-end: 14px; padding: 6px; gap: 0; }
    html[dir="rtl"] .side-contact { padding: 6px; }
    .side-contact span { display: none; }
    .side-contact i { width: 44px; height: 44px; font-size: 1.05rem; }
    .play-btn { height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
