/* Os três capítulos do Motor Planeja.
   A casca comum (`mix/motor-page.css`) já dá cabeçalho de seção, eyebrow,
   botão, chip, cartão e a sequência dos quatro motores. Aqui fica o que é dos
   capítulos: a escada de cinco passos e a vitrine de cada um.
   Nenhum seletor deste arquivo encosta em `.mix-connect-*`. */

.mix-plansub-page {
  --plan-alert: #ff8fa8;
  min-width: 0;
  margin-top: calc(-1 * var(--motor-header-bleed));
  overflow: clip;
  color: var(--motor-ink);
  background: var(--motor-paper);
  font-family: Inter, Arial, sans-serif;
}

.mix-plansub-page #capitulos {
  scroll-margin-top: calc(var(--soceo-header-height, 80px) + 24px);
}

.mix-plansub-page section { padding: clamp(70px, 7vw, 104px) 0; }

/* ── herói ───────────────────────────────────────────────────────────────── */

.mix-plansub-hero {
  position: relative;
  overflow: hidden;
  padding:
    calc(var(--motor-header-bleed) + clamp(66px, 7vw, 108px))
    0
    clamp(64px, 7vw, 96px);
  background:
    radial-gradient(circle at 84% 16%, rgba(120, 57, 238, .13), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f8f5f1 100%);
  border-bottom: 1px solid var(--motor-border);
}

.mix-plansub-hero h1 {
  max-width: 880px;
  margin: 26px 0 0;
  font: 700 clamp(40px, 4.6vw, 64px)/1 var(--motor-display);
  letter-spacing: -.048em;
  text-wrap: balance;
}

.mix-plansub-lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--motor-muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}

.mix-plansub-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .92fr);
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}
.mix-plansub-hero-copy { min-width: 0; }

/* A composição da primeira dobra: os cinco passos em cascata, deslocando um
   pouco a cada linha, como no herói dos capítulos do Motor Conecta. O
   deslocamento é o que faz ler como sequência e não como lista. */
.mix-plansub-hero-visual {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(120, 57, 238, .12);
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(246, 243, 255, .82)),
    repeating-linear-gradient(0deg, rgba(120, 57, 238, .05) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(120, 57, 238, .05) 0 1px, transparent 1px 22px);
  box-shadow: 0 26px 60px rgba(32, 23, 55, .09);
}

.mix-plansub-cascade-label {
  display: block;
  margin-bottom: 16px;
  color: rgba(120, 57, 238, .55);
  font: 750 10px/1 var(--motor-display);
  letter-spacing: .16em;
}

.mix-plansub-cascade { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }

