/* ==========================================================================
   Rafa Moura - Personal Trainer (Salvador / Online)
   Design System: Archivo (800-900) + Inter Tight, Dark #0F0E17, Light #F5F4F0,
   Accent Violet #6C4BFF, Lime #D4FF3A.
   Theme-flip circular clip-path reveal on scroll + View Transitions.
   ========================================================================== */

:root {
  --dark: #0F0E17;
  --dark-surface: #171524;
  --dark-card: #1D1A2F;
  --dark-card-border: rgba(255, 255, 255, 0.08);
  --dark-muted: #9E9BB2;

  --light: #F5F4F0;
  --light-surface: #FFFFFF;
  --light-card: #FFFFFF;
  --light-card-border: rgba(15, 14, 23, 0.08);
  --light-muted: #646274;

  --text-dark: #0F0E17;
  --text-light: #F5F4F0;

  --violet: #6C4BFF;
  --violet-hover: #5736EB;
  --violet-soft: rgba(108, 75, 255, 0.12);
  --lime: #D4FF3A;
  --lime-hover: #BEEC20;
  --lime-soft: rgba(212, 255, 58, 0.16);

  --font-title: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: clamp(64px, 9vh, 80px);
  --wrap-w: min(1200px, 100% - clamp(24px, 4vw, 48px));
  --sec-pad: clamp(60px, min(8vw, 10vh), 110px);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: clamp(18px, 2.5vw, 28px);
  --r-pill: 999px;

  --brand-accent-1: #6C4BFF;
  --brand-accent-2: #D4FF3A;
}

/* Modo invertido (Theme toggle) */
:root.theme-alt {
  --dark: #F5F4F0;
  --dark-surface: #FFFFFF;
  --dark-card: #FFFFFF;
  --dark-card-border: rgba(15, 14, 23, 0.08);
  --dark-muted: #646274;

  --light: #0F0E17;
  --light-surface: #171524;
  --light-card: #1D1A2F;
  --light-card-border: rgba(255, 255, 255, 0.08);
  --light-muted: #9E9BB2;

  --text-dark: #F5F4F0;
  --text-light: #0F0E17;

  --brand-accent-1: #D4FF3A;
  --brand-accent-2: #6C4BFF;
}

/* Base reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--light);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: clamp(15px, min(1.1vw, 1.8vh), 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

svg {
  display: block;
  flex: none;
}

::selection {
  background: var(--lime);
  color: #0F0E17;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.wrap {
  width: var(--wrap-w);
  margin-inline: auto;
}

.sec {
  padding: var(--sec-pad) 0;
  position: relative;
}

/* ==========================================================================
   THEME-FLIP CIRCULAR REVEAL EFFECT
   ========================================================================== */
.flip {
  position: relative;
  background: var(--light);
}

.flip[data-flip="light"] {
  background: var(--dark);
}

.flip-in {
  clip-path: circle(calc(var(--p, 0) * 200%) at var(--ox, 0%) var(--oy, 0%));
  will-change: clip-path;
}

.flip[data-flip="dark"] .flip-in {
  background: var(--dark);
  color: var(--text-light);
}

.flip[data-flip="light"] .flip-in {
  background: var(--light);
  color: var(--text-dark);
}

/* ==========================================================================
   DEMO BAR (TOP STRIP)
   ========================================================================== */
.demo-bar {
  background: #1F1D30;
  color: #F5F4F0;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  flex-wrap: wrap;
  text-align: center;
  position: relative;
  z-index: 90;
}

.demo-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--lime);
  color: #0F0E17;
  padding: 3px 8px;
  border-radius: 4px;
}

.demo-bar a {
  font-weight: 700;
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.demo-bar a:hover {
  opacity: 0.8;
}

/* ==========================================================================
   FIXED HEADER & NAV
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #0F0E17;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid rgba(15, 14, 23, 0.08);
}

/* Cores literais: o header escolhe o tom pela seção embaixo dele, já considerando o modo invertido. */
.header.header-dark {
  background: rgba(15, 14, 23, 0.92);
  color: #F5F4F0;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-in {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-monogram {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(108, 75, 255, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text b {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.02em;
  transition: color 0.35s var(--ease);
}

.brand-text small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--violet);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.35s var(--ease);
}

.header.header-dark .brand-text b {
  color: #FFFFFF;
}

.header.header-dark .brand-text small {
  color: var(--lime);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}

