/* ======================================================================
   ACABAMENTO NO ESTILO DOS APPS DA APPLE (Fitness, Saúde)
   Carregado por último, só aparência: nenhuma regra muda o que aparece ou some.
   - Fonte do sistema (SF no iPhone); fora da Apple, Inter, a mais próxima.
   - Etiquetas com só a primeira letra maiúscula, como a Apple escreve, em vez de MAIÚSCULAS espaçadas.
   - Números na fonte arredondada da Apple, a dos anéis do Fitness.
   - Barra de abas e topo em vidro translúcido; cartões com cantos contínuos e sombra mais leve.
   A paleta continua a da Haltera: preto quente e dourado. Tirar este arquivo volta ao visual anterior.
   ====================================================================== */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-titulo: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-num: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
}
body { font-family: var(--font); -webkit-font-smoothing: antialiased; }

/* ---------------------------------------------------------- etiquetas em caixa de frase */
.kicker, .rest small, .dica b, .dica-mini b, .tecnica > b, .pos-vista figcaption b, .fala b, .hero .hero__estado, .serie-rot,
.player__meta small, .checkex__k, .lex-bloco, .perfil-nota b, .mural-marco b, .evo-med span, .resumo-topo__m small,
.guia-ex__faixas small, .lim__eu small, .lim__will small, .mob-card__tag, .mob-p__guia h3, .pos-etapas li, .shot--par .par__leg {
  text-transform: none;
  letter-spacing: -0.005em;
}
.kicker::first-letter, .hero .hero__estado::first-letter, .serie-rot::first-letter, .checkex__k::first-letter,
.resumo-topo__m small::first-letter, .player__meta small::first-letter, .rest small::first-letter, .mob-card__tag::first-letter { text-transform: uppercase; }
.kicker, .hero .hero__estado, .checkex__k { font-size: 13px; font-weight: 600; }
.serie-rot { font-size: 14px; font-weight: 600; }
.resumo-topo__m small, .player__meta small, .evo-med span { font-size: 12px; font-weight: 500; }

/* ---------------------------------------------------------- números arredondados */
.resumo-topo__m b, .anel-sem, .evo-med b, .rest b, .rest strong, .hero__num, .player__meta b, .player__meta strong {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------- títulos grandes, como no iOS */
.page-title, .hello, .home-head .hello { letter-spacing: -0.03em; }
.card h2, .hero__titulo { font-weight: 700; letter-spacing: -0.025em; }

/* ---------------------------------------------------------- vidro: barra de abas e topo */
.tabs {
  background: rgba(24, 20, 14, 0.58);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  border: 0.5px solid rgba(255, 236, 190, 0.14);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 245, 220, 0.08);
}
.tabs button { font-size: 10.5px; font-weight: 500; }
.tabs button[aria-current="page"] { background: rgba(227, 166, 20, 0.14); }

/* ---------------------------------------------------------- cartões: cantos contínuos, sombra mais leve */
.card { border-width: 0.5px; box-shadow: inset 0 0.5px 0 rgba(255, 236, 190, 0.07), 0 10px 28px rgba(0, 0, 0, 0.32); }
@supports (corner-shape: squircle) {
  .card, .btn, .tabs { corner-shape: squircle; }
}

