/* Small and mid-sized businesses page (small_medium_businesses.html). Converted once on 2026-10-30 from the design export sense-small-medium-businesses-share.html (tokens, base, sections, agents, product, minis, smb; nav.css is left to nav-footer-new.css), scoped to main.smb 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.smb */

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

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

.smb .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;
}

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

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

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

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

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

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

/* ---------- Icon tile ---------- */
.smb .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);
}
.smb .icon-tile svg { width: 20px; height: 20px; }

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

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

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

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

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

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

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

.smb .float-card { background: #fff; color: var(--text); border-radius: var(--r-md); box-shadow: var(--shadow-float); }
.smb .hero-floats { position: absolute; inset: 0; pointer-events: none; }
.smb .feed-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; transition: background-color .5s; }
.smb .feed-item.is-active { background: var(--brand-10); }

.smb .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; }
.smb .chip-check { width: 24px; height: 24px; border-radius: 50%; background: var(--live-bg); color: var(--live); display: grid; place-items: center; flex-shrink: 0; }
.smb .chip-check svg { width: 13px; height: 13px; }
.smb .chip-1 { right: -40px; top: 9%; }
.smb .chip-2 { right: -64px; top: 42%; animation-delay: -1.5s; }
.smb .chip-3 { left: 6%; bottom: 8%; animation-delay: -3s; }
.smb .chip-4 { right: 12%; bottom: -22px; animation-delay: -4.5s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.js .smb .hero-floats .float-card { opacity: 0; scale: .92; transition: opacity .7s var(--ease-out), scale .7s var(--ease-out); }
.js .smb .hero-floats.in .float-card { opacity: 1; scale: 1; }
.smb .hero-floats.in .chip-1 { transition-delay: .15s; } .smb .hero-floats.in .chip-2 { transition-delay: .3s; }
.smb .hero-floats.in .chip-3 { transition-delay: .45s; } .smb .hero-floats.in .chip-4 { transition-delay: .6s; }

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

/* ==========================================================================
   02 STATS STRIP — odometer counters with dashed dividers
   ========================================================================== */
.smb .trust-bar { padding-block: 100px 24px; }
.smb .stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1180px; margin-inline: auto; }
.smb .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; }
.smb .stat:first-child { border-left: 0; }
.smb .stat-top { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.smb .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); }
.smb .stat-lbl { font-size: 15px; color: var(--text-2); }
.smb .stat-rating { display: flex; align-items: center; gap: 8px; }
.smb .rating-badge img { width: 22px; height: 22px; border-radius: 5px; }
.smb .rating-stars { display: flex; gap: 2px; }
.smb .rating-stars svg { width: 15px; height: 15px; }
.smb .odo-emoji { font-size: .55em; vertical-align: .18em; }
@media (max-width: 1100px) {
  .smb .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .smb .stat:nth-child(4) { border-left: 0; }
}
@media (max-width: 640px) {
  .smb .trust-bar { padding-block: 48px 8px; }
  .smb .stats { grid-template-columns: 1fr 1fr; row-gap: 0; }
  .smb .stat { min-height: 0; gap: 16px; padding: 22px 8px; border-top: 1px dashed var(--line-dash); }
  .smb .stat:nth-child(odd) { border-left: 0; }
  .smb .stat:nth-child(4) { border-left: 1px dashed var(--line-dash); }
  .smb .stat:nth-child(-n+2) { border-top: 0; }
  .smb .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.
   ========================================================================== */
.smb .ta-frame { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.smb .ta-frame.is-active { opacity: 1; transform: none; }
.smb .ta-frame:nth-child(1) img { max-width: 80%; max-height: 80%; }
.smb .ta-frame:nth-child(2) img { box-shadow: none; border-radius: 0; }
.smb .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) {
  .smb .chip { animation: none !important; }
  .smb .hero-window { transform: none; }
  .js .smb .hero-anim { opacity: 1; transform: none; }
  .js .smb .hero-floats .float-card { opacity: 1; scale: 1; }
}

/* ==========================================================================
   Home quick fixes (30 Sep)
   ========================================================================== */
/* time & attendance: animated minis on the product-page card background */
.smb #time-attendance .ta-frame { display: grid; place-items: center; }
/* T&A minis: frames stack in one grid cell so the area sizes to the tallest widget (no fixed-ratio overflow) */
.smb #time-attendance .ta-frame { position: relative; inset: auto; grid-area: 1 / 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 */
.smb .ami-meet-wrap { position: relative; }
.smb .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; }
.smb .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%); }
.smb .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%); }
.smb .ami-meet-copy { max-width: 720px; margin: 0 auto; }
.smb .ami-meet-copy h2 { color: var(--text); }
.smb .ami-meet-copy p { margin: 18px auto 0; color: var(--text-2); font-size: var(--fs-lede); max-width: 620px; }
.smb .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 */
.smb .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); }
.smb .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) {
  .smb .ami-meet-shot { height: 220px; }
}

/* ---------- 06 FAQ — single rounded container with square toggles ---------- */
.smb .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; }
.smb .ami-faq-item + .ami-faq-item { border-top: 1px solid var(--line); }
.smb .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; }
.smb .ami-faq-q::-webkit-details-marker { display: none; }
.smb .ami-faq-q:hover { background: var(--page); }
.smb .ami-faq-q:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; border-radius: 12px; }
.smb .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; }
.smb .ami-faq-ic svg { width: 14px; height: 14px; }
.smb .ami-faq-ic svg { transition: transform .35s var(--ease-out); }
.smb .ami-faq-item[open] .ami-faq-ic { background: var(--brand); }
.smb .ami-faq-item[open] .ami-faq-ic svg { transform: rotate(45deg); }
.smb .ami-faq-a { padding: 0 104px 26px 40px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
@supports (interpolate-size: allow-keywords) {
  .smb .ami-faq { interpolate-size: allow-keywords; }
  .smb .ami-faq-item::details-content { height: 0; overflow: hidden; transition: height .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .smb .ami-faq-item[open]::details-content { height: auto; }
}
@media (max-width: 767px) { .smb .ami-faq { margin-top: 40px; } .smb .ami-faq-q { padding: 20px; } .smb .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 ---------- */
.smb .pd-hero { position: relative; isolation: isolate; overflow: clip; padding-top: calc(var(--frame-inset) + 150px); color: var(--text-inv); }
.smb .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; }
.smb .pd-hero-bg picture, .smb .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 */
.smb .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 */
.smb .pd-hero .hero-window { transform: none; will-change: auto; }
.smb .pd-hero .chip-2 { display: none; }
.smb .pd-hero .chip-1 { top: 12%; right: -44px; }
.smb .pd-hero .chip-3 { left: -40px; bottom: auto; top: 40%; }
.smb .pd-hero .chip-4 { right: 8%; bottom: auto; top: 70%; }
.smb .pd-hero .pd-play { top: 34%; white-space: nowrap; }
.smb .pd-hero .hero-copy h1 { color: #fff; }
.smb .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) {
  .smb .pd-hero { padding-top: calc(var(--frame-inset) + 120px); }
  .smb .pd-hero .hero-visual { height: 64vw; margin-top: 40px; clip-path: inset(-40px -40px 0 -40px); }
  .smb .pd-hero .hero-floats { display: none; }
}
.smb .pd-hero .hero-copy { max-width: 1240px; }   /* room for a one-line title on wide screens */
.smb .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) */
.smb .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) { .smb .pd-aside-chip { animation: none; } }
.smb .pd-hero .hero-copy .lede { max-width: 680px; }
.smb .pd-trial { display: flex; gap: 8px; width: min(620px, 100%); margin-top: 36px; padding: 6px; border-radius: 16px;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.smb .pd-field { flex: 1; min-width: 0; }
.smb .pd-field input { width: 100%; height: 48px; padding: 0 16px; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .06); color: #fff;
  font: 400 15px/1 var(--font-body); outline: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background-color .2s; }