.nav-menu a {
  font-size: 14.5px;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
  transition: color 0.35s var(--ease);
}

.header.header-dark .nav-menu a {
  color: #F5F4F0;
}

.header.header-dark .nav-menu a:hover,
.header.header-dark .nav-menu a.on {
  color: var(--lime);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.header.header-dark .nav-menu a::after {
  background: var(--lime);
}

.nav-menu a:hover::after,
.nav-menu a.on::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-cta {
  display: none !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.85;
  color: inherit;
  display: grid;
  place-items: center;
  transition: opacity 0.2s, transform 0.3s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.theme-btn:hover {
  opacity: 1;
  transform: rotate(25deg);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-moon {
  display: none;
}

:root.theme-alt .icon-sun {
  display: none;
}

:root.theme-alt .icon-moon {
  display: block;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid currentColor;
  opacity: 0.8;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s, background-color 0.35s var(--ease);
}

.menu-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .burger span:nth-child(2) {
  opacity: 0;
}

.menu-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(12px, 1.8vh, 15px) clamp(22px, 2.2vw, 30px);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-violet {
  background: var(--violet);
  color: #FFFFFF;
}

.btn-violet:hover {
  background: var(--violet-hover);
  box-shadow: 0 10px 24px -6px rgba(108, 75, 255, 0.45);
}

.btn-lime {
  background: var(--lime);
  color: #0F0E17;
}

.btn-lime:hover {
  background: var(--lime-hover);
  box-shadow: 0 10px 24px -6px rgba(212, 255, 58, 0.45);
}

.btn-outline {
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
}

.btn-outline:hover {
  background: var(--text-dark);
  color: var(--light);
}

.header.header-dark .btn-outline:hover,
.flip[data-flip="dark"] .btn-outline:hover {
  background: var(--light);
  color: var(--dark);
}

.btn-pill {
  border-radius: var(--r-pill);
  padding-right: 18px;
}

.btn-pill .btn-ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  margin-left: 2px;
  transition: transform 0.3s var(--ease);
}

.btn-lime .btn-ic {
  background: rgba(15, 14, 23, 0.15);
}

.btn-pill:hover .btn-ic {
  transform: translateX(3px);
}

.btn-pill svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HEADINGS & TYPOGRAPHY
   ========================================================================== */
.badge-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--violet-soft);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}

.light .badge-tag,
.flip[data-flip="dark"] .badge-tag {
  color: var(--lime);
  background: var(--lime-soft);
}

.sec-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(28px, min(4.2vw, 6.5vh), 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 16px;
  text-wrap: balance;
}

.sec-title.light {
  color: var(--text-light);
}

.sec-sub {
  color: var(--light-muted);
  font-size: clamp(15px, min(1.2vw, 2vh), 18px);
  max-width: 58ch;
  line-height: 1.6;
}

.sec-sub.light {
  color: var(--dark-muted);
}

.sec-head.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(36px, min(5vw, 7vh), 64px);
}

.head-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(36px, min(5vw, 7vh), 64px);
}

/* ==========================================================================
   HERO SECTION (LIGHT THEME)
   ========================================================================== */
.hero {
  min-height: calc(100svh - var(--header-h) - 36px);
  display: flex;
  align-items: center;
  padding: clamp(32px, 5vh, 64px) 0;
  background: var(--light);
}

.hero-in {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--light-muted);
  margin-bottom: 18px;
}

.dot-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(36px, min(5.4vw, 8.2vh), 70px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-dark);
  margin-bottom: 22px;
}

.hero-title .ln {
  display: block;
  overflow: hidden;
}

.hero-title .ln span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 110ms + 100ms);
}

.loaded .hero-title .ln span {
  transform: translateY(0);
}

.hero-title em {
  font-style: normal;
  color: var(--violet);
  position: relative;
}

.hero-lead {
  font-size: clamp(16px, min(1.3vw, 2.2vh), 19px);
  color: var(--light-muted);
  max-width: 48ch;
  margin-bottom: 30px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: calc(100svh - var(--header-h) - 90px);
  border-radius: var(--r-lg);
  overflow: visible;
  transform: scale(0.3);
  clip-path: inset(18% round var(--r-lg));
  opacity: 0;
  transition: transform 1.2s var(--ease), clip-path 1.2s var(--ease), opacity 0.8s ease;
}

