/* Omaline public site. Mobile first, RTL. Colours follow the app (brand #5F24A2 / #71439F,
   lilac #D4BFFF). Every text/background pair below is at least 4.5:1. */
:root {
  --bg: #0b0717;
  --bg-2: #140c2a;
  --brand: #5f24a2;
  --brand-2: #71439f;
  --lilac: #d4bfff;
  --text: #f5f1ff;
  --muted: #b9add6;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Background: two soft glows and the large arc from the brand artwork. */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(95, 36, 162, 0.55), transparent 60%),
    radial-gradient(40rem 30rem at 0% 40%, rgba(47, 47, 135, 0.45), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.backdrop::after {
  content: ""; position: absolute; width: 160vw; height: 160vw; left: -30vw; top: 62vh;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(113, 67, 159, 0.35), rgba(113, 67, 159, 0.08) 70%, transparent 71%);
}

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 40px; width: auto; }
.header-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text);
  font-size: 15px; background: var(--card);
}
.header-link svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 24px 0 56px; text-align: center; }
.hero h1 {
  margin: 8px 0 12px; font-size: clamp(32px, 8.5vw, 56px); line-height: 1.2; font-weight: 700;
  letter-spacing: 0;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #b794f4, var(--lilac));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin: 0 auto; max-width: 34ch; color: var(--muted); font-size: clamp(17px, 4.4vw, 20px); }

.hero-grid { display: grid; }
.phones { position: relative; height: 430px; margin: 30px auto 26px; width: 100%; max-width: 420px; }
.phone {
  position: absolute; top: 0; width: 196px; aspect-ratio: 9 / 18.6; padding: 9px;
  border-radius: 38px; background: linear-gradient(160deg, #3a2f57, #120c22 60%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 30px 70px rgba(16, 6, 40, 0.7), 0 0 60px rgba(113, 67, 159, 0.35);
}
.phone::before { /* dynamic island */
  content: ""; position: absolute; top: 17px; left: 50%; width: 64px; height: 18px; margin-left: -32px;
  border-radius: 999px; background: #05030a; z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; background: #fff; }
.phone.back { right: 50%; margin-right: 6px; transform: rotate(-7deg) translateY(28px); }
.phone.front { left: 50%; margin-left: -60px; transform: rotate(5deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(5deg) translateY(-10px); } }

/* Store buttons */
.stores { display: grid; gap: 14px; max-width: 360px; margin: 0 auto; }
.store {
  display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 66px; padding: 10px 22px;
  border-radius: 18px; text-decoration: none; font-weight: 700; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store small { display: block; font-size: 13px; font-weight: 500; opacity: 0.8; line-height: 1.2; }
.store span.name { display: block; font-size: 22px; line-height: 1.15; font-family: -apple-system, "Segoe UI", system-ui, sans-serif; }
.store .txt { text-align: start; }
.store.apple { background: #fff; color: #111; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.store.apple img { width: 30px; height: 30px; }
.store.play { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; }
.store.play svg { width: 28px; height: 28px; }
.store.disabled { opacity: 0.75; cursor: default; }
.store:not(.disabled):hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.store:focus-visible, .header-link:focus-visible, .btn:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.note { margin: 14px auto 0; font-size: 14px; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 44px auto 0; max-width: 560px; }
.feature { padding: 6px 4px; text-align: center; }
.feature + .feature { border-inline-start: 1px solid var(--line); }
.feature svg { width: 34px; height: 34px; color: #b794f4; margin: 0 auto 8px; display: block; }
.feature h3 { margin: 0; font-size: 15px; font-weight: 700; }
.feature p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Sections */
.section { padding: 56px 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px;
  backdrop-filter: blur(6px);
}
.partner { display: grid; gap: 18px; text-align: center; }
.partner h2 { margin: 0; font-size: clamp(24px, 6vw, 32px); }
.partner p { margin: 0 auto; color: var(--muted); max-width: 46ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 14px; background: #25d366; color: #062b14; font-weight: 700; text-decoration: none; margin: 0 auto;
}
.btn svg { width: 22px; height: 22px; }

/* Footer */
.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 14px; justify-items: center; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-footer nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--text); }
.site-footer img { height: 28px; width: auto; opacity: 0.9; }

/* Legal pages: long text on a light card for comfortable reading. */
.doc { padding: 16px 0 64px; }
.doc article {
  background: #fbfaff; color: #1f1b2d; border-radius: var(--radius); padding: 28px 20px;
  direction: ltr; text-align: left; line-height: 1.7; font-size: 16px;
}
.doc article h1 { margin-top: 0; font-size: 28px; }
.doc article h2 { font-size: 20px; margin: 28px 0 8px; }
.doc article h3, .doc article h4 { font-size: 17px; margin: 22px 0 6px; }
.doc article a { color: var(--brand); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 12px; color: var(--muted); text-decoration: none; }

/* Larger screens: text beside the phones. */
@media (min-width: 960px) {
  .hero { padding: 48px 0 80px; text-align: start; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; grid-template-areas: "text phones" "cta phones"; column-gap: 48px; align-items: center; }
  .hero-text { grid-area: text; align-self: end; }
  .hero-cta { grid-area: cta; align-self: start; }
  .phones { grid-area: phones; }
  .hero p.lead { margin: 0; max-width: 40ch; }
  .stores { margin: 32px 0 0; grid-template-columns: 1fr 1fr; max-width: 520px; }
  .note { margin: 14px 0 0; }
  .features { margin: 44px 0 0; }
  .phones { height: 560px; margin: 0 auto; }
  .phone { width: 250px; }
  .phone.front { margin-left: -70px; }
  .doc article { padding: 48px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone.front { animation: none; }
  .store { transition: none; }
}
