/* Site do Fitprint. Página calma, centrada e curta: fundo claro e plano, texto pequeno, uma ideia por
   bloco e muito respiro (a referência de estilo é o pergunteai.net, que o Victor adora). Sempre em modo
   claro, mesmo com o aparelho em modo escuro.

   O celular do meio da página imita o app de verdade (mobile/src). Dentro dele as medidas são as do app,
   em "pontos": escreve-se calc(14 * var(--u)) e a montagem (build.mjs) troca por calc(14 * var(--u)); --u é o tamanho
   de um ponto, tirado da largura do celular. Assim ele encolhe ou cresce inteiro, sem perder as proporções. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fontes/bricolage-grotesque.a97804dc.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@property --u {
  syntax: "<length>";
  inherits: true;
  initial-value: 1px;
}

/* ───────────────────────── Cores e medidas do site ───────────────────────── */

:root {
  color-scheme: light;
  --fonte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --titulo: "Bricolage Grotesque", "Arial Black", var(--fonte);

  --fundo: #F1F0EB;
  --texto: #1A1C22;
  --texto-corpo: #464B57;
  --texto-suave: #636975;
  --fio: rgba(22, 24, 30, 0.09);
  --cartao: rgba(255, 255, 255, 0.62);
  --cartao-fio: rgba(22, 24, 30, 0.07);
  --cartao-sombra: 0 1px 2px rgba(22, 24, 30, 0.04);
  --bloco: rgba(22, 24, 30, 0.05);

  --marca-1: #065F46;
  --marca-2: #10B981;
  --verde: #047857;
  --verde-fundo: rgba(16, 185, 129, 0.13);
  --botao-1: #065F46;
  --botao-2: #0B7A56;
  --check: #10B981;

  --lado: clamp(20px, 5vw, 40px);
}

/* ───────────────────────── Base ───────────────────────── */

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

html {
  background: var(--fundo);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 1rem/1.55 var(--fonte);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
b, strong { font-weight: 700; }

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

::selection { background: rgba(16, 185, 129, 0.26); }

.folha { position: absolute; width: 0; height: 0; overflow: hidden; }
.marca-de { stop-color: var(--marca-1); }
.marca-ate { stop-color: var(--marca-2); }

.ic {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.envelope {
  width: min(960px, 100% - 2 * var(--lado));
  margin-inline: auto;
}

.pular {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--texto);
  color: var(--fundo);
  font-weight: 700;
  text-decoration: none;
}
.pular:focus { top: 16px; }

/* Cartão simples do site (dentro do celular, a mesma classe vira o vidro do app: ver adiante). */
.vidro {
  background: var(--cartao);
  border: 1px solid var(--cartao-fio);
  box-shadow: var(--cartao-sombra);
}

.ligacao,
.texto a:not([class]) {
  color: var(--verde);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.ligacao:hover,
.texto a:not([class]):hover { text-decoration-thickness: 2.5px; }

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: linear-gradient(120deg, var(--botao-1), var(--botao-2));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s;
}
.botao:hover { filter: brightness(1.08); }
.botao:active { transform: scale(0.97); }
.botao[hidden] { display: none; }

/* ───────────────────────── Cabeçalho e rodapé ───────────────────────── */

/* Barra da cor da página, de ponta a ponta: no iPhone, a faixa do relógio fica da mesma cor. */
.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--fundo);
  border-bottom: 1px solid var(--fio);
  padding: env(safe-area-inset-top) max(var(--lado), env(safe-area-inset-right)) 0 max(var(--lado), env(safe-area-inset-left));
}
.topo-barra {
  width: min(960px, 100%);
  height: 54px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font: 800 1.0625rem/1 var(--titulo);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.marca-simbolo { width: 18px; height: 20px; flex: none; }

.rodape {
  border-top: 1px solid var(--fio);
  padding: 30px var(--lado) calc(30px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.875rem;
}
.rodape-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
}
.rodape-nav a { color: var(--texto-corpo); text-decoration: none; }
.rodape-nav a:hover { color: var(--texto); text-decoration: underline; text-underline-offset: 3px; }
.rodape-legal {
  max-width: 46em;
  margin: 14px auto 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--texto-suave);
}

