/* ==========================================================================
   SOAR pages — «وضوح هندسي»
   One stylesheet for every page built by [soar_page]. Tokens come from the dashboard.
   ========================================================================== */

.sp {
    --sp-ink: var(--soar-black, #111);
    --sp-text: var(--soar-text, #252525);
    --sp-muted: var(--soar-muted, #666);
    --sp-orange: var(--soar-orange, #ff6a00);
    --sp-orange-d: var(--soar-orange-dark, #d95600);
    --sp-orange-s: var(--soar-orange-soft, #fff1e6);
    --sp-warm: #f7f5f1;
    --sp-line: rgba(17, 17, 17, .09);
    --sp-grid: rgba(17, 17, 17, .045);
    --sp-r: var(--soar-radius-md, 16px);
    --sp-r-lg: var(--soar-radius-lg, 22px);
    font-family: var(--soar-font-family, 'IBM Plex Sans Arabic', Tahoma, sans-serif);
    color: var(--sp-text);
    background: #fff;
    line-height: 1.8;
    overflow-x: clip;
}
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp img { max-width: 100%; height: auto; }
.sp-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sp-num { font-family: 'IBM Plex Sans', var(--soar-font-family); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* ---------- Sections ---------- */
.sp-sec { padding: clamp(52px, 7vw, 92px) 0; position: relative; }
.sp-sec.is-warm { background: var(--sp-warm); }
.sp-sec.is-dark { background: var(--sp-ink); color: rgba(255, 255, 255, .78); }
.sp-sec.is-dark::before, .sp-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--sp-grid) 1px, transparent 1px), linear-gradient(90deg, var(--sp-grid) 1px, transparent 1px);
    background-size: 44px 44px;
}
.sp-sec.is-dark::before { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.sp-sec > .sp-wrap, .sp-hero > .sp-wrap { position: relative; }

.sp-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 44px); }
.sp-head.is-center { margin-inline: auto; text-align: center; }
.sp-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--sp-orange-d); }
.sp-kicker::before { content: ""; width: 18px; height: 2px; background: var(--sp-orange); border-radius: 2px; }
.is-dark .sp-kicker { color: var(--sp-orange); }
.sp-h2 { margin: 0 0 12px; font-size: clamp(25px, 3.2vw, 38px); line-height: 1.35; font-weight: 600; color: var(--sp-ink); text-wrap: balance; }
.is-dark .sp-h2 { color: #fff; }
.sp-intro { margin: 0; font-size: clamp(16px, 1.5vw, 18px); color: var(--sp-muted); line-height: 1.9; }
.is-dark .sp-intro { color: rgba(255, 255, 255, .7); }

/* ---------- Buttons (dark text on orange) ---------- */
.sp-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background-color .2s ease, transform .2s ease, border-color .2s ease; }
.sp-btn:hover { transform: translateY(-1px); }
.sp-btn-primary { background: var(--sp-orange); color: var(--sp-ink); }
.sp-btn-primary:hover { background: var(--sp-orange-d); color: var(--sp-ink); }
.sp-btn-ghost { background: #fff; border-color: var(--sp-line); color: var(--sp-ink); }
.sp-btn-ghost:hover { border-color: var(--sp-ink); }
.is-dark .sp-btn-ghost, .sp-cta .sp-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.sp-btn-wa::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3a.5.5 0 0 0 0-.5l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.6 4c1.7.7 2.3.8 3.2.7a2.7 2.7 0 0 0 1.8-1.3 2.2 2.2 0 0 0 .1-1.3c0-.1-.2-.2-.4-.3Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3a.5.5 0 0 0 0-.5l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.6 4c1.7.7 2.3.8 3.2.7a2.7 2.7 0 0 0 1.8-1.3 2.2 2.2 0 0 0 .1-1.3c0-.1-.2-.2-.4-.3Z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Hero ---------- */
.sp-hero { position: relative; padding: clamp(34px, 5vw, 64px) 0 clamp(48px, 6vw, 84px); background: var(--sp-warm); border-bottom: 1px solid var(--sp-line); }
.sp-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .sp-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 56px; } }
.sp-crumbs { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--sp-muted); }
.sp-crumbs li { display: inline-flex; gap: 6px; align-items: center; }
.sp-crumbs li + li::before { content: "‹"; opacity: .45; }
.sp-crumbs a { color: inherit; text-decoration: none; }
.sp-crumbs a:hover { color: var(--sp-orange-d); }
.sp-h1 { margin: 0 0 16px; font-size: clamp(31px, 4.8vw, 54px); line-height: 1.25; font-weight: 600; color: var(--sp-ink); text-wrap: balance; }
.sp-h1 em { font-style: normal; color: var(--sp-orange-d); }
.sp-lead { margin: 0 0 26px; max-width: 640px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.9; color: var(--sp-muted); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.sp-chips li { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--sp-line); font-size: 14px; font-weight: 500; color: var(--sp-ink); }
.sp-hero-note { margin: 18px 0 0; font-size: 14px; color: var(--sp-muted); }

