@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --fundo: #f6f6f3;
  --texto: #18181b;
  --texto-suave: #52525b;
  --amarelo: #ffd43b;
  --vermelho: #e0322a;
  --papel: #ffffff;
  --linha: #18181b;
  --raio: 18px;
  --sombra: 0 6px 0 rgb(24 24 27 / 0.9);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #131316;
    --texto: #f2f2ee;
    --texto-suave: #b4b4ae;
    --papel: #f7f7f2;
    --linha: #f2f2ee;
    --sombra: 0 6px 0 rgb(0 0 0 / 0.55);
  }
}

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

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

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  font-stretch: 112%;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--vermelho);
  outline-offset: 3px;
}

main,
.topo,
.rodape {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

/* Ícones Phosphor (bold), servidos localmente e pintados com currentColor */
.ico {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icone) center / contain no-repeat;
  mask: var(--icone) center / contain no-repeat;
}
.ico-whatsapp { --icone: url("/assets/icons/whatsapp-logo.svg"); }
.ico-telegram { --icone: url("/assets/icons/telegram-logo.svg"); }
.ico-seta { --icone: url("/assets/icons/arrow-up-right.svg"); }
.ico-escudo { --icone: url("/assets/icons/shield-check.svg"); }

/* Topo */
.topo {
  height: 68px;
  display: flex;
  align-items: center;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.marca b {
  font-weight: 900;
}

.marca-tag {
  width: 22px;
  height: 16px;
  background: var(--vermelho);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 30% 100%, 0 50%);
  transform: rotate(-12deg);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  gap: 1.5rem;
  background: var(--amarelo);
  color: #18181b;
  border-radius: calc(var(--raio) + 6px);
  padding: 2rem 1.25rem 2.25rem;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.3rem, 9vw, 4.4rem);
  max-width: 14ch;
}

.hero-sub {
  margin: 1rem 0 0;
  max-width: 40ch;
  font-size: 1.125rem;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 2.5px solid #18181b;
  font-weight: 750;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.botao-cheio {
  background: #18181b;
  color: #fff;
  box-shadow: 0 4px 0 var(--vermelho);
}

.botao-contorno {
  background: transparent;
  color: #18181b;
}

.botao:hover {
  transform: translateY(-2px);
}
.botao-cheio:hover {
  box-shadow: 0 6px 0 var(--vermelho);
}
.botao:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--vermelho);
}

/* Etiqueta de preço pendurada */
.hero-etiqueta {
  position: absolute;
  top: -6px;
  right: 14px;
}

.etiqueta {
  position: relative;
  display: grid;
  justify-items: start;
  width: 108px;
  padding: 1.4rem 0.9rem 0.8rem 1.05rem;
  background: var(--vermelho);
  color: #fff;
  border-radius: 10px 10px 14px 14px;
  clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
  transform: rotate(8deg);
  transform-origin: 50% 0;
}

.etiqueta-furo {
  position: absolute;
  top: 9px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amarelo);
}

.etiqueta-grande {
  font-size: 1.35rem;
  font-weight: 900;
  font-stretch: 100%;
  line-height: 1;
  letter-spacing: -0.03em;
}

.etiqueta-pequena {
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-texto {
  padding-top: 5.5rem;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
    padding: 4rem 3.5rem;
    min-height: 480px;
  }
  .hero-texto {
    padding-top: 0;
  }
  .hero-etiqueta {
    position: relative;
    top: auto;
    right: auto;
    justify-self: center;
  }
  .etiqueta {
    width: 230px;
    padding: 3.2rem 1.8rem 1.6rem 2rem;
    border-radius: 16px 16px 24px 24px;
  }
  .etiqueta-furo {
    top: 18px;
    left: calc(50% - 11px);
    width: 22px;
    height: 22px;
  }
  .etiqueta-grande {
    font-size: 3rem;
  }
  .etiqueta-pequena {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .etiqueta {
    animation: balanca 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  }
  @keyframes balanca {
    0% { transform: rotate(-14deg); }
    35% { transform: rotate(14deg); }
    60% { transform: rotate(4deg); }
    80% { transform: rotate(10deg); }
    100% { transform: rotate(8deg); }
  }
}

/* Lojas */
.lojas {
  margin-top: 3.5rem;
}

.lojas h2,
.como h2 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
}

