/* Meu Amigo Chef: cores e tipos do brandbook (docs/design/brandbook.md e tokens/tokens.json). */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fontes/BricolageGrotesque-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fontes/BricolageGrotesque-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fontes/Figtree-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fontes/Figtree-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fontes/Figtree-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --brasa: #e36222;
  --brasa-600: #c9501a;
  --brasa-700: #a8430f;
  --cacau: #4f2814;
  --massa: #fbf3e8;
  --carvao: #2e2420;
  --oliva: #5e6b43;
  --mel: #f2b33d;
  --caramelo: #d9a579;
  --branco: #ffffff;
  --linha: #eadccb;
  --texto-2: #5c4c43;
  --aviso: #8a5a00;
  --aviso-fundo: #fdf0d2;
  --milla: #e0577f;
  --milla-700: #b83a5f; /* palette.rosaMilla.700 */
  --raio-sm: 12px;
  --raio-lg: 20px;
  --raio-xl: 26px;
  --titulo:
    'Bricolage Grotesque', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --texto: 'Figtree', -apple-system, 'SF Pro Text', system-ui, sans-serif;
  --largura: 1080px;
}

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

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

body {
  margin: 0;
  background: var(--massa);
  color: var(--carvao);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.55;
}

.pagina-inicial {
  background: var(--carvao);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brasa-700);
  text-underline-offset: 3px;
}

a:focus-visible,
.botao:focus-visible {
  outline: 3px solid var(--brasa);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--titulo);
  color: var(--cacau);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 12px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.pular {
  position: absolute;
  left: -9999px;
}
.pular:focus {
  left: 16px;
  top: 16px;
  background: var(--branco);
  padding: 8px 12px;
  border-radius: var(--raio-sm);
  z-index: 10;
}

.conteudo {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 20px;
}

/* Topo */
.topo {
  border-bottom: 1px solid var(--linha);
  background: var(--massa);
}
.topo .conteudo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.topo .marca img {
  display: block;
  width: 200px;
  height: auto;
}
.topo nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
}
.topo nav a {
  color: var(--carvao);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
}
.topo nav a:hover,
.topo nav a[aria-current='page'] {
  color: var(--brasa-700);
  text-decoration: underline;
}