.loaded .hero-photo-wrap {
  transform: scale(1);
  /* inset negativo: os cards flutuantes saem da foto sem serem cortados (a foto já tem o próprio raio) */
  clip-path: inset(-80px round var(--r-lg));
  opacity: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -20px rgba(15, 14, 23, 0.25);
}

/* Floating cards */
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: 0 20px 40px -10px rgba(15, 14, 23, 0.18);
  z-index: 10;
  color: #0F0E17;
}

.counter-card {
  left: -20px;
  bottom: 28px;
  max-width: 190px;
}

.counter-num {
  display: block;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  color: var(--violet);
}

.counter-num .plus {
  color: #0F0E17;
  font-size: 24px;
}

.counter-lbl {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #4C4A5A;
  margin-top: 4px;
}

.review-card {
  right: -20px;
  top: 36px;
  padding: 12px 16px;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  margin-left: -8px;
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.stars {
  display: flex;
  gap: 2px;
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: #F59E0B;
}

.review-text {
  font-size: 12px;
  color: #4C4A5A;
  margin: 0;
}

.review-text b {
  color: #0F0E17;
}

/* ==========================================================================
   FORMATOS DE TREINO (DARK SECTION)
   ========================================================================== */
.formats-tabs {
  display: inline-flex;
  padding: 5px;
  background: var(--dark-card);
  border: 1px solid var(--dark-card-border);
  border-radius: var(--r-pill);
  gap: 4px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.tab-btn {
  padding: 10px 24px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-muted);
  transition: background 0.3s, color 0.3s;
}

.tab-btn.is-active {
  background: var(--lime);
  color: #0F0E17;
}

.format-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.format-visual {
  position: relative;
}

.format-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--dark-card);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.format-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}

.format-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.format-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(20px, 3vh, 26px);
  background: var(--dark-card);
  border: 1px solid var(--dark-card-border);
  border-radius: var(--r-md);
  transition: border-color 0.3s, transform 0.3s;
}

.format-card:hover {
  border-color: rgba(212, 255, 58, 0.4);
  transform: translateX(4px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--lime-soft);
  color: var(--lime);
  display: grid;
  place-items: center;
  flex: none;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.card-desc {
  font-size: 14.5px;
  color: var(--dark-muted);
  line-height: 1.5;
  margin: 0;
}

/* Cascade reveal items */
.cascade-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--ci, 0) * 120ms);
}

.cascade-item.in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   MÉTODO EM 4 PASSOS
   ========================================================================== */
.steps-flow {
  position: relative;
  margin-bottom: clamp(60px, min(8vw, 10vh), 100px);
}

.steps-track-bg {
  position: absolute;
  top: 36px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: rgba(15, 14, 23, 0.1);
  z-index: 1;
}

