/* =========================================================================
   AscendX — /solutions/ai-workforce
   Page-specific layer. Inherits every token, button, card and section
   variant from assets/styles.css. Nothing here overrides the base system;
   it only adds what this page needs.

   Handover-brief token aliases are declared once, so brief-named tokens
   (--brand, --surface, --surface-alt, --border, --text-inverse-muted)
   and the live AscendX palette are the same values.
   ========================================================================= */

:root {
  --brand:               var(--blue);
  --surface:             var(--paper);
  --surface-alt:         var(--mist);
  --border:              var(--line);
  --text-inverse-muted:  var(--on-dark-mut);

  /* Five Revenue Drivers™ — driver colours (see handover note) */
  --driver-attract:  #6E9BFF;
  --driver-convert:  #5B8CFF;
  --driver-maximise: #E8A33D;
  --driver-retain:   #10B981;
  --driver-multiply: #4FD1C5;
}

/* ---- Mobile nav ------------------------------------------------------
   app.js toggles .nav__links.is-open, but the base stylesheet has no rule
   for it, so the hamburger opens nothing and the CTA pushes the toggle off
   screen below ~420px. Both are site-wide; fixed here so this page is
   usable on a phone. Lift verbatim into styles.css to fix every page.
   -------------------------------------------------------------------- */
@media (max-width: 940px) {
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--border);
    padding: 6px 24px 14px; box-shadow: var(--shadow-md);
  }
  .nav__links.is-open a { padding: .85em .2em; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav__links.is-open a:last-child { border-bottom: 0; }
}
@media (max-width: 420px) {
  .nav__cta .btn { font-size: .76rem; padding: .8em 1em; }
  .logo { font-size: 1.05rem; }
}

/* ---- Breadcrumb ------------------------------------------------------ */
.crumb { padding-top: 22px; }
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .55em; }
.crumb li { display: inline-flex; align-items: center; gap: .55em; }
.crumb a, .crumb span {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-inverse-muted);
}
.crumb a { transition: color .15s; }
.crumb a:hover { color: #fff; }
.crumb [aria-current] { color: var(--on-dark); }
.crumb .sep { color: #3A4356; }
.crumb__back { display: none; }
@media (max-width: 640px) {
  .crumb ol { display: none; }
  .crumb__back { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-inverse-muted); }
}

/* ---- Hero ------------------------------------------------------------ */
.aw-hero {
  background: var(--ink); color: var(--on-dark);
  position: relative; overflow: hidden;
  padding-block: 0 clamp(56px, 8vh, 104px);
}
.aw-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(var(--line-dark) 0 1px, transparent 1px 48px),
    radial-gradient(120% 80% at 82% 0%, rgba(46,107,255,.20), transparent 62%);
  opacity: .85;
  -webkit-mask-image: linear-gradient(#000, transparent 92%);
  mask-image: linear-gradient(#000, transparent 92%);
}
.aw-hero .container { position: relative; z-index: 1; }
.aw-hero h1 { color: #fff; max-width: 13ch; }
.aw-hero .lead { color: var(--on-dark-mut); max-width: 48ch; margin-top: 1.4rem; }
.aw-hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(36px, 5vw, 76px); align-items: start; padding-top: clamp(40px, 6vh, 72px); }
@media (max-width: 980px) { .aw-hero__grid { grid-template-columns: 1fr; } }

/* ---- Capture field --------------------------------------------------- */
.capture { margin-top: 2.1rem; max-width: 34rem; }
.capture__label { display: block; font-size: .8rem; font-weight: 600; color: var(--on-dark); margin-bottom: .6rem; }
.capture__row {
  display: flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-dark); border-radius: 6px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.capture__row:focus-within { border-color: var(--blue-glow); box-shadow: 0 0 0 4px rgba(46,107,255,.18); background: rgba(255,255,255,.09); }
.capture__row.is-invalid { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,.14); }
.capture__input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: var(--fs-small);
  color: #fff; background: transparent; border: 0; padding: 1em 1.1em;
}
.capture__input::placeholder { color: #6B7688; }
.capture__input:focus { outline: none; }
.capture__input:disabled { color: var(--on-dark-mut); }
.capture__btn { flex: none; border-radius: 0 5px 5px 0; margin: -1px -1px -1px 0; padding-inline: 1.5em; }
.capture__btn[disabled] { opacity: .72; cursor: progress; }
.capture__hint { font-size: .84rem; color: var(--on-dark); margin-top: .95rem; }
.capture__privacy { font-size: .76rem; line-height: 1.55; color: var(--text-faint); margin-top: .55rem; max-width: 46ch; }
.capture__privacy a { color: var(--on-dark-mut); text-decoration: underline; text-underline-offset: 2px; }
.capture__privacy a:hover { color: #fff; }
.capture__error {
  display: none; align-items: flex-start; gap: .55em;
  margin-top: .8rem; font-size: .84rem; color: #FFB4B6;
}
.capture__error.is-shown { display: flex; }
.capture__error svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.capture__error a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.capture__restart { display: none; margin-top: 1rem; font-size: .84rem; }
.capture.is-ready .capture__restart { display: block; }
.capture.is-ready .capture__row,
.capture.is-ready .capture__label,
.capture.is-ready .capture__privacy,
.capture.is-ready .capture__hint { display: none; }
.capture__btn .spinner { display: inline-block; vertical-align: -2px; margin-right: .5em; }
.capture__restart button {
  background: none; border: 0; padding: 0; color: var(--blue-glow);
  font: inherit; font-size: .84rem; text-decoration: underline; text-underline-offset: 3px;
}
.spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: aw-spin .7s linear infinite; }
@keyframes aw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }
@media (max-width: 520px) {
  .capture__row { flex-wrap: wrap; }
  .capture__btn { width: 100%; border-radius: 0 0 5px 5px; margin: 0; }
}