.mix-plansub-cascade-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: calc(var(--ki) * 16px);
  margin-right: calc((4 - var(--ki)) * 16px);
  padding: 12px 15px;
  border: 1px solid rgba(120, 57, 238, .1);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--motor-elev-1);
  opacity: 0;
  transform: translate3d(-14px, 0, 0);
}
.mix-plansub-hero.is-in .mix-plansub-cascade-card {
  animation: mix-plansub-cascade-in 520ms cubic-bezier(.16, 1, .3, 1)
    calc(240ms + var(--ki) * 110ms) forwards;
}
@keyframes mix-plansub-cascade-in {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.mix-plansub-cascade-card .mix-motor-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.mix-plansub-cascade-card .mix-motor-icon svg { width: 17px; height: 17px; }
.mix-plansub-cascade-card > div { min-width: 0; }
.mix-plansub-cascade-card b {
  display: block;
  color: var(--motor-violet);
  font: 750 9.5px/1 var(--motor-display);
  letter-spacing: .13em;
  text-transform: uppercase;
}
/* `> div span` e não `span`: a regra solta também acertava o
   <span class="mix-motor-icon">, e com especificidade maior que a do badge.
   Ela derrubava o `display: grid` que centraliza o glifo, e o ícone caía no
   canto superior esquerdo do quadrado — 7,5px fora do centro nos três
   capítulos. */
.mix-plansub-cascade-card > div span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font: 500 13px/1.3 Inter, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mix-plansub-principle {
  margin: 20px 0 0;
  padding: 14px 0 14px 18px;
  border-left: 3px solid var(--motor-violet);
  color: #393347;
  font: 650 14.5px/1.5 Inter, sans-serif;
}

/* Motor Matemático: o primeiro capítulo conta uma história única, sem seletor.
   Primeiro a resposta probabilística; depois a execução determinística. */
.mix-math-chapter-demo {
  min-width: 0;
}

.mix-math-chapter-demo__intro {
  width: min(920px, 100%);
  margin-inline: auto;
  text-align: center;
}

.mix-math-chapter-demo__intro .mix-motor-eyebrow {
  width: fit-content;
  margin-inline: auto;
}

.mix-math-chapter-demo__intro h2 {
  max-width: 21ch;
  margin: 24px auto 0;
  font: 700 clamp(34px, 4.2vw, 58px)/1.02 var(--motor-display);
  letter-spacing: -.046em;
  text-wrap: balance;
}

.mix-math-chapter-demo__intro-copy {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--motor-muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}

.mix-math-hero-demo {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  width: 100%;
  margin: clamp(48px, 6vw, 72px) auto 0;
  overflow: clip;
}

.mix-plansub-page .mix-math-demo-block {
  min-width: 0;
  padding: 0;
}

.mix-math-demo-bridge {
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.mix-math-demo-bridge__eyebrow {
  margin: 0;
  color: var(--motor-violet);
  font: 800 10px/1.25 "DM Mono", ui-monospace, monospace;
  letter-spacing: .13em;
}

.mix-math-demo-bridge__statement {
  max-width: 34ch;
  margin: 14px auto 0;
  font: 700 clamp(18px, 1.7vw, 22px)/1.2 var(--motor-display);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.mix-math-demo-bridge__statement + p {
  max-width: 54ch;
  margin: 10px auto 0;
  color: var(--motor-muted);
  font: 500 14px/1.6 Inter, sans-serif;
}

.mix-math-demo-copy {
  display: grid;
  grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 90px);
  align-items: start;
  width: 100%;
  text-align: left;
}

.mix-math-hero-question > span,
.mix-math-hero-tool {
  color: var(--motor-violet);
  font: 800 10px/1.25 "DM Mono", ui-monospace, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.mix-math-demo-copy > small {
  grid-column: 1;
  grid-row: 1;
  padding-top: 9px;
  color: var(--motor-violet);
  font: 750 11px/1.4 var(--motor-display);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mix-math-demo-copy h3 {
  grid-column: 2;
  grid-row: 1;
  max-width: 20ch;
  margin: 0;
  font: 700 clamp(28px, 3.2vw, 44px)/1.04 var(--motor-display);
  letter-spacing: -.042em;
  text-wrap: balance;
}

.mix-math-demo-copy p {
  grid-column: 2;
  grid-row: 2;
  max-width: 46ch;
  margin: 18px 0 0;
  color: var(--motor-muted);
  font: 400 15px/1.62 Inter, sans-serif;
}

.mix-math-demo-closing {
  max-width: 70ch;
  margin: 24px auto 0;
  color: var(--motor-muted);
  font: 500 15px/1.65 Inter, sans-serif;
  text-align: center;
}

.mix-math-hero-question {
  min-width: 0;
  min-height: 300px;
  margin-top: 32px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background: var(--motor-panel-bg);
  box-shadow:
    inset 0 0 0 1px var(--motor-panel-border),
    0 22px 54px rgba(32, 23, 55, .12);
}

.mix-math-hero-question > span { color: rgba(255, 255, 255, .58); }

.mix-math-hero-question > strong {
  display: block;
  margin-top: 15px;
  font: 700 clamp(28px, 3vw, 42px)/1.05 "DM Mono", ui-monospace, monospace;
  letter-spacing: .01em;
}

.mix-math-hero-attempt-lead {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .82);
  font: 650 13px/1.45 Inter, sans-serif;
}

.mix-math-hero-attempts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.mix-math-hero-attempts li {
  position: relative;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 143, 168, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(.16, 1, .3, 1);
}

.mix-math-hero-attempts li::after {
  position: absolute;
  top: 10px;
  right: 11px;
  color: var(--plan-alert);
  content: "×";
  font: 800 17px/1 "DM Mono", ui-monospace, monospace;
  opacity: 0;
  transform: scale(.72);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(.16, 1, .3, 1);
}

.mix-math-hero-attempts li:is(
  [data-math-problem-attempt-state="visible"],
  [data-math-problem-attempt-state="complete"]
) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.mix-math-hero-attempts li:is(
  [data-math-problem-attempt-state="visible"],
  [data-math-problem-attempt-state="complete"]
)::after {
  opacity: 1;
  transform: scale(1);
}

.mix-math-hero-attempts small,
.mix-math-hero-attempts span {
  display: block;
  color: rgba(255, 255, 255, .58);
  font: 700 9px/1.25 "DM Mono", ui-monospace, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mix-math-hero-attempts strong {
  display: block;
  margin-top: 9px;
  color: var(--plan-alert);
  font: 700 15px/1.2 var(--motor-display);
  letter-spacing: -.015em;
}

.mix-math-hero-attempts span {
  margin-top: 7px;
  font-size: 8px;
  line-height: 1.4;
}

.mix-math-hero-solution {
  min-width: 0;
  min-height: 280px;
  margin-top: 32px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(120, 57, 238, .18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 8%, rgba(120, 57, 238, .13), transparent 32%),
    #fff;
  box-shadow: 0 22px 54px rgba(32, 23, 55, .1);
}

.mix-math-hero-flow {
  display: grid;
  grid-template-columns: repeat(var(--math-hero-step-count), minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mix-math-hero-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 57, 238, .13);
  border-radius: 11px;
  background: #f8f6fc;
  opacity: .46;
  transform: translate3d(0, 8px, 0);
  transition: opacity 230ms ease, transform 320ms cubic-bezier(.16, 1, .3, 1);
}

.mix-math-hero-flow li > span {
  grid-column: 1 / -1;
  color: var(--motor-muted);
  font: 750 8px/1 "DM Mono", ui-monospace, monospace;
}

.mix-math-hero-flow li b {
  font: 700 11px/1.15 var(--motor-display);
  overflow-wrap: anywhere;
  white-space: normal;
}

.mix-math-hero-flow li i {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(120, 57, 238, .4);
  border-radius: 50%;
}

.mix-math-hero-flow li[data-math-solution-step-state="active"] {
  border-color: rgba(120, 57, 238, .7);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  box-shadow: 0 8px 20px rgba(120, 57, 238, .11);
}

.mix-math-hero-flow li[data-math-solution-step-state="active"] i {
  border-color: var(--motor-violet);
  background: var(--motor-violet);
  box-shadow: 0 0 0 4px rgba(120, 57, 238, .11);
}

.mix-math-hero-flow li[data-math-solution-step-state="complete"] {
  opacity: .86;
  transform: translate3d(0, 0, 0);
}
.mix-math-hero-flow li[data-math-solution-step-state="complete"] i {
  border-color: #43a36b;
  background: #70d19b;
}

.mix-math-hero-equation {
  margin-top: 14px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 17px;
  color: #fff;
  background: var(--motor-panel-bg);
  box-shadow: 0 18px 40px rgba(29, 8, 63, .18);
}

.mix-math-hero-tool { color: #cdb7ff; }

.mix-math-hero-equation__terms {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) auto minmax(82px, 1fr) auto minmax(126px, 1.24fr);
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.mix-math-hero-equation__terms > span {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
}

.mix-math-hero-equation__terms > span.is-result {
  border-color: rgba(112, 209, 155, .52);
  background: rgba(112, 209, 155, .13);
}

.mix-math-hero-equation__terms b,
.mix-math-hero-equation__terms small {
  display: block;
}

.mix-math-hero-equation__terms b {
  overflow-wrap: anywhere;
  font: 700 clamp(16px, 1.8vw, 23px)/1 "DM Mono", ui-monospace, monospace;
}

.mix-math-hero-equation__terms small {
  margin-top: 7px;
  color: rgba(255, 255, 255, .58);
  font: 650 8px/1.3 Inter, sans-serif;
  text-transform: uppercase;
}

.mix-math-hero-equation__terms > i {
  color: rgba(255, 255, 255, .58);
  font: normal 700 18px/1 var(--motor-display);
}

.mix-math-hero-equation > code {
  display: block;
  margin-top: 16px;
  color: #dbcfff;
  font: 600 11px/1.4 "DM Mono", ui-monospace, monospace;
}

/* Motor Matemático legado: a demo mantém a copy em uma coluna editorial e
   usa o artefato ao lado, sem herdar o padding vertical genérico de section. */
.mix-plansub-page[data-plansub-key="motor-matematico"]
.mix-math-chapter-demo__intro h2 {
  font-size: 62px;
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
.mix-math-hero-demo {
  gap: 30px;
  margin-top: 36px;
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
.mix-math-demo-block {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  column-gap: clamp(42px, 5vw, 72px);
  align-items: start;
  min-height: 390px;
  padding: 0;
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
.mix-math-demo-bridge {
  max-width: 900px;
  padding: 24px 30px;
  border-block: 1px solid rgba(120, 57, 238, .2);
  background: linear-gradient(90deg, transparent, rgba(120, 57, 238, .055), transparent);
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
.mix-math-demo-bridge__eyebrow {
  font-size: 12px;
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
.mix-math-demo-copy {
  display: block;
  grid-column: 1;
  width: 100%;
  margin: 0;
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
.mix-math-demo-copy > small {
  display: block;
  padding-top: 0;
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
.mix-math-demo-copy h3 {
  max-width: 16ch;
  margin-top: 16px;
  font-size: 38px;
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
.mix-math-demo-copy p {
  max-width: 42ch;
  margin-top: 16px;
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
:is(.mix-math-hero-question, .mix-math-hero-solution) {
  grid-column: 2;
  margin-top: 0;
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
.mix-math-demo-closing {
  grid-column: 2;
  margin-top: 16px;
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
.mix-math-demo-bridge__statement {
  max-width: 28ch;
  margin-top: 14px;
  font-size: 32px;
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
.mix-math-demo-bridge__statement + p {
  max-width: 60ch;
  margin-top: 12px;
  font-size: 17px;
}

/* ── os cinco passos, em zigue-zague com ilustração ──────────────────────── */
/* Como nos capítulos do Motor Conecta: o texto fica solto no fundo, a
   ilustração vai do outro lado, e os lados alternam a cada passo. Caixa branca
   em volta de tudo achatava a leitura. */

.mix-plansub-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(60px, 7vw, 104px);
}

.mix-plansub-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 78px);
  align-items: center;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}
.mix-plansub-step[data-plansub-side="right"] .mix-plansub-step-body { order: 2; }
/* A moldura compartilhada para em 480px. Sem encostá-la na borda externa do
   zigue-zague, ela cola na coluna de texto e deixa a faixa de fora vazia. */
.mix-plansub-step[data-plansub-side="left"] .mix-motor-figure { justify-self: end; }
.mix-plansub-step[data-plansub-side="right"] .mix-motor-figure { justify-self: start; }
.mix-plansub-chapters.is-in .mix-plansub-step {
  animation: mix-plansub-in 620ms cubic-bezier(.16, 1, .3, 1)
    calc(var(--pi) * 110ms) forwards;
}
@keyframes mix-plansub-in {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.mix-plansub-step-body { min-width: 0; }


.mix-plansub-step h3 {
  margin: 18px 0 0;
  max-width: 15ch;
  font: 700 clamp(28px, 3.2vw, 44px)/1.04 var(--motor-display);
  letter-spacing: -.042em;
  text-wrap: balance;
}

.mix-plansub-step-body h3 + p {
  margin: 18px 0 0;
  max-width: 46ch;
  color: var(--motor-muted);
  font: 400 15px/1.62 Inter, sans-serif;
}


/* ── Motor Matemático · Problema/Solução ────────────────────────────────── */

.mix-math-compare {
  background:
    radial-gradient(circle at 88% 10%, rgba(120, 57, 238, .1), transparent 30%),
    var(--motor-paper);
}

.mix-math-tabs {
  border: 1px solid var(--motor-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--motor-shadow);
}

.mix-math-tablist {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(132px, 1fr));
  gap: 4px;
  margin: 18px 18px 0;
  padding: 4px;
  border: 1px solid rgba(120, 57, 238, .13);
  border-radius: 14px;
  background: var(--motor-violet-soft);
}

.mix-math-tablist button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--motor-muted);
  cursor: pointer;
  font: 750 13px/1 Inter, sans-serif;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mix-math-tablist button[aria-selected="true"] {
  background: #fff;
  color: var(--motor-violet-deep);
  box-shadow: 0 5px 14px rgba(32, 23, 55, .08);
}

.mix-math-tablist button:focus-visible,
.mix-math-replay:focus-visible {
  outline: 3px solid rgba(120, 57, 238, .34);
  outline-offset: 2px;
}

.mix-math-stage {
  display: grid;
  min-height: 650px;
  overflow: clip;
}

.mix-math-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1.55fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
  padding: clamp(28px, 4vw, 52px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 180ms ease,
    visibility 0s linear 180ms,
    transform 180ms ease;
}

.mix-math-panel.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 220ms ease,
    visibility 0s linear 0s,
    transform 220ms cubic-bezier(.16, 1, .3, 1);
}

.mix-math-panel-copy {
  position: sticky;
  top: calc(var(--soceo-header-height, 80px) + 24px);
  min-width: 0;
  padding-top: 8px;
}

.mix-math-panel-copy small,
.mix-math-question > span,
.mix-math-tool {
  color: var(--motor-violet);
  font: 800 10px/1.25 "DM Mono", ui-monospace, monospace;
  letter-spacing: .1em;
}

.mix-math-panel-copy h3 {
  max-width: 13ch;
  margin: 17px 0 0;
  font: 700 clamp(28px, 3.1vw, 44px)/1.04 var(--motor-display);
  letter-spacing: -.042em;
  text-wrap: balance;
}

.mix-math-panel-copy p {
  max-width: 38ch;
  margin: 18px 0 0;
  color: var(--motor-muted);
  font: 400 15px/1.62 Inter, sans-serif;
}

.mix-math-panel-copy .mix-math-model {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-top: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(120, 57, 238, .18);
  border-radius: 999px;
  background: var(--motor-violet-soft);
  color: var(--motor-violet-deep);
  font: 650 11px/1.35 Inter, sans-serif;
}

.mix-math-model b { font-weight: 800; }

.mix-math-question,
.mix-math-calculation {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--motor-border);
  border-radius: 20px;
  background: var(--motor-cream);
}

.mix-math-question > strong {
  display: block;
  margin-top: 14px;
  font: 700 clamp(23px, 2.3vw, 32px)/1.15 var(--motor-display);
  letter-spacing: -.035em;
}

.mix-math-attempts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.mix-math-attempts li {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(180, 52, 47, .17);
  border-radius: 14px;
  background: #fff;
}

.mix-math-attempts small,
.mix-math-inputs small,
.mix-math-result small,
.mix-math-trace small {
  display: block;
  color: var(--motor-muted);
  font: 800 9.5px/1.25 "DM Mono", ui-monospace, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mix-math-attempts strong {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: #81302d;
  font: 700 17px/1.25 var(--motor-display);
  letter-spacing: -.02em;
}

.mix-math-attempts span,
.mix-math-inputs span,
.mix-math-trace span {
  display: block;
  margin-top: 7px;
  color: var(--motor-muted);
  font: 400 12.5px/1.45 Inter, sans-serif;
}

.mix-math-limit {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-left: 3px solid #bd514c;
  background: rgba(180, 52, 47, .06);
  color: #5b4645;
  font: 500 13.5px/1.55 Inter, sans-serif;
}

.mix-math-solution-grid {
  display: grid;
  grid-template-columns: minmax(205px, .72fr) minmax(300px, 1.08fr);
  gap: 14px;
  min-width: 0;
}

.mix-math-flow {
  display: grid;
  gap: 8px;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mix-math-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 10px;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--motor-border);
  border-radius: 13px;
  background: #fff;
  opacity: .56;
  transform: translate3d(0, 0, 0);
  transition: opacity 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.mix-math-flow li > span {
  color: var(--motor-muted);
  font: 750 10px/1.4 "DM Mono", ui-monospace, monospace;
}

.mix-math-flow b {
  font: 700 14px/1.2 var(--motor-display);
  letter-spacing: -.02em;
}

.mix-math-flow p {
  margin: 5px 0 0;
  color: var(--motor-muted);
  font: 400 11.5px/1.4 Inter, sans-serif;
}

.mix-math-flow i {
  width: 8px;
  height: 8px;
  margin-top: 3px;
  border: 1px solid rgba(120, 57, 238, .35);
  border-radius: 50%;
  background: transparent;
}

.mix-math-flow li[data-math-step-state="active"] {
  border-color: rgba(120, 57, 238, .55);
  opacity: 1;
  transform: translate3d(4px, 0, 0);
  box-shadow: 0 9px 20px rgba(120, 57, 238, .1);
}

.mix-math-flow li[data-math-step-state="active"] i {
  background: var(--motor-violet);
  box-shadow: 0 0 0 4px rgba(120, 57, 238, .12);
}

.mix-math-flow li[data-math-step-state="complete"] { opacity: .82; }
.mix-math-flow li[data-math-step-state="complete"] i {
  border-color: #377f55;
  background: #77c995;
}

.mix-math-calculation { background: #fff; }

.mix-math-calculation > code {
  display: block;
  margin-top: 14px;
  padding: 14px 16px;
  overflow-wrap: anywhere;
  border-radius: 12px;
  background: var(--motor-violet-soft);
  color: var(--motor-violet-deep);
  font: 600 13px/1.45 "SFMono-Regular", ui-monospace, Menlo, monospace;
}

.mix-math-inputs,
.mix-math-trace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.mix-math-inputs li,
.mix-math-trace li {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--motor-border);
  border-radius: 11px;
  background: var(--motor-paper);
}

.mix-math-inputs strong,
.mix-math-trace b {
  display: block;
  margin-top: 7px;
  color: var(--motor-ink);
  font: 700 15px/1.2 var(--motor-display);
  letter-spacing: -.02em;
}

.mix-math-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 14px;
  align-items: end;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(120, 57, 238, .3);
  border-radius: 13px;
  background: #f7f3ff;
}

.mix-math-result small { grid-column: 1 / -1; color: var(--motor-violet-deep); }
.mix-math-result strong {
  font: 700 clamp(28px, 3vw, 38px)/1 var(--motor-display);
  letter-spacing: -.04em;
}
.mix-math-result span {
  color: var(--motor-muted);
  font: 600 12px/1.3 Inter, sans-serif;
  text-align: right;
}

.mix-math-trace-line {
  margin: 13px 0 0;
  color: var(--motor-muted);
  font: 500 12.5px/1.45 "DM Mono", ui-monospace, monospace;
}
.mix-math-trace-line b { margin-right: 8px; color: var(--motor-violet); font-size: 9px; letter-spacing: .1em; }

.mix-math-replay {
  min-height: 44px;
  margin-top: 16px;
  padding: 11px 17px;
  border: 1px solid var(--motor-violet);
  border-radius: 999px;
  background: #fff;
  color: var(--motor-violet-deep);
  cursor: pointer;
  font: 750 12.5px/1 Inter, sans-serif;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.mix-math-replay:hover { background: var(--motor-violet); color: #fff; }
.mix-math-replay:active { transform: scale(.98); }

.mix-math-disclosure {
  max-width: 78ch;
  margin: 16px 0 0;
  color: var(--motor-muted);
  font: 400 12.5px/1.5 Inter, sans-serif;
}

/* ── vitrine ─────────────────────────────────────────────────────────────── */

.mix-plansub-showcase { background: var(--motor-cream); }

.mix-plansub-showcase-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--motor-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--motor-shadow);
}

.mix-plansub-page .mix-motor-shapes text { pointer-events: none; }

/* 01/03 · o roteador do Motor de IA */

.mix-plansub-ask {
  margin: 0 0 24px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--motor-violet-soft);
  font: 500 17px/1.4 Inter, sans-serif;
}
.mix-plansub-ask::before { content: "“"; }
.mix-plansub-ask::after { content: "”"; }

.mix-plansub-lanes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mix-plansub-lane {
  position: relative;
  padding: 20px 18px;
  border: 1px solid var(--motor-border);
  border-radius: 16px;
  background: var(--motor-paper);
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}
.mix-plansub-lane[data-plansub-route-state="selected"]::before {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 11px;
  height: 5px;
  border-radius: 999px;
  background: var(--motor-violet);
  content: "";
}
.mix-plansub-showcase.is-in .mix-plansub-lane {
  animation: mix-plansub-in 480ms cubic-bezier(.16, 1, .3, 1)
    calc(220ms + var(--li) * 130ms) forwards;
}
.mix-plansub-lane b {
  color: var(--motor-violet);
  font: 800 10.5px/1 Inter, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.mix-plansub-lane em {
  display: block;
  margin-top: 12px;
  font: 700 15px/1.2 var(--motor-display);
  font-style: normal;
  letter-spacing: -.02em;
}
.mix-plansub-lane span {
  display: block;
  margin-top: 8px;
  color: var(--motor-muted);
  font: 400 13px/1.45 Inter, sans-serif;
}

.mix-plansub-answer {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--motor-panel-border);
  background: var(--motor-panel-bg);
  color: #fff;
}
.mix-plansub-answer small {
  color: #c8b5ff;
  font: 800 10px/1 Inter, sans-serif;
  letter-spacing: .12em;
}
.mix-plansub-answer strong {
  display: block;
  margin-top: 11px;
  font: 700 21px/1.3 var(--motor-display);
  letter-spacing: -.025em;
}
.mix-plansub-answer-sources { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.mix-plansub-answer-sources .mix-motor-chip {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
}

/* 02/03 · um número que se abre */

.mix-plansub-metric {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--motor-border);
}
.mix-plansub-metric[data-plansub-evidence="example"]::after {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 9px;
  border: 1px solid rgba(120, 57, 238, .2);
  border-radius: 999px;
  color: var(--motor-violet-deep);
  background: var(--motor-violet-soft);
  content: "EXEMPLO";
  font: 800 9px/1 "DM Mono", ui-monospace, monospace;
  letter-spacing: .09em;
}
.mix-plansub-metric small {
  width: 100%;
  color: var(--motor-muted);
  font: 800 10.5px/1 Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mix-plansub-metric strong {
  font: 700 clamp(34px, 4vw, 48px)/1 var(--motor-display);
  letter-spacing: -.04em;
}
.mix-plansub-metric span {
  color: #b4342f;
  font: 600 14px/1 Inter, sans-serif;
}

.mix-plansub-formula {
  margin: 22px 0 0;
  padding: 15px 18px;
  border-radius: 13px;
  background: var(--motor-violet-soft);
  color: var(--motor-violet-deep);
  font: 600 15px/1.4 "SFMono-Regular", ui-monospace, Menlo, monospace;
}

.mix-plansub-terms {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.mix-plansub-terms li {
  padding: 17px 18px;
  border: 1px solid var(--motor-border);
  border-radius: 15px;
  background: var(--motor-paper);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}
.mix-plansub-showcase.is-in .mix-plansub-terms li {
  animation: mix-plansub-in 460ms cubic-bezier(.16, 1, .3, 1)
    calc(260ms + var(--li) * 120ms) forwards;
}
.mix-plansub-terms b {
  color: var(--motor-muted);
  font: 800 10px/1.3 Inter, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.mix-plansub-terms strong {
  display: block;
  margin-top: 9px;
  font: 700 20px/1 var(--motor-display);
  letter-spacing: -.03em;
}
.mix-plansub-terms em {
  display: block;
  margin-top: 7px;
  color: var(--motor-muted);
  font: 400 12.5px/1.35 Inter, sans-serif;
  font-style: normal;
}

.mix-plansub-cause,
.mix-plansub-gap {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--motor-border);
  font: 400 14.5px/1.5 Inter, sans-serif;
}
.mix-plansub-cause b,
.mix-plansub-gap b {
  display: block;
  margin-bottom: 5px;
  font: 800 10px/1 Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mix-plansub-cause b { color: var(--motor-violet); }
.mix-plansub-gap b { color: #b4342f; }

/* 03/03 · a rota que se refaz */

.mix-plansub-rework {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.mix-plansub-rework-side {
  padding: 22px 24px;
  border: 1px solid var(--motor-border);
  border-radius: 18px;
  background: var(--motor-paper);
}
.mix-plansub-rework-side--after {
  border-color: var(--motor-violet);
  background: #fff;
  box-shadow: 0 14px 32px rgba(120, 57, 238, .12);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.mix-plansub-rework-side small {
  color: var(--motor-muted);
  font: 800 10px/1 Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mix-plansub-rework-side--after small { color: var(--motor-violet); }
.mix-plansub-rework-side > p:last-child {
  margin: 12px 0 0;
  color: var(--motor-muted);
  font: 400 13.5px/1.5 Inter, sans-serif;
}

.mix-plansub-rework-steps {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.mix-plansub-rework-steps li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 11px;
  background: #fff;
  font: 400 13.5px/1.35 Inter, sans-serif;
}
.mix-plansub-rework-steps b { font-weight: 500; }
.mix-plansub-rework-steps em {
  color: var(--motor-violet-deep);
  font: 700 13px/1 Inter, sans-serif;
  font-style: normal;
  white-space: nowrap;
}
/* O passo que sai fica riscado: é ele que explica a diferença dos totais. */
.mix-plansub-rework-steps li[data-plansub-removed="1"] {
  background: rgba(255, 143, 168, .1);
}
.mix-plansub-rework-steps li[data-plansub-removed="1"] b,
.mix-plansub-rework-steps li[data-plansub-removed="1"] em {
  color: var(--motor-muted);
  text-decoration: line-through;
}

.mix-plansub-rework-total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0 0;
}
.mix-plansub-rework-total b {
  font: 700 22px/1 var(--motor-display);
  letter-spacing: -.03em;
}
.mix-plansub-rework-total span {
  color: var(--motor-muted);
  font: 400 13px/1 Inter, sans-serif;
}

.mix-plansub-rework-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border: 1px solid rgba(120, 57, 238, .22);
  border-radius: 50%;
  background: #fff;
  color: var(--motor-violet);
  font-size: 15px;
  font-weight: 800;
}

/* A navegação entre capítulos usa `.mix-motor-chapter-nav`, na casca comum,
   com a mesma faixa de três colunas do Motor Conecta. */

/* ── o repertório de métodos ─────────────────────────────────────────────── */

.mix-plansub-methods { background: var(--motor-paper); }

.mix-plansub-method-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mix-plansub-method {
  padding: 22px 22px 24px;
  border: 1px solid var(--motor-border);
  border-radius: 20px;
  background: #fff;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.mix-plansub-methods.is-in .mix-plansub-method {
  animation: mix-plansub-in 500ms cubic-bezier(.16, 1, .3, 1)
    calc(var(--mi) * 90ms) forwards;
}
.mix-plansub-method:hover {
  border-color: rgba(120, 57, 238, .3);
  box-shadow: var(--motor-elev-2);
}
.mix-plansub-method b {
  font: 700 18px/1.15 var(--motor-display);
  letter-spacing: -.025em;
}
.mix-plansub-method em {
  display: block;
  margin-top: 6px;
  color: var(--motor-violet);
  font: 600 12px/1.35 Inter, sans-serif;
  font-style: normal;
}
/* `:not(.mix-motor-icon)` porque o badge do ícone também é um span, e sem
   isto ele herdava o traço de topo e a margem do texto. */
.mix-plansub-method span:not(.mix-motor-icon) {
  display: block;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--motor-border);
  color: var(--motor-muted);
  font: 400 13.5px/1.5 Inter, sans-serif;
}

.mix-plansub-method-gap {
  margin: 20px 0 0;
  padding: 16px 20px;
  border: 1px dashed rgba(180, 52, 47, .35);
  border-radius: 14px;
  color: var(--motor-muted);
  font: 400 14px/1.5 Inter, sans-serif;
}

/* ── a seção que explica ─────────────────────────────────────────────────── */

.mix-plansub-why {
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(120, 57, 238, .3) 0%, rgba(120, 57, 238, 0) 44%),
    var(--motor-navy);
}

.mix-plansub-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mix-plansub-why-side {
  padding: 26px 26px 20px;
  border: 1px solid var(--motor-border-light);
  border-radius: 22px;
  background: rgba(255, 255, 255, .04);
}
/* A segunda coluna é a que a página defende: ela vem acesa. */
.mix-plansub-why-side:last-child {
  border-color: rgba(184, 166, 255, .45);
  background: rgba(184, 166, 255, .09);
}
.mix-plansub-why-side small {
  display: block;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .5);
  font: 800 10px/1 Inter, sans-serif;
  letter-spacing: .12em;
}
.mix-plansub-why-side:last-child small { color: #c8b5ff; }

.mix-plansub-why-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.mix-plansub-why-side li {
  padding-left: 24px;
  position: relative;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}
.mix-plansub-why.is-in .mix-plansub-why-side li {
  animation: mix-plansub-in 460ms cubic-bezier(.16, 1, .3, 1)
    calc(var(--wc) * 90ms + var(--wi) * 80ms) forwards;
}
/* × na coluna do problema, ✓ na coluna da solução: o olho lê antes do texto. */
.mix-plansub-why-side li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  color: var(--plan-alert);
  font: 800 14px/1 Inter, sans-serif;
}
.mix-plansub-why-side:last-child li::before { content: "✓"; color: #9ae2b2; }

.mix-plansub-why-side b {
  display: block;
  font: 700 16px/1.25 var(--motor-display);
  letter-spacing: -.02em;
}
.mix-plansub-why-side span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .6);
  font: 400 13.5px/1.5 Inter, sans-serif;
}

.mix-plansub-why-closing {
  max-width: 72ch;
  margin: 24px 0 0;
  padding: 18px 22px;
  border-left: 3px solid #b8a6ff;
  color: rgba(255, 255, 255, .82);
  font: 500 16px/1.55 Inter, sans-serif;
}

/* ── o catálogo ──────────────────────────────────────────────────────────── */

.mix-plansub-catalog { background: var(--motor-cream); }

/* Tabela larga rola sozinha em vez de estourar a página. */
.mix-plansub-catalog-scroll {
  overflow-x: auto;
  border: 1px solid var(--motor-border);
  border-radius: 22px;
  background: #fff;
}

.mix-plansub-catalog-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  text-align: left;
}

.mix-plansub-catalog-table thead th {
  padding: 17px 22px;
  border-bottom: 1px solid var(--motor-border);
  background: var(--motor-violet-soft);
  color: var(--motor-violet-deep);
  font: 800 10px/1 Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mix-plansub-catalog-table tbody tr {
  border-bottom: 1px solid var(--motor-border);
  opacity: 0;
}
.mix-plansub-catalog-table tbody tr:last-child { border-bottom: 0; }
.mix-plansub-catalog.is-in .mix-plansub-catalog-table tbody tr {
  animation: mix-plansub-fade 420ms ease calc(var(--ci) * 70ms) forwards;
}
@keyframes mix-plansub-fade { to { opacity: 1; } }

.mix-plansub-catalog-table tbody th {
  padding: 18px 22px;
  font: 700 16px/1.25 var(--motor-display);
  letter-spacing: -.022em;
  vertical-align: top;
  white-space: nowrap;
}
.mix-plansub-catalog-table td {
  padding: 18px 22px;
  color: var(--motor-muted);
  font: 400 13.5px/1.5 Inter, sans-serif;
  vertical-align: top;
}

.mix-plansub-catalog-formula code {
  display: block;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--motor-paper);
  color: var(--motor-ink);
  font: 500 12.5px/1.4 "SFMono-Regular", ui-monospace, Menlo, monospace;
}

.mix-plansub-catalog-sources { min-width: 200px; }
.mix-plansub-catalog-sources .mix-motor-chip {
  margin: 0 5px 5px 0;
  padding: 5px 10px;
  background: var(--motor-paper);
  font-size: 12px;
}

.mix-plansub-catalog-note {
  margin: 18px 0 0;
  color: var(--motor-muted);
  font: 400 14px/1.5 Inter, sans-serif;
}

/* ── as fontes do capítulo ───────────────────────────────────────────────── */

.mix-plansub-sources { background: var(--motor-paper); }

.mix-plansub-source-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mix-plansub-source {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  border: 1px solid var(--motor-border);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.mix-plansub-sources.is-in .mix-plansub-source {
  animation: mix-plansub-in 460ms cubic-bezier(.16, 1, .3, 1)
    calc(var(--si) * 60ms) forwards;
}
.mix-plansub-source:hover {
  border-color: rgba(120, 57, 238, .32);
  box-shadow: var(--motor-elev-2);
}

.mix-plansub-source-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--motor-border);
  border-radius: 12px;
  background: #fff;
}
.mix-plansub-source-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
/* Se o SVG do conector não carregar, ficam as iniciais no lugar do buraco. */
.mix-plansub-source-logo i {
  position: absolute;
  color: var(--motor-muted);
  font: 700 13px/1 Inter, sans-serif;
  font-style: normal;
  opacity: 0;
}
.mix-plansub-source-logo:has(img:not([src])) i,
.mix-plansub-source-logo[data-plansub-logo-state="error"] i { opacity: 1; }
.mix-plansub-source-logo[data-plansub-logo-state="error"] img { display: none; }

.mix-plansub-source b {
  margin-top: 15px;
  font: 700 15px/1.2 var(--motor-display);
  letter-spacing: -.022em;
}
.mix-plansub-source > span:last-child {
  margin-top: 7px;
  color: var(--motor-muted);
  font: 400 12.5px/1.4 Inter, sans-serif;
}

.mix-plansub-source-closing {
  margin: 20px 0 0;
  color: var(--motor-muted);
  font: 400 14px/1.5 Inter, sans-serif;
}
.mix-plansub-sources .mix-motor-actions { margin-top: 18px; }

/* ── ícones nos passos e nos métodos ─────────────────────────────────────── */

.mix-plansub-method .mix-motor-icon { margin-bottom: 16px; }

/* ── passagem de bastão ──────────────────────────────────────────────────── */

.mix-plansub-handoff {
  color: #fff;
  background: linear-gradient(140deg, var(--motor-violet-deep), var(--motor-navy) 78%);
}
.mix-plansub-handoff .mix-motor-eyebrow {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #d9cfff;
}
.mix-plansub-handoff h2 {
  max-width: 860px;
  margin: 24px 0 0;
  font: 700 clamp(30px, 3.6vw, 50px)/1.05 var(--motor-display);
  letter-spacing: -.042em;
  text-wrap: balance;
}
.mix-plansub-handoff-body {
  max-width: 54ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.6;
}
.mix-plansub-handoff .mix-motor-cta--primary {
  background: #fff;
  color: var(--motor-navy);
  box-shadow: none;
}
.mix-plansub-handoff .mix-motor-cta--primary:hover { background: #ece9ff; color: var(--motor-navy); }
.mix-plansub-handoff .mix-motor-cta--secondary {
  border-color: rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
}
.mix-plansub-handoff .mix-motor-cta--secondary:hover {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* ── telas menores ───────────────────────────────────────────────────────── */

@media (max-width: 1120px) {
  .mix-plansub-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mix-plansub-method-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mix-plansub-hero-layout { grid-template-columns: 1fr; gap: 42px; }
  .mix-plansub-why-grid { grid-template-columns: 1fr; }
  .mix-plansub-source-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mix-plansub-terms { grid-template-columns: 1fr; }
  .mix-plansub-rework { grid-template-columns: 1fr; }
  .mix-plansub-rework-arrow { transform: rotate(90deg); }
}

@media (max-width: 860px) {
  .mix-plansub-step { grid-template-columns: 1fr; gap: 26px; }
  .mix-plansub-step[data-plansub-side="left"] .mix-motor-figure,
  .mix-plansub-step[data-plansub-side="right"] .mix-motor-figure { justify-self: center; }
  .mix-plansub-step[data-plansub-side="right"] .mix-plansub-step-body { order: 0; }
  .mix-plansub-step h3 { max-width: none; }
  .mix-plansub-showcase-card { padding: 24px; }
  .mix-plansub-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mix-math-panel { grid-template-columns: 1fr; }
  .mix-math-panel-copy { position: static; }
  .mix-math-panel-copy h3,
  .mix-math-panel-copy p { max-width: 34ch; }
  .mix-math-demo-copy { grid-template-columns: 1fr; }
  .mix-math-demo-copy > small,
  .mix-math-demo-copy h3,
  .mix-math-demo-copy p {
    grid-column: 1;
    grid-row: auto;
  }
  .mix-math-demo-copy > small { padding-top: 0; }
  .mix-math-demo-copy h3 { max-width: none; margin-top: 18px; }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-math-chapter-demo__intro h2 { font-size: 40px; }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-math-demo-block {
    display: block;
    min-height: 0;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-math-demo-copy h3 {
    max-width: none;
    margin-top: 16px;
    font-size: 30px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  :is(.mix-math-hero-question, .mix-math-hero-solution) { margin-top: 24px; }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-math-demo-closing { margin-top: 18px; }
}

@media (max-width: 600px) {
  .mix-plansub-hero { padding: calc(var(--motor-header-bleed) + 52px) 0 60px; }
  .mix-plansub-hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .mix-plansub-cascade-card { margin-left: 0; margin-right: 0; }
  .mix-plansub-step[data-plansub-side="right"] .mix-plansub-step-body { order: 2; }
  .mix-plansub-step[data-plansub-side="right"] .mix-motor-figure { order: 1; }
  .mix-plansub-lanes,
  .mix-plansub-method-list { grid-template-columns: 1fr; }
  .mix-plansub-showcase-card { padding: 20px; }
  .mix-math-tablist {
    display: grid;
    margin: 14px 14px 0;
  }
  .mix-math-panel { padding: 24px 18px 28px; }
  .mix-math-attempts,
  .mix-math-solution-grid,
  .mix-math-inputs,
  .mix-math-trace { grid-template-columns: 1fr; }
  .mix-math-result { grid-template-columns: 1fr; }
  .mix-math-result span { text-align: left; }
  .mix-math-hero-demo { margin-top: 38px; gap: 40px; }
  .mix-math-chapter-demo { margin-inline: 8px; }
  .mix-math-demo-bridge__statement { font-size: 18px; }
  .mix-math-hero-question,
  .mix-math-hero-solution { padding: 24px 16px; border-radius: 18px; }
  .mix-math-hero-attempts { grid-template-columns: 1fr; margin-top: 20px; }
  .mix-math-hero-attempts li { padding: 12px 14px; }
  .mix-math-hero-flow { grid-template-columns: 1fr; gap: 6px; }
  .mix-math-hero-flow li { padding: 10px 12px; }
  .mix-math-hero-flow li b { font-size: 10px; }
  .mix-math-hero-equation__terms { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .mix-math-hero-equation__terms > i:last-of-type {
    grid-column: 1 / -1;
    text-align: center;
  }
  .mix-math-hero-equation__terms > span.is-result { grid-column: 1 / -1; }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-math-chapter-demo__intro h2 { font-size: 40px; }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-math-demo-copy h3 { font-size: 29px; }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-math-demo-bridge {
    padding: 20px 14px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-math-demo-bridge__eyebrow { font-size: 11px; }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-math-demo-bridge__statement { font-size: 26px; }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-math-demo-bridge__statement + p { font-size: 16px; }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-plansub-step[data-plansub-side="right"]
  :is(.mix-plansub-step-body, .mix-motor-figure) { order: 0; }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-plansub-catalog-scroll {
    position: relative;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-plansub-catalog-scroll::before {
    position: sticky;
    left: 0;
    z-index: 4;
    display: block;
    width: fit-content;
    padding: 12px 14px 10px;
    color: var(--motor-violet-deep);
    background: #fff;
    content: "Deslize para ver mais →";
    font: 750 12px/1.25 Inter, sans-serif;
    letter-spacing: .01em;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-plansub-catalog-table :is(thead th:first-child, tbody th) {
    position: sticky;
    left: 0;
    min-width: 180px;
    box-shadow: 1px 0 0 var(--motor-border);
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-plansub-catalog-table thead th:first-child {
    z-index: 3;
    background: var(--motor-violet-soft);
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-plansub-catalog-table tbody th {
    z-index: 2;
    background: #fff;
  }
}

/* ── movimento reduzido ──────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .mix-plansub-page :is(
    .mix-plansub-step,
    .mix-plansub-lane,
    .mix-plansub-terms li,
    .mix-plansub-method,
    .mix-plansub-cascade-card,
    .mix-plansub-why-side li,
    .mix-plansub-catalog-table tbody tr,
    .mix-plansub-source,
    .mix-math-panel,
    .mix-math-flow li,
    .mix-math-hero-attempts li,
    .mix-math-hero-flow li
  ) {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .mix-math-panel { transition: none !important; }
  .mix-math-hero-attempts li,
  .mix-math-hero-attempts li::after,
  .mix-math-hero-flow li { transition: none !important; }
  .mix-math-panel:not(.is-active) {
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .mix-math-tablist button,
  .mix-math-replay { transition: none !important; }
  /* A escada some junto com a animação? Não: o recuo é layout, não movimento,
     e continua valendo. */
}

/* As três mesas de decisão preservam a cascata. O estado ativo abre somente os
   campos que provam aquele artefato: briefing, conta ou cenário revisável. */
.mix-plansub-hero-visual[data-illustration-artifact] {
  padding-top: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(246, 243, 255, .9));
  box-shadow: 0 22px 50px rgba(32, 23, 55, .09);
}

.mix-plansub-hero-visual[data-illustration-artifact]
.mix-plansub-cascade-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 62px;
  box-shadow: var(--motor-elev-1);
}

.mix-plansub-hero-visual[data-illustration-artifact]
.mix-plansub-cascade-card[data-plan-active="true"] {
  padding-block: 16px;
  border-color: rgba(120, 57, 238, .42);
  border-radius: 5px 17px 5px 17px;
  background: #f4efff;
}

.mix-plansub-hero-visual[data-illustration-artifact]
.mix-plansub-cascade-card[data-plan-active="true"]::before {
  position: absolute;
  top: 9px;
  right: 12px;
  content: "ARTEFATO ABERTO";
  color: var(--motor-violet-deep);
  font: 750 8px/1 "DM Mono", ui-monospace, monospace;
  letter-spacing: .08em;
}

.mix-plansub-hero-visual[data-illustration-artifact="research-briefing"]
.mix-plansub-cascade-card[data-plan-active="true"]::before { content: "BRIEFING ABERTO"; }

.mix-plansub-hero-visual[data-illustration-artifact="auditable-calculation"]
.mix-plansub-cascade-card[data-plan-active="true"]::before { content: "CONTA ABERTA"; }

.mix-plansub-hero-visual[data-illustration-artifact="reviewable-scenario"]
.mix-plansub-cascade-card[data-plan-active="true"]::before { content: "CENÁRIO ABERTO"; }

.mix-plansub-cascade-detail {
  grid-column: 2;
  display: block;
  margin-top: 7px;
  color: #5d5868;
  font: 650 10px/1.35 "DM Mono", ui-monospace, monospace;
}

.mix-plansub-hero-visual[data-illustration-artifact]
.mix-plansub-cascade-card[data-plan-active="true"] .mix-plansub-cascade-detail {
  max-width: calc(100% - 74px);
  color: #3d2865;
}

.mix-plansub-cascade-proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.mix-plansub-cascade-proof > span {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(120, 57, 238, .14);
  border-radius: 9px;
  background: rgba(255, 255, 255, .76);
}

.mix-plansub-cascade-proof small,
.mix-plansub-cascade-proof b {
  display: block;
  overflow-wrap: anywhere;
}

.mix-plansub-cascade-proof small {
  color: var(--motor-violet-deep);
  font: 800 10px/1 "DM Mono", ui-monospace, monospace;
  letter-spacing: .07em;
}

.mix-plansub-cascade-proof b {
  margin-top: 5px;
  color: #332a42;
  font: 650 10px/1.25 Inter, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.mix-plansub-cascade-result {
  grid-column: 2;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  color: var(--motor-violet-deep);
  font-family: "DM Mono", ui-monospace, monospace;
}

.mix-plansub-cascade-result small {
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .08em;
}

.mix-plansub-cascade-result b {
  font-size: 17px;
  line-height: 1;
}

.mix-plansub-hero-visual[data-illustration-artifact]
.mix-plansub-cascade-card > div span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

@media (max-width: 600px) {
  .mix-plansub-hero-visual[data-illustration-artifact] {
    padding: 20px;
  }

  .mix-plansub-hero-visual[data-illustration-artifact]
  .mix-plansub-cascade-card[data-plan-active="true"] .mix-plansub-cascade-detail {
    max-width: none;
  }

  .mix-plansub-cascade-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Motor Matemático legado · refinamento visual aprovado em 27/08/2026.
   Os overrides ficam presos à página restaurada e não alteram o renderer. */
.mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-demo-copy {
  align-self: center;
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
:is(.mix-plansub-catalog, .mix-plansub-sources, .mix-plansub-methods) {
  padding-block: 84px;
}

.mix-plansub-page[data-plansub-key="motor-matematico"] .mix-plansub-catalog {
  background: var(--motor-cream);
}

.mix-plansub-page[data-plansub-key="motor-matematico"] .mix-plansub-sources {
  background: var(--motor-paper);
}

.mix-plansub-page[data-plansub-key="motor-matematico"] .mix-plansub-methods {
  background: #f8f5ff;
}

.mix-plansub-page[data-plansub-key="motor-matematico"] .mix-plansub-method em {
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(120, 57, 238, .14);
  border-radius: 10px;
  background: var(--motor-violet-soft);
  color: var(--motor-violet-deep);
  font: 650 11.5px/1.45 "DM Mono", ui-monospace, monospace;
}

.mix-plansub-page[data-plansub-key="motor-matematico"]
.mix-plansub-method span:not(.mix-motor-icon) {
  margin-top: 10px;
  padding-top: 10px;
}

@media (max-width: 600px) {
  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-hero-demo {
    gap: 22px;
    margin-top: 32px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-demo-bridge {
    padding: 16px 12px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-demo-copy h3,
  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-demo-copy p,
  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-demo-closing {
    margin-top: 12px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  :is(.mix-math-hero-question, .mix-math-hero-solution) {
    min-height: 0;
    margin-top: 18px;
    padding: 20px 14px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-hero-question > strong {
    margin-top: 12px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-hero-attempt-lead {
    margin-top: 18px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-hero-attempts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-hero-attempts li {
    padding: 9px 8px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-hero-attempts strong {
    font-size: 13px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-hero-attempts span {
    font-size: 7.5px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-hero-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-hero-flow li {
    padding: 9px 8px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-hero-equation {
    margin-top: 11px;
    padding: 18px 14px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-math-hero-equation__terms {
    gap: 8px;
    margin-top: 14px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-plansub-cascade-proof > span:nth-child(3):last-child {
    grid-column: 1 / -1;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-plansub-cascade-proof small {
    font-size: 10px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-plansub-cascade-proof b {
    font-size: 11px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-plansub-cascade-result {
    grid-column: 1 / -1;
    justify-content: flex-end;
    align-items: baseline;
    margin-top: 6px;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-plansub-catalog-scroll {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-plansub-catalog-scroll::before {
    grid-area: 1 / 1;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-plansub-catalog-table {
    grid-area: 2 / 1;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"] .mix-plansub-catalog-scroll::after {
    grid-area: 2 / 1;
    position: sticky;
    right: 0;
    z-index: 5;
    display: block;
    align-self: stretch;
    justify-self: end;
    width: 22px;
    height: auto;
    margin: 0;
    background: linear-gradient(90deg, transparent, var(--motor-cream));
    content: "";
    pointer-events: none;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  .mix-plansub-catalog-table :is(thead th:first-child, tbody th) {
    box-sizing: border-box;
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    line-height: 1.2;
    white-space: normal;
  }

  .mix-plansub-page[data-plansub-key="motor-matematico"]
  :is(.mix-plansub-catalog, .mix-plansub-sources, .mix-plansub-methods) {
    padding-block: 68px;
  }
}
