/* ExcluaMe — checagem de 8 pontos, Direção A "Régua dos 8" (DESIGN.md, 23/10/2026). */
:root {
  --gelo: #f4f7f9;
  --folha: #ffffff;
  --tinta: #16212b;
  --tinta-2: #3d4b58;
  --tinta-3: #56636f;
  --pinho: #1d6a4f;
  --pinho-escuro: #15503b;
  --pinho-claro: #e7f1ec;
  --ambar: #a9560b;
  --ambar-claro: #fbf1e6;
  --linha: #d6dee5;
  --contorno: #7d8b97;
  --raio: 12px;
  --raio-ctl: 10px;
  --fonte: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100%;
  background: var(--gelo);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button {
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--pinho);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-frame {
  width: 100%;
  min-height: 100dvh;
  padding: 18px 16px 24px;
}

.boot-screen {
  max-width: 560px;
  margin: 40px auto;
  color: var(--tinta-3);
  text-align: center;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Celular: a régua é um cartão no topo e o texto corre sobre o fundo gelo, como no desenho. */
.frame {
  max-width: 560px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
  margin-bottom: 14px;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 24px;
}

.brand-name {
  color: var(--tinta);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.rail {
  padding: 14px 8px 12px;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: var(--folha);
}

.rail:empty {
  display: none;
}

.sheet {
  padding: 0 0 20px;
}

.topline:empty {
  display: none;
}

.topline {
  float: right;
  margin: 8px -6px 0 12px;
}

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  color: var(--tinta-2);
  font-size: 17px;
}

.view {
  padding-top: 18px;
}

.foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--linha);
  color: var(--tinta-3);
  font-family: var(--mono);
  font-size: 14px;
  text-align: center;
}

.foot a {
  color: var(--tinta-2);
}

/* Régua dos 8: no celular, 2 linhas de 4 casas com o nome embaixo. */
.ruler {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 4px;
  list-style: none;
}

.slot {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}

.cell {
  width: 40px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--linha);
  border-radius: 6px;
  background: #edf1f4;
  color: var(--tinta-3);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
}

.slot-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--tinta-2);
  font-size: 16px;
  line-height: 1.15;
  white-space: nowrap;
}

.slot.is-current .cell {
  border: 2px solid var(--pinho);
  background: var(--folha);
  color: var(--pinho);
}

.slot.is-current .slot-name {
  color: var(--pinho);
  font-weight: 700;
}

.slot.is-ok .cell {
  border-color: var(--pinho);
  background: var(--pinho);
  color: #ffffff;
  font-size: 18px;
}

.slot.is-open .cell {
  border-color: var(--ambar);
  background: var(--ambar);
  color: #ffffff;
  font-size: 19px;
}

/* Tipografia */
.eyebrow {
  display: block;
  color: var(--tinta-3);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hello,
.q-title {
  margin-top: 10px;
  color: var(--tinta);
  font-size: clamp(30px, 8.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.q-title {
  font-size: clamp(24px, 6.4vw, 34px);
}

.subhello,
.q-note {
  margin-top: 12px;
  color: var(--tinta);
  font-size: 18px;
  line-height: 1.45;
}

.bridge {
  margin-top: -6px;
  margin-bottom: 22px;
  color: var(--tinta-2);
  font-size: 18px;
  line-height: 1.4;
}

.privacy {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--linha);
  border-radius: var(--raio-ctl);
  background: #eef2f5;
  color: var(--tinta);
  font-size: 17px;
  line-height: 1.45;
}

/* Texto aprovado em blocos: no celular cada bloco fica com até 3 linhas. */
.blk {
  display: block;
}

.blk + .blk {
  margin-top: 6px;
}

.q-note .blk:first-child:not(:last-child) {
  font-weight: 700;
}

/* Botões */
.cta-row {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--raio-ctl);
  background: var(--pinho);
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--pinho-escuro);
}

.btn.secondary {
  background: var(--folha);
  color: var(--pinho);
  border: 1.5px solid var(--contorno);
}

.btn.text {
  min-height: 48px;
  margin-top: 12px;
  background: none;
  color: var(--tinta);
  font-size: 17px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Pergunta */
.howto {
  margin-top: 16px;
  border: 1px solid var(--linha);
  border-radius: var(--raio-ctl);
  background: var(--folha);
  overflow: hidden;
}

.howto summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f7f9fb;
  color: var(--pinho);
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.howto summary::-webkit-details-marker,
.excerpt summary::-webkit-details-marker {
  display: none;
}

.howto summary::after,
.excerpt summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

.howto[open] summary::after,
.excerpt[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.howto[open] summary {
  border-bottom: 1px solid var(--linha);
}

.howto p {
  padding: 14px 16px 0;
  color: var(--tinta);
  font-size: 18px;
  line-height: 1.5;
}

.howto p + p {
  padding-top: 8px;
}

.howto p:last-child {
  padding-bottom: 16px;
}

.q-opts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.q-opt {
  min-height: 52px;
  padding: 12px 18px;
  border: 1.5px solid var(--contorno);
  border-radius: var(--raio-ctl);
  background: var(--folha);
  color: var(--tinta);
  font-size: 20px;
  font-weight: 700;
  text-align: left;
}

.q-opt:hover {
  border-color: var(--pinho);
}

.q-opt.on {
  border: 2px solid var(--pinho);
  background: var(--pinho-claro);
}

/* Resultado */
.result-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  list-style: none;
}

.result-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--linha);
  border-radius: var(--raio-ctl);
  background: var(--folha);
}

