/* ============================================================
   KSA product demos — shared interactive "console device" styling
   Loaded only on the /ksa-* product pages. Uses global tokens
   from styles.css (:root). Everything scoped under .ksa- to keep
   the rest of the site untouched.
   ============================================================ */

.ksa-demo { margin-top: var(--space-2xl); }

/* ---- The dark device surface (echoes the ops-console language) ---- */
.ksa-device {
  background: oklch(17.5% 0.006 70);
  color: var(--paper-dim);
  border: 1px solid var(--ink-700);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ksa-device__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-700);
  background: oklch(15.5% 0.006 70);
}
.ksa-device__title {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper-dim);
}
.ksa-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-bright); }
.ksa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stone-bright);
  box-shadow: 0 0 0 0 oklch(75% 0.034 74 / 0.6); animation: kael-pulse 2.4s var(--ease-out-expo) infinite; }
@media (prefers-reduced-motion: reduce) { .ksa-dot { animation: none; } }

.ksa-device__body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.ksa-device__body > * { padding: clamp(18px, 1rem + 1.4vw, 30px); }
.ksa-device__in { border-right: 1px solid var(--ink-700); }
@media (max-width: 760px) {
  .ksa-device__body { grid-template-columns: 1fr; }
  .ksa-device__in { border-right: 0; border-bottom: 1px solid var(--ink-700); }
}

/* ---- Inputs ---- */
.ksa-label { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--stone-bright); margin-bottom: 10px; }
.ksa-textarea, .ksa-input {
  width: 100%; background: oklch(13.5% 0.006 70); color: var(--paper);
  border: 1px solid var(--ink-700); border-radius: 4px; padding: 12px 14px;
  font-family: var(--font-sans); font-size: var(--text-sm); line-height: 1.55; resize: vertical;
  transition: border-color var(--dur-mid) var(--ease-out-expo);
}
.ksa-textarea:focus, .ksa-input:focus { outline: none; border-color: var(--stone); }
.ksa-textarea[dir="auto"] { text-align: start; }

.ksa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ksa-chip {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--paper-dim); background: transparent; border: 1px solid var(--ink-700);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
  transition: border-color var(--dur-mid) var(--ease-out-expo), color var(--dur-mid) var(--ease-out-expo);
}
.ksa-chip:hover, .ksa-chip:focus-visible { border-color: var(--stone); color: var(--stone-bright); }

.ksa-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-md); }
.ksa-btn {
  font-family: var(--font-sans); font-weight: 600; font-size: var(--text-sm);
  padding: 11px 18px; border-radius: 3px; cursor: pointer; border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out-expo), background var(--dur-mid) var(--ease-out-expo), border-color var(--dur-mid) var(--ease-out-expo);
}
.ksa-btn--primary { background: var(--stone); color: var(--ink-900); }
.ksa-btn--primary:hover { background: var(--stone-bright); }
.ksa-btn--ghost { background: transparent; color: var(--paper); border-color: var(--ink-600); }
.ksa-btn--ghost:hover { border-color: var(--stone); color: var(--stone-bright); }
.ksa-btn:active { transform: translateY(1px); }
.ksa-btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---- Output column ---- */
.ksa-out { min-height: 280px; display: flex; flex-direction: column; gap: 14px; }
.ksa-placeholder { margin: auto; text-align: center; color: var(--ink-500);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* staged pipeline rows */
.ksa-stage { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.ksa-stage.is-in { opacity: 1; transform: none; }
.ksa-stage__no { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-900);
  background: var(--stone-bright); width: 22px; height: 22px; border-radius: 3px; display: grid; place-items: center; }
.ksa-stage__label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-dim); margin-bottom: 6px; }
.ksa-stage__body { font-size: var(--text-sm); color: var(--paper); }

/* key/value extracted fields */
.ksa-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin-top: 4px; }
.ksa-k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; }
.ksa-v { font-size: var(--text-sm); color: var(--paper); }

/* confidence meter */
.ksa-meter { height: 7px; border-radius: 999px; background: var(--ink-700); overflow: hidden; margin: 8px 0; }
.ksa-meter__fill { height: 100%; width: 0; border-radius: 999px; background: var(--stone-bright);
  transition: width 900ms var(--ease-out-expo); }
.ksa-meter__fill.is-low { background: var(--stone-deep); }

/* resolved code */
.ksa-code { font-family: var(--font-mono); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  letter-spacing: 0.18em; color: var(--stone-bright); font-weight: 600; }

