/*
 * GymApp — site (landing page, privacy, terms, support).
 * The app's own look from the 1.3.0 redesign (src/styles/theme.ts): a
 * near-black ground, #17191C cards with a hairline border, Archivo for titles
 * and figures, Inter for text. Yellow is only ever the main action; red is
 * money still owed, green is money that came in. Everything else is neutral.
 * assinatura.html is not styled here: it keeps the old style.css on purpose.
 */
:root {
  /* Only the app's tokens. */
  --fundo: #0e0f11; /* background */
  --superficie: #17191c; /* surface */
  --elevado: #202327; /* elevated */
  --borda: #2a2e33; /* border */
  --divisor: #23262a; /* divider */
  --pilula: #26292e; /* neutralPill */
  --marca: #eab308; /* primary */
  --marca-hover: #facc15; /* primaryHover */
  --sobre-marca: #111214; /* onPrimary */
  --texto: #f4f4f2; /* text */
  --forte: #d4d7db; /* textStrong */
  --apoio: #a1a6ad; /* textSecondary */
  --apagado: #8a9098; /* textMuted */
  --vermelho: #f87171; /* danger */
  --verde: #34d399; /* success */
  --whatsapp: #25d366;
  --vermelho-suave: rgba(248, 113, 113, 0.14);
  --verde-suave: rgba(52, 211, 153, 0.12);
  --marca-suave: rgba(234, 179, 8, 0.14);

  --r-p: 10px;
  --r-m: 14px;
  --r-g: 20px;

  --titulo: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --corpo: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --col: 1160px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--fundo);
  color: var(--apoio);
  font: 400 1.0625rem/1.6 var(--corpo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--marca);
}
a:hover {
  color: var(--marca-hover);
}
:focus-visible {
  outline: 3px solid var(--marca);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--texto);
  font-family: var(--titulo);
  font-weight: 800;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.miolo {
  width: min(var(--col), 100% - 32px);
  margin-inline: auto;
}
.pular {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 12px 16px;
  border-radius: var(--r-m);
  background: var(--marca);
  color: var(--sobre-marca);
  font-weight: 700;
  text-decoration: none;
}
.pular:focus {
  top: 12px;
}

/* --- Header and footer (shared with the documents) --- */
.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 15, 17, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divisor);
}
.topo .miolo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--texto);
  font: 800 20px var(--titulo);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.marca:hover {
  color: var(--texto);
}
.marca img {
  width: 34px;
  height: 34px;
}
.topo nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topo nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--forte);
  font: 600 15px var(--corpo);
  text-decoration: none;
  border-radius: var(--r-p);
}
.topo nav a:hover {
  color: var(--texto);
  background: var(--superficie);
}
.topo nav a.acao {
  margin-left: 8px;
  padding: 0 18px;
  background: var(--marca);
  color: var(--sobre-marca);
  font-weight: 700;
  border-radius: var(--r-m);
}
.topo nav a.acao:hover {
  background: var(--marca-hover);
  color: var(--sobre-marca);
}
.rodape {
  border-top: 1px solid var(--divisor);
  font-size: 14px;
}
.rodape .miolo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-block: 36px 48px;
}
.rodape .assinatura {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rodape nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  align-items: flex-start;
}
.rodape nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--forte);
  font-weight: 500;
}
.rodape nav a:hover {
  color: var(--texto);
}

/* --- Small pieces --- */
.lead {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--forte);
}
.secao {
  padding-block: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--divisor);
}
/* Text-heavy sections keep the page's left edge, with a readable measure. */
.estreito > * {
  max-width: 820px;
}
.titulo + .lead {
  margin-top: 14px;
}
.titulo {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.vermelho {
  color: var(--vermelho);
}
.verde {
  color: var(--verde);
}
.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--pilula);
  color: var(--forte);
}
.icone svg {
  width: 20px;
  height: 20px;
}


/* --- Store buttons. The one for the visitor's phone gets the yellow
   (inicio.js moves .cheia to Google Play on Android). --- */
.lojas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.loja {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 22px 8px 18px;
  border-radius: var(--r-m);
  border: 1px solid var(--borda);
  background: var(--elevado);
  color: var(--texto);
  text-decoration: none;
  line-height: 1.15;
}
.loja:hover {
  color: var(--texto);
  border-color: var(--apagado);
}
.loja svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: currentColor;
}
.loja span {
  display: flex;
  flex-direction: column;
  font: 700 17px var(--corpo);
}
.loja small {
  font: 500 12px var(--corpo);
  opacity: 0.8;
}
.loja.cheia {
  background: var(--marca);
  border-color: var(--marca);
  color: var(--sobre-marca);
}
.loja.cheia:hover {
  background: var(--marca-hover);
  border-color: var(--marca-hover);
  color: var(--sobre-marca);
}
.nota {
  font-size: 14px;
  color: var(--apoio);
}

