/* =========================================================
   Pediatria Intensiva - Styles (sem frameworks)
   Objetivos: premium, responsivo, acessível, performático
   Observação: reorganizado e simplificado (sem mudar o comportamento)
   ========================================================= */

/* =========================================================
   Design tokens (CSS Variables)
   - Paleta e tons por página ficam em body[data-page="..."]
   - Tokens derivados usam RGB vars para funcionar com alpha
   ========================================================= */

:root {
  /* Base */
  --bg: #0c0f14;
  --surface: rgb(255 255 255 / 0.06);
  --surface-2: rgb(255 255 255 / 0.09);
  --text: rgb(255 255 255 / 0.94);
  --muted: rgb(255 255 255 / 0.74);
  --border: rgb(255 255 255 / 0.12);

  /* Paleta default (Home) */
  --brand: #efcf40;
  --brand-2: #ffffff;
  --warn: #efcf40;
  --danger: #ff3b4a;

  /* RGB para usar alpha com rgb(var(--x-rgb) / a) */
  --brand-rgb: 239 207 64;
  --brand2-rgb: 255 255 255;
  --warn-rgb: 239 207 64;
  --danger-rgb: 255 59 74;

  /* Glass + profundidade */
  --glass: color-mix(in srgb, var(--surface) 78%, transparent);
  --glass-2: color-mix(in srgb, var(--surface-2) 72%, transparent);

  /* Bordas e foco */
  --border-strong: color-mix(in srgb, var(--border) 72%, transparent);
  --focus: 0 0 0 3px rgb(var(--brand-rgb) / 0.34);

  /* Sombras */
  --shadow: 0 18px 55px rgb(0 0 0 / 0.52);
  --shadow-soft: 0 14px 34px rgb(0 0 0 / 0.28);

  /* Glows */
  --glow-brand: 0 0 0 1px rgb(var(--brand-rgb) / 0.18), 0 18px 40px rgb(var(--brand-rgb) / 0.16);
  --glow-green: 0 0 0 1px rgb(var(--brand2-rgb) / 0.16), 0 18px 40px rgb(var(--brand2-rgb) / 0.12);

  /* Radii */
  --radius: 18px;
  --radius-sm: 14px;

  /* Layout */
  --container: 1120px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 28px;
  --space-6: 40px;
  --space-7: 56px;
  --space-8: 72px;

  /* Fonts */
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, serif;

  /* Scale */
  --fs-1: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  --fs-2: clamp(1.05rem, 1rem + 0.5vw, 1.2rem);
  --fs-3: clamp(1.25rem, 1.2rem + 0.8vw, 1.6rem);
  --fs-4: clamp(1.8rem, 1.6rem + 2vw, 2.6rem);
  --fs-5: clamp(2.1rem, 1.8rem + 2.8vw, 3.2rem);

  /* =========================================================
     Split background (opção 3)
     ========================================================= */
  --split-gap: clamp(18px, 2.4vw, 34px);
  --split-radius: clamp(18px, 2.4vw, 32px);

  /* Cores de base para modo claro */
  --split-light-bg: #fbfaf6;
  --split-light-text: rgb(12 15 20 / 0.92);
  --split-light-muted: rgb(12 15 20 / 0.70);
  --split-light-border: rgb(12 15 20 / 0.10);
  --split-light-surface: rgb(12 15 20 / 0.04);
  --split-light-surface2: rgb(12 15 20 / 0.06);

  /* Cores de base para modo escuro */
  --split-dark-bg: #0c0f14;
  --split-dark-text: rgb(255 255 255 / 0.94);
  --split-dark-muted: rgb(255 255 255 / 0.74);
  --split-dark-border: rgb(255 255 255 / 0.12);
  --split-dark-surface: rgb(255 255 255 / 0.06);
  --split-dark-surface2: rgb(255 255 255 / 0.09);
}

/* Light theme override */
html[data-theme="light"] {
  --bg: #f7f7fb;
  --surface: rgb(10 18 32 / 0.04);
  --surface-2: rgb(10 18 32 / 0.06);
  --text: rgb(10 18 32 / 0.92);
  --muted: rgb(10 18 32 / 0.7);
  --border: rgb(10 18 32 / 0.1);

  --glass: color-mix(in srgb, rgb(10 18 32 / 0.04) 80%, transparent);
  --glass-2: color-mix(in srgb, rgb(10 18 32 / 0.06) 76%, transparent);

  --border-strong: color-mix(in srgb, var(--border) 78%, transparent);
  --focus: 0 0 0 3px rgb(var(--brand-rgb) / 0.3);

  --shadow: 0 18px 50px rgb(10 18 32 / 0.16);
  --shadow-soft: 0 12px 30px rgb(10 18 32 / 0.1);

  --glow-brand: 0 0 0 1px rgb(var(--brand-rgb) / 0.14), 0 18px 40px rgb(var(--brand-rgb) / 0.12);
  --glow-green: 0 0 0 1px rgb(var(--brand2-rgb) / 0.12), 0 18px 40px rgb(var(--brand2-rgb) / 0.1);

  /* Fades no light ficam mais suaves */
  --split-fade-top: linear-gradient(180deg, rgb(10 18 32 / 0.16), transparent 60%);
  --split-fade-bot: linear-gradient(0deg, rgb(10 18 32 / 0.16), transparent 60%);
}

/* =========================================================
   Paleta por página
   ========================================================= */