/* status badge */
.ksa-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--ink-700); }
.ksa-badge--ok { color: var(--stone-bright); border-color: var(--stone); }
.ksa-badge--wait { color: var(--paper-dim); }
.ksa-badge__tick { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* WhatsApp confirm bubble */
.ksa-wa { margin-top: 6px; border-left: 2px solid oklch(72% 0.12 150); padding-left: 12px; display: flex; flex-direction: column; gap: 6px; }
.ksa-wa__tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(78% 0.10 150); }
.ksa-bubble { max-width: 90%; padding: 8px 11px; border-radius: 10px; font-size: var(--text-sm); line-height: 1.45; }
.ksa-bubble--in { align-self: flex-start; background: var(--ink-800); color: var(--paper); border-top-left-radius: 3px; }
.ksa-bubble--out { align-self: flex-end; background: oklch(40% 0.07 150); color: var(--paper); border-top-right-radius: 3px; }

/* ---- Batch view ---- */
.ksa-tally { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-bottom: var(--space-md); }
.ksa-tally__num { font-family: var(--font-mono); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); color: var(--stone-bright); line-height: 1; }
.ksa-tally__label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-top: 6px; max-width: 14ch; }
.ksa-batch { display: flex; flex-direction: column; gap: 7px; }
.ksa-brow { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 9px 12px; border: 1px solid var(--ink-700); border-radius: 4px; background: oklch(15.5% 0.006 70);
  opacity: 0; transform: translateY(6px); transition: opacity var(--dur-mid) var(--ease-out-expo), transform var(--dur-mid) var(--ease-out-expo); }
.ksa-brow.is-in { opacity: 1; transform: none; }
.ksa-brow__addr { font-size: 0.82rem; color: var(--paper-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ksa-brow__code { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--stone-bright); }
.ksa-brow__code.is-wa { color: oklch(78% 0.10 150); }
.ksa-brow__st { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; }

/* ---- "How the fix works" mini steps reused across pages ---- */
.ksa-steps { display: grid; gap: var(--space-lg); margin-top: var(--space-xl); }
@media (min-width: 760px) { .ksa-steps { grid-template-columns: repeat(3, 1fr); } }

/* honesty footnote under a demo */
.ksa-note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--muted); max-width: 64ch; }
.ksa-note code { font-family: var(--font-mono); font-size: 0.85em; }

/* ---- Active state for chips used as toggles (doc / mode / product) ---- */
.ksa-chip.is-on { border-color: var(--stone); background: var(--stone-bright); color: var(--ink-900); }

/* ---- KYC examiner-ready file ---- */
.ksa-file { display: flex; flex-direction: column; gap: 7px; border: 1px solid var(--ink-700); border-radius: 4px; padding: 12px 14px; margin: 4px 0 10px; }
.ksa-file__row { display: flex; justify-content: space-between; gap: 14px; font-size: var(--text-sm); color: var(--paper-dim); }
.ksa-file__row strong { color: var(--stone-bright); font-weight: 600; }

/* ---- Qiwa Nitaqat gauge ---- */
.ksa-gaugewrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: 12px; flex-wrap: wrap; }
.ksa-band { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid; transition: color var(--dur-slow) var(--ease-out-expo), border-color var(--dur-slow) var(--ease-out-expo); }
.ksa-band--red { color: oklch(70% 0.14 25); border-color: oklch(50% 0.14 25); }
.ksa-band--green { color: oklch(78% 0.13 150); border-color: oklch(55% 0.12 150); }
.ksa-gaugepct { font-family: var(--font-mono); font-size: 1.05rem; color: var(--stone-bright); }
.ksa-qrow__t { font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper-dim); white-space: nowrap; }
.ksa-brow__st.is-flag { color: oklch(70% 0.14 25); }
.ksa-brow__st.is-done { color: oklch(78% 0.13 150); }

/* ---- DialectDesk chat ---- */
.ksa-out--chat { gap: 9px; }
.ksa-typing { display: inline-flex; gap: 4px; align-items: center; }
.ksa-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--paper-dim); opacity: 0.5; animation: ksa-blink 1.1s infinite; }
.ksa-typing span:nth-child(2) { animation-delay: 0.18s; }
.ksa-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes ksa-blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .ksa-typing span { animation: none; } }
.ksa-handoff { align-self: flex-start; max-width: 92%; border: 1px solid var(--ink-700); border-left: 2px solid var(--stone); border-radius: 6px; padding: 9px 12px; display: flex; flex-direction: column; gap: 5px; font-size: var(--text-sm); color: var(--paper-dim); }