/* --- Phone mockup (screens are 780 × 1688) --- */
.celular {
  position: relative;
  padding: 8px;
  border-radius: 44px;
  background: #050506;
  border: 1px solid var(--borda);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
}
.celular img {
  width: 100%;
  aspect-ratio: 780 / 1688;
  border-radius: 36px;
}


/* --- Scroll reveal: only when inicio.js runs and motion is allowed --- */
.anima .revela {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.anima .revela.visto {
  opacity: 1;
  transform: none;
}

/* --- Photos: people in black and white (baked into the webp), the app in
   colour. A photo used as a background sits under a dark wash so the text on
   it keeps its contrast. --- */
.abertura,
.fecho {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.fundo-foto {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.abertura::after,
.fecho::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 15, 17, 0.94) 0%, rgba(14, 15, 17, 0.72) 55%, rgba(14, 15, 17, 0.35) 100%),
    linear-gradient(0deg, var(--fundo) 0%, rgba(14, 15, 17, 0) 30%);
}

/* --- 1. Opening: the text and the app's home screen over the photo --- */
.abertura > .miolo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 88px);
}
.abertura .celular {
  width: clamp(220px, calc((100vh - 220px) * 0.46), 270px);
}
.abertura .texto {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.abertura h1 {
  max-width: 14ch;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.abertura .lead {
  max-width: 40ch;
}

/* --- 2. The people: four portraits, like a team page --- */
.pessoas,
.modalidades {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.pessoas img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-g);
  background: var(--superficie);
}
.pessoas h3 {
  margin-top: 16px;
  font-size: clamp(19px, 2vw, 22px);
  letter-spacing: -0.01em;
}
.pessoas p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
}

/* --- 3. A month's end, opened by a wide photo --- */
.faixa {
  margin: calc(-1 * clamp(64px, 8vw, 104px)) 0 clamp(48px, 6vw, 72px);
}
.faixa img {
  width: 100%;
  height: clamp(220px, 38vw, 520px);
  object-fit: cover;
  object-position: 50% 25%;
}

/* A month's end, day by day: date | text | screen, ruled like a ledger */
.aviso {
  margin-top: 10px;
  font-size: 14px;
  color: var(--apagado);
}
.palco {
  margin-top: 48px;
}
.mes {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dia {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-areas: 'data texto';
  gap: 24px clamp(24px, 4vw, 48px);
  align-items: start;
  padding-block: 48px;
  border-top: 1px solid var(--borda);
}
.dia .data {
  grid-area: data;
  display: flex;
  flex-direction: column;
  color: var(--apoio);
  font-size: 15px;
}
.dia .data b {
  color: var(--texto);
  font: 800 56px/1 var(--titulo);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.dia .texto {
  grid-area: texto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 52ch;
  padding-top: 6px;
}
.dia h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.dia .celular {
  grid-area: tela;
}
/* Wide screens: the days scroll past one phone that stays in place, and its
   screen changes with the day in the middle of the window (inicio.js). */
@media (min-width: 861px) {
  .palco {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(32px, 6vw, 96px);
  }
  .dia {
    min-height: min(78vh, 720px);
    align-content: center;
  }
  .dia .celular {
    display: none;
  }
  .fixo {
    position: sticky;
    /* Centred in the window below the header; the phone is about as tall
       as its width / 0.46, i.e. min(100vh - 220px, 600px). */
    top: calc(50vh + 34px - min(100vh - 220px, 600px) / 2);
    align-self: start;
    display: grid;
    width: clamp(220px, calc((100vh - 220px) * 0.46), 270px);
    margin-top: 48px;
  }
  .fixo img {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition:
      opacity 0.45s ease,
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .fixo img.ativa {
    opacity: 1;
    transform: none;
  }
  .rolando .dia {
    opacity: 0.35;
    transition: opacity 0.4s ease;
  }
  .rolando .dia.atual {
    opacity: 1;
  }
}
@media (max-width: 860px) {
  .fixo {
    display: none;
  }
}

/* The WhatsApp message, as it arrives on the student's phone. */
.conversa {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin: 12px 0 0;
  padding: 18px 16px 14px;
  border-radius: var(--r-m);
  background: #0b141a;
}
.balao {
  max-width: 92%;
  padding: 8px 12px 9px;
  border-radius: 10px 2px 10px 10px;
  background: #005c4b;
  color: #e9edef;
  font-size: 15px;
  line-height: 1.45;
}
.balao.pix {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 10px;
}
.balao.pix span {
  font-size: 12px;
  font-weight: 600;
  color: #b7d8cf;
}
.balao code {
  font: 13px/1.4 ui-monospace, 'SF Mono', Menlo, monospace;
  overflow-wrap: anywhere;
}
.conversa figcaption {
  align-self: flex-start;
  margin-top: 6px;
  color: #8696a0;
  font-size: 13px;
}

/* --- 4. Kinds of gym: square photos with a label on the corner --- */
.modalidades li {
  position: relative;
}
.modalidades img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-g);
  background: var(--superficie);
}
.modalidades span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 15, 17, 0.82);
  color: var(--texto);
  font: 700 15px var(--corpo);
}

