/* ═══════════════════════════════════════════════════════════
   العيادة الذكية — Landing page

   Palette, radii, shadows, easings, the icon rule, the focus ring
   and the reduced-motion reset live in tokens.css, which this file
   assumes is already loaded. That block used to be duplicated here
   and in app.css; the copies had drifted, so this file open-coded
   the success green six times and the dark sections eight more.

   Direction: every directional offset goes through --dir (1 in
   LTR, -1 in RTL) or a logical property, so the whole page mirrors
   correctly when the language toggle flips.
   ═══════════════════════════════════════════════════════════ */

:root {
    --nav-h: 64px;
    --maxw: 1180px;
    --wrap-pad: 24px;
}

.font-lora { font-family: 'Lora', 'Cairo', Georgia, serif; }
.font-mono { font-family: 'DM Mono', ui-monospace, monospace; }
html[lang="ar"] body,
html[lang="ar"] .font-lora { font-family: 'Cairo', system-ui, sans-serif; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: 'Outfit', 'Cairo', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    /* `clip` rather than `hidden`: hidden turns the body into a scroll
       container, which silently breaks position:sticky on descendants
       (the platform walkthrough depends on it). */
    overflow-x: clip;
    transition: background-color .25s ease, color .25s ease;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--wrap-pad); }

.skip-link {
    position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
    background: var(--terra); color: #fff; padding: 10px 18px;
    border-radius: var(--r-md); transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ── Icon tints ─────────────────────────────────────────────
   Contexts whose emoji carried an implicit terracotta/brand tint. */
.fw-ic .icon,
.dash-nav-item .icon,
.notif-card .ic .icon,
.phone-push .ic .icon,
.ai-card .ic .icon,
.plat-step .icon,
.result-card .tick .icon,
.j-dot .icon {
    color: var(--terra);
}
.dash-nav-item.active .icon { color: var(--terra); }
.plat-step.active .icon { color: #fff; }

/* Ticks and crosses take their colour from the row they sit in */
.prob-mark .icon { color: inherit; }
.price-list .tick .icon { color: #3E7A48; }

/* Security and network read on a permanently dark background */
.security .icon, .network .icon { color: var(--gold-light); }
.lock-hero .icon { width: 42px; height: 42px; color: var(--gold-light); }

/* Small inline "leads to" arrow inside the AI preview cards */
.ai-preview .b .icon { transform: scaleX(var(--dir)); }

.foot-social a .icon { width: 16px; height: 16px; }
.nav-burger .icon { width: 20px; height: 20px; }
.demo-badge .icon, .roadmap-note .icon { color: #8A5E1E; }

/* ── Mouse-follow ambient glow ─────────────────────────────── */
#ambientGlow {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%),
                var(--glow, rgba(193, 91, 58, .10)), transparent 65%);
    opacity: 0; transition: opacity .6s ease;
}
html[data-theme="dark"] { --glow: rgba(217, 124, 82, .16); }
body.glow-on #ambientGlow { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════════ */
.lp-nav {
    position: fixed; inset-inline: 0; top: 0; z-index: 90;
    height: var(--nav-h);
    display: flex; align-items: center; gap: 20px;
    padding-inline: 24px;
    background: var(--nav-bg, rgba(255, 250, 245, .72));
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
html[data-theme="dark"] { --nav-bg: rgba(46, 28, 18, .72); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .lp-nav { background: var(--surface); }
}
.lp-nav.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 2px 20px -8px rgba(42, 24, 16, .18);
}
.nav-inner {
    width: 100%; max-width: var(--maxw); margin-inline: auto;
    display: flex; align-items: center; gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.nav-logo-icon {
    width: 34px; height: 34px; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--terra), var(--deep-terra));
    border-radius: var(--r-md); font-size: 17px; color: #fff;
    box-shadow: var(--shadow-btn);
}
.nav-logo-icon .icon { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; font-size: 14.5px; }
.nav-links a { color: var(--ink-soft); transition: color .2s ease; position: relative; }
.nav-links a::after {
    content: ''; position: absolute; inset-inline-start: 0; bottom: -5px;
    width: 100%; height: 2px; background: var(--terra); border-radius: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform .28s var(--ease-out);
}
html[dir="rtl"] .nav-links a::after { transform-origin: right; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav-links + .nav-actions { margin-inline-start: 22px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--r-pill);
    font-weight: 600; font-size: 14.5px; border: 1px solid transparent;
    transition: transform .2s var(--ease-out), box-shadow .25s var(--ease-out),
                background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
    background: linear-gradient(140deg, var(--terra), var(--deep-terra));
    color: #fff; box-shadow: var(--shadow-btn);
}
.btn-primary:hover { box-shadow: var(--shadow-btn-hi); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); border-color: var(--terra); color: var(--terra); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
/* Only the magnetic buttons get their transform written by script, so
   only they need the compositor hint. */
[data-magnetic] { will-change: transform; }

.lang-btn {
    background: transparent; border: 1px solid var(--line);
    border-radius: var(--r-pill); padding: 7px 14px;
    font-size: 13px; font-weight: 600; color: var(--ink-soft);
    transition: border-color .2s ease, color .2s ease;
}
.lang-btn:hover { border-color: var(--terra); color: var(--terra); }

.theme-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex: none;
    background: transparent; border: 1px solid var(--line);
    border-radius: var(--r-pill); color: var(--ink-soft);
    transition: border-color .2s ease, color .2s ease;
}
.theme-btn:hover { border-color: var(--terra); color: var(--terra); }
.theme-btn .icon { width: 17px; height: 17px; }

.nav-burger { display: none; background: none; border: 0; padding: 8px; font-size: 20px; }

/* ═══════════════════════════════════════════════════════════
   Section furniture
   ═══════════════════════════════════════════════════════════ */