.steps-line {
  height: 100%;
  width: 100%;
  background: var(--violet);
  transform-origin: left;
  transform: scaleX(var(--steps-p, 0));
  transition: transform 0.2s linear;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.step-card {
  padding: 24px 20px;
  background: var(--light-surface);
  border: 1px solid var(--light-card-border);
  border-radius: var(--r-md);
  box-shadow: 0 10px 30px -15px rgba(15, 14, 23, 0.08);
  transition: transform 0.3s, border-color 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light);
  border: 2px solid rgba(15, 14, 23, 0.15);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 18px;
  color: var(--text-dark);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.step-card.is-active .step-num {
  background: var(--violet);
  border-color: var(--violet);
  color: #FFFFFF;
}

.step-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.step-desc {
  font-size: 14px;
  color: var(--light-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   BENTO DE DIFERENCIAIS
   ========================================================================== */
.bento-wrap {
  margin-top: clamp(32px, 4.5vh, 52px);
}

.bento-wrap .sec-head {
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: clamp(340px, 42vh, 420px);
  max-height: calc(100svh - var(--header-h) - 170px);
}

.bento-box {
  background: var(--light-surface);
  border: 1px solid var(--light-card-border);
  border-radius: var(--r-md);
  padding: clamp(12px, 1.6vh, 18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 30px -15px rgba(15, 14, 23, 0.06);
  transition: transform 0.3s, border-color 0.3s;
  overflow: hidden;
  min-height: 0;
}

.bento-box:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 75, 255, 0.3);
}

/* Posicionamento explícito dos 6 blocos em 4 colunas x 2 linhas */
.bento-box:nth-child(1) { grid-column: 1 / 3; grid-row: 1; } /* Foto (span 2 cols) */
.bento-box:nth-child(2) { grid-column: 3; grid-row: 1; }     /* 8 anos */
.bento-box:nth-child(3) { grid-column: 4; grid-row: 1; }     /* App */
.bento-box:nth-child(4) { grid-column: 1; grid-row: 2; }     /* Ajuste */
.bento-box:nth-child(5) { grid-column: 2; grid-row: 2; }     /* Online */
.bento-box:nth-child(6) { grid-column: 3 / 5; grid-row: 2; } /* Avaliação (span 2 cols) */

.bento-photo {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  justify-content: flex-end;
}

.bento-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.bento-photo:hover img {
  transform: scale(1.04);
}

.bento-photo-overlay {
  position: relative;
  z-index: 2;
  padding: clamp(12px, 1.8vh, 16px);
  background: linear-gradient(to top, rgba(15, 14, 23, 0.92) 0%, rgba(15, 14, 23, 0.35) 70%, transparent 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.bento-photo-overlay b {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.2;
}

.bento-photo-overlay span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
}

.bento-highlight {
  background: var(--violet);
  color: #FFFFFF;
  border-color: var(--violet);
}

.bento-highlight .bento-title {
  color: #FFFFFF;
}

.bento-highlight .bento-desc {
  color: rgba(255, 255, 255, 0.85);
}

.bento-big-num {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(32px, 3.8vw, 44px);
  line-height: 1;
  color: var(--lime);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.bento-big-num span {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.bento-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--violet-soft);
  color: var(--violet);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  flex: none;
}

.bento-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(14px, 1.4vw, 16px);
  margin-bottom: 4px;
  line-height: 1.25;
}

.bento-desc {
  font-size: 12.5px;
  color: var(--light-muted);
  line-height: 1.4;
  margin: 0;
}

.bento-wide {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.bento-wide .bento-icon {
  margin-bottom: 0;
}

/* ==========================================================================
   ALUNOS E DEPOIMENTOS (DARK SECTION)
   ========================================================================== */
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--dark-card);
  border: 1px solid var(--dark-card-border);
  margin-top: 14px;
}

.rating-score {
  font-weight: 800;
  font-size: 14px;
  color: var(--lime);
}

.stars-gold {
  display: flex;
  gap: 2px;
}

.stars-gold svg {
  width: 14px;
  height: 14px;
  fill: #F59E0B;
}

.rating-source {
  font-size: 12.5px;
  color: var(--dark-muted);
}

#depoimentos {
  padding: clamp(20px, 3vh, 36px) 0;
}

#depoimentos .sec-head {
  margin-bottom: clamp(12px, 1.8vh, 18px);
}

#depoimentos .badge-tag {
  margin-bottom: 6px;
}

#depoimentos .sec-title {
  margin-bottom: 6px;
  font-size: clamp(24px, min(3.5vw, 5vh), 42px);
}

#depoimentos {
  padding: clamp(28px, 4vh, 44px) 0;
}

#depoimentos .sec-head {
  margin-bottom: clamp(14px, 2vh, 20px);
}

#depoimentos .sec-sub {
  margin-bottom: 0;
  font-size: clamp(13px, min(1.1vw, 1.6vh), 15.5px);
}

#depoimentos .rating-pill {
  margin-top: 6px;
  padding: 4px 12px;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 14px);
  max-width: 800px;
  margin-inline: auto;
}

.chat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.chat-item-alt {
  flex-direction: row;
}

.chat-avatar {
  width: clamp(38px, 4.5vh, 44px);
  height: clamp(38px, 4.5vh, 44px);
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 2px solid var(--lime);
  transform: scale(0);
  transition: transform 0.35s var(--ease-bounce);
  transition-delay: calc(var(--ti, 0) * 110ms);
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-bubble {
  flex: 1;
  min-width: 0;
  background: var(--dark-card);
  border: 1px solid var(--dark-card-border);
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: clamp(10px, 1.4vh, 14px) clamp(14px, 1.6vw, 18px);
  opacity: 0;
  transform: translateY(12px);
  transition: transform 0.35s var(--ease), opacity 0.3s ease;
  transition-delay: calc(var(--ti, 0) * 110ms + 60ms);
}

.chat-item-alt .chat-bubble {
  border-top-left-radius: 4px;
  border-top-right-radius: 16px;
}

.chat-item.in .chat-avatar {
  transform: scale(1);
}

.chat-item.in .chat-bubble {
  opacity: 1;
  transform: none;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.chat-header b {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-light);
}

.chat-header span {
  font-size: 11.5px;
  color: var(--dark-muted);
}

.chat-text {
  font-size: clamp(13px, min(1vw, 1.6vh), 14.5px);
  line-height: 1.45;
  color: var(--text-light);
  opacity: 0.88;
  margin-bottom: 6px;
}

.chat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--lime);
  background: var(--lime-soft);
  padding: 3px 8px;
  border-radius: var(--r-pill);
}

