/* Agent pages (ai.html and the ten single-agent pages). Built by tools/agent-pages/build.mjs from sense-agent-tasker-share.html; do not edit by hand. */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* css/agent.css */
/* ==========================================================================
   Single-agent pages (sense-agent-quizzy.html, …) — builds on agents.css
   (breadcrumb, video, Meet-in-Person and FAQ components are shared with the AMI page).
   ========================================================================== */

/* ---------- 01 HERO — devgent layout: copy left, agent app window bleeding off the right edge ---------- */
.agent-page .qz-hero { position: relative; isolation: isolate; overflow: clip; color: var(--text-inv); padding: calc(var(--frame-inset) + 128px) 0 120px;
  clip-path: inset(var(--frame-inset) var(--frame-inset) 0 var(--frame-inset) round var(--r-panel)); }
.agent-page .qz-hero .hero-frame { bottom: 0; }
.agent-page .qz-hero .hero-haze { background: radial-gradient(45% 55% at 78% 30%, rgba(99, 74, 252, .38) 0%, rgba(99, 74, 252, .1) 55%, transparent 75%); }
.agent-page .qz-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 72px; align-items: center; }
.agent-page .qz-hero-copy { text-align: left; align-items: flex-start; max-width: 600px; }
.agent-page .qz-hero-copy .ami-crumb { justify-content: flex-start; margin-bottom: 22px; }
.agent-page .qz-hero-copy h1 { color: #fff; font-size: clamp(48px, 6vw, 84px); line-height: 1.02; }
.agent-page .qz-hero-copy .lede { margin-top: 24px; max-width: 540px; }
.agent-page .qz-hero-copy .cta-group { margin-top: 36px; justify-content: flex-start; }

.agent-page .qz-app { position: relative; min-height: 560px; margin-top: 72px; }   /* keeps the floating toast + icon box clear of the nav */
/* faint grid behind the chat card (reference "horizontal-vertical-lines") */
.agent-page .qz-lines { position: absolute; left: -48px; right: -200px; top: -50px; bottom: -40px; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(216, 216, 223, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(216, 216, 223, .07) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 70% at 40% 50%, #000 40%, transparent 85%); mask-image: radial-gradient(70% 70% at 40% 50%, #000 40%, transparent 85%); }
/* tilted icon boxes peeking out behind the card */
.agent-page .qz-ibox { position: absolute; z-index: 0; width: 73px; height: 73px; border-radius: 14px; display: grid; place-items: center; background: #1C1B2A; box-shadow: inset 0 0 0 1px rgba(216, 216, 223, .08); transform: rotate(-9deg); color: var(--brand-soft); }
.agent-page .qz-ibox > span { transform: rotate(9deg); display: grid; }
.agent-page .qz-ibox svg { width: 30px; height: 30px; }
.agent-page .qz-ibox-top { left: 10px; top: -38px; }
.agent-page .qz-ibox-bottom { left: 34%; bottom: -34px; }
.agent-page .qz-ibox-bottom svg { width: 26px; height: 26px; }

/* card always runs 140px past the frame edge; the space between the column and the frame varies with viewport */
.agent-page .qz-chatbox { position: relative; z-index: 1; margin-left: 48px; width: calc(100% + max(4px, (100vw - 1368px) / 2 + 4px) + 140px); padding: 9px 0 24px 9px; border-radius: 24px 0 0 24px;
  background: rgba(216, 216, 223, .04); box-shadow: 0 31px 44px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(216, 216, 223, .06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.agent-page .qz-cb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 224px 10px 16px; border-radius: 18px 0 0 18px; box-shadow: inset 0 0 0 1px rgba(216, 216, 223, .08); }
.agent-page .qz-cb-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.agent-page .qz-cb-name { font: 500 15.5px/1.2 var(--font-body); color: #fff; }
.agent-page .qz-cb-pill { padding: 4px 11px; border-radius: 140px; background: rgba(216, 216, 223, .08); font: 500 13.5px/1.3 var(--font-body); color: #fff; }   /* wraps rather than truncating copy */
.agent-page .qz-cb-live { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 10px; background: rgba(216, 216, 223, .08); font: 500 15px/1.2 var(--font-body); color: #fff; letter-spacing: .04em; }
.agent-page .qz-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: livePulse 2s ease-out infinite; }
@keyframes livePulse { to { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }

/* purple prompt card, overhanging the card's left edge */
.agent-page .qz-prompt { position: relative; z-index: 2; width: min(390px, 72%); margin: 44px 0 20px -84px; padding: 22px 25px 24px; border-radius: 20px; color: #fff;
  background: linear-gradient(0deg, #B0AAEB 0%, rgba(128, 112, 240, .95) 38%, #5238E0 100%); box-shadow: inset 0 0 44px rgba(255, 255, 255, .35), 0 24px 50px -18px rgba(64, 40, 220, .7); }
.agent-page .qz-prompt-top { display: flex; align-items: center; justify-content: space-between; }
.agent-page .qz-prompt-q { width: 33px; height: 33px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); font: 700 14px/1 var(--font-body); color: #fff; }
.agent-page .qz-prompt-x { width: 23px; height: 23px; display: grid; place-items: center; color: #fff; }
.agent-page .qz-prompt-x svg { width: 16px; height: 16px; }
.agent-page .qz-prompt-title { margin-top: 18px; font: 500 18px/1.4 var(--font-body); color: #fff; }

/* floating motion — the reference's pattern, amplified: card bobs 36px with a slight tilt (3.2s, eased);
   icon boxes slide ~22px with a pause at each end, out of phase with each other */
.agent-page .qz-prompt { animation: qzFloat 3.2s ease-in-out infinite alternate; }
.agent-page .qz-ibox-top { animation: qzSlideX 5s ease-in-out infinite; }
.agent-page .qz-ibox-bottom { animation: qzSlideXY 5s ease-in-out infinite; animation-delay: -2.5s; }
@keyframes qzFloat { from { translate: 0 -14px; rotate: -1.5deg; } to { translate: 0 22px; rotate: 1deg; } }
@keyframes qzSlideX { 0%, 10% { translate: 0 0; } 45%, 55% { translate: 22px -10px; } 90%, 100% { translate: 0 0; } }
@keyframes qzSlideXY { 0%, 10% { translate: 0 0; } 45%, 55% { translate: 14px 20px; } 90%, 100% { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .agent-page .qz-prompt, .agent-page .qz-ibox-top, .agent-page .qz-ibox-bottom { animation: none; } }

/* message box (reference "Message Devgent AI…") */
.agent-page .qz-msgbox { margin-left: 24px; padding: 24px 224px 22px 26px; border-radius: 18px 0 0 18px; background: rgba(216, 216, 223, .02); box-shadow: inset 0 0 0 1px rgba(216, 216, 223, .08); }
.agent-page .qz-msgbox-text { display: flex; gap: 14px; align-items: flex-start; }
.agent-page .qz-msgbox-text p { font: 500 17px/1.45 var(--font-body); color: #fff; }
.agent-page .qz-icard { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: #1C1B2A; box-shadow: inset 0 0 0 1px rgba(216, 216, 223, .08); font: 700 12px/1 var(--font-body); color: var(--text-inv-2); }
.agent-page .qz-msgbox-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-left: 54px; }
.agent-page .qz-score { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 8px; background: #1C1B2A; box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .35); color: #7EEBB8; font: 600 13px/1 var(--font-body); }
.agent-page .qz-score svg { width: 13px; height: 13px; }
.agent-page .qz-score.qz-score-warn { box-shadow: inset 0 0 0 1px rgba(251, 146, 60, .45); color: #FDBA74; }   /* alert chips (e.g. Clockwise's Bradford Factor trigger) */
.agent-page .qz-progress { display: inline-flex; align-items: center; gap: 12px; font: 500 13px/1.2 var(--font-body); color: var(--text-inv-2); }
.agent-page .qz-dots { display: flex; gap: 5px; }
.agent-page .qz-dots span { width: 18px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.agent-page .qz-dots .done { background: var(--brand-soft); }
.agent-page .qz-dots .current { background: var(--brand); box-shadow: 0 0 12px rgba(99, 74, 252, .9); }

/* activity toast (Quizzy's 9 activity lines, one at a time) */
.agent-page .qz-toasts { position: absolute; z-index: 3; right: 40px; top: -30px; height: 46px; }
.agent-page .qz-toast { position: absolute; right: 0; top: 0; display: flex; align-items: center; gap: 9px; padding: 11px 16px 11px 11px; border-radius: 14px; white-space: nowrap;
  background: #fff; color: var(--text); box-shadow: var(--shadow-float); font: 500 13.5px/1.2 var(--font-body);
  opacity: 0; transform: translateY(12px) scale(.82); filter: blur(8px); transform-origin: 100% 0%;
  transition: opacity .4s var(--ease-out), transform .7s cubic-bezier(.34, 1.56, .64, 1), filter .45s var(--ease-out); }
.agent-page .qz-toast b { font-weight: 600; }
.agent-page .qz-toast.is-on { opacity: 1; transform: none; filter: none; }
.agent-page .qz-toast.is-out { opacity: 0; transform: translateY(-10px) scale(.9); filter: blur(6px); transition-duration: .28s; }
.agent-page .qz-toast-check { width: 24px; height: 24px; border-radius: 50%; background: var(--live-bg); color: var(--live); display: grid; place-items: center; flex-shrink: 0; }
.agent-page .qz-toast-check svg { width: 13px; height: 13px; }

@media (max-width: 1100px) { .agent-page .qz-hero-grid { gap: 40px; } .agent-page .qz-prompt { margin-left: -60px; } }
@media (max-width: 900px) {
  .agent-page .qz-hero { padding: calc(var(--frame-inset) + 108px) 0 120px; }
  .agent-page .qz-hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .agent-page .qz-app { min-height: 0; margin-top: 0; }
  .agent-page .qz-chatbox { margin-left: 0; width: calc(100% + var(--gutter)); }
  .agent-page .qz-cb-head { padding-right: calc(var(--gutter) + 8px); flex-wrap: wrap; }
  .agent-page .qz-prompt { width: calc(100% - 24px); margin: 24px 0 16px -6px; }
  .agent-page .qz-msgbox { margin-left: 12px; padding: 18px calc(var(--gutter) + 8px) 18px 16px; }
  .agent-page .qz-msgbox-text p { font-size: 15px; }
  .agent-page .qz-msgbox-row { padding-left: 0; }
  .agent-page .qz-ibox-top { left: auto; right: 12px; top: -44px; }
  .agent-page .qz-ibox-bottom { display: none; }
  .agent-page .qz-toasts { left: 0; right: 0; top: auto; bottom: -62px; }
  .agent-page .qz-toast { right: auto; left: 50%; translate: -50% 0; transform-origin: 50% 100%; white-space: normal; width: max-content; max-width: calc(100vw - 48px); }
}

/* ---------- 02 STATS — home stats strip, three columns ---------- */
.agent-page .qz-stats { padding-block: 72px 8px; }
.agent-page .qz-stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1180px; margin-inline: auto; }
.agent-page .qz-stat { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 24px; }
.agent-page .qz-stat + .qz-stat { border-left: 1px dashed var(--line-dash); }
.agent-page .qz-stat-ic { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: #EFF1FF; color: #634AFC; }
.agent-page .qz-stat-ic svg { width: 22px; height: 22px; }
.agent-page .qz-stat-txt { display: flex; flex-direction: column; gap: 4px; }
.agent-page .qz-stat-num { font: 500 clamp(24px, 2.2vw, 32px)/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--text); }
.agent-page .qz-stat-lbl { font-size: 15px; color: var(--text-2); }
@media (max-width: 900px) {
  .agent-page .qz-stats { padding-top: 48px; }
  .agent-page .qz-stats-row { grid-template-columns: 1fr; }
  .agent-page .qz-stat { justify-content: flex-start; padding: 20px 4px; }
  .agent-page .qz-stat + .qz-stat { border-left: 0; border-top: 1px dashed var(--line-dash); }
}

/* ---------- 03 VIDEO caption (the AMI page dropped its caption; agent pages keep theirs) ---------- */
.agent-page .agent-video-caption { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 16px; border-radius: 100px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--line-inv);
  color: #fff; font: 500 14px/1.3 var(--font-body); white-space: nowrap; }
@media (max-width: 767px) { .agent-page .agent-video-caption { left: 16px; right: 16px; bottom: 16px; transform: none; white-space: normal; text-align: center; font-size: 13px; } }

/* ---------- 04 HOW IT WORKS — dark panel with purple dust, pipeline ---------- */
.agent-page .qj { padding-block: var(--section-y); }
.agent-page .qj::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; }
.agent-page .qj .center-head h2 { color: #fff; }
.agent-page .qj-wrap { position: relative; margin-top: 64px; }
.agent-page .qj-track { position: absolute; top: 13px; left: calc(50% / var(--qj-n, 5)); right: calc(50% / var(--qj-n, 5)); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.agent-page .qj-fill { position: absolute; inset: 0 auto 0 0; width: var(--qj, 0%); border-radius: 2px; background: var(--brand); box-shadow: 0 0 12px rgba(99, 74, 252, .8); transition: width .8s var(--ease-out); }
.agent-page .qj-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--qj-n, 5), minmax(0, 1fr)); gap: 44px 14px; }
.agent-page .qj-step { position: relative; display: flex; flex-direction: column; gap: 18px; margin-top: 44px; padding: 22px 18px 22px; border-radius: var(--r-card); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-inv); transition: background-color .4s, box-shadow .4s, transform .4s var(--ease-out); }
.agent-page .qj-node { position: absolute; top: -44px; left: 50%; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2); color: #fff; transition: background-color .4s, box-shadow .4s; }
.agent-page .qj-node svg { width: 15px; height: 15px; display: none; }
.agent-page .qj-step.done .qj-node { background: var(--brand); box-shadow: none; }
.agent-page .qj-step.done .pipe-check-done { display: block; }
.agent-page .qj-step.current .qj-node { background: var(--ink); box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 6px rgba(99, 74, 252, .22); color: var(--brand-soft); }
.agent-page .qj-step.current .pipe-spinner { display: block; animation: pipeSpin .8s linear infinite; }
.agent-page .qj-step.current { background: rgba(99, 74, 252, .16); box-shadow: inset 0 0 0 1.5px var(--brand), 0 24px 50px -24px rgba(99, 74, 252, .8); transform: translateY(-4px); }
.agent-page .qj-num { font: 500 28px/1 var(--font-display); letter-spacing: -0.03em; color: var(--text-inv-3); transition: color .4s; }
.agent-page .qj-step.done .qj-num, .agent-page .qj-step.current .qj-num { color: var(--brand-soft); }
.agent-page .qj-txt { display: flex; flex-direction: column; gap: 6px; }
.agent-page .qj-txt b { font: 600 15.5px/1.3 var(--font-body); color: #fff; }
.agent-page .qj-txt span { font-size: 13.5px; line-height: 1.5; color: var(--text-inv-2); }
/* "Failed Spam Check?" hangs off step 02 */
.agent-page .qj-branch { position: relative; grid-column: 2; grid-row: 2; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 8px, transparent 8px 16px); transition: box-shadow .4s, background-color .4s; }
.agent-page .qj-branch::before { content: ""; position: absolute; left: 50%; top: -44px; height: 44px; border-left: 1.5px dashed rgba(255, 255, 255, .28); }
.agent-page .qj-branch .qj-num { font-size: 18px; }
.agent-page .qj-branch .qj-txt b { font-size: 14px; }
.agent-page .qj-branch.is-live { background-color: rgba(239, 68, 68, .1); box-shadow: inset 0 0 0 1.5px rgba(248, 113, 113, .6); }
.agent-page .qj-takeaway { max-width: 780px; margin: 64px auto 0; text-align: center; font: 500 clamp(18px, 1.6vw, 22px)/1.5 var(--font-display); letter-spacing: -0.01em; color: #fff; }
@media (max-width: 1024px) {
  .agent-page .qj-wrap { margin-top: 40px; padding-left: 44px; }
  .agent-page .qj-track { top: 26px; bottom: 26px; left: 13px; right: auto; width: 2px; height: auto; }
  .agent-page .qj-fill { inset: 0 0 auto 0; width: 100%; height: var(--qj, 0%); transition-property: height; }
  .agent-page .qj-steps { grid-template-columns: 1fr; gap: 10px; }
  .agent-page .qj-step { margin-top: 0; flex-direction: row; align-items: center; gap: 16px; padding: 16px 18px; }
  .agent-page .qj-node { top: 50%; left: -45px; margin: -14px 0 0; }
  .agent-page .qj-num { font-size: 22px; min-width: 32px; }
  .agent-page .qj-step.current { transform: translateX(4px); }
  .agent-page .qj-branch { grid-column: 1; grid-row: auto; margin-left: 32px; }
  .agent-page .qj-branch::before { left: -18px; top: -10px; height: 38px; border-left: 0; border-bottom: 1.5px dashed rgba(255, 255, 255, .28); width: 14px; border-left: 1.5px dashed rgba(255, 255, 255, .28); }
  .agent-page .qj-takeaway { margin-top: 40px; }
}

/* ---------- 05–07 CAPABILITIES — alternating split: copy + icon-tile list · visual on a purple gradient card ---------- */
.agent-page .qc { padding-block: calc(var(--section-y) * .8); }
.agent-page .qc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 88px; align-items: center; }
.agent-page .qc-rev .qc-visual { order: -1; }
.agent-page .qc-copy .lede { margin-top: 20px; max-width: 540px; }
.agent-page .qc-list { margin-top: 36px; display: flex; flex-direction: column; gap: 26px; }
.agent-page .qc-list li { display: flex; gap: 18px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.agent-page .qc-list li b { display: block; margin-bottom: 4px; font: 500 19px/1.3 var(--font-display); letter-spacing: -0.015em; color: var(--text); }
.agent-page .qc-ic { width: 44px; height: 44px; border-radius: var(--r-sm); flex-shrink: 0; display: grid; place-items: center; background: #EFF1FF; color: #634AFC; }
.agent-page .qc-ic svg { width: 18px; height: 18px; }
.agent-page .qc-visual { display: grid; place-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-card-lg); overflow: hidden;
  background: radial-gradient(85% 70% at 0% 45%, #5B2DFF 0%, #7658FF 32%, rgba(150, 132, 255, .45) 58%, transparent 80%), #F4F2FF; }
.agent-page .qc-visual img { width: 100%; max-width: 520px; }
.agent-page .qc-visual-plain { padding: 0; background: none; }
.agent-page .qc-visual-plain img { max-width: 100%; border-radius: var(--r-card-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .agent-page .qc-grid { grid-template-columns: 1fr; gap: 40px; }
  .agent-page .qc-rev .qc-visual { order: 0; }
}

/* ---------- CROSS-LINK banner to another agent (e.g. ATS Expert → Quizzy) — lavender card, mock left, copy right ---------- */
.agent-page .qp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: clamp(28px, 4.5vw, 64px); border-radius: var(--r-card-lg);
  background: radial-gradient(85% 90% at 0% 50%, #5B2DFF 0%, #7658FF 30%, rgba(150, 132, 255, .45) 55%, transparent 78%), #F4F2FF; box-shadow: inset 0 0 0 1px rgba(99, 74, 252, .08); }
.agent-page .qp-mock { display: grid; place-items: center; }
.agent-page .qp-card { width: 100%; max-width: 460px; padding: 22px 24px; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -24px rgba(33, 18, 140, .5); animation: qzFloat 3.2s ease-in-out infinite alternate; }
.agent-page .qp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agent-page .qp-card-title { font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.agent-page .qp-badge { padding: 5px 10px; border-radius: 100px; background: var(--live-bg); color: #096931; font: 600 12px/1 var(--font-body); }
.agent-page .qp-q { margin-top: 16px; font: 500 16px/1.5 var(--font-body); color: var(--text); }
.agent-page .qp-a { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--page); color: var(--text-2); font-size: 15px; line-height: 1.5; }
.agent-page .qp-copy h2 { font-size: clamp(28px, 2.8vw, 40px); }
.agent-page .qp-copy p { margin-top: 16px; color: var(--text-2); font-size: var(--fs-lede); max-width: 480px; }
.agent-page .qp-copy .btn { margin-top: 28px; }
@media (max-width: 900px) { .agent-page .qp { grid-template-columns: 1fr; gap: 36px; } }
@media (prefers-reduced-motion: reduce) { .agent-page .qp-card { animation: none; } }

/* ---------- Tasker: hero task list (same window as the chat agents; rows in the message box) ---------- */
.agent-page .qz-prompt-bell svg { width: 16px; height: 16px; color: #fff; }
.agent-page .qz-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.agent-page .qz-task { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background-color .4s, box-shadow .4s; }
.agent-page .qz-task-tick { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); color: transparent; transition: background-color .35s, box-shadow .35s, color .35s; }
.agent-page .qz-task-tick svg { width: 13px; height: 13px; }
.agent-page .qz-task.is-done .qz-task-tick { background: #1BCAA7; box-shadow: none; color: #fff; }
.agent-page .qz-task-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.agent-page .qz-task-t { font: 500 15.5px/1.35 var(--font-body); color: #fff; transition: color .35s; }
.agent-page .qz-task.is-done .qz-task-t { color: rgba(255, 255, 255, .55); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.agent-page .qz-task-meta { display: flex; align-items: center; gap: 8px; }
.agent-page .qz-task-who { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(184, 173, 255, .22); color: #DCD6FF; font: 600 10px/1 var(--font-body); }
.agent-page .qz-task-due { padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); font: 500 11.5px/1 var(--font-body); }
.agent-page .qz-task-due.is-over { background: rgba(255, 107, 107, .18); color: #FF9C9C; }
.agent-page .qz-task.is-hot { background: rgba(123, 92, 255, .14); box-shadow: inset 0 0 0 1px rgba(184, 173, 255, .4); }
.agent-page .qz-msgbox-tasks .qz-msgbox-row { padding-left: 0; }

/* ---- Added for the live site (not in the design export) ---- */
/* Form states set by /assets/js/agent-meet-form.js (the old pages styled these per page). */
.agent-page .ami-meet-input.has-error { color: #E0245E; box-shadow: inset 0 -1.5px 0 #E0245E; }
.agent-page .ami-meet-field .field-error-msg { display: block; margin-top: 4px; font: 500 12px/1.3 var(--font-body); color: #E0245E; }
.agent-page .ami-meet-form { flex-wrap: wrap; }   /* the send error goes on its own line, not into the inputs' row */
.agent-page .ami-meet-form .form-send-error { flex-basis: 100%; margin: 8px 0 0; font-size: 13px; color: #E0245E; }
/* Video frame: a link to the video on YouTube with its thumbnail behind the play button;
   /assets/js/agent-video.js swaps in the player on click. */
.agent-page a.ami-video { color: #fff; text-decoration: none; }
.agent-page .ami-video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The thumbnails are light; the design's white play button and caption were drawn on black. */
.agent-page a.ami-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 20, .38), rgba(11, 10, 20, .62)); pointer-events: none; }
/* Phones: the video is 16:9, so the frame is too (the design's 4:3.4 crops the thumbnail and letterboxes the player). */
@media (max-width: 767px) { .agent-page .ami-video { aspect-ratio: 16 / 9; } }
.agent-page .ami-video > .ami-video-play { position: relative; z-index: 1; }
.agent-page .ami-video > .agent-video-caption { z-index: 1; }
.agent-page .ami-video.is-playing { cursor: auto; }
.agent-page .ami-video.is-playing > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