/* System map (hero visual): the customer journey as connected nodes */
.sp-map { position: relative; background: var(--sp-ink); color: #fff; border-radius: var(--sp-r-lg); padding: 26px 24px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); overflow: hidden; }
.sp-map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; }
.sp-map > * { position: relative; }
.sp-map-title { margin: 0 0 18px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.sp-map ol { margin: 0; padding: 0; list-style: none; position: relative; }
.sp-map ol::before { content: ""; position: absolute; top: 18px; bottom: 18px; inset-inline-start: 17px; width: 2px; background: linear-gradient(var(--sp-orange), rgba(255, 106, 0, .15)); }
.sp-map li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; padding: 8px 0; }
.sp-map li span.sp-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #1d1d1d; border: 2px solid var(--sp-orange); font-size: 13px; font-weight: 600; color: #fff; }
.sp-map li strong { display: block; font-size: 16px; font-weight: 600; color: #fff; line-height: 1.4; }
.sp-map li small { display: block; font-size: 13px; color: rgba(255, 255, 255, .6); line-height: 1.6; }
.sp-map li.is-focus span.sp-num { background: var(--sp-orange); color: var(--sp-ink); }

/* ---------- Cards ---------- */
.sp-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.sp-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.sp-card { position: relative; background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-r); padding: 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.sp-card:hover { border-color: rgba(17, 17, 17, .18); box-shadow: 0 16px 36px -20px rgba(0, 0, 0, .18); }
.is-dark .sp-card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); }
.sp-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.5; font-weight: 600; color: var(--sp-ink); }
.is-dark .sp-card h3 { color: #fff; }
.sp-card p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--sp-muted); }
.is-dark .sp-card p { color: rgba(255, 255, 255, .68); }
.sp-card .sp-idx { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--sp-orange-d); }
.is-dark .sp-card .sp-idx { color: var(--sp-orange); }
.sp-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sp-card li { position: relative; padding-inline-start: 18px; font-size: 14px; line-height: 1.75; color: var(--sp-text); }
.sp-card li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--sp-orange); }
.is-dark .sp-card li { color: rgba(255, 255, 255, .78); }

/* ---------- Steps (journey / process) ---------- */
.sp-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: sp; }
@media (min-width: 980px) {
    .sp-steps { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; }
    .sp-steps li { border-inline-start: 1px solid var(--sp-line); }
    .is-dark .sp-steps li { border-color: rgba(255, 255, 255, .12); }
    .sp-steps li:first-child { border-inline-start: 0; }
}
.sp-steps li { position: relative; padding: 4px 22px 4px 22px; }
@media (max-width: 979px) { .sp-steps li { padding: 18px 20px; background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-r); } .is-dark .sp-steps li { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); } }
.sp-steps .sp-num { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; margin-bottom: 14px; border-radius: 12px; background: var(--sp-orange-s); color: var(--sp-orange-d); font-weight: 600; font-size: 15px; }
.is-dark .sp-steps .sp-num { background: rgba(255, 106, 0, .14); color: var(--sp-orange); }
.sp-steps > li > strong { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 600; color: var(--sp-ink); }
.is-dark .sp-steps > li > strong { color: #fff; }
.sp-steps p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--sp-muted); }
.is-dark .sp-steps p { color: rgba(255, 255, 255, .66); }
.sp-steps .sp-here { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--sp-line); font-size: 14px; color: var(--sp-text); }
.is-dark .sp-steps .sp-here { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.85); }

