/* ============================================================
   MIND UP · Funil low ticket (e-book) — páginas estáticas
   Identidade da landing: vermelho da marca, tinta profunda,
   Sora / Karla / IBM Plex Mono. Mobile primeiro.
   Estrutura: "Ficha / Registro" — a página lida como um
   documento numerado, com linhas de tabela em vez de cards.
   ============================================================ */

:root {
  --red: #ed443b;
  --red-bright: #ff5a4f;
  --red-deep: #c22c24;
  --green-wa: #1faa59;
  --green-wa-deep: #13803f;

  --ink-0: #05080f;
  --ink-1: #0a101c;
  --ink-2: #0e1626;
  --ink-3: #131c2e;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #e8ecf3;
  --muted: #a5b1c4;
  --faint: #6f7c91;

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Karla', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: 16px;
  --max-w: 1120px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--ink-0);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* grão leve para dar calor ao escuro */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--red-deep); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.red { color: var(--red-bright); }
h1, h2, h3 { font-family: var(--font-head); color: #fff; text-wrap: balance; }
h1 { font-size: clamp(32px, 7.2vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 5vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
p { max-width: 62ch; }

/* ---------- Faixa de prévia (só em modo prévia) ---------- */
.previa-bar {
  display: none; position: relative; z-index: 50;
  background: repeating-linear-gradient(-45deg, #3a2a00, #3a2a00 10px, #2e2200 10px, #2e2200 20px);
  color: #ffd66b; border-bottom: 1px solid #6b5200;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.5; padding: 10px var(--gutter);
}
.previa-bar strong { color: #fff; }
.is-previa .previa-bar { display: block; }
.falta { display: none; }
.is-previa .falta {
  display: inline-block; margin-top: 8px; padding: 3px 8px; border: 1px dashed #ffd66b; border-radius: 4px;
  color: #ffd66b; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
}
.confirmar { display: none; color: #ffd66b; font-family: var(--font-mono); font-size: .78em; letter-spacing: .02em; }
.is-previa .confirmar { display: inline; }

/* ---------- Topo ---------- */
.top { position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: -.02em; text-decoration: none; color: #fff; }
.brand span { color: var(--red-bright); }
.top .mono { font-size: 11px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  padding: 16px 26px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 16px;
  line-height: 1.2; text-align: center; text-decoration: none;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s var(--ease);
}
.btn--buy { background: var(--red-deep); color: #fff; box-shadow: 0 14px 36px rgba(194, 44, 36, .38), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--buy:hover { background: #d0322a; transform: translateY(-2px); box-shadow: 0 18px 44px rgba(237, 68, 59, .45), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--buy:active { transform: translateY(0); }
.btn--wa { background: var(--green-wa-deep); color: #fff; box-shadow: 0 14px 36px rgba(22, 138, 71, .3); }
.btn--wa:hover { background: #127a3e; transform: translateY(-2px); }
.btn--line { border: 1.5px solid var(--line-strong); color: #fff; }
.btn--line:hover { border-color: #fff; }
.btn--full { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; }
.hero::after { /* brilho vermelho de borda, não gradiente de card */
  content: ""; position: absolute; z-index: 0; right: -30%; top: -20%; width: 90vw; height: 90vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(237, 68, 59, .22), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; gap: 40px; }
.hero .kicker { margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.hero .kicker::before { content: ""; width: 24px; height: 2px; background: var(--red-bright); }
.hero h1 em { font-style: normal; color: var(--red-bright); }
.hero .lede { margin-top: 20px; font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); }
.hero .lede strong { color: var(--text); }
.hero-cta { margin-top: 28px; }
.hero-cta .btn { width: 100%; }
@media (min-width: 560px) { .hero-cta .btn { width: auto; } }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
}

/* Registro ilustrativo: a "lista das 100" desenhada em código */
.ledger {
  position: relative; border: 1px solid var(--line-strong); border-radius: 14px; background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(237,68,59,.08); overflow: hidden;
}
.ledger-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ledger-head .mono { font-size: 10.5px; }
.count { font-family: var(--font-mono); font-size: 12px; color: #fff; }
.count b { color: var(--red-bright); font-weight: 600; }
.ledger-rows { font-family: var(--font-mono); font-size: 11.5px; }
.ledger-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--muted); opacity: 0; transform: translateY(6px); }
.ledger-row.on { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ledger-row .n { color: var(--faint); }
.ledger-row .nm { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-row .ok { color: var(--green-wa); }
.ledger-row .hot { color: var(--red-bright); }
.ledger-foot { padding: 10px 14px; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); letter-spacing: .04em; }
.bar { height: 3px; background: var(--line); }
.bar i { display: block; height: 100%; width: 0; background: var(--red-bright); transition: width 2.4s var(--ease); }

/* ---------- Seções ---------- */
.sec { position: relative; padding: 72px 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .sec { padding: 120px 0; } }
.sec-head { display: grid; gap: 14px; margin-bottom: 36px; }
.sec-head .mono .red { margin-right: 8px; }
.sec-head p { color: var(--muted); }
@media (min-width: 960px) {
  .sec--split .wrap { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
  .sec--split .sec-head { position: sticky; top: 32px; margin-bottom: 0; }
}

/* Linhas de registro (no lugar de cards) */
.rows { border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.row .n { font-family: var(--font-mono); font-size: 13px; color: var(--red-bright); padding-top: 2px; }
.row p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.row.x .n { color: var(--faint); }
@media (min-width: 720px) { .row { grid-template-columns: 64px 1fr; padding: 26px 0; } }

/* Pra quem é / não é */
.fit { display: grid; gap: 28px; }
@media (min-width: 720px) { .fit { grid-template-columns: 1fr 1fr; gap: 48px; } }
.fit h3 { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }

/* ---------- Oferta ---------- */
.offer { border: 1px solid var(--line-strong); border-radius: 18px; background: var(--ink-1); padding: 24px 18px; box-shadow: 0 0 0 1px rgba(237,68,59,.1), 0 40px 90px rgba(0,0,0,.45); }
@media (min-width: 720px) { .offer { padding: 40px; } }
.offer-line { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed var(--line-strong); }
.offer-line span:last-child { font-family: var(--font-mono); color: #fff; white-space: nowrap; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 6px; flex-wrap: wrap; }
.price b { font-family: var(--font-head); font-size: clamp(44px, 10vw, 64px); letter-spacing: -.04em; color: #fff; line-height: 1; }
.price small { color: var(--muted); font-size: 15px; }
.total { display: flex; justify-content: space-between; margin-bottom: 14px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.total b { color: #fff; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.trust span::before { content: "— "; color: var(--faint); }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: #fff; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--red-bright); font-size: 20px; line-height: 1; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--muted); }

/* ---------- Final / rodapé ---------- */
.final { text-align: left; }
.final h2 { max-width: 18ch; }
.final .btn { margin-top: 28px; }
@media (max-width: 559px) { .final .btn { width: 100%; } }
.foot { border-top: 1px solid var(--line); padding: 32px 0 120px; font-size: 13px; color: var(--faint); position: relative; z-index: 2; }
.foot p { max-width: 80ch; }
.foot p + p { margin-top: 8px; }
@media (min-width: 960px) { .foot { padding-bottom: 40px; } }

/* Barra fixa de compra no celular */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 8, 15, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-strong);
  display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .4s var(--ease);
}
.sticky-buy.show { transform: none; }
.sticky-buy .p { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff; white-space: nowrap; }
.sticky-buy .p small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.sticky-buy .btn { flex: 1; min-height: 48px; padding: 12px 16px; font-size: 15px; }
@media (min-width: 960px) { .sticky-buy { display: none; } }

/* Aviso de link pendente (prévia) */
.toast {
  position: fixed; left: var(--gutter); right: var(--gutter); top: 16px; z-index: 60; max-width: 520px; margin: 0 auto;
  padding: 14px 16px; border-radius: 12px; background: #2e2200; border: 1px solid #6b5200; color: #ffd66b;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: none; }

/* Revelação ao rolar — escalonada, não "fade up" em tudo */
.rv { opacity: 0; clip-path: inset(0 0 100% 0); transition: opacity .7s var(--ease), clip-path .9s var(--ease); }
.rv.in { opacity: 1; clip-path: inset(0 0 0 0); }
.rows .row { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.rows.in .row { opacity: 1; transform: none; }
.rows.in .row:nth-child(2) { transition-delay: .07s; } .rows.in .row:nth-child(3) { transition-delay: .14s; }
.rows.in .row:nth-child(4) { transition-delay: .21s; } .rows.in .row:nth-child(5) { transition-delay: .28s; }
.rows.in .row:nth-child(6) { transition-delay: .35s; } .rows.in .row:nth-child(7) { transition-delay: .42s; }

/* ---------- Obrigado ---------- */
.ok-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(31,170,89,.4); background: rgba(31,170,89,.08); color: #6fe3a1; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ok-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-wa); box-shadow: 0 0 0 0 rgba(31,170,89,.6); animation: pip 2s infinite; }
@keyframes pip { 70% { box-shadow: 0 0 0 10px rgba(31,170,89,0); } 100% { box-shadow: 0 0 0 0 rgba(31,170,89,0); } }
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 32px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps div { background: var(--ink-1); padding: 18px; }
.steps .mono { font-size: 11px; }
.steps .done { color: #6fe3a1; }
.steps .now { color: var(--red-bright); }
.steps p { font-size: 15px; color: var(--text); margin-top: 6px; }
.diag { border: 1px solid rgba(237,68,59,.4); border-radius: 18px; background: linear-gradient(180deg, rgba(237,68,59,.08), var(--ink-1) 40%); padding: 24px 18px; }
@media (min-width: 720px) { .diag { padding: 44px; } }
.diag .btn { margin-top: 8px; }
@media (max-width: 559px) { .diag .btn { width: 100%; } }
.upsell { border: 1px solid var(--line-strong); border-radius: 18px; padding: 24px 18px; background: var(--ink-1); }
@media (min-width: 720px) { .upsell { padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; } }
.upsell .price { margin-top: 18px; }
@media (max-width: 719px) { .upsell .btn { width: 100%; margin-top: 8px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .rows .row, .ledger-row { opacity: 1 !important; clip-path: none !important; transform: none !important; }
}
