/* ==========================================================
   Pharmacy platform landing page (campaign) — page-specific styles
   Works with assets/styles.css tokens (dark + light themes, RTL)
   ========================================================== */

:root {
    --rx: #0ea5a0;              /* pharmacy teal */
    --rx-deep: #0b7f7b;
    --rx-soft: #5eead4;
    --rx-ink: #042f2e;
    --ok: #10b981;
    --warn: #f59e0b;
    --warn-text: #fbbf24;
    --danger: #ef4444;
    --violet: #7c6ad6;
    --rx-grad: linear-gradient(135deg, #307fc2 0%, #0ea5a0 100%);
    --rx-title-grad: linear-gradient(120deg, #4a9bd9 0%, #5eead4 45%, #86efac 100%);
    --card-strong: #0f1729;
    --rx-glow: rgba(14, 165, 160, 0.28);
    --rx-tint: rgba(14, 165, 160, 0.10);
}
:root[data-theme="light"] {
    --rx: #0b8f8a;
    --rx-soft: #0ea5a0;
    --warn-text: #b45309;
    --rx-title-grad: linear-gradient(120deg, #307fc2 0%, #0b8f8a 45%, #0b7f7b 100%);
    --card-strong: #ffffff;
    --rx-glow: rgba(14, 165, 160, 0.18);
    --rx-tint: rgba(14, 165, 160, 0.08);
}

.lp .section-eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--rx-grad);
}

/* ---------------- HERO ---------------- */
.rx-hero {
    position: relative;
    z-index: 2;
    padding: 8.5rem 3rem 4.5rem;
    overflow: hidden;
}
.rx-hero::before,
.rx-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.rx-hero::before {
    top: -14%;
    inset-inline-start: -8%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(48, 127, 194, 0.26), transparent 62%);
    animation: rx-blob-a 20s ease-in-out infinite;
}
.rx-hero::after {
    bottom: -24%;
    inset-inline-end: 0%;
    width: 660px;
    height: 660px;
    background: radial-gradient(circle, rgba(14, 165, 160, 0.24), transparent 62%);
    animation: rx-blob-b 26s ease-in-out infinite;
}
:root[data-theme="light"] .rx-hero::before { background: radial-gradient(circle, rgba(48, 127, 194, 0.14), transparent 62%); }
:root[data-theme="light"] .rx-hero::after { background: radial-gradient(circle, rgba(14, 165, 160, 0.13), transparent 62%); }
@keyframes rx-blob-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.12); } }
@keyframes rx-blob-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px,-50px) scale(1.14); } }

.rx-hero-grid {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 3.5rem;
    align-items: center;
}
.rx-hero-copy { display: flex; flex-direction: column; gap: 1.35rem; align-items: flex-start; }

/* Badge: 7 systems */
.rx-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1rem 0.5rem 0.65rem;
    border-radius: 100px;
    background: var(--rx-tint);
    border: 1px solid rgba(14, 165, 160, 0.34);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.rx-badge-ic {
    width: 24px; height: 24px; flex: none;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--rx-grad);
    color: #fff;
}
.rx-badge-ic svg { width: 14px; height: 14px; }
.rx-badge b { color: var(--rx-soft); font-weight: 800; }

/* Top ribbon */
.rx-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.95rem 0.45rem 0.45rem;
    border-radius: 100px;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .25s, transform .25s;
}
.rx-ribbon:hover { border-color: rgba(245, 158, 11, 0.6); transform: translateY(-1px); }
.rx-ribbon .rr-tag {
    background: var(--warn);
    color: #1a1205;
    font-weight: 900;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.55rem;
    border-radius: 100px;
}
.rx-ribbon .rr-arrow { color: var(--warn-text); font-weight: 900; }