/* ---------- Local section ---------- */
.sp-local { display: grid; gap: 32px; }
@media (min-width: 980px) { .sp-local { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: start; } }
.sp-prose p { margin: 0 0 1.1em; font-size: 17px; line-height: 1.95; }
.sp-prose p:last-child { margin-bottom: 0; }
.sp-prose strong { color: var(--sp-ink); }
.sp-facts { margin: 0; padding: 22px 24px; list-style: none; background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-r); display: grid; gap: 14px; }
.sp-facts li { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--sp-line); }
.sp-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.sp-facts span { font-size: 13px; color: var(--sp-muted); }
.sp-facts strong { font-size: 16px; font-weight: 600; color: var(--sp-ink); line-height: 1.6; }

/* ---------- Projects ---------- */
.sp-proj { display: flex; flex-direction: column; gap: 10px; }
.sp-proj-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-proj-meta span { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sp-orange-s); color: var(--sp-orange-d); }
.sp-proj-meta span + span { background: var(--sp-warm); color: var(--sp-muted); }
.sp-proj .sp-proj-result { margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: var(--sp-warm); font-size: 14px; color: var(--sp-text); }
.sp-proj a.sp-proj-link { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--sp-orange-d); text-decoration: none; }
.sp-proj a.sp-proj-link:hover { text-decoration: underline; }

/* ---------- Fit (for you / not for you) ---------- */
.sp-fit { display: grid; gap: 18px; }
@media (min-width: 860px) { .sp-fit { grid-template-columns: 1fr 1fr; } }
.sp-fit .sp-card.is-yes { border-top: 3px solid #1a9e5c; }
.sp-fit .sp-card.is-no { border-top: 3px solid #c9c4ba; }
.sp-fit .is-yes li::before { background: #1a9e5c; }
.sp-fit .is-no li::before { background: #b8b2a7; }

/* ---------- Compare table → cards on mobile ---------- */
.sp-compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-r); overflow: hidden; }
.sp-compare th, .sp-compare td { padding: 16px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--sp-line); font-size: 15px; line-height: 1.75; }
.sp-compare thead th { background: var(--sp-ink); color: #fff; font-weight: 600; }
.sp-compare tbody th { color: var(--sp-ink); font-weight: 600; width: 26%; }
.sp-compare td.is-us { background: var(--sp-orange-s); color: var(--sp-ink); }
.sp-compare tr:last-child > * { border-bottom: 0; }
@media (max-width: 760px) {
    .sp-compare, .sp-compare tbody, .sp-compare tr, .sp-compare th, .sp-compare td { display: block; width: 100%; }
    .sp-compare { border: 0; background: none; }
    .sp-compare thead { display: none; }
    .sp-compare tr { margin-bottom: 12px; background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-r); overflow: hidden; }
    .sp-compare tbody th { background: var(--sp-warm); width: 100%; }
    .sp-compare td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--sp-muted); margin-bottom: 2px; }
}

/* ---------- FAQ ---------- */
.sp-faq { display: grid; gap: 10px; max-width: 860px; }
.sp-faq details { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-r); }
.sp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 22px; font-size: 17px; font-weight: 600; color: var(--sp-ink); line-height: 1.6; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sp-warm); color: var(--sp-orange-d); font-size: 20px; line-height: 1; }
.sp-faq details[open] summary::after { content: "–"; background: var(--sp-orange); color: var(--sp-ink); }
.sp-faq details > div { padding: 0 22px 20px; font-size: 16px; line-height: 1.9; color: var(--sp-muted); }

