:root {
  --preto: #141414;
  --preto-2: #1E1E1E;
  --claro: #F6F4F1;
  --branco: #FFFDFB;
  --tinta: #161616;
  --suave: #4A4A4A;
  --laranja: #EA6A0F;
  --laranja-texto: #A84A08;
  --linha: #E2DED8;
  --titulo: 'Space Grotesk', Arial, sans-serif;
  --texto: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--texto); color: var(--tinta); background: var(--claro); line-height: 1.5; -webkit-font-smoothing: antialiased; }

.tela { min-height: 100vh; scroll-snap-align: start; display: flex; align-items: center; padding: 96px 24px; background: var(--claro); }
.tela.escura { background: var(--preto); color: #F3F0EB; }
.caixa { width: 100%; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }

h1, h2, h3 { font-family: var(--titulo); margin: 0; line-height: 1.1; }
h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 700; max-width: 14ch; }
h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; max-width: 22ch; }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
p { margin: 0; }

.rotulo { font-size: 14px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--laranja-texto); border-left: 4px solid var(--laranja); padding-left: 14px; }
.escura .rotulo { color: var(--laranja); }
.destaque { font-size: clamp(18px, 2vw, 24px); color: var(--suave); max-width: 52ch; }
.escura .destaque { color: #CFCAC3; }
.nota { font-size: 15px; color: var(--suave); }
.escura .nota { color: #A9A49D; }
.dica { font-size: 14px; color: #8C8C8C; margin-top: 24px; }

.grade { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.cartao { background: var(--branco); border: 1px solid var(--linha); border-top: 5px solid var(--laranja); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(20, 20, 20, .06); }
.cartao p { color: var(--suave); font-size: 16px; }
.cartao.preto { border-top-color: var(--preto); }
.cartao .numero { font-family: var(--titulo); font-weight: 700; font-size: clamp(48px, 6vw, 76px); line-height: 1; color: var(--laranja); }

.etiqueta { align-self: flex-start; font-size: 12px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; background: #FBE3CF; color: #7A3605 !important; }
.etiqueta.escura { background: var(--preto); color: #F3F0EB !important; }

.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 3px; margin: 0 4px 6px 0; }
.chip.ok { background: #E3F1E4; color: #1B5E20; }
.chip.conf { background: #FFF3D6; color: #7A4A00; }
.chip.esg { background: #FDE4E4; color: #9E1C1C; }
.chip.canc { background: #ECECEC; color: #555; }

.fluxo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: passo; }
.fluxo li { position: relative; background: var(--branco); border: 1px solid var(--linha); border-top: 5px solid var(--laranja); border-radius: 6px; padding: 22px 18px; display: flex; flex-direction: column; gap: 8px; }
.fluxo li:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--preto); background: var(--claro); line-height: 1; padding: 2px 0; z-index: 1; }
.fluxo .n { font-family: var(--titulo); font-weight: 700; color: var(--laranja-texto); }
.fluxo p { font-size: 14px; color: var(--suave); }

.tabela { overflow-x: auto; border: 1px solid var(--linha); border-radius: 6px; background: var(--branco); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { background: var(--preto); color: #F3F0EB; text-align: left; font-weight: 600; padding: 14px 18px; }
td { padding: 14px 18px; border-top: 1px solid var(--linha); vertical-align: top; }
td:first-child { width: 52%; }
tbody tr:nth-child(even) { background: #FAF8F5; }

.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: item; }
.lista.duas { grid-template-columns: 1fr 1fr; gap: 26px 48px; }
.lista li { counter-increment: item; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 4px; }
.lista li::before { content: counter(item); grid-row: span 2; font-family: var(--titulo); font-weight: 700; font-size: 30px; color: var(--laranja); line-height: 1.1; }
.lista p { color: #CFCAC3; font-size: 16px; }

.destaque strong { color: var(--tinta); }

.exemplo { display: grid; grid-template-columns: 1fr auto 1.2fr; gap: 28px; align-items: center; }
.seta { font-size: 44px; color: var(--laranja); font-family: var(--titulo); }
.zap { background: #0B141A; border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; border: 1px solid #2A3942; }
.zap-grupo { font-size: 13px; font-weight: 600; color: #8696A0; border-bottom: 1px solid #2A3942; padding-bottom: 10px; }
.balao { background: #202C33; color: #E9EDEF; border-radius: 8px; padding: 10px 12px 6px; max-width: 300px; font-size: 15px; line-height: 1.4; }
.balao .autor { font-size: 13px; font-weight: 600; color: var(--laranja); margin-bottom: 4px; }
.balao .autor.cliente { color: #53BDEB; }
.balao .hora { text-align: right; font-size: 11px; color: #8696A0; margin-top: 2px; }
.foto { height: 90px; border-radius: 6px; margin-bottom: 8px; background: linear-gradient(135deg, #EA6A0F, #7A3605); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #FFE9D6; letter-spacing: .08em; text-transform: uppercase; }
.citado { background: #1A2329; border-left: 4px solid var(--laranja); border-radius: 4px; padding: 6px 8px; font-size: 13px; color: #AEBAC1; margin-bottom: 6px; }
.citado span { display: block; color: var(--laranja); font-weight: 600; }
.folha { display: flex; flex-direction: column; gap: 12px; }
.folha-aba { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .08em; background: #FBE3CF; color: #7A3605; padding: 4px 10px; border-radius: 3px; }
.folha-linha { background: var(--branco); color: var(--tinta); border-radius: 6px; border-top: 5px solid var(--laranja); padding: 8px 20px; }
.folha-linha dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.folha-linha dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linha); }
.folha-linha dt { color: var(--suave); font-size: 14px; }
.folha-linha dd { margin: 0; font-weight: 600; font-size: 15px; text-align: right; }
.folha-linha .chip { margin: 0; }

.progresso { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 20; background: transparent; }
.progresso span { display: block; height: 100%; width: 0; background: var(--laranja); transition: width .2s; }
.pontos { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 20; }
.pontos a { width: 10px; height: 10px; border-radius: 50%; background: #B8B2AA; display: block; }
.pontos a.ativo { background: var(--laranja); transform: scale(1.3); }
.rodape { padding: 24px; text-align: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #8C8C8C; background: var(--preto); }

.aparece { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.aparece.visivel { opacity: 1; transform: none; }

@media (max-width: 900px) {
  html { scroll-snap-type: none; }
  .tela { min-height: auto; padding: 72px 16px; }
  .g3, .g2, .lista.duas { grid-template-columns: 1fr; }
  .fluxo { grid-template-columns: 1fr; }
  .fluxo li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -16px; transform: translateX(-50%); }
  .pontos { display: none; }
  .exemplo { grid-template-columns: 1fr; }
  .seta { transform: rotate(90deg); justify-self: center; }
  .folha-linha dl { grid-template-columns: 1fr; }
  td:first-child { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aparece { opacity: 1; transform: none; transition: none; }
}
@media print {
  html { scroll-snap-type: none; }
  .tela { min-height: auto; page-break-after: always; }
  .progresso, .pontos, .dica { display: none; }
  .aparece { opacity: 1; transform: none; }
}

/* Link para a demonstração */
.ver-demo { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ver-demo a { display: inline-block; background: var(--laranja); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 8px; }
.ver-demo a:hover { filter: brightness(.9); }
.ver-demo span { color: inherit; opacity: .8; font-size: 15px; }
