:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #ccfbf1;
  --brand-tint: #f0fdfa;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 16px;
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); }
img { max-width: 100%; }
a { color: var(--brand); }

/* One copy per language; the other is hidden. */
html[lang='ar'] [data-lang='en'],
html[lang='en'] [data-lang='ar'] { display: none !important; }

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

.top {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 255 255 / 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--brand-dark); text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a.link { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 0.95rem; }
.nav a.link:hover { background: var(--brand-tint); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 0;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid #cbd5e1; }
.btn-outline:hover { background: var(--bg); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 0.9rem; }

.hero { background: linear-gradient(180deg, var(--brand-tint), var(--bg)); padding: 72px 0 56px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.25; margin: 0 0 16px; }
.hero h1 span { color: var(--brand); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.badge { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; color: var(--muted); }

section { padding: 56px 0; }
section h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 8px; }
section .sub { color: var(--muted); margin: 0 0 28px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }

.plans .card { display: flex; flex-direction: column; }
.plans .card.featured { border: 2px solid var(--brand); }
.price { font-size: 2rem; font-weight: 700; margin: 6px 0 2px; }
.price bdi { white-space: nowrap; }
.price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plans ul { margin: 14px 0 0; padding-inline-start: 20px; color: var(--muted); }
.note { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-dark); }

.about { display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr; align-items: start; }
.about p { color: var(--muted); margin: 0 0 14px; font-size: 1.05rem; }
.ticks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.ticks li { position: relative; padding-inline-start: 26px; }
.ticks li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 700; }

.how { background: #fff; border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps .num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px;
  border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700;
}

.contact .actions { margin-top: 18px; }

.contact dl { display: grid; gap: 14px; margin: 0; }
.contact dt { font-size: 0.85rem; color: var(--muted); }
.contact dd { margin: 0; font-weight: 600; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.foot { border-top: 1px solid var(--line); background: #fff; padding: 24px 0; color: var(--muted); font-size: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot a { color: var(--muted); }

/* Legal pages */
.doc { padding: 40px 0 64px; }
.doc .card { padding: clamp(20px, 4vw, 40px); }
.doc h1 { margin: 0 0 4px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.doc h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.doc p, .doc li { color: #334155; }
.doc .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav a.link { display: none; }
  .hero { padding: 48px 0 40px; }
  section { padding: 40px 0; }
}