/* ---- Demo panel (the signature element) ------------------------------ */
.demo {
  background: var(--charcoal-2); border: 1px solid var(--line-dark);
  border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.42);
}
.demo__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-dark);
  background: rgba(255,255,255,.02);
}
.demo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); flex: none; position: relative; }
.demo__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--emerald); opacity: .5; animation: aw-pulse 2.4s var(--ease) infinite;
}
@media (prefers-reduced-motion: reduce) { .demo__dot::after { animation: none; } }
@keyframes aw-pulse { 0% { transform: scale(.7); opacity: .7 } 70% { transform: scale(1.5); opacity: 0 } 100% { opacity: 0 } }
.demo__title { font-size: .84rem; font-weight: 600; color: #fff; }
.demo__state { margin-left: auto; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-mut); }
.demo__body { padding: 20px 18px; display: grid; gap: 14px; min-height: 336px; align-content: start; }
.msg { max-width: 84%; padding: 12px 15px; border-radius: 12px; font-size: .89rem; line-height: 1.5; }
.msg--them { background: rgba(255,255,255,.07); color: var(--on-dark); border-bottom-left-radius: 4px; justify-self: start; }
.msg--us { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.msg--sys { justify-self: stretch; max-width: 100%; background: transparent; border: 1px dashed var(--line-dark); color: var(--on-dark-mut); font-size: .82rem; }
.demo__composer {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-top: 1px solid var(--line-dark); background: rgba(255,255,255,.02);
}
.demo__composer input {
  flex: 1; font: inherit; font-size: .84rem; color: #fff; background: transparent; border: 0; padding: 6px 0;
}
.demo__composer input::placeholder { color: #6B7688; }
.demo__composer input:focus { outline: none; }
.demo__composer input:disabled::placeholder { color: #5A6473; }
.demo__send { flex: none; width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.05); color: var(--on-dark); display: grid; place-items: center; }
.demo__send:hover:not([disabled]) { background: var(--blue); border-color: var(--blue); color: #fff; }
.demo__send[disabled] { opacity: .4; cursor: not-allowed; }
.demo__send svg { width: 15px; height: 15px; }

/* Learning sequence */
.learn { display: grid; gap: 2px; }
.learn__step {
  display: flex; align-items: center; gap: 12px; padding: 13px 4px;
  font-size: .88rem; color: #5F6A7C; transition: color .3s var(--ease);
}
.learn__step .tick { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.learn__step .tick svg { width: 10px; height: 10px; opacity: 0; color: #fff; }
.learn__step.is-active { color: #fff; }
.learn__step.is-active .tick { border-color: var(--blue-glow); }
.learn__step.is-active .tick::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-glow); }
.learn__step.is-done { color: var(--on-dark-mut); }
.learn__step.is-done .tick { background: var(--emerald-deep); border-color: var(--emerald-deep); }
.learn__step.is-done .tick svg { opacity: 1; }
.learn__bar { height: 3px; border-radius: 99px; background: var(--line-dark); overflow: hidden; margin-top: 14px; }
.learn__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--emerald)); transition: width .6s var(--ease); }
@media (prefers-reduced-motion: reduce) { .learn__bar i { transition: none; } }

/* ---- Industries band ------------------------------------------------- */
.indband { padding-block: 30px; }
.indband__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; }
.indband__item {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(.98rem, .85rem + .4vw, 1.18rem);
  letter-spacing: -.01em; color: var(--text); padding: 6px clamp(16px, 2.6vw, 34px);
  border-left: 1px solid var(--border);
}
.indband__item:first-child { border-left: 0; }
.indband__tail { display: block; text-align: center; font-size: .84rem; color: var(--text-faint); margin-top: 14px; }
@media (max-width: 720px) {
  .indband__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); }
  .indband__item { border-left: 0; background: var(--surface-alt); text-align: center; padding: 16px 10px; font-size: .95rem; }
}

