/* ============================================================
   Quicklead — Homepage & rich marketing sections
   ============================================================ */

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(44px, 5vw, 72px) clamp(40px, 4.5vw, 66px); overflow: hidden; }
.hero-in { position: relative; z-index: 2; text-align: center; max-width: 900px; margin-inline: auto; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .grad-text {
  background: linear-gradient(104deg, var(--violet-600) 0%, var(--violet-400) 26%, #2FBBD0 50%, var(--violet-400) 74%, var(--violet-600) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .grad-text { animation: none; } }
.hero .lede { margin-inline: auto; font-size: clamp(1.05rem, 1.6vw, 1.24rem); max-width: 60ch; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero-fine { margin-top: 20px; font-size: 13px; color: var(--text-dim); display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero-fine i { color: var(--acc-emerald); font-size: 11px; }
.hero-sep { width: 1px; height: 12px; background: var(--line-str); }

/* Falling activity pills, one on each side of the hero copy.
   Anchored to the hero's real free gutter, never to the text block, so they
   can never be pushed off-screen. Each pill runs its own timeline and drifts
   sideways as it falls, so they never form a column. */
.nstream {
  position: absolute; top: 0; height: 100%;
  width: clamp(250px, calc((100% - 900px) / 2 - 12px), 340px);
  overflow: hidden; pointer-events: none; z-index: 3;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.nstream-left  { left: 14px; }
.nstream-right { right: 14px; }

.ncard {
  /* left is a % of the stream, and max-width reserves the rest plus the drift,
     so a pill can never be clipped by the stream edge at any viewport width */
  position: absolute; top: 0;
  /* a 12px inset absorbs the leftward drift; the reserve covers the right edge.
     Pills are sized so their full label fits inside this, never truncated. */
  left: calc(var(--xp, 0%) + 12px);
  max-width: calc(100% - var(--xp, 0%) - 34px);
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 24px -14px rgba(23,18,58,.3);
  opacity: 0;
  animation: nfall var(--dur, 26s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}
@keyframes nfall {
  0%   { transform: translate3d(0, -80px, 0) scale(var(--sc, 1)); opacity: 0; }
  4%   { opacity: 1; }
  26%  { transform: translate3d(calc(var(--dx, 0px) / 2), 210px, 0) scale(var(--sc, 1)); }
  44%  { opacity: 1; }
  50%  { transform: translate3d(var(--dx, 0px), 580px, 0) scale(var(--sc, 1)); opacity: 0; }
  100% { transform: translate3d(var(--dx, 0px), 580px, 0) scale(var(--sc, 1)); opacity: 0; }
}

.ncard-i { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 11px; }
.ncard-violet { background: rgba(122,77,255,.11); color: var(--acc-violet); }
.ncard-cyan   { background: rgba(12,132,150,.11); color: var(--acc-cyan); }
.ncard-lime   { background: rgba(76,122,8,.11);   color: var(--acc-lime); }
.ncard-amber  { background: rgba(167,106,5,.12);  color: var(--acc-amber); }
.ncard-b { display: flex; flex-direction: column; min-width: 0; }
.ncard-b b  { font-family: var(--f-display); font-size: 11.5px; font-weight: 620; color: var(--text-hi); line-height: 1.28; white-space: nowrap; }
.ncard-b em { font-style: normal; font-size: 10px; color: var(--text-lo); line-height: 1.28; white-space: nowrap; }

/* below this the gutter is too narrow to hold a pill without clipping */
@media (max-width: 1340px) { .nstream { display: none; } }
@media (prefers-reduced-motion: reduce) { .ncard { animation: none; opacity: 1; position: static; margin-bottom: 12px; } }

/* trust ribbon under hero */
.hero-trust { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.hero-trust-i { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-lo); }
.hero-trust-i strong { color: var(--text-hi); font-weight: 620; }
.hero-trust img { height: 20px; width: auto; opacity: .8; }

/* ---------- Product frame (browser chrome) ---------- */
.frame-glow { position: relative; }
.frame-glow::before {
  content: ''; position: absolute; z-index: 0; left: 50%; top: 46%;
  width: 105%; aspect-ratio: 1.9; transform: translate(-50%,-50%);
  background: conic-gradient(from 0deg, rgba(122,77,255,.34), rgba(70,229,240,.2), rgba(176,48,143,.24), rgba(122,77,255,.34));
  filter: blur(90px); border-radius: 50%; pointer-events: none;
  animation: spinGlow 24s linear infinite;
}
@keyframes spinGlow { to { transform: translate(-50%,-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .frame-glow::before { animation: none; } }

.frame {
  position: relative; z-index: 1; margin-top: 40px; border-radius: var(--r-2xl);
  background-color: #2A2268;
  background-image: linear-gradient(170deg, #322A78, #221B57);
  border: 1px solid rgba(255,255,255,.1);
  padding: 10px;
  box-shadow: 0 50px 110px -46px rgba(122,77,255,.5), 0 26px 60px -30px rgba(23,18,58,.5);
}
.frame::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(168,141,255,.55), transparent 42%, transparent 62%, rgba(70,229,240,.32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.frame-in { background-color: #1F1852; background-image: linear-gradient(180deg, #241C5E, #1B1547); border-radius: calc(var(--r-2xl) - 10px); overflow: hidden; border: 1px solid var(--line); }
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--fill-3); }
.frame-url {
  margin-inline: auto; font-family: var(--f-mono); font-size: 11.5px; color: var(--text-dim);
  background: var(--fill-1); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 5px 16px; display: inline-flex; align-items: center; gap: 7px;
}
.frame-url i { color: var(--emerald-400); font-size: 9px; }
.frame-body { padding: 0; }

/* ---------- App mock ---------- */
.app { display: grid; grid-template-columns: 190px 1fr; min-height: 430px; }
.app-side { border-right: 1px solid var(--line); padding: 16px 12px; background: rgba(14,9,42,.35); }
.app-side-h { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); padding: 8px 10px 6px; }
.app-nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13px; color: var(--text-lo); }
.app-nav i { width: 15px; text-align: center; font-size: 12px; opacity: .8; }
.app-nav.on { background: linear-gradient(100deg, rgba(122,77,255,.24), rgba(122,77,255,.05)); color: var(--text-hi); border: 1px solid rgba(138,107,255,.24); }
.app-main { padding: 20px; display: grid; gap: 16px; align-content: start; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.app-title { font-family: var(--f-display); font-size: 16px; font-weight: 620; color: var(--text-hi); }
.app-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 13px 14px; border-radius: var(--r-sm); background: var(--fill-1); border: 1px solid var(--line); }
.kpi-n { font-family: var(--f-display); font-size: 19px; font-weight: 660; color: var(--text-hi); letter-spacing: -.03em; }
.kpi-l { font-size: 10.5px; color: var(--text-dim); margin-top: 3px; }
.kpi-up { font-size: 10px; color: var(--emerald-400); }

/* lead rows */
.leads { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.lead-r { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.lead-r:last-child { border-bottom: 0; }
.lead-p { display: flex; align-items: center; gap: 11px; min-width: 0; }
.lead-p > span { min-width: 0; }
.lead-av { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; border: 1px solid var(--line-str); }
.lead-n { display: block; font-size: 13.5px; color: var(--text-hi); font-weight: 550; line-height: 1.35; }
.lead-m { display: block; font-size: 11.5px; color: var(--text-dim); line-height: 1.3; }
.score { font-family: var(--f-mono); font-size: 11px; padding: 4px 9px; border-radius: 6px; letter-spacing: .04em; }
.score-hi { background: rgba(61,224,160,.14); color: var(--emerald-400); border: 1px solid rgba(61,224,160,.26); }
.score-md { background: rgba(255,194,75,.13); color: var(--amber-400); border: 1px solid rgba(255,194,75,.24); }
.score-lo { background: var(--fill-2); color: var(--text-dim); border: 1px solid var(--line); }
.lead-s { font-size: 11.5px; color: var(--text-lo); display: inline-flex; align-items: center; gap: 6px; }
.pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-400); animation: pulse 2s ease-in-out infinite; flex: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(61,224,160,.5); } 50% { box-shadow: 0 0 0 5px rgba(61,224,160,0); } }
@media (max-width: 780px) { .app { grid-template-columns: 1fr; } .app-side { display: none; } .app-kpis { grid-template-columns: repeat(2,1fr); } .lead-r { grid-template-columns: 1fr auto; } .lead-s { display: none; } }

/* ---------- Pipeline strip ---------- */
.pipe { display: flex; align-items: center; gap: 0; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.rv.in .pipe-s { animation: popIn .5s var(--ease) both; }
.rv.in .pipe-s:nth-child(1){animation-delay:.05s}.rv.in .pipe-s:nth-child(3){animation-delay:.15s}
.rv.in .pipe-s:nth-child(5){animation-delay:.25s}.rv.in .pipe-s:nth-child(7){animation-delay:.35s}
.rv.in .pipe-s:nth-child(9){animation-delay:.45s}
@keyframes popIn { from { opacity:0; transform: translateY(10px) scale(.96);} to { opacity:1; transform:none; } }

.pipe-s {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--fill-1);
  font-size: 13.5px; color: var(--text-mid); white-space: nowrap;
}
.pipe-s i { color: var(--violet-300); font-size: 12px; }
.pipe-a { color: var(--text-dim); padding-inline: 10px; font-size: 11px; }
@media (max-width: 700px) { .pipe-a { transform: rotate(90deg); padding-block: 6px; } .pipe { flex-direction: column; } }

/* ---------- Logo marquee (all customers, always moving) ---------- */
.logowall { position: relative; }
.logowall::before, .logowall::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 14%; z-index: 2; pointer-events: none;
}
.logowall::before { left: 0;  background: linear-gradient(90deg, #fff 8%, rgba(255,255,255,0)); }
.logowall::after  { right: 0; background: linear-gradient(270deg, #fff 8%, rgba(255,255,255,0)); }

.logorow { overflow: hidden; display: flex; }
.logorow + .logorow { margin-top: 11px; }
.logotrack {
  display: flex; align-items: center; gap: 0; width: max-content;
  animation: logoScroll var(--dur, 62s) linear infinite;
}
.logotrack.logo-rev { animation-direction: reverse; }
.logowall:hover .logotrack { animation-play-state: paused; }
@keyframes logoScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Real customer logos in their own colours. A near-white plate keeps
   dark-on-transparent marks legible on the dark canvas without altering brand colour. */
.logocell {
  flex: none; display: grid; place-items: center;
  width: 146px; height: 66px; margin-right: 11px; padding: 10px 15px;
  border: 0; border-radius: var(--r-md);
  background: transparent;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.logocell:hover { transform: translateY(-3px); }
.logocell img {
  max-height: 28px; max-width: 108px; width: auto; height: auto; object-fit: contain;
  opacity: .9; transition: opacity .3s var(--ease);
}
.logocell:hover img { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .logotrack { animation: none; } }
@media (max-width: 640px) { .logocell { width: 120px; height: 56px; padding: 8px 12px; margin-right: 9px; } .logocell img { max-width: 88px; max-height: 23px; } }

/* ---------- Play overlay on the hero screenshot ---------- */
.frame-play {
  position: absolute; inset: 10px; z-index: 4; cursor: pointer;
  border: 0; padding: 0; border-radius: calc(var(--r-2xl) - 10px);
  display: grid; place-items: center; gap: 18px; align-content: center;
  background: radial-gradient(58% 58% at 50% 50%, rgba(20,13,58,.42), rgba(16,10,48,.66));
  transition: background .4s var(--ease);
}
.frame-play:hover { background: radial-gradient(58% 58% at 50% 50%, rgba(20,13,58,.55), rgba(16,10,48,.78)); }

.frame-play-btn {
  position: relative; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; color: #fff;
  background: linear-gradient(140deg, var(--violet-400), var(--violet-600) 60%, #4A18B8);
  box-shadow: 0 20px 50px -12px rgba(122,77,255,1), 0 0 0 1px rgba(255,255,255,.16) inset;
  transition: transform .35s var(--ease);
}
.frame-play-btn i { margin-left: 5px; }
.frame-play-btn::before,
.frame-play-btn::after {
  content: ''; position: absolute; inset: -16px; border-radius: 50%;
  border: 1px solid rgba(190,168,255,.55);
  animation: ripple 2.8s ease-out infinite;
}
.frame-play-btn::after { animation-delay: 1.05s; border-color: rgba(190,168,255,.35); }
@keyframes ripple { 0% { transform: scale(.88); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.frame-play:hover .frame-play-btn { transform: scale(1.07); }

.frame-play-hint {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 10px 20px; border-radius: var(--r-pill);
  background: rgba(14,9,42,.7); backdrop-filter: blur(12px);
  border: 1px solid var(--line-str); color: var(--text-hi); font-size: 13.5px;
}
@media (max-width: 640px) {
  .frame-play-btn { width: 62px; height: 62px; font-size: 18px; }
  .frame-play-hint { font-size: 12px; padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .frame-play-btn::before, .frame-play-btn::after { animation: none; opacity: 0; }
}

/* ---------- Video popup ---------- */
.vmodal {
  position: fixed; inset: 0; z-index: 1000; display: none;
  place-items: center; padding: clamp(16px, 5vw, 56px);
  background: rgba(12,8,36,.94); backdrop-filter: blur(16px);
}
.vmodal.open { display: grid; animation: vmIn .3s var(--ease); }
@keyframes vmIn { from { opacity: 0; } to { opacity: 1; } }
body.vmodal-open { overflow: hidden; }

.vmodal-box { width: min(1120px, 100%); }
.vmodal-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line-str); background: #120C3A;
  box-shadow: 0 50px 120px -40px rgba(122,77,255,.7), 0 30px 80px -30px rgba(0,0,0,1);
  animation: vmPop .38s var(--ease);
}
@keyframes vmPop { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.vmodal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Vertical (Shorts) videos: a phone-shaped frame that always fits the viewport height */
.vmodal-v .vmodal-box { width: min(420px, 100%, calc((100vh - 112px) * 9 / 16)); }
.vmodal-v .vmodal-frame { aspect-ratio: 9 / 16; }

/* ---------- Video testimonials: one landscape story + two vertical reels ----------
   3.16fr : 1fr : 1fr keeps the 16:9 and 9:16 thumbnails the same height. */
.vt { display: grid; grid-template-columns: minmax(0, 3.16fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.vt-tall .vid-t { aspect-ratio: 9 / 16; }
.vt .vid-thumb .vid-play { opacity: 1; width: 60px; height: 60px; font-size: 17px; }
.vt-wide .vid-b h3 { font-size: 17px; }
.vt-tall .vid-b { padding: 14px 16px; }
.vt-tall .vid-b h3 { font-size: 13.5px; }
.vid-b p b { color: var(--text-hi); font-weight: 600; }
@media (max-width: 900px) {
  .vt { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .vt-wide { grid-column: 1 / -1; }
}

.vmodal-x {
  position: absolute; top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-str); color: #fff; font-size: 16px;
  background: rgba(255,255,255,.07);
  transition: background .2s, transform .25s var(--ease);
}
.vmodal-x:hover { background: var(--violet-600); transform: rotate(90deg); }

/* ---------- Horizontal animated pipeline ---------- */
.flow { position: relative; }

/* the rail of steps */
.flow-rail {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative; margin-bottom: 40px;
}
.flow-rail::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px;
  background: var(--fill-3); border-radius: 2px;
}
.flow-rail::after {
  content: ''; position: absolute; left: 10%; top: 27px; height: 2px;
  width: calc((var(--at, 0) / 4) * 80%);
  background: linear-gradient(90deg, var(--violet-400), var(--cyan-400));
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(138,107,255,.85);
  transition: width .7s var(--ease);
}

.flow-step {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 0 8px; background: none; border: 0; cursor: pointer; text-align: center;
}
.flow-dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 680; font-size: 16px;
  color: var(--text-lo);
  background: #fff; border: 2px solid var(--line-str);
  box-shadow: var(--sh-1);
  transition: all .5s var(--ease);
}
.flow-step:hover .flow-dot { border-color: var(--line-glow); color: var(--text-hi); }
.flow-step.done .flow-dot {
  background: linear-gradient(140deg, var(--violet-600), var(--violet-700));
  border-color: transparent; color: #fff;
}
.flow-step.on .flow-dot {
  background: linear-gradient(140deg, var(--violet-400), var(--violet-600));
  border-color: transparent; color: #fff;
  transform: scale(1.14);
  box-shadow: 0 0 0 6px rgba(138,107,255,.2), 0 14px 34px -10px rgba(122,77,255,.95);
}
.flow-step.on .flow-dot i { animation: dotPop .55s var(--ease); }
@keyframes dotPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.flow-label {
  font-family: var(--f-display); font-size: 13.5px; font-weight: 600; letter-spacing: -.012em;
  color: var(--text-lo); transition: color .4s var(--ease);
}
.flow-step.on .flow-label { color: var(--text-hi); }
.flow-step.done .flow-label { color: var(--text-mid); }
.flow-sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }

/* the stage */
.flow-stage {
  position: relative;
  border-radius: var(--r-2xl); border: 1px solid rgba(255,255,255,.1);
  background-color: #251E5C;
  background-image: linear-gradient(160deg, #2E2470 0%, #201953 55%, #26205F 100%);
  overflow: hidden;
  box-shadow: 0 40px 90px -44px rgba(23,18,58,.5);
}
/* per-step timer */
.flow-timer { position: absolute; top: 0; left: 0; height: 3px; z-index: 3; width: 0;
  background: linear-gradient(90deg, var(--violet-400), var(--cyan-400)); }
.flow-timer.run { animation: flowTimer var(--dwell, 6s) linear forwards; }
@keyframes flowTimer { from { width: 0; } to { width: 100%; } }

.flow-panels { position: relative; }
.flow-panel {
  display: grid; grid-template-columns: .92fr 1.08fr; gap: 44px; align-items: center;
  padding: clamp(26px, 3.4vw, 46px);
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .36s var(--ease), transform .36s var(--ease), visibility .36s;
  transform: translateY(16px);
  pointer-events: none;
}
.flow-panel.on { position: relative; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.flow-panel-copy .tour-num { display: block; margin-bottom: 10px; }
.flow-panel-copy h3 { font-size: clamp(1.3rem, 2.3vw, 1.85rem); letter-spacing: -.03em; margin-bottom: 14px; }
.flow-panel-copy p { font-size: 15px; color: var(--text-mid); line-height: 1.72; }
.flow-panel-copy .link-arrow { margin-top: 20px; }
.flow-panel.on .flow-panel-copy > * { animation: flowIn .42s var(--ease) both; }
.flow-panel.on .flow-panel-copy > *:nth-child(2) { animation-delay: .08s; }
.flow-panel.on .flow-panel-copy > *:nth-child(3) { animation-delay: .16s; }
.flow-panel.on .flow-panel-copy > *:nth-child(4) { animation-delay: .24s; }
.flow-panel.on .flow-panel-vis { animation: flowIn .46s var(--ease) .06s both; }
@keyframes flowIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── in-screen automation: each stage plays itself out when it becomes active ── */

/* lead rows drop in, then flash once as they are processed */
.flow-panel.on .lead-r { animation: rowIn .34s var(--ease) both, rowFlash .7s ease-out both; }
.flow-panel.on .lead-r:nth-child(1){animation-delay:.10s,.34s}
.flow-panel.on .lead-r:nth-child(2){animation-delay:.20s,.44s}
.flow-panel.on .lead-r:nth-child(3){animation-delay:.30s,.54s}
.flow-panel.on .lead-r:nth-child(4){animation-delay:.40s,.64s}
.flow-panel.on .lead-r:nth-child(5){animation-delay:.50s,.74s}
@keyframes rowIn   { from { opacity:0; transform: translateX(-14px);} to { opacity:1; transform:none; } }
@keyframes rowFlash{ 0%{ background: rgba(138,107,255,.22);} 100%{ background: transparent; } }

/* the score badge pops in after its row lands */
.flow-panel.on .score { animation: scorePop .38s var(--ease) both; }
.flow-panel.on .lead-r:nth-child(1) .score{animation-delay:.42s}
.flow-panel.on .lead-r:nth-child(2) .score{animation-delay:.52s}
.flow-panel.on .lead-r:nth-child(3) .score{animation-delay:.62s}
.flow-panel.on .lead-r:nth-child(4) .score{animation-delay:.72s}
.flow-panel.on .lead-r:nth-child(5) .score{animation-delay:.82s}
@keyframes scorePop { 0%{opacity:0;transform:scale(.6);} 60%{transform:scale(1.12);} 100%{opacity:1;transform:none;} }

/* sequence steps fire in order, each lighting up as it runs */
.flow-panel.on .seq-n { animation: rowIn .3s var(--ease) both, stepFire .9s ease-out both; }
/* steps alternate with connector lines, so stagger by child position */
.flow-panel.on .seq-n:nth-child(1),.flow-panel.on .seq-n:nth-child(2){animation-delay:.10s,.20s}
.flow-panel.on .seq-n:nth-child(3),.flow-panel.on .seq-n:nth-child(4){animation-delay:.24s,.34s}
.flow-panel.on .seq-n:nth-child(5),.flow-panel.on .seq-n:nth-child(6){animation-delay:.38s,.48s}
.flow-panel.on .seq-n:nth-child(7),.flow-panel.on .seq-n:nth-child(8){animation-delay:.52s,.62s}
.flow-panel.on .seq-n:nth-child(9),.flow-panel.on .seq-n:nth-child(10){animation-delay:.66s,.76s}
.flow-panel.on .seq-n:nth-child(11),.flow-panel.on .seq-n:nth-child(12){animation-delay:.80s,.90s}
@keyframes stepFire {
  0%   { border-color: var(--line); box-shadow: none; }
  30%  { border-color: rgba(168,141,255,.8); box-shadow: 0 0 0 3px rgba(138,107,255,.16); }
  100% { border-color: var(--line); box-shadow: none; }
}
/* a dot travelling down the sequence */
.seq-live { position: relative; }
.seq-runner {
  position: absolute; left: -7px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan-400); box-shadow: 0 0 10px 2px rgba(70,229,240,.9); opacity: 0;
}
.flow-panel.on .seq-runner { animation: runDown 2.4s cubic-bezier(.55,.1,.45,.9) .2s infinite; }
@keyframes runDown {
  0%   { top: 8px;  opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: calc(100% - 14px); opacity: 0; }
}

/* chat: typing indicator, then the reply lands */
.flow-panel.on .bub { animation: rowIn .36s var(--ease) both; }
.flow-panel.on .bub:nth-child(2){animation-delay:.18s}
.flow-panel.on .bub.typing{animation-delay:.75s}
.flow-panel.on .bub:nth-child(4){animation-delay:1.45s}

/* calendar cells fill one after another */
.flow-panel.on .cal-c.booked { animation: scorePop .4s var(--ease) both; }
.flow-panel.on .cal-c:nth-child(-n+10){animation-delay:.18s}
.flow-panel.on .cal-c:nth-child(n+11):nth-child(-n+15){animation-delay:.34s}
.flow-panel.on .cal-c:nth-child(n+16):nth-child(-n+20){animation-delay:.50s}
.flow-panel.on .cal-c:nth-child(n+21){animation-delay:.66s}

/* a scan bar that sweeps while the screen "processes" */
.scanbar { height: 3px; border-radius: 2px; background: var(--fill-2); overflow: hidden; margin-bottom: 16px; }
.scanbar span { display: block; height: 100%; width: 40%; border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--violet-400), var(--cyan-400), transparent); opacity: 0; }
.flow-panel.on .scanbar span { animation: scan 1.5s ease-in-out .1s infinite; }
@keyframes scan { 0%{ transform: translateX(-110%); opacity:1; } 100%{ transform: translateX(320%); opacity:1; } }

/* the counter reads as if it is still climbing */
.tick { color: var(--text-hi); font-weight: 600; }
.flow-panel.on .tick { animation: tickIn .5s var(--ease) .6s both; }
@keyframes tickIn { from { opacity:.35; filter: blur(3px);} to { opacity:1; filter:none; } }

/* kpi tiles count in */
.flow-panel.on .kpi { animation: rowIn .34s var(--ease) both; }
.flow-panel.on .kpi:nth-child(1){animation-delay:.08s}.flow-panel.on .kpi:nth-child(2){animation-delay:.16s}
.flow-panel.on .kpi:nth-child(3){animation-delay:.24s}.flow-panel.on .kpi:nth-child(4){animation-delay:.32s}

@media (prefers-reduced-motion: reduce) {
  .flow-panel.on *, .flow-panel.on .scanbar span, .flow-panel.on .seq-runner { animation: none !important; }
  .seq-runner { display: none; }
}

/* controls */
.flow-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }
.flow-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-str); color: var(--text-mid); font-size: 13px;
  transition: all .25s var(--ease);
}
.flow-btn:hover { color: var(--text-hi); background: var(--fill-2); border-color: var(--line-glow); }
.flow-pos { font-family: var(--f-mono); font-size: 12px; color: var(--text-lo); min-width: 54px; text-align: center; }

@media (max-width: 900px) {
  .flow-panel { grid-template-columns: 1fr; gap: 26px; }
  .flow-rail { grid-template-columns: repeat(5, 1fr); }
  .flow-dot { width: 44px; height: 44px; font-size: 14px; }
  .flow-rail::before, .flow-rail::after { top: 21px; }
  .flow-label { font-size: 11.5px; }
  .flow-sub { display: none; }
}
@media (max-width: 560px) {
  .flow-rail { overflow-x: auto; grid-template-columns: repeat(5, 116px); }
  .flow-rail::before, .flow-rail::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-timer.run { animation: none; width: 100%; }
  .flow-panel.on * { animation: none !important; }
}

/* visual panel shell */
.vis {
  border-radius: var(--r-xl); border: 1px solid rgba(255,255,255,.1);
  background-color: #231C5A;
  background-image: linear-gradient(165deg, #2A2268, #1B1547);
  padding: 22px; min-height: 400px;
  box-shadow: 0 34px 74px -34px rgba(23,18,58,.5);
}
.vis-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.vis-t { font-family: var(--f-display); font-size: 13.5px; font-weight: 620; color: var(--text-hi); }

/* sequence node list */
.seq { display: grid; gap: 9px; }
.seq-n {
  display: flex; align-items: center; gap: 12px; padding: 12px 15px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--fill-1);
  font-size: 13.5px; color: var(--text-mid);
}
.seq-n .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 11.5px; flex: none; background: rgba(122,77,255,.18); color: var(--violet-200); border: 1px solid rgba(138,107,255,.2); }
.seq-n .when { margin-left: auto; font-family: var(--f-mono); font-size: 10.5px; color: var(--text-dim); }
.seq-n.branch { border-style: dashed; }
.seq-n.branch .ic { background: rgba(70,229,240,.14); color: var(--cyan-400); border-color: rgba(70,229,240,.2); }
.seq-line { width: 1px; height: 12px; background: var(--line-str); margin-left: 29px; }

/* chat bubbles */
.chat { display: grid; gap: 12px; }
.bub { max-width: 82%; padding: 13px 16px; border-radius: 16px; font-size: 14px; line-height: 1.6; }
.bub-out { background: linear-gradient(135deg, var(--violet-600), var(--violet-700)); color: #fff; border-bottom-right-radius: 5px; margin-left: auto; }
.bub-in { background: var(--fill-2); border: 1px solid var(--line); color: var(--text-mid); border-bottom-left-radius: 5px; }
.bub-meta { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.typing span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--text-lo); margin-right: 3px; animation: typ 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: .18s; } .typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typ { 0%,60%,100% { opacity: .25; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-3px);} }

/* mini calendar */
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.cal-d { text-align: center; font-family: var(--f-mono); font-size: 10px; color: var(--text-dim); letter-spacing: .08em; padding-bottom: 6px; }
.cal-c { min-height: 52px; border-radius: 10px; border: 1px solid var(--line); background: var(--fill-1); padding: 7px; font-size: 10.5px; color: var(--text-dim); }
.cal-c.booked { background: linear-gradient(140deg, rgba(122,77,255,.3), rgba(122,77,255,.1)); border-color: rgba(138,107,255,.4); color: var(--violet-100, #E4DBFF); }
.cal-c.booked b { display: block; color: #fff; font-size: 10.5px; font-weight: 600; }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * { grid-column: span 2; }
.b-wide { grid-column: span 3; }
.b-full { grid-column: span 6; }
.b-half { grid-column: span 3; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > * , .b-wide, .b-half { grid-column: span 1; } .b-full { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento > *, .b-full { grid-column: span 1; } }

.bcard {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--sh-1);
  padding: 28px;
  transition: border-color .35s var(--ease), transform .4s var(--ease);
}
.bcard:hover { border-color: var(--line-glow); transform: translateY(-4px); }
.bcard::after {
  content: ''; position: absolute; width: 240px; height: 240px; right: -70px; top: -90px;
  background: radial-gradient(circle, rgba(122,77,255,.2), transparent 70%);
  filter: blur(30px); opacity: 0; transition: opacity .5s; pointer-events: none;
}
.bcard:hover::after { opacity: 1; }
.bcard h3 { font-size: 1.12rem; margin-bottom: 9px; }
.bcard p { font-size: 14.5px; color: var(--text-lo); line-height: 1.65; }
.bcard-stat { font-family: var(--f-display); font-size: 2.1rem; font-weight: 680; letter-spacing: -.04em; color: var(--text-hi); line-height: 1; }
.bcard-list { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Reply-rate bars ---------- */
.bars { display: grid; gap: 16px; }
.bar-r { display: grid; grid-template-columns: 176px 1fr 52px; align-items: center; gap: 16px; }
.bar-l { font-size: 13.5px; color: var(--text-lo); }
.bar-t { display: block; height: 10px; border-radius: var(--r-pill); background: var(--fill-2); overflow: hidden; }
.bar-f {
  display: block; height: 100%; border-radius: inherit; background: var(--fill-3);
  transform-origin: left center;
}
.rv.in .bar-f { animation: barIn 1.1s var(--ease) both; }
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .rv.in .bar-f { animation: none; } }
.bar-r.win .bar-l { color: var(--text-hi); font-weight: 600; }
.bar-r.win .bar-f { background: linear-gradient(90deg, var(--violet-500), var(--cyan-400)); box-shadow: 0 0 18px rgba(122,77,255,.55); }
.bar-v { font-family: var(--f-display); font-size: 15px; font-weight: 650; color: var(--text-hi); text-align: right; }
@media (max-width: 620px) { .bar-r { grid-template-columns: 1fr 44px; } .bar-l { grid-column: 1 / -1; margin-bottom: -8px; } }

/* ---------- Reviews ---------- */
.rev-grid { columns: 3; column-gap: 18px; }
@media (max-width: 980px) { .rev-grid { columns: 2; } }
@media (max-width: 640px) { .rev-grid { columns: 1; } }
.rev {
  break-inside: avoid; margin-bottom: 18px;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--sh-1);
  padding: 24px;
  transition: border-color .3s, transform .35s var(--ease);
}
.rev:hover { border-color: var(--line-glow); transform: translateY(-3px); }
.rev-q { font-size: 14.8px; color: var(--text-mid); line-height: 1.7; margin: 13px 0 20px; }
.rev-w { display: flex; align-items: center; gap: 12px; }
.rev-w > span { min-width: 0; }
.rev-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-str); flex: none; }
.rev-av-t { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 650; font-size: 14px; color: #fff; flex: none; }
.rev-n { display: block; font-family: var(--f-display); font-size: 14px; font-weight: 620; color: var(--text-hi); line-height: 1.35; }
.rev-r { display: block; font-size: 12px; color: var(--text-dim); line-height: 1.35; }
.rev-src { margin-left: auto; height: 17px; opacity: .5; }

/* ---------- Case studies ---------- */
.case {
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--sh-1);
  padding: 30px; display: flex; flex-direction: column;
  transition: border-color .3s, transform .35s var(--ease);
}
.case:hover { border-color: var(--line-glow); transform: translateY(-4px); }
.case-n { font-family: var(--f-display); font-size: clamp(2.1rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin: 16px 0 10px;
  background: linear-gradient(120deg, var(--violet-600), var(--violet-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-l { font-size: 13.5px; color: var(--text-lo); line-height: 1.6; }
.case-q { font-size: 14.5px; color: var(--text-mid); line-height: 1.7; margin: 22px 0 18px; padding-top: 20px; border-top: 1px solid var(--line); flex: 1; }

/* ---------- Safety / trust cards ---------- */
.safe { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .safe { grid-template-columns: 1fr; } }

/* ---------- Audience cards ---------- */
.aud {
  padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--sh-1); transition: all .35s var(--ease);
}
.aud:hover { border-color: var(--line-glow); transform: translateY(-3px); box-shadow: var(--sh-2); }
.aud h3 { font-size: 1.05rem; margin-bottom: 8px; }
.aud p { font-size: 14px; color: var(--text-lo); }

/* ---------- Compare table ---------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.cmp { min-width: 620px; font-size: 14.5px; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { background: var(--fill-2); font-family: var(--f-display); font-size: 13px; font-weight: 640; color: var(--text-hi); letter-spacing: -.01em; }
.cmp thead th:first-child { width: 34%; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover td { background: rgba(255,255,255,.018); }
.cmp td:first-child { color: var(--text-mid); font-weight: 500; }
.cmp .ql-col { background: linear-gradient(180deg, rgba(122,77,255,.11), rgba(122,77,255,.04)); color: var(--text-hi); }
.cmp thead .ql-col { background: linear-gradient(180deg, rgba(122,77,255,.24), rgba(122,77,255,.1)); }
.yes { color: var(--acc-emerald); } .no { color: var(--text-dim); }

/* ---------- Lead-magnet band ---------- */
.magnet {
  border-radius: var(--r-2xl); border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(130deg, rgba(122,77,255,.10) 0%, #fff 45%, rgba(70,229,240,.10) 100%);
  padding: clamp(30px, 4vw, 52px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
@media (max-width: 860px) { .magnet { grid-template-columns: 1fr; } }

/* ---------- Integration orbit ---------- */
.orbit { display: flex; flex-wrap: wrap; gap: 10px; }
.orbit-i {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--fill-1);
  font-size: 13.5px; color: var(--text-mid);
  transition: all .3s var(--ease);
}
.orbit-i:hover { border-color: var(--line-glow); color: var(--text-hi); transform: translateY(-2px); }
.orbit-i img { width: 18px; height: 18px; object-fit: contain; }

/* ---------- Long-form SEO copy block ---------- */
.prose-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-850); }
.prose-band p { font-size: 15.5px; line-height: 1.85; color: var(--text-lo); }
.prose-band p + p { margin-top: 18px; }
/* scoped to running copy only — card links inside a band must stay undecorated */
.prose-band p strong { color: var(--text-hi); }
.prose-band p > a, .prose-band li > a {
  color: var(--text-hi);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--violet-500);
}
.prose-band p > a:hover, .prose-band li > a:hover { color: var(--acc-violet); }

/* ---------- Flow body: copy beside the running simulation ---------- */
.flow-body { display: grid; grid-template-columns: .82fr 1.18fr; gap: 44px; align-items: center; }
.flow-copy { position: relative; min-height: 250px; }
.flow-panel {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
  display: flex; flex-direction: column; justify-content: center;
}
.flow-panel.on { position: relative; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.flow-panel .tour-num { display: block; margin-bottom: 10px; }
.flow-panel h3 { font-size: clamp(1.3rem, 2.3vw, 1.9rem); letter-spacing: -.03em; margin-bottom: 14px; }
.flow-panel p { font-size: 15px; color: var(--text-mid); line-height: 1.72; }
.flow-panel .link-arrow { margin-top: 20px; align-self: flex-start; }
.flow-panel.on > * { animation: flowIn .45s var(--ease) both; }
.flow-panel.on > *:nth-child(2) { animation-delay: .06s; }
.flow-panel.on > *:nth-child(3) { animation-delay: .12s; }
.flow-panel.on > *:nth-child(4) { animation-delay: .18s; }
@media (max-width: 980px) { .flow-body { grid-template-columns: 1fr; gap: 28px; } .flow-copy { min-height: 210px; } }

/* ---------- AI layer stack (homepage) ------------------------------------
   Five full-width cards, text one side and a live product mock the other,
   alternating sides down the page. The headline carries a highlighted phrase
   (mark.mk) tinted by the card's accent, which is what makes the row scan in
   one glance. Each card sets --a / --a-soft and everything else reads from it. */
.aistack { display: grid; gap: 22px; }
.aic {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(26px, 3.4vw, 48px);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--ink-900);
  box-shadow: var(--sh-1);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.aic:hover { border-color: var(--line-str); box-shadow: 0 30px 64px -34px rgba(23,18,58,.32); }
/* Flipped rows move the text to column 2, so the column widths swap too,
   otherwise the mock inherits the narrower half and shrinks every other card. */
.aic-flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.aic-flip .aic-t { order: 2; }

.aic-violet  { --a: var(--violet-600);  --a-soft: rgba(122,77,255,.13); }
.aic-emerald { --a: var(--acc-emerald); --a-soft: rgba(12,130,86,.13); }
.aic-cyan    { --a: var(--acc-cyan);    --a-soft: rgba(12,132,150,.14); }
.aic-amber   { --a: var(--acc-amber);   --a-soft: rgba(167,106,5,.15); }
.aic-rose    { --a: var(--acc-rose);    --a-soft: rgba(194,42,80,.12); }

.aic-k {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--a); padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--a-soft); border: 1px solid currentColor;
}
.aic-t h3 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); line-height: 1.2; letter-spacing: -.03em; }
/* the highlight: a soft plate behind the phrase, not a fluorescent marker */
.aic-t h3 .mk {
  background: var(--a-soft); color: var(--a);
  padding: 2px 12px 4px; border-radius: 10px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.aic-t p { margin-top: 16px; font-size: 15.5px; line-height: 1.75; color: var(--text-mid); }
.aic-c { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.aic-l {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 24px;
  font-family: var(--f-display); font-size: 14.5px; font-weight: 600; color: var(--a);
}
.aic-l i { font-size: 11px; transition: transform .25s var(--ease); }
.aic:hover .aic-l i { transform: translateX(4px); }
.aic-v .vis { min-height: 0; }

@media (max-width: 940px) {
  .aic, .aic-flip { grid-template-columns: 1fr; gap: 30px; }
  .aic-flip .aic-t { order: 0; }
}

/* mock: AI opener source chips + variant rail */
.aim-src { display: flex; flex-wrap: wrap; gap: 7px; }
.aim-chip {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--fill-1); border: 1px solid var(--line); color: var(--text-lo);
}
.aim-chip i { color: var(--acc-violet); margin-right: 5px; }
.aim-var { display: flex; align-items: center; gap: 7px; }
.aim-vl { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-right: 3px; }
.aim-v {
  font-family: var(--f-mono); font-size: 10.5px; padding: 4px 9px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--text-dim);
}
.aim-v.on { background: rgba(122,77,255,.2); border-color: rgba(138,107,255,.45); color: #fff; }

/* mock: live signal feed */
.sig { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.sig-r { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.sig-r:last-child { border-bottom: 0; }
.sig-k { font-family: var(--f-mono); font-size: 10.5px; padding: 4px 9px; border-radius: 6px; background: rgba(70,229,240,.13); color: var(--acc-cyan); border: 1px solid rgba(70,229,240,.24); white-space: nowrap; }
.sig-b { font-size: 12.5px; color: var(--text-lo); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; }
.sig-b b { color: var(--text-hi); font-weight: 550; }
.sig-t { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-dim); }

/* ============================================================
   Sequence flow chart (.fl-*) — build/lib/flow.js. A light canvas
   with a dotted grid, used on the homepage and the AI Sequence page.
   Colours are explicit because .vis switches to the dark palette.
   ============================================================ */
.vis-flow {
  /* same dark brand panel as every other .vis, plus a faint dotted canvas grid */
  background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1.2px), linear-gradient(165deg, #2A2268, #1B1547);
  background-size: 18px 18px, 100% 100%;
  padding: 26px 22px 22px;
}
.fl { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.fl-n {
  position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px;
  border-radius: 12px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 10px 22px -14px rgba(0,0,0,.5);
  font-family: var(--f-display); font-size: 12.5px; font-weight: 620; color: #fff; white-space: nowrap; line-height: 1.2;
}
.fl-n > i { color: #C9B8FF; font-size: 12px; width: 14px; text-align: center; }
.fl-start { background: linear-gradient(135deg, #7A4DFF, #5A2BE0); border-color: transparent; color: #fff; border-radius: 999px; padding: 9px 20px; box-shadow: 0 12px 26px -12px rgba(106,47,245,.7); }
.fl-start > i { color: #fff; }
.fl-wait { background: rgba(255,194,75,.14); border-color: rgba(255,194,75,.42); color: #FFC24B; border-radius: 999px; box-shadow: 0 0 0 5px rgba(255,194,75,.12); }
.fl-wait > i { color: #FFC24B; }
.fl-end { background: rgba(61,224,160,.14); border-color: rgba(61,224,160,.42); color: #3DE0A0; border-radius: 999px; }
.fl-end > i { color: #3DE0A0; }
.fl-inmail { background: rgba(255,107,139,.12); border-color: rgba(255,107,139,.32); }
.fl-inmail > i { color: #FF6B8B; }
.fl-ai { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: rgba(122,77,255,.32); color: #DCD2FF; display: inline-flex; align-items: center; gap: 4px; }
.fl-ai i { font-size: 8.5px; }

.fl-v { display: block; width: 2px; height: 13px; flex: none; background: repeating-linear-gradient(180deg, rgba(255,255,255,.32) 0 3px, transparent 3px 6px); background-size: 2px 12px; }
.fl-grow { flex: 1; min-height: 13px; }
.rv.in .fl-v { animation: flDash 1.2s linear infinite; }
@keyframes flDash { to { background-position: 0 12px; } }

.fl-lbl { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-display); font-size: 11.5px; font-weight: 640; padding: 1px 0; white-space: nowrap; }
.fl-lbl i { font-size: 11px; }
.fl-ok { color: #3DE0A0; } .fl-no { color: #FF6B8B; } .fl-wt { color: #FFC24B; }

.fl-bracket { width: 50%; height: 18px; flex: none; border: 2px solid rgba(255,255,255,.24); }
.fl-bracket-top { border-bottom: 0; border-radius: 16px 16px 0 0; }
.fl-bracket-bottom { border-top: 0; border-radius: 0 0 16px 16px; }
.fl-split { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.fl-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
/* branch stubs from bracket corners down to the first label */
.fl-col::before { content: ''; display: block; width: 2px; height: 10px; background: rgba(255,255,255,.24); }

.fl-card { width: min(100%, 236px); background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.13); border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 22px -14px rgba(0,0,0,.5); text-align: left; }
.fl-card-h { display: grid; grid-template-columns: 26px 1fr auto; gap: 9px; align-items: center; }
.fl-card-h img { border-radius: 50%; object-fit: cover; }
.fl-card-h b { display: block; font-size: 12px; color: #fff; font-weight: 640; line-height: 1.2; }
.fl-card-h em { display: block; font-style: normal; font-size: 10.5px; color: #877EAE; }
.fl-card p { margin-top: 8px; font-size: 11.5px; line-height: 1.5; color: #D5CFF0; }
.fl-card mark { background: none; color: #C9B8FF; font-weight: 600; }


/* arrival: every node, label, card and bracket pops in down the canvas */
.rv.in .fl-n, .rv.in .fl-lbl, .rv.in .fl-card, .rv.in .fl-bracket { animation: flIn .42s var(--ease) calc(var(--d) * .09s) both; }
@keyframes flIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.rv.in .fl-wait { animation: flIn .42s var(--ease) calc(var(--d) * .09s) both, flWait 1.8s ease-in-out calc(var(--d) * .09s + .5s) infinite; }
@keyframes flWait { 0%, 100% { box-shadow: 0 0 0 5px rgba(255,199,75,.16); } 50% { box-shadow: 0 0 0 9px rgba(255,199,75,.28); } }

@media (max-width: 560px) {
  .fl-n { font-size: 11.5px; padding: 7px 11px; }
  .fl-card { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .fl-v, .fl-wait, .fl-n, .fl-lbl, .fl-card, .fl-bracket { animation: none !important; } }

/* compact variant for the feature-page hero, where the panel column is narrower */
.fl-compact { padding: 22px 18px 20px; }
.fl-compact .fl-n { font-size: 12px; padding: 7px 13px; gap: 8px; border-radius: 11px; }
.fl-compact .fl-start { padding: 7px 16px; }
.fl-compact .fl-v { height: 11px; }
.fl-compact .fl-grow { min-height: 10px; }
.fl-compact .fl-lbl { font-size: 10.5px; }
.fl-compact .fl-bracket { height: 14px; }
.fl-compact .fl-card { width: min(100%, 212px); padding: 9px 11px; }
.fl-compact .fl-card p { font-size: 11px; margin-top: 6px; }
.fl-compact .fl-card-h { grid-template-columns: 22px 1fr auto; gap: 7px; }
.fl-compact .fl-card-h img { width: 22px; height: 22px; }
.fl-compact .fl-card-h b { font-size: 11px; } .fl-compact .fl-card-h em { font-size: 9.5px; }
.fl-compact .fl-split { gap: 10px; }
/* the AI Sequence hero needs a wider stage than the default 880px column */

/* ---------- Homepage SEO sections, visual treatment ---------- */
/* platform cards with a mini product visual */
.bcard-v { display: flex; flex-direction: column; padding: 14px 14px 24px; color: inherit; }
.bcard-v h3 { margin: 18px 10px 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bcard-v p { margin: 0 10px; font-size: 14.5px; }
.bcard-v .vis.mv { flex: 1; min-height: 210px; height: auto; padding: 0; border-radius: var(--r-lg); box-shadow: none; display: flex; flex-direction: column; overflow: hidden; }
.bv-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.bv-h > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.bv-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px; }
.bv-stat { font-family: var(--f-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: rgba(61,224,160,.14); color: var(--emerald-400); border: 1px solid rgba(61,224,160,.28); white-space: nowrap; }
.bcard-v .vis.mv .seq { gap: 0; }
.bcard-v .vis.mv .seq-n { padding: 9px 12px; font-size: 13px; gap: 10px; white-space: nowrap; }
.bcard-v .vis.mv .seq-n .ic { width: 24px; height: 24px; font-size: 10.5px; }
.bcard-v .vis.mv .seq-line { height: 8px; margin-left: 23px; }
.mv-bub { max-width: 100%; font-size: 13px; padding: 11px 14px; }
.mv-vars { display: flex; align-items: center; gap: 6px; }
.mv-vars span { font-family: var(--f-mono); font-size: 10.5px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-dim); }
.mv-vars span.on { background: rgba(122,77,255,.3); border-color: rgba(190,168,255,.5); color: #fff; }
.mv-vars small { margin-left: 6px; font-size: 11px; color: var(--text-dim); }
.mv-line { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: var(--r-sm); background: var(--fill-1); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-mid); white-space: nowrap; }
.mv-line i { color: var(--violet-200); width: 14px; text-align: center; }
.mv-line b { margin-left: auto; color: var(--emerald-400); font-weight: 600; }
.mv-mail .tag { margin-left: auto; padding: 3px 7px; font-size: 9.5px; }
.mv-ab { display: grid; gap: 10px; }
.mv-abr { display: grid; grid-template-columns: 70px 1fr 38px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-lo); }
.mv-abr b { color: var(--text-hi); text-align: right; }
.mv-abt { height: 8px; border-radius: 99px; background: var(--fill-2); overflow: hidden; }
.mv-abt i { display: block; height: 100%; border-radius: inherit; background: var(--text-dim); }
.mv-abr.win .mv-abt i { background: linear-gradient(90deg, var(--violet-500), var(--cyan-400)); }
.mv-abr.win b { color: var(--emerald-400); }
.mv-rows { display: grid; gap: 8px; }
.mv-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--fill-1); border: 1px solid var(--line); white-space: nowrap; }
.mv-row img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.mv-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.mv-n b { color: var(--text-hi); font-weight: 600; }
.mv-n small { color: var(--text-dim); font-size: 11.5px; }
.mv-ok { color: var(--emerald-400); font-size: 14px; }
.mv-row .score { font-size: 10.5px; padding: 3px 7px; }
.mv-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mv-chip { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border-radius: 9px; background: var(--fill-1); border: 1px solid var(--line); font-size: 12px; color: var(--text-mid); white-space: nowrap; }
.mv-chip i { color: var(--violet-200); font-size: 11px; }
.mv-code { font-family: var(--f-mono); font-size: 11.5px; color: var(--text-lo); padding: 9px 11px; border-radius: 9px; background: rgba(0,0,0,.22); border: 1px solid var(--line); white-space: nowrap; }
.mv-code span { color: var(--cyan-400); margin-right: 4px; }
.mv-code i { color: var(--acc-emerald); margin-left: 6px; }
.mv-senders { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mv-senders .avatars img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.mv-big { font-family: var(--f-display); font-size: 2rem; font-weight: 700; color: var(--text-hi); line-height: 1; white-space: nowrap; }
.mv-big small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-dim); margin-top: 4px; }
.mv-ws { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mv-ws .tag { font-size: 9.5px; padding: 5px 8px; }

/* comparison table icons */
/* homepage comparison cells: one treatment for yes / no / unknown */
#compare .cmp { min-width: 760px; font-size: 13.5px; table-layout: fixed; width: 100%; }
#compare .cmp th, #compare .cmp td { padding: 11px 14px; vertical-align: middle; line-height: 1.35; }
#compare .cmp thead th { padding-block: 12px; font-size: 13px; }
#compare .cmp thead th:first-child { width: 21%; }
#compare .cmp td:first-child { font-weight: 600; color: var(--text-hi); font-size: 13px; }
#compare .cmp td { white-space: nowrap; }
.vs { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.vs i { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; flex: none; }
.vs-y i { background: rgba(12,130,86,.14); color: var(--acc-emerald); }
.vs-n { color: var(--text-lo); }
.vs-n i { background: rgba(194,42,80,.12); color: var(--acc-rose); }
.vs-w { color: var(--acc-amber); }
.vs-w i { background: rgba(167,106,5,.14); color: var(--acc-amber); }
.vs-na { color: var(--text-dim); font-size: 12.5px; }

/* account safety: dashboard + short points */
.safe-pts { display: grid; gap: 14px; }
.safe-pt { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-1); }
.safe-pt .itile { margin: 0; }
.safe-pt h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.safe-pt p { font-size: 14px; color: var(--text-lo); margin: 0; }
.mv-row .tag { padding: 3px 7px; font-size: 9.5px; margin-left: auto; white-space: nowrap; }
.bento .bcard-v { height: 100%; }