/* ==========================================================================
   PLANOS DE TREINO (LIGHT SECTION)
   ========================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.plan-card {
  background: var(--light-surface);
  border: 1px solid var(--light-card-border);
  border-radius: var(--r-md);
  padding: clamp(26px, 3.5vh, 34px) clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 10px 30px -15px rgba(15, 14, 23, 0.08);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(15, 14, 23, 0.12);
}

.plan-featured {
  background: #0F0E17;
  color: #F5F4F0;
  border-color: var(--violet);
  box-shadow: 0 20px 45px -15px rgba(108, 75, 255, 0.3);
  transform: scale(1.02);
}

.plan-featured:hover {
  transform: scale(1.02) translateY(-5px);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: #0F0E17;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--r-pill);
}

.plan-header {
  margin-bottom: 24px;
}

.plan-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 8px;
}

.plan-target {
  font-size: 13.5px;
  color: var(--light-muted);
  line-height: 1.45;
  min-height: 40px;
  margin-bottom: 16px;
}

.plan-featured .plan-target {
  color: #9E9BB2;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price .currency {
  font-size: 20px;
  font-weight: 700;
}

.plan-price .amount {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(38px, 4.5vw, 48px);
  line-height: 1;
  color: var(--violet);
}

.plan-featured .plan-price .amount {
  color: var(--lime);
}

.plan-price .period {
  font-size: 14px;
  color: var(--light-muted);
}

.plan-featured .plan-price .period {
  color: #9E9BB2;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.plan-features svg {
  width: 17px;
  height: 17px;
  fill: var(--violet);
  margin-top: 2px;
}

.plan-featured .plan-features svg {
  fill: var(--lime);
}

.plan-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--light-muted);
  margin-bottom: clamp(48px, min(6vw, 8vh), 72px);
  text-align: center;
}

.plan-note svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   FINAL CTA CARD
   ========================================================================== */
.final-cta {
  background: var(--violet);
  color: #FFFFFF;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(108, 75, 255, 0.4);
}

.final-cta-in {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.final-cta-content {
  padding: clamp(36px, 5vh, 64px) clamp(28px, 4vw, 56px);
}

.final-cta-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

.final-cta-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(28px, min(4vw, 5.5vh), 44px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.final-cta-desc {
  font-size: clamp(15px, min(1.2vw, 2vh), 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 46ch;
  margin-bottom: 28px;
}

.final-cta-visual {
  height: 100%;
  min-height: 320px;
}

.final-cta-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   FOOTER (DARK SECTION)
   ========================================================================== */
.footer {
  background: #0F0E17;
  color: #F5F4F0;
  padding: clamp(48px, min(6vw, 8vh), 72px) 0 32px;
  border-top: 1px solid var(--dark-card-border);
}

.footer-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: clamp(36px, 5vh, 56px);
}

.ft-desc {
  font-size: 13.5px;
  color: #8C8A9E;
  margin-top: 14px;
  max-width: 32ch;
  line-height: 1.5;
}

.ft-col-title {
  display: block;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}

.ft-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: #B2B0C2;
}

.ft-links a {
  transition: color 0.2s;
}

.ft-links a:hover {
  color: #FFFFFF;
}

.ft-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #B2B0C2;
  transition: color 0.2s;
}

.social-btn:hover {
  color: var(--lime);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-card-border);
  font-size: 12.5px;
  color: #727084;
}

.ft-bottom span {
  max-width: 80ch;
}

.author-link {
  color: #B2B0C2;
}

.author-link b {
  color: var(--lime);
}

/* ==========================================================================
   MODAL (DIALOG)
   ========================================================================== */
.modal {
  border: 0;
  padding: 0;
  max-width: 480px;
  width: calc(100% - 32px);
  border-top: 4px solid var(--violet);
  border-radius: var(--r-md);
  background: #FFFFFF;
  color: #0F0E17;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  max-height: calc(100svh - 32px);
  overflow: auto;
  margin: auto;
}

