:root {
    --blue: #2563eb;
    --blue-dark: #1e40af;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f8fafc;
    --white: #fff;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}
a { color: var(--blue); }
img { max-width: 100%; }
.wrap { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }
.preview-bar {
    background: #fff7ed;
    color: #9a3412;
    text-align: center;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
}
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    z-index: 20;
}
.header-row, .nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.fatoora-nav { height: 46px; width: auto; border-radius: 0.4rem; background: #fff; }
.header-row { padding: 0.75rem 0 0.25rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { height: 42px; width: auto; }
.langs a { margin-left: 0.35rem; text-decoration: none; color: var(--muted); font-weight: 600; }
.langs a.active { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 0.4rem; padding: 0.35rem 0.6rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; padding: 0.4rem 0 0.8rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a.active { color: var(--blue); }
.hero { padding: 2.5rem 0 1rem; }
.hero h1, .page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 0.75rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 44rem; }
.cards, .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.card, .plan {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.15rem 1.2rem;
    text-decoration: none;
    color: inherit;
    display: block;
}
.card h2, .plan h2 { margin: 0 0 0.4rem; font-size: 1.15rem; color: var(--blue); }
.card p, .plan p { margin: 0; color: var(--muted); }
.plan.featured { border-color: #f97316; box-shadow: 0 8px 24px rgba(249,115,22,.12); }
.was { color: #b91c1c; text-decoration: line-through; margin: 0.6rem 0 0; }
.badge { color: #c2410c; font-weight: 700; margin: 0 0 0.3rem; }
.price { font-size: 1.7rem; font-weight: 750; margin: 0.2rem 0; }
.plan ul { margin: 0.8rem 0 0; padding-left: 1.1rem; }
[dir="rtl"] .plan ul { padding-left: 0; padding-right: 1.1rem; }
.prose h2 { font-size: 1.35rem; margin: 1.4rem 0 0.4rem; }
.prose p { margin: 0.4rem 0 0.8rem; }
.btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: 0.6rem;
    padding: 0.7rem 1rem;
    font-weight: 600;
    cursor: pointer;
}
.btn.secondary { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.form { display: grid; gap: 0.8rem; max-width: 38rem; }
.form input, .form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    font: inherit;
}
.hp { position: absolute; left: -9999px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.logos { overflow: hidden; padding-bottom: 2rem; }
.logo-track { display: flex; gap: 0.8rem; width: max-content; animation: slide 70s linear infinite; }
.logo-track img {
    height: 72px; width: 140px; object-fit: contain; background: #fff;
    border: 1px solid var(--line); border-radius: 0.7rem; padding: 0.4rem 0.55rem;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.site-footer { background: var(--ink); color: #d1d5db; padding: 2rem 0; margin-top: 2rem; }
.site-footer a { color: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.alert { background: #ecfdf5; color: #065f46; padding: 0.8rem 1rem; border-radius: 0.6rem; }
@media (max-width: 800px) {
    .nav-toggle { display: inline-block; }
    .site-nav { display: none; flex-direction: column; padding-bottom: 0.8rem; }
    .site-nav.open { display: flex; }
    .logo-track img { height: 58px; width: 108px; }
}
@media (prefers-reduced-motion: reduce) {
    .logo-track { animation: none; flex-wrap: wrap; width: auto; }
}

.band { padding: 3.2rem 0; }
.band-white { background: #fff; }
.hero-band {
    background:
        radial-gradient(700px 280px at 90% 0%, rgba(37, 99, 235, 0.12), transparent 60%),
        linear-gradient(180deg, #fff, var(--bg));
    padding-top: 2.2rem;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; }
.hero-band h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.15; margin: 0.6rem 0; }
.lede { color: var(--muted); font-size: 1.05rem; }
.fatoora-hero { height: 72px; width: auto; border-radius: 0.5rem; }
.cloud-pill, .offer {
    display: inline-block;
    background: #ecfdf5;
    color: #047857;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-weight: 700;
    margin: 0.7rem 0 0;
}
.offer { background: #fff7ed; color: #c2410c; }
.hero-shots { display: grid; gap: 0.8rem; }
.hero-shots img, .page-shots img, .service-photo img {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: #fff;
    object-fit: cover;
}
.page-shots { display: grid; gap: 0.8rem; margin-bottom: 1.2rem; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 1.6rem; }
.section-head h2 { margin: 0 0 0.4rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.4rem 1.1rem 1.2rem;
    text-align: center;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.feature-card h3 { margin: 0.2rem 0 0.45rem; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature-icon { font-size: 2.4rem; line-height: 1; margin-bottom: 0.55rem; }
.feature-card.is-accent { border: 2px solid #10b981; }
.feature-card.is-accent .feature-icon { color: #10b981; font-weight: 700; }
.service-list { display: grid; gap: 1.2rem; }
.service-row {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.4rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1rem;
}
.service-row.is-reverse { direction: rtl; }
.service-row.is-reverse > div { direction: ltr; }
[dir="rtl"] .service-row.is-reverse > div { direction: rtl; }
.service-photo { position: relative; }
.service-photo.is-stack { display: grid; gap: 0.6rem; }
.free-flag {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    background: #10b981;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}
.service-row h3 { margin: 0 0 0.4rem; }
.service-row h3 a { color: inherit; text-decoration: none; }
.service-row ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }
[dir="rtl"] .service-row ul { padding-left: 0; padding-right: 1.1rem; }
.downloads p { margin: 0.8rem 0 0.4rem; font-weight: 600; }
.download-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.store {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #111827;
    color: #fff;
    text-decoration: none;
    border-radius: 0.7rem;
    padding: 0.45rem 0.8rem;
}
.store small { display: block; font-size: 0.72rem; opacity: 0.8; }
.store img { width: 32px; height: 32px; object-fit: contain; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.video-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    min-height: 140px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.play {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 0.7rem;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
}
.contact-strip { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.contact-strip img { vertical-align: middle; }
#video-dialog {
    width: min(860px, calc(100% - 2rem));
    border: 0;
    border-radius: 1rem;
    padding: 0.8rem;
}
#video-dialog video { width: 100%; background: #000; border-radius: 0.6rem; }
@media (max-width: 800px) {
    .hero-grid, .feature-grid, .service-row, .video-grid { grid-template-columns: 1fr; }
    .service-row.is-reverse, .service-row.is-reverse > div { direction: inherit; }
    .fatoora-nav { display: none; }
}
