/* aifoodfotos: tokens + página de vendas */

@property --pos {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

:root {
  --mostarda: #FFC21A;
  --mostarda-funda: #D99E00;
  --tostado: #3B2314;
  --tostado-fundo: #24150B;
  --tostado-suave: #6B4A35;
  --papel: #FFFFFF;
  --kraft: #E9D6B6;
  --linha: rgba(59, 35, 20, .2);

  --gutter: 16px;
  --largura: 1120px;
  --fonte: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tostado);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

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

.recheio {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Aviso do modo de teste */

.aviso-teste {
  padding: 8px var(--gutter);
  background: repeating-linear-gradient(-45deg, var(--tostado) 0 14px, var(--tostado-fundo) 14px 28px);
  color: var(--mostarda);
  font-size: .8125rem;
  font-weight: 600;
  text-align: center;
}

/* Marca */

.marca {
  display: inline-block;
  font-stretch: 62%;
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: .005em;
  text-decoration: none;
}

/* Topo */

.topo {
  background: var(--mostarda);
  padding: 18px 0 44px;
}

.topo-grade {
  display: grid;
  grid-template-areas:
    "titulo"
    "foto"
    "texto";
  gap: 20px;
  margin-top: 22px;
}

.topo-titulo {
  grid-area: titulo;
  margin: 0;
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(3rem, 13.5vw, 6.25rem);
  line-height: .9;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.topo-foto { grid-area: foto; margin: 0; }

.topo-texto { grid-area: texto; }

.sub {
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.45;
}

.topo-texto .botao { margin-top: 22px; }

.nota {
  margin-top: 12px;
  color: var(--tostado-suave);
  font-size: .9375rem;
}

/* Comparador antes e depois */

.comparar {
  --pos: 50%;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22px;
  background: var(--tostado-fundo);
  box-shadow: 0 22px 40px -22px rgba(59, 35, 20, .75);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}

.comparar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.comparar .comparar-antes {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.divisor {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--papel);
}

.puxador {
  position: absolute;
  top: 50%;
  left: var(--pos);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border: 3px solid var(--papel);
  border-radius: 50%;
  background: var(--mostarda);
  color: var(--tostado);
  box-shadow: 0 4px 14px rgba(36, 21, 11, .45);
}

.puxador:focus-visible {
  outline: 3px solid var(--mostarda);
  outline-offset: 4px;
}

.etiqueta {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
}

.etiqueta-antes { left: 14px; background: rgba(255, 255, 255, .9); }
.etiqueta-depois { right: 14px; background: var(--mostarda); }

.comparar.intro { animation: mostrar 1.8s cubic-bezier(.45, 0, .25, 1) .5s; }

@keyframes mostrar {
  0%   { --pos: 50%; }
  35%  { --pos: 82%; }
  70%  { --pos: 22%; }
  100% { --pos: 50%; }
}

.dica-arrastar {
  margin-top: 10px;
  color: var(--tostado-suave);
  font-size: .875rem;
  text-align: center;
}

/* Botões */

.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 14px 22px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  cursor: pointer;
  background: var(--tostado);
  color: var(--papel);
  box-shadow: 0 5px 0 var(--tostado-fundo);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .08s, box-shadow .08s;
}

.botao:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--tostado-fundo);
}

.botao-mostarda {
  background: var(--mostarda);
  color: var(--tostado);
  box-shadow: 0 5px 0 var(--mostarda-funda);
}

.botao-mostarda:active { box-shadow: 0 2px 0 var(--mostarda-funda); }

.botao-mostarda:focus-visible { outline-color: var(--mostarda); }

/* Títulos de seção */

.titulo-secao {
  margin: 0;
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(2.375rem, 9vw, 3.75rem);
  line-height: .95;
  letter-spacing: -.005em;
  text-wrap: balance;
}

/* Como funciona */

.passos { padding: 56px 0 60px; }

.passos-lista {
  display: grid;
  gap: 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.passos-lista li {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: start;
  gap: 14px;
  font-size: 1.125rem;
}

.passo-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mostarda);
  font-stretch: 62%;
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
}

.passos-lista li > div { padding-top: 12px; }

/* Fidelidade */

.fiel {
  padding: 56px 0;
  background: var(--kraft);
}

.fiel-grade { display: grid; gap: 32px; }

.fiel-texto {
  max-width: 34rem;
  margin-top: 16px;
  font-size: 1.125rem;
}

.fiel-listas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fiel-listas h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.fiel-listas ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fiel-listas li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fiel-listas li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}

