/* Pit de Vendas — app do corretor. Marca: Anton + Sora; ink #0d0a06, gold #e8a33d, cream #f2e8d8. */
:root {
  --ink: #0d0a06;
  --ink-2: #1f180f;
  --gold: #e8a33d;
  --gold-dk: #9a5f0e;
  --cream: #f2e8d8;
  --cream-2: #e9dcc6;
  --bg: #f5efe4;
  --card: #fffdf8;
  --line: #ece2d0;
  --muted: #76674f;
  --muted-2: #a3957e;
  --zap: #1f9d48;
  --perigo: #a3372a;
  --anton: "Anton", Impact, "Arial Narrow", sans-serif;
  --sora: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --raio: 16px;
  --sombra:
    0 1px 0 rgba(13, 10, 6, 0.05), 0 6px 18px -12px rgba(13, 10, 6, 0.25);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  font-family: var(--sora);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
svg {
  flex: none;
}

/* ---------- casca ---------- */
.app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 14px) 16px
    calc(env(safe-area-inset-bottom) + 96px);
}
.app.sem-abas {
  padding-bottom: calc(env(safe-area-inset-bottom) + 32px);
}
.abas {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: rgba(250, 246, 239, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.abas nav {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.abas a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 0 8px;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted-2);
}
.abas a.on {
  color: var(--gold-dk);
}
.abas a.on svg {
  color: var(--gold);
}

/* ---------- topo ---------- */
.topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.topo .kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  font-family: var(--anton);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin-top: 2px;
}
h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.topo-acoes {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.redondo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.redondo.ink {
  background: var(--ink);
  color: var(--gold);
}
.redondo.ouro {
  background: var(--gold);
  color: var(--ink);
}
.voltar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold-dk);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 6px 8px 6px 0;
  margin-bottom: 6px;
}

/* ---------- números ---------- */
.numeros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.numeros div {
  background: var(--card);
  border-radius: 14px;
  padding: 11px 12px 10px;
  box-shadow: var(--sombra);
}
.numeros b {
  display: block;
  font-family: var(--anton);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
}
.numeros span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.25;
  margin-top: 2px;
}
.numeros .destaque b {
  color: var(--gold-dk);
}