/* Botões */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--brasa-600);
  color: var(--branco);
  font-family: var(--texto);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.botao:hover {
  background: var(--brasa-700);
}
.botao.secundario {
  background: transparent;
  color: var(--cacau);
  box-shadow: inset 0 0 0 2px var(--cacau);
}
.em-breve {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin: 0;
  font-weight: 700;
  color: var(--cacau);
}
.botao.secundario:hover {
  background: rgba(79, 40, 20, 0.06);
}
.botao svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Abertura: o passo a passo em 3D é a primeira coisa que se vê. */
.abertura {
  padding: 40px 0 48px;
}
.abertura .conteudo {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
.abertura .subtitulo {
  font-family: var(--titulo);
  font-weight: 700;
  color: var(--brasa-700);
  font-size: 1.1rem;
  margin: 0 0 10px;
}
.abertura p.chamada {
  font-size: 1.15rem;
  color: var(--texto-2);
  margin: 0 0 24px;
  max-width: 32em;
}
/* O mesmo vidro das etiquetas do passo a passo no app. */
.vidro {
  position: absolute;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--branco);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.vidro.topo-esquerda {
  top: 16px;
  left: 16px;
}
.vidro.base-direita {
  right: 16px;
  bottom: 16px;
}

/* Faixas */
.faixa {
  padding: 56px 0;
}
.faixa.clara {
  background: var(--branco);
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}
.faixa .intro {
  max-width: 40em;
  color: var(--texto-2);
  margin: 0 0 32px;
}

/* Antes do lançamento (Gui em 22/10/2026): a porta da cozinha em vídeo, os
   chefs trabalhando lá dentro e a lista de espera embaixo. Nada do app aparece. */
.cena {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #120c0a url('/imagens/cozinha-porta.jpg') center / cover no-repeat;
  color: var(--branco);
}
.cena video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.cena video.reproduzindo {
  opacity: 1;
}
.cena::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(18, 12, 10, 0.7) 0%,
    rgba(18, 12, 10, 0) 25%,
    rgba(18, 12, 10, 0) 45%,
    rgba(18, 12, 10, 0.85) 75%,
    #120c0a 100%
  );
}
.cena > * {
  position: relative;
  z-index: 1;
}
.cena-topo,
.cena-conteudo,
.cena-base {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.cena-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.cena-topo img {
  display: block;
  width: 170px;
  height: auto;
}
.som {
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  color: var(--branco);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(46, 36, 32, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.cena-conteudo {
  align-self: end;
  display: grid;
  justify-items: center;
  text-align: center;
  padding-bottom: 24px;
}
.aguarde {
  font-family: var(--titulo);
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: #ffb98f;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.aguarde span {
  display: inline-block;
}
.cena h1 {
  color: var(--branco);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.02;
  max-width: 12em;
  margin: 0 0 14px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.barra {
  width: min(320px, 80%);
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  margin: 6px 0 10px;
}
.barra i {
  display: block;
  height: 100%;
  width: 70%;
  border-radius: 99px;
  background: var(--brasa);
}
.status {
  font-size: 14px;
  opacity: 0.85;
  margin: 0 0 22px;
  min-height: 1.4em;
}
.cartao {
  width: 100%;
  max-width: 460px;
  padding: 20px;
  border-radius: 28px;
  background: rgba(46, 36, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.lista {
  display: grid;
  gap: 12px;
  text-align: left;
}
.lista label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}
.lista small {
  font-weight: 600;
  opacity: 0.7;
}
.lista input:not([type='checkbox']) {
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: var(--carvao);
}
.lista .aceite {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
}
.lista .aceite input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--brasa);
}
.lista a {
  color: #ffb98f;
}
.lista .botao {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-size: 17px;
}
.lista input:focus-visible,
.lista .botao:focus-visible,
.som:focus-visible {
  outline: 3px solid #ffb98f;
  outline-offset: 2px;
}
.cena-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  padding-top: 16px;
  padding-bottom: 24px;
  font-size: 13px;
}
.cena-base p {
  margin: 0;
  opacity: 0.75;
}
.cena-base a {
  color: #ffb98f;
}
@media (prefers-reduced-motion: no-preference) {
  .aguarde span {
    animation: ponto 1.4s infinite;
  }
  .aguarde span:nth-child(2) {
    animation-delay: 0.2s;
  }
  .aguarde span:nth-child(3) {
    animation-delay: 0.4s;
  }
  .barra i {
    animation: preparo 9s ease-in-out infinite;
  }
}
@keyframes ponto {
  0%,
  60%,
  100% {
    opacity: 0.2;
  }
  30% {
    opacity: 1;
  }
}
@keyframes preparo {
  0% {
    width: 8%;
  }
  70% {
    width: 92%;
  }
  100% {
    width: 96%;
  }
}
@media (max-width: 520px) {
  .cena {
    background-position: 58% 40%;
    background-size: auto 62%;
  }
  .cena video {
    height: 62%;
    object-position: 58% 40%;
  }
  .cena::after {
    background: linear-gradient(
      180deg,
      rgba(18, 12, 10, 0.6) 0%,
      rgba(18, 12, 10, 0) 18%,
      rgba(18, 12, 10, 0) 40%,
      #120c0a 62%,
      #120c0a 100%
    );
  }
}
@media (min-width: 861px) {
  .cena video {
    object-position: 75% 50%;
  }
  .cena::after {
    background:
      linear-gradient(
        90deg,
        rgba(18, 12, 10, 0.95) 0%,
        rgba(18, 12, 10, 0.75) 35%,
        rgba(18, 12, 10, 0) 62%
      ),
      linear-gradient(180deg, rgba(18, 12, 10, 0.5) 0%, rgba(18, 12, 10, 0) 20%);
  }
  .cena-conteudo {
    align-self: center;
    justify-items: start;
    text-align: left;
    max-width: calc(560px + 6vw);
  }
  .cena-topo,
  .cena-conteudo,
  .cena-base {
    padding-left: max(6vw, env(safe-area-inset-left, 0px));
  }
  .cena-topo {
    padding-right: max(6vw, env(safe-area-inset-right, 0px));
  }
  .cena h1 {
    font-size: clamp(2.6rem, 4.6vw, 4rem);
  }
  .cena-base {
    justify-content: flex-start;
  }
}
.nota {
  font-size: 15px;
  color: var(--texto-2);
  margin-top: 28px;
  max-width: 48em;
}

/* Chamada final */
.final {
  text-align: center;
  padding: 64px 0;
}
.final .conteudo {
  display: grid;
  justify-items: center;
  gap: 16px;
}
.final .conteudo > p {
  color: var(--texto-2);
  margin: 0;
  max-width: 32em;
}
.final .conteudo > p.nota {
  font-size: 14px;
  max-width: 48em;
}
.final .lista {
  width: 100%;
  text-align: left;
}
.final .em-breve {
  min-height: 0;
}

/* Páginas de texto */
.texto-longo {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}
.texto-longo h2 {
  font-size: 1.45rem;
  margin-top: 40px;
}
.texto-longo h3 {
  margin-top: 24px;
}
.texto-longo .atualizacao {
  color: var(--texto-2);
  margin-top: 0;
}
.texto-longo ul {
  padding-left: 1.2em;
}
.texto-longo li {
  margin-bottom: 6px;
}
.texto-longo .resumo {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio-lg);
  padding: 8px 24px;
}
.tabela {
  overflow-x: auto;
  margin: 16px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--branco);
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--linha);
}
th {
  background: #f5e8d6;
  font-weight: 700;
}

