/* ═══════════════════════════════════════════════════════════
   saad.css — Saad page-specific styles (teal theme)
   Overrides the global --blue-* tokens from styles.css so the
   whole page (including shared navbar/footer) uses teal.
═══════════════════════════════════════════════════════════ */

:root {
    /* Brand token overrides — remap the global blue palette to teal */
    --blue-primary: #4CCFC1;   /* bright mint — primary accent / CTAs */
    --blue-mid:     #15A0A3;   /* medium cyan — secondary accent */
    --blue-dark:    #013E45;   /* deep teal — dark surfaces */
    --blue-slate:   #036067;   /* mid teal — muted text on light */
    --blue-deep:    #002227;   /* near-black teal — primary text / darkest bg */
    --blue-navy:    #002227;   /* alias */
    --teal:         #4CCFC1;
    --purple:       #15A0A3;
    --wa-green:     #15A0A3;

    /* Saad-page semantic tokens */
    --text-primary:   #002227;
    --text-secondary: #036067;
    --text-muted:     #5A7A7C;
    --card-bg:        #FFFFFF;
    --card-border:    rgba(21,160,163,0.18);
    --card-shadow:    rgba(0,34,39,0.10);
    --section-alt:    #EAF7F5;

    /* Raw palette (for when hex is needed directly) */
    --teal-ink:       #002227;
    --teal-dark:      #013E45;
    --teal-medium:    #036067;
    --teal-green:     #0B3F3A;
    --teal-mint:      #4CCFC1;
    --teal-cyan:      #15A0A3;

    /* Page surface — flips per theme */
    --page-bg:        #FFFFFF;
}

/* ─── Dark theme overrides ──────────────────────────────────
   Activated by JS setting `data-theme="dark"` on <html>. Only
   surface/text/border tokens flip; brand teal accents stay the
   same so the visual identity is preserved.
─────────────────────────────────────────────────────────────── */
:root[data-theme="dark"] {
    --text-primary:   #E6F4F3;
    --text-secondary: #9DD7D0;
    --text-muted:     #7A9698;
    --card-bg:        #0E1E22;
    --card-border:    rgba(76,207,193,0.22);
    --card-shadow:    rgba(0,0,0,0.45);
    --section-alt:    #07171A;
    --page-bg:        #03100F;
}

/* ─── icon-wrap (no shared definition in styles.css, so we define here) ─── */
.icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(76,207,193,0.1);
    flex-shrink: 0;
}
.icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke: var(--blue-primary);
}

/* ═══ HERO — light, with drifting teal orbs + grid lines ═════ */
#hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 140px 24px 100px;
    overflow: hidden;
    max-width: 100%;
    margin: 0;
    color: var(--text-primary);
    background-color: var(--page-bg);
    background-image:
      radial-gradient(ellipse 70% 55% at 85% 15%, rgba(76,207,193,0.12), transparent 60%),
      radial-gradient(ellipse 55% 50% at 12% 90%, rgba(1,62,69,0.08), transparent 65%),
      radial-gradient(ellipse 80% 40% at 50% 110%, rgba(76,207,193,0.08), transparent 70%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(76,207,193,0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(76,207,193,0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}
.hero-bg::before,
.hero-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}
.hero-bg::before {
    width: 720px;
    height: 720px;
    top: -220px;
    right: -160px;
    background: radial-gradient(circle, rgba(76,207,193,0.55) 0%, rgba(76,207,193,0.18) 35%, transparent 70%);
    opacity: 0.85;
    animation: saadHeroOrb1 16s ease-in-out infinite;
}
.hero-bg::after {
    width: 560px;
    height: 560px;
    bottom: -180px;
    left: 4%;
    background: radial-gradient(circle, rgba(21,160,163,0.48) 0%, rgba(1,62,69,0.16) 40%, transparent 70%);
    opacity: 0.75;
    animation: saadHeroOrb2 18s ease-in-out infinite;
}
@keyframes saadHeroOrb1 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(-50px, 60px) scale(1.12); }
}
@keyframes saadHeroOrb2 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(60px, -50px) scale(0.9); }
}

/* Cursor-follow glow — mirrors index.html hero */
.cursor-glow {
    position: absolute;
    pointer-events: none;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76,207,193,0.22) 0%, rgba(76,207,193,0.08) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
#hero:hover .cursor-glow { opacity: 1; }

.hero-grid {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--blue-primary);
    background: rgba(76,207,193,0.08);
    padding: 7px 18px;
    border-radius: 50px;
    border: 1px solid rgba(76,207,193,0.22);
    box-shadow: 0 4px 14px rgba(76,207,193,0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hero-headline {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--blue-deep);
    line-height: 1.18;
    letter-spacing: -0.01em;
}
.hero-headline span {
    background: linear-gradient(135deg, #7DE5DB 0%, #4CCFC1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Re-theme the navbar/footer logo gradient (was white→blue→purple) */
.nav-logo-text {
    background: linear-gradient(135deg, #FFFFFF 20%, #7DE5DB 55%, #4CCFC1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* White tile behind the logo image (show real logo colors, not a silhouette) */
.nav-logo-icon {
    background: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
    width: 56px;
    height: 56px;
    border-radius: 14px;
}
.nav-logo-img {
    filter: none;
    padding: 2px;
}
@media (max-width: 768px) {
    .nav-logo-icon { width: 44px; height: 44px; border-radius: 11px; }
}
.hero-sub {
    font-size: 1.12rem;
    color: var(--blue-slate);
    line-height: 1.75;
    max-width: 480px;
}
.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* Override shared `#hero .btn-*` rules (which assume a dark hero) ─── */
#hero .btn-primary {
    background: var(--blue-primary);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 28px rgba(76,207,193,0.32);
}
#hero .btn-primary:hover {
    background: var(--blue-mid);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(76,207,193,0.42);
}
#hero .btn-wa {
    background: transparent;
    color: var(--blue-primary);
    border: 1.5px solid rgba(76,207,193,0.3);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: none;
}
#hero .btn-wa:hover {
    background: rgba(76,207,193,0.06);
    border-color: var(--blue-primary);
    color: var(--blue-mid);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(76,207,193,0.16);
}

