/* Workflow pages (/workflows/<slug>/). Built by tools/workflow-pages/build.mjs from workflow-onboarding-workflow-share.html; do not edit by hand. */

/* ===== PAGE-LEVEL RULES (html, body): START — the page canvas; every other rule is scoped to main.wf-page */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #F4F4F7; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== PAGE-LEVEL RULES: END */

/* css/tokens.css */
/* ==========================================================================
   Sense HR website — design tokens
   Layout/motion language recreated from the Zyntexa reference; colour + type
   are Sense's own (Satoshi display, Inter body, brand #634AFC).
   ========================================================================== */
.wf-page {
  /* Brand */
  --brand: #634AFC;
  --brand-hover: #4931DC;
  --brand-soft: #B8ADFF;
  --brand-10: #EFF1FF;
  --brand-20: #E5E7FF;
  --brand-glow: rgba(99, 74, 252, .35);

  /* Primary button — the ONE definition used by every primary CTA (nav, mobile menu, sections) */
  --btn-primary-bg: #634AFC;
  --btn-primary-bg-hover: #4931DC;
  --btn-primary-fg: #FFFFFF;          /* 5.4:1 on #634AFC — passes WCAG AA */
  --btn-radius: 10px;

  /* Neutrals */
  --ink: #0B0A14;                     /* dark panels */
  --ink-2: #15132A;
  --ink-3: #1C1A35;
  --page: #F4F4F7;                    /* off-white page, like the reference */
  --card: #FFFFFF;
  --text: #0B0A14;
  --text-2: #54536B;
  --text-3: #8B899E;
  --line: rgba(11, 10, 20, .08);
  --line-strong: rgba(11, 10, 20, .14);
  --line-dash: rgba(11, 10, 20, .18);
  --text-inv: #FFFFFF;
  --text-inv-2: rgba(255, 255, 255, .72);
  --text-inv-3: rgba(255, 255, 255, .5);
  --line-inv: rgba(255, 255, 255, .14);
  --live: #22B573;
  --live-bg: #E4FFE9;

  /* Type */
  --font-display: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-h1: clamp(40px, 5.2vw, 68px);
  --fs-h2: clamp(30px, 3.4vw, 46px);
  --fs-h3: clamp(22px, 2vw, 28px);
  --fs-h4: 19px;
  --fs-lede: clamp(16px, 1.25vw, 18px);
  --fs-body: 16px;
  --fs-small: 14px;
  --ls-display: -0.035em;

  /* Layout */
  --container: 1320px;
  --container-wide: 1470px;
  --gutter: 24px;
  --frame-inset: 20px;
  --section-y: clamp(80px, 9vw, 128px);

  /* Radii (reference: 100 pill · 40 panel · 30/24/20 card · 15 dropdown · 10 small) */
  --r-panel: 40px;
  --r-card-lg: 30px;
  --r-card: 24px;
  --r-md: 16px;
  --r-sm: 12px;

  /* Shadows — soft, wide blurs */
  --shadow-sm: 0 1px 2px rgba(11, 10, 20, .06), 0 0 0 1px rgba(11, 10, 20, .05);
  --shadow-md: 0 24px 56px -12px rgba(11, 10, 20, .15);
  --shadow-lg: 0 57px 70px -20px rgba(11, 10, 20, .12), 0 0 0 1px rgba(11, 10, 20, .04);
  --shadow-float: 0 18px 40px -8px rgba(20, 12, 70, .28), 0 0 0 1px rgba(11, 10, 20, .05);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-reveal: .8s;
  --reveal-y: 40px;
}

@media (max-width: 767px) {
  .wf-page {
    --gutter: 16px;
    --frame-inset: 8px;
    --r-panel: 24px;
    --r-card-lg: 22px;
    --r-card: 20px;
  }
}

/* css/base.css */
/* ==========================================================================
   Base: reset, type, layout primitives, buttons, reveal + odometer motion
   ========================================================================== */
.wf-page *, .wf-page *::before, .wf-page *::after { box-sizing: border-box; }

.wf-page { color: var(--text); font: 400 var(--fs-body)/1.62 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wf-page img, .wf-page picture, .wf-page svg { display: block; max-width: 100%; }
.wf-page img { height: auto; }
.wf-page a { color: inherit; text-decoration: none; }
.wf-page button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.wf-page ul { list-style: none; margin: 0; padding: 0; }
.wf-page p { margin: 0; }
.wf-page h1, .wf-page h2, .wf-page h3, .wf-page h4, .wf-page h5 { margin: 0; text-wrap: balance; font-family: var(--font-display); font-weight: 500; letter-spacing: var(--ls-display); color: inherit; }
.wf-page h1 { font-size: var(--fs-h1); line-height: 1.06; }
.wf-page h2 { font-size: var(--fs-h2); line-height: 1.12; }
.wf-page h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.025em; }
.wf-page h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.015em; }
.wf-page h5 { font-size: 15px; line-height: 1.3; letter-spacing: 0; }
.wf-page b, .wf-page strong { font-weight: 600; }

.wf-page :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wf-page .on-dark :focus-visible, .wf-page .frame-dark :focus-visible, .wf-page .hero :focus-visible { outline-color: var(--brand-soft); }


.wf-page .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wf-page .container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wf-page .section { padding-block: var(--section-y); }
.wf-page .section-tight { padding-block: calc(var(--section-y) * .6); }
.wf-page .section-frame { padding-block: calc(var(--section-y) * .5); }

/* Dark inset panel — the reference's signature black rounded card */
.wf-page .frame { margin-inline: var(--frame-inset); border-radius: var(--r-panel); position: relative; overflow: hidden; isolation: isolate; }
.wf-page .frame-dark { background: var(--ink); color: var(--text-inv); }

/* Eyebrow pill */
.wf-page .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 13px/1 var(--font-body); letter-spacing: .01em;
  padding: 8px 14px; border-radius: 100px;
  background: var(--card); color: var(--brand-hover);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.wf-page .eyebrow.on-dark { background: rgba(255, 255, 255, .08); color: #DCD6FF; box-shadow: inset 0 0 0 1px var(--line-inv); }

.wf-page .lede { font-size: var(--fs-lede); color: var(--text-2); line-height: 1.62; }
.wf-page .frame-dark .lede, .wf-page .hero .lede { color: var(--text-inv-2); }

/* ---------- Buttons ---------- */
.wf-page .btn {
  --btn-h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 20px;
  border-radius: var(--btn-radius);
  font: 500 15px/1 var(--font-body); white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s, color .2s, box-shadow .2s, border-color .2s;
}
.wf-page .btn:hover { transform: scale(.97); }            /* standing rule: every button scales to .97 */
.wf-page .btn:active { transform: scale(.95); }
.wf-page .btn-lg { --btn-h: 52px; padding: 0 26px; font-size: 16px; }
.wf-page .btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); box-shadow: 0 8px 24px -8px rgba(99, 74, 252, .6), inset 0 1px 0 rgba(255, 255, 255, .18); }
.wf-page .btn-primary:hover { background: var(--btn-primary-bg-hover); }
.wf-page .btn-secondary { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.wf-page .btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand-hover); }
.wf-page .btn-secondary-dark { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: blur(8px); }
.wf-page .btn-secondary-dark:hover { background: rgba(255, 255, 255, .12); }
.wf-page .btn-ghost { background: transparent; padding: 0 6px; gap: 6px; color: inherit; }
.wf-page .btn-ghost svg { width: 20px; height: 20px; flex-shrink: 0; }

