/* Cardápio Lucrativo: app. Verde de dinheiro com o tomate e o creme da marca Cardápio Resolvido. */
:root {
  --verde: #1F8A4C; --verde-esc: #146B39; --verde-claro: #E3F4E9;
  --tomate: #E5482D; --creme: #FFF3E0; --creme-esc: #F6E3C6;
  --texto: #2B1A14; --suave: #7E6355; --linha: #EBD9C0; --branco: #fff; --amarelo: #FFC23C;
  --raio: 18px; --sombra: 0 2px 10px rgba(43, 26, 20, .08);
  --titulo: 'Fredoka', 'Segoe UI', sans-serif; --corpo: 'Nunito', 'Segoe UI', Arial, sans-serif;
  --abas: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--texto); font: 16px/1.5 var(--corpo); padding-bottom: calc(var(--abas) + env(safe-area-inset-bottom)); }
body.sem-abas { padding-bottom: 0; }
a { color: var(--verde-esc); }
h1, h2, h3 { font-family: var(--titulo); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.carregando { padding: 40vh 0; text-align: center; color: var(--suave); }

.tela { max-width: 760px; margin: 0 auto; padding: 18px 16px 28px; }
.topo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.topo h1 { margin: 0; font-size: 1.45rem; flex: 1; }
.voltar { border: 0; background: var(--branco); width: 40px; height: 40px; border-radius: 50%; box-shadow: var(--sombra); font-size: 1.2rem; cursor: pointer; flex: none; }
.sub { color: var(--suave); font-size: .95rem; }
.pequeno { font-size: .85rem; color: var(--suave); }

.cartao { background: var(--branco); border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px; margin-bottom: 14px; }
.cartao h2:last-child, .cartao p:last-child { margin-bottom: 0; }
.cartao.verde { background: var(--verde); color: var(--branco); }
.cartao.verde .sub, .cartao.verde .pequeno { color: #D7F0E0; }
.grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.atalho { background: var(--branco); border-radius: var(--raio); box-shadow: var(--sombra); padding: 14px; text-decoration: none; color: var(--texto); display: flex; flex-direction: column; gap: 4px; min-height: 104px; }
.atalho .ic { font-size: 1.6rem; }
.atalho b { font-family: var(--titulo); font-weight: 600; font-size: 1.05rem; }
.atalho span.pequeno { line-height: 1.3; }

.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 20px; background: var(--verde); color: var(--branco); font-weight: 800; cursor: pointer; text-decoration: none; min-height: 46px; }
.botao:hover { background: var(--verde-esc); }
.botao:disabled { opacity: .55; cursor: default; }
.botao.cheio { width: 100%; }
.botao.leve { background: var(--verde-claro); color: var(--verde-esc); }
.botao.leve:hover { background: #CDEBD8; }
.botao.tomate { background: var(--tomate); }
.botao.contorno { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 2px var(--linha); }
.botao.pq { padding: 7px 14px; min-height: 36px; font-size: .9rem; }
.link-botao { border: 0; background: none; color: var(--verde-esc); text-decoration: underline; cursor: pointer; padding: 6px 0; font-weight: 700; }
.linha-botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

label.campo { display: block; margin-bottom: 12px; font-weight: 700; font-size: .92rem; }
label.campo input, label.campo select, label.campo textarea { display: block; width: 100%; margin-top: 5px; font-weight: 400; font-size: 1rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  border: 2px solid var(--linha); border-radius: 12px; padding: 11px 12px; background: var(--branco); min-height: 46px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--verde); }
.erro { color: #B3261E; background: #FDECEA; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: .95rem; }
.ok { color: var(--verde-esc); background: var(--verde-claro); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: .95rem; }

/* Entrada */
.entrada { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.entrada .caixa { width: 100%; max-width: 420px; }
.marca { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.marca img { width: 56px; height: 56px; border-radius: 16px; }
.marca b { font-family: var(--titulo); font-size: 1.5rem; display: block; line-height: 1.1; }

/* Barra de progresso */
.barra { height: 8px; border-radius: 99px; background: var(--creme-esc); overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--verde); border-radius: 99px; }
.cartao.verde .barra { background: rgba(255,255,255,.25); } .cartao.verde .barra i { background: var(--amarelo); }

/* Cursos e aulas */
.curso { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--texto); }
.curso img, .curso .sem-capa { width: 104px; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; background: var(--creme-esc); flex: none; }
.curso .info { flex: 1; min-width: 0; }
.curso b { font-family: var(--titulo); font-weight: 600; font-size: 1.1rem; display: block; }
.lista-aulas { list-style: none; padding: 0; margin: 0; }
.lista-aulas li a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--texto); }
.lista-aulas li a:hover { background: var(--creme); }
.lista-aulas .num { width: 34px; height: 34px; border-radius: 50%; background: var(--creme-esc); display: grid; place-items: center; font-weight: 800; flex: none; font-size: .9rem; }
.lista-aulas .feita .num { background: var(--verde); color: var(--branco); }
.lista-aulas .atual .num { background: var(--amarelo); }
.lista-aulas .t { flex: 1; min-width: 0; }
.lista-aulas .t b { display: block; font-weight: 700; }