/* ───────────────────────── Página inicial ───────────────────────── */

.hero {
  padding: clamp(44px, 8vw, 76px) var(--lado) clamp(48px, 8vw, 80px);
  text-align: center;
}
.hero-simbolo { width: 66px; height: 72px; margin-inline: auto; }
.hero h1 {
  margin-top: 16px;
  font: 800 clamp(2.25rem, 1.95rem + 1.5vw, 2.875rem) / 1.05 var(--titulo);
  letter-spacing: -0.03em;
}

.lide {
  max-width: 27rem;
  margin: 14px auto 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--texto-corpo);
  text-wrap: pretty;
}

.lojas {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.loja { display: block; border-radius: 8px; transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
a.loja:hover { transform: translateY(-2px); }
.loja img { height: 42px; width: auto; }
.lojas-aviso {
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--texto-suave);
}

.secao {
  border-top: 1px solid var(--fio);
  padding: clamp(52px, 8vw, 84px) var(--lado);
  text-align: center;
}
.secao-icone {
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--marca-1), var(--marca-2));
  color: #fff;
  font-size: 17px;
}
.secao-icone .ic { stroke-width: 2.2; }
.titulo {
  max-width: 22rem;
  margin-inline: auto;
  font: 800 clamp(1.625rem, 1.4rem + 1.2vw, 2.125rem) / 1.12 var(--titulo);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.secao .lide { font-size: 1rem; margin-top: 12px; }

.cartoes {
  width: min(900px, 100%);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cartao {
  padding: 24px 16px 22px;
  border-radius: 14px;
  background: var(--cartao);
  border: 1px solid var(--cartao-fio);
  box-shadow: var(--cartao-sombra);
}
.cartao .ic {
  margin: 0 auto 12px;
  font-size: 30px;
  color: #7A808C;
  stroke-width: 1.5;
}
.cartao b { display: block; font-size: 1rem; }
.cartao span {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--texto-suave);
  text-wrap: balance;
}

@media (max-width: 760px) {
  .cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cartao { padding: 20px 12px 18px; }
}

/* ───────────────────────── O celular ───────────────────────── */

.fone {
  --fone-l: clamp(248px, calc((100svh - 176px) * 0.476), 348px);
  position: relative;
  width: var(--fone-l);
  container-type: inline-size;
}

@media (max-width: 900px) {
  .fone { --fone-l: min(78vw, 318px); }
}

.fone-corpo {
  --u: calc(100cqw / 417);
  position: relative;
  padding: calc(3 * var(--u));
  border-radius: calc(65 * var(--u));
  background: linear-gradient(140deg, #ECE9E3 0%, #A6A199 20%, #DDD9D2 46%, #8D8880 72%, #D2CEC7 100%);
  box-shadow:
    0 calc(60 * var(--u)) calc(90 * var(--u)) calc(-34 * var(--u)) rgba(15, 23, 42, 0.42),
    0 calc(22 * var(--u)) calc(40 * var(--u)) calc(-14 * var(--u)) rgba(15, 23, 42, 0.26),
    inset 0 0 0 calc(1 * var(--u)) rgba(255, 255, 255, 0.4);
}

/* Botões da lateral: ação e volume à esquerda, liga à direita. */
.fone-corpo::before,
.fone-corpo::after {
  content: "";
  position: absolute;
  width: calc(3 * var(--u));
  border-radius: calc(2 * var(--u));
  background: linear-gradient(90deg, #8D8880, #C9C5BE);
}
.fone-corpo::before {
  left: calc(-2.2 * var(--u));
  top: calc(170 * var(--u));
  height: calc(34 * var(--u));
  box-shadow: 0 calc(62 * var(--u)) 0 0 #A6A199, 0 calc(70 * var(--u)) 0 0 #A6A199, 0 calc(78 * var(--u)) 0 0 #A6A199, 0 calc(128 * var(--u)) 0 0 #A6A199, 0 calc(136 * var(--u)) 0 0 #A6A199, 0 calc(144 * var(--u)) 0 0 #A6A199;
}
.fone-corpo::after {
  right: calc(-2.2 * var(--u));
  top: calc(262 * var(--u));
  height: calc(98 * var(--u));
}

.fone-vidro {
  padding: calc(9 * var(--u));
  border-radius: calc(62 * var(--u));
  background: #000;
}

.fone-tela {
  position: relative;
  width: calc(393 * var(--u));
  height: calc(852 * var(--u));
  border-radius: calc(53 * var(--u));
  overflow: hidden;
  background: var(--fundo);
  isolation: isolate;
  transform: translateZ(0);
}

.fone-sombra {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -5%;
  height: 9%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 23, 42, 0.3), transparent);
  filter: blur(10px);
}

/* ───────────────────────── O app dentro do celular ───────────────────────── */

.app {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte);
  line-height: 1.2;
  -webkit-user-select: none;
  user-select: none;
}

