/* FitEvolution AI — site de apresentação.
   Base clara ("giz"), faixas escuras na cor do app e o verde do app só onde há fundo escuro. */

:root {
  --chalk: #f1f4f2;
  --paper: #ffffff;
  --ink: #0e1a24;
  --ink-2: #4a5b68;
  --line: #d5ddd9;
  --green: #14b866;
  --green-deep: #0a7a43;
  --night: #0b111b;
  --night-2: #142131;
  --night-line: #293c4c;
  --neon: #27ed86;
  --cyan: #2ed1db;
  --on-night: #f5f8fb;
  --on-night-2: #9fb2c3;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: 24px;
  --radius-s: 8px;
  --radius-l: 20px;
}

* {
  box-sizing: border-box;
}

[id] {
  scroll-margin-top: 84px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green-deep);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.lead {
  font-size: 1.25rem;
  color: var(--ink-2);
  max-width: 34em;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--paper);
  padding: 8px 12px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-go {
  background: var(--neon);
  color: var(--night);
}

.btn-go:hover {
  background: #5cf5a5;
}

.btn-line {
  border-color: currentColor;
  color: inherit;
}

.btn-line:hover {
  background: rgb(127 127 127 / 0.12);
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}

.btn-ink:hover {
  background: #1f3142;
}

/* Cabeçalho */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--night);
  color: var(--on-night);
  border-bottom: 1px solid var(--night-line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand small {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--night);
  background: var(--cyan);
  border-radius: 4px;
  padding: 1px 6px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: var(--on-night-2);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-s);
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--on-night);
}

.nav a[aria-current='page'] {
  box-shadow: inset 0 -2px 0 var(--neon);
  border-radius: 0;
}

.top .btn {
  min-height: 40px;
  padding: 0 16px;
}

.menu-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--night-line);
  color: var(--on-night);
  border-radius: var(--radius-s);
  width: 44px;
  height: 44px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    flex-direction: column;
    background: var(--night);
    border-bottom: 1px solid var(--night-line);
    padding: 8px var(--gutter) 16px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    font-size: 1.125rem;
  }

  .nav a[aria-current='page'] {
    box-shadow: none;
    color: var(--neon);
  }

  .top .btn-go {
    display: none;
  }

  .nav .btn-go {
    display: inline-flex;
    margin-top: 8px;
    padding: 0 22px;
    color: var(--night);
  }
}

@media (min-width: 861px) {
  .nav .btn-go {
    display: none;
  }
}

/* Faixa escura (hero e blocos de destaque) */
.night {
  background: var(--night);
  color: var(--on-night);
}

.night .lead,
.night p {
  color: var(--on-night-2);
}

.night a:not(.btn) {
  color: var(--neon);
}

.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  max-width: 11ch;
  text-wrap: balance;
}

.hero .lead {
  color: var(--on-night-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.9375rem;
}

@media (max-width: 860px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* Telefone com o treino ao vivo */
.phone {
  justify-self: center;
  width: min(340px, 100%);
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: 36px;
  padding: 22px 18px 18px;
  box-shadow:
    0 40px 80px -30px rgb(39 237 134 / 0.25),
    0 0 0 8px #070b12;
}

.phone-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.phone-head strong {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
}

.phone-head span {
  color: var(--on-night-2);
  font-size: 0.875rem;
}

.ex {
  background: var(--night);
  border: 1px solid var(--night-line);
  border-radius: 14px;
  padding: 14px;
}

.ex-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.ex-last {
  font-size: 0.8125rem;
  color: var(--on-night-2);
  margin-bottom: 10px;
}

.sets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.sets li {
  display: grid;
  grid-template-columns: 28px 1fr 1fr 36px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--night-2);
  font-variant-numeric: tabular-nums;
  transition: background 0.3s;
}

.sets li span:first-child {
  color: var(--on-night-2);
  font-size: 0.875rem;
}

.sets b {
  font-weight: 600;
}

.sets i {
  font-style: normal;
  color: var(--on-night-2);
  font-size: 0.8125rem;
}

.check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid var(--night-line);
  display: grid;
  place-items: center;
  justify-self: end;
  transition:
    background 0.25s,
    border-color 0.25s;
}

.check svg {
  width: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}

.sets li.done {
  background: rgb(39 237 134 / 0.1);
}

.sets li.done .check {
  background: var(--neon);
  border-color: var(--neon);
}

.sets li.done .check svg {
  opacity: 1;
}

.rest {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--night);
  border: 1px solid var(--night-line);
  border-radius: 14px;
  padding: 10px 14px;
}

.rest-bar {
  flex: 1;
  height: 6px;
  background: var(--night-line);
  border-radius: 3px;
  overflow: hidden;
}

.rest-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--cyan);
  transform-origin: left;
}

.rest-time {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 3.2ch;
  text-align: right;
}