.rx-title {
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    font-weight: 900;
    line-height: 1.07;
    letter-spacing: -0.028em;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.rx-title-grad {
    background: var(--rx-title-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.rx-sub {
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 580px;
}
.rx-checks {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.1rem;
    width: 100%;
    max-width: 580px;
}
.rx-checks li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}
.rx-checks svg { width: 17px; height: 17px; flex: none; color: var(--rx); }

/* ---------------- HERO VISUAL: ops console ---------------- */
.rx-visual { position: relative; min-height: 540px; }

.console {
    position: relative;
    z-index: 2;
    background: var(--card-strong);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.42), 0 0 0 1px rgba(14,165,160,0.08);
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
    transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
:root[data-theme="light"] .console {
    border-color: rgba(10,15,28,0.10);
    box-shadow: 0 26px 60px rgba(10,15,28,0.16);
}
.rx-visual:hover .console { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }

.cns-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.62rem 0.9rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
:root[data-theme="light"] .cns-bar { background: #f3f6fb; border-bottom-color: rgba(10,15,28,0.08); }
.cns-dots { display: flex; gap: 5px; }
.cns-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.2); }
:root[data-theme="light"] .cns-dots i { background: rgba(10,15,28,0.16); }
.cns-url {
    flex: 1;
    font-family: 'Inter', monospace;
    font-size: 0.68rem;
    color: #94a3b8;
    background: rgba(0,0,0,0.25);
    border-radius: 7px;
    padding: 0.3rem 0.6rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
}
:root[data-theme="light"] .cns-url { background: #fff; color: #64748b; border: 1px solid rgba(10,15,28,0.07); }
.cns-live {
    display: inline-flex;
    align-items: center;
    gap: 0.33rem;
    font-size: 0.63rem;
    font-weight: 800;
    color: var(--ok);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.cns-live i {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
    animation: rx-pulse 1.9s infinite;
}
@keyframes rx-pulse { 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

.cns-body { padding: 0.95rem; }
.cns-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; margin-bottom: 0.85rem; }
.cns-kpi {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 11px;
    padding: 0.55rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
:root[data-theme="light"] .cns-kpi { background: #f8fafc; border-color: rgba(10,15,28,0.07); }
.cns-kpi .k-l { font-size: 0.6rem; color: #94a3b8; font-weight: 600; letter-spacing: 0.01em; }
.cns-kpi b { font-size: 0.98rem; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.cns-kpi em { font-style: normal; font-size: 0.6rem; font-weight: 800; color: var(--ok); }
.cns-kpi em.warn { color: var(--warn-text); }
.cns-kpi em.rx { color: var(--rx-soft); }

/* branch load bars */
.cns-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0.7rem; }
.cns-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 0.65rem 0.7rem;
}
:root[data-theme="light"] .cns-panel { background: #f8fafc; border-color: rgba(10,15,28,0.07); }
.cns-panel-h {
    font-size: 0.62rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.55rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cns-panel-h span { color: var(--rx-soft); text-transform: none; letter-spacing: 0; font-weight: 700; }

.bl-row { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; font-size: 0.65rem; }
.bl-row:last-child { margin-bottom: 0; }
.bl-row b { font-weight: 700; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-track { height: 6px; border-radius: 100px; background: rgba(255,255,255,0.08); overflow: hidden; }
:root[data-theme="light"] .bl-track { background: rgba(10,15,28,0.08); }
.bl-fill {
    height: 100%;
    border-radius: 100px;
    background: var(--rx-grad);
    width: 0;
    animation: bl-grow 1.4s cubic-bezier(.22,.61,.36,1) forwards;
    animation-delay: calc(var(--d, 0) * 0.14s);
}
.bl-fill.is-hot { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
@keyframes bl-grow { to { width: var(--w, 50%); } }
.bl-row em { font-style: normal; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* driver list */
.dv-row {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0.33rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.07);
    font-size: 0.65rem;
}
:root[data-theme="light"] .dv-row { border-bottom-color: rgba(10,15,28,0.07); }
.dv-row:last-child { border-bottom: 0; }
.dv-av {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--rx-grad);
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 0.56rem;
}
.dv-row b { font-weight: 700; color: var(--text-secondary); }
.dv-st {
    font-weight: 800;
    font-size: 0.58rem;
    padding: 0.14rem 0.42rem;
    border-radius: 100px;
    letter-spacing: 0.02em;
}
.st-away { background: rgba(14,165,160,0.16); color: var(--rx-soft); }
.st-free { background: rgba(148,163,184,0.16); color: #94a3b8; }
.st-done { background: rgba(16,185,129,0.16); color: var(--ok); }
:root[data-theme="light"] .st-away { color: var(--rx-deep); }

/* order rows */
.cns-rows { display: flex; flex-direction: column; gap: 0.38rem; margin-top: 0.7rem; }
.cns-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 9px;
    padding: 0.42rem 0.6rem;
    font-size: 0.66rem;
}
:root[data-theme="light"] .cns-row { background: #fff; border-color: rgba(10,15,28,0.07); }
.cns-row b { font-weight: 800; color: var(--text-primary); font-family: 'Inter', monospace; direction: ltr; }
.cns-row .c-cust { color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cns-row .num { font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; direction: ltr; }
.cns-row.is-new { animation: rx-slide-in .7s cubic-bezier(.22,.61,.36,1); border-color: rgba(14,165,160,0.4); }
@keyframes rx-slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.st { font-weight: 800; font-size: 0.58rem; padding: 0.16rem 0.44rem; border-radius: 100px; white-space: nowrap; }
.st-rx { background: rgba(124,106,214,0.18); color: #b4a6f5; }
.st-ok { background: rgba(16,185,129,0.16); color: var(--ok); }
.st-pay { background: rgba(48,127,194,0.18); color: #7db8ea; }
:root[data-theme="light"] .st-rx { color: #5b49b5; }
:root[data-theme="light"] .st-pay { color: #1e5a8a; }

/* driver phone */
.rx-phone {
    position: absolute;
    z-index: 3;
    inset-inline-end: -14px;
    bottom: -22px;
    width: 188px;
    background: #0b1222;
    border: 7px solid #1a2436;
    border-radius: 26px;
    box-shadow: 0 26px 54px rgba(0,0,0,0.5);
    overflow: hidden;
    animation: rx-float 7s ease-in-out infinite;
}
:root[data-theme="light"] .rx-phone { border-color: #27354d; }
@keyframes rx-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.rx-phone-notch { width: 66px; height: 16px; background: #1a2436; border-radius: 0 0 11px 11px; margin: 0 auto; }
.rx-phone-screen { padding: 0.7rem 0.72rem 0.8rem; font-size: 0.66rem; }
.rx-phone-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.65rem; }
.rx-phone-head b { color: #fff; font-size: 0.72rem; font-weight: 800; }
.rx-phone-av { width: 24px; height: 24px; border-radius: 50%; background: var(--rx-grad); display: grid; place-items: center; font-weight: 800; font-size: 0.6rem; color: #fff; }
.rx-phone-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 11px;
    padding: 0.58rem;
    margin-bottom: 0.45rem;
}
.rx-phone-card .lbl { display: block; color: #94a3b8; font-size: 0.58rem; font-weight: 600; }
.rx-phone-card .val { display: block; color: #fff; font-weight: 800; font-size: 0.78rem; font-family: 'Inter', monospace; direction: ltr; }
.rx-phone-line { display: flex; justify-content: space-between; gap: 0.4rem; padding: 0.26rem 0; color: #cbd5e1; font-size: 0.6rem; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.rx-phone-line:last-child { border-bottom: 0; }
.rx-phone-line b { color: #fff; }
.rx-phone-eta { display: flex; align-items: center; gap: 0.3rem; color: var(--rx-soft); font-weight: 800; font-size: 0.58rem; margin-top: 0.2rem; }
.rx-phone-btn {
    display: block;
    text-align: center;
    background: var(--rx-grad);
    color: #fff;
    font-weight: 800;
    border-radius: 9px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.68rem;
}

/* toasts */
.rx-toast {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--card-strong);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 13px;
    padding: 0.6rem 0.8rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.42);
    font-size: 0.72rem;
    max-width: 252px;
}
:root[data-theme="light"] .rx-toast { border-color: rgba(10,15,28,0.1); box-shadow: 0 16px 36px rgba(10,15,28,0.14); }
.rx-toast .ti {
    width: 28px; height: 28px; flex: none;
    border-radius: 9px;
    display: grid; place-items: center;
    background: rgba(16,185,129,0.16);
    color: var(--ok);
}
.rx-toast .ti svg { width: 15px; height: 15px; }
.rx-toast .ti.is-rx { background: rgba(124,106,214,0.18); color: #b4a6f5; }
:root[data-theme="light"] .rx-toast .ti.is-rx { color: #5b49b5; }
.rx-toast b { display: block; font-size: 0.73rem; font-weight: 800; color: var(--text-primary); line-height: 1.3; }
.rx-toast small { display: block; font-size: 0.64rem; color: var(--text-muted); margin-top: 0.08rem; }
.toast-rx { top: -16px; inset-inline-start: -30px; animation: rx-float 8s ease-in-out infinite; }
.toast-sync { bottom: 128px; inset-inline-start: -46px; animation: rx-float 9s ease-in-out infinite 1.2s; }

/* ---------------- PAIN / BEFORE-AFTER ---------------- */
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.pain-card {
    border-radius: 20px;
    padding: 1.85rem;
    border: 1px solid var(--border);
    background: var(--surface);
    position: relative;
    overflow: hidden;
}
.pain-card.is-before { border-color: rgba(239,68,68,0.24); }
.pain-card.is-after { border-color: rgba(14,165,160,0.3); background: var(--rx-tint); }
.pain-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1.3rem; }
.pain-chip {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.7rem;
    border-radius: 100px;
}
.is-before .pain-chip { background: rgba(239,68,68,0.14); color: #fca5a5; }
.is-after .pain-chip { background: rgba(14,165,160,0.18); color: var(--rx-soft); }
:root[data-theme="light"] .is-before .pain-chip { color: #b91c1c; }
:root[data-theme="light"] .is-after .pain-chip { color: var(--rx-deep); }
.pain-head h3 { font-size: 1.12rem; font-weight: 800; }
.pain-list { list-style: none; display: flex; flex-direction: column; gap: 0.78rem; }
.pain-list li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.93rem; line-height: 1.55; color: var(--text-secondary); }
.pain-list li svg { width: 17px; height: 17px; flex: none; margin-top: 0.18rem; }
.is-before .pain-list li svg { color: var(--danger); }
.is-after .pain-list li svg { color: var(--rx); }
.is-after .pain-list li { color: var(--text-primary); font-weight: 500; }

/* ---------------- SYSTEMS GRID (7 systems) ---------------- */
.sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.sys-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.6rem 1.5rem;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.22,.61,.36,1), border-color .3s, box-shadow .3s;
}
.sys-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--rx-grad);
    transform: scaleX(0);
    transform-origin: var(--origin, left);
    transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
body[dir="rtl"] .sys-card::before { transform-origin: right; }
.sys-card:hover { transform: translateY(-6px); border-color: rgba(14,165,160,0.35); box-shadow: 0 22px 46px rgba(0,0,0,0.26); }
.sys-card:hover::before { transform: scaleX(1); }
:root[data-theme="light"] .sys-card:hover { box-shadow: 0 20px 40px rgba(10,15,28,0.1); }

.sys-top { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }
.sys-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: var(--rx-tint);
    border: 1px solid rgba(14,165,160,0.26);
    color: var(--rx);
    flex: none;
}
.sys-icon svg { width: 23px; height: 23px; }
.sys-num {
    font-size: 0.68rem;
    font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}
.sys-card h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.3; }
.sys-card .sys-role {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rx-soft);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-top: -0.35rem;
}
:root[data-theme="light"] .sys-card .sys-role { color: var(--rx-deep); }
.sys-card > p { font-size: 0.92rem; line-height: 1.65; color: var(--text-secondary); }
.sys-feats { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; margin-top: auto; padding-top: 0.3rem; }
.sys-feats li {
    position: relative;
    padding-inline-start: 1.1rem;
    font-size: 0.855rem;
    line-height: 1.5;
    color: var(--text-secondary);
}
.sys-feats li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.48rem;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--rx);
}
.sys-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.33rem;
    padding-top: 0.85rem;
    margin-top: 0.3rem;
    border-top: 1px solid var(--border);
}
.sys-tech span {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.2rem 0.55rem;
}

/* ---------------- ORDER JOURNEY ---------------- */
.journey { max-width: 1120px; margin: 0 auto; }
.jrn-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    position: relative;
    margin-bottom: 1.9rem;
}
.jrn-track::before {
    content: '';
    position: absolute;
    top: 21px;
    inset-inline: 6%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.jrn-step {
    position: relative;
    z-index: 1;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    font-family: inherit;
    text-align: center;
}
.jrn-dot {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--primary);
    border: 2px solid var(--border);
    color: var(--text-muted);
    font-weight: 900;
    font-size: 0.85rem;
    transition: all .35s cubic-bezier(.22,.61,.36,1);
}
.jrn-dot svg { width: 19px; height: 19px; }
.jrn-step b {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.35;
    transition: color .3s;
}
.jrn-step:hover .jrn-dot { border-color: rgba(14,165,160,0.5); color: var(--rx); }
.jrn-step[aria-selected="true"] .jrn-dot {
    background: var(--rx-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 0 5px var(--rx-tint);
    transform: scale(1.06);
}
.jrn-step[aria-selected="true"] b { color: var(--text-primary); }
.jrn-step.is-done .jrn-dot { border-color: rgba(14,165,160,0.45); color: var(--rx); }

.jrn-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.9rem 2rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
    min-height: 236px;
}
.jrn-body h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.6rem; }
.jrn-body > p { color: var(--text-secondary); line-height: 1.7; font-size: 0.97rem; margin-bottom: 1.1rem; }
.jrn-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.jrn-meta span {
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    background: var(--rx-tint);
    border: 1px solid rgba(14,165,160,0.26);
    color: var(--rx-soft);
}
:root[data-theme="light"] .jrn-meta span { color: var(--rx-deep); }
.jrn-rules { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.jrn-rules li {
    display: flex; gap: 0.6rem; align-items: flex-start;
    font-size: 0.875rem; line-height: 1.55; color: var(--text-secondary);
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
}
.jrn-rules li svg { width: 16px; height: 16px; flex: none; margin-top: 0.15rem; color: var(--rx); }
.jrn-fade { animation: jrn-in .45s cubic-bezier(.22,.61,.36,1); }
@keyframes jrn-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.jrn-hint { text-align: center; color: var(--text-muted); font-size: 0.82rem; margin-top: 1rem; }

/* ---------------- DASHBOARD TABS ---------------- */
.dsh-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.9rem;
}
.dsh-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    border-radius: 100px;
    padding: 0.62rem 1.25rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .28s;
}
.dsh-tab svg { width: 16px; height: 16px; }
.dsh-tab:hover { border-color: var(--border-hover); color: var(--text-primary); }
.dsh-tab[aria-selected="true"] {
    background: var(--rx-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px var(--rx-glow);
}

.dsh-stage {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 2.5rem;
    align-items: center;
}
.dsh-copy h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.dsh-role {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--rx-soft);
    margin-bottom: 0.55rem;
}
:root[data-theme="light"] .dsh-role { color: var(--rx-deep); }
.dsh-copy > p { color: var(--text-secondary); line-height: 1.75; font-size: 1rem; margin-bottom: 1.3rem; }
.dsh-caps { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.dsh-caps li {
    display: flex; gap: 0.5rem; align-items: flex-start;
    font-size: 0.87rem; line-height: 1.5; color: var(--text-secondary);
}
.dsh-caps li svg { width: 15px; height: 15px; flex: none; margin-top: 0.2rem; color: var(--rx); }

/* mock dashboard window */
.dsh-mock {
    background: var(--card-strong);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(0,0,0,0.36);
}
:root[data-theme="light"] .dsh-mock { border-color: rgba(10,15,28,0.1); box-shadow: 0 20px 44px rgba(10,15,28,0.12); }
.dsh-mock-bar {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
}
:root[data-theme="light"] .dsh-mock-bar { background: #f3f6fb; border-bottom-color: rgba(10,15,28,0.08); }
.dsh-mock-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rx); flex: none; }
.dsh-mock-body { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.7rem; min-height: 290px; }
.dsh-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
.dsh-mock-kpis > div {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 11px;
    padding: 0.6rem;
}
:root[data-theme="light"] .dsh-mock-kpis > div { background: #f8fafc; border-color: rgba(10,15,28,0.07); }
.dsh-mock-kpis span { display: block; font-size: 0.6rem; color: #94a3b8; font-weight: 600; }
.dsh-mock-kpis b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; margin-top: 0.12rem; }
.dsh-mock-kpis em { font-style: normal; font-size: 0.6rem; font-weight: 800; color: var(--ok); }

.dsh-table { display: flex; flex-direction: column; gap: 0.35rem; }
.dsh-tr {
    display: grid;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 9px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.66rem;
    color: var(--text-secondary);
}
:root[data-theme="light"] .dsh-tr { background: #fff; border-color: rgba(10,15,28,0.07); }
.dsh-tr.is-head {
    background: none;
    border: 0;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding-bottom: 0.1rem;
}
.dsh-tr b { color: var(--text-primary); font-weight: 800; font-family: 'Inter', monospace; direction: ltr; }
.dsh-tr .num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-primary); direction: ltr; }
.dsh-fade { animation: jrn-in .4s cubic-bezier(.22,.61,.36,1); }

/* ---------------- FLEET ---------------- */
.fleet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.fleet-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.7rem; }
.fleet-feat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.15rem 1.2rem;
    transition: border-color .28s, transform .28s;
}
.fleet-feat:hover { border-color: rgba(14,165,160,0.35); transform: translateY(-3px); }
.fleet-feat-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--rx-tint); color: var(--rx); margin-bottom: 0.7rem; }
.fleet-feat-ic svg { width: 17px; height: 17px; }
.fleet-feat h4 { font-size: 0.97rem; font-weight: 800; margin-bottom: 0.33rem; }
.fleet-feat p { font-size: 0.845rem; line-height: 1.55; color: var(--text-secondary); }

/* dispatch board */
.dispatch {
    background: var(--card-strong);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: 0 24px 56px rgba(0,0,0,0.36);
}
:root[data-theme="light"] .dispatch { border-color: rgba(10,15,28,0.1); box-shadow: 0 20px 44px rgba(10,15,28,0.12); }
.dispatch-h {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-primary);
}
.dispatch-h .cns-live { font-size: 0.6rem; }
.dispatch-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.dispatch-col {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 0.6rem 0.55rem;
    min-height: 220px;
}
:root[data-theme="light"] .dispatch-col { background: #f8fafc; border-color: rgba(10,15,28,0.07); }
.dispatch-col-h {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.55rem;
    display: flex; justify-content: space-between; align-items: center;
}
.dispatch-col-h i { font-style: normal; background: rgba(255,255,255,0.08); border-radius: 100px; padding: 0.08rem 0.38rem; color: var(--text-primary); }
:root[data-theme="light"] .dispatch-col-h i { background: rgba(10,15,28,0.07); }
.disp-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.5rem 0.55rem;
    margin-bottom: 0.42rem;
    font-size: 0.63rem;
    animation: jrn-in .5s cubic-bezier(.22,.61,.36,1) backwards;
    animation-delay: calc(var(--d, 0) * 0.1s);
}
:root[data-theme="light"] .disp-card { background: #fff; border-color: rgba(10,15,28,0.08); }
.disp-card b { display: block; color: var(--text-primary); font-weight: 800; font-family: 'Inter', monospace; direction: ltr; margin-bottom: 0.18rem; }
.disp-card span { display: block; color: #94a3b8; line-height: 1.45; }
.disp-card .disp-tag {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.56rem;
    font-weight: 800;
    padding: 0.12rem 0.4rem;
    border-radius: 100px;
}
.disp-tag.t-int { background: rgba(14,165,160,0.18); color: var(--rx-soft); }
.disp-tag.t-smsa { background: rgba(124,106,214,0.18); color: #b4a6f5; }
.disp-tag.t-pick { background: rgba(245,158,11,0.16); color: var(--warn-text); }
:root[data-theme="light"] .disp-tag.t-int { color: var(--rx-deep); }
:root[data-theme="light"] .disp-tag.t-smsa { color: #5b49b5; }

/* ---------------- COMPLIANCE ---------------- */
.cmp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cmp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem 1.35rem;
    transition: border-color .28s, transform .28s;
}
.cmp-card:hover { border-color: rgba(14,165,160,0.35); transform: translateY(-4px); }
.cmp-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px; height: 32px;
    padding: 0 0.6rem;
    border-radius: 9px;
    background: var(--rx-tint);
    border: 1px solid rgba(14,165,160,0.26);
    color: var(--rx);
    font-weight: 900;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.85rem;
}
:root[data-theme="light"] .cmp-logo { color: var(--rx-deep); }
.cmp-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.45rem; }
.cmp-card p { font-size: 0.875rem; line-height: 1.6; color: var(--text-secondary); }

/* ---------------- METRICS BAND ---------------- */
.band {
    background: var(--rx-tint);
    border: 1px solid rgba(14,165,160,0.24);
    border-radius: 24px;
    padding: 2.4rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.band-item b {
    display: block;
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    font-weight: 900;
    line-height: 1;
    background: var(--rx-title-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}
.band-item span { display: block; margin-top: 0.5rem; font-size: 0.87rem; color: var(--text-secondary); font-weight: 600; line-height: 1.45; }

/* ---------------- STACK BUILDER ---------------- */
.rx-builder { display: grid; grid-template-columns: 1fr 340px; gap: 1.75rem; align-items: start; }
.presets { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin-bottom: 1.1rem; }
.presets-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-inline-end: 0.2rem; }
.preset {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    border-radius: 100px;
    padding: 0.4rem 0.9rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
}
.preset:hover { border-color: var(--border-hover); color: var(--text-primary); }
.preset.active { background: var(--rx-grad); border-color: transparent; color: #fff; }

.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 0.8rem; }
.mod {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    text-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1rem 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: all .26s cubic-bezier(.22,.61,.36,1);
}
.mod:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.mod .mc {
    position: absolute;
    top: 0.65rem;
    inset-inline-end: 0.65rem;
    width: 17px; height: 17px;
    border-radius: 6px;
    border: 1.5px solid var(--border-hover);
    transition: all .25s;
}
.mod .mi { color: var(--text-muted); transition: color .25s; }
.mod .mi svg { width: 21px; height: 21px; }
.mod .mn { font-size: 0.88rem; font-weight: 800; color: var(--text-primary); line-height: 1.3; padding-inline-end: 1.3rem; }
.mod .mh { font-size: 0.745rem; color: var(--text-muted); line-height: 1.45; }
.mod[aria-pressed="true"] {
    border-color: var(--rx);
    background: var(--rx-tint);
    box-shadow: 0 0 0 1px var(--rx) inset;
}
.mod[aria-pressed="true"] .mi { color: var(--rx); }
.mod[aria-pressed="true"] .mc {
    background: var(--rx);
    border-color: var(--rx);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.stack-side {
    position: sticky;
    top: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
}
.stack-side h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.3rem; }
.stack-side > p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1.1rem; }
.stack-count { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.5rem; }
.stack-count b { font-size: 2rem; font-weight: 900; color: var(--rx); line-height: 1; font-variant-numeric: tabular-nums; }
.stack-count span { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.scope-track { height: 7px; border-radius: 100px; background: var(--surface-hover); overflow: hidden; margin-bottom: 0.45rem; }
.scope-bar { height: 100%; width: 0; border-radius: 100px; background: var(--rx-grad); transition: width .5s cubic-bezier(.22,.61,.36,1); }
.scope-label { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 1.1rem; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; min-height: 30px; margin-bottom: 1.2rem; }
.stack-chips span {
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--rx-tint);
    border: 1px solid rgba(14,165,160,0.26);
    color: var(--rx-soft);
    border-radius: 100px;
    padding: 0.22rem 0.6rem;
}
:root[data-theme="light"] .stack-chips span { color: var(--rx-deep); }
.stack-chips .stack-empty { background: none; border: 0; color: var(--text-muted); font-weight: 500; padding: 0.22rem 0; }
.stack-side .btn { width: 100%; justify-content: center; }
.stack-clear {
    display: block;
    width: 100%;
    margin-top: 0.6rem;
    background: none;
    border: 0;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.stack-clear:hover { color: var(--text-primary); }

/* ---------------- CASE / PROOF ---------------- */
.proof-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.proof-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.7rem; }
.proof-metric {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.15rem 1.2rem;
}
.proof-metric b { display: block; font-size: 1.55rem; font-weight: 900; color: var(--rx); line-height: 1; font-variant-numeric: tabular-nums; }
.proof-metric span { display: block; margin-top: 0.4rem; font-size: 0.83rem; color: var(--text-secondary); line-height: 1.45; }

.arch-card {
    background: var(--card-strong);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: 0 24px 56px rgba(0,0,0,0.34);
}
:root[data-theme="light"] .arch-card { border-color: rgba(10,15,28,0.1); box-shadow: 0 20px 44px rgba(10,15,28,0.12); }
.arch-row { display: flex; flex-direction: column; gap: 0.55rem; }
.arch-tier {
    border: 1px dashed rgba(255,255,255,0.14);
    border-radius: 13px;
    padding: 0.75rem 0.85rem;
}
:root[data-theme="light"] .arch-tier { border-color: rgba(10,15,28,0.14); }
.arch-tier-h {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--rx-soft);
    margin-bottom: 0.5rem;
}
:root[data-theme="light"] .arch-tier-h { color: var(--rx-deep); }
.arch-items { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.arch-items span {
    font-size: 0.69rem;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    padding: 0.28rem 0.55rem;
    color: var(--text-secondary);
}
:root[data-theme="light"] .arch-items span { background: #f8fafc; border-color: rgba(10,15,28,0.08); }
.arch-flow { text-align: center; color: var(--rx); font-size: 1rem; line-height: 1; }

/* ---------------- GEO COVERAGE ---------------- */
.cov-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.ksa-map { color: var(--text-muted); }
.ksa-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.ksa-map .route {
    fill: none;
    stroke: url(#rxRouteGrad);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 5 9;
    opacity: 0.6;
    animation: rx-dash 2.4s linear infinite;
}
@keyframes rx-dash { to { stroke-dashoffset: -28; } }
.ksa-map .city .core { fill: var(--rx); }
.ksa-map .city.hq .core { fill: var(--accent); }
.ksa-map .city .ring {
    fill: none;
    stroke: var(--rx);
    stroke-width: 1.4;
    opacity: 0;
    transform-origin: center;
    animation: rx-ring 3s ease-out infinite;
}
.ksa-map .city.hq .ring { stroke: var(--accent); }
@keyframes rx-ring {
    0% { opacity: 0.75; transform: scale(1); }
    70%, 100% { opacity: 0; transform: scale(3.1); }
}
.ksa-map text {
    font-size: 10px;
    font-weight: 700;
    fill: var(--text-secondary);
    font-family: inherit;
}
.ksa-map .city.hq text { fill: var(--text-primary); font-weight: 800; }
.ksa-map .map-note { font-size: 8px; font-weight: 500; fill: var(--text-muted); opacity: 0.75; }

.city-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 1.75rem; }
.city-list .city {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.05rem 1.15rem;
    transition: border-color .25s;
}
.city-list .city:hover { border-color: rgba(14,165,160,0.35); }
.city-list .city h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 0.35rem; }
.city-list .city p { font-size: 0.83rem; line-height: 1.55; color: var(--text-secondary); }

/* ---------------- PROCESS ---------------- */
.process-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; position: relative; }
.process-timeline::before {
    content: '';
    position: absolute;
    top: 26px;
    inset-inline: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
}
.process-step {
    position: relative;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.3rem 1.1rem 1.4rem;
    transition: border-color .28s, transform .28s;
}
.process-step:hover { border-color: rgba(14,165,160,0.35); transform: translateY(-4px); }
.process-step-number {
    position: absolute;
    top: -2px;
    inset-inline-start: 50%;
    transform: translate(-50%, 0);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--rx-grad);
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 8px 20px var(--rx-glow);
    margin-top: -22px;
}
body[dir="rtl"] .process-step-number { transform: translate(50%, 0); }
.process-step h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.45rem; }
.process-step p { font-size: 0.845rem; line-height: 1.6; color: var(--text-secondary); }

/* ---------------- MID CTA ---------------- */
.mid-cta-banner {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: var(--rx-tint);
    border: 1px solid rgba(14,165,160,0.26);
    border-radius: 26px;
    padding: 3.2rem 2rem;
}
.mid-cta-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    inset-inline-start: -10%;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,160,0.2), transparent 65%);
    filter: blur(70px);
    pointer-events: none;
}
.mid-cta-banner > * { position: relative; }
.mid-cta-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 0.8rem; }
.mid-cta-description { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.65; margin: 0 auto 1.75rem; max-width: 680px; }
.mid-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .25s;
}
.faq details[open] { border-color: rgba(14,165,160,0.35); }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.15rem 1.35rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    flex: none;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--rx);
    transition: transform .3s;
    line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.35rem 1.25rem; color: var(--text-secondary); line-height: 1.75; font-size: 0.95rem; }

