/* Platform page only (/platform). Loaded via front matter "styles: /assets/css/pages/platform.css".
   Every selector is scoped with a .pf- prefix; shared components are only adjusted inside .pf- wrappers. */

/* Shared bits ------------------------------------------------------------------ */
/* Sticky sub-nav: land a section's top edge just under it. */
/* html:has(.subnav) adds 48px of scroll-padding (site.css); this keeps titles where they were. */
.pf-section { scroll-margin-top: -16px; }

.pf-kicker { display: flex; align-items: center; gap: 12px; }
.pf-kicker--center { justify-content: center; }
.pf-kicker__num { padding-left: 12px; border-left: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--text-3); }
.section-head .pf-kicker + * { margin-top: 20px; }

/* Gradient-bordered frame + glow under the large mocks. */
.pf-frame { position: relative; }
.pf-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: calc(var(--r-xl) + 1px);
  padding: 1px;
  background: linear-gradient(160deg, rgba(169, 166, 255, 0.5), rgba(108, 77, 255, 0.05) 30%, rgba(108, 77, 255, 0.05) 70%, rgba(70, 232, 212, 0.32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.pf-frame::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -60px;
  height: 120px;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(108, 77, 255, 0.35), transparent 75%);
  filter: blur(10px);
  pointer-events: none;
}
.pf-frame > .app-window { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 50px 120px -40px rgba(108, 77, 255, 0.45), 0 40px 80px -30px rgba(0, 0, 0, 0.9); }

.pf-features { margin-top: clamp(56px, 7vw, 88px); }
/* Mock-only button look (not interactive: lives inside aria-hidden mocks). */
.pf-btn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 550; color: var(--text-1); white-space: nowrap; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.pf-btn .icon { width: 12px; height: 12px; }
.pf-btn--primary { color: #fff; background: var(--grad-button); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px -4px rgba(108, 77, 255, 0.8); }

/* Hero ---------------------------------------------------------------------- */
.pf-hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(48px, 6vw, 88px); }
.pf-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 48% at 74% 52%, rgba(108, 77, 255, 0.22), rgba(108, 77, 255, 0) 70%),
    radial-gradient(16% 18% at 70% 46%, rgba(70, 232, 212, 0.07), rgba(70, 232, 212, 0) 70%);
}
@media (max-width: 1079px) { .pf-hero__glow { background: radial-gradient(70% 36% at 50% 74%, rgba(108, 77, 255, 0.22), rgba(108, 77, 255, 0) 70%); } }
.pf-hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(40px, 5vw, 56px); align-items: center; }
@media (min-width: 1080px) { .pf-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); } }
.pf-hero .page-hero__title { font-size: clamp(2.375rem, 1.25rem + 3.4vw, 4rem); }
@media (prefers-reduced-motion: no-preference) {
  .pf-hero__copy > * { animation: pf-in 900ms var(--ease-out) both; }
  .pf-hero__copy > :nth-child(2) { animation-delay: 70ms; }
  .pf-hero__copy > :nth-child(3) { animation-delay: 140ms; }
  .pf-hero__copy > :nth-child(4) { animation-delay: 210ms; }
  .pf-stack { animation: pf-stack-in 1300ms 120ms var(--ease-out) both; }
}
@keyframes pf-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pf-stack-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

/* Layer stack: four module plates on one customer-record plate, drawn in an
   isometric projection. All sizes are in cqw so it scales as one picture.
   Projection: rotateX(58deg) rotateZ(-42deg); a plate's right corner sits at
   (+30.7cqw, -2.52cqw) from the centre, and each plate step moves 0.848 * --pf-d up. */
.pf-stack { position: relative; container-type: inline-size; width: 100%; max-width: 640px; margin-inline: auto; }
@media (min-width: 1080px) { .pf-stack { margin-right: calc(-1 * clamp(0px, 2vw, 24px)); } }
.pf-stack__stage { --pf-d: 11.4cqw; --cx: 30.5cqw; --cy: 38cqw; position: relative; aspect-ratio: 100 / 77; }

.pf-stack__halo {
  position: absolute;
  left: calc(var(--cx) - 36cqw);
  top: calc(var(--cy) - 30cqw);
  width: 72cqw;
  height: 66cqw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(108, 77, 255, 0.34), rgba(108, 77, 255, 0.1) 55%, transparent 100%);
  pointer-events: none;
}
.pf-stack__spine {
  position: absolute;
  left: var(--cx);
  top: calc(var(--cy) - 1.7 * var(--pf-d) - 8cqw);
  height: calc(3.4 * var(--pf-d) + 16cqw);
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(to bottom, rgba(125, 240, 226, 0), rgba(125, 240, 226, 0.55) 18%, rgba(169, 166, 255, 0.7) 60%, rgba(169, 166, 255, 0));
}
.pf-stack__spine > span { position: absolute; left: 0; right: 0; top: 0; height: 100%; opacity: 0; }
.pf-stack__spine > span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 22px;
  margin-left: -5px;
  border-radius: 6px;
  background: radial-gradient(closest-side, #fff, rgba(125, 240, 226, 0.9) 40%, rgba(70, 232, 212, 0));
}

/* No nested 3D: in an orthographic projection a step along the plates' normal is a
   plain vertical offset on screen, so each plate is offset in 2D and then tilted on its
   own (DOM order paints the upper plates on top). This renders the same in every engine
   and never depends on preserve-3d. */
