/* Muve — AI assistants: the ask-it box (hero), the training bench (sticky story), the two doors (team / customer) on a glow,
   the fan of documents and the three asks, the try-one block on a glow, the questions. */
[data-page="ai-assistants"] { --text-2xl: clamp(1.875rem, 1.2rem + 2.4vw, 3.5rem); }

/* ---------- hero: ribbon on the left (data-flip), the ask box over it on an opaque card, copy on paper at the right ---------- */
.xh { min-height: 0; }
.xh .phero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; padding-block: clamp(20px, 3.4vh, 44px) calc(clamp(20px, 3vh, 40px) + clamp(20px, 4vw, 64px)); }
.xh .phero__copy { order: 2; min-width: 0; }
.xh .phero__art { order: 1; }
.xh .phero__lede { margin-top: clamp(14px, 2vh, 24px); }
.xh .phero__cta { margin-top: clamp(18px, 2.6vh, 30px); }
.xh .crumb { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 4px 14px; margin-bottom: 22px; border-radius: var(--r-pill); background: var(--white); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .08); }
.xh .crumb a { display: inline-flex; align-items: center; min-height: 32px; }

.ask { position: relative; display: grid; gap: 12px; padding: clamp(14px, 1.6vw, 20px); border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .08), var(--sh-2); }
.js .ask { animation: ask-in var(--t-enter) var(--ease-out) both; }
@keyframes ask-in { from { opacity: 0; translate: 0 26px; } }
.ask__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--text-sm); color: var(--ink-2); }
.ask__hint { font-size: var(--text-sm); font-weight: 400; color: var(--ink); }
.ask__qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ask__q { --q: var(--blue-ink); position: relative; min-height: 48px; padding: 8px 12px 8px 26px; border-radius: 10px; text-align: left; font-size: .8125rem; line-height: 1.3; font-weight: 400; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .1); transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out); }
.ask__q::before { content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--q); transition: background-color var(--t-hover) var(--ease-out), rotate var(--t-panel) var(--ease-out); }
.ask__q:nth-child(2) { --q: var(--violet-ink); } .ask__q:nth-child(3) { --q: var(--pink-ink); } .ask__q:nth-child(4) { --q: var(--cyan-ink); }
@media (hover: hover) and (pointer: fine) { .ask__q:not([aria-pressed="true"]):hover { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--q); } }
.ask__q:not([aria-pressed="true"]):focus-visible { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--q); }
.ask__q[aria-pressed="true"] { background: var(--q); color: #ffffff; box-shadow: var(--sh-1); }
.ask__q[aria-pressed="true"]::before { background: #ffffff; rotate: 45deg; }
.ask__box { display: grid; gap: 10px; padding: 10px; border-radius: 14px; background: var(--paper); }
.ask__field { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--blue-ink); font-size: var(--text-sm); color: var(--ink); }
.ask__field .ic { width: 18px; height: 18px; color: var(--blue-ink); }
.ask__out { min-height: 11.5em; }
.ask__a { display: grid; gap: 10px; align-content: start; }
.ask__a[hidden] { display: none; }
.ask__a > p:first-child { font-size: var(--text-base); line-height: 1.5; color: var(--ink); padding: 2px 4px; }
.ask__cite { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 6px; background: var(--white); box-shadow: inset 3px 0 0 var(--blue-ink); font-size: .8125rem; line-height: 1.4; color: var(--ink-2); transition: opacity var(--t-panel) var(--ease-out), translate var(--t-panel) var(--ease-out); }
.ask__cite i { width: 8px; height: 8px; margin-top: 5px; background: var(--blue-ink); flex: none; }
.ask__cite b { color: var(--ink); }
.ask__a.is-writing .ask__cite { opacity: 0; translate: 0 6px; }
@media (min-width: 901px) and (max-width: 1180px), (min-width: 901px) and (max-height: 820px) {
  .ask { gap: 8px; padding: 12px; }
  .ask__q { min-height: 40px; padding-block: 5px; font-size: .75rem; }
  .ask__a > p:first-child { font-size: .8125rem; line-height: 1.4; }
  .ask__out { min-height: 12.5em; }
}
@media (max-width: 900px) {
  .xh .phero__grid { grid-template-columns: 1fr; }
  .xh .phero__copy { order: 1; }
  .xh .phero__art { order: 2; }
  .xh .mesh { top: auto; height: var(--mesh-h, 56%); }
  .xh .crumb { font-size: .8125rem; flex-wrap: nowrap; white-space: nowrap; gap: 0 5px; padding: 0 12px; margin-bottom: 14px; max-width: 100%; }
  .xh .crumb a { min-height: 44px; }
  .ask__qs { grid-template-columns: 1fr; }
  .ask__out { min-height: 14em; }
}

/* ---------- the training bench: what it has learned, by name, filling in as the story steps past (X 11/20: no abstract cells) ---------- */
.ast__when { color: var(--hue-ink); margin-bottom: 12px; }
.ast .story__step .t-body { margin-top: 12px; }
.ast .story__step .next { margin-top: 14px; }
.bench { display: grid; gap: 16px; padding: clamp(16px, 2vw, 28px); border-radius: 18px; background: var(--navy); color: var(--paper); box-shadow: var(--sh-2); }
.bench__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--text-sm); color: var(--navy-muted); }
.bench .tag { color: var(--m-cyan); } .bench .tag i { background: var(--m-cyan); }
.bench__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font: 500 .75rem/1.2 var(--mono); letter-spacing: .04em; }
.bench__in li { --z: var(--cyan); display: grid; justify-items: start; gap: 8px; padding: 10px; background: rgba(255, 255, 255, .06); color: var(--navy-muted); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .16); transition: background-color var(--t-panel) var(--ease-out), color var(--t-panel) var(--ease-out), box-shadow var(--t-panel) var(--ease-out); }
.bench__in [data-on="site"] { --z: var(--green); } .bench__in [data-on="rules"] { --z: var(--pink); } .bench__in [data-on="test"] { --z: var(--amber); }
.bench__in .ic { width: 18px; height: 18px; }
.story[data-active="docs"] .bench__in [data-on="docs"], .story[data-active="site"] .bench__in [data-on="site"], .story[data-active="rules"] .bench__in [data-on="rules"], .story[data-active="test"] .bench__in [data-on="test"] { background: var(--z); color: var(--ink); box-shadow: inset 0 3px 0 var(--z); }
.bench__mem { display: grid; gap: 2px; font-size: var(--text-sm); line-height: 1.3; }
.bench__mem li { --z: var(--cyan); display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--navy-muted); opacity: .45; box-shadow: inset 2px 0 0 rgba(255, 255, 255, .16); transition: opacity var(--t-panel) var(--ease-out), color var(--t-panel) var(--ease-out), box-shadow var(--t-panel) var(--ease-out), background-color var(--t-panel) var(--ease-out); }
.bench__mem [data-z="2"] { --z: var(--green); } .bench__mem [data-z="3"] { --z: var(--pink); } .bench__mem [data-z="4"] { --z: var(--amber); }
.bench__mem .ic { width: 16px; height: 16px; }
.bench__mem small { font: 500 .6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.bench__mem li.is-on { opacity: 1; color: var(--paper); background: rgba(255, 255, 255, .05); box-shadow: inset 2px 0 0 var(--z); }
.bench__mem li.is-on .ic, .bench__mem li.is-on small { color: var(--z); }
.bench__say { position: relative; min-height: 3.2em; font-size: var(--text-base); line-height: 1.45; color: var(--paper); }
.bench__say span { position: absolute; inset: 0 0 auto 0; opacity: 0; translate: 0 6px; transition: opacity var(--t-panel) var(--ease-out), translate var(--t-panel) var(--ease-out); }
.story[data-active="docs"] .bench__say [data-on="docs"], .story[data-active="site"] .bench__say [data-on="site"], .story[data-active="rules"] .bench__say [data-on="rules"], .story[data-active="test"] .bench__say [data-on="test"], .story:not([data-active]) .bench__say [data-on="test"] { opacity: 1; translate: 0 0; }
@media (max-width: 900px) {
  .bench { gap: 8px; padding: 12px 14px; border-radius: 14px; }
  .bench__in li { padding: 6px; gap: 4px; font-size: .75rem; }
  .bench__in .ic { display: none; }
  .bench__mem { gap: 0; font-size: .8125rem; } .bench__mem li { padding: 3px 8px; gap: 8px; }
  .bench__say { font-size: var(--text-sm); min-height: 2.9em; }
}

/* ---------- two doors: the same question from your team and from a customer ---------- */
.asw__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.asw__copy { display: grid; gap: 18px; justify-items: start; }
.asw__copy .label { color: var(--hue-ink); }
.asw__pick { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper-2); }
.asw__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: .9375rem; font-weight: 400; background: transparent; color: var(--ink); transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out); }
.asw__btn .ic { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .asw__btn:not([aria-pressed="true"]):hover { background: var(--white); color: var(--ink); } }
.asw__btn:not([aria-pressed="true"]):focus-visible { background: var(--white); color: var(--ink); }
.asw__btn[aria-pressed="true"] { background: var(--cyan-ink); color: #ffffff; box-shadow: var(--sh-1); }
.asw__btn[data-who="customer"][aria-pressed="true"] { background: var(--pink-ink); }
.asw__stage { position: relative; isolation: isolate; padding: clamp(12px, 3vw, 40px); }
.door { --dc: var(--cyan-ink); display: grid; gap: 14px; padding: clamp(18px, 2.2vw, 28px); border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .08), var(--sh-2); border-top: 6px solid var(--dc); transition: border-color var(--t-panel) var(--ease-out); }
.door[data-who="customer"] { --dc: var(--pink-ink); }
.door__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--text-sm); color: var(--ink-2); }
.door__q { justify-self: start; padding: 10px 14px; border-radius: 14px 14px 14px 2px; background: var(--paper-2); color: var(--ink); }
.door__a { min-height: 7.6em; padding: 14px 16px; border-radius: 14px 14px 2px 14px; background: var(--dc); color: #ffffff; font-size: var(--text-lg); line-height: 1.45; transition: background-color var(--t-panel) var(--ease-out), opacity var(--t-hover) var(--ease-out); }
.door.is-swap .door__a { opacity: 0; }
.door__sees { display: flex; flex-wrap: wrap; gap: 6px; }
.door__sees li { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px; background: var(--paper); font: 500 .75rem/1 var(--mono); letter-spacing: .04em; color: var(--ink); transition: opacity var(--t-panel) var(--ease-out); }
.door__sees i { width: 8px; height: 8px; background: var(--green-ink); transition: background-color var(--t-panel) var(--ease-out); }
.door__sees li.is-shut { color: var(--ink-3); text-decoration: line-through; }
.door__sees li.is-shut i { background: var(--ink-3); }
@media (max-width: 900px) { .asw__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .asw__btn { padding: 0 10px; font-size: .875rem; } }

/* ---------- a fan of documents that spreads as it crosses the screen, and the three asks ---------- */
.fan { --sp: clamp(52px, 12.5vw, 190px); --q: clamp(0, calc((var(--p, .5) - .12) * 2.4), 1); position: relative; display: grid; place-items: center; height: clamp(150px, 16vw, 210px); margin-bottom: clamp(16px, 3vw, 40px); }
.fan__doc { --c: var(--hue); grid-area: 1 / 1; display: grid; align-content: start; gap: 7px; width: clamp(104px, 12vw, 164px); padding: 12px; border-radius: 8px; background: var(--white); border-top: 6px solid var(--c); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .08), var(--sh-2); translate: calc(var(--n) * var(--q) * var(--sp)) calc(var(--n) * var(--n) * var(--q) * 7px); rotate: calc(var(--n) * var(--q) * 7deg); }
.fan__doc b { font: 500 .75rem/1.25 var(--mono); letter-spacing: .04em; color: var(--ink); min-height: 2.5em; }
.fan__doc i { height: 6px; background: color-mix(in srgb, var(--c) 34%, var(--paper)); }
.fan__doc i:nth-of-type(2) { width: 78%; } .fan__doc i:nth-of-type(3) { width: 52%; }
.asj__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.asj__grid li { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.4vw, 32px); border-radius: 18px; overflow: hidden; min-height: 250px; }
@media (max-width: 900px) { .asj__grid { grid-template-columns: 1fr; } .asj__grid li { min-height: 0; padding-bottom: 72px; } }