/* ---------------- LEAD FORM ---------------- */
.lead-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: start; }
.lead-points { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin: 1.75rem 0 2rem; }
.lead-points li {
    position: relative;
    padding-inline-start: 1.7rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.lead-points li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.34rem;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--rx-tint);
    border: 1px solid rgba(14,165,160,0.4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea5a0' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
}
.lead-contact { display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-start; }

.lead-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 2rem;
    position: relative;
}
.lead-form h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.3rem; }
.form-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.f-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.f-field label, .f-label { font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); }
.f-field .req { color: var(--rx); }
.f-field input, .f-field select, .f-field textarea {
    width: 100%;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 0.7rem 0.85rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color .22s, box-shadow .22s;
}
:root[data-theme="light"] .f-field input,
:root[data-theme="light"] .f-field select,
:root[data-theme="light"] .f-field textarea { background: #fff; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
    outline: none;
    border-color: var(--rx);
    box-shadow: 0 0 0 3px var(--rx-tint);
}
.f-field textarea { resize: vertical; min-height: 78px; }
.f-err { display: none; font-size: 0.75rem; color: var(--danger); }
.f-field.invalid input { border-color: var(--danger); }
.f-field.invalid .f-err { display: block; }

.f-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.f-chip { position: relative; }
.f-chip input { position: absolute; opacity: 0; pointer-events: none; }
.f-chip span {
    display: inline-block;
    border: 1px solid var(--border);
    background: var(--primary);
    border-radius: 100px;
    padding: 0.42rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .22s;
}
:root[data-theme="light"] .f-chip span { background: #fff; }
.f-chip input:checked + span {
    background: var(--rx-tint);
    border-color: var(--rx);
    color: var(--text-primary);
    font-weight: 700;
}
.f-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--rx-tint); }