/* ─── Mascot variant for nav/footer logo — show full logo, no crop ── */
.nav-logo-icon--mascot {
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-logo-img--mascot {
    filter: none;
    padding: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ─── WhatsApp chat mockup — dark device with teal accents + floating badges ── */
.chat-mockup {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
    padding: 28px 70px;
    isolation: isolate;
    animation: saadMockupFloat 8s ease-in-out infinite;
}
@keyframes saadMockupFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Device frame — dark glassy card */
.chat-frame {
    position: relative;
    background:
      radial-gradient(ellipse 80% 40% at 50% 0%, rgba(76,207,193,0.14), transparent 70%),
      linear-gradient(180deg, #042a2f 0%, #011a1e 100%);
    border: 1px solid rgba(76,207,193,0.16);
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
      0 30px 70px rgba(0,34,39,0.28),
      0 0 0 1px rgba(76,207,193,0.08),
      0 0 0 10px rgba(76,207,193,0.04),
      0 0 80px 10px rgba(76,207,193,0.22),
      0 0 180px 20px rgba(76,207,193,0.10);
}
.chat-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(76,207,193,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(76,207,193,0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}
.chat-frame > * { position: relative; z-index: 1; }

/* Top bar */
.chat-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--blue-mid) 0%, var(--teal-green) 100%);
    border-bottom: 1px solid rgba(76,207,193,0.18);
}
.chat-topbar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 0;
    overflow: visible;
    flex-shrink: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}
.chat-topbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.chat-topbar-meta { display: flex; flex-direction: column; gap: 2px; }
.chat-topbar-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFFFFF;
}
.chat-topbar-status {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.75);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.chat-topbar-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74,222,128,0.8);
}

/* Body */
.chat-body {
    padding: 14px 24px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 260px;
}
.chat-day {
    align-self: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    background: rgba(76,207,193,0.10);
    border: 1px solid rgba(76,207,193,0.14);
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 2px;
}

/* Message row = bubble + meta stacked */
.chat-msg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 72%;
}
.chat-msg--in  { align-self: flex-start; align-items: flex-start; }
.chat-msg--out { align-self: flex-end;   align-items: flex-end; }

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.55;
    word-wrap: break-word;
}
.chat-msg--in .chat-bubble {
    background: rgba(255,255,255,0.06);
    color: #EAF7F5;
    border: 1px solid rgba(76,207,193,0.10);
    border-top-left-radius: 6px;
}
.chat-msg--out .chat-bubble {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-mid) 100%);
    color: var(--teal-ink);
    font-weight: 600;
    border-top-right-radius: 6px;
    box-shadow: 0 6px 18px rgba(76,207,193,0.28);
}
.chat-meta {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.5);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
}
.chat-meta .tick {
    color: var(--blue-primary);
    font-size: 0.75rem;
    letter-spacing: -2px;
}

/* Typing indicator bubble */
.chat-typing {
    align-self: flex-end;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(76,207,193,0.10);
    padding: 12px 18px;
    border-radius: 16px;
    border-top-right-radius: 6px;
    display: flex;
    gap: 5px;
    align-items: center;
}
.chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue-primary);
    animation: typing-dot 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}

/* Input bar */
.chat-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(76,207,193,0.12);
}
.chat-input-placeholder {
    flex: 1;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(76,207,193,0.10);
    border-radius: 50px;
}
.chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-mid) 100%);
    color: var(--teal-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(76,207,193,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: chatSendPulse 3s ease-in-out infinite;
}
.chat-send:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(76,207,193,0.5);
}
.chat-send svg { width: 16px; height: 16px; transform: rotate(180deg); }
@keyframes chatSendPulse {
    0%, 100% { box-shadow: 0 6px 16px rgba(76,207,193,0.35); }
    50%      { box-shadow: 0 6px 20px rgba(76,207,193,0.6), 0 0 0 6px rgba(76,207,193,0.08); }
}

/* ─── Floating badges around the chat frame ─── */
.chat-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #042a2f 0%, #011a1e 100%);
    border: 1px solid rgba(76,207,193,0.22);
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(0,34,39,0.28), 0 0 28px rgba(76,207,193,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: chatBadgeFloat 6s ease-in-out infinite;
}
.chat-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(76,207,193,0.14);
    color: var(--blue-primary);
    flex-shrink: 0;
}
.chat-badge-icon svg { width: 14px; height: 14px; }
.chat-badge-body { display: flex; flex-direction: column; gap: 1px; }
.chat-badge-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
}
.chat-badge-sub {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}
.chat-badge--fast  { top: 120px;   right: -50px; animation-delay: 0s; }
.chat-badge--lang  { bottom: 18%;  right: -60px; animation-delay: 1.2s; }
.chat-badge--trust { top: 305px;  left: -50px;  animation-delay: 2.4s; }
@keyframes chatBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ─── Looping send/reply animation — 10s cycle, 1s step between messages ─── */
.chat-msg,
.chat-typing {
    opacity: 0;
    animation-duration: 10s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}
.msg-step-1      { animation-name: msgStep1; }
.msg-step-2      { animation-name: msgStep2; }
.msg-step-3      { animation-name: msgStep3; }
.msg-step-4      { animation-name: msgStep4; }
.msg-step-typing { animation-name: msgStepTyping; }
.msg-step-5      { animation-name: msgStep5; }