body[data-page="home"] {
  --bg: #0c0f14;
  --text: rgb(255 255 255 / 0.94);
  --muted: rgb(255 255 255 / 0.74);

  --brand: #efcf40;
  --brand-2: #ffffff;
  --warn: #efcf40;

  --brand-rgb: 239 207 64;
  --brand2-rgb: 255 255 255;
  --warn-rgb: 239 207 64;

  --glow-green: 0 0 0 1px rgb(var(--brand2-rgb) / 0.12), 0 18px 40px rgb(var(--brand2-rgb) / 0.08);
}

body[data-page="enf"] {
  --bg: #0c0f14;
  --text: rgb(255 255 255 / 0.94);
  --muted: rgb(255 255 255 / 0.74);

  --brand: #fd8821;
  --brand-2: #efcf40;
  --warn: #efcf40;

  --brand-rgb: 253 136 33;
  --brand2-rgb: 239 207 64;
  --warn-rgb: 239 207 64;
}

body[data-page="med"] {
  --bg: #0c0f14;
  --text: rgb(255 255 255 / 0.94);
  --muted: rgb(255 255 255 / 0.74);

  --brand: #7ed956;
  --brand-2: #1800ac;
  --warn: #7ed956;

  --brand-rgb: 126 217 86;
  --brand2-rgb: 24 0 172;
  --warn-rgb: 126 217 86;
}

/* =========================================================
   Base / Reset
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  position: relative;
  font-family: var(--font-sans);
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

button,
input {
  font: inherit;
}

/* Acessibilidade: foco visível */
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 10px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 9999;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 10px;
}

.skip-link:focus {
  left: 10px;
}

/* =========================================================
   Background global premium tech
   ========================================================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1200px 620px at 18% -10%, rgb(var(--brand-rgb) / 0.18), transparent 62%),
    radial-gradient(980px 520px at 38% 18%, rgb(var(--brand-rgb) / 0.12), transparent 62%),
    radial-gradient(860px 520px at 92% 8%, rgb(var(--danger-rgb) / 0.07), transparent 64%),
    radial-gradient(980px 560px at 56% 78%, rgb(var(--warn-rgb) / 0.08), transparent 62%),
    radial-gradient(900px 560px at 10% 92%, rgb(var(--brand2-rgb) / 0.09), transparent 62%),
    radial-gradient(1200px 900px at 50% 60%, rgb(0 0 0 / 0.22), transparent 70%),
    linear-gradient(180deg, rgb(0 0 0 / 0.18), transparent 42%);
  transform: translateZ(0);
  will-change: transform;
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(1200px 620px at 18% -10%, rgb(var(--brand-rgb) / 0.12), transparent 64%),
    radial-gradient(980px 520px at 38% 18%, rgb(var(--brand-rgb) / 0.08), transparent 64%),
    radial-gradient(860px 520px at 92% 8%, rgb(var(--danger-rgb) / 0.05), transparent 66%),
    radial-gradient(980px 560px at 56% 78%, rgb(var(--warn-rgb) / 0.08), transparent 64%),
    radial-gradient(900px 560px at 10% 92%, rgb(var(--brand2-rgb) / 0.06), transparent 64%),
    radial-gradient(1200px 900px at 50% 60%, rgb(10 18 32 / 0.08), transparent 72%),
    linear-gradient(180deg, rgb(10 18 32 / 0.06), transparent 45%);
}

/* Textura topográfica + micro-noise */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600'%3E%3Cg fill='none' stroke='white' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M-40 120 C 80 40, 180 220, 300 140 S 520 60, 620 160 S 820 260, 980 140'/%3E%3Cpath d='M-60 220 C 90 140, 210 320, 340 240 S 560 160, 660 260 S 860 360, 1020 240'/%3E%3Cpath d='M-80 320 C 100 240, 240 420, 380 340 S 600 260, 700 360 S 900 460, 1060 340'/%3E%3Cpath d='M-100 420 C 120 340, 260 520, 420 440 S 640 360, 740 460 S 940 560, 1100 440'/%3E%3Cpath d='M-120 520 C 140 440, 280 620, 460 540 S 680 460, 780 560 S 980 660, 1140 540'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(
      45deg,
      rgb(255 255 255 / 0.018) 0,
      rgb(255 255 255 / 0.018) 1px,
      transparent 1px,
      transparent 10px
    );
  background-size: 980px 640px, 260px 260px;
  background-position: 50% 20%, 0 0;
  mix-blend-mode: overlay;
  opacity: 0.22;
  transform: translateZ(0);
}

html[data-theme="light"] body::after {
  mix-blend-mode: multiply;
  opacity: 0.18;
}

/* =========================================================
   Layout helpers
   ========================================================= */

.container {
  width: min(var(--container), calc(100% - 2 * var(--space-4)));
  margin-inline: auto;
}

.section,
.section--callout {
  padding: var(--space-8) 0;
  position: relative;
}

.section__head {
  margin-bottom: var(--space-6);
}

.section__title {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-4);
  letter-spacing: -0.02em;
}

.section__subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

/* Section muted */
.section--muted {
  position: relative;
  background: transparent;
}

.section--muted::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgb(0 0 0 / 0.03) 35%,
    rgb(0 0 0 / 0.03) 65%,
    transparent 100%
  );
}

html[data-theme="light"] .section--muted::before {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgb(10 18 32 / 0.02) 35%,
    rgb(10 18 32 / 0.02) 65%,
    transparent 100%
  );
}

/* =========================================================
   Header / Nav
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
}

.brand__text {
  font-size: 1.02rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__links {
  display: none;
  gap: var(--space-3);
  align-items: center;
}

.nav__link {
  padding: 10px;
  border-radius: 12px;
  color: var(--muted);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.nav__link:hover {
  background: var(--surface);
  color: var(--text);
  transform: translateY(-1px);
}

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

.nav__toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav__toggle:hover {
  background: var(--surface-2);
}

.nav__toggle-lines {
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 999px;
}

.nav__toggle-lines::before,
.nav__toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.nav__toggle-lines::before {
  top: -6px;
}

.nav__toggle-lines::after {
  top: 6px;
}

/* Drawer (mobile) */
.drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}

