/* Live tile miniatures (moved out of index.html so product pages can share them). */

/* ───── hero grid ───── */
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px,5vw,70px); align-items: center; }
@media (max-width: 1080px) { .hero-grid { grid-template-columns: 1fr; } .hero-dash { max-width: 560px; } }

/* ───── dashboard ───── */
.hero-dash { position: relative; }
.dash {
  border: 1px solid var(--border); border-radius: 24px; overflow: hidden;
  background: var(--bg-2); box-shadow: var(--shadow-deep);
  backdrop-filter: blur(14px);
}
.dash__bar {
  display: flex; align-items: center; gap: 7px; padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
}
.dash__bar i { width: 10px; height: 10px; border-radius: 50%; }
.dash__bar i:nth-child(1){background:#ff5f57} .dash__bar i:nth-child(2){background:#febc2e} .dash__bar i:nth-child(3){background:#28c840}
.dash__bar span { margin-left: 10px; color: var(--text-faint); }
.dash__bar b { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 500; }

.dash__kpis { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--border); }
.kpi { padding: 16px 18px; border-right: 1px solid var(--border); }
.kpi:last-child { border-right: 0; }
.kpi span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--text-faint); display: block; }
.kpi b { font-family: var(--font-display); font-size: clamp(18px,2vw,26px); font-weight: 700; letter-spacing: -.02em; display: block; margin: 4px 0 2px; }
.kpi-up { font-family: var(--font-mono); font-size: 11px; color: var(--lime); font-style: normal; }

.dash__chart { padding: 18px 18px 8px; position: relative; }
.dash__chart-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-bottom: 10px; }
.dash__chart svg { width: 100%; height: 110px; }
.dash-line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: dashDraw 2.6s var(--ease-out) 1.1s forwards; }
@keyframes dashDraw { to { stroke-dashoffset: 0; } }
.dash-fill { opacity: 0; animation: dashFade 1s 3s forwards; }
.dash-dot { opacity: 0; transform-origin: 420px 10px; animation: dashFade .4s 3.4s forwards, ping 1.8s 3.4s infinite; }
@keyframes dashFade { to { opacity: 1; } }
.dash__bars { display: flex; gap: 6px; align-items: flex-end; height: 44px; padding: 8px 2px 2px; }
.dash__bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--violet), transparent); opacity: .75; height: 30%; transition: height .8s var(--ease-out); }

.dash__feed { border-top: 1px solid var(--border); padding: 14px 18px 16px; }
.dash__feed-head { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.dash__feed ul { display: flex; flex-direction: column; gap: 8px; min-height: 86px; }
.dash__feed li {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
  display: flex; gap: 10px; align-items: baseline;
  animation: feedIn .5s var(--ease-out);
}
.dash__feed li b { color: var(--cyan); font-weight: 500; white-space: nowrap; }
@keyframes feedIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* floating chips */
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg-2);
  box-shadow: var(--shadow-deep);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
  animation: chipFloat 5s ease-in-out infinite; z-index: 3;
}
.float-chip b { color: var(--text); font-weight: 600; }
.float-chip svg { width: 40px; height: 16px; }
.float-chip--1 { top: -18px; right: 8%; animation-delay: -1s; }
.float-chip--2 { bottom: 14%; left: -26px; animation-delay: -2.5s; }
.float-chip--3 { bottom: -16px; right: 14%; animation-delay: -4s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1080px) { .float-chip--2 { left: -8px; } }

/* ───── ticker ───── */
.ticker { border-bottom: 1px solid var(--border); background: var(--surface); overflow: hidden; padding: 10px 0; }
.ticker__track { display: inline-flex; gap: 48px; white-space: nowrap; animation: marquee 30s linear infinite; padding-right: 48px; }
.ticker__track span { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); display: inline-flex; gap: 8px; align-items: center; }
.ticker__track span b { color: var(--lime); font-weight: 500; }

/* ───── bento system cards ───── */
.sys-card { display: flex; flex-direction: column; }
.sys-card .h3 { margin-bottom: 18px; }