.f-modules {
    display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
    min-height: 36px;
    padding: 0.55rem 0.7rem;
    border: 1px dashed var(--border-hover);
    border-radius: 11px;
}
.f-modules .chip {
    font-size: 0.73rem;
    font-weight: 700;
    background: var(--rx-tint);
    border: 1px solid rgba(14,165,160,0.3);
    color: var(--rx-soft);
    border-radius: 100px;
    padding: 0.2rem 0.6rem;
}
:root[data-theme="light"] .f-modules .chip { color: var(--rx-deep); }
.f-modules .f-modules-empty { font-size: 0.8rem; color: var(--text-muted); }
.f-modules a { font-size: 0.76rem; font-weight: 700; color: var(--rx); text-decoration: underline; text-underline-offset: 3px; margin-inline-start: auto; }
.btn-submit { width: 100%; justify-content: center; margin-top: 0.35rem; }
.f-note { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.8rem; text-align: center; line-height: 1.5; }

.lead-success { display: none; text-align: center; padding: 2.5rem 0.5rem; }
.lead-form.sent .lead-fields { display: none; }
.lead-form.sent .lead-success { display: block; }
.lead-success .ok-ic {
    width: 58px; height: 58px;
    border-radius: 50%;
    display: grid; place-items: center;
    margin: 0 auto 1.2rem;
    background: var(--rx-tint);
    border: 1px solid rgba(14,165,160,0.4);
    color: var(--rx);
}
.lead-success .ok-ic svg { width: 27px; height: 27px; }
.lead-success h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.lead-success p { color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.5rem; font-size: 0.93rem; }

