/* Integration pages (sage-50-payroll.html; later integration pages add their sections to this file). Converted once on 2026-11-12 from the design export sense-integration-sage-50-payroll-share.html (its tokens, base, sections, agents, product, minis, feature, shift and integration; nav.css is left to nav-footer-new.css), scoped to main.integration and trimmed to the rules these pages can match; maintained by hand from here on. */

/* ===== PAGE-LEVEL RULES (html, body, the shared header): START: every other rule is scoped to main.integration */

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) */
/* Light hero (body.hero-light): the overlay header starts with dark text and frosts on scroll as usual (as hr-feature.css). */
body.hero-light .nav.nav--overlay:not(.is-scrolled) { color: var(--text); }
body.hero-light .nav.nav--overlay:not(.is-scrolled) .logo { color: var(--brand); }
body.hero-light .nav.nav--overlay:not(.is-scrolled) .nav-link:hover,
body.hero-light .nav.nav--overlay:not(.is-scrolled) .nav-item.is-open > .nav-link { background: rgba(11, 10, 20, .06); }

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

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

.integration .container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.integration .section { padding-block: var(--section-y); }

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

.integration .lede { font-size: var(--fs-lede); color: var(--text-2); line-height: 1.62; }

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

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

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

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

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

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

/* ---------- shared heads ---------- */
.integration .center-head { max-width: 780px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.integration .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
   ========================================================================== */

.js .integration .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; } }

/* ==========================================================================
   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.
   ========================================================================== */
.integration .ta-frame { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.integration .ta-frame.is-active { opacity: 1; transform: none; }
.integration .ta-frame:nth-child(1) img { max-width: 80%; max-height: 80%; }
.integration .ta-frame:nth-child(2) img { box-shadow: none; border-radius: 0; }
.integration .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); }

/* ==========================================================================
   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) {
  .js .integration .hero-anim { opacity: 1; transform: none; }
}

/* 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 */
.integration .ami-meet-wrap { position: relative; }
.integration .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; }
.integration .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%); }
.integration .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%); }
.integration .ami-meet-copy { max-width: 720px; margin: 0 auto; }
.integration .ami-meet-copy h2 { color: var(--text); }
.integration .ami-meet-copy p { margin: 18px auto 0; color: var(--text-2); font-size: var(--fs-lede); max-width: 620px; }
.integration .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 */
.integration .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); }
.integration .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) {
  .integration .ami-meet-shot { height: 220px; }
}

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

/* floating purple card, as the AMI page header chip (agents.css .ami-chip + qzFloat) */
.integration .pd-play { position: absolute; left: 50%; top: 42%; z-index: 2; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 8px; border-radius: 100px;
  background: rgba(11, 10, 20, .72); color: #fff; font: 500 15px/1 var(--font-body); box-shadow: 0 20px 40px -12px rgba(11, 10, 20, .5), inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .25s var(--ease-out), background-color .25s; }
.integration .pd-play:hover { transform: translate(-50%, -50%) scale(.97); background: rgba(11, 10, 20, .85); }
.integration .pd-play-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); box-shadow: 0 0 0 6px rgba(99, 74, 252, .25); animation: pdRing 2s ease-out infinite; }
.integration .pd-play-ic svg { width: 16px; height: 16px; margin-left: 2px; }
@keyframes pdRing { 0% { box-shadow: 0 0 0 0 rgba(123, 92, 255, .6); } 100% { box-shadow: 0 0 0 14px rgba(123, 92, 255, 0); } }
@media (max-width: 767px) {
  .integration .pd-play { height: 44px; padding: 0 16px 0 6px; font-size: 13px; gap: 8px; top: 50%; }
  .integration .pd-play-ic { width: 32px; height: 32px; }
}

/* 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) */
.integration .pd-stack { position: relative; margin-top: clamp(48px, 5vw, 72px); }
.integration .pd-stack-card { --p: 0; position: sticky; top: calc(96px + var(--i) * 22px); margin-bottom: 36px; }
.integration .pd-stack-card:last-child { margin-bottom: 0; }
.integration .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); }
.integration .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 */
.integration .pd-stack-copy { position: relative; z-index: 1; max-width: 500px; }
.integration .pd-stack-copy h3 { margin-top: 18px; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.integration .pd-stack-copy p { margin-top: 18px; font-size: 17px; line-height: 1.65; }
.integration .pd-stack-visual { position: relative; z-index: 1; }
.integration .pd-stack-visual .pd-frame { aspect-ratio: 1.2; }
.integration .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 */
.integration .pd-stack-card .pd-stack-visual .pd-frame:has(> .mi)::before { display: none; }
/* themes */
.integration .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; }
.integration .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; }
.integration .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); }
.integration .pd-stack-card.is-purple p, .integration .pd-stack-card.is-dark p { color: rgba(255, 255, 255, .78); }
.integration .pd-stack-card.is-light p { color: var(--text-2); }

.integration .pd-stack-card.is-purple .pd-bullets li, .integration .pd-stack-card.is-dark .pd-bullets li { color: #fff; }
.integration .pd-stack-card.is-purple .pd-bullets svg { background: rgba(255, 255, 255, .18); color: #fff; }
.integration .pd-stack-card.is-dark .pd-bullets svg { background: rgba(123, 92, 255, .22); color: var(--brand-soft); }
.integration .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); }
.integration .pd-stack-card.is-purple .pd-frame::before { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 56px, transparent 56px 70px); }
.integration .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); }
.integration .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 */
  .integration .pd-stack-card { position: relative; top: auto; margin-bottom: 20px; }
  .integration .pd-stack-inner { grid-template-columns: 1fr; min-height: 0; transform: none; }
  .integration .pd-stack-inner::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .integration .pd-stack-inner { transform: none; } .integration .pd-stack-inner::after { display: none; } }