section { position: relative; z-index: 1; }
.sec { padding-block: clamp(72px, 10vw, 130px); }
.sec-head { max-width: 660px; margin-inline: auto; text-align: center; margin-bottom: 54px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--terra); background: rgba(193, 91, 58, .09);
    padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 18px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }
.sec-title {
    font-size: clamp(28px, 4.4vw, 46px); line-height: 1.18;
    font-weight: 700; margin: 0 0 16px; letter-spacing: -.02em;
}
html[lang="ar"] .sec-title { letter-spacing: 0; line-height: 1.35; }
.sec-sub { font-size: clamp(15px, 1.7vw, 18px); color: var(--ink-soft); margin: 0; }

/* Scroll reveal. Only hidden when the document is marked script-enabled
   (head.js), so a blocked or failed script leaves the page fully
   readable rather than blank. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal[data-d="1"] { transition-delay: .09s; }
html.js .reveal[data-d="2"] { transition-delay: .18s; }
html.js .reveal[data-d="3"] { transition-delay: .27s; }
html.js .reveal[data-d="4"] { transition-delay: .36s; }
html.js .reveal[data-d="5"] { transition-delay: .45s; }
html.js .reveal[data-d="6"] { transition-delay: .54s; }

/* ═══════════════════════════════════════════════════════════
   1 · Hero — staged entrance
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative; padding-top: calc(var(--nav-h) + 60px); padding-bottom: 90px;
    background:
        radial-gradient(1100px 520px at 50% -8%, rgba(212, 151, 74, .22), transparent 70%),
        linear-gradient(180deg, var(--warm-white), var(--sand));
    overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 140px;
    background: linear-gradient(180deg, transparent, var(--sand)); pointer-events: none;
}
.hero-inner { text-align: center; position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--surface); border: 1px solid var(--line);
    padding: 7px 16px; border-radius: var(--r-pill);
    font-size: 13.5px; color: var(--ink-soft); box-shadow: var(--shadow-card);
}
.hero-badge .dot {
    width: 7px; height: 7px; border-radius: 50%; background: #4E9A5A;
    box-shadow: 0 0 0 0 rgba(78, 154, 90, .6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
    70%  { box-shadow: 0 0 0 9px rgba(78, 154, 90, 0); }
    100% { box-shadow: 0 0 0 0 rgba(78, 154, 90, 0); }
}

.hero-title {
    font-size: clamp(36px, 6.6vw, 74px); line-height: 1.08; font-weight: 700;
    letter-spacing: -.03em; margin: 22px 0 0; max-width: 15ch; margin-inline: auto;
}
html[lang="ar"] .hero-title { letter-spacing: 0; line-height: 1.3; max-width: 18ch; }
.hero-title .grad {
    background: linear-gradient(120deg, var(--terra), var(--gold));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
    font-size: clamp(16px, 2vw, 20px); color: var(--ink-soft);
    max-width: 60ch; margin: 22px auto 0;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); }

/* Staged entrance: each piece waits its turn. Pure CSS, so the hero
   still appears if the script fails. landing.js reads the animationend
   event rather than re-deriving these timings from magic numbers. */
.stage {
    opacity: 0; transform: translateY(20px);
    animation: stageIn .85s var(--ease-out) forwards;
}
.stage-0 { animation-delay: 0ms; }
.stage-1 { animation-delay: 300ms; }
.stage-2 { animation-delay: 600ms; }
.stage-3 { animation-delay: 900ms; }
@keyframes stageIn { to { opacity: 1; transform: none; } }

.hero-dash-wrap {
    margin-top: 54px; perspective: 1600px; position: relative;
    /* How far a widget may hang outside the dashboard, derived from the
       real gutter between the content column and the viewport edge so the
       widgets never clip at the window edge. --maxw and --wrap-pad are the
       single source of both this and the layout itself. */
    --push: clamp(0px, calc((100vw - (var(--maxw) - var(--wrap-pad) * 2)) / 2 - 10px), 62px);
}
.hero-dash {
    opacity: 0; transform: scale(.9) translateY(30px);
    animation: dashIn 1.1s var(--ease-out) 1200ms forwards;
}
@keyframes dashIn { to { opacity: 1; transform: scale(1) translateY(0); } }

/* ═══════════════════════════════════════════════════════════
   Dashboard mockup — shared by hero, reveal and demo
   ═══════════════════════════════════════════════════════════ */
