/* Public presentation pages (site.*). Self-contained: no app.css dependency. Logical properties so Arabic (dir="rtl") mirrors by itself. */
:root { --p: #0f766e; --p-ink: #115e59; --p-soft: #ccfbf1; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc; --surface: #fff; --radius: 12px; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --ink: #e2e8f0; --muted: #94a3b8; --line: #1e293b; --bg: #0b1220; --surface: #111a2e; --p-soft: #134e4a; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site { margin: 0; font: 16px/1.6 "IBM Plex Sans", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--p); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 12px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); font-size: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 600; color: var(--p); margin-bottom: 8px; }
.lead { font-size: 18px; color: var(--muted); }
.section-lead { color: var(--muted); margin-bottom: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; }
.button-primary { background: var(--p); border-color: var(--p); color: #fff; }
.button-primary:hover { background: var(--p-ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.site-mark { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav .button-login { padding: 8px 14px; border-radius: 8px; background: var(--p); color: #fff; font-weight: 600; }
@media (max-width: 720px) { .site-nav a:not(.button-login) { display: none; } .site-nav { gap: 10px; } }

/* Language menu (partials/locale-switcher): same look as app.css, with the site palette. Font Awesome is not loaded here, so the globe icon is hidden. */
.locale-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; flex: none; }
.locale-switch i { display: none; }
.locale-switch select {
    appearance: auto; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
    background: var(--surface); color: var(--ink); font-size: 13px; cursor: pointer; max-width: 9rem;
}

.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero-shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px -24px rgb(15 23 42 / .45); border: 1px solid var(--line); }
.hero-facts { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; color: var(--muted); }
.hero-facts li::before { content: '✓'; color: var(--p); font-weight: 700; margin-inline-end: 8px; }

.features, .gallery, .faq { padding: 56px 0; }
.features { background: var(--surface); border-block: 1px solid var(--line); }
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature-grid article { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.feature-grid p { color: var(--muted); font-size: 15px; margin: 0; }

.how { padding: 56px 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { position: relative; padding: 20px; padding-inline-start: 64px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 4px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; inset-inline-start: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--p); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps span { color: var(--muted); font-size: 15px; }

.gallery { background: var(--surface); border-block: 1px solid var(--line); }
.shots { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.shots figure { margin: 0; }
.shots img { border-radius: 10px; border: 1px solid var(--line); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.cta { padding: 56px 0 72px; text-align: center; }
.cta .cta-row { justify-content: center; }

.contact { padding: 56px 0 72px; }
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr .8fr; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.contact-list li { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.contact-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-list a { font-size: 18px; font-weight: 600; text-decoration: none; }
.contact-card { align-self: start; padding: 24px; border-radius: var(--radius); background: var(--p-soft); color: var(--ink); }
.contact-card h2 { font-size: 20px; }
.contact-card ul { padding-inline-start: 20px; margin: 0 0 16px; }

.site-footer { padding: 32px 0; border-top: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 12px; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer-links a { text-decoration: none; }

/* Right-to-left (Arabic). The layout mirrors through the logical properties above; only the font, letter-spacing and numbers need care. */
[dir="rtl"] body.site { font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; }
[dir="rtl"] .eyebrow, [dir="rtl"] .contact-label { letter-spacing: 0; }
[dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"], [dir="rtl"] a[href^="https://wa.me/"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] .contact-list li { justify-items: start; }

/* Compatible devices (site.devices) and the teaser on the home page */
.devices-teaser { padding: 56px 0; }
.device-strip { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.device-mini { display: grid; gap: 6px; justify-items: center; padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: transform .12s, box-shadow .12s; }
.device-mini:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgb(15 23 42 / .45); }
.device-mini .device-svg, .device-mini img { width: 100%; max-width: 160px; height: auto; }
.devices-hero { padding-bottom: 24px; }
.devices { padding: 24px 0 48px; }
.device-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.device-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 8px; align-content: start; }
.device-card h2 { font-size: 20px; margin: 0; }
.device-card p { color: var(--muted); font-size: 15px; margin: 0; }
.device-art { display: grid; place-items: center; padding: 10px; border-radius: 10px; background: var(--bg); }
.device-art .device-svg, .device-art img { width: 100%; max-width: 300px; height: auto; border-radius: 8px; }
.device-art img { object-fit: contain; aspect-ratio: 320 / 220; background: #fff; }
.device-tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.device-tags li { font-size: 13px; font-weight: 600; color: var(--p-ink); background: var(--p-soft); border-radius: 999px; padding: 3px 10px; }
.devices-note { margin-top: 18px; }
[dir="rtl"] .device-svg { transform: scaleX(1); }