/* 04a spotlight rows — text + bullets | framed visual, alternating */
.integration .pd-bullets { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.integration .pd-bullets li { display: flex; align-items: center; gap: 12px; font: 500 15px/1.3 var(--font-body); color: var(--text); }
.integration .pd-bullets svg { width: 22px; height: 22px; flex-shrink: 0; padding: 4px; border-radius: 7px; background: var(--brand-10); color: var(--brand); }
.integration .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; }
.integration .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%); }
.integration .pd-frame picture { display: block; width: 100%; height: 100%; }
.integration .pd-frame img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(49, 30, 160, .18)); }

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

@media (prefers-reduced-motion: reduce) {
  .integration .pd-play-ic { animation: none; }
}

/* 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.
   ========================================================================== */
.integration .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); }
.integration .mi svg { display: block; }
.integration .pd-frame .mi { margin: auto; }
.integration .pd-frame .mi img { filter: none; }   /* not the frame's product-screenshot image rules */

/* cursor (moved by js/minis.js) */
.integration .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)); }
.integration .mi.is-cursor .mi-cursor { opacity: 1; }
.integration .mi-cursor.is-press svg { transform: scale(.82); transition: transform .12s; }
.integration .mi-cursor svg { width: 22px; height: 22px; transition: transform .2s; transform-origin: 20% 15%; }

/* toast */
.integration .mi-toast { position: absolute; left: 50%; bottom: 18px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 12px; background: #fff; white-space: nowrap;
  font: 500 12.5px/1 var(--font-body); color: var(--text); box-shadow: 0 16px 34px -12px rgba(33, 18, 140, .45), 0 0 0 1px rgba(11, 10, 20, .05);
  opacity: 0; transform: translate(-50%, 10px) scale(.96); transition: opacity .35s, transform .45s var(--ease-out); }
.integration .mi-toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.integration .mi-toast-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #E5FDF0; color: #007C66; }
.integration .mi-toast-ic svg { width: 12px; height: 12px; }