.wf-page .cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

.wf-page .link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--brand-hover); }
.wf-page .link svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.wf-page .link:hover svg { transform: translateX(3px); }

/* ---------- Icon tile ---------- */
.wf-page .icon-tile {
  width: 44px; height: 44px; border-radius: var(--r-sm); flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(99, 74, 252, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.wf-page .icon-tile svg { width: 20px; height: 20px; }
.wf-page .icon-tile-dark { background: rgba(255, 255, 255, .06); color: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--line-inv); }

/* ---------- Scroll reveal (fade-up, staggered by JS via --i) ---------- */
.js .wf-page .reveal { opacity: 0; transform: translate3d(0, var(--reveal-y), 0); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .wf-page .reveal.in { opacity: 1; transform: none; }

/* ---------- Odometer (digits roll; the real text stays in .sr-only) ---------- */
.wf-page .odo { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wf-page .odo-reels { display: inline-flex; align-items: baseline; }
.wf-page .odo-col { display: inline-block; height: 1.1em; line-height: 1.1em; overflow: hidden; vertical-align: bottom; }
.wf-page .odo-reel { display: flex; flex-direction: column; transform: translate3d(0, 0, 0); transition: transform var(--odo-dur, 1.8s) cubic-bezier(.2, .75, .1, 1); transition-delay: var(--odo-delay, 0s); }
.wf-page .odo-reel > span { height: 1.1em; }
.wf-page .odo-static { display: inline-block; opacity: 0; transform: translateY(.3em); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--odo-delay, .2s); }
.js .wf-page .odo-fade { opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: .5s; }
.wf-page .odo-run .odo-static, .wf-page .odo-run .odo-fade, .wf-page .odo-run.odo-fade { opacity: 1; transform: none; }

/* ---------- Reduced motion: everything final, instantly ---------- */
@media (prefers-reduced-motion: reduce) {
  
  .wf-page *, .wf-page *::before, .wf-page *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .wf-page .reveal, .js .wf-page .odo-fade, .wf-page .odo-static { opacity: 1 !important; transform: none !important; }
  .wf-page .btn:hover, .wf-page .btn:active { transform: none; }
}

/* ==========================================================================
   Sections (in page order)
   ========================================================================== */

/* ---------- shared heads ---------- */
.wf-page .stack-head { max-width: 720px; margin-bottom: 56px; }
.wf-page .stack-head p { margin-top: 18px; color: var(--text-2); font-size: var(--fs-lede); max-width: 640px; }
@media (max-width: 900px) { .wf-page .stack-head { margin-bottom: 40px; } }
.wf-page .center-head { max-width: 780px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.wf-page .center-head p { color: var(--text-2); font-size: var(--fs-lede); max-width: 640px; margin-top: 20px; }
.wf-page .center-cta { display: flex; justify-content: center; margin-top: 40px; }
.wf-page .split-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.wf-page .split-head h2 { max-width: 640px; }
.wf-page .split-head > p { color: var(--text-2); font-size: var(--fs-lede); max-width: 480px; justify-self: end; }
.wf-page .split-head .lede { margin-top: 20px; max-width: 600px; }
.wf-page .split-head-action { justify-self: end; }
@media (max-width: 900px) {
  .wf-page .split-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .wf-page .split-head > p, .wf-page .split-head-action { justify-self: start; }
}

/* ==========================================================================
   01 HERO — dark inset frame, centred copy, dashboard + floating cards
   ========================================================================== */
.wf-page .hero { position: relative; isolation: isolate; padding-top: calc(var(--frame-inset) + 150px); color: var(--text-inv); }
.wf-page .hero-frame {
  position: absolute; z-index: -1; top: var(--frame-inset); left: var(--frame-inset); right: var(--frame-inset);
  bottom: clamp(140px, 22vw, 320px);
  border-radius: var(--r-panel); overflow: hidden; background: #000;
}
.wf-page .hero-frame > span { position: absolute; pointer-events: none; }
/* blue haze drifting in from the top */
.wf-page .hero-haze { inset: 0; background: radial-gradient(48% 52% at 58% 18%, rgba(99, 74, 252, .42) 0%, rgba(99, 74, 252, .12) 55%, transparent 75%), radial-gradient(40% 40% at 10% 90%, rgba(99, 74, 252, .22), transparent 70%); }
/* faint vertical columns (72px, 17px gap), brightening towards the bottom */
.wf-page .hero-cols { inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 72px, transparent 72px 89px); background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 100%); }
/* soft glowing panel that the dashboard rises out of */
.wf-page .hero-glow { left: 13%; right: 13%; top: 50%; bottom: -12%; border-radius: 70px; background: #5B48F5; filter: blur(55px); opacity: .95; }
.wf-page .hero-dots { inset: 0; background: url("/assets/images/pages/workflows/hero-dots.svg?v=4396ef13") center top / cover no-repeat; opacity: .8; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .45; } }

.wf-page .hero-inner { display: flex; flex-direction: column; align-items: center; }
.wf-page .hero-copy { max-width: 920px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.wf-page .hero-copy h1 { color: #fff; text-wrap: balance; }
.wf-page .hero-copy .lede { max-width: 620px; margin-top: 24px; }
.wf-page .hero-copy .cta-group { margin-top: 36px; justify-content: center; }
.js .wf-page .hero-anim { opacity: 0; transform: translateY(16px); animation: heroIn .9s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.wf-page .word-reveal-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wf-page .word-reveal { display: inline-block; transform: translateY(110%); animation: wordUp .8s var(--ease-out) forwards; }
@keyframes wordUp { to { transform: none; } }

.wf-page .hero-visual { position: relative; width: 100%; max-width: 1180px; margin-top: 72px; perspective: 1400px; }
.wf-page .hero-window {
  position: relative; padding: 8px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .08));
  box-shadow: 0 40px 100px -30px rgba(33, 18, 140, .7), inset 0 0 0 1px rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform-origin: 50% 0;
  transform: rotateX(calc(var(--tilt, 1) * 14deg)) scale(calc(1 - var(--tilt, 1) * .04));
  will-change: transform;
}
.wf-page .hero-window img { width: 100%; border-radius: 19px; }

.wf-page .float-card { background: #fff; color: var(--text); border-radius: var(--r-md); box-shadow: var(--shadow-float); }
.wf-page .hero-floats { position: absolute; inset: 0; pointer-events: none; }
.wf-page .feed-card { position: absolute; left: -44px; top: 14%; width: 300px; padding: 10px; }
.wf-page .feed-list { display: flex; flex-direction: column; gap: 2px; }
.wf-page .feed-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; transition: background-color .5s; }
.wf-page .feed-item.is-active { background: var(--brand-10); }
.wf-page .feed-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--brand-soft); flex-shrink: 0; transition: background-color .5s, box-shadow .5s; }
.wf-page .feed-item.is-active .feed-dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(99, 74, 252, .18); }
.wf-page .feed-txt { display: flex; flex-direction: column; gap: 1px; }
.wf-page .feed-time { font: 500 11px/1.4 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--text-3); }
.wf-page .feed-desc { font-size: 13px; line-height: 1.4; color: var(--text-2); }
.wf-page .feed-desc b { color: var(--text); }

