.tp-showcase {
  --tp-hero-accent: #287eb2;
  --tp-hub-size: 76px;
  --tp-hero-agreement: #258165;
  background: var(--app-canvas) url('/vitrine/product-assets/bento-grain.png');
  color: var(--ink);
}
.tp-showcase-intro {
  padding-block-start: clamp(108px, 13vw, 154px);
  text-align: center;
}
.tp-showcase-intro h1 {
  margin: 0 auto;
  font-size: clamp(39px, 6.3vw, 88px);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.tp-showcase-intro > p {
  max-width: 53ch;
  margin: 20px auto 0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.tp-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  margin-block-start: 24px;
}
.tp-showcase-actions .button { min-height: 44px; }
.tp-flow-stage {
  --tp-hub-center: 176px;
  position: relative;
  margin: 4px auto 0;
  max-width: 1340px;
}
.tp-flow { position: relative; height: calc(var(--tp-hub-center) + var(--tp-hub-size) / 2); }
.tp-flow-rails, .tp-flow-packets {
  position: absolute;
  inset: 0;
  overflow: clip;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tp-flow-paths { display: block; width: 100%; height: 100%; overflow: visible; }
.tp-flow-paths path { fill: none; stroke-linecap: round; }
.tp-flow-rims { stroke-width: 33px; }
.tp-flow-insets { stroke-width: 31px; }
.tp-flow-guides { stroke: #728c9e26; stroke-width: 1px; stroke-dasharray: 1.5 6; }
.tp-flow-traffic { fill: var(--tp-hero-accent); }
.tp-flow-traffic-out { fill: var(--tp-hero-agreement); }
.tp-flow-traffic circle {
  stroke: #fcfcfa;
  stroke-width: 1px;
}
.tp-flow-paths .tp-flow-trail { opacity: 0; }
.tp-flow-trail-in { stop-color: var(--tp-hero-accent); }
.tp-flow-trail-out { stop-color: var(--tp-hero-agreement); }
.tp-flow-hub {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  left: 50%;
  top: var(--tp-hub-center);
  transform: translate(-50%, -50%);
  width: var(--tp-hub-size);
  height: var(--tp-hub-size);
  border: 1px solid #d4e0e7;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 28%, #fff 45%, #edf5fa 100%);
  box-shadow: 0 3px 10px #284b6617;
  --tp-hub-pulse: 0;
}
.tp-flow-hub::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #c6d8e3;
  border-radius: inherit;
  opacity: calc(.6 + .4 * var(--tp-hub-pulse));
  transform: scale(calc(1 + .1 * var(--tp-hub-pulse)));
}
.tp-flow-mark {
  width: 57%;
  height: auto;
}
.tp-flow-packets { z-index: 2; pointer-events: none; }
.tp-flow-packet {
  position: absolute;
  inset: 0 auto auto 0;
  width: 6px;
  height: 6px;
  opacity: 0;
  color: var(--tp-hero-accent);
}
.tp-flow-packet::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid currentColor;
  box-shadow: 0 0 6px currentColor;
}
.tp-flow-packet > span {
  position: absolute;
  bottom: 13px;
  left: 3px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 650;
}
.tp-flow-quote > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid #d9efff;
  border-radius: 20px;
  color: #173a53;
  background: linear-gradient(155deg, #eaf7ff, #bcdef5);
}
.tp-flow-quote .icon { width: 12px; height: 12px; }
.tp-flow-quote > span::after, .tp-flow-ready::after, .tp-flow-agreed::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--tp-tip, 50%);
  transform: translateX(-50%);
  border-inline: 4px solid transparent;
  border-top: 5px solid #9adac9;
}
.tp-flow-quote > span::after { border-top-color: #c2e5ff; }
.tp-flow-result { color: var(--tp-hero-agreement); }
.tp-flow-status { display: grid; justify-items: center; color: #184d40; }
.tp-flow-ready, .tp-flow-validate, .tp-flow-agreed {
  grid-area: 1 / 1;
  position: relative;
  padding: 4px 9px;
  border: 1px solid #a6cebd;
  border-radius: 20px;
  background: linear-gradient(155deg, #f2faf6, #daeee5);
}
.tp-flow-ready::after { left: 50%; }
.tp-flow-validate {
  border-radius: 6px;
  background: #c6f8e6;
  color: #102d2b;
}
.tp-flow-validate, .tp-flow-agreed, .tp-flow-pointer, .tp-flow-ring { opacity: 0; }
.tp-flow-pointer, .tp-flow-ring { position: absolute; top: 54%; left: calc(50% + 6px); }
.tp-flow-pointer {
  z-index: 1;
  width: 17px;
  height: 21px;
  transform-origin: top left;
  filter: drop-shadow(0 1px 2px #071521);
}
.tp-flow-pointer::before, .tp-flow-pointer::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 95% 59%, 58% 64%, 70% 90%, 51% 99%, 37% 72%, 0 100%);
  background: #152b3e;
}
.tp-flow-pointer::after { inset: 1px 2px 3px 1px; background: #e5f7ff; }
.tp-flow-ring { width: 24px; height: 24px; border: 1px solid #c7ffe8; border-radius: 50%; }

.tp-showcase-demo {
  position: relative;
  margin-block-start: calc(4px - var(--tp-hub-size) / 2);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 0 24px;
  scroll-margin-top: 24px;
  text-align: center;
}
.tp-showcase-demo::before {
  content: "";
  position: absolute;
  inset: clamp(30px, 5vw, 66px) max(16px, calc((100% - 1240px) / 2)) 35px;
  border-radius: clamp(16px, 3vw, 36px);
  background:
    url('/vitrine/product-assets/bento-grain.png'),
    radial-gradient(ellipse at 50% 18%, #d9eaf4, transparent 72%),
    linear-gradient(180deg, #eaf2f6, var(--app-canvas) 92%);
  pointer-events: none;
}
.tp-showcase-demo .tp-video-tabs, .tp-showcase-demo > [role="tabpanel"] {
  position: relative;
}
.tp-showcase-demo .tp-video-tabs {
  grid-row: 2;
  margin: 12px 0 0;
  padding-inline: 12px;
}
.tp-showcase-demo > [role="tabpanel"] { grid-row: 1; }
.tp-showcase-demo .tp-video-tabs button { min-height: 44px; }
.tp-showcase-demo .tp-video-tabs button,
.tp-showcase-demo .tp-video-tabs button small { color: var(--muted); }
.tp-showcase-demo .tp-video-tabs button[aria-selected="false"]:hover,
.tp-showcase-demo .tp-video-tabs button[aria-selected="true"] {
  background: #e9f3f9;
  border-color: #b6cddb;
  color: var(--ink);
}
.tp-showcase-demo .landing-demo-frame {
  width: min(77%, 820px);
  border-color: #d5e1e8;
  background: linear-gradient(160deg, #fff, #e7f0f6);
  box-shadow: var(--bento-card-shadow);
}
.tp-showcase [hidden] { display: none; }

@media (max-width: 580px) {
  .tp-showcase-intro { padding-block-start: 100px; }
  .tp-showcase-actions { gap: 4px 16px; }
  .tp-showcase { --tp-hub-size: 54px; }
  .tp-flow-stage { --tp-hub-center: 112px; }
  .tp-flow-rims { stroke-width: 21px; }
  .tp-flow-insets { stroke-width: 19px; }
  .tp-showcase-demo .landing-demo-frame { width: 90%; }
}