.smb .pd-field input::placeholder { color: rgba(255, 255, 255, .55); }
.smb .pd-field input:focus { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px var(--brand-soft); }
.smb .pd-field input.is-invalid { box-shadow: inset 0 0 0 1.5px #FF8A8A; }
.smb .pd-trial .btn { --btn-h: 48px; flex-shrink: 0; }
.smb .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; }
.smb .pd-play:hover { transform: translate(-50%, -50%) scale(.97); background: rgba(11, 10, 20, .85); }
.smb .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; }
.smb .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) {
  .smb .pd-trial { flex-direction: column; padding: 8px; }
  .smb .pd-trial .btn { width: 100%; }
  .smb .pd-play { height: 44px; padding: 0 16px 0 6px; font-size: 13px; gap: 8px; top: 50%; }
  .smb .pd-play-ic { width: 32px; height: 32px; }
}

/* ---------- 02 STATS — home strip with 4 items ---------- */
.smb .pd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1040px; }
.smb .pd-stats .stat { min-height: 0; justify-content: flex-start; gap: 40px; }   /* 40px from the figure to its label */
@media (max-width: 1024px) { .smb .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) ---------- */
.smb .pd-claim { position: relative; overflow: clip; padding: clamp(72px, 9vw, 140px) 0 clamp(24px, 3vw, 48px); text-align: center; }
.smb .pd-claim-marquee { overflow: hidden; }
.smb .pd-claim-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.smb .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); }
.smb .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; }
.smb .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); } }
.smb .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) {
  .smb .pd-claim-track { animation: none; width: 100%; justify-content: center; padding-inline: var(--gutter); }
  .smb .pd-claim-text { font-size: clamp(48px, 8vw, 120px); white-space: normal; text-wrap: balance; padding-right: 0; }
  .smb .pd-claim-text[aria-hidden] { display: none; }
  .smb .pd-claim-tile { display: none; }
}

/* ---------- 04 CHAPTERS — shared head + module label + "Learn more" ---------- */
.smb .pd-chapter-head { position: relative; max-width: 820px; display: flex; flex-direction: column; align-items: flex-start; }
.smb .pd-chapter-head .eyebrow { margin-bottom: 18px; }
.smb .pd-chapter-head h2 { color: inherit; }
.smb .pd-mod { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-body); color: var(--brand-hover); letter-spacing: .01em; }
.smb .pd-mod::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.smb .pd-more { display: inline-block; margin-top: 24px; font: 500 15px/1.4 var(--font-body); color: var(--brand-hover); transition: color .2s; }
.smb .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 */
.smb .pd-more:hover { color: var(--brand); }
.smb .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) */
.smb .pd-stack { position: relative; margin-top: clamp(48px, 5vw, 72px); }
.smb .pd-stack-card { --p: 0; position: sticky; top: calc(96px + var(--i) * 22px); margin-bottom: 36px; }
.smb .pd-stack-card:last-child { margin-bottom: 0; }
.smb .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); }
.smb .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 */
.smb .pd-stack-copy { position: relative; z-index: 1; max-width: 500px; }
.smb .pd-stack-copy h3 { margin-top: 18px; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.smb .pd-stack-copy p { margin-top: 18px; font-size: 17px; line-height: 1.65; }
.smb .pd-stack-visual { position: relative; z-index: 1; }
.smb .pd-stack-visual .pd-frame { aspect-ratio: 1.2; }
.smb .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 */
.smb .pd-stack-card .pd-stack-visual .pd-frame:has(> .mi)::before { display: none; }
/* themes */
.smb .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; }
.smb .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; }
.smb .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); }
.smb .pd-stack-card.is-purple p, .smb .pd-stack-card.is-dark p { color: rgba(255, 255, 255, .78); }
.smb .pd-stack-card.is-light p { color: var(--text-2); }
.smb .pd-stack-card.is-purple .pd-mod, .smb .pd-stack-card.is-dark .pd-mod { color: #DCD6FF; }
.smb .pd-stack-card.is-purple .pd-mod::before { background: #fff; } .smb .pd-stack-card.is-dark .pd-mod::before { background: var(--brand-soft); }
.smb .pd-stack-card.is-purple .pd-bullets li, .smb .pd-stack-card.is-dark .pd-bullets li { color: #fff; }
.smb .pd-stack-card.is-purple .pd-bullets svg { background: rgba(255, 255, 255, .18); color: #fff; }
.smb .pd-stack-card.is-dark .pd-bullets svg { background: rgba(123, 92, 255, .22); color: var(--brand-soft); }
.smb .pd-stack-card.is-purple .pd-more, .smb .pd-stack-card.is-dark .pd-more { color: #fff; }
.smb .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); }
.smb .pd-stack-card.is-purple .pd-frame::before { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 56px, transparent 56px 70px); }
.smb .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); }
.smb .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 */
  .smb .pd-stack-card { position: relative; top: auto; margin-bottom: 20px; }
  .smb .pd-stack-inner { grid-template-columns: 1fr; min-height: 0; transform: none; }
  .smb .pd-stack-inner::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .smb .pd-stack-inner { transform: none; } .smb .pd-stack-inner::after { display: none; } }