.wf-page .chip { position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 14px 10px 10px; border-radius: 14px; font: 500 13.5px/1.2 var(--font-body); white-space: nowrap; animation: floatY 6s ease-in-out infinite; }
.wf-page .chip-check { width: 24px; height: 24px; border-radius: 50%; background: var(--live-bg); color: var(--live); display: grid; place-items: center; flex-shrink: 0; }
.wf-page .chip-check svg { width: 13px; height: 13px; }
.wf-page .chip-1 { right: -40px; top: 9%; }
.wf-page .chip-2 { right: -64px; top: 42%; animation-delay: -1.5s; }
.wf-page .chip-3 { left: 6%; bottom: 8%; animation-delay: -3s; }
.wf-page .chip-4 { right: 12%; bottom: -22px; animation-delay: -4.5s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.js .wf-page .hero-floats .float-card { opacity: 0; scale: .92; transition: opacity .7s var(--ease-out), scale .7s var(--ease-out); }
.js .wf-page .hero-floats.in .float-card { opacity: 1; scale: 1; }
.wf-page .hero-floats.in .chip-1 { transition-delay: .15s; } .wf-page .hero-floats.in .chip-2 { transition-delay: .3s; }
.wf-page .hero-floats.in .chip-3 { transition-delay: .45s; } .wf-page .hero-floats.in .chip-4 { transition-delay: .6s; }

@media (max-width: 1280px) {
  .wf-page .feed-card { left: -12px; } .wf-page .chip-1 { right: -12px; } .wf-page .chip-2 { right: -12px; }
}
@media (max-width: 900px) {
  .wf-page .hero { padding-top: calc(var(--frame-inset) + 120px); }
  .wf-page .hero-visual { margin-top: 48px; }
  .wf-page .hero-floats { position: static; pointer-events: auto; display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
  .wf-page .feed-card { position: static; width: 100%; }
  .wf-page .hero-chips { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .wf-page .hero-chips::-webkit-scrollbar { display: none; }
  .wf-page .chip { position: static; scroll-snap-align: start; animation: none; box-shadow: var(--shadow-sm); }
}
@media (max-width: 767px) {
  .wf-page .hero-frame { bottom: 38%; }
  .wf-page .hero-glow { left: 4%; right: 4%; top: 58%; border-radius: 40px; filter: blur(36px); }
  .wf-page .hero-window { padding: 5px; border-radius: 16px; }
  .wf-page .hero-window img { border-radius: 12px; }
  .wf-page .hero-copy .cta-group { width: 100%; flex-direction: column; }
  .wf-page .hero-copy .cta-group .btn { width: 100%; }
}

/* css/agents.css */
/* ==========================================================================
   Agent pages — AMI hub page (sense-agent-ami.html)
   Builds on tokens/base/nav/sections from the home page; only page-specific
   patterns live here.
   ========================================================================== */

/* ---------- 01 HERO: inner-page frame (contains everything) + AMI agent hub ---------- */
.wf-page .ami-hero { padding-top: calc(var(--frame-inset) + 116px); padding-bottom: 80px; }   /* 80px between the CTA and the frame's bottom edge */
.wf-page .ami-hero .hero-frame { bottom: 0; }
.wf-page .ami-hero .hero-haze { background: radial-gradient(48% 52% at 58% 18%, rgba(99, 74, 252, .42) 0%, rgba(99, 74, 252, .12) 55%, transparent 75%); }   /* top haze only — no glow at the bottom */
.wf-page .ami-hero .hero-copy { max-width: 1040px; }
.wf-page .ami-hero .hero-copy .lede { max-width: 960px; }
.wf-page .ami-crumb { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font: 500 13px/1 var(--font-body); color: var(--text-inv-3); }
.wf-page .ami-crumb a { color: var(--text-inv-2); transition: color .2s; }
.wf-page .ami-crumb a:hover { color: #fff; }
.wf-page .ami-crumb .current { color: #fff; }

.wf-page .ami-orbit { position: relative; width: 100%; max-width: 1060px; margin-top: 0; }
.wf-page .ami-hero .hero-copy { margin-top: 40px; }
.wf-page .ami-orbit-stage { position: relative; aspect-ratio: 1200 / 520; }
.wf-page .ami-orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wf-page .ami-bundle path { fill: none; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.wf-page .ami-bundle path.is-agent { stroke-width: 1.5; }
.wf-page .ami-live { fill: none; stroke: url(#amiLiveGrad); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .35s; }
.wf-page .ami-live.on { opacity: 1; }
.js .wf-page .ami-bundle path { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease-out); transition-delay: calc(.4s + var(--k, 0) * 35ms); }
.wf-page .ami-orbit.in .ami-bundle path { stroke-dashoffset: 0; }
.wf-page .ami-orb { opacity: 0; transition: opacity .3s; }
.wf-page .ami-orb.on { opacity: 1; }
.wf-page .ami-orb-glow { fill: #8C7BFF; filter: url(#amiOrbBlur); }
.wf-page .ami-orb-core { fill: #fff; }

.wf-page .ami-orbit-hub { position: absolute; left: 50%; top: calc(380 / 520 * 100%); width: 96px; height: 96px; transform: translate(-50%, -50%); display: grid; place-items: center; }
.wf-page .ami-hub-tile { position: relative; z-index: 1; width: 88px; height: 88px; border-radius: 11px; background: url("/assets/images/pages/workflows/ami-hub-tile.svg?v=899e03ec") center / 100% 100% no-repeat; box-shadow: 0 24px 60px -10px rgba(99, 74, 252, .85), 0 0 0 1px rgba(255, 255, 255, .1); }
.wf-page .ami-hub-ring { position: absolute; inset: -18px; border-radius: 34px; border: 1px solid rgba(184, 173, 255, .35); animation: hubRing 3s ease-out infinite; }
.wf-page .ami-hub-label { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; white-space: nowrap; }
.wf-page .ami-hub-name { font: 700 20px/1 var(--font-display); letter-spacing: -0.02em; color: #fff; }
.wf-page .ami-hub-sub { font: 600 10px/1 var(--font-body); letter-spacing: .14em; color: var(--brand-soft); }

.wf-page .ami-node { position: absolute; left: var(--x); top: var(--y); width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(21, 19, 42, .85); color: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 12px 30px -10px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .35s, color .35s, box-shadow .35s, transform .35s var(--ease-out); }
.wf-page .ami-node svg { width: 22px; height: 22px; }
.wf-page .ami-node.is-on { background: var(--brand); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(99, 74, 252, .25), 0 14px 34px -8px rgba(99, 74, 252, .9); }
.js .wf-page .ami-node { opacity: 0; scale: .6; transition: opacity .5s var(--ease-out), scale .5s var(--ease-out), background-color .35s, color .35s, box-shadow .35s, transform .35s var(--ease-out); transition-delay: calc(1s + var(--k, 0) * 70ms), calc(1s + var(--k, 0) * 70ms), 0s, 0s, 0s, 0s; }
.wf-page .ami-orbit.in .ami-node { opacity: 1; scale: 1; }

.wf-page .ami-orbit-chips { position: absolute; inset: 0; pointer-events: none; }
.wf-page .ami-chip { position: absolute; left: var(--cx, 50%); top: var(--cy, 0); display: flex; align-items: center; gap: 9px; padding: 10px 14px 10px 10px; border-radius: 14px;
  background: #fff; color: var(--text); box-shadow: var(--shadow-float); font: 500 13.5px/1.3 var(--font-body); white-space: nowrap;
  opacity: 0; transform: translateY(12px) scale(.78); filter: blur(8px); transform-origin: 50% 100%;
  transition: opacity .4s var(--ease-out), transform .7s cubic-bezier(.34, 1.56, .64, 1), filter .45s var(--ease-out); }
/* in: fades up from a blurred, smaller state and settles with a slight overshoot */
.wf-page .ami-chip.is-on { opacity: 1; transform: none; filter: none; }
/* out: shrinks, lifts and blurs away as the orb leaves AMI for the next agent */
.wf-page .ami-chip.is-out { opacity: 0; transform: translateY(-10px) scale(.9); filter: blur(6px);
  transition: opacity .28s ease-in, transform .32s ease-in, filter .28s ease-in; }
.wf-page .ami-chip.is-on .ami-chip-check { animation: chipCheck .55s .18s cubic-bezier(.34, 1.56, .64, 1) both; }
.wf-page .ami-chip.is-on .ami-chip-txt { animation: chipTxt .5s .12s var(--ease-out) both; }
@keyframes chipCheck { from { transform: scale(0) rotate(-45deg); } to { transform: none; } }
@keyframes chipTxt { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.wf-page .ami-chip-txt b { font-weight: 600; }
/* toast restyled as the agent pages' floating purple prompt card */
.wf-page .ami-chip { padding: 14px 18px 14px 14px; border-radius: 18px; color: #fff; font-size: 14.5px;
  background: linear-gradient(0deg, #978CEC 0%, rgba(116, 98, 244, .97) 26%, #5238E0 100%);   /* lighter purple band reduced */
  box-shadow: inset 0 0 36px rgba(255, 255, 255, .28), 0 24px 50px -18px rgba(64, 40, 220, .7); }
.wf-page .ami-chip.is-on { animation: qzFloat 3.2s ease-in-out infinite alternate; }
.wf-page .ami-chip .ami-chip-check { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: #fff; }
@keyframes qzFloat { from { translate: 0 -14px; rotate: -1.5deg; } to { translate: 0 22px; rotate: 1deg; } }
@media (prefers-reduced-motion: reduce) { .wf-page .ami-chip.is-on { animation: none; } }
.wf-page .ami-chip-check { width: 24px; height: 24px; border-radius: 50%; background: var(--live-bg); color: var(--live); display: grid; place-items: center; flex-shrink: 0; }
.wf-page .ami-chip-check svg { width: 13px; height: 13px; }

@media (max-width: 900px) {
  .wf-page .ami-hero { padding-top: calc(var(--frame-inset) + 108px); }
  .wf-page .ami-orbit { margin-top: 0; overflow-x: clip; }
  .wf-page .ami-hero .hero-copy { margin-top: 28px; }
  .wf-page .ami-orbit-stage { width: 130%; margin-left: -15%; }   /* spread the agents; outer line tails crop at the frame */
  .wf-page .ami-orbit-hub { width: 60px; height: 60px; }
  .wf-page .ami-hub-tile { width: 52px; height: 52px; border-radius: 7px; }
  .wf-page .ami-hub-ring { inset: -10px; border-radius: 20px; }
  .wf-page .ami-hub-label { top: calc(100% + 6px); } .wf-page .ami-hub-name { font-size: 14px; } .wf-page .ami-hub-sub { font-size: 7.5px; }
  .wf-page .ami-node { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .wf-page .ami-node svg { width: 15px; height: 15px; }
  /* chips leave the diagram and sit in one centred slot below it */
  .wf-page .ami-orbit-chips { position: relative; inset: auto; height: 64px; margin-top: 36px; }
  .wf-page .ami-chip { left: 0; right: 0; top: 0; margin-inline: auto; width: max-content; max-width: 100%; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-page .ami-hub-ring { animation: none; }
  .js .wf-page .ami-node, .js .wf-page .ami-bundle path { opacity: 1; scale: 1; stroke-dashoffset: 0; }
}

/* ---------- 02 VIDEO ---------- */
.wf-page .ami-video { position: relative; display: grid; place-items: center; margin-top: 48px; aspect-ratio: 16 / 8; border-radius: var(--r-panel); overflow: hidden; cursor: pointer; background: #000; box-shadow: var(--shadow-lg); }
.wf-page .ami-video-play { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 20px 50px -12px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .3s var(--ease-out), background-color .3s; }
.wf-page .ami-video-play svg { width: 30px; height: 30px; margin-left: 4px; }
.wf-page .ami-video:hover .ami-video-play, .wf-page .ami-video:focus-visible .ami-video-play { transform: scale(1.08); background: var(--brand); }
.wf-page .ami-video:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
@media (max-width: 767px) {
  .wf-page .ami-video { aspect-ratio: 4 / 3.4; margin-top: 32px; }
  .wf-page .ami-video-play { width: 64px; height: 64px; } .wf-page .ami-video-play svg { width: 22px; height: 22px; }
}

/* ---------- 03 FIND ANSWERS — dark panel, 3 columns with dividers ---------- */
.wf-page .ami-intro { padding-block: var(--section-y); }
/* purple dust texture across the full width of the panel, behind the copy */
.wf-page .ami-intro::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/images/pages/workflows/ami-intro.svg?v=1719c033") center top / 100% auto no-repeat; }   /* always the full panel width */
.wf-page .ami-intro .center-head h2 { color: #fff; }
.wf-page .ami-intro .center-head p { color: var(--text-inv-2); max-width: 720px; }
.wf-page .ami-intro-glow { position: absolute; z-index: -1; left: 50%; bottom: -45%; width: 80%; height: 90%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(99, 74, 252, .55), transparent 70%); filter: blur(30px); }
.wf-page .ami-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; }
.wf-page .ami-feature { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 40px; }
.wf-page .ami-feature + .ami-feature { border-left: 1px solid var(--line-inv); }
.wf-page .ami-feature-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-inv); }
.wf-page .ami-feature-icon svg { width: 30px; height: 30px; }
.wf-page .ami-feature h3 { margin-top: 28px; font-size: clamp(20px, 1.7vw, 24px); color: #fff; }
.wf-page .ami-feature p { margin-top: 14px; color: var(--text-inv-2); font-size: 15px; line-height: 1.6; max-width: 340px; }
@media (max-width: 900px) {
  .wf-page .ami-features { grid-template-columns: 1fr; margin-top: 40px; }
  .wf-page .ami-feature { padding: 32px 8px; }
  .wf-page .ami-feature + .ami-feature { border-left: 0; border-top: 1px solid var(--line-inv); }
}

/* ---------- 04 MEET THE AGENTS — 2 × 5 link cards ---------- */
.wf-page .ami-agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.wf-page .ami-agent { display: flex; gap: 22px; align-items: flex-start; padding: 28px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-sm); scroll-margin-top: 110px;
  transition: transform .35s var(--ease-out), box-shadow .35s; }
.wf-page .ami-agent:hover, .wf-page .ami-agent:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--brand), var(--shadow-md); }
.wf-page .ami-agent-ic { width: 56px; height: 56px; border-radius: 15px; flex-shrink: 0; display: grid; place-items: center; background: #EFF1FF; color: #634AFC; transition: background-color .3s, color .3s; }
.wf-page .ami-agent-ic svg { width: 26px; height: 26px; }
.wf-page .ami-agent:hover .ami-agent-ic { background: #634AFC; color: #fff; }
.wf-page .ami-agent-body { display: flex; flex-direction: column; min-width: 0; }
.wf-page .ami-agent-name { font: 500 22px/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--text); }
.wf-page .ami-agent-role { margin-top: 6px; font: 500 14px/1.4 var(--font-body); color: var(--brand-hover); }
.wf-page .ami-agent-desc { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.wf-page .ami-agent-cta { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--font-body); color: var(--text); }
.wf-page .ami-agent-arrow { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-10); color: var(--brand); transition: background-color .3s, color .3s, transform .3s var(--ease-out); }
.wf-page .ami-agent-arrow svg { width: 11px; height: 11px; }
.wf-page .ami-agent:hover .ami-agent-arrow { background: var(--brand); color: #fff; transform: translateX(3px); }
@media (max-width: 900px) { .wf-page .ami-agents { grid-template-columns: 1fr; margin-top: 40px; } .wf-page .ami-agent { padding: 22px; gap: 16px; } .wf-page .ami-agent-ic { width: 48px; height: 48px; } }

/* ---------- 05 MEET AMI IN PERSON — pay-co "Network of passionate users" layout ----------
   striped lavender card · centred copy · product shot cropped by the card's bottom edge
   inside the home page's glass frame · form bar under the copy */
.wf-page .ami-meet-wrap { position: relative; }
.wf-page .ami-meet { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-panel); padding: clamp(56px, 7vw, 96px) var(--gutter) 0;
  background: linear-gradient(180deg, #F7F6FF 0%, #EFEDFF 55%, #E4E0FF 100%); box-shadow: inset 0 0 0 1px rgba(99, 74, 252, .08); text-align: center; }
.wf-page .ami-meet::before { /* vertical column stripes, fading in towards the bottom (reference texture, in Sense purple) */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(99, 74, 252, .09) 0 72px, transparent 72px 89px) center top;
  -webkit-mask-image: linear-gradient(180deg, transparent 5%, #000 95%); mask-image: linear-gradient(180deg, transparent 5%, #000 95%); }
.wf-page .ami-meet::after { /* purple haze rising from the lower corners */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(38% 60% at 0% 100%, rgba(99, 74, 252, .38), transparent 70%), radial-gradient(38% 60% at 100% 100%, rgba(99, 74, 252, .38), transparent 70%); }
.wf-page .ami-meet-copy { max-width: 720px; margin: 0 auto; }
.wf-page .ami-meet-copy h2 { color: var(--text); }
.wf-page .ami-meet-copy p { margin: 18px auto 0; color: var(--text-2); font-size: var(--fs-lede); max-width: 620px; }
.wf-page .ami-meet-shot { position: relative; max-width: 1080px; margin: clamp(40px, 5vw, 64px) auto 0; height: clamp(240px, 33vw, 470px); overflow: hidden; }
/* same glass outline as the home page's dashboard frame (.hero-window), tuned for a light background */
.wf-page .ami-meet-window { padding: 8px 8px 0; border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .28));
  box-shadow: 0 40px 100px -30px rgba(33, 18, 140, .35), inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px rgba(99, 74, 252, .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.wf-page .ami-meet-window img { width: 100%; border-radius: 19px 19px 0 0; }

/* form bar: Name · Email · button, directly under the copy */
.wf-page .ami-meet-form { position: relative; z-index: 2; width: min(820px, 100%); margin: 36px auto 0; text-align: left;
  display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 20px; background: #fff; color: var(--text);
  box-shadow: 0 30px 60px -20px rgba(33, 18, 140, .35), 0 0 0 1px rgba(11, 10, 20, .05); }
.wf-page .ami-meet-inputs { flex: 1; min-width: 0; display: flex; }
.wf-page .ami-meet-field { flex: 1; min-width: 0; padding: 4px 18px; }
.wf-page .ami-meet-field + .ami-meet-field { border-left: 1px solid var(--line); }
.wf-page .ami-meet-field label { display: block; margin-bottom: 4px; font: 600 12px/1.2 var(--font-body); letter-spacing: .02em; color: var(--text-2); }
.wf-page .ami-meet-input { display: flex; align-items: center; gap: 8px; color: var(--text-3); border-radius: 6px; transition: color .2s; }
.wf-page .ami-meet-input:focus-within { color: var(--brand); }
.wf-page .ami-meet-input svg { width: 16px; height: 16px; flex-shrink: 0; }
.wf-page .ami-meet-input input { flex: 1; min-width: 0; height: 26px; border: 0; background: none; font: 400 16px/1 var(--font-body); color: var(--text); outline: none; }
.wf-page .ami-meet-input input::placeholder { color: var(--text-3); }
.wf-page .ami-meet-field:focus-within { box-shadow: inset 0 -2px 0 var(--brand); }
.wf-page .ami-meet-btn { flex-shrink: 0; }
.wf-page .ami-meet-success { display: none; flex: 1; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 18px; border-radius: var(--r-sm); background: var(--live-bg); color: #096931; font: 500 15px/1.4 var(--font-body); }
.wf-page .ami-meet-success.show { display: flex; }
.wf-page .ami-meet-success-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--live); flex-shrink: 0; }
.wf-page .ami-meet-success-ic svg { width: 15px; height: 15px; }
.wf-page .ami-meet-form.is-sent .ami-meet-inputs, .wf-page .ami-meet-form.is-sent .ami-meet-btn { display: none; }
@media (max-width: 767px) {
  .wf-page .ami-meet-shot { height: 220px; }
  .wf-page .ami-meet-form { margin-top: 28px; flex-direction: column; align-items: stretch; padding: 12px; }
  .wf-page .ami-meet-inputs { flex-direction: column; }
  .wf-page .ami-meet-field { padding: 12px 8px; }
  .wf-page .ami-meet-field + .ami-meet-field { border-left: 0; border-top: 1px solid var(--line); }
  .wf-page .ami-meet-btn { width: 100%; }
}

/* ---------- 06 FAQ — single rounded container with square toggles ---------- */
.wf-page .ami-faq { max-width: 1070px; margin: 56px auto 0; border-radius: var(--r-card-lg); background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden; }
.wf-page .ami-faq-item + .ami-faq-item { border-top: 1px solid var(--line); }
.wf-page .ami-faq-q { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 40px; cursor: pointer; font: 500 clamp(17px, 1.4vw, 20px)/1.4 var(--font-display); letter-spacing: -0.01em; color: var(--text); transition: background-color .2s; }
.wf-page .ami-faq-q::-webkit-details-marker { display: none; }
.wf-page .ami-faq-q:hover { background: var(--page); }
.wf-page .ami-faq-q:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; border-radius: 12px; }
.wf-page .ami-faq-ic { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background-color .3s; }
.wf-page .ami-faq-ic svg { width: 14px; height: 14px; }
.wf-page .ami-faq-ic svg { transition: transform .35s var(--ease-out); }
.wf-page .ami-faq-item[open] .ami-faq-ic { background: var(--brand); }
.wf-page .ami-faq-item[open] .ami-faq-ic svg { transform: rotate(45deg); }
.wf-page .ami-faq-a { padding: 0 104px 26px 40px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
@supports (interpolate-size: allow-keywords) {
  .wf-page .ami-faq { interpolate-size: allow-keywords; }
  .wf-page .ami-faq-item::details-content { height: 0; overflow: hidden; transition: height .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .wf-page .ami-faq-item[open]::details-content { height: auto; }
}
@media (max-width: 767px) { .wf-page .ami-faq { margin-top: 40px; } .wf-page .ami-faq-q { padding: 20px; } .wf-page .ami-faq-a { padding: 0 20px 20px; font-size: 15px; } }

/* css/wf-card.css */
/* Workflow card — shared by the library grid (sense-automate-workflows.html) and the detail pages' related section. */
.wf-page .wf-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-sm); color: var(--text);
  transition: transform .35s var(--ease-out), box-shadow .35s; }
.wf-page .wf-card[hidden] { display: none; }
.wf-page .wf-card:hover, .wf-page .wf-card:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--brand), var(--shadow-md); }
.wf-page .wf-thumb { height: 120px; overflow: hidden; }
.wf-page .wf-thumb picture, .wf-page .wf-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.wf-page .wf-card:hover .wf-thumb img { transform: scale(1.06); }
.wf-page .wf-body { display: flex; flex-direction: column; gap: 8px; min-height: 104px; padding: 16px; border-top: 1px solid var(--line); }
.wf-page .wf-name { font: 600 15px/1.35 var(--font-body); color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wf-page .wf-desc { font-size: 13px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wf-page .wf-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--line); }
.wf-page .wf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-page .wf-tag { padding: 4px 8px; border-radius: 8px; background: #F1F3F6; font: 500 12px/16px var(--font-body); color: #6B7174; white-space: nowrap; }
.wf-page .wf-go { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-10); color: var(--brand); transition: background-color .3s, color .3s, transform .3s var(--ease-out); }
.wf-page .wf-go svg { width: 13px; height: 13px; }
.wf-page .wf-card:hover .wf-go { background: var(--brand); color: #fff; transform: translateX(2px); }
.wf-page .wf-card.is-new { animation: wfIn .5s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 35ms); }
@keyframes wfIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wf-page .wf-card.is-new { animation: none; } }

/* equal-height cards: name + description always reserve 2 lines each; tags stay on one line (+N overflow chip) */
.wf-page .wf-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* Figma: one-line title, ellipsis; full title in the HTML + tooltip */
.wf-page .wf-desc { min-height: calc(2 * 1.5em); }
.wf-page .wf-body { min-height: 0; }
.wf-page .wf-tags { flex-wrap: nowrap; overflow: hidden; min-width: 0; }
.wf-page .wf-tag[hidden] { display: none; }
.wf-page .wf-tag-more { background: var(--brand-10); color: var(--brand-hover); }

/* ---------- 01 HERO ---------- */
.wf-page .wfp-hero { position: relative; isolation: isolate; padding: calc(var(--frame-inset) + 150px) 0 calc(var(--frame-inset) + 88px); }
.wf-page .wfp-hero-frame { position: absolute; inset: var(--frame-inset) var(--frame-inset) 0; z-index: -1; overflow: hidden; border-radius: var(--r-panel); background: #EDEBFA; }
.wf-page .wfp-hero-frame { background: #FBFAFE; }
.wf-page .wfp-hero-frame picture, .wf-page .wfp-hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.wf-page .wfp-hero-frame picture { display: block;   /* artwork fades out before the copy column, so text never sits on the pattern */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0, 0, 0, .03) 40%, rgba(0, 0, 0, .1) 46%, rgba(0, 0, 0, .22) 52%, rgba(0, 0, 0, .38) 58%, rgba(0, 0, 0, .56) 64%, rgba(0, 0, 0, .73) 70%, rgba(0, 0, 0, .87) 76%, rgba(0, 0, 0, .96) 82%, #000 88%); mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0, 0, 0, .03) 40%, rgba(0, 0, 0, .1) 46%, rgba(0, 0, 0, .22) 52%, rgba(0, 0, 0, .38) 58%, rgba(0, 0, 0, .56) 64%, rgba(0, 0, 0, .73) 70%, rgba(0, 0, 0, .87) 76%, rgba(0, 0, 0, .96) 82%, #000 88%); }
.wf-page .wfp-hero-frame img { transform: scale(1.06); animation: wfpArt 1.6s var(--ease-out) forwards; }
@keyframes wfpArt { to { transform: none; } }
.wf-page .wfp-hero-veil { position: absolute; inset: 0; pointer-events: none;   /* keeps ink text legible on every category artwork */
  background: linear-gradient(180deg, rgba(251, 250, 254, .5) 0%, transparent 22%); }   /* soft top edge under the nav */

.wf-page .wfp-hero .container { /* keep content ≥40px inside the rounded frame at every width; at full container width it lines up with the sections below */
  padding-inline: min(calc(var(--frame-inset) + clamp(16px, 3.4vw, 44px)), max(var(--gutter), calc(var(--frame-inset) + 40px - (100vw - var(--container) - var(--gutter) * 2) / 2))); }
.wf-page .wfp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 64px; align-items: end; }
.wf-page .wfp-hero-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.wf-page .wfp-cat { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 100px; font: 500 13px/1 var(--font-body); color: var(--brand-hover);
  background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(99, 74, 252, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .2s var(--ease-out), background-color .2s; }
.wf-page .wfp-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.wf-page .wfp-cat:hover { transform: scale(.97); background: #fff; }
.wf-page .wfp-hero h1 { max-width: 680px; margin-top: 28px; color: var(--ink); font-size: clamp(52px, 7.4vw, 112px); line-height: .98; letter-spacing: -0.045em; }
.wf-page .wfp-hero h1 .tw-word { display: inline-block; white-space: nowrap; }
.wf-page .wfp-hero h1 .tw-ch { position: relative; opacity: 0; }
.wf-page .wfp-hero h1 .tw-ch.on { opacity: 1; }
.wf-page .wfp-hero h1 .tw-ch.is-caret::after { content: ""; position: absolute; left: calc(100% + .04em); top: .1em; bottom: .06em; width: .065em; min-width: 3px; border-radius: 2px; background: var(--brand); }
.wf-page .wfp-hero h1.is-typed .tw-ch.is-caret::after { animation: twBlink .9s steps(1) infinite, twOut .4s 2.2s forwards; }
@keyframes twBlink { 50% { opacity: 0; } }
@keyframes twOut { to { visibility: hidden; } }
.wf-page .wfp-hero h1.is-wide { max-width: none; }   /* js/workflow.js: title would exceed 2 lines at 680px → use the full copy column */
.wf-page .wfp-hero h1.is-long { font-size: clamp(40px, 5vw, 76px); line-height: 1.02; }
.wf-page .wfp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.wf-page .wfp-tag { padding: 6px 12px; border-radius: 100px; background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px rgba(11, 10, 20, .08); font: 500 13px/18px var(--font-body); color: var(--text-2); }
.wf-page .wfp-intro { margin-top: 24px; max-width: 600px; font-size: var(--fs-lede); line-height: 1.6; color: var(--text-2); }
.wf-page .wfp-hero .cta-group { margin-top: 36px; justify-content: flex-start; }
.wf-page .wfp-hero .btn svg { width: 15px; height: 15px; }

/* at-a-glance card: the md meta lines, verbatim */
.wf-page .wfp-glance { padding: 28px; border-radius: var(--r-card-lg); background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), var(--shadow-md);
  -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); }
.js .wf-page .wfp-glance.hero-anim { animation-name: wfpGlanceIn, wfpFloat; animation-duration: .9s, 3.2s; animation-delay: var(--d), 1.5s; animation-timing-function: var(--ease-out), ease-in-out; animation-iteration-count: 1, infinite; animation-direction: normal, alternate; animation-fill-mode: forwards, none; }
@keyframes wfpGlanceIn { from { opacity: 0; transform: translate(0, 4px) rotate(-1.5deg); } to { opacity: 1; transform: translate(0, -14px) rotate(-1.5deg); } }   /* lands where the float starts: no jump */
@keyframes wfpFloat { from { transform: translate(0, -14px) rotate(-1.5deg); } to { transform: translate(0, 22px) rotate(1deg); } }   /* same float as the agent pages' purple card (qzFloat) */
.wf-page .wfp-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wf-page .wfp-fact { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; }
.wf-page .wfp-fact:first-child { padding-top: 0; } .wf-page .wfp-fact:last-child { padding-bottom: 0; }
.wf-page .wfp-fact + .wfp-fact { border-top: 1px solid rgba(11, 10, 20, .08); }
.wf-page .wfp-fact-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px rgba(99, 74, 252, .7); }
.wf-page .wfp-fact-ic svg { width: 20px; height: 20px; }
.wf-page .wfp-fact-txt { font-size: 15px; line-height: 1.5; color: var(--text); padding-top: 1px; }
.wf-page .wfp-fact-k { display: block; font: 500 13px/1.4 var(--font-body); color: var(--text-3); margin-bottom: 2px; }

@media (max-width: 1024px) { .wf-page .wfp-hero-grid { gap: 36px; } }
@media (min-width: 901px) and (max-width: 1240px) {   /* two columns but a narrower frame: start the fade later so it stays clear of the copy */
  .wf-page .wfp-hero-frame picture { -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 56%, rgba(0, 0, 0, .1) 62%, rgba(0, 0, 0, .3) 68%, rgba(0, 0, 0, .56) 74%, rgba(0, 0, 0, .8) 81%, rgba(0, 0, 0, .95) 88%, #000 94%); mask-image: linear-gradient(90deg, transparent 0%, transparent 56%, rgba(0, 0, 0, .1) 62%, rgba(0, 0, 0, .3) 68%, rgba(0, 0, 0, .56) 74%, rgba(0, 0, 0, .8) 81%, rgba(0, 0, 0, .95) 88%, #000 94%); }
}
@media (max-width: 900px) {
  .wf-page .wfp-hero { padding-top: calc(var(--frame-inset) + 120px); padding-bottom: calc(var(--frame-inset) + 48px); }
  .wf-page .wfp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .wf-page .wfp-hero-frame picture { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0, 0, 0, .08) 58%, rgba(0, 0, 0, .25) 66%, rgba(0, 0, 0, .5) 74%, rgba(0, 0, 0, .75) 82%, rgba(0, 0, 0, .93) 90%, #000 96%); mask-image: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0, 0, 0, .08) 58%, rgba(0, 0, 0, .25) 66%, rgba(0, 0, 0, .5) 74%, rgba(0, 0, 0, .75) 82%, rgba(0, 0, 0, .93) 90%, #000 96%); }   /* stacked: art only behind the glance card */
  .wf-page .wfp-glance { max-width: 520px; }
}
@media (max-width: 767px) {
  .wf-page .wfp-hero h1 { margin-top: 22px; font-size: clamp(42px, 12vw, 60px); }
  .wf-page .wfp-hero h1 .tw-word { display: inline-block; white-space: nowrap; }
.wf-page .wfp-hero h1 .tw-ch { position: relative; opacity: 0; }
.wf-page .wfp-hero h1 .tw-ch.on { opacity: 1; }
.wf-page .wfp-hero h1 .tw-ch.is-caret::after { content: ""; position: absolute; left: calc(100% + .04em); top: .1em; bottom: .06em; width: .065em; min-width: 3px; border-radius: 2px; background: var(--brand); }
.wf-page .wfp-hero h1.is-typed .tw-ch.is-caret::after { animation: twBlink .9s steps(1) infinite, twOut .4s 2.2s forwards; }
@keyframes twBlink { 50% { opacity: 0; } }
@keyframes twOut { to { visibility: hidden; } }
.wf-page .wfp-hero h1.is-long { font-size: clamp(32px, 8.6vw, 44px); }
  .wf-page .wfp-hero .cta-group { width: 100%; }
  .wf-page .wfp-glance { padding: 22px; }
}

/* ---------- 02 HOW IT WORKS — dark panel, numbered sentence cards ---------- */
.wf-page .wfp-how { padding-block: var(--section-y); }
.wf-page .wfp-how::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/assets/images/pages/workflows/ami-intro.svg?v=1719c033") center top / 100% auto no-repeat; }
.wf-page .wfp-how-h3 { max-width: 860px; margin: 28px auto 0; text-align: center; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.3; color: var(--text-inv-2); }
.wf-page .wfp-steps { --n: 3; list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 20px; position: relative; isolation: isolate; }
.wf-page .wfp-step { position: relative; padding: 32px 30px 34px; border-radius: var(--r-card-lg); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: background-color .5s, box-shadow .5s, transform .35s var(--ease-out); }
.wf-page .wfp-step-n { position: relative; z-index: 1; flex-shrink: 0; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; font: 500 15px/1 var(--font-display); letter-spacing: 0; box-shadow: 0 10px 24px -8px rgba(99, 74, 252, .9);
  transition: background-color .5s, color .5s, box-shadow .5s; }
.wf-page .wfp-step p { margin-top: 28px; font-size: 17px; line-height: 1.6; color: #fff; transition: color .5s; }

/* sequence rail: js/workflow.js measures badge centres into --rx/--ry/--rw/--rh and drives --p (0…1) */
.wf-page .wfp-steps.has-rail::before, .wf-page .wfp-steps.has-rail::after { content: ""; position: absolute; z-index: -1; left: var(--rx); top: var(--ry); width: var(--rw); height: var(--rh); border-radius: 2px; pointer-events: none; }
.wf-page .wfp-steps.has-rail::before { background: rgba(255, 255, 255, .12); }
.wf-page .wfp-steps.has-rail::after { background: linear-gradient(var(--rdir, 90deg), var(--brand), var(--brand-soft)); box-shadow: 0 0 14px 1px rgba(123, 92, 255, .7);
  transform-origin: 0 0; transform: scale(var(--sx, 1), var(--sy, 1)); transition: transform .9s var(--ease-out); }

/* states — only once JS runs the sequence (no JS / reduced motion: everything stays lit) */
.wf-page .wfp-steps.is-seq .wfp-step { background: rgba(255, 255, 255, .025); }
.wf-page .wfp-steps.is-seq .wfp-step .wfp-step-n { background: #1D1B2E; color: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.wf-page .wfp-steps.is-seq .wfp-step p { color: rgba(255, 255, 255, .5); }
.wf-page .wfp-steps.is-seq .wfp-step.is-done .wfp-step-n, .wf-page .wfp-steps.is-seq .wfp-step.is-current .wfp-step-n { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -8px rgba(99, 74, 252, .9); }
.wf-page .wfp-steps.is-seq .wfp-step.is-done p { color: rgba(255, 255, 255, .82); }
.wf-page .wfp-steps.is-seq .wfp-step.is-current { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(184, 173, 255, .5), 0 30px 60px -30px rgba(99, 74, 252, .6); }   /* no lift: badges stay on the rail */
.wf-page .wfp-steps.is-seq .wfp-step.is-current p { color: #fff; }
.wf-page .wfp-step.is-current .wfp-step-n::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(123, 92, 255, .7); animation: wfpPulse 1.6s ease-out infinite; }
@keyframes wfpPulse { to { box-shadow: 0 0 0 12px rgba(123, 92, 255, 0); } }
.wf-page .wfp-steps .reveal:nth-child(2) { transition-delay: .1s; } .wf-page .wfp-steps .reveal:nth-child(3) { transition-delay: .2s; } .wf-page .wfp-steps .reveal:nth-child(4) { transition-delay: .3s; }
@media (max-width: 900px) {
  .wf-page .wfp-steps { grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
  .wf-page .wfp-step { display: flex; gap: 18px; align-items: flex-start; padding: 22px; }
  .wf-page .wfp-step p { margin-top: 0; font-size: 16px; padding-top: 9px; }
  .wf-page .wfp-steps { --rdir: 180deg; }
}

/* ---------- 03 MORE WORKFLOWS — related cards (card component: css/wf-card.css) ---------- */
.wf-page .wfp-more { padding-bottom: 0; }
.wf-page .wfp-more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.wf-page .wfp-more-all svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.wf-page .wfp-more-all:hover svg { transform: translateX(3px); }
.wf-page .wfp-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.wf-page .wfp-more-grid .wf-thumb { height: 150px; }
@media (max-width: 900px) { .wf-page .wfp-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } .wf-page .wfp-more-grid .wf-card:nth-child(3) { display: none; } }
@media (max-width: 767px) {
  .wf-page .wfp-more-head { flex-direction: column; align-items: flex-start; }
  .wf-page .wfp-more-all { max-width: 100%; height: auto; min-height: var(--btn-h, 52px); padding-block: 12px; white-space: normal; text-align: left; line-height: 1.3; }   /* long category names wrap */
  .wf-page .wfp-more-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; } .wf-page .wfp-more-grid .wf-card:nth-child(3) { display: flex; }
}

/* ---------- 04 FAQ — spacing only; component from agents.css ---------- */
.wf-page #faq { padding-bottom: calc(var(--section-y) * .9); }

@media (prefers-reduced-motion: reduce) {
  .wf-page .wfp-step.is-current .wfp-step-n::after { animation: none; }
  .wf-page .wfp-hero-frame img { animation: none; transform: none; }
  .js .wf-page .wfp-glance.hero-anim { animation: none; opacity: 1; transform: none; }
}

/* Light hero (the exports' body.hero-light): the overlay header starts with dark text, frosts on scroll as usual. */
body.hero-light .nav.nav--overlay:not(.is-scrolled) { color: var(--text); }
body.hero-light .nav.nav--overlay:not(.is-scrolled) .logo { color: var(--brand); }
body.hero-light .nav.nav--overlay:not(.is-scrolled) .nav-link:hover,
body.hero-light .nav.nav--overlay:not(.is-scrolled) .nav-item.is-open > .nav-link { background: rgba(11, 10, 20, .06); }

/* The line under the How it works steps (lib/main.mjs addHowLinks): pricing, and the product page where there is one. */
.wf-page .wfp-how-links { margin: 40px 0 0; text-align: center; font-size: 16px; line-height: 1.5; color: var(--text-inv-2); }
.wf-page .wfp-how-links a { color: var(--text-inv); text-decoration: underline; text-underline-offset: 3px; }
.wf-page .wfp-how-links a:hover { text-decoration-thickness: 2px; }