/* ---------------------------------------------------------- botões em cápsula, com toque que afunda */
.btn { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.btn:active { transform: scale(0.97); }

/* ---------------------------------------------------------- tela de entrada: a frase da marca */
.entrada__titulo { font-family: var(--font-titulo); font-size: clamp(34px, 9.5vw, 44px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; max-width: 13ch; }
.entrada__titulo em {
  font-style: normal;
  background: linear-gradient(180deg, #f7d77e 0%, #e3a614 55%, #b9820a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.entrada__titulo span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.62em; font-weight: 600; letter-spacing: -0.02em; }
.entrada .mark { font-size: 17px; }
.entrada .mark::before { width: 24px; height: 24px; }

/* ---------------------------------------------------------- escolha marcada (Como você está?, avaliação, check-ins)
   Dentro dos cartões o fundo carvão vencia o dourado e o texto escuro sumia. A marcada fica dourada, com um visto. */
.choices button[aria-pressed="true"],
.card .choices button[aria-pressed="true"] {
  background: linear-gradient(180deg, #f4c44c, #e3a614);
  color: #1a1405;
  border-color: transparent;
  font-weight: 650;
  box-shadow: 0 6px 16px rgba(227, 166, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.choices button[aria-pressed="true"]::before {
  content: "";
  display: inline-block;
  width: 0.62em;
  height: 0.34em;
  margin-right: 0.45em;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.18em) rotate(-45deg);
}

/* ---------------------------------------------------------- Ajuda e privacidade: lista agrupada, como em Ajustes */
.ajuda-lista { list-style: none; margin: 4px 0 12px; padding: 0; border-radius: 14px; background: var(--s2); overflow: hidden; }
.ajuda-lista li + li { border-top: 0.5px solid var(--line); }
.ajuda-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.ajuda-item:active { background: var(--s3); }
.ajuda-item__ico { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(227, 166, 20, 0.16); color: var(--gold-hi); }
.ajuda-item__ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ajuda-item__txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ajuda-item__txt b { font-size: 16px; font-weight: 500; }
.ajuda-item__txt small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.ajuda-item__seta { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--faint); border-top: 2px solid var(--faint); transform: rotate(45deg); margin-right: 4px; }
.ajuda-item--ok .ajuda-item__ico { background: rgba(233, 200, 115, 0.18); color: var(--ok); }
.ajuda-nota { margin: -4px 4px 14px; color: var(--faint); font-size: 13px; line-height: 1.45; }
.ajuda-sair { display: block; width: 100%; min-height: 50px; border: 0; border-radius: 14px; background: var(--s2); color: #f2a498; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.ajuda-sair:active { background: var(--s3); }

/* ---------------------------------------------------------- carga ajustada no treino
   Mais peso que a ficha: dourado, com seta para cima. Menos: vermelho, com seta para baixo. */
.meta-carga.is-mais { border-color: var(--gold); background: radial-gradient(120% 120% at 50% 0%, rgba(227, 166, 20, 0.16), transparent 70%), var(--s1); }
.meta-carga.is-mais b, .carga-ajuste__ctl b.is-mais { color: var(--gold-hi); }
.meta-carga.is-menos { border-color: rgba(232, 113, 95, 0.75); background: radial-gradient(120% 120% at 50% 0%, rgba(232, 113, 95, 0.16), transparent 70%), var(--s1); }
.meta-carga.is-menos b, .carga-ajuste__ctl b.is-menos { color: #f2a498; }
.meta-carga.is-mais b::after, .carga-ajuste__ctl b.is-mais::after { content: " ↑"; font-size: 0.8em; }
.meta-carga.is-menos b::after, .carga-ajuste__ctl b.is-menos::after { content: " ↓"; font-size: 0.8em; }
.carga-ajuste__ctl b { transition: color 0.2s ease; }

/* ---------------------------------------------------------- botão de dúvidas
   No topo: discreto, mas legível (fundo dourado suave, ícone e nome). Era só um contorno fino e passava batido. */
.chat-fab--topo {
  position: relative;
  inset: auto; /* era um botão flutuante: sem isto herdava o bottom e subia para fora da tela */
  height: 34px;
  min-width: 34px;
  padding: 0 12px 0 10px;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(227, 166, 20, 0.14);
  color: var(--gold-hi);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
}
.top .chat-fab--topo span, .top .chat-fab--topo.chat-fab--compacto span { display: inline; }
.chat-fab--topo svg { width: 18px; height: 18px; }
.chat-fab--topo:active { transform: scale(0.95); }

/* Na sessão de treino: botão redondo na barra, entre o contador e o relógio. */
.session .player__bar { position: relative; z-index: 25; } /* o balão passa por cima da foto do exercício */
.player__duvida { position: relative; flex: none; }
.iconbtn--duvida { color: var(--gold-hi); background: rgba(227, 166, 20, 0.14); border-color: transparent; }

/* Balão das primeiras sessões: aponta para o botão, entra com mola e some sozinho. */
.dica-chat {
  position: absolute;
  z-index: 20;
  top: calc(100% + 12px);
  right: -6px;
  width: min(232px, 64vw);
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6cf62, #e3a614);
  color: #1a1405;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transform-origin: calc(100% - 22px) -8px;
  animation: dica-entra 0.5s var(--mola-solta) 0.6s both;
}
.dica-chat::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #f4c444;
  transform: rotate(45deg);
}
.dica-chat.is-saindo { animation: dica-sai 0.35s ease forwards; }
@keyframes dica-entra { from { opacity: 0; transform: scale(0.6); } }
@keyframes dica-sai { to { opacity: 0; transform: scale(0.9); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .dica-chat, .dica-chat.is-saindo { animation: none; } }

/* ---------- entrar sem senha: Google e código no e-mail ---------- */
/* Botão do Google no tema escuro oficial (fundo #131314, borda #8e918f), o "G" nas cores dele. */
.btn--google { gap: 12px; background: #131314; color: #e3e3e3; box-shadow: inset 0 0 0 1px #8e918f; }
.btn--google:hover { background: #1c1c1e; }
.btn--google svg { width: 20px; height: 20px; flex: none; }
.login-ou { display: flex; align-items: center; gap: 12px; margin: 2px 0; color: var(--muted); font-size: 14px; }
.login-ou::before, .login-ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.campo-codigo { font-size: 28px; letter-spacing: 0.5em; text-align: center; font-variant-numeric: tabular-nums; }
.campo-codigo::placeholder { color: var(--line-2); letter-spacing: 0.5em; }
.login-acoes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; }