/* 04a spotlight rows — text + bullets | framed visual, alternating */
.smb .pd-bullets { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.smb .pd-bullets li { display: flex; align-items: center; gap: 12px; font: 500 15px/1.3 var(--font-body); color: var(--text); }
.smb .pd-bullets svg { width: 22px; height: 22px; flex-shrink: 0; padding: 4px; border-radius: 7px; background: var(--brand-10); color: var(--brand); }
.smb .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; }
.smb .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%); }
.smb .pd-frame picture { display: block; width: 100%; height: 100%; }
.smb .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 */
.smb .pd-dark { padding-block: var(--section-y); }
.smb .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; }
.smb .pd-dark .pd-dark .pd-mod { color: var(--brand-soft); }
.smb .pd-dark .pd-mod::before { background: var(--brand-soft); }
.smb .pd-dark .pd-duo-item .pd-mod { color: var(--brand-soft); }   /* label in the dot's lavender */
.smb .pd-dark .pd-more { color: #fff; }
.smb .pd-dark .pd-more:hover { color: var(--brand-soft); }
.smb .pd-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 5vw, 72px); }
.smb .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); }
.smb .pd-duo-item h3 { margin-top: 14px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.18; letter-spacing: -0.02em; color: #fff; }
.smb .pd-duo-item p { margin-top: 14px; color: var(--text-inv-2); font-size: 16px; line-height: 1.65; }
.smb .pd-duo-item .pd-more { margin-top: auto; padding-top: 22px; }
.smb .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) { .smb .pd-duo { grid-template-columns: 1fr; } .smb .pd-duo-visual { height: 260px; } }