/* ---------- Related links ---------- */
.sp-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.sp-links a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--sp-line); border-radius: var(--sp-r); background: #fff; text-decoration: none; transition: border-color .2s ease; }
.sp-links a:hover { border-color: var(--sp-ink); }
.sp-links strong { font-size: 16px; font-weight: 600; color: var(--sp-ink); }
.sp-links strong::after { content: " ←"; color: var(--sp-orange-d); }
.sp-links span { font-size: 14px; color: var(--sp-muted); line-height: 1.7; }

/* ---------- Final CTA ---------- */
.sp-cta { position: relative; overflow: hidden; display: grid; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: var(--sp-r-lg); background: var(--sp-ink); color: rgba(255, 255, 255, .75); }
.sp-cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to left, #000, transparent 75%); -webkit-mask-image: linear-gradient(to left, #000, transparent 75%); }
.sp-cta > * { position: relative; }
.sp-cta h2 { margin: 0 0 10px; color: #fff; font-size: clamp(24px, 3vw, 34px); line-height: 1.4; font-weight: 600; }
.sp-cta p { margin: 0; font-size: 17px; line-height: 1.9; }
@media (min-width: 900px) { .sp-cta { grid-template-columns: 1fr auto; align-items: center; } }

@media (max-width: 640px) {
    .sp-wrap { width: calc(100% - 28px); }
    .sp-btns .sp-btn { flex: 1 1 100%; }
    .sp-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .sp * { transition: none !important; } }
.sp-note { margin: 18px 0 0; font-size: 14px; color: var(--sp-muted); text-align: center; }
.sp-sec .soarv2-packages { margin: 0; }
.sp-card-link { display: inline-flex; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--sp-orange-d); text-decoration: none; }
.sp-card-link:hover { text-decoration: underline; }
.sp-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sp .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ---------- Stats strip ---------- */
.sp-stats-sec { padding: 0; }
.sp-stats-sec.is-dark, .sp-stats-sec.is-warm { padding: clamp(28px, 4vw, 44px) 0; }
.sp-stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-r-lg); overflow: hidden; }
.sp-stats > div { padding: 22px 24px; border-inline-start: 1px solid var(--sp-line); }
.sp-stats > div:first-child { border-inline-start: 0; }
.sp-stats dt { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.15; color: var(--sp-ink); text-align: right; }
.sp-stats dd { margin: 6px 0 0; font-size: 14px; line-height: 1.7; color: var(--sp-muted); }
.sp-stats-sec:not(.is-dark):not(.is-warm) { margin-top: -34px; position: relative; z-index: 2; }
.is-dark .sp-stats { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.is-dark .sp-stats > div { border-color: rgba(255, 255, 255, .1); }
.is-dark .sp-stats dt { color: #fff; }
.is-dark .sp-stats dd { color: rgba(255, 255, 255, .65); }
@media (max-width: 640px) { .sp-stats { grid-template-columns: 1fr 1fr; } .sp-stats > div { border-inline-start: 0; border-top: 1px solid var(--sp-line); } .sp-stats > div:nth-child(-n+2) { border-top: 0; } .sp-stats > div:nth-child(even) { border-inline-start: 1px solid var(--sp-line); } }

/* ---------- Featured case ---------- */
.sp-case { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-r-lg); padding: clamp(22px, 4vw, 40px); }
.is-dark .sp-case { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.sp-case-badge { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--sp-orange-s); color: var(--sp-orange-d); font-size: 12px; font-weight: 600; }
.sp-case-title { margin: 0 0 10px; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.45; font-weight: 600; color: var(--sp-ink); }
.is-dark .sp-case-title { color: #fff; }
.sp-case-text { margin: 0 0 22px; font-size: 17px; line-height: 1.9; color: var(--sp-muted); max-width: 820px; }
.sp-case-rows { margin: 0 0 24px; display: grid; gap: 10px; }
@media (min-width: 900px) { .sp-case-rows { grid-template-columns: 1fr 1fr; } }
.sp-case-rows > div { padding: 14px 16px; border-radius: 12px; background: var(--sp-warm); }
.is-dark .sp-case-rows > div { background: rgba(255,255,255,.05); }
.sp-case-rows dt { font-size: 13px; font-weight: 600; color: var(--sp-orange-d); margin-bottom: 4px; }
.is-dark .sp-case-rows dt { color: var(--sp-orange); }
.sp-case-rows dd { margin: 0; font-size: 15px; line-height: 1.8; color: var(--sp-text); }
.is-dark .sp-case-rows dd { color: rgba(255,255,255,.8); }
.sp-stats-case { margin-bottom: 4px; }
.sp-case-cards { margin-top: 18px; }
.sp-case-big { display: block; margin-bottom: 6px; font-size: 30px; font-weight: 600; color: var(--sp-ink); text-align: right; }
.is-dark .sp-case-big { color: #fff; }
.sp-case-note { margin: 16px 0 0; font-size: 13px; color: var(--sp-muted); }
.sp-stats-case dt { font-size: clamp(22px, 2.6vw, 30px); }
@media (min-width: 900px) {
    .sp-stats-case.sp-n6 { grid-template-columns: repeat(3, 1fr); }
    .sp-stats-case.sp-n6 > div:nth-child(n+4) { border-top: 1px solid var(--sp-line); }
    .sp-stats-case.sp-n6 > div:nth-child(4) { border-inline-start: 0; }
    .sp-case-cards.sp-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 899px) { .sp-case-cards.sp-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-draft-flag { margin: 0; padding: 12px 20px; background: #fff4dc; border-block: 2px dashed #e8a317; color: #6b4a00; font-size: 14px; font-weight: 600; text-align: center; }

/* ---------- 0.12: utility pages (contact, legal, thank-you, tools) ---------- */
@media (min-width: 980px) { .sp-hero-grid.is-single { grid-template-columns: minmax(0, 820px); } }

/* Hero side panel (dark, same family as the system map) */
.sp-panel-rows { margin: 0; display: grid; gap: 2px; }
.sp-panel-rows > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sp-panel-rows > div:last-child { border-bottom: 0; }
.sp-panel-rows dt { font-size: 14px; color: rgba(255, 255, 255, .6); }
.sp-panel-rows dd { margin: 0; font-size: 15px; font-weight: 600; color: #fff; text-align: left; }
.sp-panel-rows a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 106, 0, .55); }
.sp-panel-rows a:hover { color: var(--sp-orange); }
.sp-panel-note { margin: 14px 0 0; font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .6); }

/* Long documents: sticky contents + numbered parts */
.sp-doc { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .sp-doc { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; } }
.sp-toc { background: var(--sp-warm); border: 1px solid var(--sp-line); border-radius: var(--sp-r); padding: 20px; }
@media (min-width: 980px) { .sp-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; } }
.sp-toc > p:first-child { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--sp-muted); }
.sp-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.sp-toc li { counter-increment: toc; }
.sp-toc a { display: grid; grid-template-columns: 24px 1fr; gap: 6px; padding: 7px 8px; border-radius: 8px; font-size: 14px; line-height: 1.6; color: var(--sp-text); text-decoration: none; }
.sp-toc a::before { content: counter(toc) "."; color: var(--sp-muted); font-variant-numeric: tabular-nums; }
.sp-toc a:hover { background: #fff; color: var(--sp-orange-d); }
.sp-toc-meta { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--sp-line); font-size: 13px; color: var(--sp-muted); }
.sp-doc-body { max-width: 760px; }
.sp-doc-part { padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid var(--sp-line); scroll-margin-top: 100px; }
.sp-doc-part:last-child { border-bottom: 0; margin-bottom: 0; }
.sp-doc-part h2 { margin: 0 0 14px; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.5; font-weight: 600; color: var(--sp-ink); }
.sp-doc-part h2 .sp-num { color: var(--sp-orange-d); }
.sp-doc-part p { margin: 0 0 14px; font-size: 16px; line-height: 2; color: var(--sp-text); }
.sp-doc-part ul { margin: 0 0 14px; padding: 0 20px 0 0; display: grid; gap: 6px; }
.sp-doc-part li { font-size: 16px; line-height: 1.9; color: var(--sp-text); }
.sp-doc-part li::marker { color: var(--sp-orange); }
.sp-doc-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 4px 0 16px; }
@media (min-width: 640px) { .sp-doc-grid { grid-template-columns: 1fr 1fr; } }
.sp-doc-grid > div { background: var(--sp-warm); border: 1px solid var(--sp-line); border-radius: 12px; padding: 16px; }
.sp-doc-grid strong { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--sp-ink); }
.sp-doc-grid span { display: block; font-size: 14px; line-height: 1.85; color: var(--sp-muted); }
.sp-doc-note { padding: 14px 16px; border-inline-start: 3px solid var(--sp-orange); background: var(--sp-orange-s); border-radius: 8px; }
.sp-doc-contact { margin: 6px 0 0; display: grid; gap: 0; border: 1px solid var(--sp-line); border-radius: 12px; overflow: hidden; }
.sp-doc-contact > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--sp-line); background: #fff; }
.sp-doc-contact > div:last-child { border-bottom: 0; }
.sp-doc-contact dt { font-size: 14px; color: var(--sp-muted); }
.sp-doc-contact dd { margin: 0; font-size: 15px; font-weight: 600; }
.sp-doc-contact a { color: var(--sp-ink); text-decoration: none; }
.sp-doc-contact a:hover { color: var(--sp-orange-d); }

