/* QuatroHub — layout from the QuatroHUB mockup */

.hub .section-kicker {
  color: var(--teal);
}

.hub-hero {
  background: #4357a0;
  color: #fff;
  min-height: clamp(560px, 78vh, 760px);
  padding: 54px 0 42px;
  display: flex;
  align-items: center;
}

.hub-hero__grid {
  display: grid;
  grid-template-columns: 50% minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hub-crumb {
  color: #7ef6ef;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 22px;
}

.hub-crumb a:hover {
  color: #fff;
}

.hub-hero h1 {
  font-size: clamp(54px, 5.2vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 18px;
  max-width: none;
  text-wrap: balance;
}

.hub-hero__lead {
  max-width: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.hub-hero .hero__ctas {
  margin-bottom: 0;
}

.hub-hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
}

.hub-chat {
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 24px 50px rgba(16, 24, 56, 0.22);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hub-chat__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
}

.hub-chat__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2c3c75;
  font-size: 14px;
  font-weight: 600;
}

.hub-chat__brand i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23e1d7;
  box-shadow: 0 0 0 4px rgba(35, 225, 215, 0.18);
}

.hub-chat__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8b95ad;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hub-chat__live b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #23e1d7;
  animation: hub-pulse 1.4s ease-in-out infinite;
}

.hub-chat__thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 18px 12px;
  min-height: 300px;
  max-height: 340px;
  overflow: auto;
}

.hub-msg {
  max-width: 86%;
  animation: hub-in 0.35s ease;
}

.hub-msg--user {
  align-self: flex-end;
}

.hub-msg--bot {
  align-self: flex-start;
}

.hub-msg p {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.hub-msg--user p {
  background: #4357a0;
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}

.hub-msg--bot p {
  background: #eef1f6;
  color: #2c3c75;
  border-radius: 14px 14px 14px 4px;
}

.hub-msg__tag {
  display: block;
  margin-top: 6px;
  color: #8b95ad;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 12px 14px;
  background: #eef1f6;
  border-radius: 14px;
}

.hub-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ea0c8;
  animation: hub-dot 1s infinite ease-in-out;
}

.hub-typing span:nth-child(2) { animation-delay: 0.15s; }
.hub-typing span:nth-child(3) { animation-delay: 0.3s; }

.hub-chat__composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 14px 14px;
  padding: 12px 14px;
  border: 1px solid #e4e8f1;
  border-radius: 8px;
  color: #8b95ad;
}

.hub-chat__composer svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hub-chat__composer input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #2c3c75;
  font-size: 14px;
  font-family: inherit;
}

.hub-chat__composer input::placeholder {
  color: #9aa3b5;
}

.hub-block {
  padding: 88px 0;
}

.hub-block > .container {
  width: min(100% - 48px, 1152px);
}

.hub-block h2,
.hub .contact h2 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #161d33;
  max-width: 22em;
  text-wrap: balance;
}

.hub-block .lede {
  max-width: 62ch;
  margin-top: 16px;
}

.hub-plain .hub-card {
  border: 1px solid #e6ebf4;
}

.hub-ask {
  background: #f5f7fb;
}

.hub-questions {
  margin-top: 36px;
  display: grid;
  gap: 12px;
}

.hub-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
  background: #fff;
  border: 1px solid #e6ebf4;
  border-radius: 10px;
  padding: 18px 22px;
  color: #2c3c75;
  font-size: 18px;
  font-weight: 500;
}

.hub-q span {
  color: #4357a0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  padding-top: 2px;
}

.hub-q__line {
  display: block;
  font-weight: 600;
  color: #161d33;
  margin-bottom: 4px;
  min-height: 1.35em;
}

.hub-q__caret {
  display: none;
  width: 1px;
  height: 0.95em;
  margin-left: 2px;
  background: #4357a0;
  vertical-align: text-bottom;
}

.hub-q.is-live .hub-q__caret {
  display: inline-block;
  animation: hub-caret 0.9s steps(1) infinite;
}

.hub-q p {
  margin: 0;
  color: #586079;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.hub-ask.is-armed .hub-q {
  display: none;
}

.hub-ask.is-armed .hub-q.is-live,
.hub-ask.is-armed .hub-q.is-done {
  display: flex;
}