/* Player */
.player { position: relative; background: #000; border-radius: var(--raio); overflow: hidden; aspect-ratio: 16/9; margin-bottom: 14px; user-select: none; -webkit-user-select: none; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player.tela-cheia { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.player .camada { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(transparent 55%, rgba(0,0,0,.65)); transition: opacity .25s; }
.player.escondido .camada { opacity: 0; cursor: none; }
.player .centro { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 28px; pointer-events: none; }
.player .centro button { pointer-events: auto; }
.pbtn { border: 0; background: rgba(0,0,0,.45); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1rem; font-weight: 800; cursor: pointer; display: grid; place-items: center; }
.pbtn.grande { width: 68px; height: 68px; font-size: 1.6rem; background: rgba(31,138,76,.92); }
.pbtn svg { width: 26px; height: 26px; fill: #fff; }
.pbtn.grande svg { width: 34px; height: 34px; }
.player .controles { display: flex; align-items: center; gap: 6px; padding: 4px 10px 10px; color: #fff; }
.player .tempo { font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player .esp { flex: 1; }
.player .cbtn { border: 0; background: none; color: #fff; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-weight: 800; font-size: .85rem; min-width: 40px; min-height: 36px; }
.player .cbtn:hover { background: rgba(255,255,255,.15); }
.player .cbtn svg { width: 22px; height: 22px; fill: #fff; vertical-align: middle; }
.player .trilho { position: relative; height: 22px; margin: 0 12px; cursor: pointer; touch-action: none; }
.player .trilho .fundo { position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: rgba(255,255,255,.3); border-radius: 4px; }
.player .trilho .buf { position: absolute; left: 0; top: 9px; height: 4px; background: rgba(255,255,255,.45); border-radius: 4px; }
.player .trilho .feito { position: absolute; left: 0; top: 9px; height: 4px; background: var(--amarelo); border-radius: 4px; }
.player .trilho .bola { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--amarelo); }
.player .menu { position: absolute; right: 10px; bottom: 56px; background: rgba(20,20,20,.94); border-radius: 12px; padding: 6px; min-width: 150px; color: #fff; z-index: 3; max-height: 70%; overflow: auto; }
.player .menu b { display: block; padding: 6px 10px; font-size: .78rem; color: #bbb; text-transform: uppercase; letter-spacing: .04em; }
.player .menu button { display: block; width: 100%; text-align: left; border: 0; background: none; color: #fff; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.player .menu button:hover, .player .menu button.sel { background: rgba(255,255,255,.14); }
.player .menu button.sel::after { content: ' ✓'; color: var(--amarelo); }
.player .toque { position: absolute; top: 0; bottom: 50px; width: 32%; }
.player .toque.esq { left: 0; } .player .toque.dir { right: 0; }
.player .pulo { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.55); color: #fff; padding: 8px 14px; border-radius: 99px; font-weight: 800; pointer-events: none; }
.player .espera { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.giro { width: 44px; height: 44px; border: 4px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: giro 0.9s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
.retomar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Abas da ficha */
.abas-ficha { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
.abas-ficha button { border: 0; background: var(--branco); border-radius: 99px; padding: 9px 16px; font-weight: 800; cursor: pointer; white-space: nowrap; box-shadow: var(--sombra); }
.abas-ficha button.sel { background: var(--verde); color: var(--branco); }
.ingredientes { list-style: none; padding: 0; margin: 0; }
.ingredientes li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--linha); }
.ingredientes li:last-child { border-bottom: 0; }
.ingredientes .q { font-weight: 800; min-width: 74px; }
.ingredientes .obs { display: block; color: var(--suave); font-size: .88rem; }
.passos { padding-left: 1.3em; margin: 0 0 .8em; }
.passos li { margin-bottom: .45em; }
.etiqueta { display: inline-block; background: var(--verde-claro); color: var(--verde-esc); border-radius: 99px; padding: 3px 10px; font-size: .8rem; font-weight: 800; margin: 0 4px 4px 0; }
.etiqueta.tomate { background: #FDE3DD; color: #A8321D; }
.etiqueta.amarela { background: #FFF0C9; color: #7A5600; }

/* Calculadora */
.tabela { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabela td, .tabela th { padding: 8px 4px; border-bottom: 1px solid var(--linha); text-align: left; vertical-align: middle; }
.tabela th { font-size: .8rem; color: var(--suave); text-transform: uppercase; letter-spacing: .03em; }
.tabela .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabela tr.total td { font-weight: 800; border-bottom: 0; }
.tabela input { min-height: 38px; padding: 6px 8px; border-radius: 10px; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.resultado { text-align: center; }
.resultado .preco { font-family: var(--titulo); font-size: 2.6rem; font-weight: 700; line-height: 1; margin: 6px 0; }
.canais { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.canal { border: 2px solid var(--linha); border-radius: 14px; padding: 10px 12px; cursor: pointer; background: var(--branco); text-align: left; }
.canal.sel { border-color: var(--verde); background: var(--verde-claro); }
.canal b { display: block; }
.ingr-calc { display: grid; grid-template-columns: 1fr 86px 92px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--linha); }
.ingr-calc .nome { font-size: .92rem; line-height: 1.25; }
.ingr-calc input { min-height: 38px; padding: 6px 8px; border-radius: 10px; text-align: right; }
.ingr-calc .custo { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.dica-box { background: #FFF6DF; border-radius: 14px; padding: 12px 14px; font-size: .93rem; margin-bottom: 14px; }
details.mais { background: var(--branco); border-radius: var(--raio); box-shadow: var(--sombra); padding: 12px 16px; margin-bottom: 14px; }
details.mais summary { cursor: pointer; font-weight: 800; font-family: var(--titulo); font-size: 1.05rem; }
details.mais[open] summary { margin-bottom: 10px; }

/* Bônus (texto) */
.doc h1 { font-size: 1.6rem; } .doc h2 { margin-top: 1.2em; color: var(--verde-esc); } .doc h3 { margin-top: 1em; }
.doc ul, .doc ol { padding-left: 1.3em; } .doc li { margin-bottom: .35em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .92rem; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--linha); padding: 6px 8px; text-align: left; }
.doc th { background: var(--creme); }
.doc hr { border: 0; border-top: 2px dashed var(--linha); margin: 1.4em 0; }
.script { position: relative; background: #E7F7EC; border-left: 4px solid var(--verde); border-radius: 0 14px 14px 0; padding: 12px 14px 46px; margin: 0 0 1em; white-space: pre-wrap; }
.script p:last-child { margin-bottom: 0; }
.script .copiar { position: absolute; right: 10px; bottom: 8px; }

/* Artes */
.galeria { align-items: start; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.arte { background: var(--branco); border-radius: 14px; box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; }
.arte img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--creme-esc); cursor: zoom-in; }
.arte .rod { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; font-size: .85rem; }
.filtros { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.filtros button { border: 0; background: var(--branco); border-radius: 99px; padding: 8px 14px; font-weight: 800; cursor: pointer; white-space: nowrap; box-shadow: var(--sombra); }
.filtros button.sel { background: var(--verde); color: #fff; }
.zoom { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; gap: 12px; }
.zoom img { max-height: 80vh; max-width: 100%; border-radius: 12px; }

/* Checklist */
.passo-check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--linha); }
.passo-check:last-child { border-bottom: 0; }
.passo-check input { width: 22px; height: 22px; accent-color: var(--verde); flex: none; margin-top: 2px; }
.passo-check.feito .tx b { text-decoration: line-through; color: var(--suave); }
.passo-check .tx { flex: 1; }
.passo-check .tx a { font-size: .9rem; }

/* Abas de baixo */
.abas { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--abas) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--branco); display: flex; box-shadow: 0 -2px 12px rgba(43,26,20,.08); z-index: 20; }
.abas a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--suave); font-size: .75rem; font-weight: 800; gap: 2px; }
.abas a .ic { font-size: 1.25rem; filter: grayscale(1); opacity: .7; }
.abas a.sel { color: var(--verde-esc); }
.abas a.sel .ic { filter: none; opacity: 1; }

.aviso { position: fixed; left: 50%; bottom: calc(var(--abas) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--texto); color: #fff; padding: 10px 18px; border-radius: 99px; z-index: 60; font-weight: 700; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

@media (min-width: 700px) {
  .grade { grid-template-columns: repeat(3, 1fr); }
  .curso img, .curso .sem-capa { width: 160px; }
}
@media (max-width: 380px) {
  .ingr-calc { grid-template-columns: 1fr 74px 80px; }
  .player .controles { gap: 2px; padding: 2px 4px 6px; }
  .player .cbtn { min-width: 34px; padding: 6px 5px; }
}
@media print {
  .abas, .topo .voltar, .linha-botoes, .abas-ficha { display: none !important; }
  body { background: #fff; padding: 0; }
  .cartao { box-shadow: none; border: 1px solid #ddd; }
}