@keyframes msgStep1 {
    0%, 2%    { opacity: 0; transform: translateY(10px) scale(0.96); }
    5%, 82%   { opacity: 1; transform: translateY(0) scale(1); }
    90%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes msgStep2 {
    0%, 12%   { opacity: 0; transform: translateY(10px) scale(0.96); }
    15%, 82%  { opacity: 1; transform: translateY(0) scale(1); }
    90%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes msgStep3 {
    0%, 22%   { opacity: 0; transform: translateY(10px) scale(0.96); }
    25%, 82%  { opacity: 1; transform: translateY(0) scale(1); }
    90%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes msgStep4 {
    0%, 32%   { opacity: 0; transform: translateY(10px) scale(0.96); }
    35%, 82%  { opacity: 1; transform: translateY(0) scale(1); }
    90%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes msgStepTyping {
    0%, 42%   { opacity: 0; transform: translateY(8px); }
    45%, 52%  { opacity: 1; transform: translateY(0); }
    55%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes msgStep5 {
    0%, 54%   { opacity: 0; transform: translateY(10px) scale(0.96); }
    57%, 82%  { opacity: 1; transform: translateY(0) scale(1); }
    90%, 100% { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .chat-mockup,
    .chat-send,
    .chat-badge,
    .chat-msg,
    .chat-typing {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ═══ PROBLEMS — 3-col grid, flip cards, unified blue palette ═ */
#problems {
    background: var(--section-alt);
    max-width: 100%;
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}
#problems::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(76,207,193,0.08), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
#problems > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* 6-col grid so 2-col spans let us center an incomplete last row */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
}
.problem-card {
    grid-column: span 2;
    position: relative;
    min-height: 190px;
    perspective: 1400px;
    cursor: pointer;
    outline: none;
}
.problem-card:nth-child(4) { grid-column: 2 / span 2; }
.problem-card:nth-child(5) { grid-column: 4 / span 2; }

.problem-flip {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.problem-card:hover .problem-flip,
.problem-card:focus-visible .problem-flip,
.problem-card.flipped .problem-flip {
    transform: rotateY(180deg);
}

.problem-face {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 16px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ── Front face: white card with subtle blue side accent ── */
.problem-front {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 1px 3px var(--card-shadow);
}
.problem-front::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    right: 0;   /* RTL: start edge = right */
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--blue-primary), rgba(76,207,193,0.2));
    opacity: 0.7;
    transition: opacity 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}
.problem-card:hover .problem-front,
.problem-card.flipped .problem-front {
    box-shadow: 0 12px 32px rgba(76,207,193,0.16);
    border-color: rgba(76,207,193,0.3);
}
.problem-card:hover .problem-front::before {
    opacity: 1;
    top: 8px;
    bottom: 8px;
}

/* ── Back face: blue gradient with the solution ── */
.problem-back {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-mid) 100%);
    border: 1px solid rgba(76,207,193,0.4);
    color: var(--white);
    transform: rotateY(180deg);
    box-shadow: 0 16px 36px rgba(76,207,193,0.28);
    overflow: hidden;
    padding-top: 52px;  /* clear the absolutely-positioned .solution-tag */
}
.problem-back::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
    pointer-events: none;
}

/* ── Icon wraps (override generic blue one for both faces) ── */
.problem-front .icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(76,207,193,0.1);
}
.problem-front .icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke: var(--blue-primary);
}
.problem-back .icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
}
.problem-back .icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
}

/* ── Typography on both faces ── */
.problem-copy { flex: 1; padding-top: 2px; }
.problem-front h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--blue-navy);
    margin-bottom: 4px;
}
.problem-front p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.problem-back h3 {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: -0.005em;
}
.problem-back p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.55;
}

/* ── Flip hint (tiny rotate icon on front, bottom-left in RTL) ── */
.flip-hint {
    position: absolute;
    bottom: 12px;
    left: 14px;   /* RTL: end edge = left */
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(76,207,193,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.flip-hint svg {
    width: 12px;
    height: 12px;
    stroke: var(--blue-primary);
    animation: flipHintSpin 3s linear infinite;
}
.problem-card:hover .flip-hint {
    opacity: 1;
    transform: translateY(0);
    background: rgba(76,207,193,0.16);
}
@keyframes flipHintSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Solution tag on back face (top pill — sits above content) ── */
.solution-tag {
    position: absolute;
    top: 14px;
    right: 18px;   /* RTL: visually right end */
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 4px 11px 4px 9px;
    border-radius: 50px;
    background: rgba(255,255,255,0.24);
    color: var(--white);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}
.solution-tag svg {
    width: 12px;
    height: 12px;
    stroke: var(--white);
    stroke-width: 3;
    flex-shrink: 0;
}

.problems-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(76,207,193,0.15);
    color: var(--blue-primary);
    font-weight: 700;
    font-size: 1rem;
}
.problems-divider svg {
    width: 20px; height: 20px; stroke: var(--blue-primary);
    animation: problemsArrowBounce 2s ease-in-out infinite;
}
@keyframes problemsArrowBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

/* ═══ FEATURES ═══════════════════════════════════════════════ */
#features {
    max-width: 100%;
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}
#features > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}
/* 6-col bento: 24/7 hero = 3x2, six regulars auto-fill the 3x2 region
   beside it, CRM hero = full-width banner on row 3. */
.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(170px, auto);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    position: relative;
    isolation: isolate;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-top: 3px solid var(--blue-primary);
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 1px 3px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(76,207,193,0.14);
    border-color: rgba(76,207,193,0.35);
}
/* Diagonal shine sweep on hover — pseudo-element slides across left→right.
   z-index: -1 paired with isolation: isolate on the card keeps the sweep
   below in-flow content (headings, icons) without escaping the card. */
.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 38%, rgba(76,207,193,0.14) 50%, transparent 62%);
    transform: translateX(-110%);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    border-radius: inherit;
    z-index: -1;
}
.feature-card:hover::after { transform: translateX(110%); }
.feature-hero::after {
    background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.28) 50%, transparent 62%);
}
.feature-card .icon-wrap { margin-bottom: 16px; transition: transform 0.3s ease; }
.feature-card:hover .icon-wrap { transform: scale(1.08) rotate(-4deg); }
.feature-card h3 {
    font-size: 1rem; font-weight: 700; color: var(--blue-navy); margin-bottom: 6px;
}
.feature-card p {
    font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5;
}