/* dialect input row (left column) */
.ksa-sendrow { display: flex; gap: 8px; margin-top: 12px; }
.ksa-sendrow .ksa-input { flex: 1; }
.ksa-sendrow .ksa-btn { flex: none; }

/* ---- Arabic Catalogue before/after ---- */
.ksa-cat { display: flex; flex-direction: column; gap: 12px; }
.ksa-cat__block { border: 1px solid var(--ink-700); border-radius: 5px; padding: 12px 14px; }
.ksa-cat__tag { display: inline-block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.ksa-cat__tag--src { color: var(--ink-500); }
.ksa-cat__tag--bad { color: oklch(70% 0.10 50); }
.ksa-cat__tag--good { color: var(--stone-bright); }
.ksa-cat__title { font-weight: 600; color: var(--paper); margin-bottom: 5px; }
.ksa-cat__desc { font-size: var(--text-sm); color: var(--paper-dim); line-height: 1.55; }
.ksa-cat__seo { font-family: var(--font-mono); font-size: 0.66rem; color: var(--stone); margin-top: 8px; line-height: 1.5; }
.ksa-cat__block .ksa-cat__title[dir="rtl"], .ksa-cat__block .ksa-cat__desc[dir="rtl"] { text-align: right; }
.ksa-cat__seo[dir="rtl"] { text-align: right; }

/* lightweight fade-in for appended content blocks (no grid, unlike .ksa-stage) */
.ksa-reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.ksa-reveal.is-in { opacity: 1; transform: none; }

/* single-column device (used by the ROI calculator) */
.ksa-device--solo .ksa-device__body { grid-template-columns: 1fr; }

/* ---- ROI calculator ---- */
.ksa-roi__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.ksa-roi__field { display: flex; flex-direction: column; gap: 6px; }
.ksa-roi__lab { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone-bright); }
.ksa-roi__input { background: oklch(13.5% 0.006 70); color: var(--paper); border: 1px solid var(--ink-700); border-radius: 4px; padding: 10px 12px; font-family: var(--font-mono); font-size: var(--text-sm); width: 100%; }
.ksa-roi__input:focus { outline: none; border-color: var(--stone); }
.ksa-roi__out { margin-top: 18px; border-top: 1px solid var(--ink-700); padding-top: 16px; }
.ksa-roi__big { font-size: clamp(1.2rem, 1rem + 1vw, 1.65rem); color: var(--paper); line-height: 1.25; }
.ksa-roi__big strong { color: var(--stone-bright); font-weight: 700; }
.ksa-roi__line { margin-top: 10px; font-size: var(--text-sm); color: var(--paper-dim); }
.ksa-roi__line strong { color: var(--stone-bright); }
.ksa-roi__assume { margin-top: 10px; font-size: 0.78rem; color: var(--ink-500); max-width: 72ch; line-height: 1.5; }

/* ---- On-page business-case block (the offer, on a paper section) ---- */
.ksa-offer { display: grid; gap: var(--space-md); padding: clamp(20px, 1rem + 1.5vw, 32px); border: 1px solid var(--hairline); border-radius: 6px; background: var(--paper-2); box-shadow: var(--shadow-md); }
.ksa-offer__price { font-family: var(--font-mono); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); color: var(--stone-deep); }
.ksa-offer__price span { font-size: 0.5em; color: var(--muted); letter-spacing: 0.04em; }
.ksa-offer ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.ksa-offer li { position: relative; padding-left: 20px; color: var(--ink-700); font-size: var(--text-sm); }
.ksa-offer li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 3px; background: var(--stone); transform: skewX(-20deg); }

/* ---- AI Front Desk: "what happens today" lost card (without-Kaephor toggle) ---- */
.ksa-handoff--lost { border-left-color: oklch(55% 0.14 25); }
.ksa-wa__tag--lost { color: oklch(70% 0.14 25); }
.ksa-badge--lost { color: oklch(70% 0.14 25); border-color: oklch(50% 0.14 25); align-self: flex-start; }

/* ---- Niche selector bar (AI Front Desk page) ---- */
.ksa-nichebar { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: var(--space-xl); }
.ksa-nichebar .ksa-chip { font-size: 0.7rem; padding: 9px 15px; }
.ksa-nichebar .ksa-chip.is-on { box-shadow: var(--shadow-sm); }

/* ============================================================
   AI Front Desk — realistic WhatsApp phone mockup
   ============================================================ */
