/* Academia Pet Viajante — identidade "Premium Caloroso"
   Navy #0B1437 · Laranja #F28322 · Âmbar #E8A23D · Creme #F5EFE4 · Névoa #C9D0DC */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0B1437;
  --laranja: #F28322;
  --ambar: #E8A23D;
  --creme: #F5EFE4;
  --nevoa: #C9D0DC;
  --branco: #FBFCFE;
  --verde: #1FA95C;
  --vermelho: #D64545;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', sans-serif; background: var(--creme); color: var(--navy); min-height: 100vh; }
h1, h2, h3, .serif { font-family: 'Fraunces', serif; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  background: var(--navy); color: var(--creme);
  padding: 14px 24px; padding-top: calc(14px + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.topbar .marca { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600; white-space: nowrap; }
.topbar .marca span { color: var(--laranja); }
.topbar > div:last-child { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topbar a { color: var(--nevoa); text-decoration: none; font-size: 14px; margin-left: 14px; padding: 4px 0; white-space: nowrap; }
.topbar a:hover { color: var(--laranja); }
@media (max-width: 600px) {
  .topbar { padding: 12px 14px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .topbar .marca { font-size: 16px; }
  .topbar a { font-size: 13px; margin-left: 10px; }
}

/* tabelas grandes deslizam no mobile em vez de estourar a tela */
.tabela-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -8px; padding: 0 8px; }
.tabela-scroll table { min-width: 560px; }

.container { max-width: 1080px; margin: 0 auto; padding: 32px 20px; }

.card {
  background: var(--branco); border-radius: 16px; padding: 26px;
  box-shadow: 0 2px 14px rgba(11, 20, 55, .07); margin-bottom: 22px;
}

.btn {
  display: inline-block; background: var(--laranja); color: #fff; border: none;
  padding: 13px 26px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; font-family: 'Inter', sans-serif;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(242, 131, 34, .35); }
.btn.secundario { background: var(--navy); }
.btn.fantasma { background: transparent; color: var(--navy); border: 2px solid var(--nevoa); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); }
.login-box { background: var(--branco); border-radius: 20px; padding: 44px; width: 420px; max-width: 92vw; }
.login-box h1 { font-size: 26px; margin-bottom: 6px; }
.login-box h1 span { color: var(--laranja); }
.login-box p { color: #5a637e; font-size: 14px; margin-bottom: 24px; }
.login-box input, .login-box select {
  width: 100%; padding: 13px; border: 2px solid var(--nevoa); border-radius: 10px;
  font-size: 15px; margin-bottom: 14px; font-family: 'Inter', sans-serif;
}
.rota { height: 3px; background: repeating-linear-gradient(90deg, var(--laranja) 0 8px, transparent 8px 16px); border: none; margin: 18px 0; opacity: .6; }

/* Dashboard */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.stat {
  flex: 1; min-width: 150px; background: var(--branco); border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(11, 20, 55, .06);
}
.stat .num { font-family: 'Fraunces', serif; font-size: 34px; font-weight: 700; }
.stat .rotulo { font-size: 12px; color: #5a637e; text-transform: uppercase; letter-spacing: .06em; }
.nivel-badge {
  display: inline-block; padding: 6px 16px; border-radius: 100px; font-weight: 700; font-size: 14px;
}
.nivel-Bronze { background: #e8d5c0; color: #7a5a33; }
.nivel-Prata { background: #e3e7ee; color: #566178; }
.nivel-Ouro { background: #f7e5b5; color: #8a6d1a; }
.nivel-Elite { background: var(--navy); color: var(--ambar); }

.modulo-card { border-left: 6px solid var(--laranja); }
.modulo-card h3 { font-size: 20px; margin-bottom: 6px; }
.modulo-card p { color: #4a536e; font-size: 14px; margin-bottom: 16px; line-height: 1.5; }

table.historico { width: 100%; border-collapse: collapse; font-size: 14px; }
table.historico th { text-align: left; padding: 10px 8px; color: #5a637e; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--creme); }
table.historico td { padding: 12px 8px; border-bottom: 1px solid var(--creme); }
table.historico tr:hover { background: var(--creme); cursor: pointer; }
.nota-pill { display: inline-block; min-width: 44px; text-align: center; padding: 4px 10px; border-radius: 100px; font-weight: 700; font-size: 13px; }
.nota-alta { background: #d9f2e4; color: #157a44; }
.nota-media { background: #fdeed8; color: #a86a12; }
.nota-baixa { background: #fadddd; color: #a32e2e; }
.check-ok { color: var(--verde); font-weight: 700; }
.check-erro { color: var(--vermelho); font-weight: 700; }

/* Relatório */
.nota-hero { text-align: center; padding: 30px 0 10px; }
.nota-hero .notona { font-family: 'Fraunces', serif; font-size: 84px; font-weight: 700; line-height: 1; }
.nota-hero .de100 { color: #8a92ab; font-size: 18px; }
.comp-barra { margin-bottom: 16px; }
.comp-barra .comp-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.comp-barra .trilha { height: 10px; background: var(--creme); border-radius: 100px; overflow: hidden; }
.comp-barra .preenchido { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--ambar), var(--laranja)); }
.comp-barra .comentario { font-size: 13px; color: #4a536e; margin-top: 5px; line-height: 1.45; }

.momento { border: 2px solid var(--creme); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.momento h4 { font-size: 16px; margin-bottom: 8px; }
.momento .oque { font-size: 14px; color: #4a536e; line-height: 1.5; margin-bottom: 10px; }
.momento .top-msg {
  background: #e7f8ee; border-left: 4px solid var(--verde); padding: 12px 14px;
  border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.5;
}
.momento .top-msg .tag { font-size: 11px; font-weight: 700; color: #157a44; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 4px; }

ul.lista-simples { list-style: none; }
ul.lista-simples li { padding: 8px 0 8px 26px; position: relative; font-size: 14px; line-height: 1.5; border-bottom: 1px solid var(--creme); }
ul.lista-simples.erros li::before { content: '✕'; position: absolute; left: 2px; color: var(--vermelho); font-weight: 700; }
ul.lista-simples.fortes li::before { content: '✓'; position: absolute; left: 2px; color: var(--verde); font-weight: 700; }
ul.lista-simples.melhorar li::before { content: '→'; position: absolute; left: 2px; color: var(--laranja); font-weight: 700; }

.metodo-pv { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.metodo-pv .chip { padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; }
.chip.sim { background: #d9f2e4; color: #157a44; }
.chip.nao { background: #fadddd; color: #a32e2e; }

.decisao-box { padding: 18px; border-radius: 12px; margin-bottom: 8px; }
.decisao-box.acertou { background: #e7f8ee; border: 2px solid #9adbb6; }
.decisao-box.errou { background: #fdecec; border: 2px solid #efb2b2; }

.gabarito-box { background: var(--navy); color: var(--creme); border-radius: 14px; padding: 20px; font-size: 14px; line-height: 1.6; }
.gabarito-box h3 { color: var(--ambar); margin-bottom: 8px; }

@media (max-width: 640px) {
  .container { padding: 18px 12px; }
  .nota-hero .notona { font-size: 60px; }
}
