:root {
  --mata: #0C2B21;
  --papel: #F6F8F1;
  --branco: #FFFFFF;
  --marca-texto: #FFE14A;
  --marca-texto-fundo: #FFF3B8;
  --folha: #1E9E5A;
  --folha-escuro: #157A45;
  --folha-texto: #0F5C33;
  --folha-fundo: #D7EFE0;
  --texto: #0C2B21;
  --texto-2: #4F6259;
  --linha: rgba(12, 43, 33, 0.14);
  --grade: rgba(12, 43, 33, 0.05);
  --sombra-dura: #0C2B21;
  --r-card: 20px;
  --r-campo: 14px;
  --r-pilula: 999px;
  --f-titulo: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --f-texto: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --mola: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--papel);
  background-image:
    linear-gradient(to right, var(--grade) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grade) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 16px 88px;
}

/* Topbar compacta */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: var(--branco);
  border: 2px solid var(--mata);
  border-radius: var(--r-pilula);
  box-shadow: 0 3px 0 var(--sombra-dura);
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--mata);
}

.brand-pill img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: var(--folha-fundo);
  color: var(--folha-texto);
  border: 1.5px solid var(--mata);
  border-radius: var(--r-pilula);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--folha);
  box-shadow: 0 0 0 3px rgba(30, 158, 90, 0.22);
}

/* Storyboard 01 — Hero compacto orientado a conversao */
.hero {
  background: var(--branco);
  border: 2.5px solid var(--mata);
  border-radius: 24px;
  box-shadow: 5px 5px 0 var(--sombra-dura);
  padding: 28px 24px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--folha) 0 28px,
    var(--marca-texto) 28px 56px
  );
  border-bottom: 2px solid var(--mata);
}

.kicker {
  display: inline-block;
  margin-top: 6px;
  margin-bottom: 12px;
  padding: 5px 12px;
  background: var(--marca-texto-fundo);
  border: 1.5px solid var(--mata);
  border-radius: var(--r-pilula);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mata);
}

h1 {
  margin: 0 auto 12px;
  max-width: 16ch;
  font-family: var(--f-titulo);
  font-size: clamp(30px, 6.2vw, 48px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--mata);
}

.highlight {
  display: inline-block;
  padding: 2px 11px;
  background: var(--marca-texto);
  border-radius: 10px;
  transform: rotate(-1.6deg);
  box-shadow: inset 0 -2px 0 rgba(12, 43, 33, 0.14);
}

.hero-sub {
  margin: 0 auto 20px;
  max-width: 50ch;
  font-size: 16px;
  color: var(--texto-2);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--marca-texto);
  color: var(--mata);
  border: 2.5px solid var(--mata);
  border-radius: var(--r-pilula);
  box-shadow: 0 5px 0 var(--sombra-dura);
  font-family: var(--f-titulo);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms var(--mola), box-shadow 140ms var(--mola), background-color 140ms ease;
}

.cta-btn:hover {
  background: #ffe86e;
  transform: translateY(-1px);
  box-shadow: 0 6px 0 var(--sombra-dura);
}

.cta-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--sombra-dura);
}

.cta-btn:focus-visible {
  outline: 3px solid var(--folha);
  outline-offset: 3px;
}

.cta-btn.secondary {
  padding: 13px 24px;
  font-size: 15.5px;
  box-shadow: 0 3px 0 var(--sombra-dura);
}

.cta-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.trust-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--texto-2);
}

/* Faixa de lojas monitoradas */
.stores-strip {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--branco);
  border: 2px solid var(--mata);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

.stores-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texto-2);
}

.stores-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-pill {
  padding: 4px 10px;
  border-radius: var(--r-pilula);
  background: var(--papel);
  border: 1.5px solid var(--linha);
  font-size: 13px;
  font-weight: 700;
  color: var(--mata);
}

/* Sections */
.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-family: var(--f-titulo);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mata);
}

.section-sub {
  margin: 4px 0 14px;
  font-size: 14.5px;
  color: var(--texto-2);
}

.section-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texto-2);
}

/* Storyboard 02 — Vitrine de ofertas logo apos o Hero */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.deal-card {
  background: var(--branco);
  border: 2px solid var(--mata);
  border-radius: var(--r-card);
  box-shadow: 0 4px 0 var(--sombra-dura);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deal-visual {
  height: 158px;
  border-radius: 13px;
  background: var(--branco);
  border: 1.5px solid var(--linha);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 10px;
}

.deal-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.deal-visual.cover {
  padding: 0;
}

.deal-visual.cover img {
  object-fit: cover;
}

.deal-store-float {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: var(--r-pilula);
  background: var(--branco);
  border: 1.5px solid var(--mata);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--mata);
}

.deal-title {
  margin: 0;
  font-family: var(--f-titulo);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--mata);
}

.deal-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

.deal-old {
  font-size: 12.5px;
  color: var(--texto-2);
  text-decoration: line-through;
}

.deal-price {
  font-family: var(--f-titulo);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--folha-escuro);
}

.off-badge {
  padding: 3px 8px;
  border-radius: var(--r-pilula);
  background: var(--marca-texto);
  border: 1.5px solid var(--mata);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--mata);
}