/* ---------- listas ---------- */
.sec {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 4px 8px;
}
.lista {
  background: var(--card);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  overflow: hidden;
}
.linha {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  position: relative;
  text-decoration: none;
  min-height: 62px;
}
.linha + .linha::before {
  content: "";
  position: absolute;
  top: 0;
  left: 62px;
  right: 0;
  height: 1px;
  background: var(--line);
}
.av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex: none;
  letter-spacing: 0.02em;
}
.av.g {
  width: 64px;
  height: 64px;
  font-size: 22px;
}
.info {
  flex: 1;
  min-width: 0;
}
.info b {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.info small {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 1px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.info small .atr {
  color: var(--gold-dk);
  font-weight: 600;
}
.ic-zap {
  color: var(--zap);
}
.acoes-linha {
  display: flex;
  gap: 6px;
  flex: none;
}
.bp {
  font-size: 13px;
  font-weight: 700;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 9px 14px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bp.claro {
  background: var(--cream-2);
  color: var(--ink);
}
.bz {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8f4ec;
  color: var(--zap);
  display: grid;
  place-items: center;
}
.linha.feito .info b {
  color: var(--muted-2);
}
.check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}
.vazio {
  background: var(--card);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 22px 18px;
  text-align: left;
}
.vazio p {
  color: var(--muted);
  margin: 6px 0 16px;
}
.faixa {
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 10px 0 4px;
}
.faixa b {
  color: var(--gold);
}

/* ---------- botões grandes ---------- */
.bt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 16px;
  letter-spacing: -0.01em;
  text-align: center;
}
.bt.ouro {
  background: var(--gold);
  color: var(--ink);
}
.bt.ink {
  background: var(--ink);
  color: var(--cream);
}
.bt.branco {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.bt.texto {
  background: none;
  color: var(--muted);
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
}
.bt.perigo {
  background: none;
  color: var(--perigo);
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
}
.bt[disabled] {
  opacity: 0.45;
  pointer-events: none;
}
.pilha {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.duas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ---------- cartão do toque ---------- */
.cab-cli {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 16px;
}
.cab-cli h1 {
  font-size: 34px;
  overflow-wrap: anywhere;
}
.cab-cli p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}
.regua {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}
.regua i {
  height: 6px;
  border-radius: 3px;
  background: var(--cream-2);
}
.regua i.f {
  background: var(--ink);
}
.regua i.p {
  background: #cbbfa9;
}
.regua i.h {
  background: var(--gold);
}
.regua-leg {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin: 7px 0 16px;
}
.cartao {
  background: var(--card);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: var(--sombra);
  margin-bottom: 12px;
}
.kick {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dk);
}
.cartao h2 {
  margin: 4px 0 14px;
}
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--cream);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  padding: 9px 4px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.seg button.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(13, 10, 6, 0.14);
}
.rotulo {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 2px 0;
}
.msg {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: #f8f2e7;
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 14px 15px;
  font-size: 16.5px;
  line-height: 1.5;
  resize: none;
  min-height: 120px;
  overflow: hidden;
}
.msg:focus {
  outline: none;
  border-color: var(--gold);
  background: #fffaf1;
}
.trocar {
  font-size: 13.5px;
  color: var(--gold-dk);
  font-weight: 600;
  margin: 8px 2px 0;
}
.dica {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.45;
}
.dica svg {
  color: var(--gold-dk);
  margin-top: 1px;
}
.link-alt {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dk);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prox {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0 4px;
}
.prox b {
  color: var(--ink);
}
.campo-copia {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.campo-copia input {
  flex: 1;
  min-width: 0;
}

/* ---------- roteiro ---------- */
.passos {
  counter-reset: p;
  display: grid;
  gap: 14px;
  margin-top: 6px;
}
.passo {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
}
.passo .num {
  font-family: var(--anton);
  font-size: 24px;
  line-height: 1;
  color: var(--gold-dk);
}
.passo b {
  font-size: 15px;
}
.passo b span {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}
.fala {
  background: #f8f2e7;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 6px;
  font-size: 15.5px;
}
.passo p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- textos (biblioteca, conversa) ---------- */
.texto p + p {
  margin-top: 8px;
}
.texto p {
  font-size: 15px;
}
.texto ul {
  margin: 4px 0 0 18px;
}
.texto li + li {
  margin-top: 6px;
}
details.bloco {
  background: var(--card);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  margin-bottom: 10px;
}
details.bloco > summary {
  list-style: none;
  padding: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
details.bloco > summary::-webkit-details-marker {
  display: none;
}
details.bloco > summary small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}
details.bloco > summary .mais {
  color: var(--gold-dk);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s;
}
details.bloco[open] > summary .mais {
  transform: rotate(45deg);
}
details.bloco .dentro {
  padding: 0 16px 16px;
}
.pronta {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.pronta .antes {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.pronta .corpo {
  background: #f8f2e7;
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 15.5px;
  white-space: pre-wrap;
}
.pronta .acoes-linha {
  margin-top: 8px;
}
.regras {
  counter-reset: r;
  display: grid;
  gap: 12px;
}
.regras li {
  list-style: none;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
}
.regras li::before {
  counter-increment: r;
  content: counter(r);
  font-family: var(--anton);
  font-size: 24px;
  line-height: 1.05;
  color: var(--gold-dk);
}
.quadro {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
}
.quadro div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  background: var(--card);
  padding: 10px 12px;
  font-size: 14px;
}
.quadro div b {
  font-family: var(--anton);
  font-weight: 400;
  font-size: 18px;
}
.quadro div span small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- linha do tempo ---------- */
.tempo .linha {
  min-height: 54px;
}
.estado {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  flex: none;
}
.estado.feito {
  color: var(--ink);
}
.estado.hoje,
.estado.atrasado {
  color: var(--gold-dk);
}
.n-toque {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--anton);
  font-size: 16px;
  background: var(--cream);
  color: var(--muted);
  flex: none;
}
.n-toque.feito {
  background: var(--ink);
  color: var(--gold);
}
.n-toque.hoje,
.n-toque.atrasado {
  background: var(--gold);
  color: var(--ink);
}
.dados-cli {
  display: grid;
  gap: 8px;
  font-size: 14.5px;
}
.dados-cli div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.dados-cli span {
  color: var(--muted);
}
.dados-cli b {
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.obs {
  margin-top: 10px;
  font-size: 14.5px;
  white-space: pre-wrap;
  background: #f8f2e7;
  border-radius: 12px;
  padding: 10px 12px;
}

/* ---------- formulários ---------- */
.f {
  display: grid;
  gap: 6px;
}
.f label {
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
}
.f label small {
  color: var(--muted);
  font-weight: 500;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="search"],
textarea.campo {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
  min-height: 50px;
  -webkit-appearance: none;
  appearance: none;
}
input:focus,
textarea.campo:focus {
  outline: none;
  border-color: var(--gold);
}
textarea.campo {
  min-height: 86px;
  resize: vertical;
}
.ajuda {
  font-size: 13px;
  color: var(--muted);
}
.previa {
  background: var(--cream);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 14px;
  margin-top: 8px;
}
.previa b {
  color: var(--gold-dk);
}
.erro {
  color: var(--perigo);
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
}
.busca {
  margin-bottom: 10px;
}

/* ---------- avisos ---------- */
.toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 74px);
  z-index: 40;
  max-width: 536px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  padding: 12px 12px 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  font-size: 14.5px;
  animation: sobe 0.18s ease-out;
}
.sem-abas ~ .toast,
.toast.baixo {
  bottom: calc(env(safe-area-inset-bottom) + 14px);
}
.toast span {
  flex: 1;
}
.toast button {
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}
.toast button.x {
  background: none;
  color: var(--cream-2);
  padding: 8px 6px;
}
@keyframes sobe {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}
.fundo {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(13, 10, 6, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.folha {
  background: var(--bg);
  width: 100%;
  max-width: 560px;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px calc(env(safe-area-inset-bottom) + 18px);
  max-height: 92vh;
  overflow-y: auto;
  animation: sobe 0.18s ease-out;
}
.folha h2 {
  margin-bottom: 8px;
}
.folha .texto {
  color: var(--muted);
}

/* ---------- telas de entrada (sem JS) ---------- */
body.porta {
  background: var(--ink);
  color: var(--cream);
}
.porta-c {
  max-width: 440px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 36px) 20px 40px;
}
.marca {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.marca img {
  border-radius: 12px;
}
.marca b {
  display: block;
  font-family: var(--anton);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.marca span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.porta h1 {
  font-size: 46px;
  margin-bottom: 8px;
}
.porta .sub {
  font-size: 16.5px;
  color: var(--cream-2);
  margin-bottom: 22px;
}
.porta .f label {
  color: var(--cream);
}
.porta input[type="email"] {
  background: var(--ink-2);
  border-color: #3a2f20;
  color: var(--cream);
}
.porta .bt {
  margin-top: 14px;
}
.porta .nota {
  color: #b8ab95;
  font-size: 14px;
  margin-top: 16px;
}
.porta .nota a {
  color: var(--gold);
}
.aviso-erro {
  background: #3a1d14;
  color: #ffd9c9;
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 14px;
  font-size: 14.5px;
}
.carregando {
  color: var(--muted);
  padding: 40px 4px;
}
@media (min-width: 600px) {
  .app {
    padding-top: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- aulas e comunidade ---------- */
.abas a {
  font-size: 10.5px;
}
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
}
.video iframe,
.video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-vazio {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--cream);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-weight: 600;
}
.cartao.grupo {
  margin-top: 12px;
}
.bt span svg {
  width: 20px;
  height: 20px;
}
.seg.filtro button {
  font-size: 12.5px;
  padding: 9px 2px;
}

/* ---------- rodapé, exclusão de conta, termos ---------- */
.rodape {
  text-align: center;
  font-size: 13px;
  margin: 28px 0 4px;
}
.rodape a {
  color: var(--muted);
}
.cartao.excluir {
  margin-top: 14px;
  border: 1.5px solid #e6c9c2;
}
.cartao.excluir .kick {
  color: var(--perigo);
}
.termos h2 {
  font-size: 19px;
  color: var(--gold);
  margin: 26px 0 8px;
}
.termos p,
.termos li {
  font-size: 15.5px;
  color: var(--cream-2);
  line-height: 1.55;
}
.termos p + p {
  margin-top: 8px;
}
.termos ul {
  margin: 6px 0 0 20px;
}
.termos li + li {
  margin-top: 5px;
}
.termos b {
  color: var(--cream);
}
.termos a {
  color: var(--gold);
}