.hub-ask.is-armed .hub-q__answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.hub-ask.is-armed .hub-q__answer.is-in {
  max-height: 5em;
  opacity: 1;
  transition: opacity 0.35s ease, max-height 0.35s ease;
}

.hub-ask .hub-cta {
  background: #fff;
}

.hub-steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hub-step {
  background: #fff;
  border: 1px solid #e6ebf4;
  border-radius: 10px;
  padding: 26px 24px 28px;
}

.hub-step > span {
  display: block;
  color: #4357a0;
  font-weight: 600;
  margin-bottom: 12px;
}

.hub-step h3 {
  font-size: 22px;
  line-height: 1.3;
  color: #161d33;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hub-step p {
  color: #586079;
  font-size: 18px;
  line-height: 1.5;
}

.hub-cta {
  margin-top: 28px;
  padding: 28px 32px;
  border: 1px solid #e4e8f1;
  border-radius: 12px;
  background: #f7f9fd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hub-cta h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #161d33;
  margin-bottom: 6px;
}

.hub-cta p {
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.5;
  max-width: 52ch;
}

.hub-cta__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.hub-cta .btn--outline {
  height: 62.39px;
  min-width: 157.77px;
  padding: 0 18px;
  font-size: 16px;
}

.hub-value {
  background: #4357a0;
  color: #fff;
}

.hub-value h2,
.hub-value .section-kicker {
  color: #fff;
}

.hub-value .section-kicker {
  color: #23e1d7;
}

.hub-value h2 {
  max-width: 18em;
  color: #fff;
}

.hub-value .lede {
  color: rgba(255, 255, 255, 0.86);
  max-width: 58ch;
}

.hub-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hub-cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.hub-card {
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 26px 26px 28px;
  min-height: 168px;
}

.hub-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef2f9;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.hub-card__icon svg,
.hub-card__icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.hub-card h3 {
  font-size: 22px;
  line-height: 1.3;
  color: #1d2b57;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hub-card p {
  color: #5b647a;
  font-size: 18px;
  line-height: 1.5;
}

.hub-points {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
  list-style: none;
}

.hub-value .hub-points li {
  position: relative;
  padding-left: 18px;
  color: #fff;
  font-size: 18px;
  line-height: 1.45;
}

.hub-value .hub-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #23e1d7;
}

.hub-sources .hub-card {
  border: 1px solid #e6ebf4;
}

.hub-sources,
.hub-how,
.hub-soft {
  background: #fff;
}

.hub-context {
  margin-top: 28px;
  padding: 28px 32px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e4e8f1;
}

.hub-context h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #161d33;
  margin-bottom: 8px;
}

.hub-context p {
  color: #586079;
  font-size: 18px;
  line-height: 1.5;
  max-width: 68ch;
}

.hub-modules {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hub-module {
  background: #fff;
  border: 1px solid #e6ebf4;
  border-radius: 10px;
  padding: 22px 22px 24px;
}

.hub-module strong {
  display: block;
  margin-bottom: 8px;
  color: #161d33;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hub-module p {
  color: #586079;
  font-size: 18px;
  line-height: 1.5;
}

.hub-next {
  background: #f5f7fb;
}

.hub-next__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 72px;
  padding-top: 8px;
  border-top: 1px solid #e1e6f0;
}

.hub-next__label {
  color: #23e1d7;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.hub-next h3 {
  font-size: 22px;
  color: #1d2b57;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  max-width: 22ch;
}

.hub-next__grid > div > p {
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 46ch;
}

.hub-next ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.hub-next li {
  position: relative;
  padding-left: 16px;
  color: #5c6784;
  font-size: 18px;
  line-height: 1.5;
}

.hub-next li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #23e1d7;
}

.hub-next__note {
  margin-top: 36px;
  color: #8b95ad;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.7;
  max-width: 920px;
}

.hub .contact h2 {
  max-width: 11em;
}

@keyframes hub-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes hub-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-3px); opacity: 1; }
}

