/* Workflow Builder page (workflow.html). Converted once on 2026-10-08 from the design export sense-automate-workflow-builder-share.html (tokens, base, sections, agents, product, feature, minis, automate; nav.css is left to nav-footer-new.css), scoped to main.wf-builder and trimmed to the rules this page can match; maintained by hand from here on. */

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

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; } }
html { scroll-padding-top: 96px; }   /* focus and #anchor scrolling stop clear of the fixed overlay header (about 80 px tall) */

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

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

.wf-builder .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-builder .container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wf-builder .section { padding-block: var(--section-y); }
.wf-builder .section-frame { padding-block: calc(var(--section-y) * .5); }

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

/* Eyebrow pill */
.wf-builder .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-builder .eyebrow.on-dark { background: rgba(255, 255, 255, .08); color: #DCD6FF; box-shadow: inset 0 0 0 1px var(--line-inv); }

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

/* ---------- Buttons ---------- */
.wf-builder .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-builder .btn:hover { transform: scale(.97); }            /* standing rule: every button scales to .97 */
.wf-builder .btn:active { transform: scale(.95); }
.wf-builder .btn-lg { --btn-h: 52px; padding: 0 26px; font-size: 16px; }
.wf-builder .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-builder .btn-primary:hover { background: var(--btn-primary-bg-hover); }
.wf-builder .btn-secondary { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.wf-builder .btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand-hover); }
.wf-builder .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-builder .btn-secondary-dark:hover { background: rgba(255, 255, 255, .12); }

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

/* ---------- Scroll reveal (fade-up, staggered by JS via --i) ---------- */
.js .wf-builder .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-builder .reveal.in { opacity: 1; transform: none; }