.lista-sim li::before {
  background-color: var(--tostado);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23FFC21A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.lista-nao li::before {
  border: 2px solid var(--tostado);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 3.5l7 7M10.5 3.5l-7 7' fill='none' stroke='%233B2314' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Packs */

.packs {
  padding: 60px 0 64px;
  background: var(--tostado);
  color: var(--papel);
}

.packs .titulo-secao { color: var(--mostarda); }

.packs-sub {
  max-width: 30rem;
  margin-top: 14px;
  font-size: 1.125rem;
}

.comanda {
  max-width: 440px;
  margin: 32px 0 30px;
  padding: 30px 22px 28px;
  background: var(--papel);
  color: var(--tostado);
  -webkit-mask:
    radial-gradient(circle 7px at 50% 0, #0000 97%, #000) 50% 0 / 18px 51% repeat-x,
    radial-gradient(circle 7px at 50% 100%, #0000 97%, #000) 50% 100% / 18px 51% repeat-x;
  mask:
    radial-gradient(circle 7px at 50% 0, #0000 97%, #000) 50% 0 / 18px 51% repeat-x,
    radial-gradient(circle 7px at 50% 100%, #0000 97%, #000) 50% 100% / 18px 51% repeat-x;
}

.comanda-topo {
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--linha);
  font-stretch: 62%;
  font-weight: 800;
  font-size: 1.375rem;
  text-align: center;
}

.comanda-itens {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 20px 0;
  list-style: none;
  border-bottom: 2px dashed var(--linha);
}

.item-linha {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
}

.pontilhado {
  flex: 1;
  min-width: 16px;
  border-bottom: 3px dotted var(--linha);
}

.item-detalhe {
  margin-top: 2px;
  color: var(--tostado-suave);
  font-size: .9375rem;
}

.selo {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mostarda);
  font-size: .8125rem;
  font-weight: 700;
}

.comanda-rodape {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  font-size: .9375rem;
}

.packs .botao { max-width: 440px; }

/* Perguntas */

.perguntas { padding: 56px 0 64px; }

.perguntas-lista {
  max-width: 44rem;
  margin-top: 22px;
  border-top: 1px solid var(--linha);
}

.perguntas-lista details { border-bottom: 1px solid var(--linha); }

.perguntas-lista summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.perguntas-lista summary::-webkit-details-marker { display: none; }

.perguntas-lista summary::after {
  content: "+";
  flex: none;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s;
}

.perguntas-lista details[open] summary::after { transform: rotate(45deg); }

.perguntas-lista details p {
  max-width: 38rem;
  padding: 0 0 20px;
  color: var(--tostado-suave);
}

/* Rodapé */

.rodape {
  padding: 40px 0 120px;
  background: var(--tostado-fundo);
  color: var(--papel);
  font-size: .9375rem;
}

.marca-rodape { color: var(--mostarda); }

.rodape nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
}

.rodape-contato { margin-top: 14px; opacity: .8; }

.rodape :focus-visible { outline-color: var(--mostarda); }

/* Botão fixo no celular */

.cta-fixo {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: var(--mostarda);
  box-shadow: 0 -8px 24px rgba(36, 21, 11, .2);
  transform: translateY(110%);
  transition: transform .25s ease-out;
}

.cta-fixo.visivel { transform: none; }

/* Telas grandes */

@media (min-width: 900px) {
  :root { --gutter: 32px; }

  .topo { padding: 26px 0 72px; }

  .topo-grade {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "titulo foto"
      "texto  foto";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    row-gap: 24px;
    margin-top: 40px;
  }

  .topo-titulo { align-self: end; }

  .topo-texto .botao { width: auto; display: inline-flex; }

  .passos { padding: 80px 0; }

  .passos-lista { grid-template-columns: repeat(3, 1fr); gap: 32px; }

  .fiel { padding: 80px 0; }

  .fiel-grade { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 56px; }

  .packs { padding: 80px 0; }

  .packs .recheio {
    display: grid;
    grid-template-columns: 1fr 440px;
    grid-template-areas:
      "titulo comanda"
      "sub    comanda"
      "botao  comanda";
    grid-template-rows: auto auto 1fr;
    column-gap: 56px;
  }

  .packs .titulo-secao { grid-area: titulo; align-self: end; }
  .packs-sub { grid-area: sub; }
  .comanda { grid-area: comanda; margin: 0; }
  .packs .botao { grid-area: botao; align-self: start; width: auto; display: inline-flex; justify-self: start; margin-top: 28px; }

  .perguntas { padding: 80px 0; }

  .rodape { padding-bottom: 48px; }

  .cta-fixo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .comparar.intro { animation: none; }
  .cta-fixo, .botao, .perguntas-lista summary::after { transition: none; }
}