.wa-host { margin-top: var(--space-xl); }
.wa__controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-bottom: var(--space-xl); }
.wa-seg { display: inline-flex; background: var(--paper-2); border: 1px solid var(--hairline); border-radius: 999px; padding: 3px; }
.wa-seg__btn { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 8px 15px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color var(--dur-mid) var(--ease-out-expo), background var(--dur-mid) var(--ease-out-expo); }
.wa-seg__btn.is-on { background: var(--ink-900); color: var(--paper); }
.wa-seg__btn:not(.is-on):hover { color: var(--ink-900); }
.wa-play { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hairline); background: var(--paper); color: var(--ink-800); border-radius: 999px; padding: 7px 16px 7px 12px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: border-color var(--dur-mid) var(--ease-out-expo); }
.wa-play:hover { border-color: var(--stone); }
.wa-play svg { fill: var(--stone-deep); stroke: none; }
.wa-play.is-playing { border-color: var(--stone); color: var(--stone-deep); }

.wa__stage { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 54px); align-items: center; justify-content: center; }

/* ---- the device ---- */
.wa-phone { position: relative; width: 332px; max-width: 86vw; aspect-ratio: 332 / 690; background: #0b141a; border-radius: 46px; padding: 12px;
  box-shadow: inset 0 0 0 2px oklch(75% 0.034 74 / 0.14), 0 0 0 2px #0b141a, 0 34px 70px -26px rgba(0,0,0,0.55), 0 10px 34px -14px oklch(53% 0.036 60 / 0.4), 0 0 70px -8px oklch(64% 0.03 68 / 0.18);
  animation: wa-float 7s var(--ease-out-expo) infinite; }