/* mini chat */
.mini-chat { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.mini-chat__msg {
  max-width: 86%; padding: 12px 16px; border-radius: 16px; font-size: 13.5px;
  line-height: 1.5; color: var(--text-dim); border: 1px solid var(--border);
  opacity: 0; transform: translateY(10px);
}
.mini-chat__msg b { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .15em; margin-bottom: 4px; color: var(--text-faint); }
.mini-chat__msg--agent { background: color-mix(in srgb, var(--violet) 9%, transparent); border-bottom-left-radius: 4px; align-self: flex-start; }
.mini-chat__msg--human { background: var(--surface-2); border-bottom-right-radius: 4px; align-self: flex-end; }
.mini-chat.play .mini-chat__msg { animation: chatIn .5s var(--ease-out) forwards; }
.mini-chat.play .mini-chat__msg:nth-child(1) { animation-delay: .2s; }
.mini-chat.play .mini-chat__msg:nth-child(2) { animation-delay: 1.3s; }
.mini-chat.play .mini-chat__msg:nth-child(3) { animation-delay: 2.6s; }
@keyframes chatIn { to { opacity: 1; transform: none; } }
.mini-chat__typing { display: flex; gap: 4px; padding: 6px 4px; opacity: 0; }
.mini-chat.play .mini-chat__typing { animation: typingShow 1.2s 1.5s forwards; }
@keyframes typingShow { 0%,90% { opacity: 1; } 100% { opacity: 0; height: 0; padding: 0; } }
.mini-chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); animation: typBounce 1s infinite; }
.mini-chat__typing i:nth-child(2){animation-delay:.15s} .mini-chat__typing i:nth-child(3){animation-delay:.3s}
@keyframes typBounce { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-5px);} }
.mini-chat__booked {
  align-self: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  color: var(--lime); border: 1px dashed color-mix(in srgb, var(--lime) 50%, transparent);
  padding: 8px 18px; border-radius: 100px; opacity: 0; transform: scale(.8);
}
.mini-chat.play .mini-chat__booked { animation: bookedPop .6s var(--ease-spring) 3.8s forwards; }
@keyframes bookedPop { to { opacity: 1; transform: scale(1); } }

/* ad viz */
.ad-viz { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin-top: auto; }
@media (max-width: 560px) { .ad-viz { grid-template-columns: 1fr; } }
.donut { position: relative; width: 124px; height: 124px; }
.donut__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--violet) 0 38%, #2ee6d6 38% 64%, var(--magenta) 64% 82%, var(--surface-2) 82% 100%);
  animation: donutSpin 10s linear infinite;
}
@keyframes donutSpin { to { transform: rotate(360deg); } }
.donut__hole {
  position: absolute; inset: 13px; border-radius: 50%; background: var(--bg-2);
  display: grid; place-items: center; text-align: center; align-content: center;
}
.donut__hole b { font-family: var(--font-display); font-size: 22px; font-weight: 700; display: block; }
.donut__hole span { font-size: 10px; font-family: var(--font-mono); color: var(--text-faint); }
.eqbars { display: flex; flex-direction: column; gap: 12px; }
.eqbars__row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.eqtrack { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.eqtrack i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--c); transform-origin: left; animation: eqPulse 2.8s ease-in-out infinite; }
@keyframes eqPulse { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.82); } }

/* sparkline */
.spark { margin-top: auto; }
.spark svg { width: 100%; height: 70px; }
.spark-line { stroke-dasharray: 260; stroke-dashoffset: 260; animation: sparkDraw 3.2s var(--ease-out) infinite; }
@keyframes sparkDraw { 0% { stroke-dashoffset: 260; } 60%,100% { stroke-dashoffset: 0; } }
.spark__chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.spark__chips span { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent); padding: 4px 10px; border-radius: 100px; }

/* flip tiles */
.flipgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: auto; perspective: 600px; }
.fliptile { position: relative; aspect-ratio: 3/4; transform-style: preserve-3d; animation: tileFlip 6s var(--ease-spring) infinite; animation-delay: var(--fd); }
@keyframes tileFlip { 0%, 38% { transform: rotateY(0); } 50%, 88% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.fliptile span {
  position: absolute; inset: 0; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; text-align: center; line-height: 1.5;
  backface-visibility: hidden; color: #fff; letter-spacing: .08em;
  background: linear-gradient(150deg, var(--c1), var(--c2));
}
.fliptile span:last-child { transform: rotateY(180deg); background: var(--bg-3); color: var(--text); border: 1px solid var(--border); }

/* radar */
.radar {
  position: relative; aspect-ratio: 2.2/1; border-radius: 16px; overflow: hidden; margin-top: auto;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 24%, var(--border) 24% calc(24% + 1px), transparent 0 48%, var(--border) 48% calc(48% + 1px), transparent 0),
    var(--surface);
}
.radar__sweep {
  position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent 0 78%, color-mix(in srgb, var(--cyan) 35%, transparent) 95%, var(--cyan) 100%);
  animation: radarSpin 3.4s linear infinite; border-radius: 50%;
}
@keyframes radarSpin { to { transform: rotate(360deg); } }
.radar i {
  position: absolute; left: var(--x); top: var(--y); width: 7px; height: 7px;
  border-radius: 50%; background: var(--lime); animation: blipPulse 3.4s infinite;
}
@keyframes blipPulse { 0%,15% { opacity: 1; box-shadow: 0 0 12px var(--lime); } 60%,100% { opacity: .25; box-shadow: none; } }
.radar__caption { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.radar__caption b { color: var(--lime); }

/* voice waveform — bars breathe at staggered delays so the row reads as
   speech rather than a loading spinner */
.vwave { display: flex; align-items: center; gap: 5px; height: 68px; margin-top: auto; }
.vwave i {
  flex: 1; border-radius: 3px; min-height: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  height: var(--h); transform-origin: center;
  animation: vwavePulse 1.4s var(--ease-out) infinite alternate;
  animation-delay: var(--d);
}
@keyframes vwavePulse { from { transform: scaleY(.35); opacity: .55; } to { transform: scaleY(1); opacity: 1; } }
.vwave__caption { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); line-height: 1.5; }
.vwave__caption b { color: var(--text-dim); font-weight: 500; }