.pf-stack__iso { position: absolute; inset: 0; }
.pf-plate {
  position: absolute;
  left: calc(var(--cx) - 26cqw);
  top: calc(var(--cy) - 17cqw);
  width: 52cqw;
  height: 34cqw;
  border-radius: 2.8cqw;
  background: rgba(9, 9, 22, 0.6);
  transform: translateY(calc(-0.848 * (var(--i) - 2) * var(--pf-d))) rotateX(58deg) rotateZ(-42deg);
  /* Plate thickness: a slab offset straight down on screen (local -1.17, +1.3 cqw). */
  box-shadow: -1.17cqw 1.3cqw 0 0 rgba(9, 9, 22, 0.96), -1.17cqw 1.3cqw 0 1px rgba(138, 110, 255, 0.3);
}
.pf-plate__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(138, 110, 255, 0.28), rgba(138, 110, 255, 0) 60%),
    linear-gradient(135deg, rgba(36, 30, 78, 0.86), rgba(15, 16, 30, 0.88) 64%);
  box-shadow: inset 0 0 0 1px rgba(169, 166, 255, 0.4), inset 0 0.3cqw 0 rgba(255, 255, 255, 0.08), 0 0 7cqw -2cqw rgba(108, 77, 255, 0.55);
}
.pf-plate__face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(70% 90% at 50% 50%, rgba(169, 166, 255, 0.28), rgba(169, 166, 255, 0) 70%);
  box-shadow: inset 0 0 0 1px rgba(203, 194, 255, 0.85);
}
.pf-plate--record .pf-plate__face {
  background:
    radial-gradient(80% 110% at 0% 100%, rgba(70, 232, 212, 0.12), rgba(70, 232, 212, 0) 60%),
    linear-gradient(135deg, rgba(27, 31, 46, 0.95), rgba(14, 16, 24, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 0.3cqw 0 rgba(255, 255, 255, 0.08), 0 0 9cqw -2cqw rgba(108, 77, 255, 0.5);
}

/* Plate contents (decorative shapes, no copy) */
.pf-plate__face i, .pf-plate__face b { display: block; }
.pf-plate__avatar { position: absolute; left: 3cqw; top: 3cqw; display: grid; place-items: center; width: 7.4cqw; height: 7.4cqw; border-radius: 50%; font-size: 2.4cqw; font-weight: 600; color: var(--text-1); background: linear-gradient(140deg, #5B4A8B, #2D2650); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.pf-plate__lines { position: absolute; left: 12.8cqw; top: 4cqw; width: 24cqw; display: grid; gap: 1.4cqw; }
.pf-plate__lines i { width: var(--w); height: 1.4cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.2); }
.pf-plate__lines i + i { background: rgba(255, 255, 255, 0.1); }
.pf-plate__orders { position: absolute; left: 3cqw; right: 3cqw; top: 13.6cqw; display: grid; gap: 1.6cqw; }
.pf-plate__orders i { height: 4.6cqw; border-radius: 1.2cqw; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.pf-plate__orders i::after { content: ""; display: block; width: 7cqw; height: 1.6cqw; margin: 1.5cqw 0 0 auto; transform: translateX(-1.6cqw); border-radius: 1cqw; background: rgba(61, 220, 151, 0.4); }
.pf-plate__orders i + i::after { background: rgba(138, 110, 255, 0.55); }
.pf-plate__chans { position: absolute; left: 3cqw; bottom: 3cqw; display: flex; gap: 1.4cqw; }
.pf-plate__chans i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

.pf-plate--inbox .pf-plate__face { display: grid; align-content: center; gap: 1.2cqw; padding: 2.6cqw; }
.pf-plate__row { display: flex; align-items: center; gap: 2cqw; height: 6cqw; padding: 0 1.6cqw; border-radius: 1.4cqw; }
.pf-plate__row b { flex: none; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.pf-plate__row i { width: var(--w); height: 1.4cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.14); }
.pf-plate__row.is-active { background: rgba(108, 77, 255, 0.3); box-shadow: inset 0 0 0 1px rgba(169, 166, 255, 0.5); }
.pf-plate__row.is-active b { background: linear-gradient(140deg, #7A64C4, #3A2F6E); }

.pf-plate__bubble { position: absolute; left: 4cqw; top: 4.4cqw; width: 24cqw; height: 6.4cqw; border-radius: 3cqw 3cqw 3cqw 0.8cqw; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.pf-plate__bubble--ai { left: auto; right: 4cqw; top: 13.4cqw; width: 30cqw; height: 9cqw; border-radius: 3cqw 3cqw 0.8cqw 3cqw; background: linear-gradient(160deg, rgba(123, 92, 255, 0.75), rgba(86, 52, 236, 0.5)); box-shadow: inset 0 0 0 1px rgba(203, 194, 255, 0.5), 0 0 4cqw -1cqw rgba(108, 77, 255, 0.9); }
.pf-plate__bubble--ai::after { content: ""; position: absolute; right: 2cqw; top: -1.1cqw; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: var(--aqua-400); box-shadow: 0 0 2cqw rgba(70, 232, 212, 0.9); }
.pf-plate__source { position: absolute; right: 4cqw; bottom: 3.4cqw; width: 18cqw; height: 3.6cqw; border-radius: 1cqw; outline: 0.25cqw dashed rgba(255, 255, 255, 0.28); }

.pf-plate--handoff .pf-plate__face { padding: 3cqw; }
.pf-plate__card { display: grid; gap: 1.6cqw; padding: 2.4cqw; border-radius: 1.8cqw; background: rgba(245, 181, 68, 0.1); box-shadow: inset 0 0 0 1px rgba(245, 181, 68, 0.55); }
.pf-plate__card i { width: var(--w); height: 1.4cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.2); }
.pf-plate__card i:first-child { background: rgba(245, 181, 68, 0.75); }
.pf-plate__btns { display: flex; gap: 1.6cqw; margin-top: 2.4cqw; }
.pf-plate__btns i { width: 11cqw; height: 4cqw; border-radius: 2cqw; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.pf-plate__btns i:first-child { background: linear-gradient(180deg, #7B5CFF, #6C4DFF); box-shadow: 0 0 3cqw -1cqw rgba(108, 77, 255, 0.9); }

.pf-plate--insights .pf-plate__face { padding: 3.4cqw 4cqw; }
.pf-plate__bars { display: flex; align-items: flex-end; gap: 2cqw; height: 100%; border-bottom: 0.2cqw solid rgba(255, 255, 255, 0.18); }
.pf-plate__bars i { flex: 1; height: calc(var(--v) * 100%); border-radius: 1cqw 1cqw 0.3cqw 0.3cqw; background: linear-gradient(180deg, rgba(169, 166, 255, 0.95), rgba(108, 77, 255, 0.35)); }
.pf-plate__bars i.is-hl { background: linear-gradient(180deg, var(--aqua-300), rgba(70, 232, 212, 0.25)); box-shadow: 0 0 3cqw -0.6cqw rgba(70, 232, 212, 0.8); }

/* Labels to the right, aligned with each plate's right corner. */
.pf-stack__labels { position: absolute; inset: 0; pointer-events: none; }
.pf-stack__label {
  position: absolute;
  left: calc(var(--cx) + 30.7cqw);
  top: calc(var(--cy) - 2.52cqw - 0.848 * (var(--i) - 2) * var(--pf-d));
  display: flex;
  align-items: center;
  gap: 1.8cqw;
  max-width: calc(100cqw - var(--cx) - 30.7cqw);
  padding-left: 5.2cqw;
  transform: translateY(-50%);
  line-height: 1.25;
}
.pf-stack__label::before { content: ""; position: absolute; left: 0; top: 50%; width: 4.4cqw; height: 1px; background: linear-gradient(90deg, rgba(169, 166, 255, 0.95), rgba(169, 166, 255, 0.25)); }
.pf-stack__label::after { content: ""; position: absolute; left: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--violet-200); box-shadow: 0 0 8px rgba(169, 166, 255, 0.9); }
.pf-stack__icon { flex: none; display: grid; place-items: center; width: clamp(24px, 5.4cqw, 32px); height: clamp(24px, 5.4cqw, 32px); border-radius: 9px; color: var(--violet-200); background: rgba(108, 77, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(138, 110, 255, 0.42); }
.pf-stack__icon .icon { width: 55%; height: 55%; }
.pf-stack__label b { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(0.8125rem, 2.5cqw, 0.9375rem); letter-spacing: -0.01em; color: var(--text-1); }
.pf-stack__label small { display: block; margin-top: 2px; font-size: clamp(0.6875rem, 2cqw, 0.8125rem); color: var(--text-3); }
.pf-stack__label--ai .pf-stack__icon { color: var(--aqua-300); background: rgba(70, 232, 212, 0.08); box-shadow: inset 0 0 0 1px rgba(70, 232, 212, 0.35); }
.pf-stack__label--ai::after { background: var(--aqua-300); box-shadow: 0 0 8px rgba(70, 232, 212, 0.9); }
.pf-stack__label--base .pf-stack__icon { color: var(--text-1); background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); box-shadow: inset 0 0 0 1px var(--border-strong); }
.pf-stack__label--base::after { background: var(--text-2); box-shadow: none; }
.pf-stack__badge { position: absolute; right: 0; top: 0; }
@container (max-width: 480px) {
  .pf-stack__label { padding-left: 4.4cqw; gap: 0; }
  .pf-stack__label::before { width: 3.4cqw; }
  .pf-stack__icon, .pf-stack__label small { display: none; }
  .pf-stack__label b { font-size: 0.8125rem; }
}

/* Motion: plates rise in, then float. Keyframes never use var() (engines disagree on
   var() inside animated transforms); they animate the individual translate property,
   which applies on top of each plate's static transform. */
@media (prefers-reduced-motion: no-preference) {
  .pf-plate { animation: pf-float 7s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--i) * -1.3s); }
  .pf-plate__face { animation: pf-rise 900ms var(--ease-out) both; animation-delay: calc(240ms + var(--i) * 110ms); }
  .pf-plate__face::after { animation: pf-lit 5.2s var(--ease-in-out) infinite; animation-delay: calc(1.4s + var(--i) * 0.62s); }
  .pf-stack__spine > span { animation: pf-spine 5.2s var(--ease-in-out) 1.2s infinite; }
}
@keyframes pf-float { from { translate: 0 0; } to { translate: 0 -0.8cqw; } }
@keyframes pf-rise { from { opacity: 0; translate: -3cqw 3.4cqw; } to { opacity: 1; translate: 0 0; } }
@keyframes pf-lit { 0% { opacity: 0; } 8% { opacity: 1; } 26% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pf-spine { 0% { opacity: 0; transform: translateY(0); } 6% { opacity: 1; } 56% { opacity: 1; } 64% { opacity: 0; transform: translateY(-100%); } 100% { opacity: 0; transform: translateY(-100%); } }

/* Sub-nav: sits directly under the hero, sticky below the header. */
.pf-subnav { margin-top: -1px; }

/* Inbox ---------------------------------------------------------------------- */
.pf-inbox__dots { -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 55%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 50% at 50% 55%, #000 0%, transparent 75%); }
.pf-inbox-mock__body { height: 660px; }
@media (min-width: 900px) { .pf-inbox-mock__body { height: 700px; } }
@media (min-width: 1140px) { .pf-inbox-mock__body { height: 720px; } }
.pf-inbox-log {
  overflow: hidden;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 64px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 64px);
}
.pf-inbox-log .msg__bubble { font-size: 0.875rem; }
/* Narrower thread: drop the note (and on phones the team-view line) so the
   cross-channel part of the timeline (Earlier · Instagram DM) stays in view. */
@media (max-width: 1139px) { .pf-inbox-log .pf-note { display: none; } }
@media (max-width: 599px) {
  .pf-inbox-mock__body { height: 700px; }
  .pf-inbox-log .msg { max-width: 92%; }
  .pf-inbox-log .chat-event--team { display: none; }
  .pf-inbox-mock .inbox-mock__log { padding-inline: 14px; }
}

.pf-filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 4px; }
.pf-filter { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--r-pill); font-size: 0.6875rem; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--border-subtle); white-space: nowrap; }
.pf-filter .icon { width: 11px; height: 11px; }
.pf-filter.is-on { color: var(--text-1); background: rgba(108, 77, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(138, 110, 255, 0.38); }
.pf-chanbar { display: flex; gap: 2px; margin: 0 4px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.pf-chanbar span { flex: 1; display: grid; place-items: center; height: 26px; border-radius: 7px; font-size: 0.6875rem; font-weight: 600; color: var(--text-3); }
.pf-chanbar .icon { width: 13px; height: 13px; }
.pf-chanbar .is-on { color: var(--text-1); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--border); }
.pf-linked::after { content: ""; position: absolute; left: 27px; top: -10px; height: 14px; border-left: 1px dashed rgba(169, 166, 255, 0.7); }
.pf-linked__icon { width: 12px; height: 12px; color: var(--violet-300); }
.pf-flag { width: 14px; height: 14px; color: var(--warning); }

.pf-thread-head__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pf-tag .icon { width: 11px; height: 11px; }
.pf-owner { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: var(--r-pill); font-size: 0.75rem; color: var(--text-2); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--border); }
.pf-owner .avatar { width: 22px; height: 22px; }
@media (max-width: 599px) { .pf-owner { display: none; } }

.pf-daysep { display: flex; align-items: center; gap: 8px; align-self: stretch; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.pf-daysep::before, .pf-daysep::after { content: ""; flex: 1; height: 1px; background: var(--border-subtle); }
.pf-daysep .icon { width: 13px; height: 13px; }
.pf-answered { font-size: 0.75rem; padding: 5px 12px 5px 10px; }
.pf-answered .ai-dot { width: 6px; height: 6px; }

.pf-note { align-self: flex-end; display: grid; gap: 10px; width: min(84%, 440px); padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); outline: 1px dashed var(--border-strong); outline-offset: -1px; }
.pf-note__head { display: flex; align-items: center; gap: 8px; }
.pf-note__head > .icon { width: 15px; height: 15px; color: var(--violet-300); }
.pf-note__hidden { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 0.6875rem; color: var(--text-3); white-space: nowrap; }
.pf-note__hidden .icon { width: 12px; height: 12px; }
.pf-note__body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pf-note__body .skeleton:first-of-type { flex: 1 1 30%; }
.pf-note__body .skeleton:last-of-type { flex: 1 1 100%; }
.pf-mention { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 6px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 600; color: var(--violet-200); background: rgba(108, 77, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(138, 110, 255, 0.35); }
.pf-mention .icon { width: 12px; height: 12px; }
@media (max-width: 479px) { .pf-note__hidden { display: none; } .pf-note { width: 92%; } }

.pf-composer { gap: 12px; padding: 8px 8px 8px 8px; }
.pf-composer__tabs { display: inline-flex; flex: none; padding: 3px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.pf-composer__tabs span { padding: 3px 10px; border-radius: var(--r-pill); font-size: 0.75rem; color: var(--text-3); }
.pf-composer__tabs .is-on { color: var(--text-1); background: rgba(108, 77, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(138, 110, 255, 0.4); }
.pf-composer__field { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-composer__send { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--grad-button); box-shadow: 0 4px 14px -4px rgba(108, 77, 255, 0.8); }
.pf-composer__send .icon { width: 14px; height: 14px; }

/* Agent ---------------------------------------------------------------------- */
.pf-agent__grid { display: grid; gap: clamp(48px, 6vw, 80px); }
@media (min-width: 1024px) {
  .pf-agent__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: start; }
  .pf-agent__visual { position: sticky; top: calc(var(--header-h) + 72px); }
}
.pf-agent .section-head { margin-bottom: 44px; }
.pf-agent .section-head__title { font-size: clamp(2rem, 1.35rem + 1.9vw, 2.875rem); }
.pf-agent__features { gap: 26px; }

.pf-agent-vis { position: relative; padding-top: 8px; }
.pf-settings {
  position: relative;
  width: 68%;
  margin-left: auto;
  padding: 16px 18px 18px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(26, 29, 44, 0.9), rgba(16, 18, 28, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 60px -24px rgba(0, 0, 0, 0.8);
  font-size: 0.8125rem;
}
.pf-settings__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }
.pf-settings__title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-1); }
.pf-settings__title .icon { width: 16px; height: 16px; color: var(--violet-300); }
.pf-settings__group { display: grid; gap: 9px; padding-top: 14px; }
.pf-settings__group + .pf-settings__group { margin-top: 14px; border-top: 1px solid var(--border-subtle); }
.pf-settings__label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.pf-settings__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-src-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 7px; border-radius: var(--r-pill); font-size: 0.75rem; color: var(--text-1); white-space: nowrap; background: rgba(108, 77, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(138, 110, 255, 0.32); }
.pf-src-chip .icon { width: 12px; height: 12px; color: var(--violet-200); }
.pf-rule-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: var(--r-pill); font-size: 0.75rem; color: var(--text-2); white-space: nowrap; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--border); }
.pf-rule-chip .icon { width: 12px; height: 12px; color: var(--text-3); }
.pf-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-2); }
.pf-toggle { position: relative; flex: none; width: 30px; height: 18px; border-radius: var(--r-pill); background: var(--surface-4); box-shadow: inset 0 0 0 1px var(--border-strong); }
.pf-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(180deg, #fff, #DCDFF0); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
.pf-toggle.is-on { background: var(--grad-button); box-shadow: inset 0 0 0 1px rgba(169, 166, 255, 0.6), 0 0 12px -2px rgba(108, 77, 255, 0.7); }
.pf-toggle.is-on::after { transform: translateX(12px); }

.pf-agent-chat { position: relative; z-index: 2; width: 86%; margin-top: -84px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 50px 100px -40px rgba(108, 77, 255, 0.55), 0 40px 80px -30px rgba(0, 0, 0, 0.95); }
.pf-agent-chat::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(169, 166, 255, 0.55), rgba(108, 77, 255, 0.04) 35%, rgba(108, 77, 255, 0.04) 70%, rgba(70, 232, 212, 0.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.pf-agent-chat .app-window__bar .avatar { width: 26px; height: 26px; }
.pf-agent-chat__log { gap: 10px; padding: 16px clamp(14px, 2vw, 20px) 20px; }
.pf-agent-chat .msg { max-width: 90%; }
.pf-agent-chat .msg__bubble { font-size: 0.875rem; }
.pf-sources { position: relative; overflow: hidden; align-self: flex-end; display: grid; gap: 6px; width: min(90%, 420px); padding: 10px 12px; border-radius: 12px; outline: 1px dashed var(--border-strong); outline-offset: -1px; }
.pf-sources__head { display: flex; align-items: center; gap: 8px; }
.pf-sources__head .icon { width: 14px; height: 14px; color: var(--text-3); }
.pf-source { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 0.78125rem; color: var(--text-1); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.pf-source .icon { width: 14px; height: 14px; color: var(--violet-300); }
.pf-sources::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(169, 166, 255, 0.1), transparent); transform: translateX(-120%); pointer-events: none; }

.pf-float-pill { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; font-size: 0.78125rem; color: var(--text-1); white-space: nowrap; background: rgba(16, 18, 28, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 50px -20px rgba(0, 0, 0, 0.9); }
.pf-float-pill__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--violet-200); background: rgba(108, 77, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(138, 110, 255, 0.4); }
.pf-float-pill__icon .icon { width: 15px; height: 15px; }
.pf-float-pill__icon--ai { color: var(--aqua-300); background: rgba(70, 232, 212, 0.08); box-shadow: inset 0 0 0 1px rgba(70, 232, 212, 0.35); }
.pf-float-pill--action { left: 0; top: 132px; max-width: 30%; white-space: normal; line-height: 1.35; }
.pf-float-pill--lang { right: -8px; bottom: -22px; }

@media (max-width: 719px) {
  .pf-settings { width: 100%; }
  .pf-agent-chat { width: 100%; margin-top: 16px; }
  .pf-float-pill { position: relative; left: auto; right: auto; top: auto; bottom: auto; display: inline-flex; max-width: 100%; margin-top: 12px; white-space: normal; }
  .pf-float-pill--action { margin: 0 0 12px; }
  .pf-float-pill--action { order: -1; }
  .pf-agent-vis { display: flex; flex-direction: column; align-items: flex-start; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .pf-agent-vis { max-width: 680px; margin-inline: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .pf-float-pill--action { animation: pf-bob 8s var(--ease-in-out) infinite alternate; }
  .pf-float-pill--lang { animation: pf-bob 7s var(--ease-in-out) -3s infinite alternate; }
  .pf-sources::after { animation: pf-sweep 5s var(--ease-in-out) 1s infinite; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 719px) {
  .pf-float-pill--action, .pf-float-pill--lang { animation: none; }
}
@keyframes pf-bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes pf-sweep { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(320%); } }

/* Handoff -------------------------------------------------------------------- */
.pf-handoff__grid-fx { -webkit-mask-image: radial-gradient(ellipse 60% 45% at 50% 55%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 45% at 50% 55%, #000 0%, transparent 75%); }
.pf-handoff .section-head { max-width: 860px; }
.pf-pipe { position: relative; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .pf-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .pf-pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Four narrow columns below 1280px: give the visuals room for the wrapped summary. */
@media (min-width: 1140px) and (max-width: 1279px) { .pf-handoff .pf-pipe { --pf-mid: 149px; } .pf-pipe .pf-pipe__visual { height: 300px; } }
.pf-pipe__step { padding: 0; }
.pf-pipe__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 252px;
  padding: 18px;
  overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(90% 80% at 50% 110%, rgba(108, 77, 255, 0.12), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 24px);
}
.pf-pipe__visual { padding-top: 40px; }
.pf-pipe__visual > .badge--sample, .pf-wide-card__visual > .badge--sample { position: absolute; z-index: 2; top: 14px; right: 14px; }
.pf-pipe__visual::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; box-shadow: inset 0 0 0 1px rgba(169, 166, 255, 0.6), inset 0 -40px 60px -30px rgba(108, 77, 255, 0.45); pointer-events: none; }
.pf-pipe__step--review .pf-pipe__visual { background: radial-gradient(90% 80% at 50% 110%, rgba(70, 232, 212, 0.08), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 24px); }
.pf-pipe__num { display: block; margin: 22px clamp(20px, 2.2vw, 26px) 0; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; color: var(--violet-300); }
.pf-pipe__step .card__title { margin: 8px clamp(20px, 2.2vw, 26px) 0; }
.pf-pipe__step .card__text { margin: 8px clamp(20px, 2.2vw, 26px) 26px; }
/* Connectors between steps. */
.pf-pipe__step::after { content: none; }
@media (min-width: 1140px) {
  .pf-pipe { --pf-mid: 125px; }
  .pf-pipe__step + .pf-pipe__step::before { content: ""; position: absolute; z-index: 2; left: -19px; top: var(--pf-mid); width: 20px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(138, 110, 255, 0.4), var(--violet-300)); box-shadow: 0 0 10px rgba(138, 110, 255, 0.8); }
  .pf-pipe__step + .pf-pipe__step::after { content: ""; position: absolute; z-index: 2; left: -4px; top: calc(var(--pf-mid) - 3px); width: 8px; height: 8px; border-radius: 50%; background: var(--violet-200); box-shadow: 0 0 10px rgba(169, 166, 255, 0.95); }
}
@media (max-width: 719px) {
  .pf-pipe__step + .pf-pipe__step::before { content: ""; position: absolute; z-index: 2; left: 50%; top: -19px; width: 2px; height: 20px; margin-left: -1px; background: linear-gradient(180deg, rgba(138, 110, 255, 0.3), var(--violet-300)); }
  .pf-pipe__visual { height: auto; min-height: 220px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pf-pipe__visual::after { animation: pf-stage 6.4s var(--ease-in-out) infinite; }
  .pf-pipe__step:nth-child(2) .pf-pipe__visual::after { animation-delay: 1.6s; }
  .pf-pipe__step:nth-child(3) .pf-pipe__visual::after { animation-delay: 3.2s; }
  .pf-pipe__step:nth-child(4) .pf-pipe__visual::after { animation-delay: 4.8s; }
}
@keyframes pf-stage { 0% { opacity: 0; } 8% { opacity: 1; } 22% { opacity: 1; } 34% { opacity: 0; } 100% { opacity: 0; } }

.pf-rule { display: grid; gap: 10px; width: 100%; }
.pf-rule__label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.pf-rule__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-rule__chips span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 0.75rem; color: var(--text-2); white-space: nowrap; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--border); }
.pf-rule__chips span:first-child { color: var(--text-1); background: rgba(245, 181, 68, 0.1); box-shadow: inset 0 0 0 1px rgba(245, 181, 68, 0.5); }
.pf-rule__hit { display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; border-radius: var(--r-md); font-size: 0.78125rem; line-height: 1.4; color: var(--text-1); background: rgba(245, 181, 68, 0.08); box-shadow: inset 0 0 0 1px rgba(245, 181, 68, 0.38); }
.pf-rule__hit .icon { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--warning); }

.pf-mini-summary { align-self: center; width: 100%; padding: 12px 13px; font-size: 0.75rem; line-height: 1.42; }
.pf-mini-summary .chat-summary__head { margin-bottom: 8px; }
.pf-mini-summary .chat-summary__title { font-size: 0.8125rem; }
.pf-mini-summary dl { gap: 5px 10px; }
.pf-mini-summary dt { font-size: 0.625rem; }

.pf-route { display: grid; gap: 7px; width: 100%; }
.pf-route__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.pf-route__key { font-family: var(--font-mono); font-size: 0.65625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.pf-route__val { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-1); white-space: nowrap; }
.pf-route__val .icon { width: 13px; height: 13px; color: var(--text-2); }
.pf-route__val--warn .icon { color: var(--warning); }
.pf-timer { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.pf-timer__ring { flex: none; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--warning) 0 78%, rgba(255, 255, 255, 0.08) 78% 100%); -webkit-mask: radial-gradient(farthest-side, transparent 64%, #000 66%); mask: radial-gradient(farthest-side, transparent 64%, #000 66%); }
.pf-timer__text b { font-size: 0.78125rem; font-weight: 600; }
.pf-timer .badge { margin-left: auto; }
@media (prefers-reduced-motion: no-preference) {
  .pf-timer__ring { animation: pf-spin 6s linear infinite; }
}
@keyframes pf-spin { to { transform: rotate(360deg); } }

.pf-draft { width: 100%; padding: 13px; border-radius: 14px 14px 4px 14px; background: linear-gradient(160deg, rgba(123, 92, 255, 0.24), rgba(86, 52, 236, 0.14)); box-shadow: inset 0 0 0 1px rgba(169, 166, 255, 0.32), 0 10px 30px -14px rgba(108, 77, 255, 0.7); }
.pf-draft__head { display: flex; align-items: center; gap: 8px; }
.pf-draft__state { font-size: 0.75rem; color: var(--text-2); }
.pf-draft__text { margin-top: 10px; font-size: 0.8125rem; line-height: 1.5; color: var(--text-1); }
.pf-draft__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.pf-handoff__more { display: grid; gap: 18px; margin-top: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pf-handoff__more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-wide-card { padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .pf-wide-card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.pf-wide-card__visual { position: relative; display: grid; place-items: center; min-height: 190px; padding: 22px; background: radial-gradient(80% 90% at 50% 100%, rgba(255, 255, 255, 0.035), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 24px); border-bottom: 1px solid var(--border-subtle); }
@media (min-width: 560px) { .pf-wide-card__visual { border-bottom: 0; border-right: 1px solid var(--border-subtle); } }
.pf-wide-card__body { padding: clamp(22px, 2.6vw, 30px); }
.pf-wide-card__body .card__title { margin-top: 16px; }

.pf-hours { display: grid; gap: 8px; width: 100%; max-width: 230px; }
.pf-hours__status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.pf-hours__status .icon { width: 15px; height: 15px; color: var(--violet-300); }
.pf-hours__row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 0.8125rem; color: var(--text-1); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.pf-hours__row--off { color: var(--text-3); }
.pf-hours__row--off .avatar { opacity: 0.55; }
.pf-hours__row--on { background: rgba(108, 77, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(138, 110, 255, 0.35); }
.pf-hours__row .ai-dot { margin-left: auto; width: 7px; height: 7px; }

.pf-handback { position: relative; width: 100%; max-width: 250px; gap: 10px; padding-top: 18px; }
.pf-handback .chat-event { font-size: 0.75rem; }
.pf-handback .msg { max-width: 100%; }
.pf-handback .msg__bubble { padding: 8px; }
.pf-handback__badge { position: absolute; top: -10px; right: -6px; }

/* Insights ------------------------------------------------------------------- */
.pf-dash__range { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 0.75rem; color: var(--text-2); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--border); }
.pf-dash__range .icon { width: 13px; height: 13px; }
.pf-dash__body { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .pf-dash__body { grid-template-columns: 200px minmax(0, 1fr); } }
.pf-dash__side { display: none; flex-direction: column; gap: 2px; padding: 16px 10px; border-right: 1px solid var(--border-subtle); background: rgba(255, 255, 255, 0.012); }
@media (min-width: 1024px) { .pf-dash__side { display: flex; } }
.pf-dash__side span { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 0.8125rem; color: var(--text-3); white-space: nowrap; }
.pf-dash__side .icon { width: 15px; height: 15px; }
.pf-dash__side .is-on { color: var(--text-1); background: rgba(108, 77, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(138, 110, 255, 0.3); }
.pf-dash__side .is-on .icon { color: var(--violet-300); }
.pf-dash__grid { display: grid; gap: 12px; padding: clamp(12px, 1.6vw, 18px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .pf-dash__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-dash__funnel, .pf-dash__team { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .pf-dash__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pf-dash__funnel { grid-column: span 4; }
  .pf-dash__res, .pf-dash__csat, .pf-dash__topics, .pf-dash__gaps { grid-column: span 2; }
  .pf-dash__team { grid-column: span 6; }
}
@media (max-width: 719px) { .pf-dash__csat, .pf-dash__gaps, .pf-dash__team { display: none; } }
.pf-dash .chart-card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)); align-content: start; }
.pf-dash__chans { display: inline-flex; gap: 6px; color: var(--text-2); }
.pf-dash__chans .icon { width: 13px; height: 13px; }

.pf-funnel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: repeating-linear-gradient(180deg, transparent 0 35px, rgba(255, 255, 255, 0.04) 35px 36px);
}
.pf-funnel__step { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 176px; padding-bottom: 26px; }
.pf-funnel__step::before { content: ""; display: block; height: calc(var(--v) * 100%); margin-right: 36%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, rgba(138, 110, 255, 0.9), rgba(108, 77, 255, 0.25)); box-shadow: inset 0 0 0 1px rgba(169, 166, 255, 0.35); transform-origin: bottom; }
.pf-funnel__step--end::before { background: linear-gradient(180deg, var(--aqua-300), rgba(70, 232, 212, 0.18)); box-shadow: inset 0 0 0 1px rgba(125, 240, 226, 0.4), 0 0 20px -6px rgba(70, 232, 212, 0.6); }
.pf-funnel__step:not(.pf-funnel__step--end)::after {
  content: "";
  position: absolute;
  left: 64%;
  right: 0;
  bottom: 26px;
  height: calc(100% - 26px);
  background: linear-gradient(90deg, rgba(138, 110, 255, 0.22), rgba(138, 110, 255, 0.08));
  clip-path: polygon(0 calc((1 - var(--v)) * 100%), 100% calc((1 - var(--n)) * 100%), 100% 100%, 0 100%);
}
.pf-funnel__step > span { position: absolute; left: 0; bottom: 0; font-size: 0.75rem; color: var(--text-2); white-space: nowrap; }
.reveal-armed .pf-funnel__step::before { transform: scaleY(0.05); transition: transform 800ms var(--ease-out); }
.reveal-armed .pf-funnel__step:nth-child(2)::before { transition-delay: 90ms; }
.reveal-armed .pf-funnel__step:nth-child(3)::before { transition-delay: 180ms; }
.reveal-armed.is-revealed .pf-funnel__step::before { transform: none; }

.pf-res { display: flex; align-items: center; gap: 18px; }
.pf-res .donut { flex: none; width: 96px; }
.pf-res__legend { display: grid; gap: 8px; min-width: 0; font-size: 0.75rem; color: var(--text-2); }
.pf-res__why { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; padding: 6px 8px; border-radius: 8px; font-size: 0.71875rem; line-height: 1.35; color: var(--text-1); background: rgba(245, 181, 68, 0.07); box-shadow: inset 0 0 0 1px rgba(245, 181, 68, 0.3); }
.pf-res__why .icon { flex: none; width: 13px; height: 13px; color: var(--warning); }

.pf-dash__csat .spark { height: 84px; }
.pf-spark-2 { stroke-dasharray: 0.012 0.018; }
.reveal-armed .pf-spark-2 { stroke-dasharray: 0.012 0.018; stroke-dashoffset: 0; }

.pf-new { display: inline-flex; align-items: center; gap: 6px; color: var(--text-1); }
.pf-new .icon { width: 13px; height: 13px; color: var(--aqua-300); }

.pf-gaps { display: grid; gap: 8px; }
.pf-gap { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.pf-gap > .icon { flex: none; width: 14px; height: 14px; color: var(--text-3); }
.pf-gap .skeleton { flex: none; }
.pf-gap__add { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-left: auto; border-radius: 7px; color: var(--violet-200); background: rgba(108, 77, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(138, 110, 255, 0.4); }
.pf-gap__add .icon { width: 12px; height: 12px; }

.pf-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 40px); }
.pf-team__metric { display: grid; gap: 8px; font-size: 0.75rem; color: var(--text-2); }
.pf-team__metric .bars { height: 64px; }

/* Integrations --------------------------------------------------------------- */
.pf-int__card { padding: clamp(22px, 2.6vw, 30px); }
.pf-int__card .card__title { display: flex; align-items: center; gap: 12px; }
.pf-int__dl { display: grid; gap: 8px; margin-top: 20px; }
.pf-int__dl dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.pf-int__dl dd + dt { margin-top: 10px; }
.pf-int__dl dd { font-size: 0.9375rem; line-height: 1.55; color: var(--text-2); }
.pf-int__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-int__chips .chip { color: var(--text-1); }

.pf-int__card--channels { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .pf-int__card--channels { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; } }
.pf-int__body { padding: clamp(22px, 2.6vw, 30px); }
@media (min-width: 1024px) { .pf-int__body { padding-left: 8px; } }
.pf-int__flow { position: relative; height: 240px; margin: 12px 0 0; }
@media (min-width: 1024px) { .pf-int__flow { margin: 0; height: 100%; min-height: 252px; } }
.pf-int__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pf-int__wires path { fill: none; vector-effect: non-scaling-stroke; }
.pf-int__base path { stroke: rgba(138, 110, 255, 0.32); stroke-width: 1; stroke-dasharray: 3 5; }
.pf-int__comets path { stroke: var(--violet-300); stroke-width: 1.5; stroke-linecap: round; opacity: 0; }
.pf-int__src { position: absolute; left: 3%; top: 0; bottom: 0; display: grid; grid-template-rows: repeat(6, minmax(0, 1fr)); align-items: center; }
.pf-int__src .channel-icon { width: 30px; height: 30px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 14px -6px rgba(0, 0, 0, 0.8); }
.pf-int__src .channel-icon .icon { width: 14px; height: 14px; }
.pf-int__hub { position: absolute; left: 75%; top: 50%; display: grid; place-items: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 22px; background: radial-gradient(circle at 30% 20%, rgba(138, 110, 255, 0.4), #120F2A 70%); box-shadow: inset 0 0 0 1px rgba(169, 166, 255, 0.45), 0 0 50px -6px rgba(108, 77, 255, 0.9); }
.pf-int__hub::before { content: ""; position: absolute; inset: -14px; border-radius: 30px; border: 1px dashed rgba(138, 110, 255, 0.3); }
.pf-int__hub svg { width: 32px; height: 32px; }
/* Wires light up one after another (opacity only). platform.js adds .is-live while the
   card is on screen, so nothing animates off-screen; without JS the wires stay static. */
.pf-int__comets path:nth-child(3) { opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  .pf-int__flow.is-live .pf-int__comets path { animation: pf-wire 4.2s var(--ease-in-out) infinite; }
  .pf-int__flow.is-live .pf-int__comets path:nth-child(2) { animation-delay: 0.7s; }
  .pf-int__flow.is-live .pf-int__comets path:nth-child(3) { animation-delay: 1.4s; }
  .pf-int__flow.is-live .pf-int__comets path:nth-child(4) { animation-delay: 2.1s; }
  .pf-int__flow.is-live .pf-int__comets path:nth-child(5) { animation-delay: 2.8s; }
  .pf-int__flow.is-live .pf-int__comets path:nth-child(6) { animation-delay: 3.5s; }
}
@keyframes pf-wire { 0% { opacity: 0; } 12% { opacity: 0.9; } 30% { opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 719px) {
  .pf-int__dl { margin-top: 14px; gap: 6px; }
  .pf-int__dl dd + dt { margin-top: 6px; }
  .pf-int__flow { height: 200px; }
}
.pf-int__note { width: fit-content; max-width: 100%; margin: 28px auto 0; }

/* Security ------------------------------------------------------------------- */
.pf-sec { display: grid; gap: clamp(44px, 5vw, 72px); }
@media (min-width: 1024px) { .pf-sec { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); align-items: center; } }
.pf-sec__title { margin-top: 18px; font-size: clamp(2rem, 1.35rem + 1.9vw, 2.875rem); }
.pf-sec__lede { margin-top: 16px; }
.pf-sec__closing { display: flex; align-items: flex-start; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border-subtle); font-size: 0.9375rem; color: var(--text-2); }
.pf-sec__closing .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--violet-300); }
.pf-sec__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--r-2xl); background: var(--grad-surface), var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-subtle), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
.pf-sec__grid::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(169, 166, 255, 0.7) 35%, rgba(125, 240, 226, 0.6) 60%, transparent); }
.pf-sec__item { padding: clamp(22px, 2.4vw, 30px); }
.pf-sec__item + .pf-sec__item { border-top: 1px solid var(--border-subtle); }
.pf-sec__item .feature__title { margin-top: 16px; }
.pf-sec__item .feature__text { margin-top: 6px; }
@media (max-width: 599px) {
  .pf-sec__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: start; }
  .pf-sec__item .icon-tile { grid-row: span 2; }
  .pf-sec__item .feature__title { margin-top: 0; padding-top: 6px; }
  .pf-sec__item .feature__text { margin-top: 0; }
}
@media (min-width: 600px) {
  .pf-sec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-sec__item:nth-child(2) { border-top: 0; }
  .pf-sec__item:nth-child(even) { border-left: 1px solid var(--border-subtle); }
}