.rest small {
  color: var(--on-night-2);
  font-size: 0.8125rem;
}

.record {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 10px 14px;
  background: rgb(46 209 219 / 0.12);
  color: var(--on-night);
  font-size: 0.9375rem;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s,
    transform 0.4s;
}

.record.show {
  opacity: 1;
  transform: none;
}

/* Seções */
.section {
  padding: 96px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-head {
  max-width: 40em;
  margin-bottom: 48px;
}

@media (max-width: 860px) {
  .section {
    padding: 64px 0;
  }
}

/* Recursos: lista em duas colunas com linhas, sem cartões */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.features h3 {
  margin-bottom: 4px;
}

.features p {
  color: var(--ink-2);
  margin: 0;
}

.ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--neon);
  display: grid;
  place-items: center;
}

.ico svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Passos (sequência real) */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  border-top: 4px solid var(--ink);
  padding-top: 16px;
}

.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  display: block;
  color: var(--green);
  margin-bottom: 8px;
}

.steps p {
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Bloco dividido texto + lista */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticks li {
  position: relative;
  padding: 14px 0 14px 36px;
  border-top: 1px solid var(--night-line);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 21px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--neon);
  border-bottom: 3px solid var(--neon);
  transform: rotate(-45deg);
}

.ticks strong {
  color: var(--on-night);
  display: block;
}

.ticks span {
  color: var(--on-night-2);
}

.ticks-light li {
  border-top-color: var(--line);
}

.ticks-light li::before {
  border-color: var(--green-deep);
}

.ticks-light strong {
  color: var(--ink);
}

.ticks-light span {
  color: var(--ink-2);
}

/* Instalar */
.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.install-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
}

.install-col ol {
  margin: 0;
  padding-left: 1.25em;
}

.install-col li {
  margin-bottom: 8px;
}

.install-col .note {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

@media (max-width: 760px) {
  .install {
    grid-template-columns: 1fr;
  }
}

/* Preços */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.plan-dark {
  background: var(--night);
  color: var(--on-night);
  border-color: var(--night);
}

.plan-dark p,
.plan-dark li {
  color: var(--on-night-2);
}

.plan h3 {
  margin-bottom: 0;
}

.price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.1;
  margin: 12px 0 4px;
}

.price small {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
}

.plan ul {
  padding-left: 1.1em;
  margin: 4px 0 16px;
}

.plan ul:last-of-type {
  flex: 1;
  margin-bottom: 24px;
}

.plan h4 {
  font-size: 0.9375rem;
  margin: 8px 0 0;
}

.plan {
  position: relative;
}

.plan .tag {
  position: absolute;
  top: 34px;
  right: 28px;
  margin: 0;
}

.plan-dark h4 {
  color: var(--on-night);
}

.plans-note {
  margin: 24px 0 0;
  color: var(--ink-2);
}

.plan li {
  margin-bottom: 6px;
}

.tag {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 8px;
  background: var(--cyan);
  color: var(--night);
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* Chamada final */
.cta {
  text-align: center;
}

.cta h2 {
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.cta .actions {
  justify-content: center;
}

/* Perguntas frequentes */
.faq-group {
  margin-bottom: 48px;
}

.faq-group h2 {
  font-size: 2rem;
}

details {
  border-top: 1px solid var(--line);
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  font-size: 1.125rem;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 26px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: rotate(-135deg);
  top: 30px;
}

details > div {
  padding: 0 0 20px;
  color: var(--ink-2);
  max-width: 44em;
}

details > div p:last-child {
  margin-bottom: 0;
}

/* Ajuda */
.help-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  font-size: 0.9375rem;
}

.toc p {
  font-weight: 600;
  margin-bottom: 8px;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  color: var(--ink-2);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
}

.guide {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 92px;
  max-width: 44em;
}

.guide h2 {
  font-size: 2.25rem;
}

.guide ol,
.guide ul {
  padding-left: 1.25em;
}

.guide li {
  margin-bottom: 8px;
}

.tip {
  background: var(--paper);
  border-left: 4px solid var(--green);
  padding: 14px 18px;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .help-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
  }
}

/* Cabeçalho de página interna */
.page-head {
  padding: 64px 0 56px;
}

.page-head h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  max-width: 14ch;
}

/* Rodapé */
.foot {
  background: var(--night);
  color: var(--on-night-2);
  padding: 56px 0 32px;
  font-size: 0.9375rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.foot h4 {
  color: var(--on-night);
  font-family: var(--body);
  font-size: 1rem;
  margin: 0 0 12px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot li {
  margin-bottom: 8px;
}

.foot a {
  color: var(--on-night-2);
  text-decoration: none;
}

.foot a:hover {
  color: var(--on-night);
  text-decoration: underline;
}

.foot .brand {
  color: var(--on-night);
  margin-bottom: 12px;
}

.foot-base {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--night-line);
}

@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