@keyframes hub-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes hub-caret {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (max-width: 1100px) {
  .hub-hero__grid,
  .hub-cards,
  .hub-cards--3,
  .hub-steps,
  .hub-modules,
  .hub-points,
  .hub-next__grid,
  .hub-cta {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hub-cta {
    display: grid;
  }

  .hub-hero__grid > div:first-child {
    max-width: 50%;
  }
}

@media (max-width: 900px) {
  .hub-hero__grid > div:first-child {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .hub-hero {
    min-height: 0;
    padding: 48px 0 56px;
  }

  .hub-chat__thread {
    max-height: none;
  }

  .hub-cta__actions {
    flex-direction: column;
  }

}

@media (min-width: 1440px) {
  .hub-block > .container {
    width: min(100% - 80px, 1152px);
  }

  .hub-block.hub-navy > .container {
    width: min(100% - 80px, var(--container));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-msg,
  .hub-chat__live b,
  .hub-typing span,
  .hub-q__caret,
  .qwin__user,
  .qwin__answer,
  .qwin__caret,
  .qwin__think span,
  .ask__pop,
  .ask__fact,
  .mock-bars i {
    animation: none;
  }
}

/* Product UI from hub.quatromatic.com, set in the current site type and color. */

.hub-navy {
  background: #4357a0;
  padding: 48px 0;
}

.hub-block.hub-navy > .container {
  width: min(100% - 48px, var(--container));
}

.hub-block.hub-navy h2,
.hub-block.hub-navy .hub-cap li {
  color: #fff;
}

.hub-block.hub-navy h2,
.hub-block.hub-navy .lede {
  max-width: none;
}

.hub-block.hub-navy .lede {
  color: rgba(255, 255, 255, 0.86);
}

.hub-block.hub-navy .section-kicker {
  color: #7ef6ef;
}

.hub-navy .hub-cap span {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hub-split {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-split article {
  padding: 0 32px;
}

.hub-split article:first-child {
  padding-left: 0;
}

.hub-split article:last-child {
  padding-right: 0;
}

.hub-split article + article {
  border-left: 1px solid #e1e6f0;
}

.hub-split__n {
  margin: 0 0 12px;
  color: #4357a0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 16px;
}

.hub-split h3,
.hub-pillars h3,
.hub-screen h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #161d33;
  margin: 0 0 8px;
  text-wrap: balance;
}

.hub-split p,
.hub-pillars p,
.hub-screen > p,
.hub-block .lede {
  text-wrap: pretty;
}

.hub-split p,
.hub-pillars p {
  margin: 0;
  color: #586079;
  font-size: 18px;
  line-height: 1.5;
}

.hub-assist__grid,
.hub-scene {
  display: grid;
  grid-template-columns: 50% minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hub-assist__copy {
  order: 1;
}

.hub-assist__stage {
  order: 2;
}

.hub-cap {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hub-cap li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #161d33;
  font-size: 18px;
  line-height: 1.5;
}

.hub-cap span {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 0;
  display: grid;
  place-items: center;
  border: 1px solid #d5dced;
  border-radius: 4px;
  background: #eef2fb;
  color: #4357a0;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.qwin {
  background: #fff;
  border: 1px solid #dbe2f1;
  border-radius: 16px;
  box-shadow: 0 8px 24px -6px rgba(19, 37, 65, 0.12), 0 24px 48px -20px rgba(19, 37, 65, 0.16);
  overflow: hidden;
}

.qwin__bar,
.win__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #dbe2f1;
  background: #fbfcff;
}

.qwin__dots,
.win__dots {
  display: inline-flex;
  gap: 6px;
}

.qwin__dots i,
.win__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.qwin__dots i:nth-child(1),
.win__dots i:nth-child(1) { background: #ff5f57; }
.qwin__dots i:nth-child(2),
.win__dots i:nth-child(2) { background: #febc2e; }
.qwin__dots i:nth-child(3),
.win__dots i:nth-child(3) { background: #28c840; }

.qwin__name,
.win__name {
  color: #161d33;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.qwin__app,
.win__app {
  margin-left: auto;
  color: #8b95ad;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.qwin__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #fbfcff;
}

.qwin__thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qwin__user {
  align-self: flex-end;
  max-width: 94%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f1f4f9;
  color: #161d33;
  font-size: 14px;
  line-height: 20px;
}

.qwin__answer {
  color: #161d33;
  font-size: 14px;
  line-height: 20px;
}

.qwin__answer p {
  margin: 0;
}

.qwin__link {
  display: inline-block;
  margin-top: 8px;
  color: #4357a0;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qwin__used {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #8b95ad;
  font-size: 12px;
  line-height: 16px;
}

.qwin__chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2fb;
  color: #4357a0;
  font-size: 12px;
  font-weight: 500;
}

.qwin__chip--shift {
  background: #e8f5f3;
  color: #0c574b;
}

.qwin__think {
  display: none;
  gap: 4px;
  padding: 4px;
}

.qwin__think span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ea0c8;
  animation: hub-dot 1s infinite ease-in-out;
}

.qwin__think span:nth-child(2) { animation-delay: 0.15s; }
.qwin__think span:nth-child(3) { animation-delay: 0.3s; }

.qwin__composer {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #dbe2f1;
  border-radius: 12px;
  background: #fff;
}

.qwin__plus {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #8b95ad;
  flex: 0 0 24px;
}

.qwin__field {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  color: #161d33;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
}

.qwin__ph {
  color: #8b95ad;
}

.qwin__caret {
  display: none;
  width: 1px;
  height: 14px;
  margin-left: 2px;
  background: #4357a0;
  animation: hub-caret 0.9s steps(1) infinite;
}

.qwin__send {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #4357a0;
  color: #fff;
  flex: 0 0 24px;
}

.js [data-qchat].is-playing .qwin__user,
.js [data-qchat].is-playing .qwin__answer,
.js [data-qchat].is-playing .qwin__think,
.js [data-qchat].is-playing .qwin__caret {
  display: none;
}

.js [data-qchat].is-typing .qwin__caret,
.js [data-qchat].is-user .qwin__user,
.js [data-qchat].is-thinking .qwin__user,
.js [data-qchat].is-thinking .qwin__think,
.js [data-qchat].is-answer .qwin__user,
.js [data-qchat].is-answer .qwin__answer {
  display: block;
}

.js [data-qchat].is-typing .qwin__caret {
  display: inline-block;
}

.js [data-qchat].is-thinking .qwin__think {
  display: inline-flex;
}

.js [data-qchat].is-typing .qwin__ph,
.js [data-qchat].is-user .qwin__ph,
.js [data-qchat].is-thinking .qwin__ph {
  display: none;
}

.js [data-qchat].is-user .qwin__user,
.js [data-qchat].is-answer .qwin__answer {
  animation: hub-in 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.hub-pillars {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hub-pillars__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid #e6ebf4;
  border-radius: 16px;
  background: #fff;
  color: #4357a0;
  box-shadow: 0 12px 32px -24px rgba(7, 11, 27, 0.45);
}

.hub-pillars__icon svg {
  width: 20px;
  height: 20px;
}

.hub-scene__copy h2 {
  max-width: 14em;
}

.ask {
  position: relative;
}

.win {
  background: #fff;
  border: 1px solid #dbe2f1;
  border-radius: 12px;
  box-shadow: 0 6px 18px -8px rgba(19, 37, 65, 0.1), 0 16px 36px -18px rgba(19, 37, 65, 0.12);
}

.plant {
  background: #fff;
}

.plant__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #dbe2f1;
  background: #eef2fb;
}

.plant__head h3 {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #161d33;
}

.plant__status {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 8px;
  background: #e8f5f3;
  color: #0c574b;
  font-size: 12px;
  font-weight: 600;
}

.plant__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ask__spark {
  position: relative;
  width: 32px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ebe6ff;
  color: #7b2fd6;
  cursor: pointer;
}

.ask__spark:hover {
  background: #e0d8ff;
}

.ask__spark:active {
  transform: scale(0.98);
}

.ask__spark:focus-visible,
.hub-screens__nav button:focus-visible {
  outline: 2px solid #4357a0;
  outline-offset: 2px;
}

.js [data-ask].is-hot .ask__spark {
  animation: hub-pulse 1s ease-in-out infinite;
}

.ask__tip {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 3;
  padding: 4px 8px;
  border: 1px solid #dbe2f1;
  border-radius: 8px;
  background: #fff;
  color: #161d33;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 20px -12px rgba(7, 11, 27, 0.35);
}

.js [data-ask] .ask__tip {
  display: none;
}

.js [data-ask].is-tip .ask__tip {
  display: block;
}

.plant__main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  border-bottom: 1px solid #dbe2f1;
}

.plant__photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  border-right: 1px solid #dbe2f1;
  background: #fbfcff;
  color: #8ea0c8;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.plant__photo svg {
  width: 24px;
  height: 24px;
}

.plant__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.plant__facts div {
  min-width: 0;
  padding: 8px 12px;
}

.plant__facts div:nth-child(odd) {
  border-right: 1px solid #dbe2f1;
}

.plant__facts div:nth-child(-n + 2) {
  border-bottom: 1px solid #dbe2f1;
}

.plant__facts span,
.plant__meter span,
.ask__fact dt,
.mock-k span,
.mock-file small,
.mock-row span,
.mock-note small {
  color: #8b95ad;
  font-size: 12px;
  line-height: 16px;
}

.plant__facts strong,
.plant__meter strong,
.ask__fact dd,
.mock-k strong,
.mock-file b,
.mock-row b,
.mock-note b {
  display: block;
  color: #161d33;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.plant__meters {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #dbe2f1;
}

.plant__meter span,
.plant__meter strong {
  display: inline;
}

.plant__meter {
  display: grid;
  gap: 4px;
}

.plant__meter p {
  display: flex;
  justify-content: space-between;
  margin: 0;
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f4f9;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4357a0;
}

.meter i.is-good {
  background: #169f89;
}

.meter i.is-warn {
  background: #e2b93b;
}

.plant__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.plant__actions span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.plant__actions .is-solid {
  background: #4357a0;
  color: #fff;
}

.plant__actions .is-line {
  border: 1px solid #dbe2f1;
  background: #fff;
  color: #161d33;
}

.ask__pop {
  position: absolute;
  left: 36%;
  right: 8px;
  bottom: 12px;
  z-index: 2;
}

.ask__card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe2f1;
  border-radius: 12px;
  background: #f7f9fc;
}

.ask__card header p {
  margin: 0;
  color: #8b95ad;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 16px;
}

.ask__card header strong {
  display: block;
  margin-top: 4px;
  color: #161d33;
  font-size: 14px;
  line-height: 20px;
}

.ask__card header span {
  display: block;
  margin-top: 4px;
  color: #8b95ad;
  font-size: 12px;
  line-height: 16px;
}

.ask__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.ask__fact {
  margin: 0;
  padding: 8px;
  border: 1px solid #dbe2f1;
  border-radius: 8px;
  background: #fff;
}

.ask__fact dd {
  margin: 4px 0 0;
}

.ask__prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ask__prompts span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #dbe2f1;
  border-radius: 999px;
  background: #fff;
  color: #161d33;
  font-size: 12px;
  line-height: 16px;
}

.js [data-ask].is-playing:not(.is-open) .ask__pop,
.js [data-ask].is-playing .ask__fact,
.js [data-ask].is-playing .ask__prompts {
  opacity: 0;
}

.js [data-ask].is-playing.is-open .ask__pop,
.js [data-ask].is-playing.is-open .ask__fact.is-in,
.js [data-ask].is-playing.is-open .ask__prompts.is-in {
  opacity: 1;
  transition: opacity 700ms cubic-bezier(0.32, 0.72, 0, 1), transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.js [data-ask].is-playing:not(.is-open) .ask__pop {
  transform: translateY(12px);
}

.js [data-ask].is-playing.is-open .ask__pop {
  transform: none;
}

.hub-screens {
  margin-top: 40px;
  position: relative;
}

.hub-screens__nav {
  display: none;
}

.hub-screens__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hub-screen {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 16px 8px;
  border: 1px solid #e6ebf4;
  border-radius: 16px;
  background: #fff;
  transition: border-color 700ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.hub-screen:hover {
  border-color: #d5dced;
  box-shadow: 0 16px 40px -28px rgba(7, 11, 27, 0.35);
}

.hub-screen > p {
  margin: 0;
  color: #586079;
  font-size: 18px;
  line-height: 1.5;
}

.mock {
  margin-top: 16px;
  min-height: 200px;
  padding: 12px;
  border: 1px solid #dbe2f1;
  border-radius: 8px;
  background: #fbfcff;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 100%;
}

.mock-k,
.mock-wide {
  padding: 8px;
  border: 1px solid #dbe2f1;
  border-radius: 8px;
  background: #fff;
}

.mock-k > strong {
  margin-top: 4px;
  font-size: 20px;
  line-height: 28px;
}

.mock-k > .mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-k .mock-apq p {
  grid-template-columns: 40px minmax(0, 1fr);
}

.plant__status.is-attn {
  background: #fdf7e6;
  color: #644a00;
}

.meter i.is-quality {
  background: #6d5bd0;
}

.win > .plant,
.win > .ask__card {
  margin: 8px;
}

.win > .plant {
  border: 1px solid #dbe2f1;
  border-radius: 8px;
  overflow: hidden;
}

.mock-wide {
  grid-column: 1 / -1;
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  margin-top: 12px;
}

.mock-bars i {
  flex: 1;
  display: block;
  border-radius: 2px;
  background: rgba(35, 225, 215, 0.85);
  transform-origin: bottom;
  animation: mock-rise 700ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

.mock-apq,
.mock-lines {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mock-apq p,
.mock-lines p {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0;
}

.mock-apq b,
.mock-lines b {
  color: #8b95ad;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.mock-lines p {
  grid-template-columns: 64px minmax(0, 1fr);
}

.mock-segs {
  display: flex;
  gap: 4px;
  height: 8px;
}

.mock-segs i {
  display: block;
  height: 100%;
  border-radius: 2px;
  opacity: 0.85;
}

.mock-file,
.mock-alert,
.mock-mod,
.mock-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dbe2f1;
  border-radius: 8px;
  background: #fff;
}

.mock-files,
.mock-alerts,
.mock-mods,
.mock-cats,
.mock-journal {
  display: grid;
  gap: 8px;
}

.mock-file i,
.mock-mod i {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 4px;
  background: #eef2fb;
}

.mock-file b,
.mock-mod b,
.mock-alert b,
.mock-cat b {
  display: block;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4357a0;
  flex: 0 0 8px;
}

.mock-table {
  display: grid;
}

.mock-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.7fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #e6ebf4;
  font-size: 12px;
  line-height: 16px;
  color: #161d33;
}

.mock-row--5 {
  grid-template-columns: 36px minmax(0, 1fr) 48px 44px 48px;
}

.mock-row--head {
  color: #8b95ad;
  font-weight: 600;
}

.mock-cats {
  grid-template-columns: 1fr;
}

.mock-cat {
  justify-content: space-between;
}

.mock-cat span {
  color: #586079;
  font-size: 12px;
  line-height: 16px;
}

.mock-mod em,
.mock-alert em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #0c574b;
}

.mock-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-note div {
  padding: 12px;
  border: 1px solid #dbe2f1;
  border-radius: 8px;
  background: #fff;
}

@keyframes mock-rise {
  from { transform: scaleY(0.2); }
  to { transform: scaleY(1); }
}

@media (max-width: 900px) {
  .hub-assist__grid,
  .hub-scene {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ask__pop {
    position: static;
    margin-top: 16px;
  }
}

@media (max-width: 820px) {
  .hub-split,
  .hub-pillars {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hub-split article {
    padding: 0;
  }

  .hub-split article + article {
    border-left: 0;
    padding-top: 24px;
    border-top: 1px solid #e1e6f0;
  }

  .hub-screens__nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
  }

  .hub-screens__nav button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #161d33;
    box-shadow: 0 8px 22px rgba(22, 29, 51, 0.16);
    cursor: pointer;
  }

  .hub-screens__nav button:hover:not(:disabled) {
    background: #4357a0;
    color: #fff;
  }

  .hub-screens__nav button:active:not(:disabled) {
    transform: scale(0.98);
  }

  .hub-screens__nav button:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .hub-screens__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .hub-screens__track::-webkit-scrollbar {
    display: none;
  }

  .hub-screen {
    flex: 0 0 86%;
    max-width: 22rem;
    scroll-snap-align: start;
  }
}