.wa-phone__island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 25px; background: #000; border-radius: 999px; z-index: 6; }
.wa-screen { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 34px; overflow: hidden; background: #0b141a; }
.wa-statusbar { display: flex; align-items: center; justify-content: space-between; padding: 11px 26px 5px; color: #e9edef; font-size: 0.68rem; font-weight: 700; }
.wa-statusbar__r { display: inline-flex; gap: 6px; align-items: center; }
.wa-sigbars { width: 16px; height: 9px; background: linear-gradient(to right, #e9edef 0 3px, transparent 3px 4px, #e9edef 4px 7px, transparent 7px 8px, #e9edef 8px 11px, transparent 11px 12px, #e9edef 12px 16px); clip-path: polygon(0 100%, 3px 60%, 4px 60%, 7px 35%, 8px 35%, 11px 15%, 12px 15%, 16px 0, 16px 100%); }
.wa-wifi { width: 14px; height: 10px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; border: 2px solid #e9edef; border-bottom: 0; opacity: 0.95; }
.wa-batt { width: 22px; height: 11px; border: 1px solid #e9edef; border-radius: 3px; position: relative; }
.wa-batt::after { content: ""; position: absolute; inset: 2px; background: #e9edef; border-radius: 1px; }
.wa-batt::before { content: ""; position: absolute; right: -3px; top: 3px; width: 2px; height: 5px; background: #e9edef; border-radius: 0 1px 1px 0; }

.wa-top { display: flex; align-items: center; gap: 10px; padding: 7px 12px; background: #202c33; color: #e9edef; }
.wa-top__back { display: flex; color: #e9edef; }
.wa-top__av { width: 35px; height: 35px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-sans); font-weight: 800; font-size: 0.95rem; color: #0b141a; background: linear-gradient(145deg, oklch(82% 0.03 76), oklch(64% 0.03 68)); }
.wa-top__id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.18; }
.wa-top__name { font-size: 0.92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-top__sub { font-size: 0.7rem; color: #8696a0; }
.wa-top__icons { display: flex; gap: 15px; color: #aebac1; }
.wa-top__icons svg { width: 19px; height: 19px; }

.wa-chat { flex: 1; overflow-y: auto; padding: 12px 9px; display: flex; flex-direction: column; gap: 6px; background-color: #0b141a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.018' stroke-width='1'%3E%3Ccircle cx='21' cy='21' r='6'/%3E%3Cpath d='M6 32h7M31 8v7'/%3E%3C/g%3E%3C/svg%3E"); }
.wa-enc { align-self: center; background: #1d2a32; color: #ffd27a; font-size: 0.62rem; text-align: center; padding: 6px 11px; border-radius: 8px; max-width: 86%; line-height: 1.45; margin: 2px 0 6px; }
.wa-day { align-self: center; margin: 2px 0 4px; }
.wa-day span { background: #1d2a32; color: #8696a0; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 11px; border-radius: 8px; }
.wa-row { display: flex; max-width: 100%; }
.wa-row--in { justify-content: flex-start; }
.wa-row--out { justify-content: flex-end; }
.wa-msg { max-width: 80%; padding: 6px 9px 5px; border-radius: 9px; font-size: 0.84rem; line-height: 1.42; color: #e9edef; display: flex; flex-direction: column; box-shadow: 0 1px 1px rgba(0,0,0,0.18); }
.wa-msg--in { background: #202c33; border-top-left-radius: 3px; }
.wa-msg--out { background: #005c4b; border-top-right-radius: 3px; }
.wa-msg__t { word-wrap: break-word; }
.wa-meta { align-self: flex-end; display: inline-flex; gap: 3px; align-items: center; margin-top: 2px; font-size: 0.58rem; color: #8696a0; }
.wa-msg--out .wa-meta { color: #aed5c9; }
.wa-tk { width: 16px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wa-ticks { display: inline-flex; color: #8696a0; }
.wa-ticks--sent .wa-tk path:nth-child(2) { display: none; }
.wa-ticks--read { color: #53bdeb; }
.wa-typing { flex-direction: row; gap: 4px; padding: 11px 13px; }
.wa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; opacity: 0.5; animation: ksa-blink 1.2s infinite; }
.wa-typing span:nth-child(2) { animation-delay: 0.18s; }
.wa-typing span:nth-child(3) { animation-delay: 0.36s; }
.wa-card { padding: 0; overflow: hidden; max-width: 82%; }
.wa-card__h { display: flex; align-items: center; gap: 7px; background: oklch(42% 0.075 150); color: #d6ffe9; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 7px 10px; }
.wa-card__h svg { stroke: #8af0c2; }
.wa-card__b { padding: 8px 10px; color: #e9edef; font-size: 0.8rem; line-height: 1.42; }
.wa-card .wa-meta { padding: 0 10px 7px; }
.wa-note { align-self: center; background: #2c1d1d; color: #f0cccc; border: 1px solid #5a2f2f; border-radius: 8px; padding: 8px 12px; font-size: 0.72rem; max-width: 90%; text-align: center; line-height: 1.45; margin: 4px 0; }
.wa-note--lost strong { color: #ff9c9c; }

.wa-qr { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; padding: 9px 11px; background: #0b141a; border-top: 1px solid #182229; }
.wa-qr.is-hidden { display: none; }
.wa-qr__btn { background: #202c33; color: #7ff0c0; border: 1px solid #2a3942; border-radius: 16px; padding: 6px 13px; font-size: 0.72rem; cursor: pointer; transition: background var(--dur-mid) var(--ease-out-expo); }
.wa-qr__btn:hover { background: #2a3942; }
.wa-bar { display: flex; align-items: center; gap: 7px; padding: 8px 10px; background: #0b141a; }
.wa-bar__ic { display: flex; color: #8696a0; flex: none; }
.wa-bar__in { flex: 1; min-width: 0; background: #202c33; border: 0; border-radius: 20px; padding: 9px 14px; color: #e9edef; font-size: 0.82rem; outline: none; }
.wa-bar__in::placeholder { color: #8696a0; }
.wa-bar__send { width: 40px; height: 40px; border-radius: 50%; background: #00a884; border: 0; display: grid; place-items: center; color: #0b141a; cursor: pointer; flex: none; }
.wa-bar__send svg { width: 20px; height: 20px; grid-area: 1 / 1; }
.wa-bar__send svg:nth-child(2) { display: none; }
.wa-bar__send.has-text svg:nth-child(1) { display: none; }
.wa-bar__send.has-text svg:nth-child(2) { display: block; }

/* ---- "behind the glass" signal panel ---- */
.wa-side { width: 300px; max-width: 100%; align-self: stretch; display: flex; flex-direction: column; }
.wa-side__h { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-800); }
.wa-side__dot { width: 8px; height: 8px; border-radius: 50%; background: oklch(72% 0.12 150); box-shadow: 0 0 0 0 oklch(72% 0.12 150 / 0.5); animation: kael-pulse 2.4s var(--ease-out-expo) infinite; }
.wa-side__sub { font-size: 0.78rem; color: var(--muted); margin: 7px 0 14px; }
.wa-side__list { display: flex; flex-direction: column; gap: 9px; }
.wa-side__idle { font-size: 0.8rem; color: var(--ink-500); font-style: italic; }
.wa-sig { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.wa-sig.is-in { opacity: 1; transform: none; }
.wa-sig__ic { width: 21px; height: 21px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 0.66rem; font-weight: 700; margin-top: 1px; }
.wa-sig__lab { display: block; font-weight: 600; font-size: 0.82rem; color: var(--ink-900); }
.wa-sig__sub { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 1px; line-height: 1.42; }
.wa-sig--good .wa-sig__ic { background: var(--stone-soft); color: var(--stone-deep); }
.wa-sig--good .wa-sig__ic::before { content: "\26A1"; }
.wa-sig--book { border-color: oklch(82% 0.07 150); }
.wa-sig--book .wa-sig__ic { background: oklch(91% 0.06 150); color: oklch(46% 0.12 150); }
.wa-sig--book .wa-sig__ic::before { content: "\2713"; }
.wa-sig--wait .wa-sig__ic { background: oklch(93% 0.05 78); color: oklch(58% 0.10 70); }
.wa-sig--wait .wa-sig__ic::before { content: "\2026"; }
.wa-sig--bad { border-color: oklch(83% 0.08 25); }
.wa-sig--bad .wa-sig__ic { background: oklch(91% 0.06 25); color: oklch(53% 0.16 25); }
.wa-sig--bad .wa-sig__ic::before { content: "\2715"; }

@keyframes wa-float { 0%, 100% { transform: translateY(0) rotate(-0.4deg); } 50% { transform: translateY(-7px) rotate(0.4deg); } }
@media (prefers-reduced-motion: reduce) { .wa-phone { animation: none; } .wa-typing span { animation: none; } }
@media (max-width: 800px) { .wa__stage { flex-direction: column; } .wa-side { width: 100%; max-width: 332px; } }

/* ============================================================
   Front Desk hero figure (product-hero image)
   ============================================================ */
.fd-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 860px) { .fd-hero { grid-template-columns: 1fr; } }
.fd-herofig { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 36px 80px -30px rgba(0,0,0,0.5), 0 0 90px -22px oklch(64% 0.03 68 / 0.45); }
.fd-herofig::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px oklch(75% 0.034 74 / 0.16); border-radius: 16px; pointer-events: none; }
.fd-herofig img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Pricing proposition — Pilot + 3 tiers
   ============================================================ */
.pricing-pilot { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 3vw, 36px); padding: clamp(22px, 2vw, 32px); border: 1px solid var(--hairline); border-radius: 10px; background: var(--ink-900); color: var(--paper); box-shadow: var(--shadow-lg); }
.pricing-pilot__l { flex: 1; min-width: 240px; }
.pricing-pilot__step { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-bright); }
.pricing-pilot__h { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); margin: 8px 0 6px; color: var(--paper); }
.pricing-pilot__p { color: var(--paper-dim); font-size: var(--text-sm); max-width: 60ch; }
.pricing-pilot__r { text-align: right; }
.pricing-pilot__price { font-family: var(--font-mono); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); color: var(--stone-bright); white-space: nowrap; }
.pricing-pilot__note { font-size: 0.72rem; color: var(--paper-dim); margin-top: 4px; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.5vw, 22px); margin-top: var(--space-xl); }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 1.6vw, 30px); border: 1px solid var(--hairline); border-radius: 10px; background: var(--paper-2); box-shadow: var(--shadow-md); }
.tier--featured { border-color: var(--stone); box-shadow: var(--shadow-lg); }
.tier__flag { position: absolute; top: -11px; left: clamp(22px, 1.6vw, 30px); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--stone); color: var(--ink-900); padding: 4px 10px; border-radius: 999px; }
.tier__name { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-deep); }
.tier__for { font-size: var(--text-sm); color: var(--muted); margin: 6px 0 14px; min-height: 2.6em; }
.tier__price { font-family: var(--font-mono); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); color: var(--ink-900); line-height: 1; }
.tier__per { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }
.tier__list { list-style: none; display: grid; gap: 9px; margin: var(--space-md) 0 var(--space-lg); padding: 0; }
.tier__list li { position: relative; padding-left: 20px; color: var(--ink-700); font-size: var(--text-sm); line-height: 1.45; }
.tier__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 3px; background: var(--stone); transform: skewX(-20deg); }
.tier__cta { margin-top: auto; }
.pricing-foot { margin-top: var(--space-xl); font-size: 0.82rem; color: var(--muted); max-width: 80ch; }

/* ============================================================
   Mockup upgrades — voice call · operator dashboard · media
   ============================================================ */
/* control buttons */
.wa-play svg { width: 15px; height: 15px; }
.wa-play[data-action="play"] svg, .wa-play[data-action="opview"] svg { fill: var(--stone-deep); stroke: none; }
.wa-play[data-action="voice"] svg { fill: none; stroke: var(--stone-deep); }
.wa-play.is-playing { border-color: var(--stone); color: var(--stone-deep); }
.wa-play--toggle.is-on { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }
.wa-play--toggle.is-on svg { fill: var(--paper); }

/* voice-note bubble */
.wa-vn { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 172px; }
.wa-vn__play { display: flex; color: #aed5c9; }
.wa-vn__play svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.wa-vn__wave { display: flex; align-items: center; gap: 2px; height: 24px; flex: 1; min-width: 80px; }
.wa-vn__wave i { width: 2px; border-radius: 2px; height: var(--h); background: #8fc7b8; opacity: 0.85; }
.wa-vn__t { font-size: 0.62rem; color: #aed5c9; }
.wa-vn .wa-meta { flex-basis: 100%; justify-content: flex-end; }
.wa-vn__tx { flex-basis: 100%; font-size: 0.68rem; line-height: 1.55; color: #cfe9df; opacity: 0.88; padding-top: 3px; border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 4px; }
.wa-vn--live { cursor: pointer; }
.wa-vn--live:hover .wa-vn__play, .wa-vn.is-playing .wa-vn__play { color: #dffbf0; }
.wa-vn.is-playing .wa-vn__wave i { animation: waVnPulse 0.9s ease-in-out infinite alternate; }
.wa-vn.is-playing .wa-vn__wave i:nth-child(even) { animation-delay: 0.45s; }
@keyframes waVnPulse { from { transform: scaleY(0.55); opacity: 0.55; } to { transform: scaleY(1.15); opacity: 1; } }

/* image / details card bubble */
.wa-imgcard { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 210px; }
.wa-imgcard__thumb { width: 42px; height: 42px; border-radius: 6px; flex: none; display: grid; place-items: center; color: var(--stone-bright); background: linear-gradient(135deg, oklch(40% 0.04 70), oklch(26% 0.02 70)); }
.wa-imgcard__thumb svg { width: 20px; height: 20px; }
.wa-imgcard__b { display: flex; flex-direction: column; gap: 2px; }
.wa-imgcard__t { font-size: 0.82rem; font-weight: 600; color: #e9edef; }
.wa-imgcard__s { font-size: 0.68rem; color: #8696a0; }
.wa-imgcard .wa-meta { flex-basis: 100%; justify-content: flex-end; }

/* voice-call overlay */
.wa-call { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; padding: 34px 18px 22px; color: #e9edef; background: linear-gradient(180deg, #1f2c33, #0b141a); opacity: 0; transform: scale(1.015); transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo); }
.wa-call[hidden] { display: none; }
.wa-call.is-ring, .wa-call.is-live, .wa-call.is-ended { opacity: 1; transform: none; }
.wa-call__av { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-sans); font-weight: 800; font-size: 2rem; color: #0b141a; background: linear-gradient(145deg, oklch(82% 0.03 76), oklch(64% 0.03 68)); }
.wa-call.is-ring .wa-call__av { animation: wa-ring 1.2s var(--ease-out-expo) infinite; }
@keyframes wa-ring { 0%, 100% { box-shadow: 0 0 0 0 oklch(75% 0.034 74 / 0.5); } 50% { box-shadow: 0 0 0 15px oklch(75% 0.034 74 / 0); } }
.wa-call__name { font-size: 1.15rem; font-weight: 600; margin-top: 14px; }
.wa-call__status { font-size: 0.8rem; color: #8696a0; margin-top: 5px; font-variant-numeric: tabular-nums; }
.wa-call__wave { display: flex; align-items: center; gap: 3px; height: 38px; margin: 16px 0 2px; opacity: 0; transition: opacity 0.3s; }
.wa-call.is-live .wa-call__wave { opacity: 1; }
.wa-call__wave i { width: 3px; height: 7px; border-radius: 2px; background: oklch(78% 0.034 74); animation: wa-wave 1s ease-in-out infinite; }
.wa-call__wave i:nth-child(odd) { animation-delay: 0.15s; }
.wa-call__wave i:nth-child(3n) { animation-delay: 0.3s; }
.wa-call__wave i:nth-child(4n) { animation-delay: 0.45s; }
@keyframes wa-wave { 0%, 100% { height: 6px; } 50% { height: 30px; } }
.wa-call__transcript { flex: 1; width: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 8px 0; padding: 0 2px; }
.wa-cl { opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo); max-width: 92%; }
.wa-cl.is-in { opacity: 1; transform: none; }
.wa-cl--cust { align-self: flex-start; }
.wa-cl--agent { align-self: flex-end; }
.wa-cl__who { display: block; font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone-bright); margin-bottom: 2px; }
.wa-cl__t { display: block; font-size: 0.82rem; line-height: 1.4; background: #202c33; padding: 7px 10px; border-radius: 9px; }
.wa-cl--agent .wa-cl__t { background: #005c4b; }
.wa-call__btns { margin-top: auto; }
.wa-call__btn--end { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: #e23b3b; color: #fff; display: grid; place-items: center; transform: rotate(135deg); transition: transform 0.2s; }
.wa-call__btn--end:hover { transform: rotate(135deg) scale(1.06); }
.wa-call__btn--end svg { width: 22px; height: 22px; }

/* operator dashboard */
.wa-dash { width: min(660px, 100%); align-self: center; border: 1px solid var(--hairline); border-radius: 12px; background: var(--paper-2); box-shadow: var(--shadow-lg); overflow: hidden; }
.wa-dash[hidden] { display: none; }
.wa-dash__bar { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; background: var(--ink-900); color: var(--paper); }
.wa-dash__title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.wa-dash__live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-bright); }
.wa-dash__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); }
.wa-dash__stat { background: var(--paper-2); padding: 18px 16px; }
.wa-dash__num { font-family: var(--font-mono); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--ink-900); line-height: 1; font-variant-numeric: tabular-nums; }
.wa-dash__lab { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }
.wa-dash__chartwrap { padding: 18px; border-top: 1px solid var(--hairline); }
.wa-dash__chartlab { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.wa-dash__chart { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.wa-dash__chart i { flex: 1; height: 0; background: linear-gradient(180deg, var(--stone-bright), var(--stone)); border-radius: 3px 3px 0 0; transition: height 0.8s var(--ease-out-expo); }
.wa-dash__chart i.is-in { height: var(--h); }
.wa-dash__qh { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 16px 18px 6px; border-top: 1px solid var(--hairline); }
.wa-dash__queue { padding: 0 18px 16px; display: flex; flex-direction: column; }
.wa-qrow { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.wa-qrow:last-child { border-bottom: 0; }
.wa-qrow__n { font-size: var(--text-sm); color: var(--ink-900); }
.wa-qrow__i { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }
.wa-qrow__s { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--hairline); white-space: nowrap; }
.wa-qrow__s--book { color: oklch(46% 0.12 150); border-color: oklch(82% 0.07 150); }
.wa-qrow__s--good { color: var(--stone-deep); border-color: var(--stone); }
.wa-qrow__s--wait { color: oklch(55% 0.1 70); border-color: oklch(80% 0.08 75); }

@media (prefers-reduced-motion: reduce) { .wa-call__wave i, .wa-call.is-ring .wa-call__av { animation: none; } }

/* hero VIDEO in the fd-hero figure */
.fd-herofig video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Industry picture grid (AI Front Desk hub) — pick your business
   ============================================================ */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 24px); margin-top: var(--space-xl); }
@media (max-width: 900px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ind-grid { grid-template-columns: 1fr; } }
.ind-card { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform var(--dur-mid) var(--ease-out-expo), box-shadow var(--dur-mid) var(--ease-out-expo), border-color var(--dur-mid) var(--ease-out-expo); }
.ind-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--stone); }
.ind-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-900); }
.ind-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-out-expo); }
.ind-card:hover .ind-card__media img { transform: scale(1.04); }
.ind-card__body { display: flex; flex-direction: column; gap: 8px; padding: clamp(16px, 1.2vw, 22px); flex: 1; }
.ind-card__name { font-weight: 600; font-size: 1.05rem; color: var(--ink-900); }
.ind-card__desc { font-size: var(--text-sm); color: var(--muted); line-height: 1.5; flex: 1; }
.ind-card__go { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-deep); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; transition: color var(--dur-mid) var(--ease-out-expo); }
.ind-card:hover .ind-card__go { color: var(--ink-900); }
.ind-card:hover .ind-card__go .arrow { transform: translateX(3px); }
.ind-card__go .arrow { transition: transform var(--dur-mid) var(--ease-out-expo); }