/* Hero cells — flagship treatment: gradient fill, white text, no top border */
.feature-hero {
    grid-column: span 3;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-mid) 100%);
    border: 1px solid rgba(76,207,193,0.5);
    border-top: 1px solid rgba(76,207,193,0.5);
    color: var(--white);
    box-shadow: 0 18px 40px rgba(76,207,193,0.22);
}
.feature-hero h3 { color: var(--white); font-size: 1.35rem; }
.feature-hero p { color: rgba(255,255,255,0.88); font-size: 0.95rem; }
.feature-hero:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(76,207,193,0.32);
    border-color: rgba(76,207,193,0.7);
}
.feature-hero .icon-wrap {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.feature-hero .icon-wrap--lg {
    width: 56px; height: 56px; border-radius: 14px;
}
.feature-hero .icon-wrap--lg svg,
.feature-hero .icon-wrap--lg i { width: 28px; height: 28px; stroke: var(--white); color: var(--white); }

/* Ambient glow blob — depth cue inside the hero card.
   z-index: -1 places it inside the card's isolated stacking context but
   below regular in-flow content. */
.hero-glow {
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* 24/7 tall hero — content at the top, schedule strip at the bottom.
   space-between pushes the two groups apart so the whole card breathes. */
.feature-hero--tall {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 30px 26px;
    min-height: 360px;
}
.feature-hero--tall h3 { font-size: 1.5rem; }
.hero-tall-content { position: relative; z-index: 1; }

/* Typographic stat grid — 24/7 coverage expressed as four numeric facts.
   No inner panel, no color breaks: numbers + labels float directly on the
   card's blue gradient, so the card reads as one unified surface instead
   of "card with widget embedded". Thin white border-tops provide just enough
   structure to separate the stats without walling them off. */
.stat-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 18px;
    padding: 0 2px;
}
.stat-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
    color: var(--white);
}
.stat-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: rgba(255,255,255,0.7);
}
/* Live indicator — signals "always on" without adding copy beyond one label */
.live-badge {
    position: absolute;
    top: 18px; left: 18px;
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.72rem; font-weight: 600;
    padding: 5px 11px;
    border-radius: 50px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    z-index: 2;
}
.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
    animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* CRM wide hero — full 6-col banner at the bottom */
.feature-hero--wide {
    grid-column: span 6;
    padding: 30px 36px;
    min-height: 170px;
}
/* Body spans the full card so the connector visual (flex: 1) naturally
   fills the gap between the RTL-right lead content and the far edge. */
.hero-wide-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}
.hero-wide-lead {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    max-width: 46%;
}
.hero-wide-copy h3 { margin-bottom: 4px; }
.hero-wide-copy p { margin-bottom: 0; }

/* Live data pipe — literal metaphor: WhatsApp → ساعد → CRM.
   Forced LTR so packets travel left-to-right (universal timeline/data-flow
   convention, independent of the RTL Arabic card around it). */
.pipe-visual {
    direction: ltr;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 54%;
}
.pipe-node {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 8px;
    min-width: 74px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
}
.pipe-node i,
.pipe-node svg {
    width: 20px; height: 20px;
    stroke: var(--white); color: var(--white);
    flex-shrink: 0;
}
/* ساعد is the anchor of the flow — slightly bigger, brighter background. */
.pipe-node--mid {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.45);
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(255,255,255,0.12);
}
.pipe-line {
    position: relative;
    flex: 1;
    height: 2px;
    min-width: 28px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.15),
        rgba(255,255,255,0.4),
        rgba(255,255,255,0.15));
    border-radius: 2px;
}
/* White packet dot glides along the pipe with a soft glow.
   Two packets per line, offset 1.1s, so there's always one in motion. */
.pipe-packet {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 8px rgba(255,255,255,0.9),
                0 0 16px rgba(255,255,255,0.4);
    animation: packetTravel 2.2s linear infinite;
}
.pipe-packet--delay { animation-delay: 1.1s; }
@keyframes packetTravel {
    0%   { left: -10px;               opacity: 0; }
    15%  {                              opacity: 1; }
    85%  {                              opacity: 1; }
    100% { left: calc(100% + 10px);    opacity: 0; }
}

/* Responsive: collapse hero sizing so layout doesn't break on tablet/mobile.
   The existing max-width:1024px and 768px rules further below already reset
   .features-grid columns — here we only need to unwind the hero spans. */
@media (max-width: 1024px) {
    .feature-hero--tall {
        grid-row: auto; grid-column: 1 / -1;
        min-height: 200px;
        /* Switch to horizontal layout at tablet — content on RTL-right,
           schedule strip flex-grows on RTL-left. */
        flex-direction: row;
        align-items: center;
        gap: 28px;
    }
    .feature-hero--tall .hero-tall-content { flex-shrink: 0; max-width: 42%; }
    .feature-hero--tall .stat-grid { flex: 1; min-width: 0; }
    .feature-hero--wide { grid-column: 1 / -1; }
    .hero-wide-lead { max-width: 46%; }
    .pipe-visual { max-width: 54%; }
}
@media (max-width: 768px) {
    .feature-hero--tall, .feature-hero--wide { grid-column: auto; min-height: auto; }
    .feature-hero--tall {
        padding: 24px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
    }
    .feature-hero--tall .hero-tall-content { max-width: 100%; }
    .feature-hero--wide { padding: 24px 20px; }
    .feature-hero--tall h3 { font-size: 1.3rem; }
    /* Pipe loses horizontal room — stack visual below lead on mobile. */
    .hero-wide-body { flex-direction: column; align-items: stretch; gap: 18px; }
    .hero-wide-lead { max-width: 100%; }
    .pipe-visual { max-width: 100%; }
    .pipe-node { min-width: 66px; font-size: 0.68rem; }
    .stat-num { font-size: 2.1rem; }
    .stat-lbl { font-size: 0.68rem; }
}

/* ═══ WHO USES SAAD ══════════════════════════════════════════ */
#who-uses {
    background: var(--section-alt);
    max-width: 100%;
    padding: 100px 24px;
}
#who-uses > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.sectors-component {
    max-width: 1100px;
    margin: 0 auto 48px;
}
.sectors-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.sectors-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}
.sector-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid rgba(76,207,193,0.25);
    color: var(--text-primary);
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px var(--card-shadow);
}
.sector-pill .sector-pill-emoji { font-size: 1rem; line-height: 1; }
.sector-pill:hover {
    border-color: rgba(76,207,193,0.55);
    transform: translateY(-1px);
}
.sector-pill.is-active {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(76,207,193,0.28);
    transform: translateY(-1px);
}