.dash {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-3xl); box-shadow: var(--shadow-deep);
    overflow: hidden; text-align: start;
}
.dash-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--ground);
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dusty); }
.dash-dot:nth-child(1) { background: #D98A6E; }
.dash-dot:nth-child(2) { background: var(--gold-light); }
.dash-dot:nth-child(3) { background: #A8C4A2; }
.dash-url {
    margin-inline-start: 12px; font-size: 12px; color: var(--ink-soft);
    background: var(--surface); border: 1px solid var(--line);
    padding: 4px 12px; border-radius: var(--r-pill);
}
.dash-body { display: grid; grid-template-columns: 190px 1fr; min-height: 380px; }
.dash-side { border-inline-end: 1px solid var(--line); padding: 16px 12px; background: var(--ground); }
.dash-side-title { font-size: 11px; font-weight: 700; letter-spacing: .09em; color: var(--ink-soft); padding-inline: 10px; margin-bottom: 10px; }
html[lang="ar"] .dash-side-title { letter-spacing: 0; }
.dash-nav-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 10px; border-radius: var(--r-md); font-size: 13.5px;
    color: var(--ink-soft); background: none; border: 0; text-align: start;
    transition: background .2s ease, color .2s ease;
}
.dash-nav-item .ic { font-size: 15px; }
.dash-nav-item:hover { background: rgba(193, 91, 58, .07); color: var(--ink); }
.dash-nav-item.active { background: var(--surface); color: var(--terra); font-weight: 600; box-shadow: var(--shadow-card); }
.dash-main { padding: 20px; display: grid; gap: 14px; align-content: start; }
.dash-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dash-stat {
    background: var(--ground); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 14px;
}
.dash-stat .k { font-size: 11.5px; color: var(--ink-soft); }
.dash-stat .v { font-size: 24px; font-weight: 700; line-height: 1.25; }
.dash-panel {
    background: var(--ground); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 16px; min-height: 150px;
}
.dash-panel h4 { margin: 0 0 12px; font-size: 14px; }
.dash-line { height: 9px; border-radius: 5px; background: var(--dusty); margin-bottom: 9px; }
.dash-line.w70 { width: 70%; } .dash-line.w50 { width: 50%; } .dash-line.w85 { width: 85%; }

.appt-row {
    display: flex; align-items: center; gap: 11px; padding: 9px 0;
    border-bottom: 1px solid var(--line); font-size: 13px;
}
.appt-row:last-child { border-bottom: 0; }
.appt-av {
    width: 30px; height: 30px; border-radius: 50%; flex: none;
    background: linear-gradient(140deg, var(--gold-light), var(--gold));
    display: grid; place-items: center; font-size: 13px; font-weight: 700;
    color: var(--on-gold, var(--brick));
}
html[data-theme="dark"] { --on-gold: var(--charcoal); }
.appt-when { margin-inline-start: auto; font-size: 11.5px; color: var(--ink-soft); }
.pill {
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill);
    background: var(--terra-10); color: var(--terra);
}
.pill.ok { background: rgba(78, 154, 90, .13); color: #3E7A48; }

/* Floating widgets around the hero dashboard */
.float-widget {
    position: absolute; z-index: 3;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-xl); padding: 12px 15px;
    box-shadow: var(--shadow-lift); font-size: 13px;
    display: flex; align-items: center; gap: 11px;
    opacity: 0; transform: translateY(16px) scale(.94);
    animation: floatIn .8s var(--ease-spring) forwards;
}
.fw-1 { animation-delay: 1500ms; top: 8%;     inset-inline-start: calc(var(--push) * -0.5); }
.fw-2 { animation-delay: 1650ms; top: 26%;    inset-inline-end:   calc(var(--push) * -0.65); }
.fw-3 { animation-delay: 1800ms; bottom: 24%; inset-inline-start: calc(var(--push) * -0.8); }
.fw-4 { animation-delay: 1950ms; bottom: 6%;  inset-inline-end:   calc(var(--push) * -0.35); }
.fw-5 { animation-delay: 2100ms; top: 54%;    inset-inline-end:   calc(var(--push) * -1); }
@keyframes floatIn { to { opacity: 1; transform: none; } }

.float-widget .fw-ic {
    width: 32px; height: 32px; border-radius: var(--r-md); flex: none;
    display: grid; place-items: center; font-size: 15px;
    background: var(--terra-10);
}
.float-widget .fw-k { font-size: 11px; color: var(--ink-soft); }
.float-widget .fw-v { font-weight: 600; font-size: 13.5px; }

/* Idle bob, handed over by JS once each widget's entrance finishes.
   The `animation` shorthand resets delay to 0 on its own, so the
   staggered offsets below no longer need !important to beat .fw-N. */
.float-widget.settled { animation: bob 6s ease-in-out infinite; }
.float-widget.settled.fw-2 { animation-delay: -1.4s; }
.float-widget.settled.fw-3 { animation-delay: -2.8s; }
.float-widget.settled.fw-4 { animation-delay: -4.2s; }
.float-widget.settled.fw-5 { animation-delay: -5.1s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Trust strip under the hero */
.trust-strip {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
    margin-top: 46px; font-size: 13.5px; color: var(--ink-soft);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; }

/* ═══════════════════════════════════════════════════════════
   2 · Product reveal (scroll-scaled dashboard)
   ═══════════════════════════════════════════════════════════ */
.reveal-sec { background: var(--sand); padding-block: 90px; overflow: hidden; }
.reveal-stage { position: relative; }
.reveal-dash {
    transform: scale(var(--rs, .88));
    transition: transform .1s linear;
    will-change: transform;
}
.reveal-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 26px; }
.reveal-part {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 15px; text-align: center; font-size: 13.5px; font-weight: 600;
    box-shadow: var(--shadow-card);
}
.reveal-part .ic { display: block; font-size: 20px; margin-bottom: 7px; }

/* ═══════════════════════════════════════════════════════════
   3 · Problem — old vs new
   ═══════════════════════════════════════════════════════════ */