.app-rolagem {
  position: absolute;
  inset: 0 0 auto 0;
  padding: calc(67 * var(--u)) 0 calc(116 * var(--u));
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  will-change: transform;
}
.app.is-trocando .app-rolagem { opacity: 0; }

.app-topo {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  padding: 0 calc(16 * var(--u));
}
.app-avatar {
  width: calc(50 * var(--u));
  height: calc(50 * var(--u));
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #7C7BFF, #5B4BF5);
  box-shadow: var(--conta-sombra);
  color: #fff;
  font: 700 calc(21 * var(--u)) / 1 var(--titulo);
}
.app-titulo { flex: 1; min-width: 0; display: grid; }
.app-titulo b { font: 800 calc(25 * var(--u)) / calc(30 * var(--u)) var(--titulo); letter-spacing: calc(-0.4 * var(--u)); }
.app-titulo span { font-size: calc(13.5 * var(--u)); line-height: calc(18 * var(--u)); font-weight: 500; color: var(--texto-suave); white-space: nowrap; }
.app-redondo {
  width: calc(46 * var(--u));
  height: calc(46 * var(--u));
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: calc(21 * var(--u));
  border-width: calc(1 * var(--u));
}

/* A semana em círculos */
.app-semana {
  display: flex;
  margin-top: calc(10 * var(--u));
  padding: calc(6 * var(--u)) calc(8 * var(--u));
}
.dia {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dia-halo {
  position: relative;
  width: calc(49 * var(--u));
  height: calc(49 * var(--u));
  display: grid;
  place-items: center;
}
.dia-conta {
  width: calc(41 * var(--u));
  height: calc(41 * var(--u));
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(var(--conta-1), var(--conta-2));
  border: calc(1 * var(--u)) solid var(--conta-fio);
  box-shadow: var(--conta-sombra);
  font-size: calc(16 * var(--u));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dia small {
  margin-top: calc(5 * var(--u));
  font-size: calc(10.5 * var(--u));
  font-weight: 700;
  letter-spacing: calc(0.7 * var(--u));
  color: var(--texto-fraco);
}
.dia.is-check .dia-halo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: calc(2.5 * var(--u)) solid var(--check);
}
.dia.is-check .dia-halo::after,
.selo-dia {
  content: "";
  position: absolute;
  right: calc(-2 * var(--u));
  bottom: calc(-2 * var(--u));
  width: calc(18 * var(--u));
  height: calc(18 * var(--u));
  border-radius: 50%;
  border: calc(2 * var(--u)) solid var(--fundo);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat,
    linear-gradient(#34D399, #059669);
}
.dia.is-hoje .dia-conta {
  background: linear-gradient(160deg, #7C7BFF, #5B4BF5);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(91, 75, 245, 0.5);
}
.dia.is-hoje.is-check .dia-halo::before { display: none; }
.dia.is-hoje small { color: var(--destaque); }
.dia.is-futuro { opacity: 0.45; }

/* O dia num cartão: calorias sobre a meta, a barra e os três macros em anéis */
.app-resumo {
  margin: calc(8 * var(--u)) calc(14 * var(--u)) 0;
  padding: calc(15 * var(--u)) calc(14 * var(--u)) calc(15 * var(--u)) calc(18 * var(--u));
  display: flex;
  align-items: center;
  border-radius: calc(26 * var(--u));
  border-width: calc(1 * var(--u));
}
.resumo-kcal { flex: 1; min-width: 0; }
.resumo-kcal p {
  font-size: calc(10.6 * var(--u));
  line-height: calc(36 * var(--u));
  font-weight: 500;
  color: var(--texto-suave);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.resumo-kcal p b {
  font: 800 calc(23.5 * var(--u)) / 1 var(--titulo);
  letter-spacing: calc(-0.5 * var(--u));
  color: var(--texto);
}
.resumo-barra {
  margin-top: calc(9 * var(--u));
  height: calc(6 * var(--u));
  border-radius: calc(3 * var(--u));
  background: var(--trilho);
  overflow: hidden;
}
.resumo-barra i {
  display: block;
  width: calc(var(--kcal, 0) * 100%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7C7BFF, #5B4BF5);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.is-fechado .resumo-barra i { background: linear-gradient(90deg, #34D399, #10B981); }
.resumo-fio {
  width: calc(1 * var(--u));
  height: calc(46 * var(--u));
  margin: 0 calc(13 * var(--u));
  background: var(--fio);
}
.resumo-aneis { display: flex; gap: calc(8 * var(--u)); }

.anel {
  position: relative;
  width: calc(54 * var(--u));
  height: calc(54 * var(--u));
  flex: none;
  display: grid;
  place-content: center;
  text-align: center;
}
.anel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.anel circle { fill: none; stroke: var(--cor); stroke-width: 5; }
.anel .anel-trilho { opacity: 0.22; }
.anel .anel-fio {
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p, 0) * 100);
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.anel small { display: block; font-size: calc(10.5 * var(--u)); line-height: calc(13 * var(--u)); font-weight: 700; color: var(--texto-suave); }
.anel b { display: block; font-size: calc(12 * var(--u)); line-height: calc(15 * var(--u)); font-weight: 800; font-variant-numeric: tabular-nums; }

/* As refeições: a foto é o cartão */
.app-refeicoes {
  margin-top: calc(14 * var(--u));
  padding: 0 calc(14 * var(--u));
  display: grid;
  gap: calc(12 * var(--u));
}
.refeicao {
  position: relative;
  height: calc(190 * var(--u));
  border-radius: calc(26 * var(--u));
  overflow: hidden;
  background: #DCDCE2;
  box-shadow: var(--foto-sombra);
}
.refeicao > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.refeicao > .nota { position: absolute; top: calc(12 * var(--u)); right: calc(12 * var(--u)); }
.refeicao-legenda {
  position: absolute;
  left: calc(8 * var(--u));
  right: calc(8 * var(--u));
  bottom: calc(8 * var(--u));
  padding: calc(9 * var(--u)) calc(14 * var(--u)) calc(10 * var(--u));
  border-radius: calc(18 * var(--u));
  display: grid;
  background: var(--legenda);
  -webkit-backdrop-filter: blur(calc(18 * var(--u))) saturate(125%);
  backdrop-filter: blur(calc(18 * var(--u))) saturate(125%);
}
.refeicao-legenda b { font-size: calc(15.5 * var(--u)); line-height: calc(20 * var(--u)); font-weight: 700; color: var(--tinta); font-variant-numeric: tabular-nums; white-space: nowrap; }
.refeicao-legenda span { margin-top: calc(1 * var(--u)); font-size: calc(13 * var(--u)); line-height: calc(18 * var(--u)); font-weight: 500; color: var(--tinta-suave); font-variant-numeric: tabular-nums; white-space: nowrap; }
.legenda-analisando { display: none; align-items: center; gap: calc(7 * var(--u)); }

.girador {
  width: calc(13 * var(--u));
  height: calc(13 * var(--u));
  flex: none;
  border-radius: 50%;
  border: calc(2 * var(--u)) solid var(--trilho);
  border-top-color: var(--tinta);
  animation: girar 0.8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* A nota (0 a 10): disco branco com o número e o fio colorido que enche até a nota */
.nota {
  --cor: var(--bom);
  position: relative;
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, 0.2);
  color: #151826;
  font-size: calc(16 * var(--u));
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.nota svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.nota circle { fill: none; stroke: var(--cor); stroke-width: 2.8; }
.nota .nota-trilho { opacity: 0.2; }
.nota .nota-fio { stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--n) * 100); }
.nota b { position: relative; font-weight: 800; }
.nota--30 { width: calc(30 * var(--u)); height: calc(30 * var(--u)); font-size: calc(12 * var(--u)); }
.nota--44 { width: calc(44 * var(--u)); height: calc(44 * var(--u)); font-size: calc(17.6 * var(--u)); }
.nota--52 { width: calc(52 * var(--u)); height: calc(52 * var(--u)); font-size: calc(20.8 * var(--u)); }
.nota--media { --cor: var(--medio); }
.nota--ruim { --cor: var(--ruim); }

/* Véu sob o relógio, relógio, ilha e barra flutuante */
.app-veu {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(73 * var(--u));
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--fundo) 0%, var(--fundo) 60%, var(--fundo-0) 100%);
}
.app-status {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 9;
  height: calc(54 * var(--u));
  padding: calc(15 * var(--u)) calc(30 * var(--u)) 0 calc(51 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: calc(17 * var(--u));
  font-weight: 600;
  letter-spacing: calc(-0.3 * var(--u));
  transition: color 0.3s;
}
.app-status svg { width: calc(80 * var(--u)); height: calc(13 * var(--u)); fill: currentColor; }
.app-ilha {
  position: absolute;
  top: calc(11 * var(--u));
  left: 50%;
  z-index: 10;
  width: calc(124 * var(--u));
  height: calc(36 * var(--u));
  margin-left: calc(-62 * var(--u));
  border-radius: calc(20 * var(--u));
  background: #000;
}
.app-inicio {
  position: absolute;
  left: 50%;
  bottom: calc(8 * var(--u));
  z-index: 10;
  width: calc(138 * var(--u));
  height: calc(5 * var(--u));
  margin-left: calc(-69 * var(--u));
  border-radius: calc(3 * var(--u));
  background: var(--texto);
  transition: background-color 0.3s;
}

.app-barra {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(38 * var(--u));
  z-index: 5;
  padding: 0 calc(16 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
}
.barra-peca {
  display: grid;
  place-items: center;
  background: var(--barra-veu);
  border: calc(1 * var(--u)) solid var(--barra-fio);
  -webkit-backdrop-filter: blur(calc(18 * var(--u))) saturate(180%);
  backdrop-filter: blur(calc(18 * var(--u))) saturate(180%);
  box-shadow: 0 calc(8 * var(--u)) calc(22 * var(--u)) rgba(15, 23, 42, 0.13), 0 calc(2 * var(--u)) calc(5 * var(--u)) rgba(15, 23, 42, 0.06);
}
.barra-lupa { width: calc(58 * var(--u)); height: calc(58 * var(--u)); border-radius: 50%; color: var(--texto-suave); font-size: calc(24 * var(--u)); }
.barra-lupa .ic { stroke-width: 2.1; }
.barra-abas {
  flex: 1;
  height: calc(58 * var(--u));
  border-radius: calc(29 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.barra-abas span { width: calc(62 * var(--u)); height: calc(48 * var(--u)); display: grid; place-items: center; color: var(--texto-suave); font-size: calc(25 * var(--u)); }
.barra-abas .ic { stroke-width: 2.1; }
.barra-abas .is-ativa { color: var(--destaque); }
.barra-abas .is-ativa .ic { fill: var(--destaque-suave); }
.barra-camera {
  width: calc(62 * var(--u));
  height: calc(62 * var(--u));
  border-radius: 50%;
  color: var(--destaque);
  font-size: calc(29 * var(--u));
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* A câmera, que sobe por cima da tela na demonstração */
.app-camera {
  position: absolute;
  inset: 0;
  z-index: 7;
  overflow: hidden;
  background: #000;
  color: #fff;
  transform: translateY(102%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.camera-fundo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
  filter: blur(calc(22 * var(--u))) brightness(0.82);
}
.camera-foto {
  position: absolute;
  left: calc(-30 * var(--u));
  top: 50%;
  width: calc(453 * var(--u));
  max-width: none;
  height: calc(453 * var(--u));
  margin-top: calc(-226.5 * var(--u));
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 17%, #000 83%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 17%, #000 83%, transparent 100%);
}
.camera-guia {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(357 * var(--u));
  height: calc(357 * var(--u));
  margin: calc(-178.5 * var(--u)) 0 0 calc(-178.5 * var(--u));
  border-radius: 50%;
  border: calc(2 * var(--u)) dashed rgba(255, 255, 255, 0.78);
}
.camera-dica {
  position: absolute;
  left: 50%;
  top: calc(50% + calc(194.5 * var(--u)));
  transform: translateX(-50%);
  height: calc(36 * var(--u));
  padding: 0 calc(14 * var(--u));
  border-radius: calc(18 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  background: rgba(0, 0, 0, 0.5);
  font-size: calc(14 * var(--u));
  font-weight: 600;
  white-space: nowrap;
}
.camera-dica .ic { font-size: calc(16 * var(--u)); }
.camera-fechar {
  position: absolute;
  top: calc(67 * var(--u));
  left: calc(16 * var(--u));
  width: calc(42 * var(--u));
  height: calc(42 * var(--u));
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  font-size: calc(21 * var(--u));
}
.camera-fechar .ic { stroke-width: 2.4; }
.camera-disparo {
  position: absolute;
  left: 50%;
  bottom: calc(52 * var(--u));
  width: calc(78 * var(--u));
  height: calc(78 * var(--u));
  margin-left: calc(-39 * var(--u));
  border-radius: 50%;
  border: calc(4 * var(--u)) solid #fff;
  display: grid;
  place-items: center;
}
.camera-disparo::after {
  content: "";
  width: calc(62 * var(--u));
  height: calc(62 * var(--u));
  border-radius: 50%;
  background: #fff;
  transition: transform 0.14s ease;
}
.app-flash {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: #fff;
  opacity: 0;
}
@keyframes flash {
  0% { opacity: 0; }
  28% { opacity: 0.9; }
  100% { opacity: 0; }
}

/* O "dedo" da demonstração */
.app-toque {
  position: absolute;
  z-index: 11;
  width: calc(52 * var(--u));
  height: calc(52 * var(--u));
  border-radius: 50%;
  pointer-events: none;
  background: rgba(120, 120, 128, 0.36);
  border: calc(1.5 * var(--u)) solid rgba(255, 255, 255, 0.66);
  opacity: 0;
  transform: scale(1.5);
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.toque-camera { left: calc(320 * var(--u)); top: calc(757 * var(--u)); }
.toque-disparo { left: calc(170.5 * var(--u)); top: calc(735 * var(--u)); }

/* As cenas da demonstração (site.js troca data-cena). "parado" é a tela completa, sem movimento. */
.refeicao--nova {
  opacity: 0;
  transform: translateY(calc(28 * var(--u))) scale(0.96);
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.refeicao--nova > .nota {
  transform: scale(0);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.app[data-cena="toque"] .toque-camera,
.app[data-cena="clique"] .toque-disparo { opacity: 1; transform: scale(1); }
.app[data-cena="toque"] .barra-camera { transform: scale(0.9); }
.app[data-cena="camera"] .app-camera,
.app[data-cena="clique"] .app-camera { transform: none; }
.app[data-cena="camera"] .app-status,
.app[data-cena="clique"] .app-status { color: #fff; }
.app[data-cena="camera"] .app-inicio,
.app[data-cena="clique"] .app-inicio { background: #fff; }
.app[data-cena="clique"] .camera-disparo::after { transform: scale(0.86); }
.app[data-cena="clique"] .app-flash { animation: flash 0.5s ease-out 0.12s; }
.app[data-cena="analisando"] .app-rolagem,
.app[data-cena="pronto"] .app-rolagem { transform: translateY(calc(-170 * var(--u))); }
.app[data-cena="analisando"] .refeicao--nova,
.app[data-cena="pronto"] .refeicao--nova,
.app[data-cena="resumo"] .refeicao--nova,
.app[data-cena="parado"] .refeicao--nova { opacity: 1; transform: none; }
.app[data-cena="pronto"] .refeicao--nova > .nota,
.app[data-cena="resumo"] .refeicao--nova > .nota,
.app[data-cena="parado"] .refeicao--nova > .nota { transform: none; }
.app[data-cena="analisando"] .legenda-analisando { display: flex; }
.app[data-cena="analisando"] .legenda-macros { display: none; }


/* O celular no site: centrado, do tamanho que cabe. As cores de dentro são as do app (tema claro). */
.fone {
  --fone-l: min(300px, 74vw);
  margin: 38px auto 0;
  text-align: left; /* dentro do app o texto alinha como no app, não como na página */
}
.fone-tela,
.prato-vazio {
  --fundo: #EFEFEF;
  --fundo-0: rgba(239, 239, 239, 0);
  --texto: #0F172A;
  --texto-suave: #5B6478;
  --texto-fraco: #94A3B8;
  --vidro-1: rgba(255, 255, 255, 0.98);
  --vidro-2: rgba(255, 255, 255, 0.8);
  --vidro-fio: #FFFFFF;
  --vidro-sombra: 0 8px 22px rgba(15, 23, 42, 0.08), 0 2px 5px rgba(15, 23, 42, 0.05);
  --conta-1: #FFFFFF;
  --conta-2: #F4F4F7;
  --conta-fio: #FFFFFF;
  --conta-sombra: 0 4px 10px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
  --trilho: rgba(15, 23, 42, 0.08);
  --fio: rgba(15, 23, 42, 0.08);
  --destaque: #5B4BF5;
  --destaque-suave: rgba(91, 75, 245, 0.2);
  --barra-veu: rgba(245, 245, 247, 0.62);
  --barra-fio: rgba(255, 255, 255, 0.7);
  --foto-sombra: 0 10px 22px rgba(15, 23, 42, 0.14), 0 3px 7px rgba(15, 23, 42, 0.08);
  --tinta: #151826;
  --tinta-suave: rgba(21, 24, 38, 0.7);
  --legenda: rgba(255, 255, 255, 0.64);
  --tracejado: rgba(15, 23, 42, 0.16);
  --proteina: #6C6FF5;
  --carbo: #F5A524;
  --gordura: #F4627D;
  --bom: #22C55E;
  --medio: #F59E0B;
  --ruim: #EF4444;
}
.fone-tela .vidro,
.prato-vazio .vidro {
  background: linear-gradient(var(--vidro-1), var(--vidro-2));
  border-color: var(--vidro-fio);
  box-shadow: var(--vidro-sombra);
}

/* ───────────────────────── Páginas de texto ───────────────────────── */

.texto {
  width: min(40rem, 100% - 2 * var(--lado));
  margin-inline: auto;
  padding: clamp(36px, 6vw, 64px) 0 clamp(44px, 6vw, 76px);
}
.rotulo {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--verde);
}
.texto h1 {
  margin-top: 8px;
  font: 800 clamp(1.875rem, 1.6rem + 1.4vw, 2.5rem) / 1.1 var(--titulo);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.texto .lide { max-width: none; margin: 12px 0 0; }
.texto-data { margin-top: 10px; font-size: 0.875rem; color: var(--texto-suave); }
.texto h2 {
  margin-top: 2.2em;
  font: 700 1.3125rem/1.25 var(--titulo);
  letter-spacing: -0.015em;
  scroll-margin-top: 72px;
}
.texto h3 { margin-top: 1.5em; font-size: 1rem; font-weight: 700; }
.texto p { margin-top: 0.85em; color: var(--texto-corpo); }
.texto ul:not([class]) { margin-top: 0.85em; padding-left: 1.2em; list-style: disc; display: grid; gap: 0.45em; color: var(--texto-corpo); }
.texto ul:not([class]) ::marker { color: var(--verde); }

.texto-resumo {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 14px;
}
.texto-resumo h2 { margin-top: 0; font-size: 1.125rem; }
.texto-resumo ul { margin-top: 10px; display: grid; gap: 8px; }
.texto-resumo li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--texto-corpo); }
.texto-resumo .ic { margin-top: 4px; font-size: 16px; color: var(--check); stroke-width: 3; }

.contato {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.contato .ic {
  width: 42px;
  height: 42px;
  padding: 11px;
  border-radius: 12px;
  background: var(--verde-fundo);
  color: var(--verde);
}
.contato div { flex: 1; min-width: 13em; }
.contato b { display: block; font: 700 1.125rem/1.3 var(--titulo); overflow-wrap: anywhere; }
.contato span { font-size: 0.9375rem; color: var(--texto-suave); }
.contato .botao { height: 40px; padding: 0 16px; }

.duvidas { margin-top: 1em; display: grid; gap: 10px; }
.duvida { border-radius: 14px; overflow: clip; }
.duvida summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 20px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.duvida summary::-webkit-details-marker { display: none; }
.duvida summary span { flex: 1; }
.duvida summary .ic {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--bloco);
  stroke-width: 2.4;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s;
}
.duvida[open] summary .ic { transform: rotate(45deg); background: var(--verde-fundo); color: var(--verde); }
.texto .duvida p { margin: 0; padding: 0 20px 18px; }
.duvida::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1), content-visibility 0.3s allow-discrete;
}
.duvida[open]::details-content { height: auto; }

.passos { margin-top: 1em; display: grid; gap: 12px; counter-reset: passo; }
.passos li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--texto-corpo);
}
.passos li::before {
  content: counter(passo);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cartao);
  border: 1px solid var(--cartao-fio);
  box-shadow: var(--cartao-sombra);
  color: var(--texto);
  font-weight: 800;
  font-size: 0.875rem;
}
.passos li > span { padding-top: 3px; }

/* Página de erro e /baixar */
.nao-achei {
  min-height: calc(100svh - 190px);
  padding: 56px var(--lado);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.prato-vazio {
  --u: 1px;
  width: min(100%, 320px);
  height: 170px;
  padding: 0 24px;
  border-radius: 22px;
  border: 1.5px dashed var(--tracejado);
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--texto);
}
.prato-vazio .app-redondo { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--destaque); }
.prato-vazio b { margin-top: 10px; }
.prato-vazio span:last-child { margin-top: 2px; font-size: 0.875rem; color: var(--texto-suave); }
.baixar-simbolo { width: 66px; height: 72px; }
.nao-achei h1 { margin-top: 24px; font: 800 clamp(1.875rem, 1.6rem + 1.4vw, 2.5rem) / 1.1 var(--titulo); letter-spacing: -0.03em; }
.nao-achei .botao { margin-top: 22px; height: 40px; padding: 0 18px; }

/* ───────────────────────── Movimento ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
