/* ==========================================================================
   Omra — omra-app.com
   Brand palette mirrors the app (src/theme.ts)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --paper: #f8f5ec;
  --paper-strong: #f1e9d8;
  --ink: #242536;
  --ink-2: #55586a;
  --ink-3: #8a8d99;
  --line: #e7e2d6;
  --saffron: #e6a329;
  --saffron-soft: #fff1cc;
  --saffron-deep: #c8861e;
  --teal: #2d8c75;
  --teal-soft: #e5f5ef;
  --rose: #c8483e;
  --night: #1a1b26;
  --night-2: #242536;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-soft: 0 18px 40px -24px rgba(20, 24, 40, 0.45);
  --shadow-card: 0 12px 30px -18px rgba(20, 24, 40, 0.35);

  --maxw: 1120px;
  --font-latin: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-arabic: "Tajawal", system-ui, "Segoe UI", Tahoma, sans-serif;
}

/* ---- Bilingual visibility ------------------------------------------------ */
html.lang-ar .lang-en-only { display: none !important; }
html.lang-en .lang-ar-only { display: none !important; }

/* default font per direction (whole page is one language at a time) */
html[dir="rtl"] body { font-family: var(--font-arabic); }
html[dir="ltr"] body { font-family: var(--font-latin); }

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.muted { color: var(--ink-2); }
.center { text-align: center; }

/* ---- Buttons & badges ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.4em; border-radius: var(--radius-pill, 999px);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--saffron); color: var(--night-2); box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--saffron-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); }

/* App store "coming soon" badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--night-2); color: #fff;
  padding: 11px 20px; border-radius: var(--radius-md);
  min-width: 200px; box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .bl-top { font-size: 0.72rem; color: #cfd0da; line-height: 1.2; }
.store-badge .bl-main { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.store-badge .bl { text-align: start; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--saffron-soft); color: var(--saffron-deep);
  padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.2rem; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 0.96rem; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  padding: 8px 14px; border-radius: 999px; font-weight: 700; cursor: pointer;
  font-family: inherit; font-size: 0.92rem;
}
.lang-toggle:hover { background: var(--paper-strong); }
.lang-toggle svg { width: 16px; height: 16px; }

.nav-toggle { display: none; }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, var(--saffron-soft), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  padding: clamp(48px, 8vw, 92px) 0 clamp(40px, 6vw, 72px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-size: 1.18rem; color: var(--ink-2); max-width: 38ch; margin-bottom: 1.6em; }
.hero-cta { display: flex; flex-direction: column; gap: 18px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img {
  width: min(300px, 78%); border-radius: 36px;
  box-shadow: 0 40px 80px -32px rgba(20, 24, 40, 0.5);
}
.hero-glow {
  position: absolute; inset: auto; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,140,117,0.20), transparent 70%);
  filter: blur(8px); z-index: -1;
}

/* ---- Sections ------------------------------------------------------------ */
section { padding: clamp(54px, 8vw, 96px) 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head .pill { margin-bottom: 16px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.bg-paper { background: var(--paper); }

/* Features */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-card);
}
.feature .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--saffron-soft); color: var(--saffron-deep); margin-bottom: 18px;
}
.feature .ic.teal { background: var(--teal-soft); color: var(--teal); }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 0.35em; }
.feature p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }

/* Screenshot gallery */
.shots {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 26px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.shots figure { margin: 0; flex: 0 0 auto; width: 248px; scroll-snap-align: center; }
.shots img { border-radius: 26px; box-shadow: var(--shadow-soft); }

/* For companies */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.company-card {
  background: linear-gradient(160deg, var(--night-2), var(--night));
  color: #fff; border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}
.company-card h2 { color: #fff; }
.company-card p { color: #c9cad6; }
.company-card .pill { background: rgba(230,163,41,0.18); color: var(--saffron); }
.check-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: #dcdde6; }
.check-list svg { width: 22px; height: 22px; color: var(--saffron); flex: none; margin-top: 2px; }

/* Download band */
.download {
  background: linear-gradient(160deg, var(--night-2), #14151f);
  color: #fff; text-align: center;
}
.download h2 { color: #fff; }
.download p { color: #c9cad6; font-size: 1.1rem; }
.download .store-badges { justify-content: center; margin-top: 26px; }
.download .store-badge { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0 34px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--ink-2); font-size: 0.96rem; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 0 0 14px; }
html[dir="rtl"] .footer-col h4 { letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); font-weight: 600; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  color: var(--ink-3); font-size: 0.9rem;
}

/* ---- Legal pages --------------------------------------------------------- */
.legal-hero { background: var(--paper); padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin-bottom: 0.3em; }
.legal-hero .updated { color: var(--ink-3); font-size: 0.95rem; }
.legal { padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 88px); }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; padding-top: 0.4em; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-inline-start: 1.25em; }
.legal li { margin-bottom: 0.5em; }
.legal a { color: var(--teal); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal .toc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 24px; margin-bottom: 36px;
}
.legal .toc ul { list-style: none; padding: 0; margin: 0; columns: 2; gap: 24px; }
.legal .toc li { margin-bottom: 8px; }
.legal .toc a { color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.legal .callout {
  background: var(--saffron-soft); border: 1px solid var(--saffron); border-radius: var(--radius-md);
  padding: 16px 20px; margin: 22px 0;
}
.legal .callout p { color: var(--saffron-deep); margin: 0; font-weight: 500; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta { align-items: center; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .legal .toc ul { columns: 1; }
  .store-badge { min-width: 0; flex: 1 1 160px; }
}