.prob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.prob-col {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-3xl); padding: 30px; box-shadow: var(--shadow-card);
}
.prob-col.old { background: var(--old-col, #F1E7DA); }
html[data-theme="dark"] { --old-col: var(--ground); }
.prob-col.new { border-color: var(--terra-30); box-shadow: var(--shadow-lift); }
.prob-col h3 { margin: 0 0 6px; font-size: 20px; }
.prob-col .cap { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 20px; }
.prob-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.prob-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.prob-mark {
    width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center;
    font-size: 13px; font-weight: 700;
}
.old .prob-mark { background: rgba(122, 53, 32, .1); color: var(--brick); }
.new .prob-mark { background: rgba(78, 154, 90, .15); color: #3E7A48; }

/* ═══════════════════════════════════════════════════════════
   4 · Platform — sticky dashboard, panels highlight on scroll
   ═══════════════════════════════════════════════════════════ */
.platform { background: var(--warm-white); }
/* The tall track gives the sticky children something to scroll through,
   which is what drives the panel switching. Expressed as viewports per
   step so adding or removing a step keeps the same pacing — it used to
   be a flat 330vh that silently changed meaning with the step count. */
.plat-grid {
    display: grid; grid-template-columns: 340px 1fr; gap: 46px; align-items: start;
    min-height: 330vh;
}
.plat-steps { display: grid; gap: 10px; position: sticky; top: calc(var(--nav-h) + 90px); }
.plat-step {
    position: relative; overflow: hidden;
    display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: start;
    background: transparent; border: 1px solid transparent; border-radius: var(--r-xl);
    padding: 15px 16px; transition: background .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.plat-step:hover { background: var(--ground); }
.plat-step.active {
    background: var(--surface); border-color: var(--line);
    box-shadow: var(--shadow-lift);
}
.plat-step .ic {
    width: 38px; height: 38px; flex: none; border-radius: var(--r-md); display: grid; place-items: center;
    background: var(--ground); font-size: 17px; transition: background .3s var(--ease-out);
}
.plat-step.active .ic { background: linear-gradient(140deg, var(--terra), var(--deep-terra)); }
/* Labels are spans, not h4/p — a heading inside a button is dropped from
   the heading outline by most screen readers. */
.plat-step .tx { display: block; }
.plat-step .h { display: block; margin-bottom: 3px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.plat-step .p { display: block; font-size: 13.5px; font-weight: 400; color: var(--ink-soft); }
/* Inset so the accent bar is not clipped by the rounded corner, which is
   also why this element no longer needs overflow:hidden on the parent —
   that was clipping the focus ring on three sides. */
.plat-step .bar {
    position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
    background: var(--terra); border-radius: 3px; transform: scaleY(0);
    transition: transform .35s var(--ease-out);
}
.plat-step.active .bar { transform: scaleY(1); }

.plat-viewport { position: sticky; top: calc(var(--nav-h) + 60px); }
.plat-screen { position: relative; }
.plat-pane { display: none; }
.plat-pane.active { display: block; animation: paneIn .5s var(--ease-out); }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px) scale(.99); } }

/* ═══════════════════════════════════════════════════════════
   5 · Fake cursor demo
   ═══════════════════════════════════════════════════════════ */
.cursor-demo {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-3xl); padding: 34px; box-shadow: var(--shadow-lift);
    overflow: hidden;
}
.fake-cursor {
    position: absolute; z-index: 6; width: 22px; height: 22px; pointer-events: none;
    opacity: 0; transition: opacity .3s ease, transform .9s var(--ease-out);
    filter: drop-shadow(0 3px 6px rgba(42, 24, 16, .3));
}
.fake-cursor.on { opacity: 1; }
.fake-cursor.click { transform: scale(.82) translate(0, 0); }
/* Overrides the path's inline fill/stroke fallback so the cursor recolors
   with the theme instead of staying pinned to light-mode ink. */
.fake-cursor path { fill: var(--cursor-fill, var(--charcoal)); stroke: var(--cursor-stroke, var(--warm-white)); }
html[data-theme="dark"] { --cursor-fill: var(--ink); --cursor-stroke: var(--ground); }
.cursor-target { position: relative; display: inline-flex; }
.cursor-target.hit { animation: hitPulse .5s var(--ease-spring); }
@keyframes hitPulse { 50% { transform: scale(.95); } }
.cursor-result { margin-top: 20px; transition: opacity .55s var(--ease-spring), transform .55s var(--ease-spring); }
html.js .cursor-result { opacity: 0; transform: translateY(12px) scale(.97); }
html.js .cursor-result.show { opacity: 1; transform: none; }
.result-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--ground); border: 1px solid rgba(78, 154, 90, .35);
    border-radius: var(--r-xl); padding: 16px 18px;
}
.result-card .tick {
    width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: rgba(78, 154, 90, .16); color: #3E7A48; font-size: 16px; font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   6/7 · Journey timelines (line draws on scroll)
   ═══════════════════════════════════════════════════════════ */
.journey { position: relative; padding-inline-start: 34px; }
.journey::before {
    content: ''; position: absolute; inset-inline-start: 9px; top: 8px; bottom: 8px;
    width: 2px; background: var(--line); border-radius: 2px;
}
.journey-fill {
    position: absolute; inset-inline-start: 9px; top: 8px; width: 2px;
    background: linear-gradient(180deg, var(--terra), var(--gold));
    border-radius: 2px; height: 0; transition: height .1s linear;
}
.j-step { position: relative; padding-bottom: 30px; }
.j-step:last-child { padding-bottom: 0; }
.j-dot {
    position: absolute; inset-inline-start: -34px; top: 2px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--surface); border: 2px solid var(--line);
    display: grid; place-items: center; font-size: 10px;
    transition: background .4s var(--ease-spring), border-color .4s var(--ease-spring), box-shadow .4s var(--ease-spring);
}
.j-step.lit .j-dot {
    border-color: var(--terra); background: var(--terra); color: #fff;
    box-shadow: 0 0 0 5px var(--terra-ring);
}
.j-time { font-size: 12px; font-weight: 600; color: var(--terra); letter-spacing: .05em; }
html[lang="ar"] .j-time { letter-spacing: 0; }
.j-step h4 { margin: 3px 0 5px; font-size: 17px; }
.j-step p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.j-split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }

/* ═══════════════════════════════════════════════════════════
   8 · Metrics — animated chart + score ring
   ═══════════════════════════════════════════════════════════ */
