/* ==========================================================
   A REGRA DOS 5 MINUTOS — página estática responsiva
   Base independente do HubZek / Next.js
   ========================================================== */

:root {
  --design-width: 1200px;
  --page-scale: 1;
}

/* ---------- Reset e base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: #fbf9fc;
  color: #2e2438;
  font-family: "Jost", Arial, sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg {
  max-width: 100%;
}

/* ---------- Encaixe no viewport ----------
   A arte original foi criada em uma prancheta de 1200px.
   Em telas menores, a página inteira é reduzida proporcionalmente
   para caber exatamente na largura disponível, sem scroll lateral.
   Em telas >= 1200px, mantém o tamanho original centralizado. */
.page-viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.static-page {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--design-width);
  margin-left: -600px;
  transform: scale(var(--page-scale));
  transform-origin: top center;
  will-change: transform;
  backface-visibility: hidden;
}

.section-canvas {
  position: relative;
  width: var(--design-width);
  margin: 0;
  isolation: isolate;
  overflow: hidden !important;
}

.section-canvas img {
  display: block;
}

.component {
  box-sizing: border-box;
}

/* ---------- Animações originais permitidas ---------- */
@keyframes lp-section-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lp-section-slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes lp-section-zoom {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- Controles do antigo construtor ---------- */
.mini-btn,
[title="Editar seção"],
[title="Mover para cima"],
[title="Mover para baixo"],
[title="Duplicar seção"],
[title="Excluir seção"] {
  display: none !important;
}

/* ---------- Estabilidade visual ---------- */
.section-canvas > [aria-hidden="true"] svg {
  animation: none !important;
}

/* Evita artefatos de subpixel/flickering em imagens transformadas. */
.section-canvas,
.component,
.section-canvas img {
  -webkit-font-smoothing: antialiased;
  transform-style: flat;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================
   VERSÃO MOBILE REAL — reorganiza o conteúdo, sem zoom do desktop
   ========================================================== */
.mobile-page { display: none; }

@media (max-width: 767px) {
  .page-viewport { display: none !important; }
  .mobile-page {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #fbf9fc;
    color: #2e2438;
  }

  .m-section,
  .m-footer {
    position: relative;
    width: 100%;
    padding: 56px 22px;
  }

  .m-section { background: #fbf9fc; }
  .m-soft { background: #f7f2fa; }
  .m-lilac { background: #f1eaf6; }
  .m-cta,
  .m-offer,
  .m-dark-card {
    background: linear-gradient(160deg, #eee5f5 0%, #f8f3fb 100%);
  }

  .m-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(139,108,240,.35);
    border-radius: 7px;
    color: #8b6cf0;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: .16em;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .m-section h1,
  .m-section h2,
  .m-section h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    color: #2e2438;
  }

  .m-section h1 {
    font-size: clamp(42px, 12vw, 58px);
    line-height: .98;
    letter-spacing: -.035em;
    margin-bottom: 22px;
  }
  .m-section h1 span { color: #8b6cf0; }
  .m-section h2 {
    font-size: clamp(34px, 9.5vw, 46px);
    line-height: 1.02;
    letter-spacing: -.025em;
    margin-bottom: 20px;
  }
  .m-section h3 {
    font-size: 27px;
    line-height: 1.05;
    margin: 4px 0 8px;
  }

  .m-section p,
  .m-card,
  .m-checks,
  .m-offer-list,
  .m-footer {
    font-family: "Jost", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #6f5f80;
  }

  .m-section p + p { margin-top: 10px; }
  .m-lead { font-size: 18px !important; line-height: 1.5 !important; color: #5b4b69 !important; }
  .m-center { text-align: center; }

  .m-btn {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    margin-top: 24px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #8b6cf0;
    color: #fff;
    font-family: "Jost", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 16px 36px -16px rgba(139,108,240,.65);
  }

  .m-meta {
    margin-top: 16px;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    line-height: 1.6;
    color: #756383;
    text-align: center;
  }

  .m-hero { padding-top: 42px; }
  .m-hero-image,
  .m-product-image,
  .m-author-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 32px;
    object-fit: cover;
  }
  .m-hero-image {
    aspect-ratio: 4 / 5;
    border-radius: 160px 160px 24px 24px;
    box-shadow: 0 20px 50px -24px rgba(46,36,56,.45);
  }
  .m-product-image { max-height: 420px; object-fit: contain; }
  .m-book { max-height: 500px; }
  .m-author-image { aspect-ratio: 4/5; border-radius: 24px; }

  .m-badge,
  .m-stat {
    margin-top: 18px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 16px 18px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(139,108,240,.16);
    border-radius: 14px;
    box-shadow: 0 12px 30px -24px rgba(46,36,56,.5);
  }
  .m-badge strong,
  .m-stat strong { font-family: "Cormorant Garamond", serif; font-size: 34px; color:#2e2438; }
  .m-badge span,
  .m-stat span { font-size: 14px; color:#6f5f80; }

  .m-list-cards,
  .m-grid-2,
  .m-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 26px;
  }

  .m-card,
  .m-step,
  .m-benefit {
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(139,108,240,.12);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 14px 32px -28px rgba(46,36,56,.55);
  }
  .m-card { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
  .m-card b { font-family:"Cormorant Garamond",serif; font-size: 30px; color: rgba(139,108,240,.75); line-height: 1; }
  .m-card span { color:#5f506e; }

  .m-step span {
    font-family:"DM Mono",monospace;
    font-size:10px;
    letter-spacing:.12em;
    color:#8b6cf0;
  }
  .m-step p,
  .m-benefit p { font-size:15px; }

  .m-checks {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
  }
  .m-checks li {
    position: relative;
    padding: 13px 0 13px 32px;
    border-bottom: 1px solid rgba(46,36,56,.08);
  }
  .m-checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 13px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:#8b6cf0;
    color:#fff;
    font-size:12px;
    font-weight:700;
  }

  .m-price-box {
    margin-top: 30px;
    padding: 24px 20px;
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(139,108,240,.18);
    text-align: center;
    box-shadow: 0 22px 54px -34px rgba(46,36,56,.55);
  }
  .m-price-box > span {
    display:inline-block;
    font-family:"DM Mono",monospace;
    font-size:10px;
    letter-spacing:.14em;
    color:#8b6cf0;
    margin-bottom:10px;
  }
  .m-price-box small,
  .m-price-box em { display:block; color:#756383; font-size:13px; font-style:normal; }
  .m-price-box strong {
    display:block;
    margin:4px 0;
    font-family:"Cormorant Garamond",serif;
    font-size:58px;
    line-height:1;
    color:#2e2438;
  }

  .m-chip {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:10px 12px;
    border-radius:12px;
    background:rgba(255,255,255,.75);
    border:1px solid rgba(139,108,240,.15);
    color:#5e4e6e;
    font-size:14px;
    font-weight:600;
    text-align:center;
  }

  .m-grid-2.compact { grid-template-columns: 1fr 1fr; }
  .m-grid-3 { grid-template-columns: 1fr; }
  .m-grid-3 > div { padding:14px; text-align:center; background:rgba(255,255,255,.7); border-radius:12px; color:#5e4e6e; font-weight:600; }

  .m-seal {
    display:block;
    width:150px;
    height:auto;
    margin:24px auto;
  }

  .m-highlight,
  .m-total {
    margin-top:24px;
    padding:18px;
    border-radius:16px;
    background:#8b6cf0;
    color:white;
    text-align:center;
  }
  .m-highlight strong,
  .m-highlight span { display:block; }
  .m-highlight strong { font-family:"Cormorant Garamond",serif; font-size:32px; }
  .m-total { font-size:16px; }
  .m-total strong { font-size:22px; }

  .m-timer {
    margin:26px 0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
  }
  .m-timer span {
    min-width:76px;
    padding:12px 8px;
    border-radius:12px;
    background:rgba(255,255,255,.8);
    border:1px solid rgba(139,108,240,.16);
    font-family:"Cormorant Garamond",serif;
    font-size:34px;
    line-height:1;
    text-align:center;
    color:#2e2438;
  }
  .m-timer span small { display:block; margin-top:6px; font-family:"DM Mono",monospace; font-size:8px; letter-spacing:.08em; color:#806f91; }
  .m-timer b { color:#8b6cf0; font-size:24px; }

  .m-offer-list { margin-top:22px; }
  .m-offer-list div { padding:12px 0; border-bottom:1px solid rgba(46,36,56,.08); }

  details {
    margin-top:12px;
    background:#fff;
    border:1px solid rgba(46,36,56,.08);
    border-radius:14px;
    overflow:hidden;
  }
  summary {
    cursor:pointer;
    padding:16px;
    font-family:"Jost",Arial,sans-serif;
    font-size:15px;
    font-weight:700;
    color:#4e405d;
  }
  details p { padding:0 16px 16px; font-size:14px !important; }

  .m-footer {
    background:#2e2438;
    color:rgba(255,255,255,.72);
    text-align:center;
  }
  .m-footer strong { display:block; color:#fff; font-family:"Cormorant Garamond",serif; font-size:28px; margin-bottom:18px; }
  .m-footer p { margin:8px 0; }
  .m-footer small { display:block; margin-top:18px; line-height:1.5; }
}

@media (min-width: 768px) {
  .mobile-page { display: none !important; }
}
