/* Web Astra public site — one stylesheet for English (LTR) and Arabic (RTL).
   Layout uses logical properties (inline-start/end) so both directions work. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f6fd;
  --bg-tint: #f0edff;
  --navy: #252f4b;      /* identity: navy */
  --sky: #3cb8f3;       /* identity: sky blue */
  --ink: #1d2540;
  --ink-2: #3d4560;
  --muted: #6b7088;
  --line: #e4e3f1;
  --brand: #5f33e4;     /* identity: purple */
  --brand-2: #7a52f0;
  --brand-ink: #4a22c9;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --ok: #12a150;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 17, 39, .06), 0 2px 8px rgba(20, 17, 39, .04);
  --shadow: 0 10px 30px rgba(37, 47, 75, .10), 0 2px 8px rgba(20, 17, 39, .05);
  --shadow-lg: 0 30px 60px rgba(39, 25, 120, .18);
  --font: 'Inter', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1160px;
}
[lang="ar"] { --font: 'Tajawal', 'Inter', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
[lang="ar"] body { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(95, 51, 228, .45); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 12px; padding: 13px 22px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 6px 18px rgba(95, 51, 228, .30); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(95, 51, 228, .38); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: #cfc8ef; background: var(--bg-soft); }
.btn-white { background: #fff; color: var(--brand-ink); }
.btn-white:hover { color: var(--brand-ink); box-shadow: var(--shadow); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-white:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20, 17, 39, .04); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-family: 'Inter', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; }
.brand:hover { color: var(--navy); }
.brand b { color: var(--brand); font-weight: 800; }
.brand img { height: 34px; width: auto; }
.brand span { font-weight: 800; }
[dir="rtl"] .brand span { direction: ltr; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav > a:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: 8px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 10px; }
.lang-switch:hover { background: var(--bg-soft); color: var(--ink); }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-list { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 60; min-width: 150px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.lang-list a { padding: 9px 12px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: 15px; text-align: center; }
.lang-list a:hover { background: var(--bg-soft); color: var(--brand); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-langs a { border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 6px 12px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.footer-langs a[lang="ar"], .lang-list a[lang="ar"] { font-family: "Tajawal", sans-serif; letter-spacing: 0; }
.footer-langs a:hover { background: rgba(255,255,255,.06); }
@media (max-width: 900px) { .lang-list { position: static; box-shadow: none; margin-top: 6px; } }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav > a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-actions { margin: 16px 0 0; flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); background: var(--bg-tint); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-head { margin-bottom: 40px; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background:
  radial-gradient(900px 500px at 85% -10%, rgba(122, 92, 255, .16), transparent 60%),
  radial-gradient(700px 400px at -10% 30%, rgba(37, 211, 102, .10), transparent 60%); }
[dir="rtl"] .hero { background:
  radial-gradient(900px 500px at 15% -10%, rgba(122, 92, 255, .16), transparent 60%),
  radial-gradient(700px 400px at 110% 30%, rgba(37, 211, 102, .10), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; }
.hero h1 .hl { background: linear-gradient(120deg, var(--brand) 25%, #1d8fd6); -webkit-background-clip: text; background-clip: text; color: transparent;
  /* room for Arabic dots above/below the line: the gradient is only painted inside the padding box */
  padding: .18em 0 .28em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-lead { font-size: 19px; color: var(--ink-2); margin-top: 22px; max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--ok); flex: none; }
@media (max-width: 960px) { .hero { padding: 40px 0 72px; } .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

/* phone mock-up (iPhone-style frame with WhatsApp inside) */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; top: 10%; background: radial-gradient(circle, rgba(95, 51, 228, .18), rgba(60, 184, 243, .10) 45%, transparent 70%); filter: blur(10px); }
.phone { position: relative; width: 330px; max-width: 100%; aspect-ratio: 9 / 19.2; border-radius: 56px; padding: 11px; background: linear-gradient(145deg, #3a3f52, #15171f 45%, #2b2f3d); box-shadow: inset 0 0 0 2px #4a4f63, inset 0 0 0 5px #0b0c11, 0 40px 80px rgba(37, 47, 75, .35), 0 12px 24px rgba(37, 47, 75, .2); direction: ltr; }
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: #2b2f3d; }
.phone::before { left: -3px; top: 120px; height: 34px; box-shadow: 0 52px 0 0 #2b2f3d, 0 100px 0 0 #2b2f3d; }
.phone::after { right: -3px; top: 170px; height: 70px; }
.screen { position: relative; height: 100%; border-radius: 46px; overflow: hidden; background: #efeae2; display: flex; flex-direction: column; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; z-index: 3; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 6px; color: #fff; font: 600 14px/1 -apple-system, 'Inter', sans-serif; background: #0b7a6e; }
.statusbar .icons { display: flex; gap: 5px; align-items: center; }
.wa-top { display: flex; align-items: center; gap: 10px; background: #0b7a6e; color: #fff; padding: 8px 12px 10px; }
.wa-back { width: 18px; height: 18px; flex: none; opacity: .95; }
.wa-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.wa-avatar svg { width: 21px; height: 21px; color: #0e9f8f; }
.wa-who { flex: 1; min-width: 0; }
.wa-name { font-weight: 700; font-size: 15px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-status { font-size: 12px; opacity: .85; }
.wa-actions { display: flex; gap: 16px; flex: none; }
.wa-actions svg { width: 20px; height: 20px; }
.wa-body { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; background-color: #efeae2; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
.wa-day { align-self: center; background: #fff; color: #54656f; font-size: 11.5px; padding: 3px 10px; border-radius: 7px; box-shadow: 0 1px 1px rgba(0,0,0,.06); margin-bottom: 4px; }
.msg { max-width: 80%; padding: 6px 9px 4px; border-radius: 9px; font-size: 13px; line-height: 1.4; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.08); opacity: 0; transform: translateY(6px); animation: pop .4s ease forwards; }
[dir="rtl"] .screen { direction: rtl; }
[dir="rtl"] .statusbar { direction: ltr; }
[dir="rtl"] .wa-back { transform: scaleX(-1); }
.msg time { display: block; text-align: end; font-size: 10px; color: #667781; margin-top: 1px; }
.msg.out time::after { content: " ✓✓"; color: #53bdeb; letter-spacing: -2px; }
.msg.in { background: #fff; align-self: flex-start; border-start-start-radius: 2px; }
.msg.out { background: #d9fdd3; align-self: flex-end; border-start-end-radius: 2px; }
/* child 1 is the "Today" label, the messages are children 2 to 7 */
.wa-body .msg:nth-child(2) { animation-delay: .8s } .wa-body .msg:nth-child(3) { animation-delay: 1.6s } .wa-body .msg:nth-child(4) { animation-delay: 2.4s }
.wa-body .msg:nth-child(5) { animation-delay: 3.2s } .wa-body .msg:nth-child(6) { animation-delay: 3.9s } .wa-body .msg:nth-child(7) { animation-delay: 4.6s }
.wa-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 22px; background: #f0f2f5; }
.wa-field { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 20px; padding: 8px 12px; color: #8696a0; font-size: 13px; }
.wa-field svg, .wa-input > svg { width: 20px; height: 20px; color: #54656f; flex: none; }
.wa-mic { width: 38px; height: 38px; border-radius: 50%; background: #0b7a6e; display: grid; place-items: center; flex: none; }
.wa-mic svg { width: 18px; height: 18px; color: #fff; }
.push { position: absolute; top: 48px; left: 10px; right: 10px; z-index: 4; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px; background: rgba(250, 250, 252, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,0,0,.18); color: #111; opacity: 0; transform: translateY(-16px); animation: push-in 5s ease 5.4s forwards; }
.push-icon { width: 34px; height: 34px; border-radius: 9px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(0,0,0,.06); flex: none; }
.push-icon svg { width: 22px; height: 22px; }
.push-text { flex: 1; min-width: 0; font: 13px/1.3 -apple-system, 'Inter', 'Tajawal', sans-serif; }
.push-text b { display: flex; justify-content: space-between; font-size: 12.5px; }
.push-text b small { color: #888; font-weight: 400; }
[dir="rtl"] .push-text { direction: rtl; text-align: right; }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes push-in { 0% { opacity: 0; transform: translateY(-16px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-16px); } }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; opacity: 1; transform: none; } .push { display: none; } html { scroll-behavior: auto; } }
@media (max-width: 380px) { .phone { width: 300px; } }

/* ---------------------------------------------------------------- strip */
.strip { position: relative; margin-top: -40px; z-index: 2; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding-inline: 0; overflow: hidden; }
.strip-item { padding: 24px 18px; display: flex; gap: 12px; align-items: center; justify-content: center; text-align: center; font-weight: 700; color: var(--ink); font-size: 15px; }
.strip-item svg { width: 22px; height: 22px; }
.strip-item + .strip-item { border-inline-start: 1px solid var(--line); }
.strip-item svg { color: var(--brand); flex: none; }
@media (max-width: 860px) { .strip-grid { grid-template-columns: 1fr 1fr; } .strip-item:nth-child(3) { border-inline-start: 0; } .strip-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .strip-grid { grid-template-columns: 1fr; } .strip-item + .strip-item { border-inline-start: 0; border-top: 1px solid var(--line); } }

/* ---------------------------------------------------------------- steps & features */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px 28px; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 20px; }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9d2fb; }
.ficon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-tint); color: var(--brand); margin-bottom: 18px; }
.ficon.green { background: #e6f8ee; color: var(--ok); }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .steps, .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps, .features { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- lead add-on band */
.leads-band { position: relative; overflow: hidden; border-radius: 28px; background: linear-gradient(135deg, var(--navy) 10%, #3b2a8f 60%, var(--brand)); color: #fff; padding: 56px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.leads-band::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(60, 184, 243, .35), transparent 65%); inset-inline-end: -120px; top: -160px; pointer-events: none; }
.leads-band .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.leads-band h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.leads-band p.lead { color: rgba(255, 255, 255, .82); font-size: 17px; margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: #25d366 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.leads-card { position: relative; z-index: 1; background: #fff; color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); }
.leads-card .price { display: flex; align-items: baseline; gap: 6px; }
.leads-card .price strong { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.leads-card .price span { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.leads-card .sub { color: var(--muted); font-size: 14px; }
.timeline { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.timeline li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; font-weight: 600; }
.timeline b { display: inline-grid; place-items: center; min-width: 64px; padding: 4px 8px; border-radius: 8px; background: var(--bg-tint); color: var(--brand-ink); font-size: 12.5px; }
.fine { color: var(--muted); font-size: 12.5px; margin-top: 12px; }
@media (max-width: 960px) { .leads-band { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 22px; } }

/* ---------------------------------------------------------------- pricing */
.trial-note { margin-top: 14px; display: inline-block; background: var(--bg-tint); color: var(--ink-2); border-radius: 999px; padding: 8px 18px; font-size: 15px; }
.trial-note strong { color: var(--brand-ink); }
.trial-note a { color: var(--brand); font-weight: 700; margin-inline-start: 6px; }
.cycle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-top: 28px; box-shadow: var(--shadow-sm); }
.cycle button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 14.5px; color: var(--muted); padding: 10px 20px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.cycle button[aria-pressed="true"] { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 4px 12px rgba(95, 51, 228, .3); }
.save { background: #e6f8ee; color: var(--ok); font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.cycle button[aria-pressed="true"] .save { background: rgba(255, 255, 255, .2); color: #fff; }
.save { background: rgba(60, 184, 243, .14); color: #0b7fb5; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan.popular { border: 2px solid var(--brand); box-shadow: 0 20px 50px rgba(95, 51, 228, .18); }
.plan .tag { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
[dir="rtl"] .plan .tag { transform: translateX(50%); }
.plan h3 { font-size: 20px; font-weight: 800; }
.plan .desc { color: var(--muted); font-size: 14.5px; margin-top: 6px; min-height: 46px; }
.plan .amount { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.plan .amount strong { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; }
.plan .amount span { color: var(--muted); font-weight: 500; }
.plan .billed { color: var(--muted); font-size: 13.5px; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.plan li svg { flex: none; color: var(--brand); margin-top: 3px; }
.plans-note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 32px; }
.plans-note a { font-weight: 700; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .plan .desc { min-height: 0; } }

/* ---------------------------------------------------------------- checkout dialog */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 12, 35, .55); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 28px; animation: rise .25s ease; }
@keyframes fade { from { opacity: 0 } } @keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-close { position: absolute; top: 16px; inset-inline-end: 16px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--bg-soft); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.modal-close:hover { background: var(--bg-tint); }
.modal h3 { font-size: 22px; font-weight: 800; padding-inline-end: 40px; }
.modal .step-label { color: var(--muted); font-size: 14px; margin-top: 4px; }
.picked { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 20px; }
.picked strong { font-size: 17px; }
.picked .sub { color: var(--muted); font-size: 13.5px; }
.seg { display: inline-flex; background: var(--bg-soft); border-radius: 10px; padding: 4px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.addon-option { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: flex-start; border: 2px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 14px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.addon-option:hover { border-color: #cfc5fb; }
.addon-option.on { border-color: var(--brand); background: #faf9ff; }
.addon-option input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: #d8d3ea; position: relative; flex: none; transition: background .2s ease; margin-top: 2px; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: inset-inline-start .2s ease; }
.addon-option.on .switch { background: var(--brand); }
.addon-option.on .switch::after { inset-inline-start: 21px; }
.addon-option strong { display: block; font-size: 15.5px; }
.addon-option .sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.addon-option .addon-price { font-weight: 800; white-space: nowrap; }
.addon-option input:focus-visible + .switch { outline: 3px solid rgba(95, 51, 228, .45); outline-offset: 2px; }
.summary { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 16px; display: grid; gap: 8px; font-size: 15px; }
[hidden] { display: none !important; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.summary .total { font-weight: 800; font-size: 18px; color: var(--ink); padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 12px; text-align: center; }
.modal .btn-block { margin-top: 20px; }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 9px; background:
  linear-gradient(var(--brand), var(--brand)) center / 12px 2px no-repeat,
  linear-gradient(var(--brand), var(--brand)) center / 2px 12px no-repeat,
  var(--bg-tint); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; }

/* ---------------------------------------------------------------- CTA band */
.cta-band { border-radius: 28px; background: linear-gradient(120deg, var(--brand) 0%, #4a2fc0 55%, var(--navy) 100%); color: #fff; text-align: center; padding: 64px 24px; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 18px; margin: 14px auto 0; max-width: 560px; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------------------------------------------------------------- inner pages */
.page-hero { padding: 72px 0 48px; text-align: center; background: radial-gradient(800px 400px at 50% -20%, rgba(122, 92, 255, .14), transparent 65%); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; max-width: 820px; margin-inline: auto; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 640px; margin: 18px auto 0; }
.prose { max-width: 760px; margin-inline: auto; font-size: 17px; color: var(--ink-2); display: grid; gap: 18px; }
.prose h2 { font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 18px; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); transition: box-shadow .2s ease, border-color .2s ease; }
.contact-card:hover { color: var(--ink); box-shadow: var(--shadow); border-color: #d9d2fb; }
.contact-card .ficon { margin: 0; flex: none; }
.contact-card strong { display: block; font-size: 16px; }
.contact-card span { color: var(--muted); font-size: 14.5px; direction: ltr; unicode-bidi: isolate; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field input, .field textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-soft); border: 1.5px solid transparent; border-radius: 12px; padding: 13px 14px; transition: border-color .15s ease, background .15s ease; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.hp { position: absolute; inset-inline-start: -9999px; }
.form-status { margin-top: 14px; font-weight: 600; font-size: 14.5px; }
.form-status.ok { color: var(--ok); } .form-status.err { color: #d23b3b; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px; } }

.legal { max-width: 780px; margin: 0 auto; padding: 0 20px 96px; font-size: 16px; color: var(--ink-2); }
.legal .updated { color: var(--muted); text-align: center; margin-top: -24px; margin-bottom: 40px; }
.legal h3 { font-size: 20px; color: var(--ink); margin: 36px 0 10px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal .note { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: #c7cbe0; padding-top: 64px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.site-footer .brand { color: #fff; display: inline-flex; padding: 0; font-size: 20px; }
.site-footer .brand b { color: var(--sky); }
.footer-brand p { margin: 14px 0; max-width: 300px; font-size: 15px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
[lang="ar"] .site-footer h4 { letter-spacing: 0; text-transform: none; font-size: 15px; }
.site-footer a { display: block; color: #c7cbe0; padding: 5px 0; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.site-footer .lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.18); padding: 7px 14px; }
.site-footer .lang-switch:hover { background: rgba(255,255,255,.06); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 20px; font-size: 14px; color: #9aa0bb; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------------- motion
   Small, calm animations. Everything here is switched off for people who
   ask their system for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  /* hero: text comes in line by line on load */
  .hero-grid > div:first-child > * { opacity: 0; animation: rise-in .7s cubic-bezier(.2, .7, .2, 1) forwards; }
  .hero-grid > div:first-child > :nth-child(1) { animation-delay: .05s; }
  .hero-grid > div:first-child > :nth-child(2) { animation-delay: .15s; }
  .hero-grid > div:first-child > :nth-child(3) { animation-delay: .28s; }
  .hero-grid > div:first-child > :nth-child(4) { animation-delay: .4s; }
  .hero-grid > div:first-child > :nth-child(5) { animation-delay: .52s; }
  .hero-visual { opacity: 0; animation: phone-in .9s cubic-bezier(.2, .7, .2, 1) .2s forwards; }
  .phone { animation: float 6s ease-in-out 1.2s infinite; }
  .hero-visual::before { animation: glow 8s ease-in-out infinite; }

  /* the highlighted words slowly shift colour */
  .hero h1 .hl { background-size: 200% 100%; animation: hue-shift 6s ease-in-out infinite alternate; }

  /* the strip slides up just after the hero */
  .strip-grid { opacity: 0; animation: rise-in .7s cubic-bezier(.2, .7, .2, 1) .6s forwards; }
  .strip-item svg { transition: transform .3s ease; }
  .strip-item:hover svg { transform: scale(1.15) rotate(-6deg); }

  /* cards: icons react on hover */
  .ficon { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease; }
  .feature:hover .ficon { transform: translateY(-2px) scale(1.08); box-shadow: 0 8px 18px rgba(95, 51, 228, .18); }
  .step::before { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
  .step:hover::before { transform: scale(1.1) rotate(-4deg); }
  .step { transition: transform .25s ease, box-shadow .25s ease; }
  .step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

  /* primary buttons: a light sweep on hover */
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); }
  .btn-primary:hover::after { transform: translateX(120%); transition: transform .7s ease; }

  /* pricing: the popular plan breathes a little */
  .plan.popular { animation: soft-glow 4s ease-in-out infinite; }
  .plan { transition: transform .25s ease, box-shadow .25s ease; }
  .plan:hover { transform: translateY(-4px); }

  /* lead band: the light in the corner drifts */
  .leads-band::after { animation: drift 10s ease-in-out infinite alternate; }
  .timeline li { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .5s ease; }
  [dir="rtl"] .timeline li { transform: translateX(8px); }
  .reveal.in .timeline li { opacity: 1; transform: none; }
  .reveal.in .timeline li:nth-child(2) { transition-delay: .2s; }
  .reveal.in .timeline li:nth-child(3) { transition-delay: .4s; }

  /* FAQ answers fade in when opened */
  .faq details[open] p { animation: rise-in .35s ease; }

  /* header shrinks a little once you scroll */
  .header-row { transition: height .25s ease; }
  .site-header.scrolled .header-row { height: 64px; }
}

@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glow { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes hue-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes soft-glow { 0%, 100% { box-shadow: 0 20px 50px rgba(95, 51, 228, .16); } 50% { box-shadow: 0 24px 60px rgba(95, 51, 228, .28); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-60px, 40px); } }