.metrics-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.metric-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-3xl); padding: 26px; box-shadow: var(--shadow-card);
}
.metric-card h3 { margin: 0 0 4px; font-size: 18px; }
.metric-card .cap { margin: 0 0 22px; font-size: 13.5px; color: var(--ink-soft); }
.spark { width: 100%; height: 150px; display: block; }
.spark path.line {
    fill: none; stroke: var(--terra); stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: var(--len, 900); stroke-dashoffset: var(--len, 900);
    transition: stroke-dashoffset 1.8s var(--ease-out);
}
.spark.in path.line { stroke-dashoffset: 0; }
.spark path.area { fill: url(#sparkFill); opacity: 0; transition: opacity 1s ease .6s; }
.spark.in path.area { opacity: 1; }
.spark circle.pt { opacity: 0; transition: opacity .4s ease; fill: var(--terra); }
.spark.in circle.pt { opacity: 1; transition-delay: 1.5s; }
/* Presentation attributes on the inline gradient are only a no-CSS
   fallback; these rules own the colour so it tracks the theme. */
#sparkFill stop { stop-color: var(--terra); }
.bpm { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.bpm .n { font-size: 34px; font-weight: 700; }
.bpm .u { font-size: 13px; color: var(--ink-soft); }

.ring-wrap { display: grid; place-items: center; gap: 14px; }
/* Not mirrored in RTL: a percentage arc has no reading direction, and
   flipping it made the fill grow anticlockwise while the script that
   computes strokeDashoffset knew nothing about the flip. */
.ring { width: 178px; height: 178px; transform: rotate(-90deg); }
html[dir="rtl"] .ring { transform: rotate(-90deg) scaleY(-1); }
.ring circle.track { fill: none; stroke: var(--line); stroke-width: 12; }
.ring circle.val {
    fill: none; stroke: url(#ringGrad); stroke-width: 12; stroke-linecap: round;
    stroke-dasharray: 471; stroke-dashoffset: 471;
    transition: stroke-dashoffset 1.9s var(--ease-out);
}
#ringGrad stop:first-child { stop-color: var(--terra); }
#ringGrad stop:last-child  { stop-color: var(--gold); }
.ring-holder { position: relative; }
.ring-num {
    position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.ring-num .n { font-size: 38px; font-weight: 700; line-height: 1; }
.ring-num .l { font-size: 12px; color: var(--ink-soft); }

/* Count-up statistics */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.stat-box { text-align: center; padding: 22px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2xl); }
.stat-box .n { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; color: var(--terra); line-height: 1.1; }
.stat-box .l { font-size: 13px; color: var(--ink-soft); margin-top: 5px; }

/* ═══════════════════════════════════════════════════════════
   9 · Notification centre + phone
   ═══════════════════════════════════════════════════════════ */
.notif-grid { display: grid; grid-template-columns: 1fr 320px; gap: 54px; align-items: center; }
.notif-stack { display: grid; gap: 12px; }
.notif-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-xl); padding: 15px 17px; box-shadow: var(--shadow-card);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
html.js .notif-card { opacity: 0; transform: translateX(calc(var(--dir) * 34px)); }
html.js .notif-card.in { opacity: 1; transform: none; }
.notif-card .ic {
    width: 40px; height: 40px; border-radius: var(--r-md); flex: none; display: grid; place-items: center;
    background: var(--terra-10); font-size: 17px;
}
.notif-card .t { font-weight: 600; font-size: 14.5px; }
.notif-card .s { font-size: 12.5px; color: var(--ink-soft); }
.notif-card .w { margin-inline-start: auto; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }

.phone {
    width: 290px; margin-inline: auto; background: var(--charcoal);
    border-radius: 42px; padding: 11px; box-shadow: var(--shadow-deep);
}
.phone-screen {
    background: linear-gradient(180deg, var(--warm-white), var(--sand));
    border-radius: 33px; padding: 24px 18px; min-height: 470px; position: relative; overflow: hidden;
}
.phone-notch {
    width: 110px; height: 22px; background: var(--charcoal);
    border-radius: 0 0 14px 14px; margin: -24px auto 20px;
}
.phone-time { text-align: center; font-size: 12px; color: var(--ink-soft); margin-bottom: 18px; }
.phone-push {
    background: var(--push-bg, rgba(255, 250, 245, .96)); border: 1px solid var(--line);
    border-radius: var(--r-xl); padding: 13px 15px; box-shadow: var(--shadow-lift);
    display: flex; gap: 12px; align-items: center;
    transition: opacity .7s var(--ease-spring), transform .7s var(--ease-spring);
}
html[data-theme="dark"] { --push-bg: rgba(46, 28, 18, .96); }
html.js .phone-push { opacity: 0; transform: translateY(-22px); }
html.js .phone-push.in { opacity: 1; transform: none; }
.phone-push .ic { font-size: 20px; }
.phone-push .t { font-weight: 700; font-size: 13.5px; }
.phone-push .s { font-size: 12px; color: var(--ink-soft); }
.phone-tiles { display: grid; gap: 11px; margin-top: 22px; }
.phone-tile {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 13px; font-size: 13px;
    display: flex; align-items: center; gap: 10px;
}

/* ═══════════════════════════════════════════════════════════
   10 · AI — roadmap
   ═══════════════════════════════════════════════════════════ */
.badge-roadmap {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    background: rgba(212, 151, 74, .18); color: #8A5E1E;
    border: 1px solid rgba(212, 151, 74, .45);
    padding: 4px 11px; border-radius: var(--r-pill); text-transform: uppercase;
}
html[lang="ar"] .badge-roadmap { letter-spacing: 0; text-transform: none; }
.roadmap-note {
    display: flex; gap: 12px; align-items: flex-start;
    background: rgba(212, 151, 74, .1); border: 1px dashed rgba(212, 151, 74, .5);
    border-radius: var(--r-xl); padding: 14px 18px; font-size: 13.5px;
    color: #7A5A22; max-width: 620px; margin: 0 auto 40px;
}
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ai-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-3xl); padding: 26px; box-shadow: var(--shadow-card);
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.ai-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ai-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ai-card .ic {
    width: 42px; height: 42px; border-radius: var(--r-lg); display: grid; place-items: center;
    background: linear-gradient(140deg, var(--terra-12), var(--warn-bg)); font-size: 19px;
}
.ai-card h4 { margin: 0; font-size: 17px; }
.ai-card p { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-soft); }
.ai-preview {
    background: var(--ground); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 15px; font-size: 13px;
}
.ai-preview .row { display: flex; gap: 9px; align-items: center; padding: 4px 0; }
.ai-preview .row .b { color: #3E7A48; font-weight: 700; }
.ai-arrow { text-align: center; color: var(--ink-soft); font-size: 15px; padding: 3px 0; }

/* ═══════════════════════════════════════════════════════════
   11 · Security — permanently dark
   ═══════════════════════════════════════════════════════════ */
.security {
    background:
        radial-gradient(900px 420px at 50% 0%, rgba(193, 91, 58, .22), transparent 65%),
        linear-gradient(180deg, var(--dark-1), var(--dark-2));
    color: var(--on-dark-body);
}
.security .sec-title { color: var(--on-dark); }
.security .sec-sub { color: var(--on-dark-soft); }
.security .eyebrow { background: rgba(242, 200, 120, .13); color: var(--gold-light); }
.lock-hero {
    width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 26px;
    display: grid; place-items: center; font-size: 42px;
    background: linear-gradient(150deg, rgba(242, 200, 120, .2), rgba(193, 91, 58, .25));
    border: 1px solid rgba(242, 200, 120, .3);
    box-shadow: 0 0 60px -12px rgba(212, 151, 74, .5);
    animation: lockGlow 4s ease-in-out infinite;
}
@keyframes lockGlow {
    50% { box-shadow: 0 0 90px -8px rgba(212, 151, 74, .75); }
}
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sec-card {
    background: rgba(255, 250, 245, .045); border: 1px solid rgba(242, 200, 120, .16);
    border-radius: var(--r-2xl); padding: 24px;
    transition: border-color .3s ease, background .3s ease, transform .3s var(--ease-out);
}
.sec-card:hover { border-color: rgba(242, 200, 120, .4); background: rgba(255, 250, 245, .07); transform: translateY(-3px); }
.sec-card .ic { font-size: 22px; margin-bottom: 12px; display: block; }
.sec-card h4 { margin: 0 0 7px; font-size: 16.5px; color: var(--on-dark); }
.sec-card p { margin: 0; font-size: 14px; color: var(--on-dark-soft); }
.sec-card code {
    font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px;
    background: rgba(0, 0, 0, .3); padding: 2px 7px; border-radius: 5px; color: var(--gold-light);
}
.sec-foot {
    margin-top: 30px; text-align: center; font-size: 13px; color: var(--on-dark-mute);
    max-width: 640px; margin-inline: auto;
}

/* One success green everywhere it marks a confirmed/positive state. */
html[data-theme="dark"] .new .prob-mark,
html[data-theme="dark"] .price-list .tick,
html[data-theme="dark"] .price-list .tick .icon,
html[data-theme="dark"] .result-card .tick,
html[data-theme="dark"] .ai-preview .row .b,
html[data-theme="dark"] .pill.ok {
    color: #5FBD6B;
}
html[data-theme="dark"] .badge-roadmap,
html[data-theme="dark"] .demo-badge,
html[data-theme="dark"] .demo-badge .icon,
html[data-theme="dark"] .roadmap-note,
html[data-theme="dark"] .roadmap-note .icon {
    color: var(--gold-light);
}

/* ═══════════════════════════════════════════════════════════
   12 · Proof
   ═══════════════════════════════════════════════════════════ */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proof-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-2xl); padding: 26px; box-shadow: var(--shadow-card);
}
.proof-card .ic { font-size: 24px; display: block; margin-bottom: 12px; }
.proof-card h4 { margin: 0 0 6px; font-size: 16.5px; }
.proof-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════
   13 · Interactive demo
   ═══════════════════════════════════════════════════════════ */
