/* Ferramentas do FelliFit: cores da marca (azul e petróleo). Cabeçalho e rodapé vêm de casca.css. */
:root { --fe-tinta: #172C3C; --fe-suave: #586A76; --fe-linha: #DCE5E9; --fe-painel: #F2F6F8; --fe-dest: #126A73; --fe-claro: #E3F1F2; --fe-esforco: #E8622C; --fe-descanso: #1F9D55; --fe-letra: Manrope, Arial, sans-serif; }
body { margin: 0; background: #fff; color: var(--fe-tinta); font-family: var(--fe-letra); }
.fe-pagina { max-width: 1100px; margin: 0 auto; padding: 0 24px 56px; box-sizing: border-box; }
.fe-pagina *, .fe-pagina *::before { box-sizing: border-box; }
.fe-pagina h1, .fe-pagina h2 { color: var(--fe-tinta); letter-spacing: -.02em; margin: 0; }
.fe-trilha { display: flex; gap: 8px; padding-top: 18px; font-size: 13px; font-weight: 600; color: var(--fe-suave); }
.fe-trilha a { color: var(--fe-dest); text-decoration: none; }
.fe-icone { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fe-cabeca { text-align: center; padding: 22px 0 22px; }
.fe-cabeca .fe-icone { width: 44px; height: 44px; color: var(--fe-dest); }
.fe-cabeca h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1.1; margin-top: 6px; }
.fe-cabeca p { max-width: 640px; margin: 10px auto 0; font-size: 17px; line-height: 1.55; color: var(--fe-suave); }
.fe-cabeca-inicio { padding: 40px 0 18px; text-align: left; }
.fe-cabeca-inicio p { margin-left: 0; }

/* página inicial e cartões */
.fe-secao { margin-top: 30px; }
.fe-secao h2, .fe-outras h2 { font-size: 22px; font-weight: 800; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 2px solid var(--fe-tinta); }
.fe-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.fe-cartao { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--fe-linha); border-radius: 14px; color: var(--fe-tinta); text-decoration: none; transition: border-color .15s, transform .15s; }
.fe-cartao:hover { border-color: var(--fe-dest); transform: translateY(-2px); }
.fe-cartao .fe-icone { color: var(--fe-dest); margin-bottom: 4px; }
.fe-grupo { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fe-dest); }
.fe-cartao strong { font-size: 18px; line-height: 1.25; }
.fe-cartao span:last-child { font-size: 14px; line-height: 1.5; color: var(--fe-suave); }
.fe-outras { margin-top: 44px; }