.drawer.is-open {
  display: block;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.42);
  border: 0;
}

.drawer__panel {
  position: absolute;
  top: 10px;
  right: 10px;
  width: min(92vw, 360px);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.drawer__title {
  font-weight: 700;
}

.drawer__body {
  padding: 10px;
  display: grid;
  gap: 6px;
}

.drawer__link {
  padding: 12px;
  border-radius: 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
}

.drawer__link:hover {
  background: var(--surface);
  border-color: var(--border);
}

.drawer__cta {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

@media (min-width: 980px) {
  .nav__toggle {
    display: none;
  }
  .nav__links {
    display: flex;
  }
}

/* =========================================================
   Shared glass blur
   ========================================================= */

.btn--secondary,
.pill,
.media-card,
.card,
.manifesto,
.callout,
.badge,
.note,
.accordion__item,
.guarantee,
.fab {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  text-align: center;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn__icon {
  display: inline-flex;
}

.btn:hover {
  box-shadow: var(--focus);
}

.btn:focus-visible {
  box-shadow: var(--focus), 0 0 0 1px rgb(var(--brand-rgb) / 0.1);
}

.btn--primary {
  background: linear-gradient(135deg, rgb(var(--brand-rgb) / 1), color-mix(in srgb, var(--brand) 70%, var(--brand-2)));
  color: #0c0f14;
  border-color: transparent;
  box-shadow: var(--glow-brand);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-brand), 0 22px 46px rgb(var(--brand-rgb) / 0.18);
}

.btn--secondary {
  background: var(--glass);
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  transform: translateY(-1px);
  background: var(--glass-2);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: color-mix(in srgb, var(--border) 72%, transparent);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  border-color: var(--border-strong);
  box-shadow: none;
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
}

.btn--block {
  width: 100%;
}

/* =========================================================
   Hero (background responsivo)
   ========================================================= */

.section.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  /* Mais estável em mobile moderno */
  min-height: clamp(520px, 72svh, 860px);

  /* Defaults */
  --hero-bg: url("./assets/img/bg/home_1.webp");
  --hero-bg-mobile: url("./assets/img/bg/home_1080_x_1920.webp");
  --hero-bg-xl: url("./assets/img/bg/home_2560_x_1440_1.webp");

  /* Controle de foco do recorte */
  --hero-pos: center;
  --hero-pos-mobile: center top;

  /* Background efetivo */
  --hero-bg-active: var(--hero-bg);
  --hero-pos-active: var(--hero-pos);
}

/* desktop */
@media (min-width: 721px) {
  .section.hero {
    height: clamp(720px, 72vh, 860px); /* altura fixa */
    min-height: unset;
  }

  .section.hero .container {
    height: 100%;
    display: flex;
    align-items: center; /* centraliza o conteúdo verticalmente */
  }

  .section.hero .hero__grid {
    width: 100%;
  }
}

.section.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--hero-bg-active);
  background-repeat: no-repeat;
  background-position: var(--hero-pos-active);
  background-size: cover;
}

/* Overlay */
.section.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}

.section.hero .hero__banner,
.section.hero .container,
.section.hero .hero__grid {
  position: relative;
  z-index: 2;
}

/* Mobile por largura */
@media (max-width: 720px) {
  .section.hero {
    --hero-bg-active: var(--hero-bg-mobile);
    --hero-pos-active: var(--hero-pos-mobile);
  }

  .section.hero::after {
    background: linear-gradient(
      180deg,
      rgb(12 15 20 / 0.86) 0%,
      rgb(12 15 20 / 0.68) 52%,
      rgb(12 15 20 / 0.44) 100%
    );
  }
}

/* Mobile por proporção */
@media (max-aspect-ratio: 3/4) {
  .section.hero {
    --hero-bg-active: var(--hero-bg-mobile);
    --hero-pos-active: var(--hero-pos-mobile);
  }
}

/* XL por largura */
@media (min-width: 1200px) {
  .section.hero {
    --hero-bg-active: var(--hero-bg-xl);
  }
}

/* Retina */
@media (min-width: 980px) and (min-resolution: 2dppx) {
  .section.hero {
    --hero-bg-active: image-set(
      var(--hero-bg) 1x,
      var(--hero-bg-xl) 2x
    );
  }
}

/* Paleta de hero por página */
body[data-page="home"] .section.hero {
  --hero-bg: url("./assets/img/bg/HOME_DESKTOP.webp");
  --hero-bg-mobile: url("./assets/img/bg/HOME_MOBILE.webp");
  --hero-bg-xl: url("./assets/img/bg/HOME_DESKTOP.webp");
  --hero-pos: center;
  --hero-pos-mobile: center top;
}

body[data-page="enf"] .section.hero {
  --hero-bg: url("./assets/img/bg/PedIn_Enf_Desktop.webp");
  --hero-bg-mobile: url("./assets/img/bg/PEDIN_ENF_MOBILE.webp");
  --hero-bg-xl: url("./assets/img/bg/PedIn_Enf_Desktop.webp");
  --hero-pos: center 35%;
  --hero-pos-mobile: center top;
}

body[data-page="med"] .section.hero {
  --hero-bg: url("./assets/img/bg/PEDIN_DESKTOP.webp");
  --hero-bg-mobile: url("./assets/img/bg/PEDIN_MOBILE.webp");
  --hero-bg-xl: url("./assets/img/bg/PEDIN_DESKTOP.webp");
  --hero-pos: center 30%;
  --hero-pos-mobile: center top;
}

.hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero__title {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-5);
  line-height: 1.08;
  letter-spacing: -0.03em;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text) 88%, var(--brand)),
    color-mix(in srgb, var(--text) 70%, var(--brand)),
    color-mix(in srgb, var(--text) 78%, var(--brand-2))
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title::after {
  content: "";
  display: block;
  width: min(220px, 58%);
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgb(var(--brand-rgb) / 0),
    rgb(var(--brand-rgb) / 0.38),
    rgb(var(--brand2-rgb) / 0.18),
    rgb(var(--brand-rgb) / 0)
  );
  filter: blur(0.2px);
}

.hero__text {
  margin: 0 0 var(--space-3);
  color: var(--muted);
  max-width: 70ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-4);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-4);
}

.hero--course .hero__title {
  font-size: clamp(2rem, 1.7rem + 2.4vw, 3.1rem);
}

.eyebrow {
  padding-top: 14px;
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* Pills */
.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.pill__icon {
  display: inline-flex;
}

.hero__trust .pill:nth-child(1) {
  border-color: color-mix(in srgb, var(--brand-2) 22%, var(--border));
  box-shadow: var(--glow-green);
}

.hero__trust .pill:nth-child(1) .pill__icon {
  color: var(--brand-2);
}

.hero__trust .pill:nth-child(2) {
  border-color: color-mix(in srgb, var(--brand) 18%, var(--border));
  box-shadow: var(--glow-brand);
}

.hero__trust .pill:nth-child(2) .pill__icon {
  color: var(--brand);
}

/* Media card */
.media-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.media-card__img--down {
  object-position: center 14%;
}

.media-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.hero__media .media-card::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 62% 42%, rgb(var(--warn-rgb) / 0.16), transparent 58%),
    radial-gradient(circle at 60% 40%, rgb(var(--brand-rgb) / 0.1), transparent 62%);
  border-radius: 999px;
  filter: blur(2px);
  opacity: 1;
}

.hero__media .media-card > img,
.hero__media .media-card > picture {
  position: relative;
  z-index: 1;
}

.media-card__overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.14), rgb(0 0 0 / 0.22)),
    color-mix(in srgb, var(--bg) 68%, transparent);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  max-width: calc(100% - 28px);
  box-sizing: border-box;
}

.media-card__title {
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.media-card__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================================
   Grid / Cards
   ========================================================= */

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid > * {
  min-width: 0;
}

.grid--features,
.grid--courses,
.grid--specialists,
.grid--contact,
.grid--benefits {
  grid-template-columns: 1fr;
}

/* Contact head centralizado */
.section__head:has(+ .grid--contact) {
  text-align: center;
  margin-inline: auto;
  max-width: 900px;
}

.section__head:has(+ .grid--contact) .section__subtitle {
  margin-inline: auto;
}

.grid--contact > :only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(680px, 100%);
}

.section__head:has(+ .grid--contact),
.grid--contact {
  max-width: 900px;
  margin-inline: auto;
}

@media (min-width: 700px) {
  .grid--features,
  .grid--benefits,
  .grid--contact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .grid--features,
  .grid--benefits {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--courses,
  .grid--specialists {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  box-shadow: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  background: var(--glass-2);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.card__title {
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
  font-size: var(--fs-3);
}

.card__text {
  margin: 0 0 var(--space-2);
  color: var(--muted);
}

.card--soft {
  background: color-mix(in srgb, var(--glass) 78%, transparent);
}

/* Features */
.feature {
  padding: var(--space-5);
}

.feature__icon {
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-3);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
}

.grid--features .feature:nth-child(4) .feature__icon {
  background: color-mix(in srgb, var(--brand-2) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand-2) 18%, transparent);
  color: var(--brand-2);
}

.grid--features .feature:nth-child(7) .feature__icon {
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border-color: color-mix(in srgb, var(--warn) 16%, transparent);
  color: color-mix(in srgb, var(--text) 88%, var(--warn));
}

/* =========================================================
   Courses
   ========================================================= */

.course {
  padding: 0;
  overflow: hidden;
}

.course__media {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  background: transparent;
  padding: 0;
  aspect-ratio: 16 / 9;
}

.course__media::before {
  display: none;
}

.course__media-cardimg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.course > :not(.course__media) {
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.course__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding-top: var(--space-5);
}

.course__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-4);
  padding-bottom: var(--space-5);
}

@media (max-width: 720px) {
  .course__media {
    aspect-ratio: unset;
    min-height: unset;
    height: auto;
  }

  .course__media-cardimg {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .course__top {
    padding-top: 18px;
  }
}

/* =========================================================
   Specialists
   ========================================================= */

.specialist {
  padding: 0;
  overflow: hidden;
}

.specialist__media {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.specialist__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.specialist__body {
  padding: var(--space-5);
}

.specialist__role {
  margin: -6px 0 var(--space-3);
  color: var(--muted);
  font-weight: 600;
}

/* =========================================================
   Manifesto
   ========================================================= */

/* Mantém logo na esquerda e texto na direita */
.manifesto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
}

/* Remove o círculo do container da logo */
.manifesto__logoWrap {
  width: auto;
  height: auto;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: block;
  flex: 0 0 auto;
}

/* A logo fica livre (sem moldura) */
.manifesto__logo {
  width: clamp(120px, 16vw, 170px);
  height: auto;
  border-radius: 0;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 22px rgb(0 0 0 / 0.18));
}

.manifesto__text {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.15rem, 1.05rem + 0.9vw, 1.75rem);
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
}

