/* RATIC Leads – الألوان الأساسية تُضبط من صفحة الإعدادات (--rl-primary و --rl-accent) */
.rl {
  --rl-primary: #0f4c81;
  --rl-accent: #1aa39a;
  --rl-ink: #14202e;
  --rl-muted: #5b6878;
  --rl-line: #dde4ec;
  --rl-soft: #f4f7fa;
  --rl-bg: #ffffff;
  --rl-danger: #c0392b;
  --rl-wa: #1faa55;
  --rl-radius: 16px;
  --rl-shadow: 0 18px 50px rgba(10, 35, 66, .14);
  direction: rtl;
  text-align: right;
  color: var(--rl-ink);
  font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.rl *, .rl *::before, .rl *::after { box-sizing: border-box; }
.rl h1, .rl h2, .rl h3, .rl p, .rl ul, .rl ol { margin: 0; padding: 0; }
.rl ul, .rl ol { list-style: none; }
.rl a { color: inherit; }
.rl img { max-width: 100%; height: auto; }
.rl .rl-ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }

body.rl-canvas-body { margin: 0; background: #fff; }
.rl-canvas { overflow-x: hidden; }
.rl-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.rl-narrow { max-width: 820px; }

/* buttons */
.rl .rl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 22px; font: inherit; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer; background: var(--rl-accent); color: #fff; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.rl .rl-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .14); color: #fff; }
.rl .rl-btn:focus-visible, .rl a:focus-visible, .rl summary:focus-visible { outline: 3px solid var(--rl-accent); outline-offset: 2px; }
.rl .rl-btn-sm { padding: 8px 16px; font-size: .92em; }
.rl .rl-btn-lg { padding: 15px 28px; font-size: 1.06em; }
.rl .rl-btn-light { background: #fff; color: var(--rl-primary); border: 1.5px solid var(--rl-line); }
.rl .rl-btn-light:hover { color: var(--rl-primary); }
.rl .rl-btn-white { background: #fff; color: var(--rl-primary); }
.rl .rl-btn-white:hover { color: var(--rl-primary); }
.rl .rl-btn-wa { background: var(--rl-wa); }

/* top bar */
.rl-top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--rl-line); }
.admin-bar .rl-top { top: 32px; }
.rl-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.rl-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--rl-primary) !important; text-decoration: none; font-size: 1.05em; }
.rl-brand img { max-height: 46px; width: auto; }
.rl-brand-mark { width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--rl-primary), var(--rl-accent)); color: #fff; font-size: 1.25em; }
.rl-top-actions { display: flex; align-items: center; gap: 14px; }
.rl-top-phone { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; color: var(--rl-primary) !important; }

/* hero */
.rl-hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 255, 255, .12), transparent 60%), linear-gradient(150deg, var(--rl-primary) 0%, color-mix(in srgb, var(--rl-primary) 78%, #000) 100%); color: #fff; padding: 56px 0 96px; overflow: hidden; }
.rl-hero::after { content: ""; position: absolute; inset-inline-start: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: var(--rl-accent); opacity: .18; filter: blur(10px); pointer-events: none; }
.rl-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.rl-hero-copy { padding-top: 18px; }
.rl-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 5px 14px; font-size: .9em; font-weight: 700; margin-bottom: 18px; }
.rl-pulse { width: 8px; height: 8px; border-radius: 50%; background: #5ff0c4; box-shadow: 0 0 0 0 rgba(95, 240, 196, .7); animation: rl-pulse 1.8s infinite; }
@keyframes rl-pulse { 70% { box-shadow: 0 0 0 10px rgba(95, 240, 196, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 240, 196, 0); } }
.rl .rl-h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.3; font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: 0; }
.rl-lead { font-size: 1.12em; color: rgba(255, 255, 255, .86); max-width: 560px; margin-bottom: 24px; }
.rl-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 30px; }
.rl-checks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.rl-checks .rl-ico { margin-top: 5px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--rl-accent); color: #fff; stroke-width: 3; }
.rl-accr { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 20px; }
.rl-accr-label { display: block; font-size: .85em; color: rgba(255, 255, 255, .7); margin-bottom: 10px; }
.rl-accr ul { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-accr li { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .1); border-radius: 10px; padding: 6px 12px; font-size: .88em; font-weight: 600; }

