/* The public site and the auth pages, on the portal's tokens.

   The portal styles itself with the Tailwind Play CDN and an inline config
   (dashboard_client/base.html). These pages carry the same tokens -- primary
   #137fec, the same surfaces, 44px controls, the .dark class -- as plain CSS,
   because a 300 KB runtime compiler is not something a landing page can
   load and still score 90 on a phone. Logical properties throughout: one
   stylesheet for ltr and rtl. */

:root {
  /* The portal's #137fec is 3.98:1 behind white text, under WCAG AA's 4.5.
     One step darker in the same hue passes everywhere on these pages. */
  --primary: #0f6ad0;
  --primary-hover: #0b5cad;
  --primary-soft: #e8f2fe;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #f1f4f7;
  --text: #111418;
  --muted: #4b5563;
  --border: #dfe4ea;
  --accent: #b45309;
  --success: #047857;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --control: 44px;
  --font: "Qalam Arabic", "Spline Sans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 4px 12px rgb(16 24 40 / .06);
}
.dark {
  --bg: #101922;
  --surface: #1a2632;
  --surface-2: #213040;
  --text: #f3f6f9;
  --muted: #b6c0cc;
  --border: #2c3b4b;
  --primary-soft: #12304f;
  --danger-soft: #3b1414;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--surface);
  padding: .5rem 1rem; border-radius: var(--radius); z-index: 100; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ── Controls ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--control); padding: 0 1.25rem; border-radius: var(--radius-xl);
  font: inherit; font-size: .9375rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-whatsapp { background: #047857; color: #fff; }
.btn-whatsapp:hover { background: #065f46; }
.btn-block { width: 100%; white-space: normal; text-align: center; padding-block: .5rem; }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }

.field { display: flex; flex-direction: column; gap: .375rem; }
.label { font-size: .875rem; font-weight: 600; }
.input {
  min-height: var(--control); width: 100%; padding: .5rem .875rem; font: inherit; font-size: 1rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: .8125rem; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: .5rem; min-height: var(--control); font-size: .9375rem; }
.check input { width: 1.125rem; height: 1.125rem; accent-color: var(--primary); }
.alert { padding: .75rem 1rem; border-radius: var(--radius); font-size: .9375rem; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-ok { background: #ecfdf5; color: var(--success); }
.dark .alert-ok { background: #0d2e24; color: #6ee7b7; }

/* The language switch, shared with the portal (core/_language_switch.html). */
.lang-switch { display: inline-flex; padding: .25rem; gap: .25rem; background: var(--surface-2);
  border-radius: var(--radius); margin: 0; }
.lang-switch button {
  min-height: 36px; min-width: 44px; padding: 0 .75rem; border: 0; border-radius: .75rem;
  background: transparent; color: var(--muted); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }

/* ── Site frame ───────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 1.125rem; }
.brand-mark { width: 2rem; height: 2rem; border-radius: .625rem; background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 1.125rem; height: 1.125rem; }
.nav { display: none; gap: 1.5rem; }
.nav a { color: var(--text); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions .btn { min-height: 40px; padding: 0 1rem; font-size: .875rem; }
.header-login { display: none; }
@media (min-width: 900px) { .nav { display: flex; } .header-login { display: inline-flex; } }
.menu { position: relative; }
.menu summary { list-style: none; min-height: var(--control); min-width: var(--control); display: inline-flex;
  align-items: center; justify-content: center; border-radius: var(--radius); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 1.5rem; height: 1.5rem; }
.menu-panel { position: absolute; inset-inline-end: 0; top: calc(100% + .5rem); width: min(280px, 90vw);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: .75rem; display: flex; flex-direction: column; gap: .25rem; }
.menu-panel a { padding: .625rem .75rem; border-radius: .75rem; color: var(--text); text-decoration: none; }
.menu-panel a:hover { background: var(--surface-2); }
@media (min-width: 900px) { .menu { display: none; } }
.menu-panel .lang-switch { display: none; align-self: flex-start; margin-top: .25rem; }
@media (max-width: 419px) {
  .header-actions > .lang-switch { display: none; }
  .menu-panel .lang-switch { display: inline-flex; }
}

.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 4rem; }
.site-footer .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; display: grid; gap: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .9375rem; min-height: var(--control);
  display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--primary); }
.footer-note { color: var(--muted); font-size: .875rem; }

/* ── Landing ─────────────────────────────────────────────── */
.section { padding: 3.5rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.section-tint { background: var(--surface); border-block: 1px solid var(--border); }
.eyebrow { color: var(--primary); font-weight: 700; font-size: .875rem; letter-spacing: .02em; }
.h1 { font-size: clamp(1.875rem, 6vw, 3.25rem); font-weight: 700; letter-spacing: -.01em; }
.h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; }
.h3 { font-size: 1.125rem; font-weight: 700; }
.lead { font-size: clamp(1.0625rem, 2.4vw, 1.25rem); color: var(--muted); }
.muted { color: var(--muted); }
.section-head { max-width: 720px; display: grid; gap: .75rem; margin-bottom: 2rem; }
.center { text-align: center; margin-inline: auto; }

.hero { padding: 2.5rem 0 1rem; }
@media (min-width: 768px) { .hero { padding: 4.5rem 0 2rem; } }
.hero-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.hero-copy { display: grid; gap: 1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.platforms { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .375rem; min-height: 32px; padding: 0 .75rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .875rem; font-weight: 600; }
.chip-soon { color: var(--muted); border-style: dashed; }
.chip svg { width: 1rem; height: 1rem; }

/* The try-it widget */
.try { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1rem; display: grid; gap: .875rem; }
@media (min-width: 768px) { .try { padding: 1.25rem; } }
.try-pills { display: flex; flex-wrap: wrap; gap: .375rem; }
.try-pill { min-height: 40px; padding: 0 .875rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.try-pill[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.try-form { display: flex; gap: .5rem; }
.try-form .input { flex: 1; }
.try-error { color: var(--danger); font-size: .875rem; min-height: 1.25rem; }
.try-note { color: var(--muted); font-size: .8125rem; }
.phone { border-radius: 1.25rem; background: #0f172a; padding: .5rem; }
.story { position: relative; border-radius: .875rem; overflow: hidden; color: #fff; min-height: 340px;
  background: linear-gradient(160deg, #7c4a2d 0%, #c08552 55%, #f2d0a4 100%); display: flex; flex-direction: column; }
.story-top { display: flex; align-items: center; gap: .5rem; padding: .75rem .875rem; font-size: .8125rem; }
.story-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: rgb(255 255 255 / .25);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.story-name { font-weight: 700; }
.story-time { opacity: .85; }
.story-body { margin-top: auto; padding: 1rem; background: linear-gradient(transparent, rgb(0 0 0 / .55));
  display: grid; gap: .5rem; font-size: .9375rem; line-height: 1.7; }
.story-body p { margin: 0; }
.story-tags { font-size: .8125rem; opacity: .95; }
.story-meta { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1rem 1rem; font-size: .75rem; }
.story-meta span { background: rgb(0 0 0 / .35); border-radius: 999px; padding: .25rem .625rem; }
.try-loading { display: none; text-align: center; padding: 1rem; color: var(--muted); }
.try[data-loading="1"] .try-loading { display: block; }
.try-after { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.linkish { background: none; border: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer;
  min-height: var(--control); padding: 0; }

/* Products */
.grid-3 { display: grid; gap: 1rem; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.product-shot { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2);
  aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ticks li { display: flex; gap: .5rem; align-items: flex-start; font-size: .9375rem; }
.ticks li::before { content: ""; flex: none; width: 1.125rem; height: 1.125rem; margin-top: .2rem; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137fec' stroke-width='3'%3E%3Cpath d='M5 12l4 4L19 7'/%3E%3C/svg%3E") center / 70% no-repeat; }
.card-foot { margin-top: auto; padding-top: .5rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem; display: grid; gap: .5rem; }
.steps li::before { content: counter(step); width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Who */
.who { display: grid; gap: 1rem; }
@media (min-width: 900px) { .who { grid-template-columns: 1fr 1fr; } }
.who-list { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }

/* Trust */
.trust { display: grid; gap: 1rem; }
@media (min-width: 700px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust-line { margin-top: 1.5rem; text-align: center; color: var(--muted); }

/* Pricing: CSS-only toggles (radio inputs), so the section works without JavaScript */
.toggles { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 1.5rem; }
.seg { display: inline-flex; padding: .25rem; gap: .25rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); }
.seg label { min-height: 40px; padding: 0 1rem; display: inline-flex; align-items: center; border-radius: .75rem;
  font-weight: 600; font-size: .875rem; cursor: pointer; color: var(--muted); }
#bill-monthly:checked ~ .toggles label[for="bill-monthly"], #bill-annual:checked ~ .toggles label[for="bill-annual"],
#cur-sar:checked ~ .toggles label[for="cur-sar"], #cur-aed:checked ~ .toggles label[for="cur-aed"] {
  background: var(--primary); color: #fff; }
#bill-monthly:focus-visible ~ .toggles label[for="bill-monthly"], #bill-annual:focus-visible ~ .toggles label[for="bill-annual"],
#cur-sar:focus-visible ~ .toggles label[for="cur-sar"], #cur-aed:focus-visible ~ .toggles label[for="cur-aed"] {
  outline: 3px solid var(--primary); outline-offset: 2px; }
.save-note { color: var(--success); font-weight: 600; font-size: .8125rem; }
.plans { display: grid; gap: 1rem; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; }
.plan-popular { border: 2px solid var(--primary); }
.badge { position: absolute; top: -.75rem; inset-inline-start: 1.25rem; background: var(--primary); color: #fff;
  border-radius: 999px; padding: .125rem .75rem; font-size: .8125rem; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: .375rem; flex-wrap: wrap; }
.price-num { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.price-unit { color: var(--muted); font-size: .875rem; }
.price-annual, .cur-aed { display: none; }
#bill-annual:checked ~ .plans .price-monthly { display: none; }
#bill-annual:checked ~ .plans .price-annual { display: flex; }
#cur-aed:checked ~ .plans .cur-sar { display: none; }
#cur-aed:checked ~ .plans .cur-aed { display: inline; }
.pricing-radios { position: absolute; opacity: 0; pointer-events: none; }
.plan-units { font-size: .875rem; color: var(--muted); }
.plan-facts { display: flex; flex-wrap: wrap; gap: .375rem; font-size: .8125rem; }
.plan-facts span { background: var(--surface-2); border-radius: 999px; padding: .125rem .625rem; }
.trial-strip { margin-top: 1.25rem; text-align: center; color: var(--muted); }
.topups { margin-top: .75rem; text-align: center; color: var(--muted); font-size: .9375rem; }

/* FAQ: details/summary, no script */
.faq { display: grid; gap: .75rem; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.25rem; min-height: var(--control);
  font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 1.25rem 1rem; color: var(--muted); }

.cta-band { background: var(--primary); color: #fff; border-radius: var(--radius-lg); padding: 2rem 1.25rem;
  display: grid; gap: 1rem; text-align: center; justify-items: center; }
.cta-band .btn-primary { background: #fff; color: var(--primary); }

/* ── Auth ────────────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 16px; max-width: 520px; width: 100%; margin: 0 auto; }
.auth-main { display: flex; align-items: flex-start; justify-content: center; padding: 1rem 16px 2rem; }
@media (min-width: 640px) { .auth-main { align-items: center; } }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; display: grid; gap: 1.25rem; box-shadow: var(--shadow); }
@media (min-width: 640px) { .auth-card { padding: 2rem; } }
.auth-value { color: var(--muted); font-size: .9375rem; }
.auth-form { display: grid; gap: 1rem; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.auth-or { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .8125rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-foot { text-align: center; color: var(--muted); font-size: .8125rem; padding: 1rem 16px 1.5rem; }
.plan-chip { display: flex; justify-content: space-between; gap: .5rem; align-items: center; padding: .75rem 1rem;
  background: var(--primary-soft); border-radius: var(--radius); font-size: .9375rem; }
.strength { display: grid; gap: .25rem; }
.strength-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.strength-bar span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s; }
.strength[data-level="2"] .strength-bar span { width: 50%; background: var(--accent); }
.strength[data-level="3"] .strength-bar span { width: 75%; background: var(--primary); }
.strength[data-level="4"] .strength-bar span { width: 100%; background: var(--success); }
.strength[data-level="1"] .strength-bar span { width: 25%; }
.otp { letter-spacing: .5em; text-align: center; font-size: 1.375rem; font-variant-numeric: tabular-nums; direction: ltr; }

/* Prose pages (data deletion) */
.prose { max-width: 760px; margin: 0 auto; display: grid; gap: 1rem; }
.prose h2 { font-size: 1.25rem; margin-top: 1rem; }
.prose ul, .prose ol { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: .375rem; }
.hint-error { color: var(--danger); }

/* ── The visual layer ─────────────────────────────────────────
   Colour and depth without images or script: gradients, a geometric
   pattern in the brand blue and Gulf gold, and motion only for those who
   have not asked for less of it. Text colours stay at WCAG AA. */
:root {
  --navy: #0b2545;
  --gold: #c9a227;
  --grad: linear-gradient(120deg, #0f6ad0 0%, #2b59c3 45%, #0b2545 100%);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%230f6ad0' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M36 4l9.4 22.6L68 36l-22.6 9.4L36 68l-9.4-22.6L4 36l22.6-9.4z'/%3E%3Ccircle cx='36' cy='36' r='9'/%3E%3C/g%3E%3C/svg%3E");
  --shadow-lg: 0 24px 60px -24px rgb(11 37 69 / .35), 0 8px 24px -12px rgb(11 37 69 / .18);
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.1' stroke-width='1.2'%3E%3Cpath d='M36 4l9.4 22.6L68 36l-22.6 9.4L36 68l-9.4-22.6L4 36l22.6-9.4z'/%3E%3Ccircle cx='36' cy='36' r='9'/%3E%3C/g%3E%3C/svg%3E");
}

.hero { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 3rem; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 60% at 88% 8%, rgb(15 106 208 / .20), transparent 62%),
    radial-gradient(45% 50% at 6% 92%, rgb(201 162 39 / .18), transparent 60%),
    radial-gradient(35% 35% at 45% 40%, rgb(43 89 195 / .08), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern);
  -webkit-mask-image: radial-gradient(70% 80% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 80% at 50% 30%, #000 30%, transparent 75%);
}
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; } }
.hero .eyebrow {
  justify-self: start; display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .875rem;
  border-radius: 999px; background: rgb(255 255 255 / .75); border: 1px solid rgb(15 106 208 / .2);
  box-shadow: 0 1px 2px rgb(16 24 40 / .05);
}
.hero .eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgb(201 162 39 / .2); }
.h1 { font-size: clamp(2.125rem, 5.2vw, 4.25rem); letter-spacing: -.025em; line-height: 1.08; }
:lang(ar) .h1 { letter-spacing: 0; line-height: 1.35; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { max-width: 40rem; }
.hero .btn-primary { background: var(--grad); box-shadow: 0 10px 24px -10px rgb(15 106 208 / .7); }
.hero .btn-primary:hover { filter: brightness(1.08); }
.hero .btn { min-height: 52px; padding: 0 1.5rem; font-size: 1rem; }

.try { box-shadow: var(--shadow-lg); border-color: rgb(15 106 208 / .15); background: rgb(255 255 255 / .92);
  backdrop-filter: blur(6px); }
@media (min-width: 1000px) { .try { transform: rotate(-1deg); } [dir="rtl"] .try { transform: rotate(1deg); } }
.phone { box-shadow: 0 18px 40px -18px rgb(0 0 0 / .55); }

.section-head .h2 { letter-spacing: -.015em; }
:lang(ar) .section-head .h2 { letter-spacing: 0; }
.section-tint { background: linear-gradient(180deg, var(--surface) 0%, #f2f6fb 100%); }

.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.grid-3 > .card:hover, .trust > .card:hover, .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: rgb(15 106 208 / .25); }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2);
  box-shadow: 0 12px 30px -18px rgb(11 37 69 / .45); }
.frame-bar { display: flex; gap: .375rem; padding: .5rem .75rem; background: #e9eef4; border-bottom: 1px solid var(--border); }
.frame-bar span { width: .625rem; height: .625rem; border-radius: 50%; background: #c7d0db; }
.frame-bar span:first-child { background: #f87171; } .frame-bar span:nth-child(2) { background: #fbbf24; }
.frame-bar span:nth-child(3) { background: #34d399; }
.frame .product-shot { border: 0; border-radius: 0; }
.card-icon { width: 2.75rem; height: 2.75rem; border-radius: .875rem; display: inline-flex; align-items: center;
  justify-content: center; background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgb(15 106 208 / .7); }
.card-icon svg { width: 1.375rem; height: 1.375rem; }
.card-head { display: flex; align-items: center; gap: .75rem; }

.steps { position: relative; }
.steps li { position: relative; }
.steps li::before { background: var(--grad); width: 2.75rem; height: 2.75rem; font-size: 1.125rem;
  box-shadow: 0 0 0 6px var(--surface), 0 8px 18px -8px rgb(15 106 208 / .7); }

.plan-popular { border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  box-shadow: var(--shadow-lg); }
@media (min-width: 1100px) { .plan-popular { transform: translateY(-10px); } .plan-popular:hover { transform: translateY(-14px); } }
.badge { background: var(--grad); }
.price-num { font-size: 2.5rem; letter-spacing: -.02em; }

.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--grad);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; border-radius: 2rem; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='1.2'%3E%3Cpath d='M36 4l9.4 22.6L68 36l-22.6 9.4L36 68l-9.4-22.6L4 36l22.6-9.4z'/%3E%3Ccircle cx='36' cy='36' r='9'/%3E%3C/g%3E%3C/svg%3E"); }
.cta-band .h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); max-width: 22ch; }
.cta-band .btn-primary { min-height: 52px; padding: 0 1.75rem; box-shadow: 0 12px 24px -12px rgb(0 0 0 / .5); }

.site-footer { background: var(--navy); border-top: 0; color: #dbe4ef; }
.site-footer .brand { color: #fff; }
.site-footer .footer-links a { color: #c8d4e3; }
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .footer-note { color: #b3c1d3; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .hero-copy > * { animation: rise .6s ease both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; } .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; } .hero-copy > *:nth-child(n+5) { animation-delay: .24s; }
  .try { animation: rise .7s .15s ease both; }
}
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  @keyframes rise-tilt { from { opacity: 0; transform: translateY(14px) rotate(-1deg); } to { opacity: 1; transform: rotate(-1deg); } }
  @keyframes rise-tilt-rtl { from { opacity: 0; transform: translateY(14px) rotate(1deg); } to { opacity: 1; transform: rotate(1deg); } }
  .try { animation-name: rise-tilt; } [dir="rtl"] .try { animation-name: rise-tilt-rtl; }
}

.who .card { background: linear-gradient(160deg, var(--surface) 55%, #eef4fc 100%); padding: 1.75rem; }
.trust .card-icon, .who .card-icon { margin-bottom: .25rem; }
.trial-strip { display: block; width: fit-content; max-width: 100%; margin: 1.75rem auto 0; padding: .875rem 1.25rem;
  border-radius: 999px; background: rgb(201 162 39 / .12); border: 1px solid rgb(201 162 39 / .35); color: #5b4a12; }

/* ── Auth, split screen ───────────────────────────────────────
   Desktop: the brand side (gradient, pattern, a real screenshot) beside the
   form. Phone: a gradient band behind the top bar, the card over it. */
.auth-split { display: grid; grid-template-rows: none; min-height: 100vh; }
.auth-aside { display: none; }
.auth-panel { position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh;
  background:
    radial-gradient(60% 45% at 100% 0%, rgb(15 106 208 / .10), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgb(201 162 39 / .10), transparent 70%), var(--bg); }
.auth-top { max-width: 480px; }
.auth-card { position: relative; max-width: 460px; padding: 1.75rem; border-radius: 1.75rem; box-shadow: var(--shadow-lg);
  border-color: rgb(15 106 208 / .12); overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
@media (min-width: 640px) { .auth-card { padding: 2.25rem 2.5rem; } }
.auth-card .h2 { font-size: clamp(1.625rem, 3vw, 2rem); letter-spacing: -.015em; }
:lang(ar) .auth-card .h2 { letter-spacing: 0; }
.auth-card .input { min-height: 48px; background: #fbfcfe; }
.auth-card .input:hover { border-color: #c5d1df; }
.auth-form .btn-primary, .auth-card > .btn-primary { min-height: 50px; background: var(--grad); font-size: 1rem;
  box-shadow: 0 10px 22px -12px rgb(15 106 208 / .8); }
.auth-form .btn-primary:hover { filter: brightness(1.07); }
.auth-card .btn-ghost { min-height: 48px; background: var(--surface); }
.auth-card .btn-ghost:hover { border-color: rgb(15 106 208 / .35); background: var(--primary-soft); }
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--primary); }

@media (max-width: 1023px) {
  .auth-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 200px; z-index: -1;
    background: var(--pattern-light), var(--grad); border-radius: 0 0 2rem 2rem; }
  .auth-top .brand { color: #fff; }
  .auth-top .brand-mark { background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .35); }
  .auth-top .lang-switch { background: rgb(255 255 255 / .16); }
  .auth-top .lang-switch button { color: #fff; }
  .auth-top .lang-switch button[aria-pressed="true"] { background: #fff; color: var(--primary); }
  .auth-main { padding-top: .5rem; }
}

@media (min-width: 1024px) {
  .auth-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .auth-brand-mobile { display: none; }
  .auth-top { justify-content: flex-end; max-width: 520px; padding-top: 1.5rem; }
  .auth-aside {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2rem;
    padding: 2.5rem clamp(2rem, 4.5vw, 4.5rem); color: #fff; overflow: hidden; isolation: isolate;
    background: var(--pattern-light), var(--grad);
  }
  .auth-aside::after { content: ""; position: absolute; inset: auto -20% -30% auto; width: 70%; height: 70%; z-index: -1;
    background: radial-gradient(closest-side, rgb(201 162 39 / .35), transparent); }
  .auth-aside .brand { color: #fff; font-size: 1.25rem; }
  .auth-aside .brand-mark { background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .35); }
  .auth-aside-copy { display: grid; gap: 1.25rem; max-width: 34rem; margin-top: 1rem; }
  .auth-aside-title { font-size: clamp(1.875rem, 2.7vw, 2.75rem); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
  :lang(ar) .auth-aside-title { line-height: 1.5; letter-spacing: 0; }
  .auth-aside .accent { background: none; -webkit-text-fill-color: currentColor; color: #ffd978; }
  .auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; font-size: 1.0625rem; }
  .auth-points li { display: flex; gap: .625rem; align-items: flex-start; }
  .auth-points li::before { content: ""; flex: none; width: 1.375rem; height: 1.375rem; margin-top: .15rem; border-radius: 50%;
    background: rgb(255 255 255 / .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='M5 12l4 4L19 7'/%3E%3C/svg%3E") center / 62% no-repeat; }
  .auth-shot { margin-top: auto; max-width: 560px; width: 100%; transform: rotate(-2deg); border-color: rgb(255 255 255 / .25);
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55); }
  [dir="rtl"] .auth-shot { transform: rotate(2deg); }
  .auth-shot img { display: block; width: 100%; height: auto; }
  .auth-aside-foot { font-size: .875rem; color: rgb(255 255 255 / .85); }
}
@media (min-width: 1024px) and (max-height: 760px) { .auth-shot { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .auth-card { animation: rise .5s ease both; }
}

/* ── Inner pages: a hero band, then the content ─────────────── */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(55% 70% at 85% 0%, rgb(15 106 208 / .16), transparent 65%),
              radial-gradient(45% 60% at 10% 100%, rgb(201 162 39 / .14), transparent 65%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern);
  -webkit-mask-image: radial-gradient(60% 90% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 90% at 50% 20%, #000 20%, transparent 75%); }
.page-hero .wrap { display: grid; gap: .875rem; justify-items: center; }
.page-hero .eyebrow { display: inline-flex; padding: .3rem .875rem; border-radius: 999px; background: rgb(255 255 255 / .8);
  border: 1px solid rgb(15 106 208 / .2); }
.page-title { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
:lang(ar) .page-title { letter-spacing: 0; line-height: 1.35; }
.page-hero .lead { max-width: 44rem; }

.legal { max-width: 860px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem); gap: 1.75rem; box-shadow: var(--shadow-lg); }
.legal section { display: grid; gap: .75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.legal section:first-of-type { border-top: 0; padding-top: 0; }
.legal h2 { font-size: 1.25rem; font-weight: 700; }
.legal p, .legal li { color: #374151; line-height: 1.85; }
.legal ul { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: .5rem; }
.legal-updated { color: var(--muted); font-size: .875rem; font-weight: 600; }

.contact-grid { display: grid; gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.contact-aside { background: var(--pattern-light), var(--grad); color: #fff; border: 0; box-shadow: var(--shadow-lg); }
.contact-aside .h3 { color: #fff; }
.contact-aside p, .contact-aside li { color: rgb(255 255 255 / .9); }
.contact-aside .ticks li::before { background-color: rgb(255 255 255 / .18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='M5 12l4 4L19 7'/%3E%3C/svg%3E"); }
.contact-form { box-shadow: var(--shadow-lg); gap: 1rem; }
.contact-form textarea.input { min-height: 160px; resize: vertical; padding-top: .75rem; }
.contact-form select.input { appearance: auto; }
.contact-form .btn-primary { min-height: 50px; background: var(--grad); }
.done-card { text-align: center; justify-items: center; max-width: 640px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.done-mark { width: 4rem; height: 4rem; border-radius: 50%; background: #ecfdf5; color: var(--success); display: inline-flex;
  align-items: center; justify-content: center; }
.section-flush { padding-top: 0; }
.link-light { color: #fff; }

/* About and the blog keep their own narrow heroes: the glow and pattern
   run the full width behind them instead of stopping at the hero's box. */
html, body { overflow-x: clip; }
.ap-hero.page-hero, .bp-hero.page-hero, .ar-hero.page-hero { overflow: visible; }
.ap-hero.page-hero::before, .bp-hero.page-hero::before, .ar-hero.page-hero::before,
.ap-hero.page-hero::after, .bp-hero.page-hero::after, .ar-hero.page-hero::after { inset: 0 calc(50% - 50vw); }
.ap-cta-bar, .bp-cta-bar, .ar-cta-bar { background: var(--pattern-light), var(--grad) !important; color: #fff;
  box-shadow: var(--shadow-lg); }
.ap-cta-bar p, .bp-cta-bar p, .ar-cta-bar p { color: rgb(255 255 255 / .92) !important; }
[dir="rtl"] .ap-hero-cta svg, [dir="rtl"] .ap-btn-white svg { transform: scaleX(-1); }