/* =========================================================
   Callout
   ========================================================= */

.callout {
  border-radius: 26px;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  background:
    radial-gradient(700px 350px at 20% 20%, rgb(var(--brand-rgb) / 0.16), transparent 55%),
    radial-gradient(700px 350px at 92% 10%, rgb(var(--danger-rgb) / 0.08), transparent 60%),
    radial-gradient(700px 350px at 55% 85%, rgb(var(--warn-rgb) / 0.08), transparent 60%),
    radial-gradient(700px 350px at 10% 90%, rgb(var(--brand2-rgb) / 0.08), transparent 60%),
    var(--glass);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.callout__quote {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: var(--fs-2);
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}

.callout__title {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-4);
  letter-spacing: -0.03em;
}

.callout__text p {
  margin: 0 0 var(--space-3);
  color: var(--muted);
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
}

.callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-4);
  justify-content: center;
}

@media (max-width: 720px) {
  .section--callout .callout__actions {
    flex-direction: column;
    align-items: center;
  }

  .section--callout .callout__actions .btn {
    width: 100%;
    max-width: 420px;
  }
}

/* =========================================================
   Badges / Prose
   ========================================================= */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.badge--soft {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand) 18%, transparent);
  color: color-mix(in srgb, var(--text) 92%, var(--brand));
}

.hero--course .badges .badge:nth-child(1) {
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  border-color: color-mix(in srgb, var(--warn) 16%, transparent);
}

.prose p {
  margin: 0 0 var(--space-3);
  color: var(--muted);
}

.prose strong {
  color: var(--text);
}

/* =========================================================
   Contact
   ========================================================= */

.contact__items {
  display: grid;
  gap: 10px;
  margin-top: var(--space-4);
}

.link-row {
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.link-row:hover {
  background: var(--glass);
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.link-row span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.link-row__icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--border);
}

/* Form */
.form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form,
.form__row {
  width: 100%;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 700px) {
  .form__row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  color: var(--text);
}

html[data-theme="light"] .input {
  background: #fff;
}

.input::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.form__hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 700px) {
  .form__row .btn {
    width: 100%;
  }
}

/* Note */
.note {
  margin-top: var(--space-5);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--muted);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 800;
  text-shadow: 0 0 18px rgb(var(--brand-rgb) / 0.16);
}

/* =========================================================
   CTA block / Guarantee / Placeholder / Accordion
   ========================================================= */

.cta {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 980px) {
  .cta {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.cta__title {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-4);
  letter-spacing: -0.03em;
}

.cta__price {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-size: var(--fs-2);
}

.cta__price strong {
  color: var(--text);
  font-size: var(--fs-3);
}

.cta__meta {
  margin: 0;
  color: var(--muted);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-4);
}

.guarantee {
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr;
  align-items: start;
  padding: var(--space-5);
  border-radius: var(--radius);
  background:
    radial-gradient(700px 340px at 18% 10%, rgb(var(--brand-rgb) / 0.10), transparent 60%),
    radial-gradient(700px 340px at 82% 90%, rgb(var(--brand2-rgb) / 0.08), transparent 62%),
    var(--glass);
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
}

.guarantee__icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--brand);
  box-shadow: var(--glow-brand);
}

.placeholder {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.placeholder__icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand);
}

/* Accordion */
.accordion {
  display: grid;
  gap: 10px;
}

.accordion__item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.accordion__trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
}

.accordion__trigger:hover {
  background: var(--glass-2);
}

.accordion__icon {
  width: 18px;
  height: 18px;
  position: relative;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 200ms ease;
}

.accordion__icon::after {
  transform: rotate(90deg);
}

.accordion__item.is-open .accordion__icon::after {
  transform: rotate(0deg);
}

.accordion__item.is-open {
  border-color: color-mix(in srgb, var(--brand) 18%, var(--border));
  box-shadow: var(--shadow-soft);
}

.accordion__panel {
  padding: 0 16px 16px;
  color: var(--muted);
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--bg) 88%, rgb(0 0 0 / 0.2)) 100%
  );
}

.footer__grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 800px) {
  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    align-items: start;
  }
}

.footer__brand {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer__title {
  margin: 0 0 10px;
  font-weight: 700;
}

.footer__text {
  margin: 0 0 6px;
  color: var(--muted);
}

.footer__links {
  display: grid;
  gap: 8px;
}

.footer__links a {
  color: color-mix(in srgb, var(--muted) 92%, transparent);
  transition: color 160ms ease, transform 160ms ease;
}

.footer__links a:hover {
  color: color-mix(in srgb, var(--text) 78%, var(--brand));
  transform: translateY(-1px);
}

.footer__bottom {
  margin-top: var(--space-5);
  color: var(--muted);
}

/* =========================================================
   FABs
   ========================================================= */

.fab {
  position: fixed;
  right: 16px;
  z-index: 80;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.fab__icon {
  display: inline-flex;
}

.fab__label {
  font-weight: 700;
  font-size: 0.95rem;
}

.fab--whatsapp {
  bottom: 16px;
}

.fab--top {
  bottom: 74px;
  opacity: 0;
  pointer-events: none;
}

.fab--top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft), var(--focus);
}

.center {
  display: flex;
  justify-content: center;
}

/* =========================================================
   Reveal animations
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 480ms ease, transform 480ms ease;
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Interações: Readbar + CTA sheen/pulse + Tilt cards
   ========================================================= */

.readbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  z-index: 9999;
}

.readbar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform-origin: left;
}

/* CTA sheen + pulse */
.btn--cta {
  position: relative;
  overflow: hidden;
}