/* form card */
.rl-card { background: var(--rl-bg); color: var(--rl-ink); border-radius: var(--rl-radius); box-shadow: var(--rl-shadow); padding: 28px; border: 1px solid rgba(0, 0, 0, .04); }
.rl-form-card { scroll-margin-top: 90px; }
.rl .rl-form-title { font-size: 1.45em; font-weight: 800; color: var(--rl-primary); line-height: 1.35; }
.rl-form-sub { color: var(--rl-muted); margin: 2px 0 18px; }
.rl-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.rl-field > label, .rl-field legend { font-weight: 700; font-size: .92em; padding: 0; }
.rl-req { color: var(--rl-danger); }
.rl-opt { color: var(--rl-muted); font-weight: 400; }
.rl-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rl input[type=text], .rl input[type=tel], .rl input[type=email], .rl input[type=number], .rl select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--rl-line); border-radius: 11px; background: #fff; color: var(--rl-ink); font: inherit; font-size: 16px; line-height: 1.4; box-shadow: none; margin: 0; -webkit-appearance: none; appearance: none;
}
.rl select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6878' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }
.rl input[dir=ltr] { text-align: left; }
.rl input::placeholder { color: #a3adb9; }
.rl input:focus, .rl select:focus { outline: none; border-color: var(--rl-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rl-accent) 18%, transparent); }
.rl .is-invalid { border-color: var(--rl-danger) !important; background-color: #fff8f7 !important; }
.rl-seg { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.rl-seg legend { width: 100%; margin-bottom: 5px; float: right; }
.rl-seg label { flex: 1 1 0; position: relative; cursor: pointer; }
.rl-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rl-seg span { display: block; text-align: center; padding: 10px 12px; border: 1.5px solid var(--rl-line); border-radius: 11px; font-weight: 700; color: var(--rl-muted); transition: all .15s; }
.rl-seg input:checked + span { border-color: var(--rl-primary); background: color-mix(in srgb, var(--rl-primary) 7%, #fff); color: var(--rl-primary); }
.rl-seg input:focus-visible + span { outline: 3px solid var(--rl-accent); outline-offset: 2px; }
.rl-company[hidden] { display: none; }
.rl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rl-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9em; color: var(--rl-muted); margin: 4px 0 10px; cursor: pointer; }
.rl-consent input { width: 18px; height: 18px; margin: 4px 0 0; flex: none; accent-color: var(--rl-primary); }
.rl-consent a { color: var(--rl-primary); }
.rl-error { color: var(--rl-danger); font-weight: 700; font-size: .92em; min-height: 1.4em; margin: 0 0 8px !important; }
.rl .rl-submit { width: 100%; font-size: 1.1em; }
.rl .rl-submit[disabled] { opacity: .7; cursor: wait; transform: none; }
.rl-spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: rl-spin .8s linear infinite; }
@keyframes rl-spin { to { transform: rotate(360deg); } }
.rl-secure { text-align: center; color: var(--rl-muted); font-size: .82em; margin-top: 10px !important; }

/* success */
.rl-done { text-align: center; padding: 18px 4px; }
.rl-done-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--rl-accent) 14%, #fff); color: var(--rl-accent); }
.rl-done-icon .rl-ico { width: 38px; height: 38px; stroke-width: 3; }
.rl-done h2 { font-size: 1.45em; font-weight: 800; color: var(--rl-primary); margin-bottom: 8px; }
.rl-done p { color: var(--rl-muted); margin-bottom: 20px; }
.rl-done .rl-btn { width: 100%; margin-bottom: 10px; }
.rl-done-tests { border-top: 1px solid var(--rl-line); margin-top: 12px; padding-top: 16px; }
.rl-done-tests p { margin-bottom: 10px; font-weight: 600; color: var(--rl-ink); }

/* stats */
.rl-stats { position: relative; z-index: 2; margin-top: -54px; }
.rl-stats-in { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--rl-radius); box-shadow: var(--rl-shadow); padding: 8px; }
.rl-stat { text-align: center; padding: 18px 10px; }
.rl-stat + .rl-stat { border-inline-start: 1px solid var(--rl-line); }
.rl-stat strong { display: block; font-size: 2em; font-weight: 800; line-height: 1.2; color: var(--rl-primary); }
.rl-stat span { color: var(--rl-muted); font-size: .95em; }