.demo-sec { background: var(--sand); }
.demo-shell {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-3xl); box-shadow: var(--shadow-deep); overflow: hidden;
}
.demo-top {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--ground);
}
.demo-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(212, 151, 74, .2); border: 1px solid rgba(212, 151, 74, .5);
    color: #8A5E1E; font-size: 12px; font-weight: 700;
    padding: 5px 13px; border-radius: var(--r-pill);
}
.demo-switch {
    margin-inline-start: auto; display: flex; gap: 4px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-pill); padding: 4px;
}
.demo-switch button {
    border: 0; background: none; padding: 7px 16px; border-radius: var(--r-pill);
    font-size: 13px; font-weight: 600; color: var(--ink-soft);
    transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.demo-switch button.on { background: var(--terra); color: #fff; box-shadow: var(--shadow-btn); }
.demo-body { display: grid; grid-template-columns: 210px 1fr; min-height: 430px; }
.demo-side { border-inline-end: 1px solid var(--line); background: var(--ground); padding: 16px 12px; }
.demo-main { padding: 24px; }
.demo-view { display: none; }
.demo-view.on { display: block; animation: paneIn .45s var(--ease-out); }
.demo-h { margin: 0 0 4px; font-size: 19px; }
.demo-c { margin: 0 0 20px; font-size: 13.5px; color: var(--ink-soft); }
.demo-item {
    display: flex; align-items: center; gap: 13px; width: 100%; text-align: start;
    background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 14px 16px; margin-bottom: 10px;
    transition: border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.demo-item:hover { border-color: var(--terra); transform: translateX(calc(var(--dir) * 4px)); }
.demo-detail {
    margin-top: 14px; background: var(--ground); border: 1px solid var(--line);
    border-radius: var(--r-xl); padding: 18px; font-size: 14px;
    display: none;
}
.demo-detail.on { display: block; animation: paneIn .4s var(--ease-out); }
.demo-detail dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; }
.demo-detail dt { color: var(--ink-soft); font-size: 13px; }
.demo-detail dd { margin: 0; font-weight: 600; font-size: 13.5px; }

/* ═══════════════════════════════════════════════════════════
   14 · Integrations (roadmap)
   ═══════════════════════════════════════════════════════════ */
.integr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.integr {
    display: flex; align-items: center; gap: 13px;
    background: var(--surface); border: 1px dashed var(--line);
    border-radius: var(--r-xl); padding: 17px 20px;
    opacity: .92; transition: opacity .28s var(--ease-out), border-color .28s var(--ease-out), transform .28s var(--ease-out);
}
.integr:hover { opacity: 1; border-style: solid; border-color: var(--terra); transform: translateY(-3px); }
.integr .ic { font-size: 21px; }
.integr .n { font-weight: 600; font-size: 14.5px; }
.integr .s { font-size: 12px; color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════
   15 · Network visual — permanently dark
   ═══════════════════════════════════════════════════════════ */
.network { background: linear-gradient(180deg, var(--dark-1), var(--dark-3)); color: var(--on-dark-body); overflow: hidden; }
.network .sec-title { color: var(--on-dark); }
.network .sec-sub { color: var(--on-dark-soft); }
.network .eyebrow { background: rgba(242, 200, 120, .13); color: var(--gold-light); }
.net-map { width: 100%; height: auto; display: block; }
/* Animates opacity and transform, not the SVG `r` geometry attribute —
   CSS `r` is unsupported in Safari, so the nodes simply sat static there. */
.net-node {
    fill: var(--gold-light); opacity: .25;
    transform-box: fill-box; transform-origin: center;
    animation: nodeGlow 4s ease-in-out infinite;
}
@keyframes nodeGlow { 50% { opacity: .95; transform: scale(1.35); } }
.net-link {
    stroke: rgba(242, 200, 120, .35); stroke-width: 1; fill: none;
    stroke-dasharray: 5 5; animation: dash 22s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -200; } }
.net-legend { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 22px; font-size: 13.5px; color: var(--on-dark-soft); }
.net-legend span { display: inline-flex; align-items: center; gap: 8px; }
.net-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-light); display: inline-block; }