.btn--cta::before {
  content: "";
  position: absolute;
  inset: -45% -60%;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgb(255 255 255 / 0.22) 45%,
    transparent 55%
  );
  transform: translateX(-60%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
}

.btn--cta.is-sheen::before {
  animation: sheen 2.4s ease-in-out infinite;
  opacity: 1;
}

@keyframes sheen {
  0% {
    transform: translateX(-70%) rotate(8deg);
    opacity: 0;
  }
  20% {
    opacity: 0.65;
  }
  55% {
    opacity: 0.15;
  }
  100% {
    transform: translateX(70%) rotate(8deg);
    opacity: 0;
  }
}

.btn--cta.is-pulse {
  animation: pulseOnce 0.7s ease-out 1;
}

@keyframes pulseOnce {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-1px) scale(1.03);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Tilt */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(closest-side, rgb(var(--brand-rgb) / 0.35), transparent 70%);
  transform: translate(var(--gx, 0px), var(--gy, 0px));
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.tilt-card.is-active .tilt-card__glow {
  opacity: 1;
}

.tilt-card > :not(.tilt-card__glow) {
  position: relative;
  transform: translateZ(18px);
}

/* =========================================================
   CTA Preço
   ========================================================= */

#preco .cta__price.cta__price--strong {
  display: grid;
  gap: 6px;
  align-items: start;
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-size: var(--fs-2);
  max-width: 52ch;
}

#preco .cta__was {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  width: fit-content;
  position: relative;
  opacity: 0.9;
}

#preco .cta__was .muted {
  font-size: 0.93em;
}

#preco .cta__was::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 1.8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--danger) 68%, transparent);
  opacity: 0.7;
  transform: rotate(-1deg);
  pointer-events: none;
}

#preco .cta__now {
  display: inline-block;
  width: fit-content;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
  font-size: clamp(2.6rem, 2.1rem + 3vw, 4.1rem);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, #ffffff 92%, var(--brand)),
    color-mix(in srgb, #ffffff 78%, var(--brand)),
    color-mix(in srgb, #ffffff 74%, var(--brand-2))
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 14px 42px rgb(0 0 0 / 0.28);
  position: relative;
}

#preco .cta__now::after {
  content: "";
  position: absolute;
  inset: -18% -10%;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 40% 40%, rgb(var(--brand-rgb) / 0.25), transparent 62%),
    radial-gradient(circle at 70% 70%, rgb(var(--brand2-rgb) / 0.18), transparent 64%),
    radial-gradient(circle at 55% 50%, rgb(var(--warn-rgb) / 0.14), transparent 66%);
  filter: blur(10px);
  opacity: 0.9;
  pointer-events: none;
}

html[data-theme="light"] #preco .cta__now {
  text-shadow: 0 12px 34px rgb(10 18 32 / 0.14);
}

#preco .cta__terms {
  font-size: 0.98em;
}

@media (max-width: 520px) {
  #preco .cta__price.cta__price--strong {
    gap: 4px;
  }

  #preco .cta__terms {
    font-size: 0.95em;
  }
}

/* =========================================================
   Botão CTA principal
   ========================================================= */

.btn--highlight {
  padding: 16px 22px;
  border-radius: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  border-color: transparent;
  color: #0c0f14;
  min-height: 54px;
  background:
    radial-gradient(900px 260px at 30% 0%, rgb(var(--warn-rgb) / 0.26), transparent 60%),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--brand) 92%, #ffffff 0%),
      color-mix(in srgb, var(--brand-2) 70%, var(--brand))
    );
  box-shadow: var(--glow-brand), 0 18px 44px rgb(0 0 0 / 0.18);
  transform: translateZ(0);
  will-change: transform;
  position: relative;
}

.btn--highlight::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  pointer-events: none;
  border: 1px solid rgb(255 255 255 / 0.22);
  opacity: 0.55;
}

.btn--highlight:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: var(--glow-brand), 0 24px 54px rgb(var(--brand-rgb) / 0.2);
}

.btn--highlight:active {
  transform: translateY(0) scale(0.995);
}

.btn--highlight:focus-visible {
  box-shadow: var(--focus), 0 0 0 1px rgb(255 255 255 / 0.22), var(--glow-brand);
}

@media (max-width: 700px) {
  .cta__actions .btn--highlight {
    width: 100%;
  }
}

.btn--cta-float {
  position: relative;
  animation: ctaFloat 1.8s ease-in-out infinite;
}

@keyframes ctaFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-2px) scale(1.015);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn--cta-float {
    animation: none !important;
  }

  .btn--highlight,
  .btn--highlight:hover,
  .btn--highlight:active {
    transform: none !important;
  }
}

/* =========================================================
   Split sections
   ========================================================= */

.section.section--split {
  position: relative;
  isolation: isolate;
  padding-block: var(--space-8);
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  box-shadow: 0 18px 55px rgb(0 0 0 / 0.18);
}

.section.section--split::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--split-bg);
}

.section.section--split::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.18), transparent 40%),
    linear-gradient(0deg, rgb(0 0 0 / 0.18), transparent 40%);
  opacity: var(--split-fade, 0.55);
}

.section.section--split > .container {
  padding-inline: clamp(12px, 2vw, 18px);
}

/* HERO não usa split */
.section.hero.section--split::before,
.section.hero.section--split::after {
  display: none;
}