.lojas-grade {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.loja {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 132px;
  padding: 1.1rem;
  border-radius: var(--raio);
  text-decoration: none;
  box-shadow: var(--sombra);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.loja:hover {
  transform: translateY(-3px);
}
.loja:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgb(24 24 27 / 0.9);
}

.loja-nome {
  font-size: clamp(1.3rem, 5.4vw, 1.9rem);
  font-weight: 850;
  font-stretch: 105%;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.loja-ver {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.loja-ml { background: #ffe600; color: #2d3277; }
.loja-amazon { background: #232f3e; color: #fff; }
.loja-amazon .loja-ver { color: #ff9900; }
.loja-shopee { background: #ee4d2d; color: #fff; }
.loja-magalu { background: #0086ff; color: #fff; }

@media (min-width: 768px) {
  .lojas-grade {
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: 1rem;
  }
  .loja {
    min-height: 190px;
    padding: 1.5rem;
  }
}

/* Como funciona: cupom fiscal + texto */
.como {
  margin-top: 4.5rem;
  display: grid;
  gap: 2.5rem;
}

.cupom {
  background: var(--papel);
  color: #18181b;
  padding: 1.5rem 1.4rem 1.75rem;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  transform: rotate(-1.5deg);
  box-shadow: 0 10px 28px rgb(24 24 27 / 0.12);
  -webkit-mask: radial-gradient(8px at 50% 100%, #0000 98%, #000) 50% / 20px 100% repeat-x;
  mask: radial-gradient(8px at 50% 100%, #0000 98%, #000) 50% / 20px 100% repeat-x;
  padding-bottom: 2.25rem;
}

.cupom-cabeca {
  margin: 0 0 1rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-bottom: 0.9rem;
  border-bottom: 2px dashed #18181b;
}

.cupom-itens {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.cupom-itens li,
.cupom-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cupom-itens li span:last-child {
  text-align: right;
  white-space: nowrap;
}

.cupom-total {
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 2px dashed #18181b;
  font-weight: 800;
  font-size: 1.05rem;
}
.cupom-total span:last-child {
  color: var(--vermelho);
}

.como-texto p {
  margin: 1rem 0 0;
  max-width: 52ch;
  color: var(--texto-suave);
}

.como-texto .seguro {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--texto);
  font-weight: 550;
}
.seguro .ico {
  color: var(--vermelho);
  margin-top: 0.15em;
}

@media (min-width: 768px) {
  .como {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 4rem;
    margin-top: 6rem;
  }
  .cupom {
    max-width: 380px;
    justify-self: end;
    width: 100%;
  }
}

/* Chamada final */
.final {
  margin-top: 4.5rem;
  padding: 2.5rem 1.25rem;
  border: 2.5px solid var(--linha);
  border-radius: calc(var(--raio) + 6px);
}

.final h2 {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  max-width: 24ch;
}

.final .botao-contorno {
  color: var(--texto);
  border-color: var(--linha);
}

@media (min-width: 768px) {
  .final {
    margin-top: 6rem;
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
  }
  .final .acoes {
    margin-top: 0;
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  .final .botao-cheio {
    background: var(--amarelo);
    color: #18181b;
    border-color: var(--amarelo);
  }
}

/* Rodapé */
.rodape {
  margin-top: 4rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--texto) 18%, transparent);
  font-size: 0.875rem;
  color: var(--texto-suave);
}

.rodape p {
  margin: 0;
  max-width: 75ch;
}

.rodape-links {
  margin-top: 1rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Páginas de texto (privacidade, 404) */
.texto {
  max-width: 68ch;
  padding: 2rem 0 1rem;
}
.texto h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 1.5rem;
}
.texto h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.5rem;
}
.texto p,
.texto li {
  color: var(--texto-suave);
}