/* --- 5. Free and paid: two plan cards, with no price on the site --- */
.centro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.planos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 48px auto 0;
}
.plano {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-g);
  border: 1px solid var(--borda);
  background: var(--superficie);
}
.plano.pago {
  background: var(--elevado);
  border-color: #3a3f45;
}
.plano h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}
.plano .valor {
  margin-top: 14px;
  color: var(--texto);
  font: 800 clamp(30px, 3.4vw, 40px) / 1.05 var(--titulo);
  letter-spacing: -0.03em;
}
.plano .para {
  margin-top: 10px;
  font-size: 15px;
}
.plano ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--borda);
  list-style: none;
  font-size: 16px;
  color: var(--forte);
}
.plano li {
  display: flex;
  gap: 10px;
}
.plano li svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--verde);
}
.plano .tudo {
  color: var(--texto);
  font-weight: 600;
}
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: auto;
  padding: 0 20px;
  border-radius: var(--r-m);
  border: 1px solid var(--borda);
  color: var(--texto);
  font: 700 16px var(--corpo);
  text-decoration: none;
}
.botao:hover {
  color: var(--texto);
  border-color: var(--apagado);
}
.botao.cheio {
  background: var(--marca);
  border-color: var(--marca);
  color: var(--sobre-marca);
}
.botao.cheio:hover {
  background: var(--marca-hover);
  border-color: var(--marca-hover);
  color: var(--sobre-marca);
}
.sem-fidelidade {
  margin-top: 24px;
  font-size: 15px;
  text-align: center;
}

/* --- 6. Questions --- */
.lista-perguntas {
  max-width: 760px;
  margin: 40px auto 0;
  border-top: 1px solid var(--borda);
}
.lista-perguntas details {
  border-bottom: 1px solid var(--borda);
}
.lista-perguntas summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  color: var(--texto);
  font: 600 clamp(17px, 1.6vw, 18px) / 1.35 var(--corpo);
  cursor: pointer;
  list-style: none;
}
.lista-perguntas summary::-webkit-details-marker {
  display: none;
}
.lista-perguntas summary::after {
  content: '+';
  flex: none;
  width: 24px;
  color: var(--apoio);
  font: 400 26px/1 var(--corpo);
  text-align: center;
}
.lista-perguntas details[open] summary::after {
  content: '−';
}
.lista-perguntas details p {
  padding: 0 40px 22px 0;
  font-size: 16px;
}

/* --- 7. Closing, over a photo --- */
.fecho .miolo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-block: clamp(24px, 6vw, 96px);
}
.fecho .titulo {
  max-width: 16ch;
}
.fecho .fundo-foto {
  object-position: 70% 30%;
}
.fecho .lead {
  max-width: 52ch;
}

/* --- Documents: privacy, terms, support --- */
.documento {
  max-width: 70ch;
  padding-block: 48px 88px;
}
.documento h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.documento h2 {
  margin-top: 40px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.documento p,
.documento ul {
  margin-top: 12px;
}
.documento li + li {
  margin-top: 8px;
}
.documento ul {
  padding-left: 1.2em;
}
.documento strong {
  color: var(--forte);
}
.documento .vigencia {
  margin-top: 12px;
  font-size: 14px;
  color: var(--apagado);
}
.documento .resumo {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--r-m);
  border: 1px solid var(--borda);
  background: var(--superficie);
  color: var(--texto);
}
.contatos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: 32px;
}
.contato {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: var(--r-g);
  border: 1px solid var(--borda);
  background: var(--superficie);
  color: var(--apoio);
  text-decoration: none;
  font-size: 15px;
}
.contato:hover {
  color: var(--apoio);
  border-color: var(--apagado);
}
.contato strong {
  color: var(--texto);
  font: 700 19px var(--titulo);
}
.contato .icone {
  margin-bottom: 8px;
}


@media (max-width: 960px) {
  .pessoas,
  .modalidades {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .abertura > .miolo {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Stacked, the text runs over the whole photo: darken it evenly. */
  .abertura::after,
  .fecho::after {
    background: linear-gradient(180deg, rgba(14, 15, 17, 0.7) 0%, rgba(14, 15, 17, 0.9) 60%, var(--fundo) 100%);
  }
  .abertura .celular {
    width: min(100%, 300px);
  }
  .dia {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'data' 'texto' 'tela';
  }
  .planos {
    grid-template-columns: minmax(0, 1fr);
  }
  .dia .data {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  .dia .data b {
    font-size: 40px;
  }
  .dia .celular {
    width: min(100%, 260px);
  }
}
@media (max-width: 640px) {
  .topo nav a:not(.acao) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .anima .revela {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fixo img,
  .rolando .dia {
    transition: none;
  }
}