.savings-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--folha-fundo);
  color: var(--folha-texto);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
}

.deal-meta {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--linha);
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--texto-2);
}

.mid-cta-wrap {
  margin-top: 18px;
  text-align: center;
}

.mid-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--texto-2);
}

/* Storyboard 03 — Previa do Telegram */
.tg-frame {
  background: var(--branco);
  border: 2.5px solid var(--mata);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--sombra-dura);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.tg-phone {
  background: #edf3ec;
  border-right: 2px solid var(--mata);
  padding: 16px;
}

.tg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--linha);
  margin-bottom: 12px;
}

.tg-header img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--branco);
  border: 1.5px solid var(--mata);
  padding: 2px;
  object-fit: contain;
}

.tg-header-name {
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.15;
}

.tg-header-sub {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--texto-2);
}

.tg-bubble {
  background: var(--branco);
  border: 2px solid var(--mata);
  border-radius: 16px 16px 16px 4px;
  padding: 14px;
  box-shadow: 0 3px 0 rgba(12, 43, 33, 0.12);
}

.tg-photo {
  width: 100%;
  height: 124px;
  object-fit: contain;
  background: var(--branco);
  border: 1.5px solid var(--linha);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 10px;
  display: block;
}

.tg-topic {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--folha-texto);
}

.tg-bubble-title {
  margin: 0 0 8px;
  font-family: var(--f-titulo);
  font-size: 15px;
  font-weight: 800;
}

.tg-lines {
  font-size: 13.5px;
  color: var(--texto);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tg-link-pill {
  margin-top: 10px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--marca-texto-fundo);
  border: 1px solid var(--mata);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
}

.tg-explain {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.tg-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--texto);
}

.tg-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--folha-fundo);
  border: 1.5px solid var(--mata);
  color: var(--folha-texto);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Storyboard 04 — Beneficios horizontais + Categorias */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.benefit-row {
  background: var(--branco);
  border: 2px solid var(--mata);
  border-radius: 18px;
  box-shadow: 0 3px 0 var(--sombra-dura);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icon-box {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 2px solid var(--mata);
  background: var(--folha-fundo);
  color: var(--folha-texto);
  flex-shrink: 0;
}

.icon-box.yellow {
  background: var(--marca-texto);
  color: var(--mata);
}

.benefit-row h3 {
  margin: 0;
  font-family: var(--f-titulo);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.benefit-row p {
  margin: 0;
  font-size: 13.5px;
  color: var(--texto-2);
}

.topics-box {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--branco);
  border: 2px solid var(--mata);
  border-radius: 18px;
}

.topics-head {
  font-family: var(--f-titulo);
  font-size: 15.5px;
  font-weight: 800;
  margin: 0 0 10px;
}

.topics-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Etiquetas planas (sem cara de botao clicavel) */
.topic-tag {
  padding: 5px 12px;
  background: var(--papel);
  border: 1.5px solid var(--linha);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mata);
}

.topics-foot {
  margin: 10px 0 0;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--texto-2);
}

/* Storyboard 05 — FAQ compacto */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--branco);
  border: 2px solid var(--mata);
  border-radius: 15px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--f-titulo);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--mata);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--folha-escuro);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--texto-2);
}

/* Storyboard 06 — Fechamento verde-escuro */
.bottom-cta {
  margin-top: 28px;
  background: var(--mata);
  color: var(--branco);
  border: 2.5px solid var(--mata);
  border-radius: 24px;
  box-shadow: 5px 5px 0 var(--folha);
  padding: 26px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bottom-cta h2 {
  margin: 0 0 6px;
  font-family: var(--f-titulo);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.bottom-cta p {
  margin: 0;
  color: #cfe3d8;
  font-size: 14.5px;
}

.bottom-cta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.bottom-micro {
  font-family: var(--f-mono);
  font-size: 11px;
  color: #b6d1c3;
}

.footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--texto-2);
}

/* Storyboard 07 — Sticky CTA Bar no mobile */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(246, 248, 241, 0.96);
  backdrop-filter: blur(8px);
  border-top: 2px solid var(--mata);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(110%);
  transition: transform 220ms var(--mola);
  z-index: 30;
}

.sticky-bar.visible {
  transform: translateY(0);
}

.sticky-bar .cta-btn {
  width: 100%;
  max-width: 440px;
  padding: 12px 20px;
  font-size: 15.5px;
  box-shadow: 0 3px 0 var(--sombra-dura);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%) translateY(16px);
  background: var(--mata);
  color: var(--branco);
  border: 2px solid var(--marca-texto);
  border-radius: var(--r-pilula);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 40;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 740px) {
  .deals-grid {
    grid-template-columns: 1fr;
  }

  .tg-frame {
    grid-template-columns: 1fr;
  }

  .tg-phone {
    border-right: 0;
    border-bottom: 2px solid var(--mata);
  }

  .benefits-list {
    grid-template-columns: 1fr;
  }

  .benefit-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .hero {
    padding: 22px 16px 20px;
    box-shadow: 4px 4px 0 var(--sombra-dura);
  }

  .bottom-cta {
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 4px 4px 0 var(--folha);
  }

  .bottom-cta-col {
    width: 100%;
    align-items: stretch;
  }

  .cta-btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
  }
}