/* ---- How it works ---------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 19px; left: 12%; right: 12%; height: 1px; background: var(--border);
}
.step { position: relative; padding: 0 clamp(12px, 2vw, 26px); text-align: left; }
.step:first-child { padding-left: 0; }
.step__num {
  position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600; color: var(--brand); margin-bottom: 20px;
}
.step h3 { font-size: 1.14rem; margin-bottom: .45rem; }
.step p { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.55; max-width: 30ch; }
.step__chev { position: absolute; top: 12px; right: -8px; color: var(--text-faint); width: 16px; height: 16px; z-index: 1; background: var(--surface); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before { top: 8px; bottom: 8px; left: 19px; right: auto; width: 1px; height: auto; }
  .step { padding: 0 0 0 62px; }
  .step:first-child { padding-left: 62px; }
  .step__num { position: absolute; left: 0; top: 0; margin: 0; }
  .step__chev { display: none; }
  .step p { max-width: none; }
}

/* ---- Workforce ------------------------------------------------------- */
.rolehero {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 60px); align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 44px);
}
@media (max-width: 900px) { .rolehero { grid-template-columns: 1fr; } }
.rolehero h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .6rem; }
.rolehero p { color: var(--text-muted); }

.rolegrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.rolegrid > * { grid-column: span 2; }
.rolegrid > *:nth-child(4), .rolegrid > *:nth-child(5) { grid-column: span 3; }
@media (max-width: 900px) { .rolegrid { grid-template-columns: repeat(2, 1fr); } .rolegrid > *, .rolegrid > *:nth-child(4), .rolegrid > *:nth-child(5) { grid-column: span 1; } }
@media (max-width: 560px) { .rolegrid { grid-template-columns: 1fr; } }
.role { display: flex; flex-direction: column; }
.role h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.role p { font-size: var(--fs-small); color: var(--text-muted); }
.role .mock { margin-top: 18px; }

/* ---- Mockups (static; illustrative) ---------------------------------- */
.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; font-size: .8rem;
}
.rolehero .mock { box-shadow: var(--shadow-md); }
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.mock__bar .t { font-weight: 600; font-size: .76rem; }
.mock__bar .s { margin-left: auto; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.mock__bar .live { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
.mock__body { padding: 14px; display: grid; gap: 9px; }
.mock .m { padding: 9px 12px; border-radius: 10px; font-size: .8rem; line-height: 1.45; max-width: 88%; }
.mock .m--them { background: var(--surface-alt); color: var(--text); justify-self: start; border-bottom-left-radius: 3px; }
.mock .m--us { background: var(--blue-tint); color: var(--blue-deep); justify-self: end; border-bottom-right-radius: 3px; }
.mock__foot { padding: 10px 14px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; background: var(--surface-alt); }
.illus {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); background: var(--surface); border: 1px solid var(--border);
  border-radius: 3px; padding: .25em .5em; white-space: nowrap;
}

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__d { text-align: center; padding: 7px 2px; border-radius: 5px; background: var(--surface-alt); }
.cal__d .w { display: block; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .06em; color: var(--text-faint); }
.cal__d .n { display: block; font-size: .78rem; font-weight: 600; }
.cal__d.on { background: var(--blue); color: #fff; }
.cal__d.on .w { color: rgba(255,255,255,.7); }
.slots { display: grid; gap: 5px; margin-top: 9px; }
.slot { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border: 1px solid var(--border); border-radius: 5px; font-size: .76rem; }
.slot.booked { background: var(--emerald-tint); border-color: transparent; color: var(--emerald-deep); font-weight: 600; }

/* question list */
.qlist { display: grid; gap: 5px; }
.qlist li { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 8px 10px; border-radius: 5px; background: var(--surface-alt); font-size: .77rem; }
.qlist .ok { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald-deep); }

/* activity rows */
.acts { display: grid; gap: 7px; }
.act { display: grid; gap: 2px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 5px; }
.act b { font-size: .78rem; font-weight: 600; }
.act span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .05em; color: var(--text-faint); }