/* ---------- Employee records (230×338 export, shown ~1.3×) ---------- */
.integration .mi-er { width: min(300px, 100%); padding: 20px 20px 10px; border-radius: 16px; }
.integration .mi-er-top { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 14px; }
.integration .mi-er-status { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; background: #E5FDF0; color: #007C66; font: 500 12px/1 var(--font-body); }
.integration .mi-er-status i { width: 6px; height: 6px; border-radius: 50%; background: #1BCAA7; box-shadow: 0 0 0 0 rgba(27, 202, 167, .6); animation: miPulse 1.8s ease-out infinite; }
@keyframes miPulse { to { box-shadow: 0 0 0 7px rgba(27, 202, 167, 0); } }
.integration .mi-er-av { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: #D7F3FD; margin-bottom: 8px; }
.integration .mi-er-av img { width: 100%; height: 100%; object-fit: cover; }
.integration .mi-er-name { font: 500 19px/1.2 var(--font-body); color: #2C2853; }
.integration .mi-er-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; line-height: 1.35; color: #2C2853; }
.integration .mi-er-meta svg { width: 14px; height: 14px; color: #A3A2B1; }
.integration .mi-er-rows { list-style: none; margin: 0; padding: 0; }
.integration .mi-er-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid #F5F5F5; font-size: 14px; transition: background-color .35s; border-radius: 8px; }
.integration .mi-er-k { font-weight: 600; color: #46516A; }
.integration .mi-er-v { position: relative; display: inline-flex; align-items: center; gap: 6px; color: #5F6C87; }
.integration .mi-er-val { display: inline-block; transition: transform .35s var(--ease-out), opacity .35s; }
.integration .mi-er-row.is-hot { background: #F8F9FF; box-shadow: inset 0 0 0 1px rgba(99, 74, 252, .18); }
.integration .mi-er.is-pre .mi-er-row { opacity: 0; transform: translateY(8px); }
.integration .mi-er .mi-er-row { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), background-color .35s; }

@media (prefers-reduced-motion: reduce) {
  .integration .mi-er-status i { animation: none; }
}

/* frames holding a mini-UI size to it (the fixed aspect ratio would crop the taller widgets) */
.integration .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 */
.integration .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); }
.integration .pd-stack-visual .mi-er { border-radius: 24px; }

/* ---------- Payroll — clock in → verified → payroll (Payroll.svg 394×497) ---------- */
.integration .mi-py { width: min(380px, 100%); padding: 14px; border-radius: 18px; display: flex; flex-direction: column; align-items: stretch; background: #FBFBFD; }
.integration .mi-py-step { padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #EEF0F6; transition: box-shadow .4s, opacity .4s, transform .45s var(--ease-out); }
.integration .mi-py-top { display: flex; align-items: center; gap: 10px; }
.integration .mi-py-top b { flex: 1; font: 500 14.5px/1 var(--font-body); color: #3F4147; }
.integration .mi-py-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 13px/1 var(--font-body); }
.integration .mi-py-step.is-green .mi-py-n { background: #E8F7E4; color: #2E7D32; } .integration .mi-py-step.is-purple .mi-py-n { background: #ECE8FF; color: #4931DC; } .integration .mi-py-step.is-blue .mi-py-n { background: #E7F0FF; color: #2463D1; }
.integration .mi-py-auto { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 6px; background: #E5FDF0; color: #007C66; font: 500 11px/1 var(--font-body); }
.integration .mi-py-auto svg { width: 11px; height: 11px; }
.integration .mi-py-sub { display: flex; gap: 16px; margin-top: 9px; padding-left: 38px; font-size: 11.5px; color: #5F6C87; }
.integration .mi-py-sub span { display: inline-flex; align-items: center; gap: 5px; }
.integration .mi-py-sub svg { width: 13px; height: 13px; }
.integration .mi-py-step.is-green .mi-py-sub svg { color: #0A8F6A; } .integration .mi-py-step.is-purple .mi-py-sub svg { color: #7358F8; } .integration .mi-py-step.is-blue .mi-py-sub svg { color: #2F80ED; }
.integration .mi-py-arrow { align-self: center; width: 16px; height: 16px; margin: 5px 0; color: #8A8FA3; transition: color .3s, transform .4s; }
.integration .mi-py-save { padding: 12px 14px; border-radius: 12px; background: #E9F9D8; box-shadow: inset 0 0 0 1px #D2F0B8; text-align: center; transition: opacity .45s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.integration .mi-py-save b { display: inline-flex; align-items: center; gap: 7px; font: 500 13.5px/1.2 var(--font-body); color: #22361A; }
.integration .mi-py-save b svg { width: 16px; height: 16px; }
.integration .mi-py-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 9px; }
.integration .mi-py-stats span { display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; color: #3E5A30; }
.integration .mi-py-stats span + span { border-left: 1px solid #C9E6B0; }
.integration .mi-py-stats em { font: 500 14px/1 var(--font-body); font-style: normal; color: #22361A; }
/* sequence states (js/minis.js) */
.integration .mi-py.is-seq .mi-py-step { opacity: .45; transform: scale(.98); }
.integration .mi-py.is-seq .mi-py-step.is-lit { opacity: 1; transform: none; box-shadow: 0 12px 26px -14px rgba(49, 30, 160, .45), 0 0 0 1.5px #B8ADFF; }
.integration .mi-py.is-seq .mi-py-step.is-past { opacity: 1; transform: none; }
.integration .mi-py.is-seq .mi-py-arrow.is-lit { color: #634AFC; transform: translateY(2px); }
.integration .mi-py.is-seq .mi-py-save { opacity: 0; transform: translateY(10px) scale(.96); }
.integration .mi-py.is-seq .mi-py-save.is-on { opacity: 1; transform: none; }

/* ---------- inside the home T&A frames: undo the screenshot rules, centre, glass border ---------- */
.integration .ta-frame:has(> .mi) { display: grid; place-items: center; }
.integration .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; }

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

.integration .pd-stack-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
@media (max-width: 900px) { .integration .pd-stack-inner { grid-template-columns: minmax(0, 1fr); } }
/* done buttons stay purple; a green toast confirms instead */
.integration .mi-toast.is-green { background: #1BCAA7; color: #fff; box-shadow: 0 16px 34px -12px rgba(10, 143, 106, .55); }
.integration .mi-toast.is-green .mi-toast-ic { background: rgba(255, 255, 255, .25); color: #fff; }

/* ===== 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. ===== */
.integration .mi { border-radius: 16px !important; }
.integration .pd-stack-visual .mi, .integration .ft-stage .mi { border-radius: 24px !important; }

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

/* personal details (personal details.svg 797×476, shown ~0.75×) */
.integration .mi-pd { display: flex; width: min(600px, 100%); height: 358px; border-radius: 12px; overflow: hidden; background: #FDFCFF; }
.integration .mi-pd-side { position: relative; flex: 0 0 34%; padding: 20px 12px; background: #EFF1FF; box-shadow: inset -1px 0 0 #E4E7FB; }
.integration .mi-pd-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.integration .mi-pd-side li { padding: 11px 16px; border-radius: 6px; font-size: 13px; color: #2C2853; white-space: nowrap; }
.integration .mi-pd-side li.is-on { background: #DCDFFF; color: #4931DC; font-weight: 500; }
.integration .mi-pd-tog { position: absolute; right: -9px; top: 18px; z-index: 1; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #634AFC; color: #fff; } .integration .mi-pd-tog svg { width: 100%; height: 100%; }
.integration .mi-pd-main { flex: 1; min-width: 0; padding: 26px 30px 0 40px; }
.integration .mi-pd-h { display: block; text-align: center; font: 600 22px/1.2 var(--font-body); color: #2C2853; }
.integration .mi-pd-f { margin-top: 26px; } .integration .mi-pd-f + .mi-pd-f { margin-top: 22px; }
.integration .mi-pd-l { display: flex; justify-content: space-between; font-size: 12.5px; } .integration .mi-pd-l b { font-weight: 500; color: #2C2853; } .integration .mi-pd-l span { color: #6B6D80; }
.integration .mi-pd-in { display: flex; align-items: center; justify-content: space-between; height: 34px; margin-top: 8px; padding: 0 12px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px #CFD3FF;
  font-size: 13px; color: #2C2853; transition: box-shadow .25s; }
.integration .mi-pd-in svg { width: 14px; height: 14px; color: #6B6D80; }
.integration .mi-pd-in.is-focus { box-shadow: inset 0 0 0 1.5px #634AFC, 0 0 0 3px rgba(99, 74, 252, .14); }
.integration .mi-pd-in.is-focus [data-type]::after { content: ''; display: inline-block; width: 1px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #2C2853; animation: miCaret 1s steps(1) infinite; }
@keyframes miCaret { 50% { opacity: 0; } }
@media (max-width: 600px) {   /* phones: the account menu folds away, the form takes the card */
  .integration .mi-pd-side { display: none; }
  .integration .mi-pd-main { padding: 22px 20px 0; }
  .integration .mi-pd-h { font-size: 19px; }
}
.integration .pd-stack-visual .mi-pd { border-radius: 22px; }
@media (max-width: 600px) {   /* phones: thinner frame and glass border around the self-service panels, more room for the UI */
  .integration .pd-frame:has(> .mi-pd) { padding: 14px; }
  .integration .pd-stack-visual .mi-pd { border-width: 5px; border-radius: 18px; }
}
@media (max-width: 360px) {   /* narrowest phones: dates, table rows and buttons stack */

  .integration .mi-pd-main { padding: 18px 14px 0; }
}

/* ==========================================================================
   Recruitment: Integrations page (tools/product/minis.py integrations_hub … benefit_email). ATS palette; connected / synced states in the exports' mint
   ========================================================================== */
.integration :is(.b10-logo, .b10-av) img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Hireful card (b10): a hired applicant travels from hireful to Sense HR */
.integration .mi-b10 { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.integration .b10-flow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.integration .b10-app { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 108px; padding: 14px 8px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #EFEEF3, 0 12px 24px -18px rgba(60, 20, 80, .35); text-align: center; }
.integration .b10-logo { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; } 
.integration .b10-app b { font: 600 13px/1.2 var(--font-body); color: #393940; } .integration .b10-app > span:last-child { font-size: 10.5px; color: #6B6D80; }   /* the caption, not the logo tile */
.integration .b10-st { display: grid; } .integration .b10-st > span { grid-area: 1 / 1; transition: opacity .3s; } .integration .b10-st .is-on { color: #007C66; font-weight: 500; opacity: 0; }
.integration .mi-b10.is-done .b10-st .is-off { opacity: 0; } .integration .mi-b10.is-done .b10-st .is-on { opacity: 1; }
.integration .b10-wire { position: relative; height: 34px; } .integration .b10-wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed #E6B8E9; }
.integration .b10-pkt { position: absolute; left: 0; top: 50%; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 100px; background: #fff; white-space: nowrap;
  box-shadow: inset 0 0 0 1.5px #B000BA, 0 8px 18px -10px rgba(152, 2, 160, .5); transform: translate(var(--x, 0px), -50%); transition: transform 1.4s cubic-bezier(.5, 0, .2, 1), opacity .3s; }
.integration .b10-pkt b { font: 500 11.5px/1 var(--font-body); color: #393940; }
.integration .b10-av { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; }
.integration .mi-b10.is-done .b10-pkt { opacity: 0; }

@container (max-width: 420px) { .integration .b10-app { width: 88px; padding: 12px 6px 10px; } .integration .b10-pkt b { display: none; } .integration .b10-pkt { padding: 3px; } }

/* ==========================================================================
   Small and mid-sized businesses (user, 26 Oct) — sms: the UK support chat; sma: AMI's three abilities
   ========================================================================== */

/* employee record rows (user, 26 Oct): the divider is its own straight line, so the row's rounded highlight no longer curves it; the highlight reaches past the
   text on both sides */
.integration .mi-er-row { border-top: 0; margin: 0 -14px; padding-left: 24px; padding-right: 18px; }   /* more room inside the highlight, the text 24px in from its left edge (user, 26 Oct) */
.integration .mi-er-row::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: #F0F1F4; }
.integration .mi-er-row.is-hot::before { opacity: 0; }
/* AMI's tabs: each title on one line */
@media (max-width: 600px) { .integration .mi-er-row { margin: 0 -10px; padding-left: 18px; padding-right: 12px; } .integration .mi-er-row::before { left: 10px; right: 10px; } .integration .mi-er-k { white-space: nowrap; } }   /* phones: labels keep one line */

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

/* ---------- 01 HERO ---------- */
.integration .ft-hero { position: relative; isolation: isolate; padding: calc(var(--frame-inset) + 132px) 0 clamp(64px, 7vw, 104px); }
.integration .ft-hero-bg { position: absolute; z-index: -1; inset: var(--frame-inset) var(--frame-inset) 0; overflow: hidden; border-radius: var(--r-panel); background: #F7F6FB; }
.integration .ft-hero-bg picture, .integration .ft-hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.integration .ft-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.integration .ft-hero .container { padding-inline: calc(var(--frame-inset) + clamp(16px, 3.4vw, 44px)); }
.integration .ft-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.integration .ft-hero-copy h1 { color: var(--ink); font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.04em; }
.integration .ft-hero-copy .lede { margin-top: 24px; max-width: 540px; color: var(--text-2); }
.integration .ft-hero-copy .cta-group { margin-top: 36px; justify-content: flex-start; }
/* visual: glass window (as the hero product screen) holding the video placeholder */
.integration .ft-play { top: auto; bottom: 22px; }
.integration .ft-play:hover { transform: translate(-50%, 0) scale(.97); }
.integration .ft-play { transform: translate(-50%, 0); }
@media (max-width: 900px) {
  .integration .ft-hero { padding-top: calc(var(--frame-inset) + 108px); }
  .integration .ft-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }   /* minmax: a wide visual can't push the column past the screen */
  .integration .ft-hero-bg img { object-position: 85% 50%; }
}
@media (max-width: 767px) { .integration .ft-hero-copy .cta-group { width: 100%; flex-direction: column; } .integration .ft-hero-copy .cta-group .btn { width: 100%; } }

/* ---------- 02 FEATURES — stacking panels: buttons, placeholders ---------- */
.integration .ft-features { padding-top: clamp(56px, 6vw, 88px); }
.integration .pd-stack-btn { margin-top: 26px; }
.integration .pd-stack-btn svg { width: 15px; height: 15px; }

/* ---------- 03 WHAT'S INSIDE — 3×3 grid (pay-co feature set) ---------- */
.integration .pd-tile9-ic { background: var(--brand-10); color: var(--brand); box-shadow: none; }

/* ---------- 05 EXPLORE MORE — linked cards ---------- */
.integration .ft-connects .wfp-more-head h2 { font-size: var(--fs-h2); }
.integration .pd-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.integration .pd-link-card { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 26px 26px 28px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-sm); color: var(--text);
  transition: transform .35s var(--ease-out), box-shadow .35s; }
.integration .pd-link-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--brand), var(--shadow-md); }
.integration .pd-link-body { display: flex; flex-direction: column; gap: 8px; }
.integration .pd-link-body b { font: 500 20px/1.25 var(--font-display); letter-spacing: -0.015em; }
.integration .pd-link-body span { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.integration .pd-link-go { position: absolute; right: 22px; top: 26px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-10); color: var(--brand); transition: background-color .3s, color .3s, transform .3s var(--ease-out); }
.integration .pd-link-go svg { width: 15px; height: 15px; }
.integration .pd-link-card:hover .pd-link-go { background: var(--brand); color: #fff; transform: translate(2px, -2px); }
@media (max-width: 1024px) { .integration .pd-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .integration .pd-links { grid-template-columns: 1fr; } }
.integration .ft-connects .wfp-more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

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

/* ---------- hero stage: animated employee record + floating purple cards (agent pages' prompt card, qzFloat) ---------- */
.integration .ft-stage { position: relative; display: grid; place-items: center; min-height: 560px; padding: 40px 0 72px; }
.integration .ft-stage .mi-er { width: 340px; border: 8px solid rgba(255, 255, 255, .55); background-clip: padding-box; border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(99, 74, 252, .12), 0 50px 90px -40px rgba(49, 30, 160, .5); }
.integration .ft-chips { position: absolute; inset: 0; pointer-events: none; }
.integration .ft-chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 18px; color: #fff; white-space: nowrap;
  font: 500 15px/1.2 var(--font-body);
  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; }
.integration .ft-chip-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.integration .ft-chip-ic svg { width: 14px; height: 14px; }
.integration .ft-chip-1 { left: -2%; top: 16%; }
.integration .ft-chip-2 { right: -4%; top: 38%; animation-delay: -1.1s; animation-duration: 3.6s; }
.integration .ft-chip-3 { left: 4%; bottom: 20%; animation-delay: -2.2s; animation-duration: 3.4s; }
/* entrance: each card lands in turn */
.js .integration .ft-chip { opacity: 0; scale: .9; transition: opacity .6s var(--ease-out), scale .6s var(--ease-out); }
.js .integration .ft-stage.is-in .ft-chip { opacity: 1; scale: 1; }
.integration .ft-stage.is-in .ft-chip-2 { transition-delay: .25s; } .integration .ft-stage.is-in .ft-chip-3 { transition-delay: .5s; }
.integration .ft-stage .ft-play { top: auto; bottom: 8px; transform: translate(-50%, 0); }
.integration .ft-stage .ft-play:hover { transform: translate(-50%, 0) scale(.97); }
@media (max-width: 1100px) { .integration .ft-chip { font-size: 13.5px; } .integration .ft-chip-1 { left: -4%; } .integration .ft-chip-2 { right: -6%; } }
@media (max-width: 900px) { .integration .ft-stage { min-height: 0; } .integration .ft-chip-1 { left: 0; } .integration .ft-chip-2 { right: 0; } .integration .ft-chip-3 { left: 2%; } }
@media (max-width: 600px) {
  .integration .ft-stage { padding-bottom: 64px; }
  .integration .ft-stage .mi-er { width: 100%; max-width: 320px; }
  .integration .ft-chip { font-size: 12.5px; padding: 9px 13px 9px 9px; border-radius: 14px; }
  .integration .ft-chip-ic { width: 22px; height: 22px; }
  .integration .ft-chip-1 { left: -8px; top: 6%; } .integration .ft-chip-2 { right: -8px; top: 42%; } .integration .ft-chip-3 { left: -8px; bottom: 16%; }
}
@media (prefers-reduced-motion: reduce) { .integration .ft-chip { animation: none; } .js .integration .ft-chip { opacity: 1; scale: 1; } }

/* hero cards: left / right / left around the record, clear of it (wide screens); a row under it on narrower ones */
@media (min-width: 1440px) {
  .integration .ft-hero-copy .lede { max-width: 470px; }
  .integration .ft-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
  .integration .ft-stage { padding: 56px 0 84px; }
  .integration .ft-stage .mi-er { width: 300px; }
  .integration .ft-chip { font-size: 13.5px; padding: 10px 14px 10px 10px; }
  .integration .ft-chip-1 { left: auto; right: calc(50% + var(--rec-half, 150px) + 12px); top: 15%; }
  .integration .ft-chip-2 { left: calc(50% + var(--rec-half, 150px) + 12px); right: auto; top: 44%; }
  .integration .ft-chip-3 { left: auto; right: calc(50% + var(--rec-half, 150px) - 8px); top: auto; bottom: 25%; }   /* 20px further right than chip 1: overlaps the record slightly */
}
@media (max-width: 1439px) {
  .integration .ft-stage { grid-template-columns: minmax(0, 1fr); row-gap: 30px; padding-bottom: 80px; }
  .integration .ft-stage .mi-er { grid-row: 1; }
  .integration .ft-chips { position: static; inset: auto; grid-row: 2; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 12px; }
  .integration .ft-chip { position: relative; left: auto; right: auto; top: auto; bottom: auto; font-size: 13.5px; }
  .integration .ft-stage .ft-play { grid-column: 1; }
}
@media (max-width: 1439px) { .integration .ft-chip { animation-name: ftFloatSm; } }
@keyframes ftFloatSm { from { translate: 0 -4px; rotate: -1deg; } to { translate: 0 5px; rotate: .8deg; } }

/* ===== Payroll (page 11) ===== */
/* hero: the Payroll.svg mini (clock in → verified → payroll) in the employee-record frame, until the hero export arrives */
.integration .ft-stage .mi-py { grid-column: 1; grid-row: 1; width: 380px; border: 8px solid rgba(255, 255, 255, .55); background-clip: padding-box; border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(99, 74, 252, .12), 0 50px 90px -40px rgba(49, 30, 160, .5); }
@media (max-width: 1439px) { .integration .ft-stage .mi-py { grid-row: 1; } }
@media (max-width: 600px) { .integration .ft-stage .mi-py { width: 100%; max-width: 380px; } }
@media (min-width: 1440px) {
  .integration .ft-hero-grid:has(.mi-py) { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 24px; }
  .integration .ft-hero-grid:has(.mi-py) .ft-hero-copy h1 { font-size: 54px; }
  .integration .ft-hero-grid:has(.mi-py) .ft-hero-copy .lede { max-width: 540px; }
  .integration .ft-stage:has(.mi-py) { --rec-half: 198px; margin-right: 40px; }
  .integration .ft-stage:has(.mi-py) .ft-chip { font-size: 12.5px; padding: 9px 12px 9px 9px; gap: 8px; }
  .integration .ft-stage:has(.mi-py) .ft-chip-ic { width: 22px; height: 22px; }
  .integration .ft-stage:has(.mi-py) .ft-chip-2 { left: calc(50% + var(--rec-half) - 22px); top: 47%; animation-name: ftFloatSm; }
}

/* css/shift.css */
/* ==========================================================================
   Shift, site and field teams pages (body.shift-page): sense-shift-*.html (tools/product/gen_shift_*.py).
   The ATS feature-page layout (css/feature.css) with blue as the menu's accent, the way ATS uses magenta and the HR pages purple (user, 12 Oct).
   Rule of thumb, as ATS and Automate: Sense purple stays on everything you can click (buttons, links, eyebrow pills);
   blue marks the product (light panels, icons, chips, tints, glows, placeholders).
   ========================================================================== */

/* ---------- how it works (tasks on site): four numbered steps on a white band, joined by a dashed line ---------- */
.integration .sh-steps-wrap { padding: clamp(44px, 5vw, 80px) clamp(24px, 4vw, 64px); border-radius: var(--r-panel);
  background: #fff; box-shadow: var(--shadow-sm); }   /* white: the quote card that follows is the light blue one */
.integration .sh-steps { position: relative; list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
.integration .sh-steps.is-3col { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }   /* six steps (onboarding): three to a row */
.integration .sh-step:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: calc(50% + 31px); width: calc(100% - 38px); height: 2px; background-image: linear-gradient(90deg, #B9CEEE 55%, transparent 0); background-size: 10px 2px; }   /* number to next number, 8px clear of each */
.integration .sh-steps.is-3col .sh-step:nth-child(3n)::after { display: none; }   /* each row joins up on its own */
.integration .sh-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.integration .sh-step-n { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sh-soft); color: var(--sh-d); font: 600 18px/1 var(--font-display);
  box-shadow: 0 0 0 1px var(--sh-line), 0 12px 24px -14px rgba(26, 111, 216, .6); }
.integration .sh-step h3 { margin-top: 22px; font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; }
.integration .sh-step p { margin-top: 10px; max-width: 30ch; font-size: 15px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 1024px) { .integration .sh-steps, .integration .sh-steps.is-3col { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } .integration .sh-step::after { display: none; } }
@media (max-width: 600px) { .integration .sh-steps { grid-template-columns: minmax(0, 1fr); } }

/* "Tag or Badge?": a feature column and two Yes / No columns, centred */
@media (max-width: 1024px) and (min-width: 761px) { .integration .sh-steps.is-3col.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* three steps stay in a row on tablets */
@media (max-width: 600px) {
  .integration .sh-steps.is-3col { grid-template-columns: minmax(0, 1fr); }   /* phones: one step per row */

}

/* ---------- Lone worker safety (sense-shift-lone-worker-safety.html) ---------- */
.integration .sh-lw-features .pd-stack-copy .eyebrow + h3 { margin-top: 18px; }   /* each panel keeps the doc's eyebrow */

/* css/integration.css */
/* ==========================================================================
   Integrations pages (body.ig-page): sense-integration-*.html (tools/product/integration.py, one gen_integration_<name>.py each).
   The Core HR feature-page layout in Sense purple, as the HR feature pages (css/feature.css), with the Shift pages' numbered
   steps band (css/shift.css .sh-steps) turned purple. Minis: tools/product/minis.py ig_pair / ig_record / ig_bank; loops in js/minis.js.
   ========================================================================== */
.integration { --sh: #634AFC; --sh-d: #4931DC; --sh-soft: #F0EFFF; --sh-glow: #C9BFFF; --sh-line: rgba(99, 74, 252, .2); }

/* ---------- How It Works: the numbered steps in purple; in turn each number fills and the line draws on to the next (js/integration.js) ---------- */
.integration .sh-step:not(:last-child)::after { background-image: linear-gradient(90deg, #CFC8FB 55%, transparent 0); }
.integration .sh-step-n { z-index: 1; box-shadow: 0 0 0 1px var(--sh-line), 0 12px 24px -14px rgba(99, 74, 252, .6); transition: background-color .4s, color .4s, box-shadow .4s; }
.integration .sh-step.is-on .sh-step-n { background: #634AFC; color: #fff; box-shadow: 0 0 0 5px rgba(99, 74, 252, .14), 0 14px 26px -12px rgba(99, 74, 252, .75); }
.integration .ig-line { position: absolute; z-index: 1; top: 22px; left: calc(50% + 31px); width: calc(100% - 38px); height: 2px; border-radius: 2px; background: #634AFC;   /* over the dashed line (.sh-step::after) */
  transform: scaleX(0); transform-origin: left center; transition: transform .9s cubic-bezier(.45, 0, .25, 1), opacity .35s; }
.integration .sh-step.is-line .ig-line { transform: scaleX(1); }
.integration .is-resetting .ig-line { opacity: 0; transition: opacity .35s; }   /* the lines fade rather than run backwards */
@media (max-width: 1024px) { .integration .ig-line { display: none; } }   /* no dashed line there either (css/shift.css): the numbers still fill in turn */

/* ---------- hero: Sense HR → the partner (ig_pair: benefit_hireful's handoff at hero size) in the HR heroes' glass frame ---------- */
.integration .ft-stage .ig-pair { grid-column: 1; grid-row: 1; width: 500px; max-width: 100%; padding: 26px 22px 16px; gap: 18px; border: 8px solid rgba(255, 255, 255, .55); background-clip: padding-box; border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(99, 74, 252, .12), 0 50px 90px -40px rgba(49, 30, 160, .5); }
@media (min-width: 1440px) {   /* the card is wider than the other heroes': the pills sit on its top corners, on the small float so they stay clear of the tiles
                                  (user, 11 Nov: "Add New Starters Automatically" moved right, off the title; the other ran off the page at 1500px) */
  .integration .ft-stage:has(.ig-pair) { --rec-half: 250px; }
  .integration .ft-stage:has(.ig-pair) .ft-chip-1 { right: calc(50% + var(--rec-half) - 210px); top: 6%; animation-name: ftFloatSm; }
  .integration .ft-stage:has(.ig-pair) .ft-chip-2 { left: auto; right: calc(50% - var(--rec-half) - 28px); top: 6%; animation-name: ftFloatSm; }
}
/* the record travels only in the gap between the tiles, in full view (user, 11 Nov: it looked cropped sliding under them); narrower tiles (the
   partner's name may wrap) and a wider card give it room to move */
.integration .ig-pair .b10-flow { gap: 12px; }
.integration .ig-pair .b10-app { align-self: stretch; justify-content: center; width: 100px; gap: 7px; padding: 16px 6px 12px; border-radius: 16px; box-shadow: inset 0 0 0 1px #ECEAF6, 0 14px 26px -20px rgba(49, 30, 160, .45); }
.integration .ig-pair .b10-logo { width: 52px; height: 52px; border-radius: 14px; }
.integration .ig-pair .b10-app b { font-size: 13.5px; line-height: 1.25; }
.integration .ig-pair .b10-app > span:last-child { font-size: 11.5px; }
.integration .ig-s { padding: 13px; background: #634AFC; color: #fff; box-shadow: 0 12px 24px -12px rgba(73, 49, 220, .7); } .integration .ig-s svg { width: 100%; height: 100%; }
.integration .ig-pair .b10-wire::before { border-top-color: #CFC8FB; }
.integration .ig-pair .b10-pkt { box-shadow: 0 0 0 1px rgba(99, 74, 252, .16), 0 10px 20px -10px rgba(49, 30, 160, .4); }
.integration .ig-pair .b10-pkt b { font-size: 11.5px; }
.integration .ig-rows { list-style: none; margin: 0; padding: 0; }
.integration .ig-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 4px; border-top: 1px solid #F0F1F4; font-size: 14px; }
.integration .ig-k { font-weight: 600; color: #46516A; }
.integration .ig-row b { font-weight: 400; color: #5F6C87; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.integration .ig-ok { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #E5FDF0; color: #007C66;
  transition: opacity .3s, transform .35s var(--ease-out); transition-delay: calc(var(--k, 0) * 150ms); }
.integration .ig-ok svg { width: 11px; height: 11px; }
.integration .ig-pair:not(.is-done) .ig-ok, .integration .ig-rec:not(.is-done) .ig-ok { opacity: 0; transform: scale(.6); transition-delay: 0s; }
@media (max-width: 600px) {
  .integration .ft-stage .ig-pair { width: 100%; max-width: 470px; padding: 20px 14px 12px; }
  .integration .ig-pair .b10-app { width: 96px; padding: 14px 6px 12px; } .integration .ig-pair .b10-logo { width: 42px; height: 42px; } .integration .ig-s { padding: 10px; }
  .integration .ig-pair .b10-pkt { padding: 3px; } .integration .ig-pair .b10-pkt b { display: none; }
  .integration .ig-row { grid-template-columns: 96px minmax(0, 1fr) auto; font-size: 13px; }
}

/* ---------- New starter record with the partner's quick action (ig_record: employee_records' card) ---------- */
.integration .ig-rec { padding-bottom: 18px; }
.integration .ig-new { background: #F0EFFF; color: #4931DC; } .integration .ig-new i { background: #634AFC; animation: none; }
.integration .ig-rec .mi-er-v { gap: 8px; }
.integration .ig-rec .ig-ok { width: 18px; height: 18px; transition-delay: calc(var(--k, 0) * 140ms + 150ms); }
.integration .ig-act { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; height: 42px; margin-top: 12px; border-radius: 11px;
  background: #634AFC; color: #fff; font: 600 13.5px/1 var(--font-body); transition: background-color .3s, color .3s, box-shadow .3s; }
.integration .ig-act.is-hot { background: #4931DC; }
.integration .ig-act-t { display: grid; } .integration .ig-act-t > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 7px; opacity: 0; transition: opacity .25s; }
.integration .ig-act-t svg { width: 13px; height: 13px; }
.integration .ig-rec:not(.is-busy):not(.is-done) .ig-act-t .is-idle, .integration .ig-rec.is-busy .ig-act-t .is-busy, .integration .ig-rec.is-done .ig-act-t .is-done { opacity: 1; }
.integration .ig-rec.is-done .ig-act { background: #E5FDF0; color: #007C66; box-shadow: inset 0 0 0 1px rgba(0, 124, 102, .18); }
.integration .ig-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: igSpin .8s linear infinite; }
@keyframes igSpin { to { transform: rotate(360deg); } }
.integration .ig-rec .mi-toast { top: 18px; bottom: auto; }   /* over the record's header, clear of the button */

/* ---------- Bank details tab (ig_bank: personal_details on its last tab): taller, so the toast lands under the account number, not on it ---------- */
.integration .ig-bank { height: 414px; }
.integration .ig-bank .mi-toast { bottom: 16px; }

/* the partner's logo as a toast's icon (ig_record, ig_bank) */
.integration .mi-toast-ic.ig-toast-logo { overflow: hidden; border-radius: 7px; background: none; } .integration .ig-toast-logo img { display: block; width: 100%; height: 100%; }

/* ---------- Explore more: the partner's logo in the tile; a letter tile while a logo is missing ---------- */
.integration .ig-tile { padding: 0; overflow: hidden; } .integration .ig-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- phones: the panel widgets a touch smaller, as the other Features pages ---------- */
@media (max-width: 600px) {
  .integration .pd-stack-btn { white-space: normal; text-align: left; line-height: 1.3; }   /* long link labels wrap inside the panel, as the Shift pages */
  .integration .pd-stack-visual .pd-frame:has(> .mi) { padding: 12px; }
  .integration .pd-stack-visual .mi { border-width: 5px; }
  .integration .pd-stack-visual .mi-er { zoom: .86; }
}
@media (prefers-reduced-motion: reduce) { .integration .ig-spin { animation: none; } }

/* ===== KIT OPTIONS (design-port) */
/* While a stacking card holds keyboard focus it scrolls with the page instead of sticking (WCAG 2.4.11). */
.integration .pd-stack-card:has(:focus-visible) { position: relative; top: auto; }
/* Phones: a zero minimum keeps a stacking card's single column inside the card, however wide its mock-up. */
@media (max-width: 900px) { .integration .pd-stack-inner { grid-template-columns: minmax(0, 1fr); } }

/* Keyboard focus rings (checks run 1; WCAG 2.4.7, 1.4.11), as the Shift features pages (shift-hr.css). On the purple hero the brand
   ring measured 1.7-3.1:1: the dark "Watch 4 min video" pill takes a ring in the text colour, the hero buttons the darker brand purple. */
.integration .pd-play:focus-visible { outline-color: var(--text); }
.integration .ft-hero .cta-group :focus-visible { outline-color: var(--brand-hover); }

/* Explore more: two cards since the Brain Payroll card was dropped until its page exists (Costi, Q1): a two-column grid, as
   shift-feature.css's .pd-links-2, so the row doesn't look a card short. When it returns, the card goes back
   with pd-links-3 and the export's three-column .pd-links-3 rules (the trim dropped them), and these rules go. */
.integration .pd-links-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .integration .pd-links-2 { grid-template-columns: 1fr; } }

@supports (zoom: 1) {
  /* sage-50-payroll */
  @media (max-width: 309.98px) { .integration .mi[data-mini="b10"] { zoom: 0.95; } }   /* worst -10 px at 300 (SPAN.b10-pkt, mid-animation), was 1 */
  @media (max-width: 309.98px) { .integration .mi[data-mini="igr"] { zoom: 0.8; } }   /* worst -8.3 px at 300 (SPAN.mi-toast.is-on, mid-animation), was 0.86 */
  @media (max-width: 309.98px) { .integration .mi[data-mini="pd"] { zoom: 0.85; } }   /* worst -13.3 px at 300 (SPAN.mi-toast.is-on, mid-animation), was 1 */
  @media (min-width: 310px) and (max-width: 319.98px) { .integration .mi[data-mini="pd"] { zoom: 0.9; } }   /* worst -8.3 px at 310 (SPAN.mi-toast.is-on, mid-animation), was 1 */
  @media (min-width: 320px) and (max-width: 329.98px) { .integration .mi[data-mini="pd"] { zoom: 0.95; } }   /* worst -3.3 px at 320 (SPAN.mi-toast.is-on, mid-animation), was 1 */
  @media (min-width: 901px) and (max-width: 919.98px) { .integration .mi[data-mini="pd"] { zoom: 0.9; } }   /* worst -19.1 px at 901 (SPAN.), was 1 */
  @media (min-width: 920px) and (max-width: 959.98px) { .integration .mi[data-mini="pd"] { zoom: 0.95; } }   /* worst -14.7 px at 920 (SPAN.), was 1 */
  @media (max-width: 309.98px) { .integration .mi[data-mini="py"] { zoom: 0.75; } }   /* worst -54.2 px at 300 (DIV.mi.mi-py), was 1 */
  @media (min-width: 310px) and (max-width: 319.98px) { .integration .mi[data-mini="py"] { zoom: 0.8; } }   /* worst -44.2 px at 310 (DIV.mi.mi-py), was 1 */
  @media (min-width: 320px) and (max-width: 329.98px) { .integration .mi[data-mini="py"] { zoom: 0.85; } }   /* worst -34.2 px at 320 (DIV.mi.mi-py), was 1 */
  @media (min-width: 330px) and (max-width: 349.98px) { .integration .mi[data-mini="py"] { zoom: 0.9; } }   /* worst -24.2 px at 330 (DIV.mi.mi-py), was 1 */
  @media (min-width: 350px) and (max-width: 358.98px) { .integration .mi[data-mini="py"] { zoom: 0.95; } }   /* worst -4.2 px at 350 (DIV.mi.mi-py), was 1 */
}