/* Both dark sections get a hairline once the page around them is dark
   too, so they still read as an intentional break rather than blending. */
html[data-theme="dark"] .security,
html[data-theme="dark"] .network { border-block: 1px solid var(--dark-hairline); }

/* ═══════════════════════════════════════════════════════════
   16 · Pricing
   ═══════════════════════════════════════════════════════════ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3xl);
    padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-card);
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.price-card.feature { border-color: var(--terra); box-shadow: var(--shadow-lift); position: relative; }
.price-card.feature::before {
    content: attr(data-tag); position: absolute; top: -12px; inset-inline-start: 50%;
    transform: translateX(calc(var(--dir) * -50%));
    background: var(--terra); color: #fff; font-size: 11.5px; font-weight: 700;
    padding: 4px 14px; border-radius: var(--r-pill); white-space: nowrap;
}
.price-card h3 { margin: 0 0 5px; font-size: 20px; }
.price-card .who { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-soft); }
.price-tag { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.price-note { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 20px; }
.price-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; }
.price-list .tick { color: #3E7A48; font-weight: 700; }
.price-card .btn { margin-top: auto; }

/* ═══════════════════════════════════════════════════════════
   17 · FAQ
   ═══════════════════════════════════════════════════════════ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.faq-q {
    width: 100%; display: flex; align-items: center; gap: 14px; text-align: start;
    background: none; border: 0; padding: 19px 22px; font-size: 16px; font-weight: 600;
}
.faq-q .chev { margin-inline-start: auto; transition: transform .4s var(--ease-spring); font-size: 14px; color: var(--terra); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { transition: max-height .45s var(--ease-out); }
html.js .faq-a { max-height: 0; overflow: hidden; }
/* Collapsed content leaves the accessibility tree and the tab order;
   overflow:hidden alone kept it reachable. */