details {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio-sm);
  padding: 0 18px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
}
details p {
  margin-top: 0;
}

.contato {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio-lg);
  padding: 20px 24px;
  margin: 24px 0;
}

/* Marcadores de pendência: somem quando o texto final entrar. */
.pendente {
  background: var(--aviso-fundo);
  color: var(--aviso);
  border-radius: 6px;
  padding: 0 4px;
  font-weight: 600;
}
.rascunho {
  background: var(--aviso-fundo);
  color: var(--aviso);
  border-bottom: 1px solid #f0d9a4;
  font-weight: 600;
  text-align: center;
  padding: 10px 20px;
  font-size: 15px;
}

/* Rodapé */
.rodape {
  background: var(--carvao);
  color: #e9ddd0;
  padding: 40px 0;
  font-size: 15px;
}
.pagina-inicial .rodape {
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
}
.rodape .conteudo {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.rodape img {
  display: block;
  width: 180px;
  height: auto;
}
.rodape nav {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.rodape a {
  color: #ffd9c2;
}
.rodape p {
  margin: 0;
  width: 100%;
}

/* Receita compartilhada */
.compartilhada {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.cartao-receita {
  width: 100%;
  max-width: 420px;
  background: var(--branco);
  border-radius: var(--raio-xl);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(79, 40, 20, 0.16);
  text-align: center;
}
.cartao-receita .foto {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--caramelo);
}
.cartao-receita .corpo {
  padding: 22px 24px 28px;
}
.cartao-receita .assinatura {
  width: 160px;
  margin: 0 auto 14px;
  display: block;
}
.cartao-receita h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.cartao-receita p {
  color: var(--texto-2);
  margin: 0 0 20px;
}
.cartao-receita .botao {
  width: 100%;
  margin-top: 10px;
}
.confirmacao-lista .assinatura {
  margin-bottom: 26px;
}
.confirmacao-lista .retorno-inicial {
  margin-top: 20px;
  margin-bottom: 0;
}
.cartao-receita ol {
  text-align: left;
  color: var(--texto-2);
  margin: 0 0 12px;
  padding-left: 1.4em;
}
.cartao-receita ol li {
  margin-bottom: 6px;
}
.cartao-receita .codigo-convite {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cacau);
  background: var(--caramelo);
  border-radius: var(--raio-xl);
  padding: 12px 8px;
  user-select: all;
}

@media (max-width: 860px) {
  .abertura .conteudo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topo .marca img {
    width: 170px;
  }
  .abertura {
    padding-top: 32px;
  }
}

@media (max-width: 860px) {
  .topo .conteudo {
    padding-block: 12px;
  }
  .topo nav a {
    padding: 10px 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .botao {
    transition: background-color 0.15s ease;
  }
}