/* call log */
.clog { font-family: var(--font-mono); font-size: .66rem; line-height: 1.85; color: var(--text-muted); max-height: 190px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.clog .t { color: var(--text-faint); }
.clog .ok { color: var(--emerald-deep); }

/* ---- Guardrails panel ------------------------------------------------ */
.guard {
  background: var(--surface-alt); border: 1px solid var(--border); border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0; padding: clamp(26px, 3.4vw, 44px);
}
.guard h2 { max-width: 20ch; }
.guard__lines { display: grid; gap: 14px; margin-top: 26px; }
.guard__line { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); color: var(--text-muted); line-height: 1.55; }
.guard__line svg { flex: none; width: 18px; height: 18px; color: var(--emerald-deep); margin-top: 2px; }

/* ---- Where this fits (drivers) --------------------------------------- */
.drivers { display: grid; gap: 2px; }
.driver {
  display: grid; grid-template-columns: 10px 8.5rem 1fr; align-items: center; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line-dark);
}
.driver:last-child { border-bottom: 0; }
.driver__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-inverse-muted); opacity: .35; }
.driver__name { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--text-inverse-muted); }
.driver__line { font-size: .86rem; color: var(--text-inverse-muted); }
.driver.is-active .driver__dot { opacity: 1; background: var(--c); }
.driver.is-active .driver__name { color: #fff; }
.driver.is-active .driver__line { color: var(--on-dark); }
@media (max-width: 560px) { .driver { grid-template-columns: 10px 1fr; } .driver__line { grid-column: 2; margin-top: -8px; } }

/* ---- Pricing --------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 940px) { .tiers { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; } }
.tier { display: flex; flex-direction: column; }
.tier--featured { border-color: var(--blue); box-shadow: var(--shadow-md); position: relative; }
.tier__flag { position: absolute; top: -11px; left: 28px; }
.tier h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.tier__price {
  margin: 18px 0; padding: 14px 16px; border: 1px dashed var(--amber); border-radius: var(--radius-sm);
  background: #FBF4E7; color: #8a5a12; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; line-height: 1.5;
}
.tier__feats { list-style: none; padding: 0; margin: 4px 0 26px; display: grid; gap: 10px; }
.tier__feats li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); color: var(--text-muted); }
.tier__feats svg { flex: none; width: 16px; height: 16px; color: var(--emerald); margin-top: 3px; }
.tier__inherit { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.tier .btn { margin-top: auto; width: 100%; }

/* ---- Proof placeholders ---------------------------------------------- */
.proof { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 30px 26px; min-height: 190px; display: flex; flex-direction: column; }
.proof h3 { font-size: 1.08rem; color: var(--text-muted); margin-bottom: .8rem; }
.proof__mark { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em; color: var(--text-faint); line-height: 1.6; }
.proof__foot { margin-top: auto; padding-top: 22px; font-size: .8rem; color: var(--text-faint); }

/* ---- FAQ (button-based accordion) ------------------------------------ */
.faq__q[aria-expanded] { cursor: pointer; }
.faq__q .pm { transition: transform .25s var(--ease); }
.faq__q[aria-expanded="true"] .pm { transform: rotate(180deg); }
.faq__q[aria-expanded="true"] .pm::after { opacity: 0; }
.faq__panel[hidden] { display: none; }

/* ---- Final CTA ------------------------------------------------------- */
.finalcta { text-align: center; }
.finalcta h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.finalcta .lead { max-width: 44ch; margin-inline: auto; }
.finalcta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.finalcta__note { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-top: 1.6rem; }

/* ---- Contrast (WCAG 2.2 AA) ------------------------------------------
   --text-faint clears 4.5:1 on white but not on --surface-alt, and --blue
   is short of it on both. Page-scoped so the base tokens are untouched.
   -------------------------------------------------------------------- */
.eyebrow--muted { color: var(--text-muted); }
.eyebrow--muted::before { background: var(--text-muted); }
.indband__tail,
.mock__bar .s,
.act span,
.cal__d .w,
.clog .t,
.illus,
.proof__mark,
.tier__inherit { color: var(--text-muted); }
.link-arrow--light { color: var(--blue-deep); }

/* ---- Misc ------------------------------------------------------------ */
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: var(--fs-small); color: var(--blue-glow); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow--light { color: var(--blue-deep); }   /* 4.5:1 on --surface-alt */
[data-flag][hidden] { display: none !important; }