.sector-preview {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    min-height: 200px;
    box-shadow: 0 1px 3px var(--card-shadow);
    transition: opacity 0.2s ease;
}
.sector-preview.is-fading { opacity: 0.4; }
.sector-preview-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 12px;
}
.sector-preview-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-navy);
    margin: 0 0 8px;
}
.sector-preview-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 0 16px;
}
.sector-preview-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sector-chip {
    background: rgba(76,207,193,0.08);
    border: 1px solid rgba(76,207,193,0.22);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}
@media (max-width: 600px) {
    .sector-preview { padding: 20px; }
    .sector-preview-title { font-size: 1.05rem; }
    .sector-preview-desc { font-size: 0.88rem; }
}

.clients-cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.case-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-right: 3px solid var(--blue-primary);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 1px 3px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}
.case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(76,207,193,0.14);
}
.case-card .icon-wrap { width: 40px; height: 40px; padding: 4px; overflow: hidden; }
.case-card .icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.case-card h4 {
    font-size: 0.95rem; font-weight: 700; color: var(--blue-navy); margin-bottom: 4px;
}
.case-card p {
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5;
}
.case-card-cta {
    border-right-color: var(--teal-primary, #4ccfc1);
    background: linear-gradient(180deg, var(--card-bg), rgba(76,207,193,0.06));
}
.case-card-cta .icon-wrap {
    background: rgba(76,207,193,0.12);
    color: var(--teal-primary, #4ccfc1);
}
.case-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 0.85rem;
}
.case-cta-btn svg { width: 16px; height: 16px; }

/* ═══ PRICING ════════════════════════════════════════════════ */
#pricing {
    max-width: 100%;
    padding: 100px 24px;
}
#pricing > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 44px 36px;
    position: relative;
    box-shadow: 0 1px 3px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,34,39,0.12);
}
.pricing-card.featured {
    border: 2px solid var(--blue-primary);
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(76,207,193,0.18);
}
.pricing-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 20px 48px rgba(76,207,193,0.24);
}
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(76,207,193,0.3);
}
.pricing-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(76,207,193,0.08);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.pricing-icon svg { width: 22px; height: 22px; stroke: var(--blue-primary); }
.pricing-card h3 {
    font-size: 1.3rem; font-weight: 800; color: var(--blue-navy); margin-bottom: 8px;
}
.pricing-price {
    font-size: 2rem; font-weight: 800; color: var(--blue-primary); margin-bottom: 4px;
}
.pricing-price span {
    font-size: 0.9rem; font-weight: 600; color: var(--text-secondary);
}
.pricing-setup {
    font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5;
}
.pricing-features {
    display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px;
}
.pricing-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem; color: var(--text-primary);
}
.pricing-features li svg {
    width: 18px; height: 18px; stroke: var(--blue-primary); flex-shrink: 0;
}
.pricing-card .btn {
    width: 100%; justify-content: center;
}

/* ═══ TIMELINE — sticky scrollytelling ═══════════════════════ */
#timeline {
    background: var(--section-alt);
    max-width: 100%;
    padding: 100px 24px 40px;
    --scroll-progress: 0;       /* written by JS on scroll, consumed below */
}
#timeline > * {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Tall parent provides the scroll runway; child below stays pinned inside it. */
.timeline-scroll {
    position: relative;
    height: 300vh;
}
.timeline-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 40px 0;
}
.timeline-sticky > .section-header {
    width: 100%;
    max-width: 760px;
    margin: 0;
}
.timeline-sticky > .timeline-wrap {
    width: 100%;
    max-width: 760px;
}

.timeline-wrap {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Dashed line (background track). 31px = 32 (circle radius) − 1 (half of 2px line). */
.timeline-line {
    position: absolute;
    top: 32px;
    bottom: 32px;
    right: 31px;
    width: 2px;
    border-right: 2px dashed rgba(76,207,193,0.3);
    z-index: 0;
    overflow: visible;
}
/* Scroll-driven fill — uses scaleY() for GPU compositing (not height: X%). */
.timeline-line-fill {
    position: absolute;
    top: 0; right: -2px;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg,
        var(--blue-primary) 0%,
        var(--blue-mid) 100%);
    border-radius: 2px;
    transform: scaleY(var(--scroll-progress, 0));
    transform-origin: top;
    box-shadow: 0 0 12px rgba(76,207,193,0.5);
    transition: transform 0.15s linear;
}

.timeline-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    text-align: right;
    transition: transform 0.35s ease;
}
.timeline-circle {
    position: relative;
    flex-shrink: 0;
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid rgba(76,207,193,0.3);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(76,207,193,0.1);
    transition:
        transform 0.45s cubic-bezier(.3,1.4,.55,1),
        background-color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.45s ease;
}
.timeline-circle svg {
    width: 26px; height: 26px;
    stroke: var(--blue-primary);
    transition: stroke 0.35s ease, transform 0.5s ease;
}
.timeline-content {
    flex: 1;
    min-width: 0;
    padding-top: 6px;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.timeline-label {
    font-size: 0.8rem;
    color: var(--blue-primary);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
    opacity: 0.65;
    transition: opacity 0.35s ease;
}
.timeline-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-navy);
    margin-bottom: 8px;
    transition: color 0.35s ease;
}
.timeline-step p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    opacity: 0.7;
    transition: opacity 0.35s ease, color 0.35s ease;
}

/* Dim inactive steps so the active one visually dominates */
.timeline-step:not(.is-active):not(:hover) .timeline-circle { opacity: 0.85; }
.timeline-step:not(.is-active):not(:hover) .timeline-content { opacity: 0.6; }

/* ─── Active step (JS toggles .is-active on scroll) ─────── */
.timeline-step.is-active .timeline-circle {
    transform: scale(1.15);
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    box-shadow:
        0 0 0 8px rgba(76,207,193,0.12),
        0 0 32px rgba(76,207,193,0.5),
        0 10px 28px rgba(76,207,193,0.35);
}
.timeline-step.is-active .timeline-circle svg { stroke: var(--white); }
.timeline-step.is-active .timeline-label { opacity: 1; }
.timeline-step.is-active p { opacity: 1; }
.timeline-step.is-active .timeline-content { transform: translateX(-6px); }

