/* Módulos: duas portas da página inicial (.mp), montador "Monte a sua" (.mt) e páginas por módulo (.mm).
   Gerado por modulos.py a partir de _data/modulos.json. Usa os tokens de site.css e as peças de hub.css. */

/* ---- duas portas ---- */
.mp-box { --fv: var(--scrub); }
.js .mp-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mp-door { justify-content: flex-start; gap: 12px; min-height: 64px; padding: 10px 16px; text-align: left; }
.mp-door span { display: grid; gap: 2px; }
.mp-door b { font: 800 1.12rem/1.1 var(--f-display); letter-spacing: -.01em; }
.mp-door small { font: 500 .82rem/1.2 var(--f-body); color: var(--ink-2); }
.mp .fv-panel { display: block; padding: 4px; }
.js .mp .fv-panel:not(.on) { display: none; }
.pc-for { font-size: .8rem; color: var(--ink-2); }
.pc-mod .pf-status { font-size: .72rem; }
.mp-outro { margin-top: 22px; text-align: center; color: var(--ink-2); }
.mp-outro a { color: var(--scrub); font-weight: 700; }

/* ---- montador ---- */
.mt-box { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(16px, 3vw, 40px); align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(14px, 2.4vw, 28px); box-shadow: var(--shadow); }
.mt-lb { display: block; font: 700 .78rem/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.mt-sel { position: relative; margin-bottom: 20px; }
.mt-sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.mt-sel select { width: 100%; min-height: 48px; padding: 10px 40px 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font: 600 1rem/1.2 var(--f-body); appearance: none; -webkit-appearance: none; }
.mt-sel select:focus-visible { outline: 2px solid var(--scrub); outline-offset: 2px; }
.mt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mt-sw { width: 100%; height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer;
  font: inherit; transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); }
.mt-sw:hover { border-color: color-mix(in srgb, var(--scrub) 45%, var(--line)); }
.mt-sw:focus-visible { outline: 2px solid var(--scrub); outline-offset: 2px; }
.mt-sw[aria-checked="true"] { border-color: color-mix(in srgb, var(--scrub) 60%, var(--line)); background: color-mix(in srgb, var(--scrub) 8%, var(--surface)); }
.mt-si { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--ink-2); background: var(--sunk); transition: color .2s var(--ease), background .2s var(--ease); }
.mt-sw[aria-checked="true"] .mt-si { color: var(--scrub); background: color-mix(in srgb, var(--scrub) 14%, transparent); }
.mt-st { display: grid; gap: 1px; min-width: 0; }
.mt-st b { font: 700 .93rem/1.2 var(--f-body); }
.mt-st small { font-size: .78rem; line-height: 1.3; color: var(--ink-2); }
.mt-st em { font: italic 500 .74rem/1.3 var(--f-body); color: var(--due); }
.mt-tg { position: relative; width: 38px; height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--ink-2) 35%, transparent); transition: background .2s var(--ease); flex: none; }
.mt-tg i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.mt-sw[aria-checked="true"] .mt-tg { background: var(--scrub); }
.mt-sw[aria-checked="true"] .mt-tg i { transform: translateX(16px); }
.mt-basico { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: .88rem; color: var(--ink-2); }
.mt-basico svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ok); }
.mt-basico b { color: var(--ink); }

.mt-prev { position: sticky; top: 88px; display: grid; gap: 12px; justify-items: center; }
.mt-dev { width: min(100%, 380px); border-radius: 30px; border: 1px solid var(--line); background: var(--paper); padding: 16px 14px 10px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.mt-top { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; }
.mt-top b { font: 800 1.35rem/1 var(--f-display); letter-spacing: -.02em; }
.mt-top small { color: var(--ink-2); font-size: .84rem; }
.mt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mark); align-self: center; }
.mt-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mt-card { display: grid; gap: 2px; align-content: start; min-height: 92px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.mt-card.off { display: none; }
.mt-base { order: 1; background: var(--sunk); border-color: transparent; }
.mt-ci { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--scrub); background: color-mix(in srgb, var(--scrub) 13%, transparent); margin-bottom: 2px; }
.mt-ct { font: 600 .76rem/1.2 var(--f-body); color: var(--ink-2); }
.mt-card b { font: 800 1.12rem/1.15 var(--f-display); letter-spacing: -.01em; }
.mt-card small { font-size: .74rem; line-height: 1.3; color: var(--ink-2); }
.mt-mais { text-align: center; font: 600 .8rem/1.3 var(--f-body); color: var(--scrub); }
.mt-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 8px 2px 2px; border-top: 1px solid var(--line); }
.mt-nav span { display: grid; justify-items: center; gap: 2px; font: 600 .66rem/1.1 var(--f-body); color: var(--ink-2); text-align: center; }
.mt-nav span:first-child { color: var(--scrub); }
.mt-work b { font: inherit; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-zero .mt-work { opacity: .35; }
.mt-dev .pf-ex { text-align: center; }
.mt-sum { min-height: 2.6em; max-width: 380px; text-align: center; font-size: .9rem; color: var(--ink-2); }
.mt-price { font-size: .84rem; color: var(--ink-2); text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .mt-card.pop { animation: mtpop .45s var(--ease) both; }
  @keyframes mtpop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
}
@media (max-width: 960px) {
  .mt-box { grid-template-columns: 1fr; }
  .mt-prev { position: static; }
}
@media (max-width: 560px) {
  .mt-list { grid-template-columns: 1fr; }
  .mt-box { border-radius: 22px; padding: 12px; }
  .js .mp-doors { grid-template-columns: 1fr 1fr; }
  .mp-door { padding: 8px 10px; gap: 8px; }
  .mp-door svg { display: none; }
  .pc-for { display: none; }
  .mt-st small, .mt-st em { display: none; }
  .mt-sw { padding: 8px 10px; }
  .mp-door b { font-size: 1rem; }
}

/* ---- página de um módulo ---- */
.mm .lp-copy h1 { font: 700 var(--step-1)/1.25 var(--f-body); letter-spacing: 0; color: var(--ink-2); margin-top: 6px; }
.mm-big { font: 800 var(--step-4)/1.02 var(--f-display); letter-spacing: -.035em; margin: 6px 0 14px; text-wrap: balance; }
.mm-big em { font-style: normal; color: var(--scrub); }
.mm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mm-trava { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .9rem; color: var(--due); }
.mm-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mm-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; transition: border-color .2s var(--ease); }
.mm-chips a:hover, .mm-chips a:focus-visible { border-color: var(--tom); }
.mm-leia { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mm-leia a { color: var(--scrub); font-weight: 600; }
.mm .mt { padding-top: 0; }
@media (max-width: 820px) { .mm-grid { grid-template-columns: 1fr; } }
