/* ------------------------------------------------------------ hero: dawn */
.hero { position: relative; isolation: isolate; color: #fff; padding: calc(68px + clamp(56px, 9vw, 132px)) 0 clamp(110px, 11vw, 160px); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: end; margin-bottom: clamp(110px, 12vw, 180px); }
.hero .display { text-shadow: 0 2px 40px rgba(6, 11, 41, .35); }
.hero-side { display: grid; gap: 30px; padding-bottom: 10px; }
.hero .lede { color: #fff; text-shadow: 0 1px 2px rgba(6, 11, 41, .55), 0 2px 24px rgba(6, 11, 41, .6); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* the product, floating at the horizon */
.stage { position: relative; aspect-ratio: 16 / 9.4; border-radius: 22px; overflow: hidden; isolation: isolate; container-type: inline-size;
  box-shadow: 0 80px 140px -50px rgba(2, 5, 24, .8), 0 0 0 1px rgba(255, 255, 255, .26), 0 0 120px -20px rgba(255, 196, 120, .35); }

.stage { color: var(--ink); }

/* Four scenes on one canvas. The canvas is designed at 1240 × 728 and scaled to the stage
   with CSS zoom (main.js), so every scene keeps its composition at any width.
   All scenes share one grid cell, so the stage is as tall as the tallest one. */
.sc-in { position: relative; z-index: 1; width: 1240px; display: grid; }
/* the old scene fades out first, then the new one fades in, so two never overlap */
.scene { grid-area: 1 / 1; height: 728px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 36px 40px 40px; opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), visibility 0s .22s; }
.scene.on { opacity: 1; visibility: visible; transition: opacity .4s var(--ease) .2s; }
.pane { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; min-width: 0; min-height: 0; }
.pane-cap { justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px 0 8px; border-radius: 99px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 15px; font-weight: 650; letter-spacing: -.01em; box-shadow: 0 8px 22px -12px rgba(12, 20, 64, .4); }
.pane-cap > img { width: 22px; height: 22px; }
.cap-ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.cap-ic svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.s-win { min-height: 0; background: rgba(255, 255, 255, .93); }
.scene.on .s-win { animation: s-in .7s var(--soft) both; }
.scene.on .pane + .pane .s-win { animation-delay: .1s; }
@keyframes s-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }

/* things that arrive one after another inside a scene */
.scene.on .a1 { animation: pop .5s var(--soft) .5s both; }
.scene.on .a2 { animation: pop .5s var(--soft) 1.3s both; }
.scene.on .a3 { animation: pop .5s var(--soft) 2.3s both; }
.scene.on .a4 { animation: pop .5s var(--soft) 3.1s both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.msg.me { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.msg.bot { justify-self: start; display: flex; align-items: center; gap: 10px; background: #f1f3f8; border-bottom-left-radius: 5px; }
.msg.bot > img { flex: none; width: 22px; height: 22px; border-radius: 5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 620; vertical-align: middle; white-space: nowrap; }
.s-lbl { font-size: 13px; font-weight: 650; color: var(--ink-3); }
.composer { flex: none; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 22px -16px rgba(12, 20, 64, .45); font-size: 14.5px; color: var(--ink-3); }
.composer > img { flex: none; width: 22px; height: 22px; border-radius: 5px; }

/* Vibemyspace window */
.vm-bar { flex: none; display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.vm-bar img { width: 20px; height: 20px; }
.vm-n { margin-left: auto; font-size: 13px; font-weight: 560; color: var(--ink-3); }
.vm-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px; }

/* scene 1: agents in Vibemyspace */
.agc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.agc { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 13px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 620; transition: background .3s, box-shadow .3s, transform .35s var(--spring); }
.agc img { flex: none; width: 24px; height: 24px; object-fit: contain; border-radius: 6px; }
.agc.sel { background: rgba(31, 95, 229, .06); box-shadow: inset 0 0 0 2px var(--blue), 0 10px 20px -14px rgba(31, 95, 229, .7); transform: translateY(-2px); }
.scene.on .agc { animation: pop .45s var(--soft) both; }
.scene.on .agc:nth-child(2) { animation-delay: .08s; } .scene.on .agc:nth-child(3) { animation-delay: .16s; }
.scene.on .agc:nth-child(4) { animation-delay: .24s; } .scene.on .agc:nth-child(5) { animation-delay: .32s; } .scene.on .agc:nth-child(6) { animation-delay: .4s; }
.thread { flex: 1; min-height: 0; display: grid; align-content: end; gap: 10px; }

.tool { justify-self: start; display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 12px; background: #f6f7fb; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--ink-2); }
.tool img { width: 18px; height: 18px; }
.tool b { color: var(--ink); font-weight: 650; }
.tool .ic { width: 15px; height: 15px; color: var(--ok); }

/* timed reveals: each item sets its own --d */
.scene.on .t { animation: pop .5s var(--soft) var(--d, 0s) both; }

/* scene 1, left: the pointer picks Codex */
.agc { position: relative; }
.scene.on .agc.pick { animation: pop .45s var(--soft) .08s both, pick-on .35s ease 1.4s forwards; }
@keyframes pick-on { to { background: rgba(31, 95, 229, .06); box-shadow: inset 0 0 0 2px var(--blue), 0 10px 20px -14px rgba(31, 95, 229, .7); } }
.c0 { left: 62%; top: 52%; }
.scene.on .c0 { animation: cur1 1.3s var(--ease) .35s both; }

/* the same Signup app, shown on both sides */
.sg { justify-self: stretch; padding: 11px 13px 12px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 14px 28px -20px rgba(12, 20, 64, .55); }
.sg-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 13.5px; }
.sg-h .kind { margin-left: auto; }
.sg-b { display: flex; align-items: center; gap: 12px; }
.sg-t { flex: 1; display: grid; line-height: 1.3; }
.sg-t b { font-size: 14px; font-weight: 650; }
.sg-t small { font-size: 12px; color: var(--ink-3); }
.sg-tag { padding: 4px 10px; border-radius: 99px; background: rgba(47, 158, 91, .12); color: #1f7a45; font-size: 12px; font-weight: 650; white-space: nowrap; }
.scene.on .sg-tag { animation: tag-new 1.2s ease var(--d, 0s) both; }
@keyframes tag-new { 0%, 30% { box-shadow: 0 0 0 0 rgba(47, 158, 91, .5); } 100% { box-shadow: 0 0 0 7px rgba(47, 158, 91, 0); } }

/* scene 1, right: the user's own AI app, with the space connected */
.s-win.cx { background: #15171f; color: #e8eaf1; box-shadow: var(--win-shadow), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cx-bar { flex: none; display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 14px 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 15px; }
.cx-bar > img { width: 22px; height: 22px; border-radius: 5px; }
.cx-on { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; background: rgba(95, 208, 138, .12); color: #9fe3b8; font-size: 12.5px; font-weight: 560; }
.cx-on b { color: #fff; font-weight: 650; }
/* the header shows the connection change once Allow is clicked */
.cx-on { background: rgba(255, 255, 255, .07); color: #9aa0b2; }
.cx-on .dot { background: #6b7184; }
.cx-yes { display: none; }
.cx-on, .cx-on .dot { transition: background .4s, color .4s; }
.scene.linked .cx-on { background: rgba(95, 208, 138, .12); color: #9fe3b8; }
.scene.linked .cx-on .dot { background: #5fd08a; }
.scene.linked .cx-off { display: none; }
.scene.linked .cx-yes { display: inline; }

/* the sign-in card Vibemyspace shows in the chat */
.auth { justify-self: start; width: 88%; display: grid; gap: 12px; padding: 14px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .7); }
.auth-h { display: flex; align-items: center; gap: 11px; }
.auth-h img { flex: none; width: 34px; height: 34px; }
.auth-h span { display: grid; line-height: 1.3; }
.auth-h b { font-size: 14px; font-weight: 650; }
.auth-h small { font-size: 12.5px; color: var(--ink-3); }
.auth-a { display: flex; justify-content: flex-end; gap: 8px; }
.ab { position: relative; display: inline-grid; place-items: center; height: 32px; padding: 0 16px; border-radius: 9px; font-size: 13px; font-weight: 620; }
.ab.ghost { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.ab.go { background: var(--blue); color: #fff; }
.scene.on .ab.go { animation: tap .35s 5.85s; }
.c4 { left: 50%; top: 55%; }
.scene.on .c4 { animation: cur1 1.2s var(--ease) 4.9s both; }
.auth-ok { display: none; align-items: center; gap: 7px; font-size: 13px; font-weight: 620; color: #1f7a45; }
.auth-ok .ic { width: 15px; height: 15px; }
.scene.linked .auth-a { display: none; }
.scene.linked .auth-ok { display: flex; animation: pop .4s var(--soft); }
.cx .msg.bot u { color: #9cb8ff; text-underline-offset: 2px; }

/* the link's preview: the Signup app itself */
.lp { justify-self: start; width: 88%; display: grid; border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .7); }
.lp-app { display: grid; gap: 10px; padding: 12px 14px; background: #f6f7fb; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.lp-top small { color: var(--ink-3); }
.lp-row { display: flex; align-items: center; gap: 12px; }
.lp-btn { padding: 7px 12px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 620; white-space: nowrap; }
.lp-meta { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.lp-meta img { width: 16px; height: 16px; }
.lp-meta small { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.cx-on .dot { width: 7px; height: 7px; background: #5fd08a; box-shadow: none; }
.cx-body { flex: 1; min-height: 0; display: grid; align-content: end; gap: 12px; padding: 18px; }
.cx .msg.bot { background: #232735; color: #e8eaf1; }
.cx .tool { background: #1d2130; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: #b8bdcc; }
.cx .tool b { color: #fff; }
.cx-also { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #9aa0b2; }
.cx-also img { width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: #fff; object-fit: contain; }
.cx-also small { margin-right: 4px; font-size: 13px; }
.cx-also a { margin-left: 4px; color: #c9cede; text-underline-offset: 3px; }


/* a small HTML page, used in several scenes */
.mp-cover { position: relative; height: 128px; border-radius: 10px; overflow: hidden; color: #fff; background: #3a2c20; }
.mp-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.mp-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 40, .74), rgba(10, 14, 40, .1) 75%); }
.mp-cover b { position: absolute; z-index: 1; left: 13px; bottom: 11px; font-family: var(--head); font-weight: 600; font-size: 23px; line-height: 1; letter-spacing: -.04em; }
.mp-cover.big { height: 176px; }
.mp-cover.big b { bottom: 34px; font-size: 34px; }
.mp-cover small { position: absolute; z-index: 1; left: 14px; bottom: 13px; font-size: 13px; opacity: .9; }
.mp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mp-stats span { display: grid; gap: 1px; padding: 7px 9px; border-radius: 8px; background: #f3f5fa; font-size: 11px; color: var(--ink-3); }
.mp-stats b { font-family: var(--head); font-size: 17px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.mp-bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.mp-bars i { flex: 1; height: calc(var(--v) * 100%); border-radius: 3px 3px 1px 1px; background: color-mix(in srgb, var(--blue) 24%, white); transform-origin: bottom; }
.mp-bars i.hi { background: var(--blue); }
.scene.on .mp-bars i { animation: rise .9s var(--soft) both; animation-delay: calc(2.8s + var(--v) * .4s); }
.mp-skel { display: grid; gap: 6px; }
.mp-skel i { height: 8px; border-radius: 4px; background: var(--surface-3); }
.mp-skel i:nth-child(2) { width: 82%; } .mp-skel i:nth-child(3) { width: 58%; }

/* scene 2: create right in Vibemyspace */
.composer.big { height: 54px; color: var(--ink); font-size: 15px; }

/* one centred window instead of two halves */
.scene.solo { grid-template-columns: minmax(0, 900px); justify-content: center; align-content: center; }
.solo .pane { grid-template-rows: auto auto; }
.solo .s-win { height: 470px; }
.solo .vm-body { gap: 18px; padding: 22px; }
.solo .composer.big { height: 60px; font-size: 16px; }
.solo .arts { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; gap: 14px; }
.solo .art-th { flex: none; height: 230px; }
.solo .arts { flex: none; align-content: start; }
.solo .art > p { padding: 11px 13px; font-size: 14px; }
.solo .th-pg b { font-size: 24px; }
.caret-b { flex: none; width: 2px; height: 20px; margin-left: -8px; border-radius: 1px; background: var(--blue); animation: blink 1s steps(1) infinite; }
.arts { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.art { display: flex; flex-direction: column; min-height: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 12px 26px -20px rgba(12, 20, 64, .5); }
.art > p { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.art > p .kind { margin-left: auto; }
.art-th { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.scene.on .art { animation: pop-art .6s var(--soft) both; }
.scene.on .art.p0 { animation-delay: 4.1s; }
.scene.on .art.p1 { animation-delay: 4.55s; }
.scene.on .art.p2 { animation-delay: 5s; }
.scene.on .art.p3 { animation-delay: 5.45s; }
@keyframes pop-art { from { opacity: 0; transform: scale(.9); } }
.th-vid { background: #2a2420; }
.th-vid img, .th-pg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.th-vid img { animation: kenburns 15s ease-in-out infinite alternate; }
.th-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink); }
.th-play .ic { width: 14px; height: 14px; margin-left: 2px; }
.th-bar { position: absolute; left: 10px; right: 10px; bottom: 9px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.th-bar i { display: block; height: 100%; background: var(--coral); transform-origin: left; animation: progress 15s linear infinite; }
.th-app { display: flex; align-items: center; gap: 16px; padding: 0 18px; background: #fff; }
.ta-ring { position: relative; flex: none; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) 223deg, var(--surface-3) 0); }
.ta-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.ta-ring b { position: relative; font-family: var(--head); font-size: 16px; font-weight: 650; letter-spacing: -.03em; }
.ta-l { flex: 1; display: grid; gap: 7px; }
.ta-l i { height: 16px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); }
.ta-l i.btn { background: var(--blue); box-shadow: none; }
.th-flow { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; background: #fff; }
.th-flow > i { flex: 1; max-width: 34px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 7px); }
.th-pg { color: #fff; background: #3a2c20; }
.th-pg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 40, .72), rgba(10, 14, 40, .05) 80%); }
.th-pg img { object-position: 50% 60%; }
.th-pg b { position: absolute; z-index: 1; left: 13px; bottom: 11px; font-family: var(--head); font-weight: 600; font-size: 21px; letter-spacing: -.04em; }

/* a pointer that glides in, clicks, and leaves */
.cur { position: absolute; z-index: 5; width: 22px; height: 22px; pointer-events: none; opacity: 0; }
.cur svg { width: 22px; height: 22px; fill: var(--ink); stroke: #fff; stroke-width: 1.3; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
@keyframes tap { 50% { transform: scale(.9); } }

/* scene 3: share from the artifact */
.sh-art { position: relative; }
.sh-art .win-bar { height: 48px; padding: 0 12px 0 14px; font-size: 14px; }
.sh-btn { position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 620; }
.sh-btn > svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.scene.on .sh-btn { animation: tap .35s 1.75s; }
.c1 { left: 58%; top: 56%; }
.scene.on .c1 { animation: cur1 1.7s var(--ease) .3s both; }
@keyframes cur1 { 0% { opacity: 0; transform: translate(-240px, 300px); } 15% { opacity: 1; } 75% { opacity: 1; transform: none; } 85% { transform: scale(.85); } 100% { opacity: 0; transform: none; } }
.sh-page { display: grid; gap: 10px; padding: 14px; }
.sh-pop { position: absolute; z-index: 4; right: 12px; top: 56px; width: 340px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 30px 60px -20px rgba(12, 20, 64, .55), 0 0 0 1px var(--line); opacity: 0; transform-origin: top right; }
.scene.on .sh-pop { animation: drop .45s var(--spring) 1.95s both; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(.95); } to { opacity: 1; transform: none; } }
.sh-h { font-size: 15.5px; font-weight: 650; margin-bottom: 8px; }
.sh-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.sh-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); }
.sh-ic svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.sh-row .av.sm { --s: 26px; }
.sh-who { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.sh-who b { font-size: 13.5px; font-weight: 620; }
.sh-who small { font-size: 11.5px; color: var(--ink-3); }
.sh-sel { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px 5px 10px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 560; color: var(--ink-2); white-space: nowrap; }
.sh-sel svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sh-copy { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; margin-top: 10px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 620; transition: background .3s; }
.sh-copy > svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sh-copy .i-c, .sh-copy .t-b { display: none; }
.scene.copied .sh-copy { background: var(--ok); }
.scene.copied .sh-copy .i-l, .scene.copied .sh-copy .t-a { display: none; }
.scene.copied .sh-copy .i-c, .scene.copied .sh-copy .t-b { display: inline; }
.scene.on .sh-copy { animation: tap .35s 3.55s; }
.c2 { left: 56%; top: 52%; }
.scene.on .c2 { animation: cur2 1.3s var(--ease) 2.45s both; }
@keyframes cur2 { 0% { opacity: 0; transform: translate(70px, -250px); } 15% { opacity: 1; } 75% { opacity: 1; transform: none; } 85% { transform: scale(.85); } 100% { opacity: 0; transform: none; } }

/* scene 3: the link lands in a chat app */
.chat { --acc: #4a154b; --bg: #fff; --bub: #f1f3f6; }
.chat[data-app="teams"] { --acc: #5b5fc7; --bg: #f5f5fa; --bub: #fff; }
.chat[data-app="whatsapp"] { --acc: #0b7a66; --bg: #efe8de; --bub: #fff; }
.chat[data-app="messenger"] { --acc: #0866ff; }
.chat-bar { flex: none; display: flex; align-items: center; gap: 11px; height: 54px; padding: 0 16px; background: var(--acc); color: #fff; transition: background .4s; }
.chat-bar img { width: 30px; height: 30px; padding: 4px; border-radius: 9px; background: #fff; object-fit: contain; }
.chat-bar span { display: grid; line-height: 1.25; }
.chat-bar b { font-size: 14.5px; font-weight: 650; }
.chat-bar small { font-size: 12px; opacity: .82; }
.chat-body { flex: 1; min-height: 0; display: grid; align-content: end; gap: 12px; padding: 18px; background: var(--bg); transition: background .4s; }
.cm { display: flex; align-items: flex-end; gap: 9px; font-size: 14px; line-height: 1.45; }
.cm.them > span:last-child { padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--bub); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s; }
.cm.me { flex-direction: column; align-items: flex-end; gap: 6px; }
.cm-b { padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--acc); color: #fff; transition: background .4s; }
.cm-b u { text-underline-offset: 2px; }
.unfurl { display: flex; width: 340px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 26px -20px rgba(12, 20, 64, .5); }
.unfurl > img { flex: none; width: 96px; object-fit: cover; object-position: 50% 60%; }
.unfurl > span { display: grid; gap: 4px; padding: 10px 12px; }
.unfurl b { font-size: 13.5px; font-weight: 650; line-height: 1.3; }
.unfurl small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.unfurl small img { width: 13px; height: 13px; }
.scene.on .m1 { animation: pop .5s var(--soft) 4.1s both; }
.scene.on .m2 { animation: pop .5s var(--soft) 5.6s both; }
.apps { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.apps > span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, transform .35s var(--spring); }
.apps img { width: 24px; height: 24px; object-fit: contain; }
.apps > span.on { box-shadow: inset 0 0 0 2px var(--acc); transform: translateY(-2px); }

/* scene 4, left: a real event signup page, as visitors see it */
.ev-url { flex: none; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #f4f5f8; }
.ev-dots { display: flex; gap: 6px; }
.ev-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(12, 17, 48, .14); }
.ev-addr { flex: 1; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--ink-2); }
.ev-addr img { width: 14px; height: 14px; }
.ev-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 620; color: #1f7a45; }
.ev-live .dot { width: 7px; height: 7px; }
.ev-page { flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.ev-cover { position: relative; height: 150px; color: #fff; background: #3a2c20; }
.ev-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.ev-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 14, 40, .7), rgba(10, 14, 40, 0) 70%); }
.ev-cover span { position: absolute; z-index: 1; left: 20px; bottom: 16px; display: grid; gap: 2px; }
.ev-cover small { font-size: 12px; font-weight: 600; opacity: .9; }
.ev-cover b { font-family: var(--head); font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.ev-body { display: grid; gap: 12px; padding: 16px 20px 18px; }
.ev-when { display: flex; align-items: flex-start; gap: 10px; }
.ev-when .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--blue); }
.ev-when > span { display: grid; gap: 2px; }
.ev-when b { font-size: 15px; font-weight: 650; }
.ev-local { max-height: 0; overflow: hidden; opacity: 0; font-size: 13.5px; font-weight: 600; color: #1f7a45; transition: max-height .5s var(--ease), opacity .4s; }
.scene.added .ev-local { max-height: 24px; opacity: 1; }
.scene.added .ev-when { animation: flash 1.4s ease; border-radius: 10px; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 91, .45); background: rgba(47, 158, 91, .1); } 100% { box-shadow: 0 0 0 10px rgba(47, 158, 91, 0); background: transparent; } }
.ev-desc { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.ev-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev-in { display: grid; gap: 1px; padding: 7px 11px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; }
.ev-in small { font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.ev-btn { display: grid; place-items: center; height: 40px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 640; }
.ev-seats { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.ev-seats b { color: var(--ink); }

/* scene 4, right: the agent follows up in its own words */
.fu-bar { flex: none; display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.fu-bar > img { width: 22px; height: 22px; border-radius: 5px; }
.fu-bar small { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.fu-body { flex: 1; min-height: 0; display: grid; align-content: start; gap: 12px; padding: 18px; background: #f6f7fb; }
.fu-q { justify-self: start; display: grid; gap: 8px; max-width: 88%; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.fu-from { display: flex; align-items: center; gap: 9px; }
.fu-from > span:last-child { display: grid; line-height: 1.3; }
.fu-from b { font-size: 13px; font-weight: 650; }
.fu-from small { font-size: 11.5px; color: var(--ink-3); }
.fu-text { font-family: var(--doc); font-size: 16px; color: var(--ink); }
.fu-note { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.fu-note img { flex: none; width: 22px; height: 22px; border-radius: 5px; }
.fu-card { display: grid; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 14px 28px -20px rgba(12, 20, 64, .55); }
.fu-t { font-size: 15px; font-weight: 650; line-height: 1.35; }
.fu-prev { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #f3f5fa; font-size: 13px; }
.fu-prev .ic { width: 15px; height: 15px; color: var(--ink-3); }
.fu-prev .was { color: var(--ink-3); text-decoration: line-through; white-space: nowrap; }
.fu-prev .now { display: grid; line-height: 1.35; }
.fu-prev .now b { font-weight: 650; }
.fu-prev .now small { font-size: 12.5px; font-weight: 600; color: #1f7a45; }
.fu-a { display: flex; justify-content: flex-end; gap: 8px; }
.fb { position: relative; display: inline-grid; place-items: center; height: 34px; padding: 0 14px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 620; }
.fb.ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.scene.on .fu-a .fb:not(.ghost) { animation: tap .35s 4.6s; }
.c3 { left: 55%; top: 50%; }
.scene.on .c3 { animation: cur1 1.4s var(--ease) 3.4s both; }
.fu-done { display: none; align-items: center; gap: 8px; font-size: 14px; font-weight: 620; color: #1f7a45; }
.fu-done .ic { width: 16px; height: 16px; flex: none; }
.scene.added .fu-a { display: none; }
.scene.added .fu-done { display: flex; animation: pop .45s var(--soft); }

/* phones: the two halves of a scene stack, on a narrower canvas */
@media (max-width: 720px) {
  .stage { aspect-ratio: auto; border-radius: 18px; }
  .sc-in { width: 460px; }
  .scene { height: auto; grid-template-columns: 1fr; gap: 22px; padding: 22px 18px 24px; }
  .s-win { height: 420px; }
  .agc-grid { grid-template-columns: 1fr 1fr; }
  .agc { height: 44px; }
  .cx-also small { display: none; }
  .s-win.cx { height: 500px; }
  .cx-body { gap: 9px; padding: 14px; }
  .auth, .lp { width: 100%; }
  .auth { gap: 9px; padding: 12px; }
  .lp-top small, .lp-btn { display: none; }
  .solo .arts { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .solo .art-th { height: 120px; }
  .solo .s-win { height: auto; }
  .sh-pop { width: 300px; }
  .unfurl { width: 100%; }
  .ev-cover { height: 110px; }
  .ev-desc, .ev-seats { display: none; }
  .fu-body { gap: 9px; padding: 14px; }
  .fu-q { max-width: 100%; }
}