/* ─── Hover (desktop only, courtesy of hover: hover) ─────── */
@media (hover: hover) {
    .timeline-step:hover .timeline-circle {
        transform: scale(1.1);
        border-color: var(--blue-primary);
        box-shadow:
            0 0 0 6px rgba(76,207,193,0.1),
            0 0 24px rgba(76,207,193,0.35),
            0 10px 24px rgba(76,207,193,0.25);
    }
    .timeline-step:hover .timeline-content { transform: translateX(-4px); }
    .timeline-step:hover .timeline-label,
    .timeline-step:hover p { opacity: 1; }
    .timeline-step:hover .timeline-circle svg { transform: scale(1.08); }
}

/* ─── Reduced motion: drop the pin and the scale/scroll effects ─ */
@media (prefers-reduced-motion: reduce) {
    .timeline-scroll { height: auto; }
    .timeline-sticky { position: static; height: auto; padding: 0; }
    .timeline-line-fill { transform: scaleY(1); transition: none; }
    .timeline-step,
    .timeline-circle,
    .timeline-content,
    .timeline-step p,
    .timeline-label { transition: none !important; }
    .timeline-step.is-active .timeline-circle { transform: none; }
    .timeline-step.is-active .timeline-content { transform: none; }
}

/* ═══ CLIENTS MARQUEE ════════════════════════════════════════ */
#clients {
    max-width: 100%;
    padding: 80px 0;
    background: var(--white);
}
#clients .section-header { padding: 0 24px; }

.marquee-wrapper {
    overflow: hidden; position: relative; direction: ltr;
    padding: 60px 0 30px;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

.marquee-track {
    display: flex; flex-wrap: nowrap; width: max-content; direction: ltr;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.client-logo {
    position: relative; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    height: 70px; padding-inline: 40px;
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, filter 0.4s ease;
    will-change: transform;
}
.client-logo::before {
    content: "";
    position: absolute; inset: -10px 20px;
    background: radial-gradient(closest-side, rgba(76, 207, 193, 0.1), transparent 70%);
    opacity: 0; transform: scale(0.6);
    transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none; z-index: 0;
}
.client-logo::after {
    content: attr(data-name);
    position: absolute; bottom: calc(100% + 4px); left: 50%;
    transform: translate(-50%, 6px);
    background: var(--blue-dark);
    color: #FFFFFF; font-size: 0.8rem; font-weight: 700;
    white-space: nowrap; padding: 6px 12px; border-radius: 8px;
    opacity: 0; pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    direction: rtl;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
}
.client-logo img {
    position: relative; z-index: 1;
    height: 100%; width: auto; max-width: 180px;
    object-fit: contain; display: block; transition: filter 0.4s ease;
}
.marquee-wrapper:hover .client-logo { opacity: 0.35; filter: saturate(0.6); }
.marquee-wrapper .client-logo:hover {
    opacity: 1; filter: saturate(1.15);
    transform: translateY(-8px) scale(1.15);
}
.marquee-wrapper .client-logo:hover::before { opacity: 1; transform: scale(1); }
.marquee-wrapper .client-logo:hover::after { opacity: 1; transform: translate(-50%, 0); }
.marquee-wrapper .client-logo:hover img {
    filter: drop-shadow(0 12px 20px rgba(76, 207, 193, 0.18)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* ═══ FINAL CTA — ported verbatim from index #cta-final ══════ */
#cta-final {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 160px 24px 180px;
    text-align: center;
    background-color: var(--blue-navy);
    background-image:
      radial-gradient(ellipse 60% 50% at 20% 30%, rgba(76, 207, 193, 0.55), transparent 60%),
      radial-gradient(ellipse 55% 45% at 80% 25%, rgba(76, 207, 193, 0.35), transparent 60%),
      radial-gradient(ellipse 65% 55% at 75% 80%, rgba(1, 62, 69, 0.55), transparent 60%),
      radial-gradient(ellipse 50% 45% at 25% 75%, rgba(21, 160, 163, 0.5), transparent 60%);
    background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%;
    animation: ctaMeshShift 20s ease-in-out infinite;
}


@keyframes ctaMeshShift {
    0%, 100% { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%; }
    50%      { background-position: 20% 15%, 80% 20%, 75% 80%, 15% 85%; }
}

/* Top / bottom SVG dividers */
.cta-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 3;
}
.cta-divider--top    { top: -1px;    fill: var(--section-alt); }
.cta-divider--bottom { bottom: -1px; fill: var(--blue-navy); }

/* Floating glow orbs */
.cta-orb {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.42;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}
.cta-orb--cyan {
    top: -140px;
    left: -120px;
    background: #4CCFC1;
    animation: ctaOrbDrift1 18s ease-in-out infinite;
}
.cta-orb--purple {
    bottom: -160px;
    right: -120px;
    background: #15A0A3;
    animation: ctaOrbDrift2 22s ease-in-out infinite;
}
.cta-orb--electric {
    top: -100px;
    right: -80px;
    background: #4CCFC1;
    width: 460px;
    height: 460px;
    animation: ctaOrbDrift3 16s ease-in-out infinite;
}
.cta-orb--indigo {
    bottom: -140px;
    left: -100px;
    background: #013E45;
    width: 480px;
    height: 480px;
    animation: ctaOrbDrift4 20s ease-in-out infinite;
}
@keyframes ctaOrbDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes ctaOrbDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-50px, -30px) scale(1.1); }
}
@keyframes ctaOrbDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-40px, 50px) scale(0.95); }
}
@keyframes ctaOrbDrift4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(50px, -40px) scale(1.05); }
}

/* Rising particles */
.cta-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.cta-particle {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    animation: ctaParticleRise linear infinite;
    opacity: 0;
}
@keyframes ctaParticleRise {
    0%   { transform: translateY(0); opacity: 0; }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-110vh); opacity: 0; }
}

/* Inner wrapper */
.cta-final-inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