/* 04d bento — self-service access points + payroll */
.smb .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); }
.smb .pd-tile h3 { margin-top: 14px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.18; letter-spacing: -0.02em; }
.smb .pd-tile p { margin-top: 14px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.smb .pd-tile .pd-more { margin-top: auto; padding-top: 22px; }
.smb .pd-devices { list-style: none; margin: 28px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.smb .pd-device { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px; border-radius: 16px; background: var(--page); font: 500 13px/1 var(--font-body); color: var(--text); transition: background-color .3s, transform .3s var(--ease-out); }
.smb .pd-device:hover { background: var(--brand-10); transform: translateY(-3px); }
.smb .pd-device-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.smb .pd-device-ic svg { width: 24px; height: 24px; }
.smb .pd-tile-pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 28px; align-items: stretch; padding-right: 0; padding-bottom: 0; overflow: hidden; }
.smb .pd-tile-copy { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: clamp(26px, 3vw, 40px); }
.smb .pd-tile-visual { align-self: end; border-radius: 20px 0 0 0; overflow: hidden; background: linear-gradient(160deg, #EEEBFF, #DCD5FF); padding: 20px 0 0 20px; }
.smb .pd-tile-visual picture, .smb .pd-tile-visual img { display: block; width: 100%; }
.smb .pd-tile-visual img { border-radius: 14px 0 0 0; }
@media (max-width: 600px) {
  .smb .pd-devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smb .pd-tile-pay { grid-template-columns: 1fr; padding-right: clamp(26px, 3vw, 40px); padding-bottom: 0; gap: 0; }
  .smb .pd-tile-visual { margin-right: calc(clamp(26px, 3vw, 40px) * -1); }
}

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

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

/* Insight & control + payroll tile: animated minis on the cards background, glass border */
.smb .pd-duo-visual:has(.mi), .smb .pd-tile-visual:has(.mi) { display: grid; place-items: center; background: #0A0916 url("/assets/images/pages/homepage/ta-card-bg.webp") center / cover no-repeat; }
.smb .pd-duo-visual .mi, .smb .pd-tile-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) { .smb .pd-hero .hero-copy .lede { margin-top: 48px; } }

/* payroll tile: original layout (copy | visual side by side); the mini is scaled by js/minis.js to fit its panel */
.smb .pd-tile-pay:has(.mi) { padding-right: clamp(26px, 3vw, 40px); padding-bottom: clamp(26px, 3vw, 40px); align-items: center; }
.smb .pd-tile-pay:has(.mi) .pd-tile-copy { padding-bottom: 0; }
.smb .pd-tile-visual:has(.mi) { align-self: stretch; border-radius: 20px; padding: 18px; place-items: center; }
@media (max-width: 600px) { .smb .pd-tile-visual:has(.mi) { margin: 20px 0 0; } }

/* time & performance, stacked (mobile/tablet): visual below the steps, on the card background */
@media (min-width: 601px) { .smb .pd-tile-pay:has(.mi) { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }

/* 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) {
  .smb .pd-stats { grid-template-columns: 1fr 1fr; }
  .smb .pd-stats .stat { gap: 16px; padding: 22px 8px; border-top: 1px dashed var(--line-dash); }
  .smb .pd-stats .stat:nth-child(-n+2) { border-top: 0; }
  .smb .pd-stats .stat:nth-child(odd) { border-left: 0; }
  .smb .pd-stats .stat:nth-child(even) { border-left: 1px dashed var(--line-dash); }
  .smb .pd-stats .stat:last-child { grid-column: auto; }
  .smb .pd-stats .stat-num { font-size: 30px; }
  .smb .pd-stats .stat-iso .stat-num { font-size: 26px; white-space: nowrap; }
}

/* payroll card: just the animation, no background panel */
.smb .pd-tile-visual:has(.mi) { background: none; padding: 0; overflow: visible; }
.smb .pd-tile-visual .mi { box-shadow: none; }   /* payroll: flat on the card, no drop shadow */

/* big claim: the S tile sits above the scrolling line instead of over it */
.smb .pd-claim { display: flex; flex-direction: column; align-items: center; }
.smb .pd-claim-marquee { width: 100%; }
.smb .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) */
.smb .pd-aside-chip { animation-name: pdPillFloat; }
@keyframes pdPillFloat { from { translate: 0 -5px; rotate: -1deg; } to { translate: 0 7px; rotate: .8deg; } }
.smb .pd-hero .hero-copy .lede { margin-top: 34px; }
@media (max-width: 767px) { .smb .pd-hero .hero-copy .lede { margin-top: 32px; } }
.smb .pd-claim .pd-claim-tile { margin-bottom: clamp(4px, 1vw, 14px); }   /* closer to the sliding line (user, 1 Oct) */
@media (max-width: 767px) { .smb .pd-claim .pd-claim-tile { margin-bottom: 20px; } }

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

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

/* toast */
.smb .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); }
.smb .mi-toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.smb .mi-toast-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #E5FDF0; color: #007C66; }
.smb .mi-toast-ic svg { width: 12px; height: 12px; }

/* ---------- Employee records (230×338 export, shown ~1.3×) ---------- */
.smb .mi-er { width: min(300px, 100%); padding: 20px 20px 10px; border-radius: 16px; }
.smb .mi-er-top { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 14px; }
.smb .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); }
.smb .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); } }
.smb .mi-er-av { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: #D7F3FD; margin-bottom: 8px; }
.smb .mi-er-av img { width: 100%; height: 100%; object-fit: cover; }
.smb .mi-er-name { font: 500 19px/1.2 var(--font-body); color: #2C2853; }
.smb .mi-er-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; line-height: 1.35; color: #2C2853; }
.smb .mi-er-meta svg { width: 14px; height: 14px; color: #A3A2B1; }
.smb .mi-er-rows { list-style: none; margin: 0; padding: 0; }
.smb .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; }
.smb .mi-er-k { font-weight: 600; color: #46516A; }
.smb .mi-er-v { position: relative; display: inline-flex; align-items: center; gap: 6px; color: #5F6C87; }
.smb .mi-er-val { display: inline-block; transition: transform .35s var(--ease-out), opacity .35s; }
.smb .mi-er-val.is-flip { transform: translateY(-8px); opacity: 0; }
.smb .mi-er-row.is-hot { background: #F8F9FF; box-shadow: inset 0 0 0 1px rgba(99, 74, 252, .18); }
.smb .mi-er-upd { position: absolute; right: calc(100% + 8px); top: 50%; margin-top: -8.5px; white-space: nowrap; padding: 3px 6px; border-radius: 6px; background: #E5FDF0; color: #007C66; font: 500 10.5px/1 var(--font-body); opacity: 0; transform: scale(.8) translateX(6px); transition: opacity .3s, transform .3s var(--ease-out); }
.smb .mi-er-row.is-updated .mi-er-upd { opacity: 1; transform: none; }
.smb .mi-er-rtw .mi-tick { width: 14px; height: 14px; color: #007C66; }
.smb .mi-er-rtw .mi-tick path { stroke-dasharray: 16; stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease-out); }
.smb .mi-er.is-pre .mi-er-rtw .mi-tick path { stroke-dashoffset: 16; }
.smb .mi-er.is-pre .mi-er-row { opacity: 0; transform: translateY(8px); }
.smb .mi-er .mi-er-row { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), background-color .35s; }

/* ---------- AMI assistant (291×329 export) ---------- */
.smb .mi-ami { width: min(390px, 100%); border-radius: 18px; overflow: hidden; }
.smb .mi-ami-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #EFEFEF; }
.smb .mi-ami-head b { font: 600 17px/1 var(--font-body); color: #393940; }
.smb .mi .mi-ami-orb { width: 34px; height: auto; flex-shrink: 0; margin: -4px -2px -8px; }   /* assets/images/Chatbot.png (has its own soft shadow) */
.smb .mi-ami-x { margin-left: auto; color: #B0B0B0; }
.smb .mi-ami-x svg { width: 16px; height: 16px; }
.smb .mi-ami-body { display: flex; flex-direction: column; gap: 14px; min-height: 330px; margin: 10px; padding: 14px; border-radius: 14px; background: #FBFBFD; box-shadow: inset 0 0 0 1px #ECEEF3; }
.smb .mi-ami-q { display: flex; align-items: center; gap: 10px; }
.smb .mi .mi-ami-q p { flex: 1; min-height: 3.1em; padding: 10px 12px; border-radius: 12px; background: #F2F4FA; box-shadow: inset 0 0 0 1px #E9EDF4; font-size: 13.5px; line-height: 1.45; color: #3F4147; }
.smb .mi-ami-av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.smb .mi-ami-av img { width: 100%; height: 100%; object-fit: cover; }
.smb .mi .mi-ami-a p { padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #E4E7F0; font-size: 13.5px; line-height: 1.55; color: #3F4147; min-height: 7.7em; }
.smb .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; }
.smb .mi-ami-dots i { width: 6px; height: 6px; border-radius: 50%; background: #A3A2B1; animation: miDot 1s ease-in-out infinite; }
.smb .mi-ami-dots i:nth-child(2) { animation-delay: .15s; } .smb .mi-ami-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes miDot { 50% { transform: translateY(-4px); background: #894AFF; } }
.smb .mi-ami.is-thinking .mi-ami-dots { display: flex; }
.smb .mi-ami.is-thinking .mi-ami-a, .smb .mi-ami.is-asking .mi-ami-a { display: none; }
.smb .mi-ami-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 14px; border-radius: 10px; background: #F2F4FA; box-shadow: inset 0 0 0 1px #E4E7F0;
  font: 500 13.5px/1 var(--font-body); color: #393940; transition: background-color .3s, color .3s, box-shadow .3s, transform .15s, opacity .4s; }
.smb .mi-ami-btn-ic { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: #393940; color: #fff; transition: background-color .3s; }
.smb .mi-ami-btn-ic svg { width: 12px; height: 12px; }
.smb .mi-ami.is-asking .mi-ami-btn, .smb .mi-ami.is-thinking .mi-ami-btn, .smb .mi-ami.is-streaming .mi-ami-btn { opacity: 0; }
.smb .mi-ami-btn.is-hover { background: #EFD6FF; box-shadow: inset 0 0 0 1px #DBCBFF; }
.smb .mi-ami-btn.is-press { transform: scale(.96); }
.smb .mi-ami-btn.is-done { background: #E5FDF0; color: #007C66; box-shadow: inset 0 0 0 1px #C8F2DC; }
.smb .mi-ami-btn.is-done .mi-ami-btn-ic { background: #1BCAA7; }
.smb .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; } }

@media (max-width: 600px) {
  .smb .mi-ami-body { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .smb .mi-er-status i { animation: none; }
}

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

/* ---------- Holidays & events — create event (Book.svg 337×354) ---------- */
.smb .mi-ev { width: min(380px, 100%); border-radius: 16px; }
.smb .mi-ev-head { position: relative; padding: 16px 18px 14px; border-bottom: 1px solid #EFEFEF; }
.smb .mi-ev-head b { font: 600 16px/1.2 var(--font-body); color: #2C2853; }
.smb .mi-ev-head .mi-ami-x { position: absolute; right: 16px; top: 16px; }
.smb .mi .mi-ev-head p { margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: #5F6C87; }
.smb .mi-ev-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 9px; }
.smb .mi-ev-lbl { display: block; font: 500 12px/1.3 var(--font-body); color: #2C2853; }
.smb .mi-ev-lbl-row { display: flex; justify-content: space-between; margin-top: 6px; }
.smb .mi-ev-lbl-row em { font-style: normal; font-weight: 400; color: #5F6C87; }
.smb .mi-ev-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.smb .mi-ev-cat { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 8px; border-radius: 6px; text-align: center; box-shadow: inset 0 0 0 1px #E4E7F0; transition: box-shadow .3s, background-color .3s; }
.smb .mi-ev-cat b { font: 500 12px/1.2 var(--font-body); color: #2C2853; }
.smb .mi-ev-cat > span:last-child { font-size: 10.5px; line-height: 1.35; color: #5F6C87; }
.smb .mi-ev-cat-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #EFF1FF; color: #634AFC; }
.smb .mi-ev-cat-ic svg { width: 13px; height: 13px; }
.smb .mi-ev-cat.is-on { background: #F8F9FF; box-shadow: inset 0 0 0 1.5px #8C7BFF; }
.smb .mi-ev-input { display: flex; align-items: center; height: 36px; padding: 0 11px; border-radius: 6px; box-shadow: inset 0 0 0 1px #DCDFFF; font-size: 12.5px; color: #2C2853; transition: box-shadow .25s; }
.smb .mi-ev-input.is-focus { box-shadow: inset 0 0 0 1.5px #634AFC; }
.smb .mi-ev-icon-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; }
.smb .mi-ev-hint { display: block; margin-top: 5px; font-size: 10.5px; line-height: 1.4; color: #5F6C87; }
.smb .mi-ev-swatch { width: 34px; height: 34px; flex-shrink: 0; border-radius: 7px; display: grid; place-items: center; background: #FFF3D9; color: #B35B00; box-shadow: inset 0 0 0 1px #E4E7F0; transition: background-color .35s, color .35s, transform .3s var(--ease-out); }
.smb .mi-ev-swatch svg { width: 16px; height: 16px; }
.smb .mi-ev-swatch.is-pop { transform: scale(1.12); }

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

.smb .pd-stack-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
@media (max-width: 900px) { .smb .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. ===== */
.smb .mi { border-radius: 16px !important; }
.smb .pd-stack-visual .mi, .smb .pd-duo-visual .mi, .smb .pd-tile-visual .mi { border-radius: 24px !important; }

/* ==========================================================================
   Holidays & Events (page 6) — rebuilt from Holiday events.svg, Track holidays.svg, approval workflow.svg, Heatmaps.svg,
   Calendar integrations.svg, Deeper insights.svg, self-service.svg, custom holidays.svg
   ========================================================================== */

@media (max-width: 600px) {   /* phones: thinner frame around the Holidays & Events panels, more room for the UI */
  .smb .pd-frame:has(> .mi-ev) { padding: 14px; }
  .smb .pd-stack-visual .mi-ev { border-width: 5px; border-radius: 20px; }
}

/* ==========================================================================
   Recruitment: Pre-boarding (tools/product/minis.py) — new graphics in the ATS style; Aisha Malik is the new starter throughout.
   The hero and three feature panels reuse the onboarding page's minis (new_starters, welcome_lounge, ats_to_hr, automate_flow).
   ========================================================================== */
@keyframes pbLive { 50% { box-shadow: 0 0 0 4px rgba(27, 202, 167, .18); } }

/* ==========================================================================
   Recruitment: ATS overview (tools/product/minis.py) — Publish vacancies.svg, ai sceening.svg, and new graphics in the same style.
   Inside-Sense-HR screens in Sense HR purple; the onboarding workflow in Automate green.
   ========================================================================== */
.smb :is(.oc-av) img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Time & Attendance — day-one clock-ins, one per method (Sense HR purple) */
.smb .mi-oc { width: min(420px, 100%); border-radius: 16px; overflow: hidden; background: #fff; }
.smb .oc-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: #F5F3FF; border-bottom: 1px solid #E9E5FF; }
.smb .oc-hi { flex-shrink: 0; width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: #634AFC; color: #fff; } .smb .oc-hi svg { width: 100%; height: 100%; }
.smb .oc-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .smb .oc-ht b { font: 600 13.5px/1.2 var(--font-body); color: #393940; } .smb .oc-ht span { font-size: 11px; color: #6B6D80; }
.smb .oc-live { display: inline-flex; align-items: center; gap: 5px; font: 600 10px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: #007C66; } .smb .oc-live i { width: 7px; height: 7px; border-radius: 50%; background: #1BCAA7; animation: pbLive 1.6s ease-in-out infinite; }
.smb .oc-list { list-style: none; margin: 0; padding: 6px 16px; }
.smb .oc-r { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 11px 0; transition: opacity .4s, transform .5s var(--ease-out); } .smb .oc-r + .oc-r { border-top: 1px solid #F3F3F6; }
.smb .oc-r:not(.is-in) { opacity: 0; transform: translateY(6px); }
.smb .oc-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; }
.smb .oc-t { min-width: 0; display: flex; flex-direction: column; gap: 3px; } .smb .oc-t b { font: 500 13px/1.2 var(--font-body); color: #393940; } .smb .oc-t span { font-size: 11px; color: #6B6D80; }
.smb .oc-m { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px 5px 7px; border-radius: 100px; background: #F0EFFF; color: #4931DC; font: 600 11px/1 var(--font-body); white-space: nowrap; } .smb .oc-m svg { width: 13px; height: 13px; }
.smb .oc-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 16px 14px; padding: 8px; border-radius: 9px; background: #E3FDF0; color: #007C66; font: 600 11.5px/1 var(--font-body); transition: opacity .35s, transform .45s var(--ease-out); } .smb .oc-all svg { width: 12px; height: 12px; }
.smb .mi-oc:not(.is-all) .oc-all { opacity: 0; transform: translateY(6px); }
@media (max-width: 600px) { .smb .oc-list { padding: 4px 12px; } .smb .oc-r { grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 8px; } .smb .oc-av { width: 30px; height: 30px; } .smb .oc-m { padding: 4px 7px 4px 5px; font-size: 10px; } }

/* ==========================================================================
   Shift: Clocking in machines (sense-shift-clock-in-system.html)
   ========================================================================== */

/* UK-based support: a question, the UK team types, the answer (6s) */

.smb .sgs-flag { position: absolute; right: -6px; bottom: -3px; width: 17px; height: 12px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1.5px #fff; } .smb .sgs-flag svg { display: block; width: 100%; height: 100%; }

/* ==========================================================================
   Small and mid-sized businesses (user, 26 Oct) — sms: the UK support chat; sma: AMI's three abilities
   ========================================================================== */
.smb .pd-duo-visual:has(> :is(.mi-sms, .mi-sma)) { display: grid; place-items: center; padding: 18px; }
.smb .mi-sms, .smb .mi-sma { width: min(380px, 100%); border-radius: 18px; }
.smb .mi-sms { display: flex; flex-direction: column; overflow: hidden; }
.smb .sms-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #F4F2FF; box-shadow: inset 0 -1px 0 #ECE9FA; }
.smb .sms-hav { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex-shrink: 0; } .smb .sms-hav img { width: 100%; height: 100%; object-fit: cover; }
.smb .sms-head > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .smb .sms-head b { font: 600 13px/1.2 var(--font-body); color: #2C2853; }
.smb .sms-head > span > span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.3; color: #6C7597; }
.smb .sms-head .sgs-flag { position: static; display: inline-block; flex-shrink: 0; width: 16px; height: 11px; border-radius: 2px; overflow: hidden; box-shadow: none; } .smb .sms-head .sgs-flag svg { width: 100%; height: 100%; }
.smb .sms-body { display: flex; flex-direction: column; gap: 9px; padding: 20px 12px 8px; min-height: 120px; }   /* more room under the header (user, 26 Oct) */
.smb .mi-sms :is(.sms-q, .sms-a) { margin: 0; max-width: 86%; padding: 8px 11px; font-size: 12px; line-height: 1.4; color: #2C3550; transition: opacity .35s, translate .45s var(--ease-out); }
.smb .mi-sms .sms-q { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--brand, #634AFC); color: #fff; }
.smb .mi-sms .sms-a { align-self: flex-start; border-radius: 14px 14px 14px 4px; background: #F1F2F6; }
.smb .sms-typing { align-self: flex-start; display: none; gap: 4px; padding: 11px 12px; border-radius: 14px 14px 14px 4px; background: #F1F2F6; }
.smb .sms-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AA3B5; animation: smsDot 1s ease-in-out infinite; } .smb .sms-typing i:nth-child(2) { animation-delay: .15s; } .smb .sms-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes smsDot { 50% { translate: 0 -3px; opacity: .5; } }
.smb .mi-sms.is-pre :is(.sms-q, .sms-a) { opacity: 0; translate: 0 6px; }
.smb .mi-sms.is-typing .sms-typing { display: inline-flex; } .smb .mi-sms.is-typing .sms-a { display: none; }
.smb .sms-chans { display: flex; gap: 6px; padding: 8px 12px 12px; }
.smb .sms-ch { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; white-space: nowrap; border-radius: 100px; background: #F1F2F6; font: 500 11px/1 var(--font-body); color: #6C7597; transition: background-color .3s, color .3s; }
.smb .sms-ch svg { flex-shrink: 0; width: 12px; height: 12px; } .smb .sms-ch.is-on { background: var(--brand, #634AFC); color: #fff; }
/* AMI (user, 26 Oct: restyled as the support chat's card): header, the three abilities as tabs, the chat */
.smb .mi-sma { display: flex; flex-direction: column; overflow: hidden; }
.smb .sma-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #F4F2FF; box-shadow: inset 0 -1px 0 #ECE9FA; }
.smb .sma-logo { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; overflow: hidden; } .smb .sma-logo img { display: block; width: 100%; height: 100%; }
.smb .sma-head > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .smb .sma-head b { font: 600 13px/1.2 var(--font-body); color: #2C2853; } .smb .sma-head span span { font-size: 11px; line-height: 1.3; color: #6C7597; }
.smb .sma-live { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 4px 8px; border-radius: 100px; background: #E4FFF0; color: #02847C; font: 600 10.5px/1 var(--font-body); }
.smb .sma-live i { width: 6px; height: 6px; border-radius: 50%; background: #1BCAA7; animation: miPulse 1.8s ease-out infinite; }
.smb .sma-tabs { display: flex; gap: 3px; margin: 14px 12px 0; padding: 3px; border-radius: 10px; background: #F1F2F6; }
.smb .sma-tab { flex: 1; padding: 6px 4px; border-radius: 8px; text-align: center; font: 500 10.5px/1.2 var(--font-body); color: #6C7597; transition: background-color .3s, color .3s, box-shadow .3s; }
.smb .sma-tab.is-on { background: #fff; color: var(--brand, #634AFC); box-shadow: 0 1px 3px rgba(15, 30, 70, .12); }
.smb .sma-panes { display: grid; padding: 14px 12px 14px; }
.smb .sma-pane { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity .35s; }
.smb .sma-pane.is-on { opacity: 1; }
.smb .mi-sma .sma-q { align-self: flex-end; max-width: 86%; margin: 0; padding: 8px 11px; border-radius: 14px 14px 4px 14px; background: var(--brand, #634AFC); color: #fff; font-size: 12px; line-height: 1.4; transition: opacity .35s, translate .45s var(--ease-out); }
.smb .sma-a { align-self: flex-start; max-width: 92%; padding: 9px 11px; border-radius: 14px 14px 14px 4px; background: #F1F2F6; transition: opacity .35s, translate .45s var(--ease-out); }
.smb .mi-sma .sma-a p { margin: 0; font-size: 12px; line-height: 1.45; color: #2C3550; } .smb .mi-sma .sma-a p b { color: #2C2853; }
.smb .sma-typing { display: none; }
.smb .sma-pane.is-q .sma-a, .smb .sma-pane.is-typing .sma-a { display: none; } .smb .sma-pane.is-typing .sma-typing { display: inline-flex; }
.smb .sma-pane.is-pre .sma-q { opacity: 0; translate: 0 6px; } .smb .sma-pane.is-pre .sma-a { display: none; }
.smb .sma-bars { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.smb .sma-bars > span { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; } .smb .sma-bars em { grid-row: 1; font: 500 10.5px/1 var(--font-body); font-style: normal; color: #6C7597; }
.smb .sma-bars i { grid-column: 2; height: 7px; width: calc(var(--v) * 100%); border-radius: 4px; background: linear-gradient(90deg, #8C7BFF, #634AFC); }
.smb .sma-doc { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 8px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px #E6E3F7; }
.smb .sma-doc-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #F4F2FF; color: var(--brand, #634AFC); } .smb .sma-doc-ic svg { width: 15px; height: 15px; }
.smb .sma-doc > span { display: flex; flex-direction: column; gap: 2px; } .smb .sma-doc b { font: 600 11.5px/1.2 var(--font-body); color: #2C2853; } .smb .sma-doc span span { font-size: 10.5px; color: #6C7597; }
@media (max-width: 420px) { .smb .sms-chans { gap: 4px; } .smb .sms-ch { padding: 5px 8px; font-size: 10.5px; gap: 4px; } }
/* 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 */
.smb .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) */
.smb .mi-er-row::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: #F0F1F4; }
.smb .mi-er-row.is-hot::before { opacity: 0; }
/* AMI's tabs: each title on one line */
.smb .sma-tab { flex: 1 1 auto; white-space: nowrap; padding-left: 8px; padding-right: 8px; }
@media (max-width: 600px) { .smb .sma-tabs { margin-left: 8px; margin-right: 8px; gap: 2px; } .smb .sma-tab { padding: 6px 5px; font-size: 9.5px; } .smb .pd-duo-visual:has(> .mi-sma) { padding-left: 10px; padding-right: 10px; } }   /* phones: the three titles still on one line */
@media (max-width: 600px) { .smb .sma-tabs { margin-left: 6px; margin-right: 6px; } .smb .sma-tab { padding: 6px 4px; font-size: 9px; letter-spacing: -.01em; } }
@media (max-width: 374px) { .smb .sma-tabs { margin-left: 4px; margin-right: 4px; gap: 1px; } .smb .sma-tab { font-size: 8.5px; padding: 6px 3px; letter-spacing: -.02em; } }
@media (max-width: 600px) { .smb .mi-er-row { margin: 0 -10px; padding-left: 18px; padding-right: 12px; } .smb .mi-er-row::before { left: 10px; right: 10px; } .smb .mi-er-k { white-space: nowrap; } }   /* phones: labels keep one line */

/* css/smb.css */
/* ==========================================================================
   Small and mid-sized businesses (sense-small-medium-businesses.html; tools/product/gen_smb.py). The Core HR overview's layout and purple;
   these are the page's own blocks: the chapter intro paragraph, the before / after lists, the bento
   ========================================================================== */
.smb .pd-chapter-head p { margin-top: 18px; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--text-2); }

/* ---------- before and after: the live page's two lists, paired; each old way crosses out as its Sense HR way ticks in ---------- */
.smb .smb-vs { margin-top: clamp(40px, 5vw, 64px); padding: clamp(20px, 2.6vw, 36px); border-radius: var(--r-panel, 32px); background: var(--card, #fff); box-shadow: var(--shadow-sm); }
.smb .smb-vs-heads, .smb .smb-vs-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.smb .smb-vs-heads { padding: 0 6px 18px; }
.smb .smb-vs-h { display: flex; flex-direction: column; gap: 6px; font: 600 clamp(18px, 1.7vw, 22px)/1.2 var(--font-display); letter-spacing: -0.01em; }
.smb .smb-vs-h b { font: 600 11.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.smb .smb-vs-h.is-old { color: #6C7597; } .smb .smb-vs-h.is-old b { color: #9AA3B5; }
.smb .smb-vs-h.is-new { color: var(--brand); } .smb .smb-vs-h.is-new b { color: var(--brand); opacity: .75; }
.smb .smb-vs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.smb .smb-vs-old, .smb .smb-vs-new { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 18px; border-radius: 16px; font-size: 16px; line-height: 1.4; transition: background-color .5s, color .5s, box-shadow .5s, opacity .5s; }
.smb .smb-vs-old { background: #F4F5F8; color: #4A5470; }
.smb .smb-vs-new { background: var(--brand-10, #EFECFF); color: var(--text); font-weight: 500; box-shadow: inset 0 0 0 1px rgba(99, 74, 252, .14); }
.smb .smb-vs-old i, .smb .smb-vs-new i { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; } .smb .smb-vs-old i svg, .smb .smb-vs-new i svg { width: 14px; height: 14px; }
.smb .smb-vs-old i { background: #E3E6EC; color: #8A93AB; } .smb .smb-vs-new i { background: var(--brand); color: #fff; }
.smb .smb-vs-old > span { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: #9AA3B5; transition: text-decoration-color .5s, color .5s; }   /* a real line-through, so wrapped lines are each struck */
.smb .smb-vs-arrow { display: grid; place-items: center; width: 36px; height: 36px; margin: auto; border-radius: 50%; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-out), opacity .4s; } .smb .smb-vs-arrow svg { width: 16px; height: 16px; }
/* .is-run: rows start "before" (no strike, no new); .is-on brings each row over */
.smb .smb-vs.is-run .smb-vs-row:not(.is-on) .smb-vs-old > span { text-decoration-color: transparent; }
.smb .smb-vs.is-run .smb-vs-row:not(.is-on) .smb-vs-old { color: #2C3550; background: #EEF0F4; }
.smb .smb-vs.is-run .smb-vs-row:not(.is-on) .smb-vs-new { opacity: .25; }
.smb .smb-vs.is-run .smb-vs-row:not(.is-on) .smb-vs-arrow { transform: translateX(-6px); opacity: .4; }
@media (max-width: 760px) {
  .smb .smb-vs-heads { display: none; }
  .smb .smb-vs-row { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .smb .smb-vs-arrow { transform: rotate(90deg); width: 28px; height: 28px; } .smb .smb-vs.is-run .smb-vs-row:not(.is-on) .smb-vs-arrow { transform: rotate(90deg); }
  .smb .smb-vs-list { gap: 22px; } .smb .smb-vs-old, .smb .smb-vs-new { min-height: 0; font-size: 15px; }
}

/* ---------- Everyday HR bento: holidays wide with its graphic, self service, three small tiles ---------- */
.smb .smb-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 5vw, 72px); }
.smb .smb-hol { grid-column: span 4; } .smb .smb-self { grid-column: span 2; } .smb .smb-small { grid-column: span 2; }
.smb .smb-hol .pd-tile-visual { display: grid; place-items: center; padding: 24px; background: #0A0916 url("/assets/images/pages/homepage/ta-card-bg.webp") center / cover no-repeat; align-self: stretch; border-radius: 20px; }   /* rounded all round, inside the tile's padding */
.smb .smb-self .pd-devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.smb .smb-small .pd-mod { margin-top: 20px; } .smb .smb-small p { margin-top: 10px; font-size: 15.5px; }
.smb .smb-small .icon-tile { background: var(--brand-10, #EFECFF); color: var(--brand); }
@media (max-width: 1100px) { .smb .smb-hol { grid-column: span 6; } .smb .smb-self { grid-column: span 6; } .smb .smb-self .pd-devices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .smb .smb-small { grid-column: span 6; } }
@media (max-width: 600px) { .smb .smb-self .pd-devices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .smb .smb-hol .pd-tile-visual { padding: 14px; margin-right: 0; } .smb .smb-hol .pd-tile-visual .mi { zoom: .82; } }

/* help when you need it: the duo's two graphics set the stage height (both the same on wide screens), so nothing is cut */
.smb .pd-duo-visual { height: auto; min-height: 350px; }
@media (max-width: 900px) { .smb .pd-duo-visual { min-height: 0; } }

/* Every employee detail, in one place (user, 26 Oct): the employee record wider and shorter, so the panel is too. The profile sits in a row, the details in
   two columns; the frame takes the card's height rather than its 1.2 ratio. Core HR keeps its tall card */
.smb #employee-records .pd-stack-visual .pd-frame { aspect-ratio: auto; display: grid; place-items: center; padding: clamp(24px, 3vw, 40px); }
.smb .mi-er { width: min(460px, 100%); padding: 18px 20px 12px; }
.smb .mi-er-top { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 2px; align-items: center; padding-bottom: 14px; }
.smb .mi-er-av { grid-row: 1 / 4; width: 64px; height: 64px; margin: 0; }
.smb .mi-er-name { grid-column: 2; font-size: 17px; }
.smb .mi-er-meta { grid-column: 2; justify-self: start; font-size: 13.5px; }
.smb .mi-er-status { left: auto; right: 0; top: 2px; }
.smb .mi-er-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.smb .mi-er-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 18px 10px 24px; font-size: 13.5px; }   /* the text 24px in from the highlight's left edge (user, 26 Oct) */
.smb .mi-er-upd { right: auto; left: calc(100% + 8px); }
@media (max-width: 600px) { .smb .mi-er-rows { column-gap: 10px; } .smb .mi-er-row { font-size: 12.5px; } .smb .mi-er-status { position: static; grid-column: 2; grid-row: 1; justify-self: start; margin-bottom: 4px; } .smb .mi-er-top { grid-template-rows: auto auto auto auto; } .smb .mi-er-av { grid-row: 1 / 5; } }
.smb .mi-er .mi-toast { bottom: -16px; }   /* the toast floats on the card's bottom edge, clear of the last row of details */
@media (max-width: 600px) {   /* phones: the record's profile and details a size down, so each fits its line */
  .smb #employee-records .pd-stack-visual .pd-frame { padding: 18px 12px 28px; }
  .smb .mi-er { padding: 14px 14px 8px; }
  .smb .mi-er-top { grid-template-columns: 48px minmax(0, 1fr); column-gap: 10px; }
  .smb .mi-er-av { width: 48px; height: 48px; }
  .smb .mi-er-name { font-size: 15px; } .smb .mi-er-meta { font-size: 12px; } .smb .mi-er-meta svg { width: 12px; height: 12px; }
  .smb .mi-er-status { font-size: 10.5px; padding: 3px 7px; }
  .smb .mi-er-row { margin: 0 -10px; padding: 8px 8px 8px 18px; font-size: 11.5px; } .smb .mi-er-row::before { left: 10px; right: 10px; } .smb .mi-er-k { white-space: nowrap; }
}
@media (max-width: 600px) {   /* phones: less frame around the two chat cards, so AMI's three tab titles keep one line */
  .smb .pd-duo-item { padding: 16px; }
  .smb .pd-duo-visual:has(> :is(.mi-sms, .mi-sma)) { padding: 14px 6px; }
  .smb .pd-duo-visual :is(.mi-sms, .mi-sma) { border-width: 5px; }
}
@media (max-width: 345px) { .smb .pd-duo-item { padding: 12px; } .smb .pd-duo-visual:has(> :is(.mi-sms, .mi-sma)) { padding: 12px 2px; } .smb .sma-tabs { overflow-x: auto; scrollbar-width: none; } .smb .sma-tab { flex: none; } }   /* the smallest phones: the tab titles still one line, scrolling if they must */

/* ===== KIT OPTIONS (design-port) */
/* While a stacking card holds keyboard focus it scrolls with the page instead of sticking (WCAG 2.4.11). */
.smb .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) { .smb .pd-stack-inner { grid-template-columns: minmax(0, 1fr); } }

/* Hero trial form message (Core HR's, essential-hr.css): the live line under the form that page-additions.js writes when a field is
   empty or the email is malformed. The export has no message line; .pd-field input.is-invalid comes from its product.css. */
.smb .pd-trial-msg { font: 500 14px/1.4 var(--font-body); color: #FF8A8A; }
.smb .pd-trial-msg:not(:empty) { margin-top: 12px; }

/* Keyboard focus rings (checks run 1; WCAG 2.4.7, 1.4.11), as Core HR (essential-hr.css). The export's base rule draws a brand-purple
   ring, and its lighter variant for dark surfaces targets .hero, a class this page's hero (.pd-hero) doesn't carry. */
/* hero: the trial form sits on the dark artwork, where brand purple is too dark to see (2.0-2.9:1) */
.smb .pd-hero :focus-visible { outline-color: var(--brand-soft); }
/* the play button is a dark pill on the light product screenshot: its ring goes inside the pill, so it is always on dark */
.smb .pd-hero .pd-play:focus-visible { outline-color: #fff; outline-offset: -4px; }
/* purple stacking card: brand purple is the card's own colour (1.0:1) */
.smb .pd-stack-card.is-purple :focus-visible { outline-color: #fff; }

@supports (zoom: 1) {
  /* small_medium_businesses */
  @media (max-width: 309.98px) { .smb .mi[data-mini="ami"] { zoom: 0.9; } }   /* worst -14.3 px at 300 (SPAN.mi-ami-av), was 1 */
  @media (min-width: 310px) and (max-width: 319.98px) { .smb .mi[data-mini="ami"] { zoom: 0.95; } }   /* worst -4.3 px at 310 (SPAN.mi-ami-av), was 1 */
  @media (max-width: 309.98px) { .smb .mi[data-mini="sms"] { zoom: 0.95; } }   /* worst -9.1 px at 300 (SPAN.sms-ch.is-on), was 1 */
  @media (max-width: 319.98px) { .smb .mi[data-mini="sma"] { zoom: 0.85; } }   /* worst -34.1 px at 300 (SPAN.sma-tab), was 1 */
  @media (min-width: 320px) and (max-width: 329.98px) { .smb .mi[data-mini="sma"] { zoom: 0.9; } }   /* worst -14.1 px at 320 (SPAN.sma-tab), was 1 */
  @media (min-width: 330px) and (max-width: 339.98px) { .smb .mi[data-mini="sma"] { zoom: 0.95; } }   /* worst -4.1 px at 330 (SPAN.sma-tab), was 1 */
  @media (min-width: 901px) and (max-width: 919.98px) { .smb .mi[data-mini="sma"] { zoom: 0.85; } }   /* worst -35.1 px at 901 (SPAN.sma-tab), was 1 */
  @media (min-width: 920px) and (max-width: 949.98px) { .smb .mi[data-mini="sma"] { zoom: 0.9; } }   /* worst -29.6 px at 920 (SPAN.sma-tab), was 1 */
  @media (min-width: 950px) and (max-width: 989.98px) { .smb .mi[data-mini="sma"] { zoom: 0.95; } }   /* worst -15.6 px at 950 (SPAN.sma-tab), was 1 */
}