/* ---------- Odometer (digits roll; the real text stays in .sr-only) ---------- */
.wf-builder .odo { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wf-builder .odo-reels { display: inline-flex; align-items: baseline; }
.wf-builder .odo-col { display: inline-block; height: 1.1em; line-height: 1.1em; overflow: hidden; vertical-align: bottom; }
.wf-builder .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-builder .odo-reel > span { height: 1.1em; }
.wf-builder .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-builder .odo-fade { opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: .5s; }
.wf-builder .odo-run .odo-static, .wf-builder .odo-run .odo-fade, .wf-builder .odo-run.odo-fade { opacity: 1; transform: none; }

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

/* css/sections.css */
/* ==========================================================================
   Sections (in page order)
   ========================================================================== */

/* ---------- shared heads ---------- */
.wf-builder .center-head { max-width: 780px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.wf-builder .center-head p { color: var(--text-2); font-size: var(--fs-lede); max-width: 640px; margin-top: 20px; }

/* ==========================================================================
   01 HERO — dark inset frame, centred copy, dashboard + floating cards
   ========================================================================== */

.wf-builder .hero-inner { display: flex; flex-direction: column; align-items: center; }
.wf-builder .hero-copy { max-width: 920px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.wf-builder .hero-copy h1 { color: #fff; text-wrap: balance; }
.wf-builder .hero-copy .lede { max-width: 620px; margin-top: 24px; }
.wf-builder .hero-copy .cta-group { margin-top: 36px; justify-content: center; }
.js .wf-builder .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-builder .word-reveal-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wf-builder .word-reveal { display: inline-block; transform: translateY(110%); animation: wordUp .8s var(--ease-out) forwards; }
@keyframes wordUp { to { transform: none; } }

.wf-builder .hero-visual { position: relative; width: 100%; max-width: 1180px; margin-top: 72px; perspective: 1400px; }
.wf-builder .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-builder .hero-window img { width: 100%; border-radius: 19px; }

.wf-builder .float-card { background: #fff; color: var(--text); border-radius: var(--r-md); box-shadow: var(--shadow-float); }
.wf-builder .hero-floats { position: absolute; inset: 0; pointer-events: none; }

.wf-builder .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-builder .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-builder .chip-check svg { width: 13px; height: 13px; }
.wf-builder .chip-1 { right: -40px; top: 9%; }
.wf-builder .chip-3 { left: 6%; bottom: 8%; animation-delay: -3s; }
.wf-builder .chip-4 { right: 12%; bottom: -22px; animation-delay: -4.5s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.js .wf-builder .hero-floats .float-card { opacity: 0; scale: .92; transition: opacity .7s var(--ease-out), scale .7s var(--ease-out); }
.js .wf-builder .hero-floats.in .float-card { opacity: 1; scale: 1; }
.wf-builder .hero-floats.in .chip-1 { transition-delay: .15s; } 
.wf-builder .hero-floats.in .chip-3 { transition-delay: .45s; } .wf-builder .hero-floats.in .chip-4 { transition-delay: .6s; }

@media (max-width: 1280px) {
   .wf-builder .chip-1 { right: -12px; } 
}
@media (max-width: 900px) {
  .wf-builder .hero-visual { margin-top: 48px; }
  .wf-builder .hero-floats { position: static; pointer-events: auto; display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
  .wf-builder .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-builder .hero-chips::-webkit-scrollbar { display: none; }
  .wf-builder .chip { position: static; scroll-snap-align: start; animation: none; box-shadow: var(--shadow-sm); }
}
@media (max-width: 767px) {
  .wf-builder .hero-window { padding: 5px; border-radius: 16px; }
  .wf-builder .hero-window img { border-radius: 12px; }
  .wf-builder .hero-copy .cta-group { width: 100%; flex-direction: column; }
  .wf-builder .hero-copy .cta-group .btn { width: 100%; }
}

/* ==========================================================================
   02 STATS STRIP — odometer counters with dashed dividers
   ========================================================================== */
.wf-builder .trust-bar { padding-block: 100px 24px; }
.wf-builder .stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1180px; margin-inline: auto; }
.wf-builder .stat { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 40px; padding: 8px 20px; border-left: 1px dashed var(--line-dash); min-height: 148px; text-align: center; }
.wf-builder .stat:first-child { border-left: 0; }
.wf-builder .stat-top { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.wf-builder .stat-num { display: inline-flex; align-items: center; gap: 8px; font: 500 clamp(30px, 2.9vw, 44px)/1.1 var(--font-display); letter-spacing: -0.035em; color: var(--text); }
.wf-builder .stat-lbl { font-size: 15px; color: var(--text-2); }
.wf-builder .stat-rating { display: flex; align-items: center; gap: 8px; }
.wf-builder .rating-badge img { width: 22px; height: 22px; border-radius: 5px; }
.wf-builder .rating-stars { display: flex; gap: 2px; }
.wf-builder .rating-stars svg { width: 15px; height: 15px; }
.wf-builder .odo-emoji { font-size: .55em; vertical-align: .18em; }
@media (max-width: 1100px) {
  .wf-builder .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .wf-builder .stat:nth-child(4) { border-left: 0; }
}
@media (max-width: 640px) {
  .wf-builder .trust-bar { padding-block: 48px 8px; }
  .wf-builder .stats { grid-template-columns: 1fr 1fr; row-gap: 0; }
  .wf-builder .stat { min-height: 0; gap: 16px; padding: 22px 8px; border-top: 1px dashed var(--line-dash); }
  .wf-builder .stat:nth-child(odd) { border-left: 0; }
  .wf-builder .stat:nth-child(4) { border-left: 1px dashed var(--line-dash); }
  .wf-builder .stat:nth-child(-n+2) { border-top: 0; }
  .wf-builder .stat:last-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   06 TIME & ATTENDANCE — home-three "We simplify…" layout:
   head + icon list with a progress bar on the left, tall gradient card on the right
   (stacked card of devices on top, product screenshot below). DOM keeps live order.
   ========================================================================== */
.wf-builder .ta-frame { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.wf-builder .ta-frame.is-active { opacity: 1; transform: none; }
.wf-builder .ta-frame:nth-child(1) img { max-width: 80%; max-height: 80%; }
.wf-builder .ta-frame:nth-child(2) img { box-shadow: none; border-radius: 0; }
.wf-builder .ta-frame img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--r-card); box-shadow: 0 30px 60px -28px rgba(33, 18, 140, .55); }

/* ==========================================================================
   11 GET STARTED — pinned section: marquee headline behind product image,
   copy + buttons reveal on scroll (progress in --p, set by JS)
   ========================================================================== */
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   13 FOOTER — full-bleed black (oma-melon layout): brand + copyright left,
   link columns right, oversized fading wordmark at the bottom
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .wf-builder .chip { animation: none !important; }
  .wf-builder .hero-window { transform: none; }
  .js .wf-builder .hero-anim { opacity: 1; transform: none; }
  .js .wf-builder .hero-floats .float-card { opacity: 1; scale: 1; }
}

/* 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.
   ========================================================================== */

/* toast restyled as the agent pages' floating purple prompt card */
@keyframes qzFloat { from { translate: 0 -14px; rotate: -1.5deg; } to { translate: 0 22px; rotate: 1deg; } }

/* ---------- 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-builder .ami-meet-wrap { position: relative; }
.wf-builder .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-builder .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-builder .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-builder .ami-meet-copy { max-width: 720px; margin: 0 auto; }
.wf-builder .ami-meet-copy h2 { color: var(--text); }
.wf-builder .ami-meet-copy p { margin: 18px auto 0; color: var(--text-2); font-size: var(--fs-lede); max-width: 620px; }
.wf-builder .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-builder .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-builder .ami-meet-window img { width: 100%; border-radius: 19px 19px 0 0; }

/* form bar: Name · Email · button, directly under the copy */
@media (max-width: 767px) {
  .wf-builder .ami-meet-shot { height: 220px; }
}

/* ---------- 06 FAQ — single rounded container with square toggles ---------- */
.wf-builder .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-builder .ami-faq-item + .ami-faq-item { border-top: 1px solid var(--line); }
.wf-builder .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-builder .ami-faq-q::-webkit-details-marker { display: none; }
.wf-builder .ami-faq-q:hover { background: var(--page); }
.wf-builder .ami-faq-q:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; border-radius: 12px; }
.wf-builder .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-builder .ami-faq-ic svg { width: 14px; height: 14px; }
.wf-builder .ami-faq-ic svg { transition: transform .35s var(--ease-out); }
.wf-builder .ami-faq-item[open] .ami-faq-ic { background: var(--brand); }
.wf-builder .ami-faq-item[open] .ami-faq-ic svg { transform: rotate(45deg); }
.wf-builder .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-builder .ami-faq { interpolate-size: allow-keywords; }
  .wf-builder .ami-faq-item::details-content { height: 0; overflow: hidden; transition: height .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .wf-builder .ami-faq-item[open]::details-content { height: auto; }
}
@media (max-width: 767px) { .wf-builder .ami-faq { margin-top: 40px; } .wf-builder .ami-faq-q { padding: 20px; } .wf-builder .ami-faq-a { padding: 0 20px 20px; font-size: 15px; } }

/* css/product.css */
/* ==========================================================================
   HR product pages (sense-hr-*.html). HR overview first: tools/product/gen_hr_overview.py
   Builds on the home hero (.hero), stats strip (.stats), AMI Meet card + FAQ (agents.css).
   ========================================================================== */

/* ---------- 01 HERO — dark: bg_1 artwork fills the rounded hero frame; the screen is cropped by the frame's bottom edge ---------- */
.wf-builder .pd-hero { position: relative; isolation: isolate; overflow: clip; padding-top: calc(var(--frame-inset) + 150px); color: var(--text-inv); }
.wf-builder .pd-hero-bg { position: absolute; z-index: -1; inset: var(--frame-inset) var(--frame-inset) 0; overflow: hidden; border-radius: var(--r-panel) var(--r-panel) 0 0; background: #0A0B24; }
.wf-builder .pd-hero-bg picture, .wf-builder .pd-hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 0; }
/* the screen runs flat and is cut off by the bottom of the hero / prism panel */
.wf-builder .pd-hero .hero-visual { height: clamp(380px, 44vw, 640px); margin-top: 72px; perspective: none; clip-path: inset(-120px -200px 0 -200px); }   /* clip only the bottom: floating chips can still overhang the sides */
.wf-builder .pd-hero .hero-window { transform: none; will-change: auto; }
.wf-builder .pd-hero .chip-1 { top: 12%; right: -44px; }
.wf-builder .pd-hero .chip-3 { left: -40px; bottom: auto; top: 40%; }
.wf-builder .pd-hero .chip-4 { right: 8%; bottom: auto; top: 70%; }
.wf-builder .pd-hero .hero-copy h1 { color: #fff; }
.wf-builder .pd-hero .hero-copy .lede { color: var(--text-inv-2); margin-top: 52px; }   /* clears the chip at the bottom of its float (+22px) */
@media (max-width: 900px) {
  .wf-builder .pd-hero { padding-top: calc(var(--frame-inset) + 120px); }
  .wf-builder .pd-hero .hero-visual { height: 64vw; margin-top: 40px; clip-path: inset(-40px -40px 0 -40px); }
  .wf-builder .pd-hero .hero-floats { display: none; }
}
.wf-builder .pd-hero .hero-copy { max-width: 1240px; }   /* room for a one-line title on wide screens */
.wf-builder .pd-hero-aside { position: relative; z-index: 2; margin-top: 22px; }   /* clears the title even at the top of its float (-14px) */
/* floating purple card, as the AMI page header chip (agents.css .ami-chip + qzFloat) */
.wf-builder .pd-aside-chip { display: inline-block; padding: 12px 20px; border-radius: 18px; color: #fff; font: 500 clamp(17px, 1.5vw, 21px)/1.35 var(--font-display); letter-spacing: -0.01em;
  background: linear-gradient(0deg, #978CEC 0%, rgba(116, 98, 244, .97) 26%, #5238E0 100%); box-shadow: inset 0 0 36px rgba(255, 255, 255, .28), 0 24px 50px -18px rgba(64, 40, 220, .7);
  animation: qzFloat 3.2s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .wf-builder .pd-aside-chip { animation: none; } }
.wf-builder .pd-hero .hero-copy .lede { max-width: 680px; }

/* ---------- 02 STATS — home strip with 4 items ---------- */
.wf-builder .pd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1040px; }
.wf-builder .pd-stats .stat { min-height: 0; justify-content: flex-start; gap: 40px; }   /* 40px from the figure to its label */
@media (max-width: 1024px) { .wf-builder .pd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* ---------- 03 BIG CLAIM — Zyntexa style giant line, auto-scrolling like the home page's "Get started" marquee (4 copies, -50% loop) ---------- */
.wf-builder .pd-claim { position: relative; overflow: clip; padding: clamp(72px, 9vw, 140px) 0 clamp(24px, 3vw, 48px); text-align: center; }
.wf-builder .pd-claim-marquee { overflow: hidden; }
.wf-builder .pd-claim-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.wf-builder .pd-claim-text { flex-shrink: 0; padding: 0 .5em .08em 0; margin: 0; white-space: nowrap; text-wrap: nowrap; font: 500 clamp(76px, 12.5vw, 210px)/1 var(--font-display); letter-spacing: -0.055em; color: var(--ink); }
.wf-builder .pd-claim-tile { position: absolute; left: 50%; top: 50%; width: clamp(86px, 9vw, 132px); aspect-ratio: 1; margin: calc(clamp(86px, 9vw, 132px) / -2 - 30px) 0 0 calc(clamp(86px, 9vw, 132px) / -2);
  border-radius: 30%; display: grid; place-items: center; background: linear-gradient(145deg, #8C7BFF 0%, #634AFC 48%, #3A22C9 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -10px 22px rgba(20, 8, 90, .45), 0 34px 60px -18px rgba(62, 36, 214, .65); animation: pdTile 5s ease-in-out infinite alternate; }
.wf-builder .pd-claim-tile img { width: 50%; height: 50%; filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(20, 8, 90, .4)); }
@keyframes pdTile { from { transform: translate(-18px, -10px) rotate(-10deg); } to { transform: translate(18px, 12px) rotate(8deg); } }
.wf-builder .pd-claim-sub { max-width: 560px; margin: clamp(20px, 2.4vw, 36px) auto 0; padding-inline: var(--gutter); font: 500 clamp(20px, 2vw, 28px)/1.3 var(--font-display); letter-spacing: -0.02em; color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .wf-builder .pd-claim-track { animation: none; width: 100%; justify-content: center; padding-inline: var(--gutter); }
  .wf-builder .pd-claim-text { font-size: clamp(48px, 8vw, 120px); white-space: normal; text-wrap: balance; padding-right: 0; }
  .wf-builder .pd-claim-text[aria-hidden] { display: none; }
  .wf-builder .pd-claim-tile { display: none; }
}

/* ---------- 04 CHAPTERS — shared head + module label + "Learn more" ---------- */
.wf-builder .pd-chapter-head { position: relative; max-width: 820px; display: flex; flex-direction: column; align-items: flex-start; }
.wf-builder .pd-chapter-head .eyebrow { margin-bottom: 18px; }
.wf-builder .pd-chapter-head h2 { color: inherit; }
.wf-builder .pd-mod { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-body); color: var(--brand-hover); letter-spacing: .01em; }
.wf-builder .pd-mod::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.wf-builder .pd-more { display: inline-block; margin-top: 24px; font: 500 15px/1.4 var(--font-body); color: var(--brand-hover); transition: color .2s; }
.wf-builder .pd-more svg { display: inline-block; width: 16px; height: 16px; margin-left: 5px; vertical-align: -3px; transition: transform .25s var(--ease-out); }   /* arrow stays after the last word when the label wraps */
.wf-builder .pd-more:hover { color: var(--brand); }
.wf-builder .pd-more:hover svg { transform: translate(2px, -2px); }

/* 04a stacking panels — pay-co "Digital wallets → Next-gen technology": panels stick below the nav and pile up;
   the one underneath shrinks + dims as the next slides over it (js/product.js sets --p per card) */
.wf-builder .pd-stack { position: relative; margin-top: clamp(48px, 5vw, 72px); }
.wf-builder .pd-stack-card { --p: 0; position: sticky; top: calc(96px + var(--i) * 22px); margin-bottom: 36px; }
.wf-builder .pd-stack-card:last-child { margin-bottom: 0; }
.wf-builder .pd-stack-inner { position: relative; overflow: hidden; isolation: isolate; min-height: 560px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 64px); align-items: center;
  padding: clamp(32px, 4vw, 60px); border-radius: var(--r-panel); transform-origin: 50% 0; transform: scale(calc(1 - var(--p) * .05)); box-shadow: 0 -20px 60px -30px rgba(11, 10, 20, .35); }
.wf-builder .pd-stack-inner::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: #0B0A14; opacity: calc(var(--p) * .28); border-radius: inherit; }   /* dims as it's covered */
.wf-builder .pd-stack-copy { position: relative; z-index: 1; max-width: 500px; }
.wf-builder .pd-stack-copy h3 { margin-top: 18px; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.wf-builder .pd-stack-copy p { margin-top: 18px; font-size: 17px; line-height: 1.65; }
.wf-builder .pd-stack-visual { position: relative; z-index: 1; }
.wf-builder .pd-stack-visual .pd-frame { aspect-ratio: 1.2; }
.wf-builder .pd-stack-card .pd-stack-visual .pd-frame:has(> .mi) { background: #0A0916 url("/assets/images/pages/homepage/ta-card-bg.webp") center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }   /* Cards-image-bg.png */
.wf-builder .pd-stack-card .pd-stack-visual .pd-frame:has(> .mi)::before { display: none; }
/* themes */
.wf-builder .pd-stack-card.is-purple .pd-stack-inner { background: radial-gradient(90% 70% at 85% 110%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(160deg, #7A63FF 0%, #634AFC 45%, #4A31E6 100%); color: #fff; }
.wf-builder .pd-stack-card.is-dark .pd-stack-inner { background: radial-gradient(70% 80% at 100% 0%, rgba(99, 74, 252, .38), transparent 60%), #0B0A14; color: #fff; }
.wf-builder .pd-stack-card.is-light .pd-stack-inner { background: #fff; color: var(--text); box-shadow: var(--shadow-sm), 0 -20px 60px -30px rgba(11, 10, 20, .25); }
.wf-builder .pd-stack-card.is-purple p, .wf-builder .pd-stack-card.is-dark p { color: rgba(255, 255, 255, .78); }
.wf-builder .pd-stack-card.is-light p { color: var(--text-2); }
.wf-builder .pd-stack-card.is-purple .pd-mod, .wf-builder .pd-stack-card.is-dark .pd-mod { color: #DCD6FF; }
.wf-builder .pd-stack-card.is-purple .pd-mod::before { background: #fff; } .wf-builder .pd-stack-card.is-dark .pd-mod::before { background: var(--brand-soft); }
.wf-builder .pd-stack-card.is-purple .pd-bullets li, .wf-builder .pd-stack-card.is-dark .pd-bullets li { color: #fff; }
.wf-builder .pd-stack-card.is-purple .pd-bullets svg { background: rgba(255, 255, 255, .18); color: #fff; }
.wf-builder .pd-stack-card.is-dark .pd-bullets svg { background: rgba(123, 92, 255, .22); color: var(--brand-soft); }
.wf-builder .pd-stack-card.is-purple .pd-more, .wf-builder .pd-stack-card.is-dark .pd-more { color: #fff; }
.wf-builder .pd-stack-card.is-purple .pd-frame { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.wf-builder .pd-stack-card.is-purple .pd-frame::before { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 56px, transparent 56px 70px); }
.wf-builder .pd-stack-card.is-dark .pd-frame { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.wf-builder .pd-stack-card.is-dark .pd-frame::before { background: repeating-linear-gradient(90deg, rgba(184, 173, 255, .07) 0 56px, transparent 56px 70px); }
@media (max-width: 900px) {   /* panels taller than the screen can't stick: plain stacked cards */
  .wf-builder .pd-stack-card { position: relative; top: auto; margin-bottom: 20px; }
  .wf-builder .pd-stack-inner { grid-template-columns: 1fr; min-height: 0; transform: none; }
  .wf-builder .pd-stack-inner::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wf-builder .pd-stack-inner { transform: none; } .wf-builder .pd-stack-inner::after { display: none; } }

/* 04a spotlight rows — text + bullets | framed visual, alternating */
.wf-builder .pd-bullets { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wf-builder .pd-bullets li { display: flex; align-items: center; gap: 12px; font: 500 15px/1.3 var(--font-body); color: var(--text); }
.wf-builder .pd-bullets svg { width: 22px; height: 22px; flex-shrink: 0; padding: 4px; border-radius: 7px; background: var(--brand-10); color: var(--brand); }
.wf-builder .pd-frame { position: relative; aspect-ratio: 1.18; padding: clamp(18px, 2.6vw, 36px); border-radius: var(--r-card-lg); overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #EEEBFF 0%, #E4DFFF 100%); box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.wf-builder .pd-frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgba(99, 74, 252, .07) 0 56px, transparent 56px 70px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%); mask-image: linear-gradient(180deg, transparent, #000 70%); }
.wf-builder .pd-frame picture { display: block; width: 100%; height: 100%; }
.wf-builder .pd-frame img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(49, 30, 160, .18)); }

/* 04c dark panel — two halves */
.wf-builder .pd-dark { padding-block: var(--section-y); }
.wf-builder .pd-dark::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/assets/images/agents/ami-intro.svg") center top / 100% auto no-repeat; }
.wf-builder .pd-dark .pd-dark .pd-mod { color: var(--brand-soft); }
.wf-builder .pd-dark .pd-mod::before { background: var(--brand-soft); }
.wf-builder .pd-dark .pd-duo-item .pd-mod { color: var(--brand-soft); }   /* label in the dot's lavender */
.wf-builder .pd-dark .pd-more { color: #fff; }
.wf-builder .pd-dark .pd-more:hover { color: var(--brand-soft); }
.wf-builder .pd-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 5vw, 72px); }
.wf-builder .pd-duo-item { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-card-lg); background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.wf-builder .pd-duo-item h3 { margin-top: 14px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.18; letter-spacing: -0.02em; color: #fff; }
.wf-builder .pd-duo-item p { margin-top: 14px; color: var(--text-inv-2); font-size: 16px; line-height: 1.65; }
.wf-builder .pd-duo-item .pd-more { margin-top: auto; padding-top: 22px; }
.wf-builder .pd-duo-visual { width: 100%; height: 300px; margin-bottom: 30px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, rgba(123, 92, 255, .35), rgba(123, 92, 255, .05) 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
/* AMI reporting mini-UI */

@media (max-width: 900px) { .wf-builder .pd-duo { grid-template-columns: 1fr; } .wf-builder .pd-duo-visual { height: 260px; } }

/* 04d bento — self-service access points + payroll */
.wf-builder .pd-bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; margin-top: clamp(48px, 5vw, 72px); }
.wf-builder .pd-tile { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(26px, 3vw, 40px); border-radius: var(--r-card-lg); background: var(--card); box-shadow: var(--shadow-sm); }
.wf-builder .pd-tile h3 { margin-top: 14px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.18; letter-spacing: -0.02em; }
.wf-builder .pd-tile p { margin-top: 14px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.wf-builder .pd-tile .pd-more { margin-top: auto; padding-top: 22px; }
@media (max-width: 1024px) {
  .wf-builder .pd-bento { grid-template-columns: 1fr; }
}

/* ---------- 05 CTA — two buttons in the AMI Meet card ---------- */
.wf-builder .pd-meet-cta { justify-content: center; margin-top: 28px; }

/* Insight & control + payroll tile: animated minis on the cards background, glass border */
.wf-builder .pd-duo-visual:has(.mi) { display: grid; place-items: center; background: #0A0916 url("/assets/images/pages/homepage/ta-card-bg.webp") center / cover no-repeat; }
.wf-builder .pd-duo-visual .mi { border: 8px solid rgba(255, 255, 255, .16); background-clip: padding-box; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 30px 60px -30px rgba(0, 0, 0, .7); }
@media (max-width: 767px) { .wf-builder .pd-hero .hero-copy .lede { margin-top: 48px; } }

/* stats, 4 items: a clean 2×2 on phones (the home rules are built for 5: last item spans, 4th gets a border) */
@media (max-width: 767px) {
  .wf-builder .pd-stats { grid-template-columns: 1fr 1fr; }
  .wf-builder .pd-stats .stat { gap: 16px; padding: 22px 8px; border-top: 1px dashed var(--line-dash); }
  .wf-builder .pd-stats .stat:nth-child(-n+2) { border-top: 0; }
  .wf-builder .pd-stats .stat:nth-child(odd) { border-left: 0; }
  .wf-builder .pd-stats .stat:nth-child(even) { border-left: 1px dashed var(--line-dash); }
  .wf-builder .pd-stats .stat:last-child { grid-column: auto; }
  .wf-builder .pd-stats .stat-num { font-size: 30px; }
}

/* big claim: the S tile sits above the scrolling line instead of over it */
.wf-builder .pd-claim { display: flex; flex-direction: column; align-items: center; }
.wf-builder .pd-claim-marquee { width: 100%; }
.wf-builder .pd-claim .pd-claim-tile { position: relative; left: auto; top: auto; order: -1; margin: 0 0 clamp(32px, 4vw, 52px); }
/* header pill: gentler float, so the description can sit closer (user, 1 Oct) */
.wf-builder .pd-aside-chip { animation-name: pdPillFloat; }
@keyframes pdPillFloat { from { translate: 0 -5px; rotate: -1deg; } to { translate: 0 7px; rotate: .8deg; } }
.wf-builder .pd-hero .hero-copy .lede { margin-top: 34px; }
@media (max-width: 767px) { .wf-builder .pd-hero .hero-copy .lede { margin-top: 32px; } }
.wf-builder .pd-claim .pd-claim-tile { margin-bottom: clamp(4px, 1vw, 14px); }   /* closer to the sliding line (user, 1 Oct) */
@media (max-width: 767px) { .wf-builder .pd-claim .pd-claim-tile { margin-bottom: 20px; } }

/* css/feature.css */
/* ==========================================================================
   HR feature pages (employee records onwards) — additions on top of product.css.
   Hero: Features.avif background, copy left, visual right. Plus the 3×3 "What's inside" grid and "Explore more" links.
   ========================================================================== */

/* ---------- 07 FAQ — lists inside answers ---------- */
.wf-builder .ami-faq-a ul { margin: 10px 0 0; padding-left: 20px; }
.wf-builder .ami-faq-a li { margin: 4px 0; }
.wf-builder .ami-faq-a p + p, .wf-builder .ami-faq-a ul + p { margin-top: 10px; }

/* ===== Reporting (page 8) ===== */

/* quick-benefit cards (user, 2 Oct: Flow Suite feature-card style): soft grey card, white animation stage, copy below */
.wf-builder .ft-bcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wf-builder .ft-bcard { padding: 12px 12px 26px; border-radius: var(--r-card); background: linear-gradient(180deg, #F3F2F9 0%, #F8F8FC 60%, #fff 100%); box-shadow: inset 0 0 0 1px rgba(11, 10, 20, .06); }
.wf-builder .ft-bstage { position: relative; height: 250px; overflow: hidden; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 10, 20, .05), 0 20px 40px -28px rgba(33, 18, 140, .35); }
.wf-builder .ft-bstage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(rgba(99, 74, 252, .09) 1px, transparent 1.2px) 0 0 / 16px 16px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent); mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent); }
.wf-builder .ft-btext { padding: 22px 12px 0; }
.wf-builder .ft-btext h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
.wf-builder .ft-btext p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 1100px) { .wf-builder .ft-bcards { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }

/* css/minis.css */
/* ==========================================================================
   Animated product mini-UIs (tools/product/minis.py · js/minis.js), rebuilt from the exported designs.
   States are toggled by classes; with reduced motion / no JS they show the designed end state.
   ========================================================================== */
.wf-builder .mi { position: relative; font-family: var(--font-body); color: #2C2853; text-align: left; background: #fff; box-shadow: 0 40px 70px -30px rgba(33, 18, 140, .45), 0 0 0 1px rgba(11, 10, 20, .04); }
.wf-builder .mi svg { display: block; }
.wf-builder .pd-frame .mi { margin: auto; }
.wf-builder .pd-frame .mi img { filter: none; }   /* not the frame's product-screenshot image rules */

/* cursor (moved by js/minis.js) */
.wf-builder .mi-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; pointer-events: none; opacity: 0;
  transform: translate(var(--cx, 60%), var(--cy, 110%)); transition: transform .9s cubic-bezier(.5, 0, .2, 1), opacity .3s; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .25)); }
.wf-builder .mi.is-cursor .mi-cursor { opacity: 1; }
.wf-builder .mi-cursor.is-press svg { transform: scale(.82); transition: transform .12s; }
.wf-builder .mi-cursor svg { width: 22px; height: 22px; transition: transform .2s; transform-origin: 20% 15%; }

/* ---------- Employee records (230×338 export, shown ~1.3×) ---------- */
@keyframes miPulse { to { box-shadow: 0 0 0 7px rgba(27, 202, 167, 0); } }

/* ---------- AMI assistant (291×329 export) ---------- */
.wf-builder .mi-ami-dots { display: none; gap: 5px; padding: 12px 14px; align-self: flex-start; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #E4E7F0; }
.wf-builder .mi-ami-dots i { width: 6px; height: 6px; border-radius: 50%; background: #A3A2B1; animation: miDot 1s ease-in-out infinite; }
.wf-builder .mi-ami-dots i:nth-child(2) { animation-delay: .15s; } .wf-builder .mi-ami-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes miDot { 50% { transform: translateY(-4px); background: #894AFF; } }
.wf-builder .mi-caret::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: #894AFF; animation: miBlink .8s steps(1) infinite; }
@keyframes miBlink { 50% { opacity: 0; } }

/* ---------- Onboarding timeline (355×442 export) ---------- */
.wf-builder .mi-ob { --step: 2; width: min(380px, 100%); padding: 18px 18px 18px 16px; border-radius: 22px; }
.wf-builder .mi-ob-list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wf-builder .mi-ob-rail { position: absolute; left: 36px; top: 40px; bottom: 60px; width: 2px; border-radius: 2px; background: #E8EEF6; }
.wf-builder .mi-ob-fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--step) / 4 * 100%); border-radius: inherit; background: #1BCAA7; transition: height .7s var(--ease-out); }
.wf-builder .mi-ob-step { position: relative; z-index: 1; display: flex; gap: 14px; padding: 10px 10px 10px 4px; border-radius: 14px; transition: background-color .5s; }
.wf-builder .mi-ob-dot { position: relative; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #F0EFFF; color: #894AFF; transition: background-color .5s, color .5s, transform .5s var(--ease-out); }
.wf-builder .mi-ob-step[data-ic="clock"] .mi-ob-dot { background: #FFF3E9; color: #FF934A; }
.wf-builder .mi-ob-ic { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .35s, transform .45s var(--ease-out); }
.wf-builder .mi-ob-ic svg { width: 16px; height: 16px; }
.wf-builder .mi-ob-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.wf-builder .mi-ob-txt b { font: 500 15.5px/1.3 var(--font-body); color: #495066; }
.wf-builder .mi-ob-txt > span:not(.mi-ob-tag) { font-size: 12.5px; line-height: 1.4; color: #6C7597; }
.wf-builder .mi-ob-tag { position: relative; height: 22px; margin-top: 4px; }
.wf-builder .mi-ob-tag > span { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; white-space: nowrap; font: 500 11px/1 var(--font-body);
  opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s var(--ease-out); }
.wf-builder .mi-ob-tag svg { width: 12px; height: 12px; }
.wf-builder .t-done { background: #EEFFF6; color: #02847C; } .wf-builder .t-now { background: #44A39C; color: #fff; } .wf-builder .t-up { background: #FFF4E6; color: #844502; }
/* state classes set by js/minis.js (default markup state = design: 2 done, day one now, 2 upcoming) */
.wf-builder .mi-ob-step.is-done .mi-ob-dot { background: #E4FFF0; color: #02847C; }
.wf-builder .mi-ob-step.is-done .mi-ob-ic-done, .wf-builder .mi-ob-step.is-done .t-done { opacity: 1; transform: none; }
.wf-builder .mi-ob-step.is-now { background: #EEFFF6; }
.wf-builder .mi-ob-step.is-now .mi-ob-dot { background: #1BCAA7; color: #fff; transform: scale(1.06); box-shadow: 0 0 0 5px rgba(27, 202, 167, .16); }
.wf-builder .mi-ob-step.is-now .mi-ob-ic-now, .wf-builder .mi-ob-step.is-now .t-now { opacity: 1; transform: none; }
.wf-builder .mi-ob-step.is-up .mi-ob-ic-own, .wf-builder .mi-ob-step.is-up .t-up { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .wf-builder .mi-ob-txt > span:not(.mi-ob-tag) { font-size: 12px; }
}

/* frames holding a mini-UI size to it (the fixed aspect ratio would crop the taller widgets) */
.wf-builder .pd-frame:has(> .mi) { aspect-ratio: auto; padding: clamp(24px, 3vw, 40px); }

/* translucent glass border on the card animations — same treatment as the hero product window */
.wf-builder .pd-stack-visual .mi { border: 8px solid rgba(255, 255, 255, .16); background-clip: padding-box;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 40px 70px -30px rgba(0, 0, 0, .6); }
.wf-builder .pd-stack-visual .mi-ob { border-radius: 30px; }

/* ---------- inside the home T&A frames: undo the screenshot rules, centre, glass border ---------- */
.wf-builder .ta-frame:has(> .mi) { display: grid; place-items: center; }
.wf-builder .ta-frame .mi img { position: static; inset: auto; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 0; box-shadow: none; }

/* ---------- Automate anything (Automate anything.svg) ---------- */
.wf-builder .mi-au { width: min(420px, 100%); padding: 20px 40px 34px; border-radius: 14px; display: flex; flex-direction: column; align-items: center;
  background: #FAFAFB radial-gradient(circle, #D9DBE3 1px, transparent 1.3px) 0 0 / 22px 22px; }
.wf-builder .mi-au-node { position: relative; width: 100%; max-width: 280px; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 8px; background: #fff;
  box-shadow: 0 0 0 1px #E4E7F0; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), box-shadow .35s; }
.wf-builder .mi-au-ic { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; background: #E7FBF3; color: #11C48F; }
.wf-builder .mi-au-ic.is-blue { background: #E8F3FF; color: #3897F0; }
.wf-builder .mi-au-ic svg { width: 18px; height: 18px; }
.wf-builder .mi-au-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wf-builder .mi-au-txt em { font-style: normal; font-size: 10.5px; color: #8A8FA3; }
.wf-builder .mi-au-txt b { font: 500 13px/1.2 var(--font-body); color: #2C2853; }
.wf-builder .mi-au-dots { display: grid; gap: 2px; align-self: start; padding-top: 4px; }
.wf-builder .mi-au-dots i { width: 3px; height: 3px; border-radius: 50%; background: #6C7597; }
.wf-builder .mi-au-tag { grid-column: 1 / -1; justify-self: start; padding: 4px 8px; border-radius: 5px; background: #EFF0F4; font-size: 10.5px; color: #495066; }
.wf-builder .mi-au-link { width: 1px; height: 22px; background: #D5D8E2; transform-origin: top; transition: transform .35s var(--ease-out); }
.wf-builder .mi-au-end { width: 18px; height: 18px; margin-top: 6px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #11C48F; box-shadow: 0 0 0 1px #C8F2DC; transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.wf-builder .mi-au-end svg { width: 11px; height: 11px; }
.wf-builder .mi-au-node.is-live { box-shadow: 0 0 0 1.5px #1BCAA7, 0 14px 28px -16px rgba(17, 196, 143, .6); }
.wf-builder .mi-au.is-pre [data-node]:not(.is-on) { opacity: 0; transform: translateY(10px); }
.wf-builder .mi-au.is-pre [data-link]:not(.is-on) { transform: scaleY(0); }
.wf-builder .mi-au.is-pre [data-end]:not(.is-on) { opacity: 0; transform: scale(.5); }
.wf-builder .mi-au-end.is-on { animation: miPulse 1.8s ease-out infinite; }

/* ---------- Counsel (Counsel.svg) ---------- */

.wf-builder .pd-stack-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
@media (max-width: 900px) { .wf-builder .pd-stack-inner { grid-template-columns: minmax(0, 1fr); } }

/* ===== every animation panel: 16px visible corners (user, 1 Oct). Where a panel has the 8px glass border, the outer
   radius is 24px so the white panel inside it reads as 16px. ===== */
.wf-builder .mi { border-radius: 16px !important; }
.wf-builder .pd-stack-visual .mi, .wf-builder .pd-duo-visual .mi { border-radius: 24px !important; }

/* ==========================================================================
   Reporting (page 8) — Tell powerful.svg, Infographics.svg, Can you just tell me.svg, Ai report writer.svg, Take action.svg,
   report hr.svg, Report assist.svg; hero = ami_absence(report=True)
   ========================================================================== */

/* shared: typed text over a hidden full-length copy (no reflow while typing), answers revealed word by word */
.wf-builder .mi-tm-ghost { visibility: hidden; }
.wf-builder .mi-tm-typed { position: absolute; inset: 9px 12px; }

/* ==========================================================================
   Reporting quick-benefit cards — animations on the card stage (Flow Suite feature-card style). Fixed stage height; nothing reflows.
   ========================================================================== */
.wf-builder .mi-b { position: relative; width: 100%; height: 100%; padding: 16px; background: none !important; box-shadow: none !important; container-type: inline-size; overflow: hidden; }
.wf-builder .b-lbl { font: 600 10.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #8A8DA0; white-space: nowrap; }

/* ==========================================================================
   Customisation (page 9) — Screen details.svg (660×620) + custom-data workflow (new graphic)
   ========================================================================== */

/* payslip assistant (Payslip.svg 451×301) */

/* ---------- Recruitment: Vacancies page ---------- */
/* hero: AMI vacancy set-up chat (live sense.hr/vacancies.html image 1.png, shown ~1.15×) */

.wf-builder .mi-vc.is-pre :is(.mi-vc-h, .mi-vc-p, .mi-vc-btns, .mi-vc-ask):not(.is-in) { opacity: 0; transform: translateY(8px); }

/* ---------- Recruitment: Vacancies page exports (user, 6 Oct) — palette: #393940 text, #6B6D80 grey, #9802A0 / #B000BA magenta, #FAF1FB / #F8E7F9 pinks ---------- */
.wf-builder .pd-ta .ta-frame .mi :is(.mi-su-av, .mi-su-rav, .mi-vb-logo, .mi-vg-co) img { border-radius: 0; }

/* vacancy board (Post and track.svg 506×341) */

.wf-builder .pd-stack-visual :is(.mi-vg, .mi-vo, .mi-jp, .mi-ht) { border-radius: 22px; }
@media (max-width: 600px) {   /* phones: thinner frame and glass border around the vacancy panels, more room for the UI */
  .wf-builder .pd-stack-visual :is(.mi-vg, .mi-vo, .mi-jp, .mi-ht) { border-width: 5px; border-radius: 18px; }

}

/* ==========================================================================
   Sense Automate — Workflow Builder value cards (tools/product/minis.py au_*). Same stage as the reporting cards (.mi-b);
   Automate green marks live / connected states, Sense purple marks what the cursor clicks.
   ========================================================================== */
.wf-builder .mi-au1, .wf-builder .mi-au2, .wf-builder .mi-au3 { display: flex; flex-direction: column; justify-content: center; }

/* 1 · Build & automate workflows */
.wf-builder .au1-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.wf-builder .au1-name { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wf-builder .au1-name b { font: 600 13.5px/1.2 var(--font-body); color: #2C2853; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-builder .au1-pub { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; background: #00CD9C; color: #fff; font: 500 11.5px/1 var(--font-body); white-space: nowrap; transition: background-color .3s, color .3s, transform .15s; }
.wf-builder .au1-pub i { display: none; width: 6px; height: 6px; border-radius: 50%; background: #00CD9C; animation: miPulse 1.8s ease-out infinite; }
.wf-builder .au1-pub.is-live { background: #E2FBF2; color: #007A5C; } .wf-builder .au1-pub.is-live i { display: block; }
.wf-builder .au1-pub.is-press { transform: scale(.94); }
.wf-builder .au1-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wf-builder .au1-node { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #E6E8F0, 0 6px 14px -10px rgba(33, 18, 140, .3); }
.wf-builder .au1-node > .au1-ic, .wf-builder .au1-node > .au1-txt { transition: opacity .35s, transform .45s var(--ease-out); }
.wf-builder .au1-node + .au1-node::before { content: ""; position: absolute; left: 25px; top: -12px; width: 2px; height: 12px; border-radius: 1px; background: #00CD9C; transform-origin: top; transition: transform .35s var(--ease-out); }
.wf-builder .au1-ic { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; }
.wf-builder .au1-ic svg { width: 15px; height: 15px; }
.wf-builder .au1-ic.is-trig { background: #E2FBF2; color: #00A37C; } .wf-builder .au1-ic.is-cond { background: #FFF4D6; color: #B07A00; } .wf-builder .au1-ic.is-act { background: #ECE8FF; color: #5B3FE8; }
.wf-builder .au1-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wf-builder .au1-txt em { font: 600 9.5px/1 var(--font-body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #8A8DA0; }
.wf-builder .au1-txt b { font: 500 12.5px/1.2 var(--font-body); color: #2C2853; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-builder .au1-add { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; font: 500 12px/1 var(--font-body); color: #8A8DA0;
  background: repeating-linear-gradient(90deg, #C9CCD8 0 5px, transparent 5px 9px) top / 100% 1.5px no-repeat, repeating-linear-gradient(90deg, #C9CCD8 0 5px, transparent 5px 9px) bottom / 100% 1.5px no-repeat,
    repeating-linear-gradient(0deg, #C9CCD8 0 5px, transparent 5px 9px) left / 1.5px 100% no-repeat, repeating-linear-gradient(0deg, #C9CCD8 0 5px, transparent 5px 9px) right / 1.5px 100% no-repeat;
  opacity: 0; pointer-events: none; transition: opacity .3s, color .25s; }
/* off: an empty slot (dashed "+ Add step" only when it's the next one) */
.wf-builder .au1-node:not(.is-on) { background: transparent; box-shadow: none; }
.wf-builder .au1-node:not(.is-on) > .au1-ic, .wf-builder .au1-node:not(.is-on) > .au1-txt { opacity: 0; transform: translateY(6px) scale(.97); }
.wf-builder .au1-node:not(.is-on)::before { transform: scaleY(0); }
.wf-builder .au1-node.is-next .au1-add { opacity: 1; }
.wf-builder .au1-node.is-next.is-hot .au1-add { color: #634AFC; background-color: #F7F6FF; }

/* 2 · Integrate third-party services */
.wf-builder .au2-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.wf-builder .au2-count { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 7px; background: #E2FBF2; color: #007A5C; font: 500 11.5px/1 var(--font-body); }
.wf-builder .au2-count b { font-weight: 600; font-variant-numeric: tabular-nums; }
.wf-builder .au2-map { position: relative; padding-left: 56px; }
.wf-builder .au2-hub { position: absolute; left: 0; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 12px; box-shadow: 0 0 0 5px #E2FBF2, 0 12px 24px -10px rgba(0, 163, 124, .6); }
.wf-builder .au2-hub img { width: 100%; height: 100%; display: block; border-radius: inherit; }
.wf-builder .au2-map::before { content: ""; position: absolute; left: 42px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: #D5D8E2; }   /* hub → bus */
.wf-builder .au2-bus { position: absolute; left: 54px; top: 23px; bottom: 23px; width: 2px; background: #D5D8E2; border-radius: 1px; }
.wf-builder .au2-apps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wf-builder .au2-app { display: flex; align-items: center; height: 46px; }
.wf-builder .au2-line { position: relative; flex: 1; min-width: 18px; height: 2px; background: #D5D8E2; transition: background-color .3s; }   /* grey lines (user, 6 Oct); not connected = dashed */
.wf-builder .au2-app:not(.is-on) .au2-line { background: repeating-linear-gradient(90deg, #C9CCD8 0 4px, transparent 4px 7px); }
.wf-builder .au2-pkt { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #00CD9C; box-shadow: 0 0 0 4px rgba(0, 205, 156, .22), 0 0 12px rgba(0, 205, 156, .9); opacity: 0; }
.wf-builder .au2-app.is-out .au2-pkt { animation: au2Out .8s cubic-bezier(.5, 0, .3, 1) forwards; }
.wf-builder .au2-app.is-in .au2-pkt { animation: au2In .8s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes au2Out { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes au2In { 0% { left: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }
.wf-builder .au2-card { position: relative; flex: 0 0 auto; width: min(200px, 66%); height: 100%; display: flex; align-items: center; gap: 9px; padding: 0 10px; border-radius: 11px; background: #fff;
  box-shadow: inset 0 0 0 1px #E6E8F0, 0 6px 14px -10px rgba(33, 18, 140, .3); transition: box-shadow .3s; }
.wf-builder .au2-app.is-flash .au2-card { box-shadow: inset 0 0 0 1.5px #00CD9C, 0 8px 18px -10px rgba(0, 163, 124, .5); }
.wf-builder .au2-ic { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: #F2F3F8; color: #495066; }
.wf-builder .au2-ic svg { width: 15px; height: 15px; }
.wf-builder .au2-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.wf-builder .au2-txt b { font: 500 12.5px/1.2 var(--font-body); color: #2C2853; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-builder .au2-st { position: relative; height: 13px; font-size: 11px; line-height: 13px; color: #6B6D80; white-space: nowrap; }
.wf-builder .au2-st > span { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 3px; transition: opacity .3s, transform .35s var(--ease-out); }
.wf-builder .au2-st svg { width: 11px; height: 11px; }
.wf-builder .au2-st [data-done] { color: #007A5C; font-weight: 500; opacity: 0; transform: translateY(5px); }
.wf-builder .au2-app.is-done .au2-st [data-idle] { opacity: 0; transform: translateY(-5px); } .wf-builder .au2-app.is-done .au2-st [data-done] { opacity: 1; transform: none; }
.wf-builder .au2-btn { display: inline-block; margin-top: -1px; padding: 2px 8px; border-radius: 5px; background: #634AFC; color: #fff; font: 500 10.5px/11px var(--font-body); white-space: nowrap; transition: transform .15s; }
.wf-builder .au2-btn.is-press { transform: scale(.92); }
@container (max-width: 300px) { .wf-builder .au2-card { width: 70%; padding: 0 8px; gap: 7px; } .wf-builder .au2-ic { width: 24px; height: 24px; } .wf-builder .au2-map { padding-left: 50px; } .wf-builder .au2-hub { width: 36px; height: 36px; margin-top: -18px; } .wf-builder .au2-map::before { left: 36px; } .wf-builder .au2-bus { left: 48px; } }

/* 3 · Support from specialists */
.wf-builder .au3-head { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #F0F1F6; }
.wf-builder .au3-av { position: relative; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #3A3A46; color: #fff; font: 600 11px/1 var(--font-body); }   /* dark grey (user, 6 Oct) */
.wf-builder .au3-av i { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #1BCAA7; box-shadow: 0 0 0 2px #fff; }
.wf-builder .au3-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wf-builder .au3-id b { font: 600 13px/1.1 var(--font-body); color: #2C2853; }
.wf-builder .au3-id span { font-size: 11px; line-height: 1.1; color: #6B6D80; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-builder .au3-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; background: #E2FBF2; color: #007A5C; font: 500 10.5px/1 var(--font-body); }
.wf-builder .au3-live i { width: 6px; height: 6px; border-radius: 50%; background: #00CD9C; animation: miPulse 1.8s ease-out infinite; }
.wf-builder .au3-msg { position: relative; display: flex; }
.wf-builder .au3-msg p { position: relative; margin: 0; padding: 8px 11px; font-size: 12px; line-height: 1.4; }
.wf-builder .au3-msg.is-me { justify-content: flex-end; }
.wf-builder .au3-msg.is-me p { max-width: 82%; border-radius: 12px 12px 3px 12px; background: #634AFC; color: #fff; }
.wf-builder .au3-msg.is-me .mi-tm-typed { inset: 8px 11px; }
.wf-builder .au3-msg.is-me p { transition: opacity .3s; } .wf-builder .mi-au3.is-pre .au3-msg.is-me p { opacity: 0; }   /* the question bubble appears as typing starts */
.wf-builder .au3-msg.is-bot { margin-top: 8px; }
.wf-builder .au3-msg.is-bot p { max-width: 90%; border-radius: 12px 12px 12px 3px; background: #F4F5F9; color: #2C2853; transition: opacity .25s; }
.wf-builder .mi-au3 [data-ans] i { font-style: normal; opacity: 0; transition: opacity .25s; } .wf-builder .mi-au3 [data-ans] i.is-on { opacity: 1; }
.wf-builder .mi-au3 .mi-ami-dots { position: absolute; left: 0; top: 0; padding: 9px 11px; background: #F4F5F9; box-shadow: none; }
.wf-builder .mi-au3.is-thinking .mi-ami-dots { display: flex; } .wf-builder .mi-au3.is-thinking .au3-msg.is-bot p, .wf-builder .mi-au3.is-asking .au3-msg.is-bot p { opacity: 0; }
.wf-builder .au3-step { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 8px 10px; border-radius: 11px; background: #F3FFFA; box-shadow: inset 0 0 0 1px rgba(0, 205, 156, .35);
  transition: opacity .35s, transform .5s cubic-bezier(.34, 1.4, .64, 1); }
.wf-builder .mi-au3:not(.is-step) .au3-step { opacity: 0; transform: translateY(8px) scale(.96); }
.wf-builder .au3-sic { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: #FFF4D6; color: #B07A00; }
.wf-builder .au3-sic svg { width: 15px; height: 15px; }
.wf-builder .au3-st { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.wf-builder .au3-st b { font: 500 12px/1.2 var(--font-body); color: #2C2853; }
.wf-builder .au3-st span { font-size: 11px; line-height: 1.2; color: #6B6D80; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-builder .au3-ok { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #00CD9C; color: #fff; }
.wf-builder .au3-ok svg { width: 11px; height: 11px; }
@container (max-width: 300px) { .wf-builder .au3-msg p { font-size: 11.5px; } .wf-builder .au3-live { display: none; } }

/* ---------- Sense Automate services (dark "Support from specialists" panel): Automate Academy + fully managed service ---------- */
.wf-builder .mi-auac, .wf-builder .mi-aums { width: min(430px, calc(100% - 36px)); padding: 16px; border-radius: 18px; }
/* Academy */
.wf-builder .aa-head, .wf-builder .am-head { display: flex; align-items: center; gap: 10px; }
.wf-builder .aa-ic { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: #E2FBF2; color: #00A37C; }
.wf-builder .aa-ic svg { width: 18px; height: 18px; }
.wf-builder .aa-id, .wf-builder .am-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wf-builder .aa-id b, .wf-builder .am-id b { font: 600 13.5px/1.15 var(--font-body); color: #2C2853; }
.wf-builder .aa-id span, .wf-builder .am-id span { font-size: 11.5px; line-height: 1.15; color: #6B6D80; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-builder .aa-pct { margin-left: auto; font: 600 18px/1 var(--font-body); color: #2C2853; } .wf-builder .aa-pct b { font-weight: 600; font-variant-numeric: tabular-nums; }
.wf-builder .aa-bar { display: block; height: 6px; margin: 12px 0 8px; border-radius: 3px; background: #EEF0F5; overflow: hidden; }
.wf-builder .aa-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00CD9C, #3FDDB0); transform-origin: left; transform: scaleX(var(--p, 1)); transition: transform .8s var(--ease-out); }
.wf-builder .aa-lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.wf-builder .aa-l { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 9px; transition: background-color .3s; }
.wf-builder .aa-st { position: relative; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: #F2F3F8; color: #A3A6B5; transition: background-color .3s, color .3s; }
.wf-builder .aa-st > i { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.wf-builder .aa-st svg { width: 11px; height: 11px; }
.wf-builder .aa-tick { transform: scale(.4); }
.wf-builder .aa-l.is-done .aa-st { background: #00CD9C; color: #fff; } .wf-builder .aa-l.is-done .aa-tick { opacity: 1; transform: none; }
.wf-builder .aa-l.is-lock .aa-lock { opacity: 1; }
.wf-builder .aa-l.is-cur { background: #F3FFFA; } .wf-builder .aa-l.is-cur .aa-st { background: #fff; box-shadow: inset 0 0 0 2px #DDE0E8; }
.wf-builder .aa-l.is-cur .aa-st::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: #00CD9C; animation: aaSpin .9s linear infinite; }
@keyframes aaSpin { to { transform: rotate(360deg); } }
.wf-builder .aa-l b { flex: 1; min-width: 0; font: 500 12.5px/1.2 var(--font-body); color: #2C2853; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.wf-builder .aa-l.is-lock b { color: #8A8DA0; }
.wf-builder .aa-l em { font-style: normal; font-size: 11px; color: #8A8DA0; }
.wf-builder .aa-cert { position: absolute; left: 50%; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 14px; background: #fff; white-space: nowrap;
  box-shadow: 0 18px 40px -14px rgba(0, 100, 75, .55), 0 0 0 1px rgba(0, 205, 156, .4); transform: translateX(-50%); transition: opacity .35s, transform .5s cubic-bezier(.34, 1.4, .64, 1); }
.wf-builder .mi-auac:not(.is-cert) .aa-cert { opacity: 0; transform: translate(-50%, 14px) scale(.92); }
.wf-builder .aa-cert-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #6CF3CF, #00A37C); color: #fff; }
.wf-builder .aa-cert-ic svg { width: 18px; height: 18px; }
.wf-builder .aa-cert-txt { display: flex; flex-direction: column; gap: 3px; }
.wf-builder .aa-cert-txt b { font: 600 13px/1.1 var(--font-body); color: #2C2853; } .wf-builder .aa-cert-txt span { font-size: 11px; line-height: 1.1; color: #007A5C; }
/* Managed service */
.wf-builder .am-av { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #8C7BFF, #4931DC); color: #fff; font: 600 11px/1 var(--font-body); }
.wf-builder .am-state { position: relative; margin-left: auto; width: 84px; height: 22px; flex-shrink: 0; }
.wf-builder .am-state > span { position: absolute; right: 0; top: 0; height: 22px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 6px; font: 500 11px/1 var(--font-body); white-space: nowrap; transition: opacity .3s, transform .35s var(--ease-out); }
.wf-builder .am-state [data-wip] { background: #FFF4D6; color: #8A5A00; }
.wf-builder .am-state [data-live] { background: #E2FBF2; color: #007A5C; opacity: 0; transform: translateY(5px); }
.wf-builder .am-state [data-live] i { width: 6px; height: 6px; border-radius: 50%; background: #00CD9C; animation: miPulse 1.8s ease-out infinite; }
.wf-builder .am-state.is-live [data-wip] { opacity: 0; transform: translateY(-5px); } .wf-builder .am-state.is-live [data-live] { opacity: 1; transform: none; }
.wf-builder .am-steps { list-style: none; margin: 14px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wf-builder .am-s { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wf-builder .am-n { position: relative; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #F2F3F8; color: #8A8DA0; transition: background-color .3s, color .3s, box-shadow .3s; }
.wf-builder .am-n > svg { width: 17px; height: 17px; }
.wf-builder .am-s.is-run .am-n { background: #ECE8FF; color: #5B3FE8; box-shadow: 0 0 0 4px rgba(99, 74, 252, .12); }
.wf-builder .am-s.is-done .am-n { background: #E2FBF2; color: #00A37C; }
.wf-builder .am-ok { position: absolute; right: -5px; top: -5px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: #00CD9C; color: #fff; box-shadow: 0 0 0 2px #fff; transform: scale(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.wf-builder .am-ok svg { width: 9px; height: 9px; }
.wf-builder .am-s.is-done .am-ok { transform: none; }
.wf-builder .am-s b { font: 600 11.5px/1 var(--font-body); color: #2C2853; }
.wf-builder .am-p { width: 100%; height: 4px; border-radius: 2px; background: #EEF0F5; overflow: hidden; }
.wf-builder .am-p i { display: block; height: 100%; border-radius: inherit; background: #634AFC; transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.45, 0, .25, 1), background-color .3s; }
.wf-builder .am-s.is-run .am-p i, .wf-builder .am-s.is-done .am-p i { transform: scaleX(1); } .wf-builder .am-s.is-done .am-p i { background: #00CD9C; }
.wf-builder .am-log { list-style: none; margin: 0; padding: 10px 12px; border-radius: 12px; background: #F8F9FB; display: flex; flex-direction: column; gap: 6px; }
.wf-builder .am-log li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; line-height: 1.2; color: #495066; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .4s var(--ease-out); }
.wf-builder .am-log li.is-on { opacity: 1; transform: none; }
.wf-builder .am-log li svg { width: 12px; height: 12px; flex-shrink: 0; color: #00A37C; }
.wf-builder .am-log li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-builder .mi-aums.is-pre .am-p i, .wf-builder .mi-aums.is-pre .am-log li, .wf-builder .mi-auac.is-pre .aa-bar i { transition: none; }
@container (max-width: 340px) { .wf-builder .am-id span, .wf-builder .aa-id span { display: none; } }

/* ---------- System Connector: the Connect apps travel along grey arches around Sense Automate (pure CSS; js not needed) ---------- */
.wf-builder .au-orbit { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; container-type: inline-size;
  background: radial-gradient(60% 70% at 50% 100%, rgba(0, 205, 156, .10), transparent 70%), #F7F7FA; box-shadow: inset 0 0 0 1px rgba(11, 10, 20, .06); }
.wf-builder .au-orbit::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(rgba(11, 10, 20, .07) 1px, transparent 1.2px) 0 0 / 16px 16px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.wf-builder .au-arc { position: absolute; left: 50%; bottom: 10%; width: calc(var(--r) * 2); aspect-ratio: 2 / 1; transform: translateX(-50%); border: 1.5px solid #DCDFE7; border-bottom: 0; border-radius: 999px 999px 0 0;
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, .25) 30%, #000 72%); mask-image: linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, .25) 30%, #000 72%); }   /* top as is, the ends fade into the background (user, 6 Oct) */
/* centred inside the smallest arch (radius 24cqw): its centre sits ~45% of that radius above the arches' baseline (user, 6 Oct) */
.wf-builder .au-orbit-hub { position: absolute; left: 50%; bottom: 10%; z-index: 2; width: clamp(40px, 11cqw, 56px); aspect-ratio: 1; translate: -50% calc(50% - 10.8cqw); border-radius: 28%;
  box-shadow: 0 0 0 8px rgba(0, 205, 156, .12), 0 0 0 16px rgba(0, 205, 156, .06), 0 14px 28px -10px rgba(0, 163, 124, .6); }
.wf-builder .au-orbit-hub img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.wf-builder .au-orbit-hub::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(0, 205, 156, .45); animation: auHub 2.4s ease-out infinite; }
@keyframes auHub { to { box-shadow: 0 0 0 26px rgba(0, 205, 156, 0); } }
.wf-builder .au-arm { position: absolute; left: 50%; bottom: 10%; z-index: 1; width: var(--r); height: 0; transform-origin: 0 0; transform: rotate(var(--a0)); animation: auArm var(--t) ease-in-out var(--d) infinite alternate; }
/* the tile image carries its own white ground + shadow (Icons.svg): the tile is 54 of the image's 78 units, so 66px here ≈ a 46px tile */
.wf-builder .au-app { position: absolute; left: 100%; top: 0; width: clamp(50px, 13.5cqw, 68px); aspect-ratio: 1; translate: -50% -50%; transform: rotate(calc(var(--a0) * -1)); animation: auApp var(--t) ease-in-out var(--d) infinite alternate; }
.wf-builder .au-app img { display: block; width: 100%; height: 100%; }
@keyframes auArm { from { transform: rotate(var(--a0)); } to { transform: rotate(var(--a1)); } }
@keyframes auApp { from { transform: rotate(calc(var(--a0) * -1)); } to { transform: rotate(calc(var(--a1) * -1)); } }
@media (prefers-reduced-motion: reduce) {
  .wf-builder .au-arm, .wf-builder .au-app, .wf-builder .au-orbit-hub::after { animation: none; }
  .wf-builder .au-arm { transform: rotate(calc((var(--a0) + var(--a1)) / 2)); } .wf-builder .au-app { transform: rotate(calc((var(--a0) + var(--a1)) / -2)); }
}

/* ---------- Sense Automate — Active workflows (Different rules.svg): rows load, then each workflow runs step by step ---------- */
.wf-builder .mi-auwf { width: min(490px, 100%); padding: 0; overflow: hidden; border-radius: 18px; container-type: inline-size; }
.wf-builder .pd-stack-visual .mi-auwf { border-radius: 26px; }
.wf-builder .aw-head { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: #EBFFF7; border-bottom: 1px solid #EFF2F8; color: #00A37C; }
.wf-builder .aw-hic svg { width: 18px; height: 18px; }
.wf-builder .aw-head b { font: 600 14px/1 var(--font-body); color: #00A37C; }
.wf-builder .aw-rows { list-style: none; margin: 0; padding: 4px 14px 8px; }
.wf-builder .aw-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; transition: background-color .35s, opacity .4s, transform .5s var(--ease-out); }
.wf-builder .aw-row + .aw-row::before { content: ""; position: absolute; left: 6px; right: 6px; top: 0; height: 1px; background: #EFF2F8; }
.wf-builder .aw-row.is-hot { background: #F6FFFB; }
.wf-builder .aw-row.is-hot::before, .wf-builder .aw-row.is-hot + .aw-row::before { opacity: 0; }
.wf-builder .mi-auwf.is-pre .aw-row { opacity: 0; transform: translateY(8px); }
.wf-builder .aw-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; }
.wf-builder .aw-ic svg { width: 18px; height: 18px; }
.wf-builder .aw-ic.is-green { background: #E5FBEF; color: #1FA463; } .wf-builder .aw-ic.is-purple { background: #EDEAFF; color: #7358F8; } .wf-builder .aw-ic.is-blue { background: #E6F1FF; color: #2F80ED; }
.wf-builder .aw-ic.is-orange { background: #FFF1E5; color: #E8772E; } .wf-builder .aw-ic.is-red { background: #FFECEC; color: #E5484D; }
.wf-builder .aw-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.wf-builder .aw-txt b { font: 500 13.5px/1.2 var(--font-body); color: #2C2853; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-builder .aw-path { font-size: 11px; line-height: 1.2; color: #8A8DA0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-builder .aw-path i, .wf-builder .aw-path em { font-style: normal; transition: color .3s; }
.wf-builder .aw-path em { margin: 0 4px; }
.wf-builder .aw-path i.is-on { color: #007A5C; font-weight: 500; } .wf-builder .aw-path em.is-on { color: #00CD9C; }
.wf-builder .aw-run { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 5px 8px; border-radius: 7px; background: #E2FBF2; color: #0A9B72; font: 500 11px/1 var(--font-body); transition: background-color .3s, color .3s, box-shadow .3s; }
.wf-builder .aw-run svg { width: 11px; height: 11px; }
.wf-builder .aw-row.is-hot .aw-run { background: #00CD9C; color: #fff; box-shadow: 0 6px 14px -6px rgba(0, 163, 124, .7); }
.wf-builder .aw-row.is-hot .aw-run svg { animation: awBolt .5s ease-in-out infinite alternate; }
@keyframes awBolt { to { transform: scale(1.25); } }
@container (max-width: 400px) {   /* narrow: the Running badge keeps just its bolt so the workflow names have room */
  .wf-builder .aw-rows { padding: 2px 8px 6px; } .wf-builder .aw-row { gap: 10px; padding: 9px 4px; } .wf-builder .aw-ic { width: 30px; height: 30px; } .wf-builder .aw-ic svg { width: 16px; height: 16px; }
  .wf-builder .aw-txt b { font-size: 12.5px; } .wf-builder .aw-path { font-size: 10.5px; } .wf-builder .aw-run { padding: 6px; font-size: 0; gap: 0; } .wf-builder .aw-run svg { width: 12px; height: 12px; } .wf-builder .aw-head { padding: 12px 14px; } }

/* css/automate.css */
/* ==========================================================================
   Sense Automate product pages. The export hung these rules on its body class au-page; here they sit on main.wf-builder.
   Builds on the HR product page components in product.css. Rule of thumb: Sense purple stays on everything you can click
   (buttons, links); Automate green marks the product (labels, dots, checks, icons, tints, glows).
   ========================================================================== */
.wf-builder {
  --au: #00CD9C;            /* Automate green — fills, icons, dots, glows (2.1:1 on white: never small text on light) */
  --au-soft: #EBFFF7;       /* Automate mint — tinted backgrounds */
  --au-deep: #00A37C;       /* icons on mint */
  --au-ink: #007A5C;        /* green text on light / mint backgrounds (5.2:1 on #EBFFF7) */
  --au-glow: #7DF2D2;       /* green text on dark backgrounds */
  --au-line: rgba(0, 205, 156, .28);
}

/* ---------- shared accents ---------- */
.wf-builder .eyebrow:not(.on-dark) { background: var(--au-soft); color: var(--au-ink); box-shadow: inset 0 0 0 1px var(--au-line); }
.wf-builder .au-dark .eyebrow.on-dark { color: var(--au-glow); box-shadow: inset 0 0 0 1px rgba(0, 205, 156, .35); }
.wf-builder .pd-mod { color: var(--au-ink); }
.wf-builder .pd-mod::before { background: var(--au); }
.wf-builder .pd-bullets svg { background: var(--au-soft); color: var(--au-deep); box-shadow: inset 0 0 0 1px var(--au-line); }
.wf-builder .chip-check { background: var(--au-soft); color: var(--au-deep); }
.wf-builder .pd-frame { background: linear-gradient(160deg, #F3FFFA 0%, #DDF8EC 100%); }
.wf-builder .pd-frame::before { background: repeating-linear-gradient(90deg, rgba(0, 205, 156, .10) 0 56px, transparent 56px 70px); }

/* client SVGs fill the frame inside its padding, whole (a portrait one — Onboarding — would overflow a plain height: 100% in the grid frame) */
.wf-builder .au-frame-img { --pad: clamp(18px, 2.6vw, 36px); }
.wf-builder .au-frame-img img { position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: contain; }   /* the frame's stripe texture only reads behind real (transparent) visuals */

/* ---------- 01 HERO — same purple artwork as the HR overview; the pill above the title is the Core HR eyebrow with the Automate mark ---------- */
/* the mark sits in the pill's own padding: 4px above/below (pill height stays the Core HR 29px), 8px left (user, 6 Oct), 8px to the label */
.wf-builder .au-eyebrow { gap: 8px; padding: 4px 14px 4px 8px; white-space: nowrap; }
.wf-builder .au-eyebrow img { width: 21px; height: 21px; flex-shrink: 0; border-radius: 6px; }
.wf-builder .au-eyebrow-sep { width: 1px; height: 12px; margin: 0 2px; background: var(--line-inv); }
/* the floating pill under the title, in Automate green (dark text: white on #00CD9C fails contrast) */
.wf-builder .au-aside-chip { color: #032A20; background: linear-gradient(0deg, #B3F8E3 0%, #6CEBC6 30%, #3FDDB0 100%);   /* a step lighter than #00CD9C (user, 6 Oct) */
  box-shadow: inset 0 0 30px rgba(255, 255, 255, .45), 0 24px 50px -18px rgba(0, 205, 156, .6); }
.wf-builder .au-hero .hero-copy .cta-group { margin-top: 36px; }
.wf-builder .au-hero .pd-hero-aside { top: -8px; }
/* "Hours sent to payroll": in the empty canvas band above the first workflow block, clear of the Delay settings (user, 6 Oct).
   margin-top % follows the screenshot's width, so it stays in that band at every desktop width (the chips hide below 900px) */
.wf-builder .au-hero .chip-4 { left: 47.6%; right: auto; top: 0; bottom: auto; margin-top: 7.6%; translate: -50% 0; }   /* (No code needed) sits 8px higher; the copy below doesn't move (user, 6 Oct) */

/* ---------- 03 BIG CLAIM — Automate tile + the three value props ---------- */
.wf-builder .au-claim-tile { background: linear-gradient(145deg, #6CF3CF 0%, #00CD9C 48%, #00936F 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -10px 22px rgba(0, 70, 52, .4), 0 34px 60px -18px rgba(0, 163, 124, .6); }
.wf-builder .au-claim-tile svg { width: 46%; height: 46%; filter: drop-shadow(0 4px 8px rgba(0, 70, 52, .35)); }
/* the three value cards: reporting quick-benefit cards (feature.css .ft-bcard + animated stage), tinted Automate mint */
.wf-builder .au-values { margin-top: clamp(48px, 6vw, 88px); text-align: left; }
.wf-builder .ft-bcard { background: linear-gradient(180deg, #E6FBF2 0%, #F3FDF8 60%, #fff 100%); box-shadow: inset 0 0 0 1px rgba(0, 163, 124, .12); }
.wf-builder .ft-bstage { box-shadow: 0 0 0 1px rgba(11, 10, 20, .05), 0 20px 40px -28px rgba(0, 100, 75, .35); }
.wf-builder .ft-bstage::before { background: radial-gradient(rgba(0, 163, 124, .12) 1px, transparent 1.2px) 0 0 / 16px 16px; }

/* ---------- 04a stacking panels — Automate themes ---------- */
/* every panel's visual sits on the site's card background (cards-image-bg), as on the HR pages — animated minis and the static Connect image alike */
.wf-builder .pd-stack-card .pd-stack-visual .pd-frame { background: #0A0916 url("/assets/images/pages/homepage/ta-card-bg.webp") center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.wf-builder .pd-stack-card .pd-stack-visual .pd-frame::before { display: none; }
@media (max-width: 600px) {   /* phones: a slimmer frame + workflow card so the animated cards keep their text on one line */
  .wf-builder .pd-stack-visual .pd-frame:has(> .mi) { padding: 14px; }
  .wf-builder .pd-stack-visual .mi { border-width: 5px; }
  .wf-builder .pd-stack-visual .mi-au { padding: 16px 14px 28px; }
}
.wf-builder .pd-stack-card.is-dark .pd-stack-inner { background: radial-gradient(70% 80% at 100% 0%, rgba(0, 205, 156, .30), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(99, 74, 252, .28), transparent 65%), #0B0A14; }
.wf-builder .pd-stack-card.is-dark .pd-mod { color: var(--au-glow); }
.wf-builder .pd-stack-card.is-dark .pd-mod::before { background: var(--au); }
.wf-builder .pd-stack-card.is-dark .pd-bullets svg { background: rgba(0, 205, 156, .16); color: var(--au-glow); box-shadow: none; }
.wf-builder .pd-stack-card.is-mint .pd-stack-inner { background: radial-gradient(90% 70% at 85% 110%, rgba(0, 205, 156, .22), transparent 60%), var(--au-soft); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--au-line), 0 -20px 60px -30px rgba(0, 70, 52, .3); }
.wf-builder .pd-stack-card.is-mint p { color: var(--text-2); }
.wf-builder .pd-stack-card.is-mint .pd-bullets svg { background: #fff; }
.wf-builder .pd-stack-card.is-purple .pd-mod { color: #DCD6FF; }
.wf-builder .pd-stack-card.is-purple .pd-mod::before { background: var(--au); }
.wf-builder .pd-stack-card.is-purple .pd-bullets svg { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }

/* ---------- 04b dark panel — green dust in place of the purple ---------- */
.wf-builder .au-dark::after { background:
  radial-gradient(48% 46% at 100% 0%, rgba(0, 205, 156, .26), transparent 70%),
  radial-gradient(44% 50% at 0% 100%, rgba(99, 74, 252, .34), transparent 70%); }
.wf-builder .au-dark .pd-duo-item .pd-mod, .wf-builder .au-dark .pd-dark .pd-mod { color: var(--au-glow); }
.wf-builder .au-dark .pd-mod::before { background: var(--au); }
/* Academy + managed service animations: on a soft green glow (not the HR overview's purple card background), same height at every width */
.wf-builder .au-dark .pd-duo-visual:has(.mi) { height: 300px; background: radial-gradient(120% 90% at 50% 0%, rgba(0, 205, 156, .24), rgba(0, 205, 156, .03) 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

/* ---------- 04c library + System Connector bento ---------- */
.wf-builder .au-bento { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.wf-builder .au-tile-lib { background: #FAFAFC; box-shadow: inset 0 0 0 1px rgba(11, 10, 20, .07); }   /* light grey, not mint (user, 6 Oct) */
.wf-builder .au-wfs { list-style: none; margin: 28px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wf-builder .au-wf { display: flex; align-items: center; gap: 12px; padding: 11px 14px 11px 11px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 10, 20, .06);
  font: 500 14.5px/1.25 var(--font-body); color: var(--text); transition: box-shadow .25s, transform .25s var(--ease-out), color .25s; }
.wf-builder .au-wf-n { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: #F2F2F6; color: var(--au-ink); font: 600 12px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.wf-builder .au-wf svg { width: 15px; height: 15px; margin-left: auto; flex-shrink: 0; color: var(--text-3); transition: transform .25s var(--ease-out), color .25s; }
.wf-builder .au-wf:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand-hover); transform: translateY(-2px); }
.wf-builder .au-wf:hover svg { color: var(--brand); transform: translateX(3px); }
.wf-builder .au-tile-visual { width: 100%; margin-top: 26px; aspect-ratio: 1000 / 640; border-radius: 20px; overflow: hidden; }
@media (max-width: 1024px) { .wf-builder .au-bento { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .wf-builder .au-wfs { grid-template-columns: 1fr; } }

/* ---------- 05 CTA — Meet card in Automate mint ---------- */
.wf-builder .au-meet { background: linear-gradient(180deg, #F7FFFB 0%, var(--au-soft) 55%, #D8FAEB 100%); box-shadow: inset 0 0 0 1px var(--au-line); }
.wf-builder .au-meet::before { background: repeating-linear-gradient(90deg, rgba(0, 205, 156, .11) 0 72px, transparent 72px 89px) center top; }
.wf-builder .au-meet::after { background: radial-gradient(38% 60% at 0% 100%, rgba(0, 205, 156, .34), transparent 70%), radial-gradient(38% 60% at 100% 100%, rgba(0, 205, 156, .34), transparent 70%); }   /* green in both corners: no purple (user, 6 Oct) */
.wf-builder .au-meet .ami-meet-window { box-shadow: 0 40px 100px -30px rgba(0, 100, 75, .3), inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px rgba(0, 163, 124, .14); }

/* ===== PAGE ADDITIONS (not in the export) */

/* Phones: a zero minimum keeps a stacking card's single column inside the card, however wide its mock-up (from the Core HR page). */
@media (max-width: 900px) { .wf-builder .pd-stack-inner { grid-template-columns: minmax(0, 1fr); } }
/* The same for the Support from specialists cards: the export's 1fr let their mock-ups hold the column at 377 px, so below about
   380 px both cards ran past the dark panel's edge and were cut off (in the design export too). */
@media (max-width: 900px) { .wf-builder .pd-duo { grid-template-columns: minmax(0, 1fr); } }
/* System Connector orbit: the app icons scale with the orbit (13.5cqw), but the export's 50 px floor stopped that below a 370 px
   orbit, so on phones the outer icons swung up to 8 px past the frame's edge. A 28 px floor keeps them 3 px or more inside at
   every width; from a 370 px orbit up nothing changes. */
.wf-builder .au-app { width: clamp(28px, 13.5cqw, 68px); }

/* ZOOM FIT: on narrow screens these mock-ups (each with a natural width its content doesn't shrink below) were cut off by their
   frames, in the design export too. Zoom draws each one smaller (its px sizes, not its % width), just enough to fit with 8 px to
   spare. Measured on 2026-10-08 from 300 to 1440 px with check/sweep.mjs, reduced motion; maintained by hand from here on. */
@supports (zoom: 1) {
  @media (max-width: 309px) { .wf-builder .mi[data-mini="au2"] { zoom: 0.95; } }
  @media (max-width: 309px) { .wf-builder .mi[data-mini="ob"] { zoom: 0.95; } }
  @media (max-width: 309px) { .wf-builder .mi[data-mini="auac"] { zoom: 0.6; } }
  @media (min-width: 310px) and (max-width: 329px) { .wf-builder .mi[data-mini="auac"] { zoom: 0.65; } }
  @media (min-width: 330px) and (max-width: 339px) { .wf-builder .mi[data-mini="auac"] { zoom: 0.7; } }
  @media (min-width: 340px) and (max-width: 358px) { .wf-builder .mi[data-mini="auac"] { zoom: 0.75; } }
  @media (min-width: 359px) and (max-width: 369px) { .wf-builder .mi[data-mini="auac"] { zoom: 0.8; } }
  @media (min-width: 370px) and (max-width: 379px) { .wf-builder .mi[data-mini="auac"] { zoom: 0.85; } }
  @media (min-width: 380px) and (max-width: 399px) { .wf-builder .mi[data-mini="auac"] { zoom: 0.9; } }
  @media (min-width: 400px) and (max-width: 412px) { .wf-builder .mi[data-mini="auac"] { zoom: 0.95; } }
  @media (max-width: 309px) { .wf-builder .mi[data-mini="aums"] { zoom: 0.7; } }
  @media (min-width: 310px) and (max-width: 329px) { .wf-builder .mi[data-mini="aums"] { zoom: 0.75; } }
  @media (min-width: 330px) and (max-width: 339px) { .wf-builder .mi[data-mini="aums"] { zoom: 0.8; } }
  @media (min-width: 340px) and (max-width: 349px) { .wf-builder .mi[data-mini="aums"] { zoom: 0.85; } }
  @media (min-width: 350px) and (max-width: 358px) { .wf-builder .mi[data-mini="aums"] { zoom: 0.9; } }
  @media (min-width: 359px) and (max-width: 373px) { .wf-builder .mi[data-mini="aums"] { zoom: 0.95; } }
}
/* ZOOM FIT: END */

/* Keyboard focus rings (from the Core HR page; WCAG 2.4.7, 1.4.11). The export's lighter ring for dark surfaces targets .hero, a
   class this page's hero (.pd-hero) doesn't carry. */
/* hero: the buttons sit on the dark artwork, where brand purple is too dark to see */
.wf-builder .pd-hero :focus-visible { outline-color: var(--brand-soft); }
/* System Connector tile: "See all integrations" sits flush under the orbit, a positioned box with an opaque background that
   painted over the top of the link's ring; positioning the link (later in the page) paints it, ring and all, above the orbit. */
.wf-builder .au-tile-conn .pd-more { position: relative; }