/* Contact: form + direct channels */
.sp-contact { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .sp-contact { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; } }
.sp-contact-form { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-r-lg); padding: clamp(22px, 3.5vw, 36px); box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .25); }
.sp-contact-form .sp-head { margin-bottom: 20px; }
.sp-contact-side { display: grid; gap: 16px; }
@media (min-width: 980px) { .sp-contact-side { position: sticky; top: 96px; } }
.sp-contact-side h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--sp-ink); }
.sp-contact-legal, .sp-contact-note { margin: 0; font-size: 14px; line-height: 1.9; color: var(--sp-muted); }
.sp-contact-legal strong { color: var(--sp-ink); font-weight: 600; }
.sp-form { display: grid; gap: 16px; }
.sp-form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .sp-form-row { grid-template-columns: 1fr 1fr; } }
.sp-field { display: grid; gap: 6px; }
.sp-field label { font-size: 14px; font-weight: 600; color: var(--sp-ink); }
.sp-field label small { font-weight: 400; color: var(--sp-muted); }
.sp-field input, .sp-field select, .sp-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(17, 17, 17, .18); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--sp-ink); transition: border-color .15s ease, box-shadow .15s ease; }
.sp-field textarea { min-height: 130px; resize: vertical; line-height: 1.8; }
.sp-field input:focus, .sp-field select:focus, .sp-field textarea:focus { outline: none; border-color: var(--sp-orange); box-shadow: 0 0 0 3px rgba(255, 106, 0, .18); }
.sp-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.8; color: var(--sp-muted); }
.sp-consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--sp-orange); flex: 0 0 auto; }
.sp-consent a { color: var(--sp-ink); }
.sp-form-error { margin: 0; min-height: 0; font-size: 14px; font-weight: 600; color: #b42318; }
.sp-form-error:empty { display: none; }
.sp-form .sp-btn { justify-self: start; }
.sp-form-done { padding: 18px; border-radius: 12px; background: var(--sp-orange-s); border: 1px solid rgba(255, 106, 0, .25); }
.sp-form-done strong { display: block; font-size: 16px; color: var(--sp-ink); }
.sp-form-done p { margin: 4px 0 12px; font-size: 14px; color: var(--sp-text); }
@media (max-width: 639px) { .sp-form .sp-btn { justify-self: stretch; } }

/* Tool status label on cards */
.sp-card .sp-tag { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--sp-orange-s); color: var(--sp-orange-d); }