/* concierge — the launcher cycling through client brand colours, which is
   literally what the widget does when it adopts a site's palette */
.brandswap { display: flex; align-items: center; gap: 10px; margin-top: auto; height: 68px; }
.brandswap__dot {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--c); box-shadow: 0 0 0 0 var(--c);
  animation: brandPulse 2.6s var(--ease-out) infinite;
  animation-delay: var(--bd, 0s);
}
@keyframes brandPulse {
  0%, 70%, 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
  35% { transform: scale(1.18); box-shadow: 0 0 14px 0 var(--c); }
}
.brandswap__bubble {
  margin-left: 4px; padding: 8px 13px; border-radius: 12px 12px 12px 3px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-dim); line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
  .vwave i, .brandswap__dot { animation: none; }
}

/* ───── email demo ───── */
.emaildemo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px,5vw,80px); align-items: center; }
@media (max-width: 980px) { .emaildemo-grid { grid-template-columns: 1fr; } }
.emailcard {
  border: 1px solid var(--border); border-radius: 22px; background: var(--bg-2);
  box-shadow: var(--shadow-deep); overflow: hidden;
}
.emailcard__head { display: flex; gap: 14px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.emailcard__head b { display: block; font-size: 14px; }
.emailcard__head span { font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); }
.emailcard__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  background: var(--grad); color: #fff;
}
.emailcard__avatar--human { background: var(--grad-warm); }
.emailcard__body { padding: 24px; min-height: 190px; font-size: 14.5px; line-height: 1.75; color: var(--text-dim); white-space: pre-wrap; }
.typecaret { color: var(--lime); animation: blink .8s infinite; font-style: normal; }
.emailcard__reply {
  display: flex; gap: 14px; align-items: center; margin: 0 24px 24px;
  padding: 16px 18px; border-radius: 16px; background: var(--surface-2);
  border: 1px solid var(--border); opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.emailcard__reply.is-shown { opacity: 1; transform: none; }
.emailcard__reply p { font-size: 14.5px; font-style: italic; }

/* ───── pipeline (unchanged) ───── */
.pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.pipeline__stage {
  border: 1px solid var(--border); border-radius: 20px; padding: 26px 22px;
  background: var(--surface); backdrop-filter: blur(10px); position: relative;
  transition: border-color .4s, transform .4s var(--ease-out);
}
.pipeline__stage:hover { border-color: var(--border-bright); transform: translateY(-5px); }
.pipeline__stage--win { border-color: color-mix(in srgb, var(--lime) 45%, transparent); background: color-mix(in srgb, var(--lime) 6%, transparent); }
.pipeline__head { font-family: var(--font-mono); font-size: 13px; letter-spacing: .2em; color: var(--text); margin-bottom: 14px; }
.pipeline__pulse { width: 100%; height: 3px; border-radius: 3px; background: var(--surface-2); position: relative; overflow: hidden; margin-bottom: 16px; }
.pipeline__pulse::after { content: ''; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--c); border-radius: 3px; animation: pulseSlide 2.2s var(--ease-out) infinite; }
@keyframes pulseSlide { to { left: 110%; } }
.pipeline__stage p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.pipeline__link { display: flex; align-items: center; width: 60px; }
.dashflow { animation: dashMove 1.2s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -12; } }
@media (max-width: 980px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline__link { width: 24px; height: 40px; margin: 0 auto; transform: rotate(90deg); }
}

