/* App Saladas Verão · identidade "verde e prateleira" (mistura das direções 6, 7 e 10), aprovada em 01/12/2026.
   Sai da página de vendas (pagina/index.html): topo verde-escuro com destaque dourado, foto sobreposta com selo dourado,
   cartões brancos com a linha de dados em verde, botão verde com a borda de baixo mais escura, fundo papel e verde-folha,
   prateleira com as capas dos e-books e receitas em grade de fotos verticais. Bricolage nos títulos, Inter no texto. */
@font-face { font-family: 'Bricolage'; src: url(fonts/Bricolage.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(fonts/Inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --papel: #FAF7EF; --folha: #E4EBDA; --card: #FFFFFF; --ink: #1F2B22; --soft: #5A675B; --linha: #E3DCC8;
  --verde: #1F4A2C; --verde2: #2F6B3E; --ouro: #D8B25A; --tomate: #B8401E;
  --topo: #1F4A2C; --topo-ink: #FFFFFF; --topo-k: #D8B25A;
  --btn: #1F4A2C; --btn-ink: #FFFFFF; --btn-borda: #12301C; --dado: #2F6B3E; --marca-ink: #FFFFFF;
  --tabs-h: 64px; --sb: env(safe-area-inset-bottom, 0px); --st: env(safe-area-inset-top, 0px);
  --titulo: Bricolage, Inter, system-ui, sans-serif;
  color-scheme: light;
}
:root[data-tema="escuro"] {
  --papel: #0F1D14; --folha: #1A3123; --card: #16281C; --ink: #EEF1E8; --soft: #A9B6AB; --linha: #27402F;
  --verde: #8FC79E; --verde2: #8FC79E; --ouro: #D8B25A; --tomate: #F08A63;
  --topo: #173A23; --topo-ink: #FFFFFF; --topo-k: #E3C277;
  --btn: #D8B25A; --btn-ink: #14301D; --btn-borda: #A88634; --dado: #8FC79E; --marca-ink: #14301D;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--papel); color: var(--ink); font: 16px/1.5 Inter, system-ui, sans-serif; min-height: 100dvh;
  padding-bottom: calc(var(--tabs-h) + var(--sb)); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
body.sem-tabs { padding-bottom: var(--sb); }
h1, h2, h3 { font-family: var(--titulo); letter-spacing: -.02em; line-height: 1.05; font-weight: 800; text-wrap: balance; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
#app { max-width: 720px; margin: 0 auto; outline: none; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--papel); padding: 8px 12px; z-index: 50; }
.pular:focus { left: 8px; }
.k { font-size: 12px; font-weight: 600; color: var(--soft); }
.muted { color: var(--soft); }
.sec { padding: 24px 20px 0; }
.sec-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.sec-cab h2 { font-size: 19px; }
.vazio { padding: 32px 20px; color: var(--soft); }
.vazio h2 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }
.dados { color: var(--dado); font-weight: 600; font-size: 14px; }
.dados span + span::before { content: '·'; margin: 0 7px; color: var(--soft); }

/* botões (o da página: verde com a borda de baixo mais escura) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 6px;
  background: var(--btn); color: var(--btn-ink); border-bottom: 3px solid var(--btn-borda); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.sec2 { background: var(--card); color: var(--verde); border: 2px solid var(--verde); }
.btn.bloco { width: 100%; }
.lnk { color: var(--verde2); font-weight: 700; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; font-size: 14px; }
.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.cheio { fill: currentColor; }
.cartao { background: var(--card); border: 1px solid var(--linha); border-radius: 10px; }

/* topo verde-escuro (barra e bloco do título da página) */
.tv { background: var(--topo); color: var(--topo-ink); padding: calc(14px + var(--st)) 20px 20px; }
.tv.sob { padding-bottom: 76px; }
.tv .lin { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 32px; }
.tv .k { color: var(--topo-k); font-size: 13px; }
.tv .k a { color: var(--topo-k); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; gap: 2px; }
.tv .ico { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--topo-ink); margin-right: -10px; text-decoration: none; }
.tv h1 { font-size: clamp(28px, 8.4vw, 40px); margin-top: 4px; }
.tv h1 a { text-decoration: none; }
.tv h1 em { font-style: normal; color: var(--topo-k); }
.tv .sub { font-size: 14px; opacity: .9; margin-top: 6px; }
.foto-sob { position: relative; margin: -60px 20px 0; aspect-ratio: 4/3; max-height: 420px; border-radius: 10px; overflow: hidden; border: 3px solid var(--card); background: var(--folha); }
.foto-sob img { width: 100%; height: 100%; object-fit: cover; }
.selo { position: absolute; right: 10px; top: 10px; width: 70px; height: 70px; border-radius: 50%; background: var(--ouro); border: 3px solid #fff; color: #1F4A2C;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--titulo); line-height: 1; text-align: center; }
.selo b { font-size: 24px; font-weight: 800; }
.selo b:not(:only-child) { white-space: nowrap; }
.selo b[data-l] { font-size: 17px; }
.selo span { font-size: 10px; font-weight: 700; margin-top: 2px; }
.pad-acao { padding: 12px 20px 0; }

/* Início: continuar, prateleira e grade */
.cont { margin: 16px 20px 0; display: flex; gap: 12px; align-items: center; padding: 10px; text-decoration: none; min-height: 68px; }
.cont img, .cont .semfoto { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; }
.cont div { flex: 1; min-width: 0; }
.cont b { display: block; font-family: var(--titulo); font-weight: 700; font-size: 16px; line-height: 1.2; }
.cont small { color: var(--soft); font-size: 13px; }
.cont .ic { color: var(--verde2); }
.prateleira { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.livro { background: var(--folha); border-radius: 10px; padding: 6px 6px 8px; text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.livro .capa { aspect-ratio: 2/3; border-radius: 5px; overflow: hidden; background: var(--card); }
.livro .capa img { width: 100%; height: 100%; object-fit: cover; }
.livro.bloq .capa img { opacity: .5; filter: saturate(.6); }
.livro b { font-family: var(--titulo); font-weight: 700; font-size: 13px; line-height: 1.15; margin-top: 6px; }
.livro small { font-size: 12px; font-weight: 700; color: var(--dado); }
.livro.bloq small { color: var(--tomate); }
.grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grade.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.prato { text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.prato .ft { position: relative; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; background: var(--folha); }
.prato .ft img, .prato .ft .semfoto { width: 100%; height: 100%; object-fit: cover; }
.prato .ft .tag { position: absolute; left: 6px; top: 6px; background: var(--ouro); color: #1F4A2C; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.prato .ft .tranca { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); color: #1F4A2C; display: grid; place-items: center; }
.prato .ft .tranca .ic { width: 16px; height: 16px; }
.prato b { font-family: var(--titulo); font-weight: 700; font-size: 14px; line-height: 1.15; margin-top: 6px; }
.grade.g2 .prato b { font-size: 16px; }
.prato small { color: var(--dado); font-weight: 600; font-size: 12px; }
.prato.bloq small { color: var(--soft); }
.cartao-instalar { margin: 22px 20px 0; padding: 14px; display: flex; gap: 12px; align-items: center; background: var(--folha); border-radius: 10px; }
.cartao-instalar div { flex: 1; min-width: 0; }
.cartao-instalar b { display: block; font-family: var(--titulo); font-size: 16px; }
.cartao-instalar .muted { font-size: 14px; }
.cartao-instalar .ico { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.semfoto { background: var(--folha); display: flex; align-items: center; justify-content: center; color: var(--verde2); font-family: var(--titulo); font-weight: 800; font-size: 22px; }

/* Receitas: busca e filtros dentro do topo verde */
.busca { position: relative; margin-top: 12px; }
.busca input { width: 100%; height: 48px; font: inherit; font-size: 16px; color: #1F2B22; background: #fff; border: 0; border-radius: 6px; padding: 0 44px 0 42px; }
.busca input::placeholder { color: #5A675B; }
.busca .ic { position: absolute; left: 12px; top: 13px; color: #5A675B; }
.busca .limpar { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #5A675B; }
.filtros { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtros button { flex: none; min-height: 40px; padding: 0 12px; font-size: 14px; font-weight: 600; border-radius: 5px; white-space: nowrap;
  color: var(--topo-ink); border: 1px solid rgba(255,255,255,.4); }
.filtros button[aria-pressed="true"] { background: var(--ouro); color: #1F4A2C; border-color: var(--ouro); }
.filtros.claro { padding: 12px 20px 0; }
.filtros.claro button { color: var(--ink); border-color: var(--linha); background: var(--card); }
.filtros.claro button[aria-pressed="true"] { background: var(--verde2); color: var(--marca-ink); border-color: var(--verde2); }
.tempos { display: flex; gap: 4px 16px; padding: 8px 20px 0; font-size: 14px; flex-wrap: wrap; }
.tempos button { min-height: 40px; color: var(--soft); }
.tempos button[aria-pressed="true"] { color: var(--verde2); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contagem { padding: 4px 20px 0; font-size: 13px; color: var(--soft); }
.grupo { padding: 18px 20px 0; }
.grupo h2 { font-size: 17px; margin-bottom: 10px; }
.grupo h2 small { font-family: Inter; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--soft); margin-left: 6px; }
.item { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--linha); text-decoration: none; min-height: 76px; }
.item img, .item .semfoto { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; flex: none; }
.item div { flex: 1; min-width: 0; }
.item b { display: block; font-family: var(--titulo); font-weight: 700; font-size: 17px; line-height: 1.2; }
.item small { color: var(--dado); font-weight: 600; font-size: 13px; }

/* ficha */
.ficha .cab { padding: 14px 20px 0; }
.ficha .desc { color: var(--soft); margin-top: 8px; }
.acoes { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 14px 20px 0; }
.acoes .ico { width: 50px; min-height: 48px; border: 1px solid var(--linha); background: var(--card); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--verde2); }
.acoes .ico[aria-pressed="true"] { color: var(--tomate); border-color: var(--tomate); }
.nut { margin: 18px 20px 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.nut div { padding: 10px 2px; text-align: center; }
.nut div + div { border-left: 1px solid var(--linha); }
.nut b { display: block; font-family: var(--titulo); font-weight: 800; font-size: 20px; color: var(--dado); }
.nut small { font-size: 12px; color: var(--soft); }
.nota { padding: 4px 20px 0; font-size: 13px; color: var(--soft); }
.nota summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; }
.bloco-c { margin: 18px 20px 0; padding: 12px 16px 6px; }
.bloco-c > h2 { font-size: 19px; margin-bottom: 4px; }
.ing ul, .lst ul { list-style: none; }
.ing h3 { font-family: Inter; font-size: 14px; font-weight: 600; letter-spacing: 0; margin: 12px 0 2px; color: var(--soft); }
.chk { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--linha); cursor: pointer; min-height: 48px; }
.chk input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border: 1.5px solid var(--soft); border-radius: 5px; flex: none; margin-top: 1px; display: grid; place-content: center; background: var(--card); }
.chk input:checked { background: var(--verde2); border-color: var(--verde2); }
.chk input:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid var(--card); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.chk span { flex: 1; }
.chk em { font-style: normal; color: var(--soft); display: block; font-size: 14px; }
.chk input:checked + span { color: var(--soft); text-decoration: line-through; }
.passos { list-style: none; counter-reset: p; }
.passos li { counter-increment: p; display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--linha); }
.passos li::before { content: counter(p); font-family: var(--titulo); font-weight: 800; color: var(--verde2); font-size: 20px; width: 24px; flex: none; line-height: 1.2; }
.dica { margin: 18px 20px 0; padding: 14px 16px; background: var(--folha); border-radius: 10px; }
.dica b { display: block; font-family: var(--titulo); font-size: 16px; margin-bottom: 2px; }
.aula { margin: 18px 20px 0; padding: 14px 16px; }
.aula h2 { font-size: 18px; }
.aula video { width: 100%; max-width: 360px; aspect-ratio: 9/16; background: #000; border-radius: 8px; margin-top: 10px; }
.aula p { margin: 4px 0 12px; color: var(--soft); }

/* cadeado */
.bloqueio { padding: 16px 20px 0; }
.bloqueio .capa-b { width: 46%; max-width: 200px; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.bloqueio .capa-b img { width: 100%; height: 100%; object-fit: cover; }
.bloqueio p { color: var(--soft); margin-bottom: 16px; }

/* modo cozinha */
.cozinha { position: fixed; inset: 0; z-index: 20; background: var(--papel); display: flex; flex-direction: column; padding-bottom: calc(12px + var(--sb)); }
.cozinha .top { background: var(--topo); color: var(--topo-ink); padding: calc(6px + var(--st)) 8px 14px 20px; }
.cozinha .top .lin { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.cozinha .top .k { color: var(--topo-k); font-size: 14px; }
.cozinha .top .ico { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; color: var(--topo-ink); text-decoration: none; }
.cozinha .barra { height: 5px; background: rgba(255,255,255,.22); border-radius: 3px; overflow: hidden; margin-right: 12px; }
.cozinha .barra i { display: block; height: 100%; background: var(--ouro); transition: width .25s; }
.cozinha .corpo { flex: 1; overflow: auto; padding: 24px 20px; display: flex; flex-direction: column; justify-content: center; }
.cozinha .num { align-self: flex-start; background: var(--ouro); color: #1F4A2C; font-family: var(--titulo); font-weight: 800; font-size: 15px; padding: 4px 10px; border-radius: 5px; margin-bottom: 14px; }
.cozinha .txt { font-family: var(--titulo); font-size: clamp(28px, 7.6vw, 42px); line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
.cozinha .pe { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 0 20px; }
.cozinha .pe .btn { min-height: 56px; font-size: 17px; }
.cozinha .ings { padding: 0 20px 8px; }
.cozinha .ings summary { min-height: 44px; display: flex; align-items: center; color: var(--verde2); font-weight: 700; cursor: pointer; }
.cozinha .ings ul { list-style: none; max-height: 34vh; overflow: auto; font-size: 15px; }
.cozinha .ings li { padding: 6px 0; border-top: 1px solid var(--linha); }

/* lista de compras */
.lst .barra-acoes { display: flex; gap: 8px; padding: 14px 20px 0; flex-wrap: wrap; }
.lst .barra-acoes .btn { flex: 1; }
.receitas-da-lista { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; margin-top: 6px; }
.receitas-da-lista a { color: var(--topo-ink); }
.despensa { background: var(--folha); border-color: transparent; }

/* ajustes */
.opcoes { padding: 8px 20px 0; }
.opcoes .linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--linha); min-height: 56px; }
.opcoes .linha:first-child { border-top: 0; }
.opcoes .linha b { font-family: var(--titulo); font-size: 17px; }
.opcoes .linha p { font-size: 14px; color: var(--soft); }
.seg { display: inline-flex; border: 1px solid var(--linha); border-radius: 6px; overflow: hidden; background: var(--card); }
.seg button { min-height: 40px; padding: 0 12px; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--verde2); color: var(--marca-ink); font-weight: 700; }
.passos-ios { padding: 4px 0 8px 20px; color: var(--soft); font-size: 15px; }
.passos-ios li { padding: 3px 0; }

/* abas */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; height: calc(var(--tabs-h) + var(--sb)); padding-bottom: var(--sb);
  background: var(--card); border-top: 1px solid var(--linha); display: flex; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; color: var(--soft); text-decoration: none; }
.tabs svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"] { color: var(--verde2); font-weight: 700; }

/* avisos */
.aviso { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabs-h) + var(--sb) + 10px); z-index: 30; max-width: 520px; margin: 0 auto;
  background: #1F2B22; color: #FAF7EF; border-radius: 8px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 15px; }
.aviso button { color: #D8B25A; font-weight: 700; min-height: 40px; padding: 0 6px; }
body.sem-tabs .aviso { bottom: calc(var(--sb) + 90px); }
.demo-faixa { background: var(--ouro); color: #1F4A2C; font-size: 13px; text-align: center; padding: 4px 12px; }
.demo-faixa a { color: #1F4A2C; font-weight: 700; }

@media (min-width: 560px) { .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grade.g2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Ilustrações decorativas para estados vazios. */
.vazio-arte { display: block; width: min(180px, 55%); height: auto; margin: 0 auto 20px; border-radius: 16px; }
