/* ═══════════════════════════════════════════════════════════════
   PAGE: Automation (WhatsApp) | Namespace: au-* | File: /static/css/shell/mani-automation-ltr.css
   Logical properties throughout → RTL-safe without overrides.
   ═══════════════════════════════════════════════════════════════ */

/* ── 01. Root ── */
.pg-automation {
    --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --app-accent: var(--green);
    --au-accent: var(--green);
    --au-accent-l: var(--green-l);
    font-family: var(--sans);
    color: var(--ink);
    line-height: 1.6;
}
.pg-automation a { text-decoration: none; color: inherit; }
.pg-automation img { max-width: 100%; display: block; }

/* ── 03. Hero ──
   Was a heavy flat green-l wash. Now the same subtle gradient the .appx pages use
   (accent at ~7% fading to white) so the page reads clean and consistent with the
   rest of the site — no solid green band. */
.au-hero { padding-block: 84px 64px; background: linear-gradient(180deg, color-mix(in srgb, var(--au-accent) 7%, var(--white)), var(--white)); border-block-end: 1px solid var(--mist); }

/* ── 07. Connect band ── */
.au-connect { background: var(--ink); color: var(--white); border-radius: 22px; padding: 40px; text-align: center; }
.au-connect h2 { font-size: 30px; font-weight: 800; margin: 0 0 10px; }
.au-connect p { font-size: 17px; color: var(--mist); margin: 0 auto; max-width: 640px; }
.au-connect-flow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-block-start: 24px; }
.au-chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--white); font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 100px; }

/* ── Live simulation: 3 WhatsApp conversations, one per business type ── */
.au-sim3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1120px; margin-inline: auto; }
.au-chat { background: var(--snow); border: 2px solid var(--mist); border-radius: var(--r-xl); box-shadow: 0 14px 40px rgba(2, 32, 20, .10); overflow: hidden; display: flex; flex-direction: column; }
/* Chat header: was a solid green bar. Softened to a light green tint with green
   text + the WhatsApp icon, so the card still reads as WhatsApp without a full
   solid-green block. */
.au-chat-top { background: var(--green-l); color: var(--green-d); font-weight: 700; font-size: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 9px; border-block-end: 1px solid var(--green-xl); }
.au-chat-top i { color: var(--green); }
.au-chat-body { padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; background: var(--snow); flex: 1; min-block-size: 250px; }
.au-msg { max-inline-size: 88%; padding: 9px 13px; border-radius: 15px; font-size: 14px; line-height: 1.5; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.au-msg--in { align-self: flex-start; background: var(--white); color: var(--ink); border-end-start-radius: 5px; }
.au-msg--out { align-self: flex-end; background: var(--green-xl); color: var(--green-d); border-end-end-radius: 5px; }
/* interactive list menu bubble (bot side) — the options the customer picks from */
.au-menu { align-self: flex-end; max-inline-size: 92%; background: var(--snow); border: 2px solid var(--mist); border-radius: var(--r-xl); padding: 0; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.au-menu-t { display: block; padding: 8px 12px; font-size: 12.5px; font-weight: 700; color: var(--green-d); background: var(--green-xl); }
.au-menu-i { display: block; padding: 8px 12px; font-size: 13.5px; color: var(--ink); border-block-start: 1px solid var(--mist); }
.au-sim3-foot { text-align: center; margin-block-start: 28px; font-size: 17px; font-weight: 700; color: var(--ink); }
.au-sim3-foot span { color: var(--au-accent); }
/* reveal: bubbles rise in top-to-bottom, all 3 chats in parallel */
.au-sim.is-primed .au-msg { opacity: 0; transform: translateY(8px); }
.au-sim.is-running .au-chat-body .au-msg { animation: auReveal .4s ease forwards; }
.au-sim.is-running .au-chat-body .au-msg:nth-child(1) { animation-delay: .2s; }
.au-sim.is-running .au-chat-body .au-msg:nth-child(2) { animation-delay: .75s; }
.au-sim.is-running .au-chat-body .au-msg:nth-child(3) { animation-delay: 1.3s; }
.au-sim.is-running .au-chat-body .au-msg:nth-child(4) { animation-delay: 1.85s; }
@keyframes auReveal { to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) { .au-sim3 { grid-template-columns: 1fr; max-width: 440px; } }
@media (prefers-reduced-motion: reduce) {
    .au-sim.is-primed .au-msg { opacity: 1; transform: none; }
    .au-sim.is-running .au-msg { animation: none; }
}