/* CLARO */
main > .section.section--split:nth-of-type(odd),
.section.section--split:nth-of-type(odd) {
  --bg: var(--split-light-bg);
  --text: var(--split-light-text);
  --muted: var(--split-light-muted);
  --border: var(--split-light-border);
  --surface: var(--split-light-surface);
  --surface-2: var(--split-light-surface2);

  --glass: color-mix(in srgb, var(--surface) 86%, transparent);
  --glass-2: color-mix(in srgb, var(--surface-2) 86%, transparent);

  --split-bg:
    radial-gradient(900px 520px at 18% 18%, rgb(var(--brand-rgb) / 0.10), transparent 64%),
    radial-gradient(900px 520px at 86% 84%, rgb(var(--brand2-rgb) / 0.06), transparent 66%),
    linear-gradient(
      180deg,
      var(--split-light-bg),
      color-mix(in srgb, var(--split-light-bg) 92%, rgb(var(--brand-rgb) / 1))
    );

  --split-fade: 0.28;
}

/* ESCURO */
main > .section.section--split:nth-of-type(even),
.section.section--split:nth-of-type(even) {
  --bg: var(--split-dark-bg);
  --text: var(--split-dark-text);
  --muted: var(--split-dark-muted);
  --border: var(--split-dark-border);
  --surface: var(--split-dark-surface);
  --surface-2: var(--split-dark-surface2);

  --glass: color-mix(in srgb, var(--surface) 78%, transparent);
  --glass-2: color-mix(in srgb, var(--surface-2) 72%, transparent);

  --split-bg:
    radial-gradient(900px 520px at 18% 18%, rgb(var(--brand-rgb) / 0.22), transparent 62%),
    radial-gradient(900px 520px at 86% 84%, rgb(var(--brand2-rgb) / 0.18), transparent 64%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 86%, #000), var(--bg));

  --split-fade: 0.60;
}

/* Ajustes finos no claro */
.section.section--split:nth-of-type(odd) .btn--secondary,
.section.section--split:nth-of-type(odd) .pill,
.section.section--split:nth-of-type(odd) .card,
.section.section--split:nth-of-type(odd) .badge,
.section.section--split:nth-of-type(odd) .note,
.section.section--split:nth-of-type(odd) .accordion__item,
.section.section--split:nth-of-type(odd) .guarantee {
  box-shadow: 0 10px 28px rgb(12 15 20 / 0.10);
  background: color-mix(in srgb, #ffffff 70%, transparent);
  border-color: color-mix(in srgb, var(--border) 80%, transparent);
}

.section.section--split:nth-of-type(odd) .manifesto {
  background: color-mix(in srgb, #ffffff 70%, transparent);
  border-color: color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: 0 10px 28px rgb(12 15 20 / 0.10);
}

.section.section--split:nth-of-type(odd) .manifesto__text {
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
}

/* Fix: textos fixos brancos no split claro (odd) */
.section.section--split:nth-of-type(odd) .course__media-title {
  color: var(--text);
}

.section.section--split:nth-of-type(odd) .course__media-subtitle {
  color: color-mix(in srgb, var(--text) 82%, transparent);
}

.section.section--split:nth-of-type(odd)
  :where(.media-card__title, .drawer__title, .brand, .nav__link, .accordion__trigger) {
  color: var(--text);
}

.section.section--split:nth-of-type(odd)
  :where(.media-card__subtitle, .card__text, .section__subtitle, .muted, .cta__meta, .cta__price) {
  color: var(--muted);
}

.section.section--split:nth-of-type(odd) :is(h1, h2, h3, h4) {
  color: var(--text);
}

.section.section--split:nth-of-type(odd) :is(p, li) {
  color: var(--muted);
}

.section.section--split:nth-of-type(odd) :is(article, .contact, .contact__items) {
  color: var(--text);
}

.section.section--split:nth-of-type(odd)
  :is(article p, article li, article a, .contact__items a, .link-row span) {
  color: var(--text);
}

.section.section--split:nth-of-type(odd) :is(article ul, article ol) {
  color: var(--muted);
}

/* Mobile */
@media (max-width: 720px) {
  .section.section--split {
    padding-block: var(--space-7);
  }

  .section.section--split > .container {
    padding-inline: 12px;
  }
}

/* =========================================================
   Ticker / Marquee
   ========================================================= */

.ticker {
  position: relative;
  margin: 0;
  padding: 0;
}

.ticker__mask {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-top: 1px solid color-mix(in srgb, rgb(var(--brand-rgb) / 0.55), transparent);
  border-bottom: 1px solid color-mix(in srgb, rgb(var(--brand-rgb) / 0.55), transparent);
  background:
    radial-gradient(900px 120px at 20% 40%, rgb(255 255 255 / 0.20), transparent 60%),
    radial-gradient(900px 120px at 80% 60%, rgb(0 0 0 / 0.10), transparent 62%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--brand) 92%, #ffffff),
      color-mix(in srgb, var(--brand) 86%, #000000)
    );
  box-shadow: 0 14px 34px rgb(0 0 0 / 0.18);
}

.ticker__mask::before,
.ticker__mask::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 84px;
  z-index: 2;
  pointer-events: none;
}

.ticker__mask::before {
  left: 0;
  background: linear-gradient(90deg, var(--brand), transparent);
}

.ticker__mask::after {
  right: 0;
  background: linear-gradient(270deg, var(--brand), transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tickerMove 26s linear infinite;
}

.ticker__row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.ticker__item {
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: rgb(12 15 20 / 0.92);
  white-space: nowrap;
}

.ticker__dot {
  opacity: 0.65;
  color: rgb(12 15 20 / 0.70);
}

@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 720px) {
  .ticker__row {
    padding: 16px 0;
    gap: 12px;
  }
  .ticker__track {
    animation-duration: 28s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none !important;
    transform: none !important;
  }
  .ticker__mask {
    overflow-x: auto;
  }
  .ticker__mask::before,
  .ticker__mask::after {
    display: none;
  }
}

/* =========================================================
   Mobile: centralizar seção Preço (enf + med)
   ========================================================= */

@media (max-width: 720px) {
  #preco .cta__left {
    text-align: center;
  }

  #preco .cta__left :is(.eyebrow, .cta__title, .cta__meta, .cta__price) {
    margin-left: auto;
    margin-right: auto;
  }

  #preco .cta__was {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  #preco .cta__now {
    margin-left: auto;
    margin-right: auto;
  }

  #preco .cta__actions {
    justify-content: center;
  }

  #preco .cta__actions .btn {
    width: 100%;
    max-width: 420px;
  }

  #preco .checklist {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 36ch;
  }
}

