/* EWA marketing site. One stylesheet, no framework: these pages must paint
   before anything else loads, which is the whole reason they exist. */

:root {
  --purple: #5334c3;
  --purple-d: #3f27a0;
  --purple-l: #f4f0ff;
  --gold: #facc15;
  --ink: #1a1b22;
  --body: #52525b;
  --muted: #71717a;
  --line: #e4e4e7;
  --bg: #ffffff;
  --tint: #fbf8ff;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="ar"] {
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 10;
  background: var(--purple); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { inset-inline-start: 0; }

/* ---- header ---- */
.bar { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.bar .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); }
.logo img { width: 30px; height: 30px; }
.bar nav { display: flex; gap: 18px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.bar nav a { color: var(--body); font-size: .94rem; font-weight: 600; }
.bar nav a:hover { color: var(--purple); }
.bar-end { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.lang { font-size: .9rem; font-weight: 700; color: var(--muted); }

/* ---- buttons ---- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 1px solid transparent; transition: .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--purple); color: #fff; }
.btn.primary:hover { background: var(--purple-d); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.small { padding: 8px 16px; font-size: .88rem; background: var(--purple); color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- sections ---- */
main { padding-block: 8px 56px; }
main > section { padding-block: 40px; border-top: 1px solid var(--line); }
main > section:first-child { border-top: 0; }

.hero { padding-block: 56px 44px; }
.eyebrow {
  display: inline-block; background: var(--purple-l); color: var(--purple-d);
  font-size: .8rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.lead { font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 62ch; color: var(--body); }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; min-width: 0; }
.card .meta { color: var(--purple-d); font-weight: 700; font-size: .88rem; margin-top: -.25rem; }
.card.featured { background: var(--ink); border-color: var(--ink); }
.card.featured h3, .card.featured .price { color: #fff; }
.card.featured li { color: #d9d9e3; }
.card.featured li::before { color: var(--gold); }

.price { font-size: 2.1rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.price .per { font-size: .85rem; font-weight: 600; color: var(--muted); display: block; }
.note { color: var(--muted); font-size: .88rem; margin-top: 14px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tile { background: var(--tint); border-radius: var(--radius); padding: 18px; min-width: 0; }
.tile h3 { margin-bottom: .25em; }
.tile p { margin: 0; font-size: .94rem; }

.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { position: relative; padding-inline-start: 22px; margin-bottom: 7px; font-size: .94rem; }
.ticks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; color: var(--purple); font-weight: 800;
}

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { counter-increment: s; position: relative; padding: 18px 18px 18px 56px; background: var(--tint);
  border-radius: var(--radius); min-width: 0; }
html[dir="rtl"] .steps li { padding: 18px 56px 18px 18px; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 18px; top: 18px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--purple); color: #fff;
  font-weight: 800; font-size: .82rem; display: grid; place-items: center;
}
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; font-size: .92rem; }
.more { font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  font-size: .9rem; font-weight: 600; color: var(--ink); background: #fff;
}
.chip:hover { border-color: var(--purple); color: var(--purple); text-decoration: none; }

.service { scroll-margin-top: 80px; }

.cta { background: var(--purple); border-radius: 20px; padding: 36px 28px; margin-top: 44px; border-top: 0 !important; }
.cta h2, .cta p { color: #fff; }
.cta .btn.primary { background: var(--gold); color: var(--ink); }
.cta .btn.ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }

.faq { border-top: 1px solid var(--line); padding-block: 40px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.faq p { margin: 10px 0 0; }

/* ---- footer ---- */
.foot { background: var(--tint); border-top: 1px solid var(--line); padding-block: 40px 28px; }
.foot .tagline { max-width: 52ch; color: var(--body); }
.cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 24px 0; }
.cols h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .6em; }
.cols a { display: block; color: var(--body); font-size: .92rem; padding: 3px 0; }
.copy { color: var(--muted); font-size: .85rem; margin: 0; border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 720px) {
  .bar nav { order: 3; flex-basis: 100%; gap: 14px; padding-bottom: 10px; }
  .bar-end { margin-inline-start: auto; }
  .hero { padding-block: 36px 28px; }
  .cta { padding: 26px 20px; }
}

/* The standard contract terms on a country page: three facts, read at a
   glance, not buried in a paragraph. */
.terms-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 18px 0 0; }
.terms-list > div { background: var(--purple-l); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.terms-list dt { font-weight: 800; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.terms-list dd { margin: 6px 0 0; color: var(--ink); font-size: 1.05rem; font-weight: 600; }

/* The privacy policy: long prose and a few dense tables. */
.policy { scroll-margin-top: 80px; }
.policy h2 { font-size: 1.25rem; display: flex; gap: 10px; align-items: baseline; }
.policy .num { color: var(--purple); font-size: .9rem; font-weight: 800; }
.policy p, .policy li { font-size: .96rem; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: .92rem; }
.table-wrap th, .table-wrap td { text-align: start; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: var(--tint); color: var(--ink); font-weight: 700; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
