/* =================================================================
   mihai. landing · layout da página
   Cores, fontes, raios e componentes vêm de /design-system (tokens.css
   e components.css). Aqui só existe layout. Nenhum hex solto.
   ================================================================= */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3 { margin: 0; }
a { color: var(--accent); }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.wrap--estreito { max-width: 820px; }
.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }

.secao { padding-block: var(--sp-20); border-bottom: 1px solid var(--border); }
.secao-intro { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 640px; margin-bottom: var(--sp-12); }

/* ---------- Topo ---------- */
.topo { border-bottom: 1px solid var(--border); background: var(--bg); }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 72px; }
.topo .mh-logo { height: 32px; }
.topo .mh-logo img { height: 100%; width: auto; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: 600px;
  background:
    linear-gradient(90deg,
      var(--navy-900) 0%,
      var(--navy-900) 38%,
      color-mix(in srgb, var(--navy-900) 80%, transparent) 50%,
      color-mix(in srgb, var(--navy-900) 0%, transparent) 68%),
    url("/design-system/assets/mihai-cena-hero.webp") right center / cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero-img { display: none; }
.hero .copy { max-width: 560px; display: flex; flex-direction: column; gap: var(--sp-6); padding-block: var(--sp-16); }
.hero .nota { margin-top: calc(-1 * var(--sp-2)); }

@media (max-width: 799px) {
  .hero { display: block; min-height: 0; background: var(--navy-900); }
  .hero-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 72% center; }
  .hero .copy { padding-block: var(--sp-6) var(--sp-12); }
  .hero .row .mh-btn { flex: 1 1 100%; }
}

/* ---------- Como funciona ---------- */
.como { display: grid; gap: var(--sp-10); align-items: start; }
.passos { display: grid; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; }
.passo { flex-direction: row; align-items: center; gap: var(--sp-5); }
.passo img { width: 104px; height: 104px; object-fit: contain; flex-shrink: 0; filter: var(--shadow-pet); }
.passo .mh-h3 { font-size: var(--fs-h3-mkt); margin-bottom: var(--sp-2); }

.app-mock { width: 100%; max-width: var(--app-max); margin: 0 auto; border: 6px solid var(--navy-700); border-radius: calc(var(--r-xl) + var(--sp-2)); overflow: hidden; background: var(--bg); box-shadow: var(--shadow-device); }
.app-mock .in { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }
.app-mock .topo-app { display: flex; align-items: center; justify-content: space-between; }
.app-mock .topo-app img { height: 24px; width: auto; }
.app-mock .mh-scene { background-image: url("/design-system/assets/mihai-cena-hero.webp"); background-position: 76% center; }
.app-mock .tarefa { display: flex; align-items: center; gap: var(--sp-3); }
.app-mock .mh-btn { pointer-events: none; }
.legenda-mock { text-align: center; margin-top: var(--sp-3); }

@media (min-width: 960px) {
  .como { grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-16); }
}

/* ---------- Fila de espera ---------- */
.fila { display: grid; gap: var(--sp-10); align-items: start; }
@media (min-width: 960px) { .fila { grid-template-columns: 1fr 1fr; gap: var(--sp-16); } }
.lista-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.lista-check li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.lista-check .mh-icon { color: var(--gold-400); margin-top: 1px; }

.form { display: flex; flex-direction: column; gap: var(--sp-4); }
.campo { display: flex; flex-direction: column; gap: var(--sp-2); }
.campo label { font-size: var(--fs-sm); font-weight: var(--fw-semi); }
.campo .mh-field[aria-invalid="true"] { border-color: var(--coral-300); }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-3); align-items: start; font-size: var(--fs-sm); line-height: 1.55; color: var(--text-muted); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--primary); }
.consent a { color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-erro { color: var(--coral-300); font-size: var(--fs-sm); font-weight: var(--fw-semi); }

.sucesso { align-items: center; text-align: center; }
.sucesso img { width: 132px; height: 132px; object-fit: contain; filter: var(--shadow-pet); }
.sucesso .acoes { display: flex; flex-direction: column; gap: var(--sp-3); width: 100%; }

/* ---------- Plano Fundador ---------- */
.fundador { display: grid; gap: var(--sp-8); padding: var(--sp-8); }
@media (min-width: 960px) { .fundador { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-12); padding: var(--sp-12); align-items: center; } }
.preco { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-3); }
.preco .periodo { font-size: var(--fs-lead); font-weight: var(--fw-bold); color: var(--text-muted); }

/* ---------- Empresa social ---------- */
.social { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 960px) { .social { grid-template-columns: auto 1fr; gap: var(--sp-16); } }
.social-arte { position: relative; width: 200px; justify-self: center; }
.social-arte img { display: block; width: 100%; height: auto; filter: var(--shadow-pet); }
.social-arte .mh-iconbox { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  min-height: 44px; padding: var(--sp-5) var(--sp-12) var(--sp-5) var(--sp-5);
  font-size: var(--fs-h3); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mh-icon { position: absolute; right: var(--sp-5); top: 50%; transform: translateY(-50%); color: var(--accent); transition: transform var(--dur-fast) var(--ease); }
.faq details[open] summary .mh-icon { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-muted); }

/* ---------- CTA final ---------- */
.cta-final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-6); }
.cta-final img { width: 150px; height: 150px; object-fit: contain; filter: var(--shadow-pet); }

/* ---------- Rodapé ---------- */
.rodape { padding-block: var(--sp-12) calc(var(--sp-12) + env(safe-area-inset-bottom, 0px)); }
.rodape .wrap { display: flex; flex-direction: column; gap: var(--sp-5); }
.rodape .mh-logo { height: 24px; }
.rodape .mh-logo img { height: 100%; width: auto; }
.rodape nav { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); }
.rodape nav a, .rodape nav button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--text); font-size: var(--fs-sm); text-decoration: none;
}
.rodape nav a:hover, .rodape nav button:hover { text-decoration: underline; }

/* ---------- Banner de cookies ---------- */
.cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--shadow-modal);
  padding: var(--sp-4) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.cookies-in { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-3); }
.cookies-acoes { display: flex; gap: var(--sp-3); }
.cookies-acoes .mh-btn { flex: 1 1 0; }
@media (min-width: 800px) {
  .cookies-in { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-8); }
  .cookies-acoes .mh-btn { flex: 0 0 auto; }
}

/* ---------- Política / páginas de texto ---------- */
.doc { padding-block: var(--sp-16) var(--sp-20); }
.doc .mh-h2 { margin: var(--sp-10) 0 var(--sp-3); }
.doc p, .doc li { font-size: var(--fs-body); line-height: var(--lh-body); }
.doc p + p { margin-top: var(--sp-3); }
.doc ul { padding-left: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); }
.doc .link-btn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