/* Badge pill */
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 28px;
    animation: ctaBadgeShimmer 3.2s ease-in-out infinite;
}
@keyframes ctaBadgeShimmer {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 255, 255, 0); }
    50%      { box-shadow: 0 0 28px rgba(255, 255, 255, 0.3); }
}

/* Headline */
.cta-final-inner .section-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    line-height: 1.15;
}

/* Subtitle */
.cta-final-inner .section-sub {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin: 0 auto 12px;
    padding-bottom: 22px;
}
.cta-final-inner .section-sub::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
    animation: ctaAccentPulse 2.6s ease-in-out infinite;
}
@keyframes ctaAccentPulse {
    0%, 100% { transform: translateX(-50%) scaleX(1);   opacity: 0.7; }
    50%      { transform: translateX(-50%) scaleX(1.6); opacity: 1;   }
}

/* Buttons wrapper */
.cta-final-btns {
    position: relative;
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 44px;
}

/* WhatsApp button */
#cta-final .btn-wa {
    position: relative;
    background: transparent;
    color: #FFFFFF;
    padding: 18px 36px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
    animation: ctaWaPulse 3s ease-in-out infinite;
}
@keyframes ctaWaPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.25); }
    50%      { box-shadow: 0 0 45px rgba(255, 255, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25); }
}
#cta-final .btn-wa:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 55px rgba(255, 255, 255, 0.25), 0 12px 32px rgba(0, 0, 0, 0.3);
}
#cta-final .btn-wa svg { transition: transform 0.3s ease; }
#cta-final .btn-wa:hover svg { animation: ctaWaWiggle 0.6s ease; }
@keyframes ctaWaWiggle {
    0%, 100% { transform: rotate(0); }
    25%      { transform: rotate(-10deg) scale(1.1); }
    75%      { transform: rotate(10deg) scale(1.1); }
}

/* Meeting button */
#cta-final .btn-primary {
    position: relative;
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #002227;
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.35s ease, color 0.35s ease;
    overflow: hidden;
}
#cta-final .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent 20%, rgba(21, 160, 163, 0.2) 50%, transparent 80%);
    transform: translateX(-180%) skewX(-18deg);
    animation: ctaBtnShine 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ctaBtnShine {
    0%, 18%   { transform: translateX(-180%) skewX(-18deg); }
    55%, 100% { transform: translateX(320%)  skewX(-18deg); }
}
#cta-final .btn-primary svg { transition: transform 0.35s ease; }
#cta-final .btn-primary:hover {
    background: rgba(255,255,255,0.9);
    color: #002227;
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(255, 255, 255, 0.3);
}
#cta-final .btn-primary:hover svg { transform: rotate(15deg) scale(1.12); }

/* "أو" divider */
.cta-or-divider {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    flex-shrink: 0;
}

/* Trust signals */
.cta-trust {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-family: 'Cairo', sans-serif;
}
.cta-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cta-trust-item svg {
    color: #FFFFFF;
    flex-shrink: 0;
}

/* Scroll-triggered entrance choreography */
.cta-final-inner .cta-badge,
.cta-final-inner .section-title,
.cta-final-inner .section-sub,
.cta-final-inner .btn-wa,
.cta-final-inner .btn-primary,
.cta-final-inner .cta-or-divider,
.cta-final-inner .cta-trust {
    opacity: 0;
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-final-inner .cta-badge       { transform: translateY(-20px); }
.cta-final-inner .section-title   { transform: scale(0.94); }
.cta-final-inner .section-sub     { transform: translateY(10px); }
.cta-final-inner .btn-wa,
.cta-final-inner .btn-primary,
.cta-final-inner .cta-or-divider  { transform: translateY(24px); }
.cta-final-inner .cta-trust       { transform: translateY(14px); }

.cta-final-inner.visible .cta-badge,
.cta-final-inner.visible .section-title,
.cta-final-inner.visible .section-sub,
.cta-final-inner.visible .btn-wa,
.cta-final-inner.visible .btn-primary,
.cta-final-inner.visible .cta-or-divider,
.cta-final-inner.visible .cta-trust {
    opacity: 1;
    transform: none;
}
.cta-final-inner.visible .cta-badge      { transition-delay: 0s; }
.cta-final-inner.visible .section-title  { transition-delay: 0.15s; }
.cta-final-inner.visible .section-sub    { transition-delay: 0.3s; }
.cta-final-inner.visible .btn-wa         { transition-delay: 0.45s; }
.cta-final-inner.visible .cta-or-divider { transition-delay: 0.55s; }
.cta-final-inner.visible .btn-primary    { transition-delay: 0.6s; }
.cta-final-inner.visible .cta-trust      { transition-delay: 0.8s; }

/* Responsive + reduced-motion for the CTA (ported from index) */
@media (max-width: 640px) {
    #cta-final { padding: 110px 20px 130px; }
    .cta-final-inner .section-title { font-size: clamp(2rem, 8vw, 2.6rem); }
    .cta-final-btns { flex-direction: column; gap: 14px; margin-top: 36px; }
    #cta-final .btn-wa,
    #cta-final .btn-primary { width: 100%; justify-content: center; }
    .cta-or-divider { width: 40px; height: 40px; }
    .cta-orb { width: 280px !important; height: 280px !important; filter: blur(70px); }
    .cta-particles { display: none; }
    .cta-trust { gap: 14px; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
    #cta-final,
    .cta-orb,
    .cta-badge,
    #cta-final .btn-wa,
    #cta-final .btn-primary::before,
    .cta-final-inner .section-sub::after,
    .cta-particle { animation: none !important; }
    .cta-particles { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — saad-specific only
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; }
    .clients-cases { grid-template-columns: 1fr; }
    .timeline-wrap { gap: 36px; }

    /* Problems: 2-col at tablet, reset the 6-span centering */
    .problems-grid { grid-template-columns: repeat(2, 1fr); }
    .problem-card,
    .problem-card:nth-child(4),
    .problem-card:nth-child(5) { grid-column: auto; }
    /* 5 items in 2-col = last one alone — span both cols to avoid orphan */
    .problem-card:nth-child(5) { grid-column: 1 / -1; max-width: 520px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .chat-mockup { display: none; }
    .hero-text { align-items: center; text-align: center; }
    .hero-sub { text-align: center; }
    .hero-ctas { justify-content: center; flex-direction: column; align-items: flex-start; }
    .problems-grid { grid-template-columns: 1fr; }
    .problem-card,
    .problem-card:nth-child(4),
    .problem-card:nth-child(5) { grid-column: auto; max-width: none; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { max-width: none; }
    .clients-cases { grid-template-columns: 1fr; }
    .marquee-track { animation-duration: 32s; }
    .client-logo { height: 48px; padding-inline: 25px; }
    .client-logo img { max-width: 130px; }

    /* Timeline on mobile: drop the sticky-pin (too heavy for small screens),
       natural-flow layout with smaller circles. Line re-anchored to 56/2 − 1 = 27. */
    .timeline-scroll { height: auto; }
    .timeline-sticky { position: static; height: auto; padding: 0; }
    .timeline-step { gap: 16px; }
    .timeline-circle { width: 56px; height: 56px; }
    .timeline-circle svg { width: 22px; height: 22px; }
    .timeline-line { right: 27px; }
    .timeline-step h3 { font-size: 1rem; }
    .timeline-step p { font-size: 0.86rem; }
}


/* ═══════════════════════════════════════════════════════════
   Teal-theme overrides for shared styles.css rules
   (hardcoded dark-navy rgba values the tokens don't reach)
═══════════════════════════════════════════════════════════ */

/* Re-theme the rgba triplets defined in styles.css :root */
:root {
    --blue-primary-rgb: 76, 207, 193;   /* #4CCFC1 mint */
    --blue-mid-rgb:     21, 160, 163;   /* #15A0A3 cyan */
    --blue-slate-rgb:   3,  96,  103;   /* #036067 teal-medium */
    --blue-navy-rgb:    0,  34,  39;    /* #002227 */
    --blue-navy2-rgb:   1,  62,  69;    /* #013E45 */
}

/* Navbar glass — dark teal instead of dark navy */
.nav-body {
    background: linear-gradient(
        165deg,
        rgba(0, 34, 39, 0.78) 0%,
        rgba(1, 62, 69, 0.72) 40%,
        rgba(0, 22, 26, 0.82) 100%
    );
}
#navbar.scrolled .nav-body {
    background: linear-gradient(
        165deg,
        rgba(0, 34, 39, 0.92) 0%,
        rgba(1, 62, 69, 0.88) 40%,
        rgba(0, 18, 22, 0.95) 100%
    );
}

/* Nav-glow conic-gradient — replace the light-blue midstops with mint highlights */
.nav-glow::before {
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--blue-primary) 60deg,
        #7DE5DB 120deg,
        transparent 180deg,
        var(--purple) 240deg,
        #7DE5DB 300deg,
        transparent 360deg
    );
}

/* Progress-bar glow — re-theme the light-blue highlight */
@keyframes nav-progress-glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 6px rgba(var(--blue-primary-rgb), 0.6)); }
    50%      { filter: brightness(1.4) drop-shadow(0 0 12px rgba(125, 229, 219, 0.9)); }
}

