/* marhela.com features + integrations (owner's pick «د», 2026-09-22).
   Source of truth: docs/designs/automation-showcase (common.css, automation.css, integrations.css). */
/* Automation showcase mockups (2026-09-22). Shared by variants A, B and C.
   Sits on top of the real controlplane/static/css/landing.css, scoped under .ax inside .mh.
   Motion follows emil-design-eng + transitions-dev tokens: ease-out for entries, <=300ms for UI,
   explanatory scenes may run longer, reduced motion keeps only opacity. No grey text: hierarchy
   is size and weight, never a faded colour (owner, 2026-09-16). */

.ax {
  --ax-bg: #f9faf8; --ax-surface: #fff; --ax-surface-2: #f3f5f8; --ax-line: #e3e7ee; --ax-line-2: #d4dae4;
  --ax-ink: #0c1e40; --ax-navy: #0c1e40; --ax-on-navy: #fbfaf6; --ax-gold: #dfb26c; --ax-gold-ink: #8a5a1c;
  --ax-ok: #1f8a4c; --ax-ok-soft: #e6f4ec; --ax-warn: #9a6a00; --ax-warn-soft: #fbf1d9; --ax-info-soft: #e9eff8;
  --ax-wa: #e7f7ee; --ax-wa-out: #d9fdd3; --ax-wa-bg: #efeae2; --ax-wa-head: #008069;
  --ax-shadow: 0 0 0 1px oklch(0 0 0 / .06), 0 1px 2px -1px oklch(0 0 0 / .06), 0 8px 24px -8px oklch(0.2 0.05 260 / .14);
  --ax-ease-out: cubic-bezier(.23, 1, .32, 1); --ax-ease-io: cubic-bezier(.77, 0, .175, 1); --ax-smooth: cubic-bezier(.22, 1, .36, 1);
  --ax-r: 20px;
  position: relative; background: var(--ax-bg); color: var(--ax-ink); padding-block: 120px;
}
[data-theme="dark"] .ax {
  --ax-bg: #0a1224; --ax-surface: #101a30; --ax-surface-2: #17223b; --ax-line: #1f2b45; --ax-line-2: #2a3857;
  --ax-ink: #e8edf7; --ax-navy: #e8edf7; --ax-on-navy: #0c1e40; --ax-gold: #e5bd7b; --ax-gold-ink: #e5bd7b;
  --ax-ok: #5cc97a; --ax-ok-soft: #12291c; --ax-warn: #f2c94c; --ax-warn-soft: #3a3218; --ax-info-soft: #16284a;
  --ax-wa: #12291c; --ax-wa-out: #005c4b; --ax-wa-bg: #0b141a; --ax-wa-head: #202c33;
  --ax-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 1px 2px -1px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);
}
[data-theme="dark"] .ax .section-heading h2 { color: var(--ax-ink); }
[data-theme="dark"] .ax .section-heading h2 span { color: #93b7de; }
[data-theme="dark"] .ax .section-heading p { color: var(--ax-ink); }
.ax .section-heading p { color: var(--ax-ink); }
.ax .section-kicker { color: var(--ax-gold-ink); }

/* ---------- mini surfaces shared by every variant ---------- */
.ax-card { background: var(--ax-surface); color: var(--ax-ink); border-radius: var(--ax-r); box-shadow: var(--ax-shadow); }
.ax-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ax-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--ax-surface-2); color: var(--ax-ink); white-space: nowrap; }
.ax-chip.ok { background: var(--ax-ok-soft); color: var(--ax-ok); }
.ax-chip.warn { background: var(--ax-warn-soft); color: var(--ax-warn); }
.ax-chip.info { background: var(--ax-info-soft); }
.ax-chip.gold { background: color-mix(in oklab, var(--ax-gold) 22%, transparent); color: var(--ax-gold-ink); }

/* WhatsApp chat. Incoming (customer) sits on the right in RTL, outgoing (office) on the left.
   Each bubble grows from its own tail corner, never from the centre (origin-aware). */
