/* ------------------------------------------------------------------
   Product scenes (assets/scenes.js) — illustrative mock-ups per service
   ------------------------------------------------------------------ */
.stage {
  position: relative; width: 100%; min-height: 540px; padding: 44px 24px; border-radius: 28px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  background:
    radial-gradient(80% 60% at 85% 0%, color-mix(in srgb, var(--lettuce) 60%, transparent), transparent 60%),
    linear-gradient(165deg, color-mix(in srgb, var(--asparagus) 70%, var(--cream)), color-mix(in srgb, var(--lettuce) 45%, var(--cream)));
  box-shadow: 0 30px 70px rgb(0 0 0 / .32);
  color: var(--body); font-family: var(--font); text-align: start;
}
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--coach) 16%, transparent) 1px, transparent 1.4px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.stage > * { position: relative; z-index: 1; }
.stage-tag { position: absolute !important; z-index: 4 !important; bottom: 14px; inset-inline-end: 18px; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: color-mix(in srgb, var(--coach) 60%, transparent); }
.stage svg { display: inline-block; }

/* Phone */
.ph { width: 252px; flex: none; padding: 8px; border-radius: 36px; background: #0e1714; box-shadow: 0 26px 50px rgb(5 25 20 / .35), inset 0 0 0 1.5px #2c3b36; }
.ph-screen { position: relative; display: flex; flex-direction: column; height: 458px; border-radius: 29px; overflow: hidden; background: #EEE8DD; }
.ph-bar { display: flex; align-items: center; gap: 8px; padding: 28px 12px 9px; background: var(--coach); color: var(--cream); }
.ph-bar b { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.ph-bar small { font-size: 10px; opacity: .75; }
.ph-icons { margin-inline-start: auto; display: grid; opacity: .85; }
.ph-icons svg { width: 16px; height: 16px; }
.ph-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lettuce); color: var(--coach); font-size: 11px; font-weight: 700; }
.vb { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--lettuce); }
.vb svg { width: 9px; height: 9px; color: var(--coach); }
.ph-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px 9px; font-size: 11.5px; line-height: 1.38; overflow: hidden; }
.bub { max-width: 84%; padding: 6px 8px 4px; border-radius: 9px; color: #1b2a25; box-shadow: 0 1px .5px rgb(0 0 0 / .13); }
.bub.biz { align-self: flex-start; background: #fff; border-start-start-radius: 2px; }
.bub.me { align-self: flex-end; background: #DCF3BC; border-start-end-radius: 2px; }
.bub time { display: block; margin-top: 2px; text-align: end; font-size: 8.5px; color: #6f7c76; }
.bub .tk { color: var(--evergreen); font-weight: 700; letter-spacing: -2px; }
.bub .who { display: block; margin-bottom: 2px; font-size: 9px; font-weight: 700; color: var(--evergreen); }
.wa-btns { align-self: flex-start; width: 84%; display: grid; gap: 3px; margin-top: -3px; }
.wa-btns span { padding: 6px; border-radius: 8px; background: #fff; text-align: center; font-size: 11px; font-weight: 600; color: var(--evergreen); box-shadow: 0 1px .5px rgb(0 0 0 / .1); }
.ph-input { display: flex; align-items: center; justify-content: space-between; margin: 0 8px 10px; padding: 8px 12px; border-radius: 20px; background: #fff; font-size: 11px; color: #8a958f; }
.ph-input i { width: 26px; height: 26px; margin: -4px -8px -4px 0; border-radius: 50%; background: var(--evergreen); }
.ph--sm { width: 214px; }
.ph--sm .ph-screen { height: 380px; }

/* In-chat sheet (lists and forms) */
.sheet { position: absolute; inset: auto 0 0 0; z-index: 3; display: grid; gap: 6px; padding: 12px 14px 14px; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -12px 30px rgb(0 0 0 / .18); font-size: 11.5px; color: #1b2a25; }
.sheet--tall { top: 64px; align-content: start; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.sheet-h b { font-size: 12.5px; }
.sheet-h i { width: 12px; font-style: normal; color: #8a958f; }
.opt { display: flex; justify-content: space-between; align-items: center; padding: 7px 2px; border-bottom: 1px solid #f1f1f1; }
.opt i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #b9c2bd; }
.opt.sel i { border: 4px solid var(--evergreen); }
.sheet-btn { display: block; margin-top: 6px; padding: 9px; border-radius: 20px; background: var(--evergreen); color: #fff; text-align: center; font-weight: 600; }
.fld { display: grid; gap: 2px; padding: 6px 8px; border: 1px solid #e3e6e4; border-radius: 8px; }
.fld small, .stage .lbl { font-size: 9.5px; color: #7a857f; }
.fld span { display: flex; justify-content: space-between; font-weight: 500; }
.fld em { font-style: normal; color: #7a857f; }
.chips { display: flex; gap: 5px; }
.chips span { flex: 1; padding: 6px 0; border: 1px solid #e3e6e4; border-radius: 8px; text-align: center; font-weight: 500; }
.chips .sel { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.sheet-foot { margin: 0; text-align: center; font-size: 9px; color: #8a958f; }

/* Floating cards */
.fc { position: absolute; z-index: 2; width: 196px; padding: 12px 13px; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgb(5 25 20 / .22); font-size: 11.5px; color: var(--body); }
.fc h5 { margin: 0 0 6px; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--evergreen); }
.fc p { margin: 0; line-height: 1.4; }
.fc-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid #eef0ee; }
.fc h5 + .fc-row, .fc-row:first-child { border-top: 0; }
.fc-row b { font-weight: 600; text-align: end; color: var(--heading); }
.fc-row.hl b { padding: 0 6px; border-radius: 6px; background: var(--lettuce); }
.fc--tr { top: 34px; inset-inline-end: 16px; }
.fc--bl { bottom: 26px; inset-inline-start: 12px; width: 182px; }
.fc--br { bottom: 26px; inset-inline-end: 12px; width: 182px; }
.fc--accent { box-shadow: 0 18px 40px rgb(5 25 20 / .22), 0 0 0 2px var(--lettuce); }
.mini { display: flex; gap: 6px; align-items: flex-start; font-size: 11.5px; }
.mini svg { flex: none; width: 14px; height: 14px; margin-top: 1px; color: var(--evergreen); }
.mini.strike { text-decoration: line-through; color: var(--muted); }
.fc-btns { display: flex; gap: 6px; margin-top: 8px; }
.fc-btns span { flex: 1; padding: 6px 4px; border-radius: 8px; border: 1px solid var(--line); text-align: center; font-size: 10.5px; font-weight: 600; color: var(--heading); }
.fc-btns .ok { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.agents { display: grid; gap: 4px; }
.agents span { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 8px; font-weight: 500; color: var(--heading); }
.agents span svg { width: 14px; height: 14px; color: var(--evergreen); }
.agents .on { background: color-mix(in srgb, var(--lettuce) 45%, #fff); }
.agents em { margin-inline-start: auto; font-style: normal; font-size: 9.5px; font-weight: 700; color: var(--evergreen); }

/* Desktop window (inbox) */
.win { width: 100%; max-width: 480px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px rgb(5 25 20 / .25); font-size: 11.5px; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--coach); color: var(--cream); }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--cream) 35%, transparent); }
.win-bar b { margin-inline-start: 8px; font-size: 11px; font-weight: 500; }
.inbox { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 310px; }
.ib-list { border-inline-end: 1px solid #eef0ee; }
.ib-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border-bottom: 1px solid #f2f3f2; }
.ib-row.sel { background: color-mix(in srgb, var(--lettuce) 32%, #fff); }
.ib-row.done { opacity: .55; }
.ch { height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--panel); font-size: 8.5px; font-weight: 700; color: var(--coach); }
.ib-row b { display: block; font-size: 11.5px; color: var(--heading); }
.ib-row small { display: block; max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; color: #7a857f; }
.ib-row time { font-size: 9.5px; color: #7a857f; }
.ib-detail { display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.ib-title { margin: 2px 0 6px; font-size: 13px; color: var(--heading); }
.fc-row.due b { color: var(--evergreen); }

/* Setup checklist */
.setup { width: 100%; max-width: 370px; display: grid; gap: 2px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 24px 50px rgb(5 25 20 / .22); }
.setup-h { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; padding-bottom: 12px; border-bottom: 1px solid #eef0ee; }
.setup-h svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--lettuce); color: var(--coach); }
.setup-h b { display: block; font-size: 13.5px; color: var(--heading); }
.setup-h small, .setup-row small { font-size: 11px; color: #7a857f; }
.setup-row { display: flex; gap: 10px; align-items: center; padding: 8px 2px; }
.setup-row i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; background: var(--lettuce); color: var(--coach); }
.setup-row.wait i { background: var(--panel); color: var(--muted); }
.setup-row b { display: block; font-size: 12.5px; color: var(--heading); }

/* Business profile */
.profile { background: #fff; color: #1b2a25; }
.pf-top { display: grid; justify-items: center; gap: 4px; padding: 30px 12px 14px; text-align: center; border-bottom: 8px solid #f1f2f1; }
.pf-logo { width: 64px; height: 64px; margin-bottom: 4px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--evergreen), var(--coach)); color: var(--lettuce); font-size: 20px; font-weight: 700; }
.pf-top b { display: flex; align-items: center; gap: 5px; font-size: 15px; color: var(--heading); }
.pf-top small { font-size: 11px; color: #7a857f; }
.pf-actions { display: flex; gap: 8px; margin-top: 8px; }
.pf-actions span { width: 62px; padding: 7px 0; display: grid; justify-items: center; gap: 3px; border: 1px solid #e8ebe9; border-radius: 10px; font-size: 9.5px; font-weight: 600; color: var(--evergreen); }
.pf-actions svg { width: 15px; height: 15px; }
.pf-sec { padding: 10px 14px; border-bottom: 8px solid #f1f2f1; font-size: 11px; line-height: 1.45; color: #3d4a45; }
.pf-sec p { margin: 0; }
.pf-rows { display: grid; gap: 8px; }
.pf-rows div { display: flex; gap: 10px; align-items: center; }
.pf-rows svg { width: 15px; height: 15px; color: #7a857f; }
.pf-rows b { display: block; font-size: 11.5px; font-weight: 500; color: var(--heading); }
.pf-rows small { font-size: 9.5px; color: #7a857f; }
.pf-cat { display: flex; gap: 6px; margin-top: 6px; }
.pf-cat i { flex: 1; height: 44px; border-radius: 8px; background: linear-gradient(135deg, var(--asparagus), var(--lettuce)); }

/* QR table card */
.tent { width: 220px; display: grid; justify-items: center; gap: 8px; padding: 22px 18px; border-radius: 18px; background: #fff; text-align: center; color: var(--heading); box-shadow: 0 24px 50px rgb(5 25 20 / .22); }
.tent b { font-size: 18px; }
.tent small { font-size: 10.5px; color: #7a857f; }
.qr { color: var(--coach); }
.tent-link { padding: 4px 10px; border-radius: 100px; background: var(--panel); font-size: 10.5px; font-weight: 600; color: var(--evergreen); }

/* Campaign template */
.bub.tpl { padding: 4px 4px 4px; }
.bub.tpl > :not(.tpl-img) { padding-inline: 4px; }
.tpl-img { height: 96px; margin-bottom: 6px; padding: 10px; display: grid; align-content: end; border-radius: 7px; background: radial-gradient(70% 70% at 80% 20%, color-mix(in srgb, var(--lettuce) 70%, transparent), transparent 70%), linear-gradient(135deg, var(--evergreen), var(--coach)); color: var(--cream); }
.tpl-img b { font-size: 16px; }
.tpl-img small { font-size: 10px; opacity: .8; }

/* Ad card */
.ad { width: 200px; flex: none; overflow: hidden; border-radius: 16px; background: #fff; font-size: 11px; box-shadow: 0 24px 50px rgb(5 25 20 / .22); }
.ad-h { display: flex; gap: 8px; align-items: center; padding: 9px 10px; }
.ad-h b { display: block; font-size: 11.5px; color: var(--heading); }
.ad-h small { font-size: 9.5px; color: #7a857f; }
.ad-img { height: 150px; padding: 12px; display: grid; align-content: end; background: radial-gradient(70% 60% at 70% 30%, color-mix(in srgb, var(--lettuce) 70%, transparent), transparent 70%), linear-gradient(160deg, var(--evergreen), var(--midnight)); color: var(--cream); }
.ad-img b { font-size: 17px; line-height: 1.1; }
.ad-img small { font-size: 10px; opacity: .8; }
.ad p { margin: 8px 10px; color: #3d4a45; }
.ad-cta { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-top: 1px solid #eef0ee; font-weight: 600; color: var(--heading); }
.ad-cta .wa-icon { width: 14px; height: 14px; }
.ad-cta em { margin-inline-start: auto; font-style: normal; }
.flow-arrow { font-size: 24px; font-weight: 700; color: var(--evergreen); }
[dir="rtl"] .flow-arrow { transform: scaleX(-1); }

/* Payment link */
.bub.pay { width: 84%; padding: 6px; }
.pay-h { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 8px; background: #f4f6f4; }
.pay-h svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: var(--lettuce); color: var(--coach); }
.pay-h b { display: block; font-size: 11px; }
.pay-h small { font-size: 9.5px; color: #7a857f; }
.pay-amt { padding: 6px 4px 4px; font-size: 18px; font-weight: 700; color: var(--heading); }
.pay-btn { display: block; margin-top: 2px; padding: 7px; border-radius: 8px; background: var(--evergreen); color: #fff; text-align: center; font-weight: 600; }

/* Call screen */
.ph-screen.call { align-items: center; gap: 6px; padding-top: 56px; text-align: center; background: linear-gradient(180deg, var(--coach), var(--midnight)); color: var(--cream); }
.call-k { display: flex; gap: 6px; align-items: center; font-size: 10.5px; opacity: .85; }
.call-k .wa-icon { width: 13px; height: 13px; color: #fff; }
.call-av { width: 86px; height: 86px; margin: 26px 0 10px; border-radius: 50%; display: grid; place-items: center; background: var(--lettuce); color: var(--coach); font-size: 26px; font-weight: 700; box-shadow: 0 0 0 10px color-mix(in srgb, var(--lettuce) 18%, transparent), 0 0 0 22px color-mix(in srgb, var(--lettuce) 8%, transparent); }
.ph-screen.call b { font-size: 15px; }
.ph-screen.call small { font-size: 11px; opacity: .75; }
.call-ctl { display: flex; gap: 16px; margin-top: auto; margin-bottom: 38px; }
.call-ctl span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--cream) 16%, transparent); }
.call-ctl svg { width: 18px; height: 18px; }
.call-ctl .end { background: #C8553D; }
.call-ctl .end svg { transform: rotate(135deg); }

/* Follow-up timeline */
.tl { width: 100%; max-width: 360px; display: grid; gap: 2px; padding: 14px; border-radius: 18px; background: #fff; font-size: 12px; box-shadow: 0 24px 50px rgb(5 25 20 / .22); }
.tl-h { padding: 2px 4px 8px; font-size: 13px; color: var(--heading); }
.tl-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid #eef0ee; }
.tl-i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--panel); color: var(--coach); }
.tl-i svg { width: 15px; height: 15px; }
.tl-t { color: var(--heading); }
.tl-row em { padding: 3px 8px; border-radius: 100px; background: #f1f3f1; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tl-row em.ok { background: color-mix(in srgb, var(--lettuce) 55%, #fff); color: var(--coach); }
.tl-row em.star { background: #fff4d6; color: #9a6a00; }
.ph--float { position: absolute !important; bottom: 26px; inset-inline-end: 12px; transform: scale(.76); transform-origin: bottom right; }
[dir="rtl"] .ph--float { transform-origin: bottom left; }
.stage--wide { justify-content: flex-start; }

/* Integration diagram */
.ig { width: 100%; display: grid; grid-template-columns: 1fr 60px 1fr; gap: 10px; align-items: center; }
.ig-col { display: grid; gap: 8px; }
.ig .bub { max-width: 100%; font-size: 11px; }
.ig-hub { position: relative; display: grid; justify-items: center; gap: 4px; }
.ig-hub::before { content: ""; position: absolute; top: 25px; inset-inline: -14px; z-index: -1; border-top: 2px dashed color-mix(in srgb, var(--coach) 40%, transparent); }
.ig-hub span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--coach); color: var(--lettuce); font-size: 20px; font-weight: 800; box-shadow: 0 0 0 8px color-mix(in srgb, var(--coach) 14%, transparent); }
.ig-hub small { font-size: 9.5px; font-weight: 700; color: var(--coach); }
.sys { display: flex; gap: 8px; align-items: center; padding: 8px 9px; border-radius: 12px; background: #fff; font-size: 10.5px; box-shadow: 0 6px 16px rgb(5 25 20 / .12); }
.sys svg { flex: none; width: 16px; height: 16px; color: var(--evergreen); }
.sys b { display: block; font-size: 11px; color: var(--heading); }
.sys small { color: #7a857f; }
.sys.write { box-shadow: 0 6px 16px rgb(5 25 20 / .12), 0 0 0 2px var(--lettuce); }
.sys.no { opacity: .55; }

/* Weekly report */
.rep { width: 100%; max-width: 430px; display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: #fff; font-size: 11.5px; box-shadow: 0 24px 50px rgb(5 25 20 / .22); }
.rep-h b { display: block; font-size: 14px; color: var(--heading); }
.rep-h small { font-size: 10.5px; color: #7a857f; }
.rep-row { display: grid; grid-template-columns: 112px 1fr 34px; gap: 8px; align-items: center; }
.rep-row span { color: var(--heading); }
.bar { height: 12px; overflow: hidden; border-radius: 6px; background: #f1f3f1; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--evergreen); }
.bar i.hl { background: var(--lettuce); }
.rep-row b { text-align: end; color: var(--heading); }
.rep-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 0; border-block: 1px solid #eef0ee; }
.rep-kpis b { display: block; font-size: 15px; color: var(--heading); }
.rep-kpis small { font-size: 9.5px; color: #7a857f; }
.rep-row.sm { grid-template-columns: 80px 1fr 34px; }
.rep-row.sm .bar { height: 8px; }

/* Phones and small screens: stack everything, no overlaps */
@media (max-width: 640px) {
  .stage { min-height: 0; padding: 30px 14px 40px; flex-direction: column; gap: 14px; border-radius: 22px; }
  .fc { position: static; width: 100%; max-width: 300px; }
  .ph--float { position: static !important; transform: none; }
  .flow-arrow { transform: rotate(90deg); }
  .inbox { grid-template-columns: 1fr; }
  .ib-row:nth-child(n+4) { display: none; }
  .ig { grid-template-columns: 1fr; }
  .ig-hub::before { display: none; }
  .ph { width: 244px; }
  .rep-row { grid-template-columns: 96px 1fr 30px; }
}

/* Product recommendations inside the chat */
.rec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 2px 0 4px; }
.rec-i { display: grid; gap: 2px; padding: 5px; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 #e3e6e3; font-size: 9.5px; color: var(--heading); }
.rec-img { display: block; aspect-ratio: 1; border-radius: 7px; }
.rec-img.r1 { background: linear-gradient(160deg, #e9dcc6, #c9b28c); }
.rec-img.r2 { background: linear-gradient(160deg, #d9e6cf, #8fb382); }
.rec-img.r3 { background: linear-gradient(160deg, #f1d9d2, #d39b8c); }
.rec-i b { font-size: 9.5px; line-height: 1.2; }
.rec-i small { font-size: 8.5px; color: var(--muted); }
.rec-i span { margin-top: 2px; padding: 3px 0; border-radius: 6px; background: var(--panel); text-align: center; font-size: 9px; font-weight: 600; color: var(--evergreen); }