/* Mobile menu drawer bg */
@media (max-width: 768px) {
    #nav-links {
        background: linear-gradient(180deg, rgba(0, 34, 39, 0.96) 0%, rgba(var(--blue-navy-rgb), 0.94) 100%);
    }
}

/* ═══════════════════════════════════════════════════════════
   Dark-mode text overrides
   Several headings hardcode --blue-navy / --blue-slate / --blue-deep
   (dark teal/near-black) that were intended for light cards. On dark
   surfaces those colors disappear, so we re-color them here using
   the dark token set.
═══════════════════════════════════════════════════════════ */
:root[data-theme="dark"] .hero-headline { color: var(--text-primary); }
:root[data-theme="dark"] .hero-sub { color: var(--text-secondary); }

:root[data-theme="dark"] .problem-front h3,
:root[data-theme="dark"] .feature-card h3,
:root[data-theme="dark"] .case-card h4,
:root[data-theme="dark"] .pricing-card h3,
:root[data-theme="dark"] .sector-preview-title,
:root[data-theme="dark"] .timeline-step h3 {
    color: var(--text-primary);
}

/* Section subtitle uses opacity:0.7 over body color, which works in
   dark mode (E6F4F3 @ 70%). No override needed for .section-sub or
   .section-title — both inherit from body which already flips. */

/* ═══════════════════════════════════════════════════════════
   LTR overrides — flip rules that hard-code physical directions
   (right: …, text-align: right, translateX(-…)) for the EN layout.
   Scoped to [dir="ltr"] so the RTL default is untouched.
═══════════════════════════════════════════════════════════ */

/* Timeline: line, fill, content alignment, active translate, mobile line */
[dir="ltr"] .timeline-line {
    right: auto;
    left: 31px;
    border-right: 0;
    border-left: 2px dashed rgba(76, 207, 193, 0.3);
}
[dir="ltr"] .timeline-line-fill {
    right: auto;
    left: -2px;
}
[dir="ltr"] .timeline-step {
    text-align: left;
}
[dir="ltr"] .timeline-step.is-active .timeline-content {
    transform: translateX(6px);
}
@media (hover: hover) {
    [dir="ltr"] .timeline-step:hover .timeline-content {
        transform: translateX(4px);
    }
}
@media (max-width: 768px) {
    [dir="ltr"] .timeline-line { left: 27px; }
}

/* Hero chat-badges: floats positioned with right:/left: outside the chat
   frame. In LTR, swap so the same visual layout (fast/lang on the
   start side, trust on the end side) reads correctly. */
[dir="ltr"] .chat-badge--fast  { right: auto; left: -50px; }
[dir="ltr"] .chat-badge--lang  { right: auto; left: -60px; }
[dir="ltr"] .chat-badge--trust { left: auto;  right: -50px; }

/* "Online now" pill on the tall feature card: in RTL the icon flows to
   the right so the top-left badge has clear space; in LTR the icon
   flows to the left and overlaps. Mirror the badge to the top-right. */
[dir="ltr"] .feature-hero--tall .live-badge {
    left: auto;
    right: 18px;
}