.pf-vault { position: relative; width: 104px; height: 104px; margin-bottom: 30px; }
.pf-vault::before { content: ""; position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(closest-side, rgba(108, 77, 255, 0.35), transparent 75%); }
.pf-vault__ring { position: absolute; inset: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(169, 166, 255, 0.28); }
.pf-vault__ring--outer { inset: -10px; box-shadow: none; border: 1px dashed rgba(169, 166, 255, 0.26); }
.pf-vault__orbit { position: absolute; inset: -10px; border-radius: 50%; }
.pf-vault__orbit i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--violet-200); box-shadow: 0 0 8px rgba(169, 166, 255, 0.9); transform: rotate(var(--a, 0deg)) translateY(-62px); }
.pf-vault__orbit i:nth-child(2) { --a: 120deg; }
.pf-vault__orbit i:nth-child(3) { --a: 240deg; background: var(--aqua-300); box-shadow: 0 0 8px rgba(70, 232, 212, 0.9); }
.pf-vault__core { position: absolute; inset: 20px; display: grid; place-items: center; border-radius: 26px 26px 26px 8px; color: var(--violet-100); background: radial-gradient(circle at 35% 25%, rgba(138, 110, 255, 0.4), rgba(20, 16, 50, 0.94) 64%), #0B0B18; box-shadow: inset 0 0 0 1px rgba(169, 166, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 44px -6px rgba(108, 77, 255, 0.85); }
.pf-vault__core .icon { width: 28px; height: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .pf-vault__orbit { animation: pf-spin 18s linear infinite; }
}

/* Teams ---------------------------------------------------------------------- */
.pf-team-card { padding: 0; overflow: hidden; }
.pf-team-card__visual { position: relative; display: grid; place-items: center; height: 188px; padding: 40px 22px 18px; border-bottom: 1px solid var(--border-subtle); background: radial-gradient(80% 90% at 50% 100%, rgba(255, 255, 255, 0.035), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 24px); }
.pf-team-card__visual > .badge--sample { position: absolute; top: 14px; right: 14px; }
.pf-team-card > .icon-tile { margin: 24px clamp(22px, 2.4vw, 28px) 0; }
.pf-team-card > .card__title { margin: 16px clamp(22px, 2.4vw, 28px) 0; }
.pf-team-card > .card__text { margin: 10px clamp(22px, 2.4vw, 28px) 28px; }

.pf-tv-review { display: grid; gap: 10px; width: 100%; max-width: 260px; }
.pf-tv-review__row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.pf-tv-review__row .skeleton { flex: none; }
.pf-tv-review__row--btns { gap: 6px; background: none; box-shadow: none; padding: 0; }
.pf-tv-review__k { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.pf-tv-review__bars { display: flex; align-items: flex-end; gap: 4px; height: 22px; margin-left: auto; }
.pf-tv-review__bars i { width: 8px; height: calc(var(--v) * 100%); border-radius: 2px 2px 1px 1px; background: linear-gradient(180deg, rgba(138, 110, 255, 0.9), rgba(108, 77, 255, 0.3)); }
.pf-tv-review__bars i.is-hl { background: linear-gradient(180deg, var(--aqua-300), rgba(70, 232, 212, 0.25)); }

.pf-tv-sales { width: 100%; max-width: 260px; gap: 10px; }
.pf-tv-sales .msg { max-width: 100%; }
.pf-tv-sales .msg__bubble { padding: 8px; }
.pf-tv-sales .msg__link { font-size: 0.8125rem; }
.pf-tv-sales__pass { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; outline: 1px dashed var(--border-strong); outline-offset: -1px; }
.pf-tv-sales__pass > .icon { width: 14px; height: 14px; color: var(--violet-300); }
.pf-tv-sales__pass .skeleton { flex: none; }

.pf-tv-ops { display: grid; justify-items: center; gap: 14px; }
.pf-tv-ops__chans { display: flex; gap: 8px; }
.pf-tv-ops__chans .channel-icon { width: 34px; height: 34px; }
.pf-tv-ops__route { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pf-tv-ops__route::before { content: ""; position: absolute; left: 50%; top: -14px; height: 14px; border-left: 1px dashed rgba(169, 166, 255, 0.6); }
.pf-tv-ops__route span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: var(--r-pill); font-size: 0.75rem; color: var(--text-1); white-space: nowrap; background: rgba(108, 77, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(138, 110, 255, 0.34); }
.pf-tv-ops__route .icon { width: 12px; height: 12px; color: var(--violet-200); }