/* ---------- try one, on a glow ---------- */
.asc__block { position: relative; isolation: isolate; padding: clamp(10px, 3vw, 44px); }
.asc__card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 64px); align-items: center; padding: clamp(22px, 3.4vw, 56px); border-radius: 24px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .08), var(--sh-2); }
.asc__say { display: grid; gap: 18px; justify-items: start; }
.asc__say .label { color: var(--hue-ink); }
.asc__price { display: grid; gap: 12px; justify-items: start; padding: clamp(16px, 2vw, 26px); border-radius: 16px; background: var(--violet-ink); color: #ffffff; }
.asc__price .tag { color: #ffffff; } .asc__price .tag i { background: var(--amber); }
.asc__num { display: grid; gap: 4px; }
.asc__num b { font-size: var(--text-2xl); font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.asc__num span { font: 500 .75rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #e6e0ff; }
.asc__price .t-small { color: #f1eeff; }
.asc__cells { width: 132px; height: 24px; }
.asc__cells rect { fill: var(--amber); animation: asc-cell 2.6s var(--ease-io) infinite; }
.asc__cells rect:nth-child(2) { fill: var(--pink); animation-delay: 160ms; } .asc__cells rect:nth-child(3) { fill: var(--cyan); animation-delay: 320ms; } .asc__cells rect:nth-child(4) { fill: var(--green); animation-delay: 480ms; } .asc__cells rect:nth-child(5) { fill: #ffffff; animation-delay: 640ms; }
@keyframes asc-cell { 0%, 60%, 100% { opacity: 1; } 30% { opacity: .35; } }
.asc__price .next { color: #ffffff; }
@media (hover: hover) and (pointer: fine) { .asc__price .next:hover { color: var(--amber); } }
.asc__price .next:focus-visible { color: var(--amber); outline-color: #ffffff; }
@media (max-width: 1000px) { .asc__card { grid-template-columns: 1fr; } }

/* ---------- questions ---------- */
.asq { background: linear-gradient(180deg, color-mix(in srgb, var(--violet) 9%, var(--paper)), var(--paper) 70%); }
.asq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.asq__head { display: grid; gap: 20px; }
.asq__head .label { color: var(--hue-ink); }
.asq__human { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--r); background: var(--violet-ink); color: #ffffff; box-shadow: var(--sh-2); }
.asq__human .ic { color: var(--pink); margin-top: 2px; }
.asq__human .link { color: #ffffff; text-decoration-color: rgba(255, 255, 255, .6); }
@media (hover: hover) and (pointer: fine) { .asq__human .link:hover { color: #ffffff; text-decoration-color: #ffffff; } }
.asq__human .link:focus-visible { color: #ffffff; text-decoration-color: #ffffff; outline-color: #ffffff; }
.asq__human a, .asq__more a { display: inline-block; padding-block: 4px; }
.asq__more { color: var(--ink-2); max-width: 46ch; }
.asq__list { padding: clamp(8px, 1.6vw, 20px) clamp(16px, 2.4vw, 32px) clamp(16px, 2vw, 28px); border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .08), var(--sh-2); border-top: 5px solid var(--violet); }
.asq__list .qa:first-of-type { border-top: 0; }
.asq__list .qa:last-of-type { border-bottom: 0; }
@media (max-width: 900px) { .asq__grid { grid-template-columns: 1fr; } .asq__human a, .asq__more a { display: inline; padding-block: 11px; } .asq__human p, .asq__more { line-height: 2.7; } }

@media (prefers-reduced-motion: reduce) {
  .js .ask, .asc__cells rect { animation: none; }
  .ask__q, .ask__q::before, .ask__cite, .bench__in li, .bench__mem li, .bench__say span, .asw__btn, .door, .door__a, .door__sees li, .door__sees i { transition: none; }
}

@media (max-width: 380px) { .xh .crumb { flex-wrap: wrap; white-space: normal; border-radius: 14px; } }
.asc__say, .asc__price { min-width: 0; }
@media (max-width: 420px) { .asc__say .btn { white-space: normal; min-height: 48px; padding-block: 10px; line-height: 1.35; } .asc__card { padding: 18px 16px; } .asc__block { padding: 6px; } }

/* ---------- the other four, and the next step ---------- */
.asm { background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--blue) 8%, var(--paper))); }
.asm .sec-head { align-items: end; }
.asm .sec-head .next { justify-self: end; }
.asm__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.asm__card { display: grid; gap: 10px; align-content: start; height: 100%; padding: clamp(18px, 2vw, 26px); border-radius: 16px; border-top: 5px solid var(--hue); color: var(--ink); }
a.asm__card { display: grid; }
.asm__card b { font-size: var(--text-lg); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.asm__card span:not(.ic-tile) { font-size: var(--text-sm); line-height: 1.45; color: var(--ink-2); }
.asm__card .arrow { margin-top: 6px; color: var(--hue-ink); }
.asm__close { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; margin-top: clamp(32px, 5vw, 64px); padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid rgba(11, 27, 51, .14); }
.asm__close .t-h3 { max-width: 34ch; }
@media (max-width: 1000px) { .asm__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .asm .sec-head .next { justify-self: start; } }
@media (max-width: 760px) { .asm__close { grid-template-columns: 1fr; justify-items: start; } .asm__close .btn { white-space: normal; min-height: 48px; padding-block: 10px; line-height: 1.35; } }
@media (max-width: 520px) { .asm__grid { grid-template-columns: 1fr; } }

/* ---------- 11/19 phone pass: no one-word last lines in headings, phone numbers never split ---------- */
@media (max-width: 760px) { main :is(h1, h2, h3) { text-wrap: balance; } }
main a[href^="tel:"] { white-space: nowrap; }
/* phone: five 104px documents can't fan out across 350px without covering each other's titles, so they deal into two
   rows (three, then two) and keep a small scroll-driven tilt; the learned-so-far tabs go two by two so "Documents" fits */
@media (max-width: 560px) {
  .fan { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; height: auto; padding-block: 6px; }
  .fan__doc { width: calc((100% - 20px) / 3); translate: 0 calc(var(--q) * -4px); rotate: calc(var(--n) * var(--q) * 2.5deg); }
}
@media (max-width: 480px) { .bench__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
