/* Digitaê — prévia de design v0.1 */
:root {
  --petroleo: #0F2B33;
  --petroleo-2: #17404A;
  --petroleo-3: #23535F;
  --nevoa: #EDF1EE;
  --papel: #F8FAF8;
  --tecla: #FFFFFF;
  --manga: #FFB81C;
  --manga-escura: #C98A00;
  --erro: #FF7D82;
  --erro-forte: #D7373F;
  --texto: #0F2B33;
  --texto-2: #47626A;
  --linha: #CFD9D5;

  --le5: #D96C9D; --le4: #9B7BE0; --le3: #5B8DEF; --le2: #2FB7C4;
  --ld2: #35B37E; --ld3: #8BBF3F; --ld4: #E0894B; --ld5: #D9605A;
  --pol: #9AA8A6;

  --fonte: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "Spline Sans Mono", "Cascadia Mono", Consolas, monospace;
  --largura: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; font-family: var(--fonte); color: var(--texto); background: var(--nevoa);
  font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--manga); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--petroleo); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Topo ---------- */
.topo {
  max-width: var(--largura); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 32px;
}
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.marca-tecla {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: var(--manga); color: var(--petroleo); font-weight: 800; font-size: 24px; line-height: 1;
  box-shadow: inset 0 -4px 0 var(--manga-escura); padding-bottom: 4px;
}
.marca-nome { font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.menu { display: flex; gap: 28px; margin-left: auto; font-size: 16px; font-weight: 500; }
.menu a { text-decoration: none; color: var(--texto-2); }
.menu a:hover { color: var(--texto); text-decoration: underline; text-underline-offset: 5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  font-weight: 700; font-size: 17px; padding: 13px 22px; border-radius: 12px; border: 0;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:active { transform: translateY(3px); }
.btn-claro { background: var(--tecla); box-shadow: inset 0 -3px 0 var(--linha), 0 0 0 1px var(--linha); }
.btn-claro:active { box-shadow: inset 0 0 0 var(--linha), 0 0 0 1px var(--linha); }
.btn-manga { background: var(--manga); color: var(--petroleo); box-shadow: inset 0 -4px 0 var(--manga-escura); }
.btn-manga:active { box-shadow: inset 0 -1px 0 var(--manga-escura); }
.btn-escuro { background: var(--petroleo); color: #fff; box-shadow: inset 0 -4px 0 #06181d; }
.btn-fantasma { background: transparent; color: #fff; box-shadow: 0 0 0 1.5px rgba(255,255,255,.45); }
.btn-grande { font-size: 19px; padding: 17px 28px; width: 100%; }

/* ---------- Abertura ---------- */
.abertura { max-width: var(--largura); margin: 0 auto; padding: 18px 24px 28px; }
.abertura h1 {
  font-size: clamp(34px, 4.7vw, 62px); line-height: 1; letter-spacing: -0.04em; font-weight: 800;
  max-width: 22ch; text-wrap: balance;
}
.abertura-sub { margin-top: 14px; max-width: 58ch; color: var(--texto-2); font-size: clamp(17px, 1.6vw, 20px); }

/* ---------- Palco ---------- */
.palco {
  max-width: calc(var(--largura) + 48px); margin: 0 auto; background: var(--petroleo); color: #fff;
  border-radius: 28px; padding: clamp(18px, 3vw, 40px); position: relative;
}
@media (max-width: 1180px) { .palco { border-radius: 0; } }

.placar { display: flex; align-items: flex-end; gap: clamp(18px, 3.4vw, 48px); flex-wrap: wrap; }
.placar-item { display: flex; flex-direction: column; min-width: 0; }
.placar-num { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; display: inline-block; transform-origin: left bottom; }
.placar-tempo .placar-num { color: var(--manga); }
.placar-rot { font-size: 14px; color: #9DB8BD; margin-top: 6px; }
.placar-acoes { margin-left: auto; display: flex; gap: 8px; }
.chave {
  background: var(--petroleo-2); color: #D7E5E7; border: 0; border-radius: 10px; padding: 9px 14px;
  font-size: 15px; font-weight: 500; box-shadow: inset 0 -3px 0 rgba(0,0,0,.28);
}
.chave:hover { background: var(--petroleo-3); }
.chave[aria-pressed="true"] { background: var(--manga); color: var(--petroleo); box-shadow: inset 0 -3px 0 var(--manga-escura); }
.salto { animation: salto .5s cubic-bezier(.2,1.6,.4,1); color: var(--manga); }
@keyframes salto { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.barra { height: 4px; background: var(--petroleo-2); border-radius: 4px; margin-top: 18px; overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--manga); transform-origin: left; transition: transform .1s linear; }

.texto-janela {
  position: relative; margin-top: 20px; height: calc(clamp(19px, 2.1vw, 27px) * 1.8 * 3);
  overflow: hidden; cursor: text;
}
.texto {
  font-family: var(--mono); font-size: clamp(19px, 2.1vw, 27px); line-height: 1.8;
  color: #6F939A; white-space: pre-wrap; overflow-wrap: break-word; transition: transform .18s ease;
}
.texto span { position: relative; border-radius: 3px; }
.texto .ok { color: #FFFFFF; }
.texto .bad { color: var(--erro); background: rgba(255,125,130,.16); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.texto .cur::before {
  content: ""; position: absolute; left: -2px; top: 12%; bottom: 10%; width: 3px; border-radius: 2px; background: var(--manga);
}
.palco:not(.foco) .texto .cur::before { opacity: .35; }
.palco.foco .texto .cur::before { animation: pisca 1.1s steps(2, start) infinite; }
@keyframes pisca { to { visibility: hidden; } }

.chamada {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0;
  background: rgba(15,43,51,.82); color: #fff; font-weight: 700; font-size: clamp(18px, 2vw, 24px);
  backdrop-filter: blur(3px);
}
.palco.foco .chamada { display: none; }
.captura { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; font-size: 16px; border: 0; padding: 0; }

.dica { margin-top: 14px; min-height: 1.6em; color: #BFD3D6; font-size: 16px; }

/* ---------- Teclado ---------- */
.teclado-area { margin-top: 18px; container-type: inline-size; }
.teclado { max-width: 980px; margin: 0 auto; background: #0A2027; border-radius: 1.6cqw; padding: 1.1cqw; }
.tl { display: grid; grid-template-columns: repeat(60, 1fr); height: min(6.2cqw, 62px); }
.tk { padding: min(.32cqw, 3.4px); min-width: 0; }
.cap {
  position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(#FFFFFF, #EEF2F0); color: var(--petroleo); border-radius: min(.8cqw, 8px);
  box-shadow: inset 0 calc(min(.42cqw, 4px) * -1) 0 var(--cor, #B8C4C0), 0 min(.3cqw, 3px) 0 rgba(0,0,0,.45);
  font-weight: 600; line-height: 1; user-select: none;
  transition: transform .05s ease, box-shadow .05s ease, background-color .12s ease;
  padding-bottom: min(.3cqw, 3px);
}
.cap b { font-size: min(2.1cqw, 20px); font-weight: 600; }
.cap small { font-size: min(1.25cqw, 12px); color: #6C858B; margin-bottom: min(.25cqw, 3px); }
.tk.larga .cap b { font-size: min(1.25cqw, 12.5px); font-weight: 500; color: #55707A; }
.d-le5 .cap { --cor: var(--le5); } .d-le4 .cap { --cor: var(--le4); } .d-le3 .cap { --cor: var(--le3); } .d-le2 .cap { --cor: var(--le2); }
.d-ld2 .cap { --cor: var(--ld2); } .d-ld3 .cap { --cor: var(--ld3); } .d-ld4 .cap { --cor: var(--ld4); } .d-ld5 .cap { --cor: var(--ld5); }
.d-pol .cap { --cor: var(--pol); }
.tk.guia .cap { background: linear-gradient(#FFFFFF, #E2EBE7); }
.relevo { position: absolute; bottom: 22%; width: 26%; height: min(.28cqw, 3px); border-radius: 3px; background: #7E979C; }
.tk[data-code="EnterBaixo"] .cap { background: linear-gradient(#F4F7F5, #E6ECE9); }

.tk.baixa .cap { transform: translateY(min(.3cqw, 3px)); box-shadow: inset 0 calc(min(.42cqw, 4px) * -1) 0 var(--cor, #B8C4C0), 0 0 0 rgba(0,0,0,.45); background: #DDE6E2; }
.tk.prox .cap { background: var(--manga); --cor: var(--manga-escura); animation: pulso 1.2s ease-in-out infinite; }
.tk.prox .cap b, .tk.prox .cap small { color: var(--petroleo); }
.tk.prox-apoio .cap { background: #FFE3A0; --cor: var(--manga-escura); }
@keyframes pulso { 0%, 100% { box-shadow: inset 0 calc(min(.42cqw, 4px) * -1) 0 var(--cor), 0 min(.3cqw, 3px) 0 rgba(0,0,0,.45), 0 0 0 0 rgba(255,184,28,.55); } 50% { box-shadow: inset 0 calc(min(.42cqw, 4px) * -1) 0 var(--cor), 0 min(.3cqw, 3px) 0 rgba(0,0,0,.45), 0 0 0 min(.7cqw, 7px) rgba(255,184,28,0); } }

.conta { display: none; position: absolute; top: -18%; right: -10%; min-width: min(2.1cqw, 20px); height: min(2.1cqw, 20px); padding: 0 4px; border-radius: 99px; background: var(--erro-forte); color: #fff; font-style: normal; font-size: min(1.25cqw, 12px); font-weight: 700; align-items: center; justify-content: center; z-index: 2; }
.tk.calor1 .cap { background: #FFE1E2; } .tk.calor2 .cap { background: #FFB9BC; } .tk.calor3 .cap { background: #FF8D92; }
.tk.calor1 .conta, .tk.calor2 .conta, .tk.calor3 .conta { display: flex; }

/* ---------- Mãos ---------- */
.maos { display: flex; justify-content: center; gap: clamp(20px, 9cqw, 110px); margin-top: 18px; }
.mao { width: clamp(96px, 15cqw, 150px); height: auto; overflow: visible; }
.palma { fill: var(--petroleo-2); }
.dedo { fill: var(--petroleo-3); transition: fill .1s ease; }
.dedo.apoio { fill: #FFE3A0; }
.dedo.ativo { fill: var(--manga); }
.palco.fim .maos { display: none; }
.aviso-toque { display: none; margin-top: 16px; font-size: 15px; color: #BFD3D6; text-align: center; }
@media (hover: none), (pointer: coarse) { .aviso-toque { display: block; } }

/* ---------- Resultado ---------- */
.resultado { animation: surge .45s ease both; }
@keyframes surge { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.resultado-titulo { font-size: 20px; font-weight: 500; color: #9DB8BD; outline: none; }
.resultado-nums { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(24px, 6vw, 80px); margin-top: 10px; }
.res-principal { display: flex; flex-direction: column; }
.res-ppm { font-size: clamp(88px, 13vw, 168px); font-weight: 800; line-height: .86; letter-spacing: -0.06em; color: var(--manga); font-variant-numeric: tabular-nums; }
.res-rot { font-size: 22px; font-weight: 600; margin-top: 12px; }
.res-faixa { font-size: 15px; color: #9DB8BD; margin-top: 4px; }
.res-lista { display: grid; gap: 14px; min-width: min(100%, 300px); padding-bottom: 6px; }
.res-lista div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-bottom: 1px solid var(--petroleo-3); padding-bottom: 12px; }
.res-lista dt { color: #BFD3D6; font-size: 17px; }
.res-lista dd { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.res-dicas { margin-top: 28px; display: grid; gap: 10px; max-width: 70ch; }
.res-dicas li { padding-left: 18px; border-left: 3px solid var(--manga); font-size: 18px; color: #E8F0F1; }
.res-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.res-legenda { margin-top: 30px; font-size: 15px; color: #9DB8BD; }

/* ---------- Blocos ---------- */
.bloco { max-width: var(--largura); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 24px 0; }
.bloco h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; max-width: 20ch; text-wrap: balance; }
.bloco-intro { margin-top: 16px; color: var(--texto-2); max-width: 56ch; }
.bloco h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }

.passos { counter-reset: p; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 44px; }
.passos li { counter-increment: p; border-top: 2px solid var(--petroleo); padding-top: 18px; }
.passos li::before { content: counter(p); display: block; font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin-bottom: 18px; }
.passos p { margin-top: 8px; color: var(--texto-2); }

.trilha { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px clamp(24px, 4vw, 56px); margin-top: 48px; }
.trilha li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
.trilha-tecla {
  grid-row: span 2; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 13px;
  background: var(--tecla); font-size: 26px; font-weight: 700; padding-bottom: 5px;
  box-shadow: inset 0 -5px 0 var(--linha), 0 3px 0 rgba(15,43,51,.16), 0 0 0 1px var(--linha);
}
.trilha h3 { padding-top: 4px; }
.trilha p { grid-column: 2; margin-top: 6px; color: var(--texto-2); font-size: 17px; }

.bloco-tutor { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.tutor-texto p { margin-top: 18px; color: var(--texto-2); max-width: 46ch; }
.tutor-demo { background: var(--papel); border-radius: 22px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 0 0 1px var(--linha); }
.tutor-aula { font-size: 15px; color: var(--texto-2); font-weight: 500; }
.tutor-demo blockquote { margin-top: 12px; font-size: clamp(20px, 2vw, 25px); line-height: 1.38; letter-spacing: -0.012em; font-weight: 500; }
.tutor-controle { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.onda { display: inline-flex; align-items: center; gap: 4px; height: 30px; }
.onda i { width: 4px; height: 6px; border-radius: 3px; background: var(--petroleo-3); }
.onda.falando i { animation: onda .8s ease-in-out infinite; background: var(--manga-escura); }
.onda.falando i:nth-child(2) { animation-delay: .1s; } .onda.falando i:nth-child(3) { animation-delay: .25s; }
.onda.falando i:nth-child(4) { animation-delay: .05s; } .onda.falando i:nth-child(5) { animation-delay: .3s; }
.onda.falando i:nth-child(6) { animation-delay: .15s; } .onda.falando i:nth-child(7) { animation-delay: .22s; }
@keyframes onda { 0%, 100% { height: 6px; } 50% { height: 28px; } }
.tutor-nota { margin-top: 16px; font-size: 14px; color: var(--texto-2); }

.oferta-caixa { background: var(--petroleo); color: #fff; border-radius: 28px; padding: clamp(26px, 4.5vw, 60px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.oferta-itens { margin-top: 26px; display: grid; gap: 12px; }
.oferta-itens li { padding-left: 30px; position: relative; color: #E8F0F1; }
.oferta-itens li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 15px; height: 8px; border-left: 3px solid var(--manga); border-bottom: 3px solid var(--manga); transform: rotate(-45deg); }
.oferta-preco { background: var(--petroleo-2); border-radius: 20px; padding: clamp(22px, 3vw, 36px); }
.preco { font-size: clamp(76px, 9vw, 116px); font-weight: 800; line-height: .9; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.preco-moeda { font-size: .3em; letter-spacing: 0; vertical-align: top; margin-right: 8px; position: relative; top: .35em; font-weight: 600; color: #BFD3D6; }
.preco-cent { font-size: .42em; letter-spacing: -0.02em; vertical-align: top; position: relative; top: .22em; }
.preco-cond { margin-top: 16px; color: #E8F0F1; }
.oferta-preco .btn { margin-top: 24px; }
.preco-nota { margin-top: 14px; font-size: 14px; color: #9DB8BD; text-align: center; }

.faq details { max-width: 780px; }
.faq h2 { margin-bottom: 26px; }
.faq details { border-top: 1px solid var(--linha); }
.faq details:last-child { border-bottom: 1px solid var(--linha); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-size: 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-54%); font-size: 28px; font-weight: 400; color: var(--texto-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--texto-2); max-width: 60ch; }

.rodape { max-width: var(--largura); margin: clamp(72px, 9vw, 120px) auto 0; padding: 28px 24px 72px; border-top: 1px solid var(--linha); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; color: var(--texto-2); font-size: 16px; }
.rodape .marca-nome { color: var(--texto); font-size: 22px; }

.previa { position: fixed; right: 14px; bottom: 14px; background: var(--petroleo); color: #BFD3D6; font-size: 13px; padding: 6px 12px; border-radius: 99px; z-index: 20; box-shadow: 0 0 0 1px var(--petroleo-3); }
.aviso { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; background: var(--petroleo); color: #fff; padding: 14px 20px; border-radius: 12px; font-size: 16px; max-width: min(90vw, 460px); text-align: center; transition: opacity .2s ease, transform .2s ease; z-index: 30; box-shadow: 0 10px 30px rgba(15,43,51,.3); }
.aviso.visivel { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Telas menores ---------- */
@media (max-width: 900px) {
  .menu { display: none; }
  .topo { justify-content: space-between; }
  .passos, .trilha { grid-template-columns: 1fr; }
  .trilha { gap: 28px; }
  .bloco-tutor, .oferta-caixa { grid-template-columns: 1fr; }
  .placar-acoes { margin-left: 0; width: 100%; }
  .placar-rot { font-size: 13px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .abertura { padding-top: 24px; }
  .placar { gap: 14px 22px; }
  .tk.larga .cap b { font-size: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