.modal::backdrop {
  background: rgba(15, 14, 23, 0.75);
  backdrop-filter: blur(4px);
}

.modal[open] {
  animation: modalFadeIn 0.35s var(--ease);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.modal form {
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.m-x {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 14, 23, 0.06);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.m-x:hover {
  background: rgba(15, 14, 23, 0.12);
}

.m-brand-ic {
  width: 40px;
  height: 40px;
}

.m-brand-ic svg {
  width: 100%;
  height: 100%;
  border-radius: 9px;
}

.modal h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  color: #0F0E17;
}

.modal p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #555365;
  margin: 0;
}

.m-back {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #666476;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  margin-top: 4px;
}

/* ==========================================================================
   VIEW TRANSITIONS API FOR THEME TOGGLE
   ========================================================================== */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 9999;
}

/* ==========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-in {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-tag {
    justify-content: center;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-photo-wrap {
    max-width: 440px;
    margin-inline: auto;
  }
  .head-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .format-showcase {
    grid-template-columns: 1fr;
  }
  .steps-track-bg {
    display: none;
  }
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    max-height: none;
  }
  .bento-box:nth-child(1) { grid-column: 1 / 3; grid-row: auto; min-height: 200px; }
  .bento-box:nth-child(2) { grid-column: auto; grid-row: auto; }
  .bento-box:nth-child(3) { grid-column: auto; grid-row: auto; }
  .bento-box:nth-child(4) { grid-column: auto; grid-row: auto; }
  .bento-box:nth-child(5) { grid-column: auto; grid-row: auto; }
  .bento-box:nth-child(6) { grid-column: 1 / 3; grid-row: auto; }
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .plan-featured {
    transform: none;
  }
  .plan-featured:hover {
    transform: translateY(-5px);
  }
  .final-cta-in {
    grid-template-columns: 1fr;
  }
  .final-cta-visual {
    height: 240px;
  }
  .footer-in {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light);
    flex-direction: column;
    padding: 36px 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s;
    overflow-y: auto;
    border-bottom: 2px solid var(--violet);
  }
  .header.header-dark .nav-menu {
    background: var(--dark);
    border-bottom-color: var(--lime);
  }
  .menu-open .nav-menu {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a {
    font-size: 18px;
    font-weight: 700;
  }
  .menu-cta {
    display: inline-flex !important;
    margin-top: 12px;
  }
  .header-cta {
    display: none;
  }
  .burger {
    display: flex;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    max-height: none;
    gap: 12px;
  }
  .bento-box:nth-child(n) {
    grid-column: 1 !important;
    grid-row: auto !important;
    min-height: auto;
  }
  .bento-photo {
    min-height: 200px;
    height: 200px;
  }
  .bento-wide {
    flex-direction: column;
    align-items: flex-start;
  }
  .bento-wide .bento-icon {
    margin-bottom: 8px;
  }
  .chat-thread {
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }
  .chat-item, .chat-item-alt {
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 10px;
  }
  .chat-avatar {
    width: 40px;
    height: 40px;
  }
  .chat-bubble {
    width: 100%;
    min-width: 0;
  }
  .float-card {
    position: static;
    margin-top: 14px;
  }
  .hero-visual {
    flex-direction: column;
    align-items: center;
  }
  .counter-card, .review-card {
    max-width: 100%;
    width: 100%;
  }
  .footer-in {
    grid-template-columns: 1fr;
  }
  .ft-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .flip-in {
    clip-path: none !important;
  }
  .hero-photo-wrap {
    transform: none !important;
    clip-path: none !important;
    opacity: 1 !important;
  }
  .hero-title .ln span {
    transform: none !important;
  }
  .cascade-item {
    opacity: 1 !important;
    transform: none !important;
  }
  .chat-avatar {
    transform: none !important;
  }
  .chat-bubble {
    clip-path: none !important;
    opacity: 1 !important;
  }
}

/* Modo invertido: as seções escuras ficam claras, e o limão some em fundo claro. Vira violeta. */
:root.theme-alt .flip[data-flip="dark"] .badge-tag,
:root.theme-alt .flip[data-flip="dark"] .chat-tag,
:root.theme-alt .flip[data-flip="dark"] .card-icon {
  color: var(--violet);
  background: var(--violet-soft);
}
:root.theme-alt .flip[data-flip="dark"] .rating-score {
  color: var(--violet);
}