/* ---------- Outbound OS waterfall: one lead, providers tried in ranked order ---------- */
.wf { position: relative; margin: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); padding: clamp(22px, 3.6vw, 44px); border-radius: 28px; background: #fff; color: #17151f;
  box-shadow: 0 0 0 1px rgba(23,21,31,.06), 0 60px 120px -60px rgba(60,40,160,.45); overflow: hidden; }
.wf::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 90%; background: radial-gradient(closest-side, rgba(138,107,255,.16), transparent); pointer-events: none; }
.wf__head { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px 48px; align-items: end; margin-bottom: 26px; }
.wf__k { grid-column: 1 / -1; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; color: #5738e0; }
.wf__k em { font-style: normal; margin-left: 10px; padding: 3px 7px; border: 1px solid #e4e0f5; border-radius: 5px; color: #8b86a3; letter-spacing: .08em; }
.wf__head h3 { font-size: clamp(22px, 2.5vw, 32px); line-height: 1.12; letter-spacing: -.03em; font-weight: 600; color: #17151f; }
.wf__head p { font-size: 14.5px; line-height: 1.55; color: #5d5a6b; }
.wf__bar { position: relative; height: 3px; border-radius: 3px; background: #efedf6; margin-bottom: 20px; overflow: hidden; }
.wf__bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #8a6bff, #5738e0); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.wf__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.wf__s { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 14px; border-radius: 18px; background: #faf9fe; border: 1px solid #eeecf6;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .3s, background .3s; }
.wf__s.on { background: #fff; border-color: #c9bdff; transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(87,56,224,.5); }
.wf__s.done { background: #fff; }
.wf__top { display: flex; align-items: center; gap: 9px; }
.wf__top small { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #efedf6; color: #6b6780; font: 600 10.5px/1 var(--font-mono); transition: background .3s, color .3s; }
.wf__s.on .wf__top small, .wf__s.done .wf__top small { background: linear-gradient(135deg, #8a6bff, #5738e0); color: #fff; }
.wf__top b { font-size: 15px; font-weight: 600; letter-spacing: -.015em; color: #17151f; }
.wf__s > em { font-style: normal; font-size: 12.5px; line-height: 1.4; color: #75718a; min-height: 2.8em; }
.wf__p { display: flex; flex-direction: column; gap: 5px; }
.wf__p span, .wf__p span.has-lg { display: flex !important; align-items: center; position: relative; padding: 4px 8px 4px 4px; border-radius: 10px; background: #fff; border: 1px solid #eeecf6;
  font-size: 12.5px; font-weight: 500; color: #2b2838; transition: opacity .3s, border-color .3s, background .3s; }
.wf__p span .lg { font-size: 16px; }
.wf__p span::after { margin-left: auto; padding-left: 8px; font: 600 9.5px/1 var(--font-mono); letter-spacing: .06em; color: transparent; transition: color .25s; }
.wf__p span.try { border-color: #c9bdff; background: #f5f2ff; }
.wf__p span.try::after { content: "TRYING"; color: #7c62f5; }
.wf__p span.miss { opacity: .42; }
.wf__p span.miss::after { content: "NO ANSWER"; color: #9a96aa; }
.wf__p span.hit { border-color: #9fdcb5; background: #effaf3; }
.wf__p span.hit::after { content: "\2713  HIT"; color: #15803d; }
.wf__p span.hit[data-hitlabel]::after { content: "\2713  " attr(data-hitlabel); }
.wf__p span.miss[data-miss]::after { content: attr(data-miss); color: #b45309; }
.wf__p span.ok { border-color: #9fdcb5; background: #effaf3; }
.wf__p span.ok::after { content: "\2713  " attr(data-ok); color: #15803d; }
.wf__out { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 500; color: #15803d; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.wf__out i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); flex: none; }
.wf__s.got .wf__out, .wf__s.done .wf__out { opacity: 1; transform: none; }
@media (max-width: 1000px) { .wf__head { grid-template-columns: 1fr; } .wf__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wf__steps { grid-template-columns: 1fr; } .wf__s > em { min-height: 0; } }

/* tiles that show a real screen instead of a drawn miniature */
.tile-shot { position: relative; margin-top: 14px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line, #ebe8e1); background: #f6f6f7; }
.tile-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.sys-card:hover .tile-shot img { transform: scale(1.07) translate(-1%, -1%); }
.tile-shot em { position: absolute; left: 10px; bottom: 10px; font: 500 11px/1 var(--font-body, system-ui); font-style: normal; color: #15803d; background: #effaf3; border: 1px solid #bfe5cc; padding: 4px 8px; border-radius: 7px; }