/* sections */
.rl-sec { padding: 80px 0; }
.rl-sec-tight { padding: 16px 0 72px; }
.rl-sec-soft { background: var(--rl-soft); }
.rl-sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.rl-sec-head p { color: var(--rl-muted); margin-top: 8px; }
.rl .rl-h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.35; color: var(--rl-primary); }
.rl .rl-h3 { font-size: 1.35em; font-weight: 800; color: var(--rl-primary); }

.rl-programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rl-program { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); padding: 24px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rl-program:hover { border-color: color-mix(in srgb, var(--rl-accent) 55%, #fff); box-shadow: 0 14px 34px rgba(10, 35, 66, .08); transform: translateY(-2px); }
.rl-program-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: color-mix(in srgb, var(--rl-primary) 8%, #fff); color: var(--rl-primary); }
.rl-program-icon .rl-ico { width: 26px; height: 26px; }
.rl-program h3 { font-size: 1.12em; font-weight: 800; line-height: 1.45; margin-bottom: 6px; }
.rl-program p { color: var(--rl-muted); font-size: .95em; flex: 1; }
.rl .rl-link { margin-top: 16px; font-weight: 700; color: var(--rl-accent); text-decoration: none; align-self: flex-start; }
.rl .rl-link:hover { text-decoration: underline; }

.rl-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rl-feature { display: flex; gap: 16px; background: #fff; border-radius: var(--rl-radius); padding: 24px; border: 1px solid var(--rl-line); }
.rl-feature-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--rl-accent); color: #fff; }
.rl-feature-icon .rl-ico { width: 24px; height: 24px; }
.rl-feature h3 { font-size: 1.1em; font-weight: 800; margin-bottom: 4px; }
.rl-feature p { color: var(--rl-muted); font-size: .95em; }

.rl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.rl-steps li { position: relative; text-align: center; padding: 0 12px; }
.rl-steps li:not(:last-child)::after { content: ""; position: absolute; top: 28px; inset-inline-start: calc(50% + 40px); width: calc(100% - 56px); border-top: 2px dashed var(--rl-line); }
.rl-step-n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--rl-primary); color: #fff; font-weight: 800; font-size: 1.3em; box-shadow: 0 0 0 8px color-mix(in srgb, var(--rl-primary) 10%, #fff); }
.rl-steps h3 { font-size: 1.1em; font-weight: 800; margin-bottom: 4px; }
.rl-steps p { color: var(--rl-muted); font-size: .95em; }

.rl-tests { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: linear-gradient(135deg, color-mix(in srgb, var(--rl-accent) 12%, #fff), color-mix(in srgb, var(--rl-primary) 8%, #fff)); border-radius: var(--rl-radius); padding: 28px 32px; }
.rl-tests p { color: var(--rl-muted); margin-top: 4px; }
.rl-tests-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.rl-faq { display: grid; gap: 12px; }
.rl-faq details { background: #fff; border: 1px solid var(--rl-line); border-radius: 14px; padding: 0 20px; }
.rl-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rl-faq summary::-webkit-details-marker { display: none; }
.rl-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--rl-soft); color: var(--rl-primary); font-size: 1.2em; font-weight: 700; transition: transform .2s; }
.rl-faq details[open] summary::after { transform: rotate(45deg); }
.rl-faq details p { color: var(--rl-muted); padding: 0 0 18px; }

.rl-final { background: linear-gradient(135deg, var(--rl-primary), color-mix(in srgb, var(--rl-primary) 55%, var(--rl-accent))); color: #fff; text-align: center; padding: 72px 0; }
.rl-final .rl-h2 { color: #fff; }
.rl-final p { color: rgba(255, 255, 255, .85); margin: 10px auto 26px; max-width: 560px; }
.rl-final-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.rl-foot { background: #0b1a2b; color: rgba(255, 255, 255, .78); padding: 30px 0 90px; font-size: .92em; }
.rl-foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.rl-foot strong { color: #fff; display: block; margin-bottom: 2px; }
.rl-foot-br { display: inline-flex; align-items: center; gap: 6px; }
.rl-foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.rl-foot a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.rl-foot a:hover { color: #fff; text-decoration: underline; }
.rl-copy { text-align: center; margin-top: 22px !important; color: rgba(255, 255, 255, .5); font-size: .88em; }

/* sticky mobile bar */
.rl-sticky { display: none; }

/* embed-only form */
.rl-embed { max-width: 560px; margin: 0 auto; }

/* domain lock */
.rl-locked { text-align: center; padding: 28px; color: var(--rl-muted); font-weight: 700; }

@media (max-width: 960px) {
  .rl-hero { padding: 36px 0 90px; }
  .rl-hero-in { grid-template-columns: 1fr; gap: 28px; }
  .rl-hero-copy { padding-top: 0; }
  .rl-programs { grid-template-columns: 1fr 1fr; }
  .rl-stats-in { grid-template-columns: 1fr 1fr; }
  .rl-stat:nth-child(3) { border-inline-start: 0; }
  .rl-stat:nth-child(n+3) { border-top: 1px solid var(--rl-line); }
}
@media (max-width: 640px) {
  .rl { font-size: 15.5px; }
  .rl-wrap { padding: 0 16px; }
  .rl-top-in { min-height: 60px; }
  .rl-top-phone span { display: none; }
  .rl-top-phone { width: 40px; height: 40px; justify-content: center; border-radius: 10px; background: var(--rl-soft); }
  .rl-brand { font-size: .95em; }
  .rl-brand-mark { width: 34px; height: 34px; }
  .rl-checks { grid-template-columns: 1fr; }
  .rl-card { padding: 22px 18px; }
  .rl-row2 { grid-template-columns: 1fr; gap: 0; }
  .rl-programs, .rl-features, .rl-steps { grid-template-columns: 1fr; }
  .rl-steps li:not(:last-child)::after { display: none; }
  .rl-sec { padding: 56px 0; }
  .rl-stat strong { font-size: 1.6em; }
  .rl-tests { padding: 22px 20px; }
  .rl-tests-btns, .rl-tests-btns .rl-btn { width: 100%; }
  .rl-landing .rl-sticky { display: flex; gap: 8px; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rl-line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); transform: translateY(110%); transition: transform .25s ease; }
  .rl-landing .rl-sticky.is-on { transform: none; }
  .rl-sticky .rl-sticky-main { flex: 1; }
  .rl-sticky .rl-sticky-wa, .rl-sticky .rl-sticky-call { width: 50px; padding: 0; flex: none; }
  .rl-sticky .rl-ico { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .rl *, .rl *::before, .rl *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .rl-sticky, .rl-top { display: none !important; }
}

/* spacing that must beat the .rl reset above */
.rl .rl-lead { margin-bottom: 24px; }
.rl .rl-form-sub { margin: 2px 0 18px; }
.rl .rl-sec-head p { margin-top: 8px; }
.rl .rl-final p { margin: 10px auto 26px; }
.rl .rl-done p { margin-bottom: 20px; }
.rl .rl-done h2 { margin-bottom: 8px; }
.rl .rl-done-tests p { margin-bottom: 10px; }
.rl .rl-tests p { margin-top: 4px; }
.rl .rl-program h3 { margin-bottom: 6px; }
.rl .rl-feature h3, .rl .rl-steps h3 { margin-bottom: 4px; }
.rl .rl-h1 { margin-bottom: 16px; }
.rl .rl-checks { margin-bottom: 30px; }
.rl .rl-done-tests .rl-btn { margin-bottom: 8px; }

.rl .rl-btn, .rl-top-phone { white-space: nowrap; }
@media (max-width: 960px) {
  /* phones/tablets: headline, then the form, then the supporting points */
  .rl-hero-copy { display: contents; }
  .rl-eyebrow { order: 1; justify-self: start; margin-bottom: 0; }
  .rl .rl-h1 { order: 2; margin-bottom: 0; }
  .rl .rl-lead { order: 3; margin-bottom: 0; }
  .rl-hero-form { order: 4; }
  .rl .rl-checks { order: 5; margin: 8px 0 0; }
  .rl-accr { order: 6; }
  .rl-hero-in { gap: 16px; }
}
@media (max-width: 640px) {
  .rl-brand { font-size: .88em; line-height: 1.4; }
  .rl-top-actions { gap: 8px; }
}