/* =========================================================
   HERO: modo mobile com banner separado
   ========================================================= */

.hero__banner {
  display: none;
}

@media (max-width: 720px) {
  .section.hero {
    min-height: unset;
    padding-top: 0;
    padding-bottom: var(--space-6);
  }

  .section.hero::before,
  .section.hero::after {
    display: none;
  }

  .hero__banner {
    display: block;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: clamp(280px, 62vw, 520px);
    background-image: var(--hero-bg-mobile);
    background-repeat: no-repeat;
    background-position: var(--hero-pos-mobile, center top);
    background-size: cover;
  }

  @media (max-width: 720px) {
  .hero__banner {
    height: clamp(240px, 80vw, 640px);
  }

  .hero--course .hero__banner {
    height: clamp(316px, 80vw, 640px);
  }
}

  .section.hero .container {
    padding-top: var(--space-5);
  }

  .hero__grid {
    gap: var(--space-5);
  }
}

/* =========================================================
   Depoimentos - somente imagens em colunas (sem cards)
   ========================================================= */

.testimonials__columns {
  column-count: 1;
  column-gap: var(--space-4);
}

@media (min-width: 720px) {
  .testimonials__columns {
    column-count: 2; /* esquerda e direita */
  }
}

/* Imagens em colunas: evitar quebra estranha */
.testimonials__columns .testimonials__img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 var(--space-4);
  break-inside: avoid;
  page-break-inside: avoid;

  /* sem “card”, só um acabamento leve */
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
}

/* Hover bem sutil (opcional, pode remover) */
.testimonials__columns .testimonials__img:hover {
  transform: translateY(-1px);
  transition: transform 160ms ease;
}

/* Centralizar tudo do lado esquerdo do preço (desktop + mobile) */
#preco .cta__left {
  text-align: center;
}

/* Centraliza os blocos e limita largura para ficar bonito */
#preco .cta__left :is(.eyebrow, .cta__title, .cta__meta, .cta__price, .cta__price--strong) {
  margin-left: auto;
  margin-right: auto;
}

/* Centraliza os pedaços internos do preço */
#preco .cta__was {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

#preco .cta__now {
  margin-left: auto;
  margin-right: auto;
}

/* Centraliza os botões */
#preco .cta__actions {
  justify-content: center;
}

/* Opcional: deixar os botões com largura consistente */
#preco .cta__actions .btn {
  width: 100%;
  max-width: 420px;
}

.hero__logo {
  width: clamp(140px, 16vw, 220px);
  height: auto;
  display: block;
  margin: 0 0 var(--space-3);
  filter: drop-shadow(0 12px 22px rgb(0 0 0 / 0.35));
}

@media (max-width: 720px) {
  .hero__logo {
    margin-left: auto;
    margin-right: auto;
    display: none;
  }
}

.guarantee__seal {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.18));
}

/* Bloco das imagens (tarja + pagamentos) no CTA */
.cta__trustbar {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 6px auto var(--space-3);
}

.cta__trustbar-img {
  display: block;
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.18));
}

/* Ajuste fino de largura (pra ficar parecido com sua referência) */
.cta__trustbar-img--security {
  width: min(560px, 100%);
}

.cta__trustbar-img--payments {
  width: min(460px, 100%);
  opacity: 0.95;
}

/* "sr-only" para esconder só visualmente */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Garantia: selo central em cima + texto abaixo (maior) */
.guarantee {
  grid-template-columns: 1fr; /* antes: auto 1fr */
  justify-items: center;
  text-align: center;
}

.guarantee__icon {
  width: clamp(186px, 10vw, 228px);  /* aumenta o container */
  height: clamp(186px, 10vw, 228px);
  border-radius: 22px;             /* mantém premium */
  margin-bottom: var(--space-3);
}

.guarantee__seal {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Opcional: limitar largura do texto pra ficar bonito */
.guarantee > div:last-child {
  max-width: 72ch;
}

/* Opcional: deixar o subtítulo um pouco maior */
.guarantee .section__subtitle {
  font-size: var(--fs-2);
}

/* =========================================================
   HERO (mobile): degradê no topo do primeiro container
   ========================================================= */

@media (max-width: 720px) {
  .section.hero .container {
    position: relative;
  }

  /* Degradê que nasce no topo do container e some para baixo */
  .section.hero .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% - 50vw);
    width: 100vw;
    height: 62px; /* ajuste a altura do degradê */
    pointer-events: none;
    z-index: 1;

    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgb(12 15 20 / 0.35) 45%,
      transparent 100%
    );
  }

  /* Garante que o conteúdo fique acima do degradê */
  .section.hero .container > * {
    position: relative;
    z-index: 2;
  }
}

.course__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.course__media-cardimg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 720px) {
  .course__media {
    aspect-ratio: unset;
    min-height: unset;
    height: auto;
  }

  .course__media picture,
  .course__media-cardimg {
    height: auto;
  }

  .course__media-cardimg {
    object-fit: contain;
  }
}