html.js .faq-a[aria-hidden="true"] { visibility: hidden; }
html.js .faq-item.open .faq-a { visibility: visible; }
.faq-a p { margin: 0; padding: 0 22px 20px; font-size: 14.5px; color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════
   18 · Final CTA + footer
   ═══════════════════════════════════════════════════════════ */
.final {
    text-align: center;
    background:
        radial-gradient(800px 380px at 50% 100%, rgba(212, 151, 74, .28), transparent 70%),
        linear-gradient(180deg, var(--sand), var(--warm-white));
}
.final h2 { font-size: clamp(30px, 5.2vw, 58px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 18px; }
html[lang="ar"] .final h2 { letter-spacing: 0; line-height: 1.32; }
.final p { max-width: 56ch; margin: 0 auto 32px; color: var(--ink-soft); font-size: 17px; }
.final .hero-cta { margin-top: 0; }

.lp-footer { background: var(--charcoal); color: #D9C6B4; padding-block: 60px 30px; }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-brand .nav-logo { color: var(--on-dark); font-size: 19px; margin-bottom: 12px; }
.foot-brand p { margin: 0 0 18px; font-size: 14px; color: var(--on-dark-mute); max-width: 34ch; }
.foot-social { display: flex; gap: 10px; }
.foot-social a {
    width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center;
    background: rgba(255, 250, 245, .06); border: 1px solid rgba(255, 250, 245, .1);
    transition: background .25s ease, border-color .25s ease, transform .25s ease; font-size: 15px;
}
.foot-social a:hover { background: var(--terra); border-color: var(--terra); transform: translateY(-2px); }
.foot-col h5 { margin: 0 0 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); }
html[lang="ar"] .foot-col h5 { letter-spacing: 0; text-transform: none; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.foot-col a { color: var(--on-dark-mute); transition: color .2s ease; }
.foot-col a:hover { color: var(--gold-light); }
.foot-bottom {
    margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 250, 245, .1);
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: 13px; color: var(--on-dark-faint);
}

/* ═══════════════════════════════════════════════════════════
   Product tour
   ═══════════════════════════════════════════════════════════ */
.tour-btn {
    position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 95;
    display: inline-flex; align-items: center; gap: 9px;
    background: linear-gradient(140deg, var(--terra), var(--deep-terra)); color: #fff;
    border: 0; border-radius: var(--r-pill); padding: 13px 22px;
    font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px -6px var(--tour-glow, rgba(193, 91, 58, .55));
    transform: translateY(90px); opacity: 0;
    transition: transform .5s var(--ease-spring), opacity .4s ease, box-shadow .25s ease;
}
html[data-theme="dark"] { --tour-glow: rgba(217, 124, 82, .5); }
.tour-btn.in { transform: none; opacity: 1; }
.tour-btn:hover { box-shadow: 0 14px 40px -6px var(--tour-glow); }

.tour-veil {
    position: fixed; inset: 0; z-index: 96; background: rgba(42, 24, 16, .58);
    backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.tour-veil.on { opacity: 1; pointer-events: auto; }
.tour-spot {
    position: fixed; z-index: 97; border-radius: var(--r-2xl); pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(42, 24, 16, .58), 0 0 0 3px var(--gold-light);
    transition: top .5s var(--ease-out), left .5s var(--ease-out), width .5s var(--ease-out), height .5s var(--ease-out), opacity .5s var(--ease-out);
    opacity: 0;
}
.tour-spot.on { opacity: 1; }
.tour-pop {
    position: fixed; z-index: 98; width: min(330px, calc(100vw - 32px));
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2xl);
    padding: 20px 22px; box-shadow: var(--shadow-deep);
    opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.tour-pop.on { opacity: 1; pointer-events: auto; transform: none; }
.tour-step-n { font-size: 12px; font-weight: 700; color: var(--terra); letter-spacing: .08em; }
html[lang="ar"] .tour-step-n { letter-spacing: 0; }
.tour-pop h4 { margin: 6px 0 7px; font-size: 17px; }
.tour-pop p { margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); }
.tour-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tour-nav .btn { flex: 1; }
.tour-nav .btn:disabled { opacity: .45; cursor: not-allowed; }
.tour-skip { background: none; border: 0; font-size: 13px; color: var(--ink-soft); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   Responsive — mobile is redesigned, not shrunk
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .plat-grid { grid-template-columns: 1fr; gap: 26px; min-height: 0; }
    .plat-steps, .plat-viewport { position: static; }
    .notif-grid { grid-template-columns: 1fr; gap: 40px; }
    .metrics-grid { grid-template-columns: 1fr; }
    .j-split { grid-template-columns: 1fr; gap: 40px; }
    .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .proof-grid, .integr-grid { grid-template-columns: 1fr 1fr; }
    .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-burger { display: inline-flex; }
    .lp-nav.open { height: auto; padding-bottom: 14px; }
    .lp-nav.open .nav-inner { flex-wrap: wrap; }
    .lp-nav.open .nav-links {
        display: grid; gap: 4px; width: 100%; order: 5; margin: 10px 0 0;
        padding-top: 12px; border-top: 1px solid var(--line);
    }
    .lp-nav.open .nav-links a { padding: 9px 4px; font-size: 15px; }
    .nav-actions { margin-inline-start: auto; }

    /* The dashboard mockup STAYS on mobile. It used to be display:none
       here, with the substitute (.hero-phone / .hero-floats) never
       actually built — so the hero simply lost its centrepiece on every
       phone, and the guided tour's first step pointed at a 0×0 element.
       The .dash rules below already reflow it into a stacked layout. */
    .hero-dash-wrap { display: flex; flex-direction: column; gap: 12px; }
    .float-widget {
        position: static; width: 100%; opacity: 1; transform: none;
        animation: none;
    }
    .float-widget.settled { animation: none; }
    .hero-dash { order: -1; }

    .prob-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .ai-grid, .sec-grid { grid-template-columns: 1fr; }
    .demo-body { grid-template-columns: 1fr; }
    .demo-side { border-inline-end: 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; overflow-x: auto; }
    .demo-side .dash-nav-item { width: auto; white-space: nowrap; }
    .dash-body { grid-template-columns: 1fr; min-height: 0; }
    .dash-side { border-inline-end: 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; overflow-x: auto; }
    .dash-side .dash-side-title { display: none; }
    .dash-nav-item { width: auto; white-space: nowrap; }
    .dash-row { grid-template-columns: 1fr; }
    .reveal-dash { transform: none !important; }
    .cursor-demo { padding: 22px; }
    .tour-btn { inset-inline-end: 12px; bottom: 12px; padding: 11px 18px; font-size: 13px; }
}

@media (max-width: 560px) {
    :root { --wrap-pad: 18px; }
    .proof-grid, .integr-grid, .foot-top { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .hero-cta .btn { width: 100%; }
    .journey { padding-inline-start: 28px; }
    .j-dot { inset-inline-start: -28px; }
}

/* ═══════════════════════════════════════════════════════════
   Reduced motion — everything resolves to its final state.
   tokens.css already zeroes every duration AND delay; these rules
   exist because animation-fill-mode:forwards states are never
   reached when the animation is cut to nothing.
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .stage, .hero-dash, .float-widget, .reveal, .notif-card, .phone-push, .cursor-result {
        opacity: 1 !important; transform: none !important;
    }
    .spark path.line { stroke-dashoffset: 0 !important; }
    .spark path.area, .spark circle.pt { opacity: 1 !important; }
    .reveal-dash { transform: none !important; }
    #ambientGlow, .fake-cursor { display: none !important; }
    .journey-fill { height: 100% !important; }
    .net-node { opacity: .8 !important; }
}
