/* ORYN Tech website - one stylesheet for Arabic (rtl) and English (ltr) pages.
   Uses logical properties (margin-inline, padding-inline...) so the same rules work in both directions. */

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --text: #0f172a;
  --muted: #5b6478;
  --border: #dde3ee;
  --brand: #2563eb;        /* ORYN blue */
  --brand-2: #7c3aed;      /* accent purple */
  --brand-ink: #ffffff;
  --shop: #1d6cf2;         /* ShopFlow blue */
  --clinic: #0f9488;       /* ClinicFlow teal */
  --center: #d97706;       /* CenterFlow amber */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #111a2e;
    --surface-2: #17223a;
    --text: #e6ebf5;
    --muted: #9aa5bd;
    --border: #24314d;
    --brand: #4f8bff;
    --brand-2: #a78bfa;
    --shop: #4f8bff;
    --clinic: #2dd4bf;
    --center: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
html, body { overflow-x: clip; }
.grid > *, .p-hero .wrap > *, .shots > * { min-width: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
.section { padding-block: 64px; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .5em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.2rem; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 900;
}
.logo small { display: block; font-size: .62rem; letter-spacing: .14em; color: var(--muted); font-weight: 600; line-height: 1; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: var(--text); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { background: var(--surface-2); text-decoration: none; }
.lang-switch { border: 1px solid var(--border); }
.nav-toggle {
  display: none; margin-inline-start: auto; background: none; border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; inset-inline: 0; top: 64px; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-family: inherit; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero {
  padding-block: 80px 64px; text-align: center;
  background:
    radial-gradient(60% 60% at 80% 0%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%),
    radial-gradient(60% 60% at 10% 10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%);
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; margin: 0 auto 28px; }
.hero .btn-row { justify-content: center; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; list-style: none; padding: 0; }
.badges li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: .9rem; font-weight: 600; color: var(--muted);
}

/* ---------- product cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product-card { border-top: 4px solid var(--accent, var(--brand)); }
.product-card .head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.product-card .head img { width: 64px; height: 64px; border-radius: 14px; }
.product-card .head h3 { margin: 0; font-size: 1.35rem; }
.product-card .head span { color: var(--muted); font-size: .92rem; }
.product-card ul { padding-inline-start: 20px; margin: 0 0 20px; color: var(--muted); }
.product-card .btn { margin-top: auto; align-self: flex-start; }
.product-card.soon { opacity: .85; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent, var(--brand)) 15%, transparent); color: var(--accent, var(--brand));
  margin-inline-start: auto; align-self: flex-start;
}
.shop { --accent: var(--shop); }
.clinic { --accent: var(--clinic); }
.center { --accent: var(--center); }

/* ---------- features ---------- */
.feature { padding: 22px; }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem;
  background: color-mix(in srgb, var(--accent, var(--brand)) 14%, transparent); margin-bottom: 12px;
}
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- product page hero ---------- */
.p-hero { padding-block: 56px; }
.p-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.p-hero .logo-big { width: 120px; height: 120px; border-radius: 26px; box-shadow: var(--shadow); margin-bottom: 18px; }
.p-hero p.lead { font-size: 1.15rem; color: var(--muted); }
.p-hero .shot { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.p-hero .placeholder {
  aspect-ratio: 16/10; border-radius: var(--radius); border: 2px dashed var(--border);
  display: grid; place-items: center; color: var(--muted); background: var(--surface); text-align: center; padding: 16px;
}
@media (max-width: 860px) { .p-hero .wrap { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 6px; }
.checks li::before { content: "✓"; color: var(--accent, var(--brand)); font-weight: 900; margin-inline-end: 8px; }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.shots figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shots img { cursor: zoom-in; width: 100%; }
.shots figcaption { padding: 10px 14px; font-weight: 600; font-size: .95rem; }
.lightbox {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: none; place-items: center; z-index: 50; padding: 16px; cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; border-radius: 8px; }

/* ---------- downloads ---------- */
.downloads .card p { color: var(--muted); }
.downloads .card .btn { margin-top: auto; }
.downloads .alt-link { display: block; text-align: center; margin-top: 10px; font-size: .9rem; color: var(--muted); text-decoration: underline; }
.downloads .alt-link:hover { color: var(--brand); }
.note { text-align: center; color: var(--muted); margin: 24px auto 0; max-width: 760px; font-size: .95rem; }

/* ---------- plans / faq / contact ---------- */
.plans .card h3 { color: var(--accent, var(--brand)); }
.plans .card p { color: var(--muted); margin: 0; }
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }
.faq { max-width: 820px; margin-inline: auto; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: center; }
.contact-item .ico { font-size: 1.6rem; }
.contact-item b { display: block; }
.contact-item a, .contact-item span { color: var(--muted); word-break: break-word; }
.cta-band {
  text-align: center; border-radius: var(--radius); padding: 40px 20px; color: #fff;
  background: linear-gradient(135deg, var(--accent, var(--brand)), var(--brand-2));
}
.cta-band p { opacity: .92; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .4); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 32px; color: var(--muted); font-size: .92rem; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }

/* English pages use the Latin stack first */
html[lang="en"] body { font-family: "Inter", "Cairo", "Segoe UI", Arial, sans-serif; }