/* área da ferramenta */
.fe-ferramenta { max-width: 760px; margin: 0 auto; padding: 26px; border: 1px solid var(--fe-linha); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(23, 44, 60, .06); }
.fe-ajuste, .fe-campos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-bottom: 18px; }
.fe-ajuste label, .fe-campos label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--fe-suave); }
.fe-ajuste input, .fe-ajuste select, .fe-entrada { height: 44px; border: 1px solid #b9c8cf; border-radius: 10px; background: #fff; font: 700 17px var(--fe-letra); color: var(--fe-tinta); }
.fe-ajuste input { width: 110px; padding: 0 10px; text-align: center; }
.fe-ajuste select { padding: 0 10px; min-width: 150px; }
.fe-entrada { display: flex; align-items: center; padding: 0 12px; gap: 6px; }
.fe-entrada input { width: 90px; border: 0; outline: 0; font: inherit; color: inherit; background: transparent; }
.fe-entrada em { font-style: normal; font-size: 14px; color: var(--fe-suave); }
.fe-entrada:focus-within, .fe-ajuste input:focus, .fe-ajuste select:focus { outline: 3px solid var(--fe-claro); border-color: var(--fe-dest); }
.fe-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 10px; }
.fe-botoes button, .fe-form > button, .fe-predefinidos button, .fe-tela, .fe-abas button { min-height: 48px; padding: 0 22px; border: 1px solid #b9c8cf; border-radius: 12px; background: #fff; font: 800 16px var(--fe-letra); color: var(--fe-tinta); cursor: pointer; }
.fe-botoes .fe-principal, .fe-form .fe-principal { min-width: 180px; background: var(--fe-dest); border-color: var(--fe-dest); color: #fff; }
.fe-botoes button:active { transform: scale(.98); }
.fe-opcoes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; font-size: 14px; color: var(--fe-suave); }
.fe-chave { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.fe-chave input { width: 18px; height: 18px; accent-color: var(--fe-dest); }
.fe-tela { min-height: 36px; padding: 0 14px; font-size: 14px; }
.fe-abas { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.fe-abas button[aria-selected="true"] { background: var(--fe-tinta); color: #fff; border-color: var(--fe-tinta); }
.fe-predefinidos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.fe-predefinidos button { min-height: 40px; padding: 0 14px; font-size: 14px; }
.fe-predefinidos button.on { border-color: var(--fe-dest); background: var(--fe-claro); }

.fe-relogio { text-align: center; border-radius: 16px; padding: 4px 0; transition: background .3s; }
.fe-visor { font-size: clamp(64px, 16vw, 140px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 6px 0; }
.fe-visor small { font-size: .4em; color: var(--fe-suave); }
.fe-fase { min-height: 30px; font-size: 22px; font-weight: 800; color: var(--fe-suave); }
.fe-rodada { min-height: 22px; font-size: 16px; font-weight: 700; color: var(--fe-suave); }
.fe-relogio[data-fase-atual="esforco"] { background: #FDEDE5; }
.fe-relogio[data-fase-atual="esforco"] .fe-fase { color: var(--fe-esforco); }
.fe-relogio[data-fase-atual="descanso"] { background: #E6F5EC; }
.fe-relogio[data-fase-atual="descanso"] .fe-fase { color: var(--fe-descanso); }
.fe-visor-numero { font-size: clamp(90px, 22vw, 180px); }
.fe-palavra { font-size: clamp(28px, 6vw, 44px); font-weight: 800; color: var(--fe-dest); min-height: 1.2em; }
.fe-escrita { font-size: 26px; color: var(--fe-suave); min-height: 1.3em; }
.fe-voltas { list-style: none; max-width: 420px; margin: 14px auto 0; padding: 0; font-variant-numeric: tabular-nums; }
.fe-voltas li { display: flex; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid var(--fe-linha); font-size: 15px; }
.fe-voltas small { font-size: .8em; }
.fe-nota { font-size: 14px; line-height: 1.5; color: var(--fe-suave); }
.fe-relogio:fullscreen { display: flex; flex-direction: column; justify-content: center; background: #fff; padding: 24px; }
.fe-relogio:fullscreen .fe-visor { font-size: 24vw; }

/* respiração e meditação */
.fe-respiracao { text-align: center; }
.fe-bola-area { position: relative; width: min(320px, 78vw); aspect-ratio: 1; margin: 6px auto 8px; display: grid; place-items: center; }
.fe-bola { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8fd3d8, #126A73 70%); transform: scale(.6); transition: transform 1s ease-in-out; box-shadow: 0 20px 50px rgba(18, 106, 115, .3); }
.fe-bola-calma .fe-bola { background: radial-gradient(circle at 35% 30%, #c9c6f0, #565ca1 70%); box-shadow: 0 20px 50px rgba(86, 92, 161, .3); transition: transform .6s linear; }
.fe-bola-texto { position: relative; display: flex; flex-direction: column; align-items: center; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.fe-bola-texto b { font-size: 28px; font-weight: 800; }
.fe-bola-texto span { font-size: 40px; font-weight: 800; min-height: 1.1em; font-variant-numeric: tabular-nums; }
.fe-bola-calma .fe-bola-texto b { font-size: 44px; font-variant-numeric: tabular-nums; }
.fe-bola-calma .fe-bola-texto span { font-size: 18px; }

/* IMC */
.fe-form { text-align: center; }
.fe-resultado { margin-top: 22px; padding: 20px; border-radius: 14px; background: var(--fe-painel); text-align: left; font-size: 16px; line-height: 1.55; }
.fe-resultado p { margin: 0 0 10px; }
.fe-imc-topo { display: flex; align-items: center; gap: 18px; }
.fe-grande { font-size: 56px !important; font-weight: 800; line-height: 1; margin: 0 !important; }
.fe-escala { position: relative; display: flex; height: 12px; border-radius: 6px; overflow: visible; margin: 14px 0 18px; }
.fe-escala span:first-child { border-radius: 6px 0 0 6px; }
.fe-escala span:nth-last-child(2) { border-radius: 0 6px 6px 0; }
.fe-escala i { position: absolute; top: -6px; width: 4px; height: 24px; margin-left: -2px; border-radius: 2px; background: var(--fe-tinta); }
.fe-erro { color: #b3261e; font-weight: 700; }

/* texto */
.fe-texto { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.7; }
.fe-texto h2 { font-size: 24px; font-weight: 800; margin: 1.6em 0 .5em; }
.fe-texto p, .fe-texto ul { margin: 0 0 1em; }
.fe-texto li { margin-bottom: .4em; }
.fe-texto a { color: var(--fe-dest); }
.fe-texto table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 1em; }
.fe-texto th, .fe-texto td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--fe-linha); }
.fe-texto th { background: var(--fe-painel); }
.fe-aviso { font-size: 14px; color: var(--fe-suave); margin-top: 24px; }
.fe-pagina .ff-anuncio { margin: 40px auto; }

@media (max-width: 640px) {
  .fe-pagina { padding: 0 16px 40px; }
  .fe-ferramenta { padding: 18px 12px; border-radius: 16px; }
  .fe-ajuste input { width: 92px; }
  .fe-ajuste select { min-width: 0; }
  .fe-botoes button { flex: 1 1 40%; }
  .fe-imc-topo { gap: 12px; }
  .fe-grande { font-size: 44px !important; }
}