.ax-wa { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--ax-wa-bg); min-height: 380px; }
.ax-wa-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ax-wa-head); color: #fff; }
.ax-wa-head i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); font-style: normal; font-weight: 700; font-size: 13px; }
.ax-wa-head b { display: block; font-size: 14px; line-height: 1.3; }
.ax-wa-head small { display: block; font-size: 11px; font-weight: 600; color: #fff; }
.ax-wa-body { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 14px 12px 16px; }
.ax-b { position: relative; max-width: 82%; padding: 7px 11px 6px; border-radius: 12px; font-size: 13px; line-height: 1.75; color: #111b21; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.ax-b.in { align-self: flex-start; background: #fff; border-start-start-radius: 4px; transform-origin: top right; }
.ax-b.out { align-self: flex-end; background: var(--ax-wa-out); border-start-end-radius: 4px; transform-origin: top left; }
[data-theme="dark"] .ax .ax-b { color: #e9edef; }
[data-theme="dark"] .ax .ax-b.in { background: #202c33; }
.ax-b time { display: block; margin-top: 1px; font-size: 10px; font-weight: 600; text-align: end; color: inherit; }
.ax-b .who { display: block; font-size: 11px; font-weight: 800; color: var(--ax-wa-head); }
[data-theme="dark"] .ax .ax-b .who { color: #53bdeb; }
.ax-quick { display: flex; flex-wrap: wrap; gap: 5px; align-self: flex-end; max-width: 86%; justify-content: flex-end; transform-origin: top left; }
.ax-quick span { padding: 5px 12px; border-radius: 999px; background: var(--ax-surface); color: #027eb5; font-size: 12px; font-weight: 700; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
[data-theme="dark"] .ax .ax-quick span { background: #202c33; color: #53bdeb; }
.ax-quick span.tap { background: #027eb5; color: #fff; }
.ax-handoff { align-self: center; margin-top: 4px; padding: 4px 12px; border-radius: 8px; background: #fff5c4; color: #54470f; font-size: 11px; font-weight: 700; }
[data-theme="dark"] .ax .ax-handoff { background: #3a3218; color: #f2d98a; }

/* Rows used by the email, CV, reminder and alert scenes. */
.ax-rows { display: grid; gap: 8px; }
.ax-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--ax-surface-2); font-size: 13px; }
.ax-row > span:first-child { font-weight: 600; }
.ax-row b { font-weight: 800; }
.ax-row .val { position: relative; min-width: 92px; text-align: start; }

/* The approval line: the one sentence every scene ends on. */
.ax-approve { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--ax-line-2); font-size: 13px; font-weight: 700; }
.ax-approve .who { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 50%; background: var(--ax-navy); color: var(--ax-on-navy); font-size: 12px; font-weight: 800; }
.ax-approve .state { position: relative; display: grid; flex: 1; }
.ax-approve .state > span { grid-area: 1 / 1; transition: opacity 250ms var(--ax-smooth), transform 250ms var(--ax-smooth), filter 250ms var(--ax-smooth); }
.ax-approve .state .after { opacity: 0; transform: translateY(4px); filter: blur(2px); color: var(--ax-ok); }
.ax-approve.done { border-style: solid; border-color: color-mix(in oklab, var(--ax-ok) 45%, transparent); background: var(--ax-ok-soft); }
.ax-approve.done .state .before { opacity: 0; transform: translateY(-4px); filter: blur(2px); }
.ax-approve.done .state .after { opacity: 1; transform: none; filter: none; }
.ax-check { width: 22px; height: 22px; flex: none; color: var(--ax-ok); }
.ax-check path { stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 400ms var(--ax-ease-out) 120ms; }
.ax-approve.done .ax-check path { stroke-dashoffset: 0; }

/* Shimmer while the system reads (transitions-dev 15, pure CSS). */
.ax-shimmer { color: transparent; background: linear-gradient(90deg, var(--ax-ink) 0%, var(--ax-ink) 40%, color-mix(in oklab, var(--ax-ink) 25%, transparent) 50%, var(--ax-ink) 60%, var(--ax-ink) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: ax-shimmer 1.4s linear infinite; }
@keyframes ax-shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* Scene steps. A step is hidden until the scene reaches it, then rises 6px out of a 2px blur.
   Transitions, not keyframes, so a replay mid-scene retargets instead of jumping. */
.ax-scene [data-at] { opacity: 0; transform: translateY(6px) scale(.97); filter: blur(2px);
  transition: opacity 260ms var(--ax-ease-out), transform 260ms var(--ax-ease-out), filter 260ms var(--ax-ease-out); }
.ax-scene [data-at].on { opacity: 1; transform: none; filter: none; }
.ax-scene.static [data-at] { opacity: 1; transform: none; filter: none; transition: none; }
.ax-fill { display: inline-block; }
.ax-fill .ph { display: inline-block; min-width: 70px; height: 10px; border-radius: 5px; background: var(--ax-line-2); vertical-align: middle; }
.ax-fill .v { display: none; }
.ax-fill.on .ph { display: none; }
.ax-fill.on .v { display: inline; animation: ax-pop 300ms var(--ax-ease-out); }
@keyframes ax-pop { from { opacity: 0; transform: translateY(4px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.ax-fill.on .v { display: inline-block; }

/* Streaming words (transitions-dev 30). */
.ax-stream .w { display: inline-block; opacity: 0; filter: blur(3px); transition: opacity 220ms ease-out, filter 220ms ease-out; }
.ax-stream .w.on { opacity: 1; filter: none; }

/* Buttons inside the page (real ones only: tabs, replay, theme). Press feedback 0.97. */
.ax-press { transition: transform 160ms var(--ax-ease-out), background-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.ax-press:active { transform: scale(.97); }
.ax :focus-visible { outline: 2px solid var(--ax-gold); outline-offset: 3px; border-radius: 10px; }


@media (prefers-reduced-motion: reduce) {
  .ax-scene [data-at] { transform: none; filter: none; transition: opacity 200ms ease; }
  .ax-stream .w { filter: none; }
  .ax-fill.on .v { animation: none; }
  .ax-shimmer { animation: none; color: var(--ax-ink); background: none; }
  .ax-press:active { transform: none; }
  .ax-check path { transition: none; }
  .ax-approve .state > span { transform: none !important; filter: none !important; }
}
@media (max-width: 767px) { .ax { padding-block: 80px; } }
.ax-scene .ax-fill[data-at] { opacity: 1; transform: none; filter: none; }
/* Review fixes: labels never break mid-name; a long chip drops under its label instead. */
.ax-row { flex-wrap: wrap; row-gap: 6px; }
.ax-row > span:first-child { white-space: nowrap; }

/* Variant D (owner's direction, 2026-09-22): A's scroll story with B's navy stage.
   The visitor scrolls the feature list on the right; the navy stage on the left stays put and
   shows the feature being read, playing it once. One orchestrated moment per step: the stage
   swaps (old scene leaves fast, 150ms; new one enters 300ms ease-out through a 2px blur), and
   the progress bars on the stage fill to the step. Exits are faster than entries (emil). */
.d-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; margin-top: 64px; align-items: start; }

/* ---- the reading column (right in RTL) ---- */
.d-steps { position: relative; }
.d-steps::before, .d-steps::after { content: ""; position: absolute; top: 0; right: 11px; width: 2px; height: 100%; border-radius: 2px; }
.d-steps::before { background: var(--ax-line); }
.d-steps::after { background: var(--ax-navy); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform 464ms var(--ax-smooth); }
.d-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: center; min-height: 72vh; padding-right: 48px; }
.d-step:first-child { min-height: 60vh; align-content: start; padding-top: 8vh; }
.d-step::before { content: ""; position: absolute; top: calc(50% - 6px); right: 4px; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--ax-bg); box-shadow: inset 0 0 0 2px var(--ax-line-2); transition: background-color 200ms ease, box-shadow 200ms ease; }
.d-step:first-child::before { top: calc(8vh + 6px); }
.d-step.on::before, .d-step.past::before { background: var(--ax-navy); box-shadow: 0 0 0 5px var(--ax-bg); }
.d-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--ax-gold-ink); }
.d-tag .ax-ico { width: 20px; height: 20px; }
.d-step h3 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; line-height: 1.35; }
.d-step p { max-width: 40ch; font-size: 18px; line-height: 1.8; font-weight: 600; }
.d-step ul { display: grid; gap: 8px; }
.d-step li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 700; line-height: 1.7; }
.d-step li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 6px; background: var(--ax-ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.d-keep { justify-self: start; display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: color-mix(in oklab, var(--ax-gold) 18%, transparent); font-size: 14px; font-weight: 800; }
[data-theme="dark"] .d-keep { background: var(--ax-warn-soft); color: var(--ax-gold); }
.d-inline { display: none; }
.d-narrow { display: none; }

/* ---- the stage (left in RTL), sticky ---- */
/* The landing header is fixed (64px condensed, 60px on a phone), so the stage pins below it. */
.d-stage { position: sticky; top: max(84px, calc(50vh - 300px)); }
.d-frame { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); height: min(640px, calc(100vh - 104px)); overflow: hidden; border-radius: 28px; background: #0c1e40; color: #fff; }
[data-theme="dark"] .d-frame { background: #060d1c; box-shadow: inset 0 0 0 1px var(--ax-line); }
.d-frame::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at 50% 55%, #000 30%, transparent 78%); pointer-events: none; }
.d-bar { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: center; padding: 20px 22px 0; }
.d-label { position: relative; display: grid; font-size: 15px; font-weight: 800; }
.d-label > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; transition: opacity 150ms ease-in-out, transform 150ms ease-in-out, filter 150ms ease-in-out; }
.d-label > span.out { opacity: 0; transform: translateY(-4px); filter: blur(2px); }
.d-label > span.in { opacity: 0; transform: translateY(4px); filter: blur(2px); }
.d-count { font-size: 13px; font-weight: 700; }
.d-segs { grid-column: 1 / -1; display: grid; grid-auto-flow: column; gap: 4px; }
.d-segs i { height: 3px; border-radius: 2px; background: rgba(255,255,255,.16); overflow: hidden; }
.d-segs i::after { content: ""; display: block; height: 100%; background: #dfb26c; transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ax-ease-out); }
.d-segs i.on::after { transform: scaleX(1); }
.d-slot { position: relative; z-index: 1; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); align-items: center; padding: 18px 28px 28px; min-height: 0; }
.d-slot > [data-scene] { grid-area: 1 / 1; width: 100%; max-width: 460px; margin-inline: auto; opacity: 0; visibility: hidden; transform: translateY(-6px); filter: blur(2px);
  transition: opacity 150ms ease-out, transform 150ms ease-out, filter 150ms ease-out, visibility 0s 150ms; }
.d-slot > [data-scene].on { opacity: 1; visibility: visible; transform: none; filter: none;
  transition: opacity 300ms var(--ax-ease-out) 60ms, transform 300ms var(--ax-ease-out) 60ms, filter 300ms var(--ax-ease-out) 60ms, visibility 0s; }
.d-slot > [data-scene].enter { transform: translateY(10px); }
.d-replay { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 800; }
@media (hover: hover) and (pointer: fine) { .d-replay:hover { background: rgba(255,255,255,.18); } }

/* ---- extra scene parts ---- */
.dx-list { display: grid; }
.dx-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--ax-line); font-size: 13px; }
.dx-item:first-child { border-top: 0; }
.dx-av { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--ax-surface-2); font-weight: 800; font-size: 13px; }
.dx-item b { display: block; font-size: 13.5px; font-weight: 800; }
.dx-item small { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-meta { display: grid; justify-items: end; gap: 4px; font-size: 11px; font-weight: 700; }
.dx-badge { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 6px; border-radius: 10px; background: #25d366; color: #0b141a; font-size: 11px; font-weight: 800; }
.dx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; font-size: 14px; font-weight: 800; }
.dx-head b { display: inline-flex; align-items: center; gap: 8px; }
.ax-swap { display: inline-grid; }
.ax-swap > span { grid-area: 1 / 1; transition: opacity 200ms ease-in-out, transform 200ms ease-in-out, filter 200ms ease-in-out; }
.ax-swap > .b { opacity: 0; transform: translateY(4px); filter: blur(2px); }
.ax-swap.on > .a { opacity: 0; transform: translateY(-4px); filter: blur(2px); }
.ax-swap.on > .b { opacity: 1; transform: none; filter: none; }
.ax-scene .ax-swap[data-at] { opacity: 1; transform: none; filter: none; }
.dx-editor { padding: 12px 14px; border-radius: 12px; background: var(--ax-surface-2); font-size: 13.5px; line-height: 2.1; font-weight: 600; }
.dx-var { display: inline-flex; align-items: center; padding: 0 8px; margin: 0 2px; border-radius: 6px; background: color-mix(in oklab, var(--ax-gold) 30%, transparent); color: var(--ax-gold-ink); font-size: 12px; font-weight: 800; line-height: 1.8; }
.dx-label { margin: 12px 2px 6px; font-size: 12px; font-weight: 800; }
.dx-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-btns span { padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ax-line-2); font-size: 12px; font-weight: 700; }
.dx-preview { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border-start-end-radius: 4px; background: var(--ax-wa-out); color: #111b21; font-size: 13px; line-height: 1.8; }
[data-theme="dark"] .dx-preview { color: #e9edef; }
.dx-mail { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--ax-line); font-size: 13px; }
.dx-mail:first-of-type { border-top: 0; }
.dx-mail b { font-weight: 800; font-size: 13px; }
.dx-mail bdi { font-size: 12px; font-weight: 600; }
.dx-mail .st { grid-row: span 2; display: grid; justify-items: end; }
.dx-mail .st > * { grid-area: 1 / 1; }
.dx-mail.dx-out.gone b, .dx-mail.dx-out.gone bdi { text-decoration: line-through; text-decoration-thickness: 1px; }
.dx-bar { position: relative; height: 8px; border-radius: 4px; background: var(--ax-surface-2); overflow: hidden; }
.dx-bar i { position: absolute; inset: 0; background: var(--ax-navy); border-radius: 4px; transform: scaleX(0); transform-origin: right; transition: transform 900ms var(--ax-ease-out); }
.dx-bar.on i { transform: scaleX(.83); }
.dx-bar.on.ext i { transform: scaleX(.57); }
.dx-dates { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; font-weight: 700; }
.dx-stack { display: flex; flex-direction: column-reverse; gap: 8px; }
.dx-note { color: var(--ax-ink); display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 14px; background: var(--ax-surface); box-shadow: var(--ax-shadow); font-size: 13px; }
.dx-note b { font-weight: 800; font-size: 13px; display: block; }
.dx-note small { font-size: 11.5px; font-weight: 600; display: block; }
.dx-note time { font-size: 11px; font-weight: 700; white-space: nowrap; }
.dx-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ax-navy); }
.dx-dot.gold { background: var(--ax-gold); } .dx-dot.red { background: #d9534a; } .dx-dot.green { background: #25d366; }
.dx-out { transition: background-color 260ms ease; }
.dx-out.gone { background: var(--ax-surface-2); }

/* ---- Phone first (owner, 2026-09-22: nearly every visitor arrives on a phone) ----
   The same experience, not a fallback: the navy stage pins to the top 56% of the screen and the
   text scrolls up underneath it. The step whose text crosses the reading line (75% down) drives
   the stage. Every scene shows whole: set tighter here, then shrunk to fit if it must be. */
@media (max-width: 960px) {
  .d-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 32px; }
  .d-wide { display: none; } .d-narrow { display: inline; }
  .d-stage { order: -1; position: sticky; top: calc(60px + env(safe-area-inset-top, 0px)); z-index: 3; margin-inline: -16px; padding: 6px 12px 0; background: var(--ax-bg); }
  .d-stage::after { content: ""; position: absolute; inset: 100% 0 auto; height: 36px; background: linear-gradient(var(--ax-bg), transparent); pointer-events: none; }
  .d-frame { height: 52svh; min-height: 360px; max-height: 540px; border-radius: 22px; }
  .d-bar { padding: 12px 14px 0; gap: 8px 10px; }
  .d-label { font-size: 14px; }
  .d-replay { min-height: 32px; padding: 0 10px; }
  .d-slot { padding: 10px 10px 12px; overflow: hidden; }
  .d-slot > [data-scene] { max-width: none; align-self: start; }
  /* The whole conversation always shows, first message included (owner, 2026-09-22: the
     customer's opening line was cut off). Chats are set tighter on a phone, then every scene
     shrinks to fit the stage; nothing is clipped. */
  .d-slot .ax-wa { min-height: 0; }
  .d-slot .ax-wa-head { padding: 8px 12px; }
  .d-slot .ax-wa-head i { width: 28px; height: 28px; }
  .d-slot .ax-wa-body { gap: 5px; padding: 10px 10px 12px; }
  .d-slot .ax-b { padding: 5px 10px; line-height: 1.6; }
  .d-slot .ax-b time { display: inline-block; margin-inline-start: 8px; margin-top: 0; }
  .d-slot .ax-b .who { font-size: 10.5px; }
  .d-slot .ax-quick span { padding: 3px 10px; }
  .d-steps { padding-top: 36px; }
  .d-step, .d-step:first-child { min-height: 40svh; padding: 8px 40px 40px 0; align-content: start; gap: 10px; }
  .d-step:last-child { min-height: 40svh; padding-bottom: 8svh; }
  .d-step::before, .d-step:first-child::before { top: 12px; }
  .d-step h3 { font-size: 25px; }
  .d-step p { font-size: 16px; line-height: 1.85; }
  .d-step ul { display: none; }
  .d-keep { font-size: 13px; padding: 8px 12px; }
}
@media (max-width: 960px) and (max-height: 640px) { .d-frame { height: 50svh; min-height: 300px; } }
@media (prefers-reduced-motion: reduce) {
  .d-slot > [data-scene], .d-slot > [data-scene].on, .d-slot > [data-scene].enter { transform: none; filter: none; }
  .d-steps::after, .d-segs i::after, .dx-bar i { transition: none; }
  .d-label > span { transform: none !important; filter: none !important; }
  .ax-swap > span { transform: none !important; filter: none !important; }
}

/* «قريبًا»: a feature the owner has asked for that is not built yet. */
.d-soon { display: inline-flex; align-items: center; margin-inline-start: 4px; padding: 1px 10px; border-radius: 999px; background: var(--ax-navy); color: var(--ax-on-navy); font-size: 12px; font-weight: 800; }
.dx-pay { display: grid; gap: 8px; margin-top: 8px; }
.dx-paybtn { display: flex; justify-content: center; padding: 8px; border-radius: 10px; background: #fff; color: #027eb5; font-weight: 800; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
[data-theme="dark"] .dx-paybtn { background: #202c33; color: #53bdeb; }
.dx-paylogos { display: flex; gap: 8px; justify-content: center; align-items: center; }
.dx-paylogos img { height: 16px; width: auto; }
[data-theme="dark"] .dx-paylogos img { filter: invert(1); }

/* «يتكامل مع أدواتك» (owner, 2026-09-22). One card per kind of tool; the logos are the content.
   Only WhatsApp is live; the rest say «قريبًا» until they are built. */
.ig { padding-block: 0 120px; }
.ig-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.ig-card { grid-column: span 2; display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: 24px; background: var(--ax-surface); box-shadow: var(--ax-shadow); }
.ig-card:nth-child(4), .ig-card:nth-child(5) { grid-column: span 3; }
.ig-card:first-child { background: var(--ax-navy); color: var(--ax-on-navy); }
.ig-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ig-card h3 { font-size: 20px; font-weight: 800; }
.ig-card p { font-size: 15px; font-weight: 600; }
.ig-live, .ig-soon { flex: none; padding: 2px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.ig-live { background: #25D366; color: #0b141a; }
.ig-soon { background: var(--ax-surface-2); color: var(--ax-ink); }
.ig-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ig-tile { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px oklch(0 0 0 / .08), 0 2px 6px -2px oklch(0 0 0 / .1);
  transition: transform 200ms var(--ax-ease-out); }
.ig-tile svg, .ig-tile img { width: 28px; height: 28px; object-fit: contain; }
.ig-tile.snap { background: #FFFC00; }
@media (hover: hover) and (pointer: fine) { .ig-tile:hover { transform: translateY(-2px); } }
/* Tiles stay white in both themes, like app icons: every brand mark is drawn for a light ground. */
[data-theme="dark"] .ig-tile { box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
[data-theme="dark"] .ig-tile.snap { background: #FFFC00; }
[data-theme="dark"] .ig-card:first-child { background: #0c1e40; color: #fff; box-shadow: inset 0 0 0 1px var(--ax-line); }
.ig-card:first-child .ig-tile { background: #fff; }
/* Logos arrive once, in a short stagger, when the grid scrolls in. Hidden only once the script
   has armed the grid, so a script that never runs leaves every logo visible. */
.ig-grid.ig-armed .ig-tile { opacity: 0; transform: translateY(6px); }
.ig-grid.in .ig-tile { opacity: 1; transform: none; transition: opacity 300ms var(--ax-ease-out) calc(var(--i) * 40ms), transform 300ms var(--ax-ease-out) calc(var(--i) * 40ms); }
@media (max-width: 960px) {
  .ig-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .ig-card, .ig-card:nth-child(4), .ig-card:nth-child(5) { grid-column: auto; padding: 20px; }
  .ig-logos { gap: 8px; }
  .ig-tile { width: 44px; height: 44px; border-radius: 12px; }
  .ig-tile svg, .ig-tile img { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ig-grid.ig-armed .ig-tile, .ig-grid.in .ig-tile { transform: none; } }