.ri-n {
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ambar);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
}

.ri-body {
  min-width: 0;
}

.ri-body b,
.ri-body .tag {
  color: var(--tinta);
  font-size: 19px;
  font-weight: 700;
}

.ri-risk {
  display: block;
  margin-top: 4px;
  color: var(--tinta-2);
  font-size: 18px;
  line-height: 1.5;
}

.note-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--ambar);
  border-radius: 6px;
  background: var(--ambar-claro);
  color: var(--tinta);
  font-size: 18px;
  line-height: 1.5;
}

/* Oferta */
.reader-offer {
  margin-top: 24px;
  padding: 20px 18px;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: var(--folha);
  scroll-margin-top: 16px;
}

.reader-offer .eyebrow {
  color: var(--pinho);
  font-weight: 600;
}

.reader-offer h2 {
  margin-top: 10px;
  color: var(--tinta);
  font-size: clamp(24px, 6.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.offer-lead {
  margin-top: 14px;
  color: var(--tinta-2);
  font-size: 18px;
  line-height: 1.5;
}

.offer-lead b {
  color: var(--tinta);
}

.offer-points {
  margin-top: 16px;
}

.excerpt {
  margin-top: 18px;
  border: 1px solid var(--linha);
  border-left: 4px solid var(--pinho);
  border-radius: var(--raio-ctl);
  background: var(--folha);
}

.excerpt summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--pinho);
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.excerpt-title {
  padding: 4px 16px 0;
  color: var(--tinta);
  font-size: 18px;
  font-weight: 700;
}

.excerpt ol {
  padding: 8px 16px 16px 38px;
}

.excerpt li {
  color: var(--tinta);
  font-size: 17px;
  line-height: 1.5;
}

.excerpt li + li {
  margin-top: 6px;
}

.unlock-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  list-style: none;
}

.unlock-list li {
  position: relative;
  padding-left: 28px;
  color: var(--tinta);
  font-size: 18px;
  line-height: 1.45;
}

/* Marcador neutro: ✓ e ! ficam só para o estado das proteções. */
.unlock-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--pinho);
}

.offer-proof {
  margin-top: 16px;
  color: var(--tinta);
  font-size: 17px;
}

.offer-price {
  margin-top: 22px;
  color: var(--tinta);
  font-size: clamp(24px, 6.6vw, 30px);
  font-weight: 700;
  line-height: 1.1;
}

.reader-offer .cta-row {
  margin-top: 14px;
}

.reader-offer .guarantee {
  margin-top: 12px;
  color: var(--tinta-2);
  font-size: 16px;
  line-height: 1.45;
}

/* Ramo de vítima */
.victim .offer-price {
  margin-top: 20px;
  font-size: 20px;
}

/* Desktop: trilho à esquerda e folha à direita, centralizados juntos (trilho + vão + folha). */
@media (min-width: 900px) {
  .app-frame {
    padding: 32px 32px 56px;
  }

  .frame {
    max-width: 1240px;
    display: grid;
    grid-template-columns: 262px minmax(0, 1fr);
    column-gap: 24px;
    align-items: stretch;
  }

  .frame.no-rail {
    max-width: 860px;
    grid-template-columns: minmax(0, 1fr);
  }

  .brand {
    margin-bottom: 20px;
  }

  .rail {
    padding: 28px 22px;
  }

  .ruler {
    position: sticky;
    top: 24px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .slot {
    grid-template-columns: 44px 1fr;
    align-items: center;
    justify-items: start;
    gap: 14px;
  }

  .cell {
    width: 48px;
    height: 44px;
  }

  .slot-name {
    font-family: var(--mono);
    font-size: 18px;
  }

  .sheet {
    padding: 40px 48px 28px;
    background: var(--folha);
    border: 1px solid var(--linha);
    border-radius: var(--raio);
  }

  .topline {
    margin-top: -14px;
  }

  .view {
    padding-top: 0;
  }

  .eyebrow {
    font-size: 15px;
  }

  .q-title,
  .hello {
    font-size: 44px;
  }

  .view[data-section="01-abertura"] .hello {
    margin-top: 16px;
    font-size: 56px;
  }

  .view[data-section="01-abertura"] .subhello {
    margin-top: 24px;
    font-size: 24px;
  }

  .view[data-section="01-abertura"] .privacy {
    margin-top: 32px;
    font-size: 19px;
  }

  .view[data-section="01-abertura"] .cta-row {
    margin-top: 28px;
  }

  .bridge {
    margin-bottom: 14px;
    font-size: 20px;
  }

  .blk {
    display: inline;
  }

  .blk + .blk {
    margin-top: 0;
  }

  .reader-offer {
    padding: 28px;
  }
}

/* Resultado: o botão principal fica visível até o botão de compra aparecer. */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha);
  background: rgba(255, 255, 255, 0.97);
}

.sticky-cta .btn {
  max-width: 528px;
  margin: 0 auto;
  display: flex;
}

.sticky-cta.is-hidden {
  display: none;
}

.view[data-section="03-resultado"] {
  padding-bottom: 72px;
}

.fine {
  margin-top: 10px;
  color: var(--tinta-2);
  font-size: 16px;
  line-height: 1.45;
}

.offer-more {
  margin-top: 22px;
  padding-top: 4px;
  border-top: 1px solid var(--linha);
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }

  .view[data-section="03-resultado"] {
    padding-bottom: 0;
  }
}