/* ---------------- STICKY CTA ---------------- */
.sticky-cta {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(10, 15, 28, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
:root[data-theme="light"] .sticky-cta { background: rgba(255,255,255,0.96); }
.sticky-cta.show { transform: none; }
.sc-info { display: flex; flex-direction: column; line-height: 1.25; }
.sc-info b { font-size: 0.88rem; font-weight: 800; color: var(--text-primary); }
.sc-info span { font-size: 0.72rem; color: var(--text-muted); }
.sticky-cta .btn { flex: none; padding: 0.65rem 1.2rem; font-size: 0.85rem; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1100px) {
    .rx-hero { padding: 7.5rem 2rem 4rem; }
    .rx-hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
    .rx-visual { min-height: auto; max-width: 620px; }
    .console { transform: none; }
    .rx-phone { position: relative; inset: auto; margin: -34px auto 0; animation: none; }
    .rx-toast { position: relative; inset: auto; margin: 0.7rem auto 0; max-width: 100%; }
    .toast-rx, .toast-sync { animation: none; }
    .sys-grid { grid-template-columns: repeat(2, 1fr); }
    .cmp-grid { grid-template-columns: repeat(2, 1fr); }
    .dsh-stage, .fleet-grid, .proof-grid, .cov-grid, .lead-grid, .pain-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .rx-builder { grid-template-columns: 1fr; }
    .stack-side { position: static; }
    .process-timeline { grid-template-columns: repeat(2, 1fr); }
    .process-timeline::before { display: none; }
    .band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .rx-hero { padding: 6.5rem 1.25rem 3rem; }
    .rx-checks { grid-template-columns: 1fr; }
    .sys-grid { grid-template-columns: 1fr; }
    .cmp-grid { grid-template-columns: 1fr; }
    .jrn-track { grid-template-columns: repeat(3, 1fr); gap: 0.8rem 0.4rem; }
    .jrn-track::before { display: none; }
    .jrn-panel { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; gap: 1.4rem; }
    .jrn-step b { font-size: 0.68rem; }
    .cns-kpis { grid-template-columns: repeat(2, 1fr); }
    .cns-split { grid-template-columns: 1fr; }
    .dispatch-cols { grid-template-columns: 1fr; }
    .dispatch-col { min-height: auto; }
    .dsh-caps, .fleet-feats, .proof-metrics, .city-list { grid-template-columns: 1fr; }
    .f-row { grid-template-columns: 1fr; }
    .lead-form { padding: 1.5rem 1.25rem; }
    .process-timeline { grid-template-columns: 1fr; }
    .band { grid-template-columns: 1fr 1fr; padding: 2rem 1.25rem; }
    .sticky-cta { display: flex; }
    .mid-cta-banner { padding: 2.4rem 1.25rem; }
    .dsh-tab { padding: 0.55rem 1rem; font-size: 0.82rem; }
}
@media (max-width: 460px) {
    .band { grid-template-columns: 1fr; }
    .jrn-track { grid-template-columns: repeat(2, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rx-hero::before, .rx-hero::after, .rx-phone, .rx-toast,
    .ksa-map .route, .ksa-map .city .ring, .bl-fill, .cns-live i {
        animation: none !important;
    }
    .bl-fill { width: var(--w, 50%); }
}
