/* B3 GYM, pré-venda. Venda direta, mobile first e tema escuro.
   Fundos iguais aos do site da B3 na EVO: #212121, #282828 e #181818.
   Marca: verde #17653C, areia #E2CDAE, branco. Símbolo da B3 sempre verde com B3 branco.
   Nada desliza para o lado: planos e galeria ficam empilhados no celular.
   Camadas: conteúdo 0, barra de compra 30, WhatsApp 31, header 40, skip 50. */

:root {
  color-scheme: dark;
  --bg: #212121;
  --bg-2: #282828;
  --bg-3: #181818;
  --card: #2a2a2a;
  --text: #ffffff;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --green: #17653c;
  --green-deep: #0f4a2b;
  --sans: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: 20px;
  --max: 1280px;
  --header: 64px;
  --section: 72px;
  --buybar-h: 0px;
  --slide: 6s;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 300; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
::selection { background: var(--green); color: var(--text); }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.label { font: 700 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.i { width: 16px; height: 16px; flex: none; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 50; padding: 12px 16px; background: var(--text); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }

h2 { margin-top: 12px; font-size: clamp(38px, 10.5vw, 72px); line-height: 1; letter-spacing: -.04em; }
h2 span { font-weight: 800; }
.section-head { margin-bottom: 28px; }
.section-text { max-width: 42ch; margin-top: 14px; color: var(--muted); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; font: 700 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.985); }
.btn-green { background: var(--green); color: var(--text); }
.btn-light { background: var(--text); color: var(--bg); }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--gutter); border-bottom: 1px solid transparent; transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.header.is-solid { background: rgba(24, 24, 24, .9); border-color: var(--line); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font: 800 11px/1 var(--sans); letter-spacing: .26em; }
.nav { display: none; }
.header-link { display: inline-flex; align-items: center; gap: 6px; padding-block: 10px; font: 700 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.header-link .i { width: 13px; height: 13px; }

/* Hero com fotos em sequência */
.hero { position: relative; display: flex; align-items: flex-end; min-height: max(620px, 100svh); overflow: hidden; background: var(--bg-3); }
.hero-slides, .slide, .slide img { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.4s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.slide.is-active img { animation: drift calc(var(--slide) + 1.4s) linear both; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 18, .55) 0%, rgba(18, 18, 18, 0) 22%, rgba(18, 18, 18, .35) 42%, rgba(18, 18, 18, .92) 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--header) + 32px) var(--gutter) calc(80px + env(safe-area-inset-bottom)); }
.hero-inner > * { animation: rise 1.1s var(--ease) both; }
.slide-bars { display: flex; gap: 6px; margin-bottom: 22px; animation-delay: .1s; }
.slide-bars span { position: relative; width: 26px; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .28); }
.slide-bars span::after { content: ''; position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; }
.slide-bars span.is-done::after { transform: scaleX(1); }
.slide-bars span.is-active::after { animation: fill var(--slide) linear both; }
.hero-label { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .9); animation-delay: .2s; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); animation: pulse 2.4s ease-out infinite; }
.hero h1 { margin-top: 14px; font-size: clamp(48px, 15vw, 132px); font-weight: 800; line-height: .92; letter-spacing: -.045em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); animation-delay: .3s; }
.hero h1 span { display: block; }
.hero-text { margin-top: 16px; font-size: 16px; font-weight: 300; color: rgba(255, 255, 255, .88); animation-delay: .4s; }
.hero-offer { display: grid; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .24); animation-delay: .5s; }
.hero-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hero-price .label { color: rgba(255, 255, 255, .8); }
.hero-price strong { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.hero-offer .btn { width: 100%; }

/* Planos: sem caixas. Cada plano é separado só por linhas finas; o Premium tem um fundo verde suave */
.plans { background: var(--bg-2); }
.plan-grid { display: grid; border-top: 1px solid var(--line); }
.plan { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
/* Selo fora do fluxo: fica sobre a borda de cima do card e não mexe na altura do texto */
.plan-tag { position: absolute; top: 0; left: var(--gutter); z-index: 1; padding: 7px 12px; background: var(--text); color: var(--green); font: 800 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transform: translateY(-50%); }
.plan-head h3 { font-size: 28px; font-weight: 800; line-height: 1.05; letter-spacing: -.035em; white-space: nowrap; }
.plan-desc { margin-top: 4px; font-size: 14px; color: var(--muted); }
.price { margin-top: 22px; }
.price-label { font: 700 10px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.price-main { display: flex; align-items: baseline; margin-top: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-x { margin-right: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.price-cur { align-self: flex-start; margin: 7px 4px 0 0; font-size: 15px; font-weight: 800; }
.price-int { font-size: 56px; font-weight: 800; line-height: .9; letter-spacing: -.045em; }
.price-dec { align-self: flex-start; margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.price-per { margin-left: 6px; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.price-note { margin-top: 8px; font-size: 13px; color: var(--muted); }
.price-perk { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; font-weight: 700; }
.price-perk svg { width: 14px; height: 14px; flex: none; }
.plan-btn { width: 100%; min-height: 54px; margin-top: 20px; font-size: 11.5px; }
.plan-body { margin-top: 24px; }
.plan-intro { font: 700 10px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.plan-list { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.4; }
.plan-list li { display: grid; grid-template-columns: 16px 1fr; align-items: start; gap: 12px; }
.tick svg { display: block; width: 16px; height: 16px; margin-top: 1px; }
.plan-list .is-out { color: var(--muted); }
.plan-list strong { font-weight: 800; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plan-featured { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); background: var(--green); border-bottom-color: transparent; }
.plan-featured .plan-desc, .plan-featured .price-note, .plan-featured .plan-intro, .plan-featured .price-label { color: rgba(255, 255, 255, .82); }
.upsell { display: block; margin-top: 18px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.upsell strong { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.upsell .i { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.fine-print { margin-top: 20px; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* Espaços: grade fixa, sem arrastar */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.space { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--card); }
.space-main { grid-column: span 2; aspect-ratio: 16 / 11; }
.space img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.space::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 18, 0) 55%, rgba(18, 18, 18, .75) 100%); }
.space figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-size: 16px; font-weight: 400; letter-spacing: -.01em; }
.space-main figcaption { font-size: 20px; }

/* Dúvidas */
.faq { background: var(--bg-2); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; flex: none; width: 13px; height: 13px; background: linear-gradient(currentColor, currentColor) center / 100% 1.4px no-repeat, linear-gradient(currentColor, currentColor) center / 1.4px 100% no-repeat; transition: transform .35s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 62ch; padding-bottom: 22px; font-size: 14.5px; color: var(--muted); }

/* Fechamento */
.closing { padding-block: var(--section); background: var(--green); text-align: center; }
.closing .label { color: rgba(255, 255, 255, .8); }
.closing h2 { margin-bottom: 28px; }
.closing .btn { width: 100%; max-width: 360px; }

/* Rodapé */
.footer { padding: 48px 0 calc(108px + env(safe-area-inset-bottom)); background: var(--bg-3); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand svg { width: 40px; height: 40px; flex: none; }
.footer-brand span { font-size: 22px; font-weight: 300; letter-spacing: -.03em; }
.social { display: flex; gap: 8px; }
.social-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); color: var(--text); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.social-btn svg { width: 20px; height: 20px; }
.footer-bottom { display: grid; gap: 8px; padding-top: 24px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.footer-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--text); }
.footer-link .i { width: 13px; height: 13px; }

/* Barra de compra fixa */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(24, 24, 24, .94); border-top: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); transform: translateY(110%); transition: transform .45s var(--ease); }
.buybar.is-visible { transform: none; }
.buybar p { display: flex; flex-direction: column; gap: 3px; }
.buybar .label { font-size: 9.5px; }
.buybar strong { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.buybar .btn { min-height: 46px; padding: 0 20px; }

/* WhatsApp flutuante */
.whatsapp { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 31; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: var(--text); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); transform: translateY(calc(-1 * var(--buybar-h))); transition: transform .45s var(--ease), background-color .3s var(--ease); }
.whatsapp svg { width: 24px; height: 24px; }

/* Movimento */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }

@media (hover: hover) {
  .btn-green:hover { background: var(--green-deep); }
  .btn-light:hover { background: #e6e6e6; }
  .nav a:hover, .header-link:hover { opacity: .7; }
  .upsell:hover strong { text-decoration: underline; text-underline-offset: 4px; }
  .upsell:hover .i { transform: translateX(3px); }
  .space:hover img { transform: scale(1.04); }
  .faq-list summary:hover { opacity: .75; }
  .social-btn:hover { background: var(--green); border-color: var(--green); }
  .footer-link:hover { opacity: .7; }
  .whatsapp:hover { background: var(--green-deep); }
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --header: 76px; --section: 104px; }
  body { font-size: 16px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 12px; }
  .header-link { font-size: 11px; }

  .hero::after { background: linear-gradient(90deg, rgba(18, 18, 18, .7) 0%, rgba(18, 18, 18, 0) 65%), linear-gradient(180deg, rgba(18, 18, 18, .5) 0%, rgba(18, 18, 18, 0) 22%, rgba(18, 18, 18, .2) 45%, rgba(18, 18, 18, .85) 100%); }
  .hero-inner { padding-bottom: 56px; }
  .hero-text { font-size: 18px; }
  .hero-offer { display: flex; align-items: flex-end; gap: 40px; width: fit-content; margin-top: 32px; padding-top: 24px; }
  .hero-price { flex-direction: column; gap: 8px; }
  .hero-price strong { font-size: 44px; }
  .hero-offer .btn { width: auto; }

  .section-head { margin-bottom: 40px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { padding: 32px 28px 36px; }
  .plan:nth-child(even) { border-left: 1px solid var(--line); }
  .plan-featured { margin-inline: 0; padding-inline: 28px; border-bottom-color: var(--line); }
  .plan-tag { left: 28px; }
  @supports (grid-template-rows: subgrid) {
    .plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  }
  .plan-head h3 { font-size: 30px; }

  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .space-main { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .space figcaption { left: 20px; bottom: 18px; font-size: 18px; }
  .space-main figcaption { font-size: 24px; }

  .faq-list summary { font-size: 19px; padding: 24px 0; }

  .footer { padding-bottom: 48px; }
  .footer-bottom { grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; }

  .buybar { left: 50%; right: auto; bottom: 20px; width: min(520px, 100% - 2 * var(--gutter)); padding: 10px 10px 10px 22px; border: 1px solid var(--line-strong); box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .7); transform: translate(-50%, calc(100% + 40px)); }
  .buybar.is-visible { transform: translate(-50%, 0); }
  .whatsapp { right: 24px; bottom: 24px; width: 52px; height: 52px; transform: none; }
}

@media (min-width: 960px) {
  .nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 36px; }
  .nav a { padding-block: 10px; font: 700 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; transition: opacity .3s var(--ease); }
  .faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
}

@media (min-width: 1200px) {
  :root { --gutter: 64px; --section: 120px; }
  .hero-inner { padding-bottom: 64px; }
  .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .plan, .plan-featured { border-bottom: 0; }
  .plan + .plan { border-left: 1px solid var(--line); }
  .section-head:not(.faq-grid .section-head) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 48px; }
  .section-head .label, .section-head h2 { grid-column: 1; }
  .section-head .section-text { grid-column: 2; grid-row: 2; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