/* ---------- 0.13: tools and booking inside the page design ---------- */
.sp-tool { position: relative; }
.sp-tool, .sp-tool *:not(svg):not(path):not(i) { font-family: var(--soar-font-family, 'IBM Plex Sans Arabic', Tahoma, sans-serif) !important; }
.sp-tool-sec > .sp-wrap > .sp-head { margin-bottom: 24px; }

/* Booking: the form section sits inside our section */
.sp-tool--booking .soar-gc-v2-embedded { background: none; }
.sp-tool--booking .soargc2-section { padding: 0 !important; background: none !important; }
.sp-tool--booking .soar-wrap { width: 100% !important; max-width: none !important; }
.sp-tool--booking .soargc2-form-shell { border-radius: var(--sp-r-lg) !important; }

/* Project compass: our hero replaces the tool's own */
.sp-tool--compass #soarCompassRoot .sc-hero { display: none !important; }
.sp-tool--compass #soarCompassRoot .sc-steps { border-top: 1px solid #e5e5e5 !important; border-radius: var(--sp-r-lg) var(--sp-r-lg) 0 0; }
.sp-tool--compass #soarCompassRoot { max-width: 980px; margin-inline: auto; }

/* AI opportunity finder */
.sp-tool--aif .soar-aif-page { padding: 0 !important; background: none !important; min-height: 0 !important; }
.sp-tool--aif .soar-aif .aif-hero { display: none !important; }
.sp-tool--aif .soar-aif .aif-panel { border-radius: var(--sp-r-lg) !important; }

/* Google Ads headlines: no full-bleed, no second hero, no second CTA */
.sp-tool--gads #soarGadsPage, .sp-tool--gads #soarGads { width: auto !important; max-width: none !important; margin: 0 !important; background: none !important; padding: 0 !important; overflow: visible !important; }
.sp-tool--gads #soarGads .sg-container { width: 100% !important; }
.sp-tool--gads #soarGads .sg-hero, .sp-tool--gads #soarGads .sg-final-cta { display: none !important; }
.sp-tool--gads #soarGads .sg-section-head { margin-top: 0 !important; }

/* Competitor price extractor */
.sp-tool--cpe #soarcpe .hero { display: none !important; }
.sp-tool--cpe #soarcpe { background: none !important; padding: 0 !important; }

/* Discovery */
.sp-tool--discovery #soar-dq { background: none !important; padding-top: 0 !important; }

/* Site search (search + 404) */
.sp-search { display: flex; gap: 10px; max-width: 720px; }
.sp-search input { flex: 1; min-width: 0; min-height: 54px; padding: 12px 18px; border: 1px solid rgba(17, 17, 17, .18); border-radius: 999px; font: inherit; font-size: 16px; background: #fff; color: var(--sp-ink); }
.sp-search input:focus { outline: none; border-color: var(--sp-orange); box-shadow: 0 0 0 3px rgba(255, 106, 0, .18); }
.sp-search .sp-btn { min-height: 54px; }
.sp-search-count { margin: 22px 0 12px; font-size: 15px; color: var(--sp-muted); }
.sp-results { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 860px; }
.sp-results a { display: grid; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-r); text-decoration: none; transition: border-color .2s ease; }
.sp-results a:hover { border-color: var(--sp-orange); }
.sp-results-type { font-size: 12px; font-weight: 600; color: var(--sp-orange-d); }
.sp-results strong { font-size: 18px; font-weight: 600; color: var(--sp-ink); line-height: 1.5; }
.sp-results span:not(.sp-results-type) { font-size: 14px; line-height: 1.8; color: var(--sp-muted); }

/* Founder (من نحن) */
@media (min-width: 980px) { .sp-founder:has(.sp-founder-photo) { grid-template-columns: 220px minmax(0, 1.2fr) minmax(0, .8fr); } }
.sp-founder-photo { width: 220px; max-width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--sp-r-lg); border: 1px solid var(--sp-line); }
.sp-facts a { color: var(--sp-ink); text-decoration: underline; text-decoration-color: rgba(255, 106, 0, .5); text-underline-offset: 4px; }
