
/* ---------- Tokens ---------- */
:root {
  /* paleta do projeto (RGB para permitir opacidade) */
  --primary: 53, 178, 251;      /* #35B2FB — principal: fundos, botões, ícones, bordas */
  --secondary: 0, 17, 35;       /* #001123 — secundária: textos, rodapé, painéis escuros */
  --accent: 200, 165, 110;      /* #C8A56E — detalhes: selos, estrelas, realces */
  --deep: 2, 42, 132;           /* #022A84 — complementar: textos em destaque sobre branco */
  --on-brand: 255, 255, 255;    /* #FFFFFF — texto sobre as cores do projeto */

  /* cores de estado (só para feedback: erro e sucesso) */
  --success: 86, 202, 0;
  --error: 255, 76, 81;

  /* superfícies */
  --bg: 255, 255, 255;
  --bg-alt: 243, 248, 252;      /* azul muito claro derivado da principal */
  --surface: 255, 255, 255;
  --on-surface: 0, 17, 35;      /* textos usam a secundária com opacidade */
  --footer-bg: 0, 17, 35;

  --high: 0.87;
  --medium: 0.68;
  --disabled: 0.38;
  --border-opacity: 0.12;

  /* sombras (umbra / penumbra / ambient) */
  --sh-umbra: rgba(var(--on-surface), 0.08);
  --sh-penumbra: rgba(var(--on-surface), 0.12);
  --sh-ambient: rgba(var(--on-surface), 0.04);
  --elevation-3: 0 4px 14px -4px var(--sh-umbra), 0 4px 8px -4px var(--sh-penumbra), 0 4px 8px -4px var(--sh-ambient);
  --elevation-6: 0 4px 5px -2px var(--sh-umbra), 0 2px 10px 1px var(--sh-penumbra), 0 2px 16px 1px var(--sh-ambient);
  --elevation-12: 0 7px 8px -4px var(--sh-umbra), 0 12px 17px 2px var(--sh-penumbra), 0 5px 22px 4px var(--sh-ambient);

  --radius: 6px;
  --radius-btn: 5px;
  --radius-lg: 12px;
  --font: "Inter", sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --navbar-h: 72px;
  --container: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: light;
}

::selection { background: rgba(var(--primary), 0.3); color: rgb(var(--secondary)); }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.0094rem;
  color: rgba(var(--on-surface), var(--medium));
  background: rgb(var(--bg));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: rgba(var(--on-surface), var(--high));
  font-weight: 500;
  line-height: 1.25;
}

p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: rgb(var(--deep)); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid rgb(var(--primary));
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* destaques de título: degradê da principal para a complementar (garante leitura sobre branco) */
.text-primary,
.text-gradient {
  background: linear-gradient(90deg, rgb(var(--primary)) 0%, rgb(var(--deep)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: -100px; left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: rgb(var(--deep));
  color: rgb(var(--on-brand));
}
.skip-link:focus { top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn .mdi { font-size: 1.125rem; line-height: 1; }

.btn--primary {
  background: rgb(var(--primary));
  color: rgb(var(--on-brand));
  font-weight: 600;
  box-shadow: 0 4px 14px -4px rgba(var(--primary), 0.55), var(--elevation-3);
}
.btn--primary:hover { background: rgb(var(--deep)); box-shadow: 0 6px 18px -4px rgba(var(--deep), 0.55); transform: translateY(-1px); }

.btn--tonal { background: rgba(var(--primary), 0.14); color: rgb(var(--deep)); }
.btn--tonal:hover { background: rgba(var(--primary), 0.24); }

.btn--outlined { background: transparent; color: rgb(var(--deep)); box-shadow: inset 0 0 0 1px rgba(var(--primary), 0.7); }
.btn--outlined:hover { background: rgba(var(--primary), 0.1); }

.btn--outlined-light { background: transparent; color: rgb(var(--on-brand)); box-shadow: inset 0 0 0 1px rgba(var(--on-brand), 0.6); }
.btn--outlined-light:hover { background: rgba(var(--on-brand), 0.1); }

.btn--sm { height: 32px; padding: 0 0.875rem; font-size: 0.8125rem; }
.btn--lg { height: 44px; padding: 0 1.5rem; font-size: 0.9375rem; }
.btn--block { display: flex; width: 100%; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(var(--on-surface), var(--medium));
  font-size: 1.375rem;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(var(--on-surface), 0.06); color: rgba(var(--on-surface), var(--high)); }
.icon-btn--outlined { box-shadow: inset 0 0 0 1px rgba(var(--on-surface), var(--border-opacity)); }
.icon-btn--outlined:hover { color: rgb(var(--deep)); box-shadow: inset 0 0 0 1px rgba(var(--primary), 0.7); }

/* ---------- Chips & avatares ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 30px;
  padding: 0 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.chip--sm { height: 24px; padding: 0 0.625rem; font-size: 0.75rem; }
.chip--primary { background: rgba(var(--primary), 0.14); color: rgb(var(--deep)); }
.chip--accent { background: rgba(var(--accent), 0.22); color: rgb(var(--secondary)); }
.chip--accent .mdi { color: rgb(var(--accent)); filter: brightness(0.75); }
.chip--solid-accent { background: rgb(var(--accent)); color: rgb(var(--secondary)); }

.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: var(--radius);
  font-size: 1.5rem;
}
.avatar--sm { width: 34px; height: 34px; font-size: 1.125rem; }
.avatar--lg { width: 52px; height: 52px; font-size: 1.75rem; }
.avatar--primary   { background: rgba(var(--primary), 0.14);   color: rgb(var(--primary)); }
.avatar--deep      { background: rgba(var(--deep), 0.1);       color: rgb(var(--deep)); }
.avatar--accent    { background: rgba(var(--accent), 0.2);     color: #a8844a; } /* detalhes, escurecido para ícone */
.avatar--secondary { background: rgba(var(--secondary), 0.08); color: rgb(var(--secondary)); }
.avatar--on-primary { background: rgba(var(--on-brand), 0.16); color: rgb(var(--on-brand)); }

.avatar-group { display: flex; flex-shrink: 0; }
.avatar-group img,
.avatar-group__more {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid rgb(var(--bg));
  margin-inline-start: -10px;
  background: rgba(var(--primary), 0.16);
}
.avatar-group img:first-child { margin-inline-start: 0; }
.avatar-group__more {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(var(--on-brand));
  background: rgb(var(--deep));
}

.rating { color: rgb(var(--accent)); font-size: 1rem; white-space: nowrap; }
.rating .mdi { margin-inline-end: -2px; }

/* ---------- Card ---------- */
.card {
  background: rgb(var(--surface));
  border-radius: var(--radius);
  box-shadow: var(--elevation-6);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--navbar-h);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), height 0.25s var(--ease);
}
/* o desfoque fica num pseudo-elemento: backdrop-filter no próprio header
   prenderia o menu mobile (position: fixed) à altura da barra */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(var(--surface), 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.navbar.is-scrolled {
  --navbar-h: 64px;
  box-shadow: var(--elevation-3);
}
.navbar.is-scrolled::before { opacity: 1; }
.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: rgb(var(--primary));
  font-size: 1rem;
}
.brand:hover { text-decoration: none; }
.brand__logo { display: inline-flex; font-size: 1rem; line-height: 0; }
.brand__name {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: rgba(var(--on-surface), var(--high));
}
.brand--light .brand__name { color: rgb(var(--on-brand)); }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 0.25rem; }
.nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: rgba(var(--on-surface), var(--high));
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link:hover { text-decoration: none; color: rgb(var(--deep)); }
.nav__link.is-active { color: rgb(var(--deep)); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: rgb(var(--primary));
}

.navbar__actions { display: flex; align-items: center; gap: 0.5rem; margin-inline-start: auto; }
.nav { margin-inline-start: auto; }
.nav + .navbar__actions { margin-inline-start: 0; }
.nav-toggle { display: none; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 45; /* abaixo da navbar (50), que contém o menu lateral */
  background: rgba(var(--secondary), 0.55);
  animation: fade-in 0.2s var(--ease);
}
.nav-scrim[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--navbar-h) + 4rem) 0 7rem;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(var(--primary), 0.18) 0%, transparent 70%),
    radial-gradient(40% 50% at 0% 80%, rgba(var(--accent), 0.12) 0%, transparent 70%),
    rgb(var(--bg-alt));
  overflow: hidden;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3rem;
}
.hero__title {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.125rem, 4.4vw, 3.375rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03rem;
}
.hero__subtitle { max-width: 34rem; font-size: 1.125rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__proof { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; font-size: 0.9375rem; }
.hero__proof strong { color: rgba(var(--on-surface), var(--high)); }

.hero__media { position: relative; }
.hero__media > img { position: relative; z-index: 1; width: 100%; max-width: 560px; margin-inline: auto; }
.hero__blob {
  position: absolute;
  inset: 8% 10% 12%;
  border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
  background: linear-gradient(135deg, rgba(var(--primary), 0.24), rgba(var(--deep), 0.06));
  animation: blob 12s ease-in-out infinite alternate;
}
@keyframes blob {
  50% { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; transform: rotate(6deg) scale(1.03); }
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: rgb(var(--surface));
  box-shadow: var(--elevation-12);
  animation: float 5s ease-in-out infinite;
}
.float-card small { display: block; font-size: 0.75rem; }
.float-card strong { display: block; color: rgba(var(--on-surface), var(--high)); font-size: 0.9375rem; font-weight: 600; }
.float-card--a { top: 40%; right: -2%; }
.float-card--b { bottom: 10%; left: 0; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* transição diagonal para a próxima seção */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(90deg, rgba(var(--primary), 0.1), rgba(var(--deep), 0.06));
  clip-path: polygon(0 0, 100% 70%, 100% 100%, 0 100%);
  pointer-events: none;
}

/* ---------- Seções ---------- */
.section { padding: 6rem 0; }
.section--tight { padding: 4rem 0; }
.section--alt { background: rgb(var(--bg-alt)); }

.section__header { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section__header--left { margin: 0; text-align: start; }
.section__title {
  margin: 1rem 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.01rem;
}
.section__subtitle { font-size: 1.0625rem; }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* recursos */
.feature { padding: 2rem 1.75rem; }
.feature h3 { margin: 1.25rem 0 0.5rem; font-size: 1.25rem; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--elevation-12); }

/* números */
.stats { padding: 0; background: linear-gradient(to bottom, rgb(var(--bg)) 50%, rgb(var(--bg-alt)) 50%); }
.stats__panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(var(--primary), 0.55) 0%, transparent 60%),
    linear-gradient(72deg, rgb(var(--secondary)) 0%, rgb(var(--deep)) 100%);
  box-shadow: 0 12px 30px -10px rgba(var(--deep), 0.55);
  color: rgba(var(--on-brand), 0.85);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; }
.stat .avatar { margin-bottom: 0.5rem; color: rgb(var(--accent)); }
.stat strong { color: rgb(var(--on-brand)); font-size: 2rem; font-weight: 700; line-height: 1.2; }
.stat small { font-size: 0.9375rem; }

/* como funciona */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.steps::before {
  content: "";
  position: absolute;
  top: 26px; left: 16.66%; right: 16.66%;
  border-top: 2px dashed rgba(var(--primary), 0.45);
}
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 1rem; }
.step .avatar { position: relative; z-index: 1; background: rgb(var(--bg-alt)); box-shadow: inset 0 0 0 100px rgba(var(--primary), 0.14); }
.step__num {
  position: absolute;
  top: -8px; left: calc(50% + 18px);
  z-index: 2;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgb(var(--accent));
  color: rgb(var(--secondary));
  font-size: 0.75rem;
  font-weight: 700;
}
.step h3 { margin: 1.25rem 0 0.5rem; font-size: 1.25rem; }

/* depoimentos */
.testimonials__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.slider-controls { display: flex; gap: 0.5rem; }
.slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 3);
  gap: 1.5rem;
  padding: 0.5rem 0.25rem 1.5rem;
  margin: -0.5rem -0.25rem 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.testimonial { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; scroll-snap-align: start; }
.testimonial p { flex: 1; color: rgba(var(--on-surface), var(--high)); font-size: 1rem; text-align: justify;}
.testimonial footer { display: flex; align-items: center; gap: 0.75rem; }
.testimonial footer img { width: 40px; height: 40px; border-radius: 50%; background: rgba(var(--primary), 0.12); }
.testimonial footer strong { display: block; color: rgba(var(--on-surface), var(--high)); font-size: 0.9375rem; font-weight: 600; }
.testimonial footer small { font-size: 0.8125rem; }
.slider-dots { display: flex; justify-content: center; gap: 0.5rem; }
.slider-dots span {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(var(--on-surface), 0.2);
  transition: width 0.25s var(--ease), background-color 0.25s var(--ease);
}
.slider-dots span.is-active { width: 22px; background: rgb(var(--primary)); }

/* equipe */
.member { padding: 1.5rem 1.5rem 1.75rem; text-align: center; }
.member:hover { transform: translateY(-4px); box-shadow: var(--elevation-12); }
.member__photo {
  display: grid;
  place-items: end center;
  height: 180px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.member__photo img { width: 170px; transition: transform 0.35s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05) translateY(-4px); }
.member__photo--primary   { background: rgba(var(--primary), 0.2); }
.member__photo--accent    { background: rgba(var(--accent), 0.28); }
.member__photo--deep      { background: rgba(var(--deep), 0.14); }
.member__photo--secondary { background: rgba(var(--secondary), 0.1); }
.member h3 { font-size: 1.125rem; }
.member p { font-size: 0.9375rem; }

.socials { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.875rem; }
.socials a {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: rgba(var(--on-surface), var(--medium));
  font-size: 1.25rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.socials a:hover { text-decoration: none; background: rgba(var(--primary), 0.14); color: rgb(var(--deep)); }
.socials--light a { color: rgba(var(--on-brand), 0.7); }
.socials--light a:hover { background: rgba(var(--primary), 0.2); color: rgb(var(--on-brand)); }

/* preços */
.billing-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: -1.5rem auto 3rem;
  font-size: 0.9375rem;
  color: rgba(var(--on-surface), var(--high));
}
.billing-toggle label { cursor: pointer; }
.billing-toggle__save {
  position: absolute;
  left: calc(50% + 5.5rem);
  top: -1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  color: rgba(var(--on-surface), var(--disabled));
}
.billing-toggle__save .mdi { margin-top: 0.75rem; font-size: 1.5rem; color: rgb(var(--accent)); }

.switch { position: relative; display: inline-flex; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch__track {
  width: 40px; height: 22px;
  border-radius: 999px;
  background: rgba(var(--on-surface), 0.22);
  transition: background-color 0.2s var(--ease);
}
.switch__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease);
}
.switch input:checked + .switch__track { background: rgb(var(--primary)); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid rgb(var(--primary)); outline-offset: 2px; }

.pricing { align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: none;
  border: 1px solid rgba(var(--on-surface), var(--border-opacity));
  background: #d2d2d2;
}
.plan:hover { box-shadow: var(--elevation-6); }
.plan--popular { border: 2px solid rgb(var(--accent)); box-shadow: var(--elevation-6); background: rgb(var(--secondary)); color: #fff;  }
.plan--popular h3 { color: #fff;}
.plan__badge { position: absolute; top: 1.25rem; right: 1.25rem; }
/* as árvores do Materio são roxas: o filtro gira o matiz para a cor principal */
.plan__img { height: 120px; width: auto; margin-bottom: 1.5rem; filter: hue-rotate(-62deg) saturate(1.15); }
.plan h3 { font-size: 1.5rem; }
.plan__tag { margin-top: 0.25rem; }
.plan__price { display: flex; align-items: flex-start; justify-content: center; margin-top: 1.5rem; color: rgb(var(--primary)); }
.plan__price sup { margin-top: 0.625rem; font-size: 0.9375rem; font-weight: 500; }
.plan__price span { margin: 0 0.25rem; color: rgb(var(--accent)); font-size: 3rem; font-weight: 600; line-height: 1.1; transition: opacity 0.15s var(--ease); }
.plan__price sub { align-self: flex-end; margin-bottom: 0.5rem; font-size: 0.9375rem; font-weight: 500; color: rgb(var(--accent)); }
.plan__billed { min-height: 1.5rem; font-size: 0.8125rem; color: rgba(var(--on-brand)); }
.plan__features { display: grid; gap: 0.875rem; width: 100%; margin: 1.75rem 0 2rem; text-align: start; }
.plan__features li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.9375rem; }
.plan__features .mdi { color: rgb(var(--primary)); font-size: 1.125rem; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  color: rgba(var(--on-surface), var(--high));
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tab .mdi { font-size: 1.25rem; }
.tab:hover { background: rgba(var(--primary), 0.1); color: rgb(var(--deep)); }
.tab.is-active { background: rgb(var(--primary)); color: rgb(var(--on-brand)); font-weight: 600; box-shadow: 0 4px 14px -4px rgba(var(--primary), 0.55); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fade-in 0.25s var(--ease); }

.accordion { border-radius: var(--radius); background: rgb(var(--surface)); box-shadow: var(--elevation-6); overflow: hidden; }
.accordion details { overflow: hidden; }
.accordion details + details { border-top: 1px solid rgba(var(--on-surface), var(--border-opacity)); }
.accordion summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 51px;
  padding: 1rem 3.25rem 1rem 1.25rem;
  color: rgba(var(--on-surface), var(--high));
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "\F0140"; /* mdi-chevron-down */
  position: absolute;
  right: 1.25rem;
  font: normal normal normal 24px/1 "Material Design Icons";
  color: rgba(var(--on-surface), var(--medium));
  transition: transform 0.25s var(--ease);
}
.accordion details[open] > summary { color: rgb(var(--deep)); }
.accordion details[open] > summary::after { transform: rotate(180deg); color: rgb(var(--primary)); }
.accordion summary:hover { color: rgb(var(--deep)); }
.accordion details > p { padding: 0 1.25rem 1.25rem; text-align: justify; }

/* CTA */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 3.5rem 3.5rem 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 100% at 100% 100%, rgba(var(--primary), 0.45) 0%, transparent 70%),
    radial-gradient(50% 70% at 0% 0%, rgba(var(--accent), 0.18) 0%, transparent 70%),
    linear-gradient(120deg, rgb(var(--secondary)) 30%, rgb(var(--deep)) 100%);
  color: rgba(var(--on-brand), 0.8);
  overflow: hidden;
}
.cta__content { padding-bottom: 3.5rem; }
.cta h2 { font-size: clamp(1.625rem, 2.8vw, 2.25rem); font-weight: 700; color: rgb(var(--on-brand)); }
.cta p { margin-top: 0.75rem; font-size: 1.0625rem; }
.cta__media { position: relative; align-self: end; }
/* arco claro atrás da ilustração: os cartões dela são transparentes e sumiriam no fundo escuro */
.cta__media::before {
  content: "";
  position: absolute;
  inset: 8% 6% 0;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(circle at 50% 35%, rgba(var(--on-brand), 0.96) 0%, rgba(var(--on-brand), 0.88) 60%, rgba(var(--primary), 0.35) 100%);
}
.cta__media img { position: relative; width: 100%; max-width: 380px; margin-inline: auto; }

/* contato */
.contact { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 1.5rem; align-items: start; }
.contact__info { display: grid; gap: 1.5rem; }
.contact__card { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; }
.contact__card small { display: block; font-size: 0.8125rem; }
.contact__card a,
.contact__card span:not(.avatar) { color: rgba(var(--on-surface), var(--high)); font-weight: 500; word-break: break-word; }
.contact__form { display: grid; gap: 1.25rem; padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* campos outlined com label flutuante (estilo Vuetify) */
.field { position: relative; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 1rem;
  border: 1px solid rgba(var(--on-surface), 0.22);
  border-radius: var(--radius-btn);
  background: transparent;
  color: rgba(var(--on-surface), var(--high));
  font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { padding-right: 2.75rem; cursor: pointer; }
.field select option { color: rgb(var(--secondary)); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(var(--on-surface), var(--high)); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: rgb(var(--primary)); box-shadow: inset 0 0 0 1px rgb(var(--primary)); }
.field label {
  position: absolute;
  top: 1rem; left: 0.75rem;
  padding: 0 0.25rem;
  color: rgba(var(--on-surface), var(--medium));
  background: rgb(var(--surface));
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.15s var(--ease), color 0.15s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select.has-value + label {
  transform: translateY(-1.6rem) scale(0.75);
}
.field input:focus + label,
.field textarea:focus + label,
.field select:focus + label { color: rgb(var(--deep)); }
.field__icon { position: absolute; top: 1rem; right: 0.875rem; font-size: 1.5rem; color: rgba(var(--on-surface), var(--medium)); pointer-events: none; }
.field__error { display: block; min-height: 0; padding: 0 1rem; font-size: 0.75rem; color: rgb(var(--error)); }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: rgb(var(--error)); box-shadow: inset 0 0 0 1px rgb(var(--error)); }
.field.is-invalid label { color: rgb(var(--error)); }
.field.is-invalid .field__error { margin-top: 0.25rem; }

.checkbox { position: relative; display: flex; align-items: center; gap: 0.625rem; font-size: 0.9375rem; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.checkbox__box {
  display: grid; place-items: center;
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 2px solid rgba(var(--on-surface), var(--medium));
  border-radius: 4px;
  color: rgb(var(--on-brand));
  font-size: 0.875rem;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.checkbox__box .mdi { opacity: 0; transform: scale(0.5); transition: 0.15s var(--ease); }
.checkbox input:checked + .checkbox__box { background: rgb(var(--primary)); border-color: rgb(var(--primary)); }
.checkbox input:checked + .checkbox__box .mdi { opacity: 1; transform: none; }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid rgb(var(--primary)); outline-offset: 2px; }
.checkbox.is-invalid .checkbox__box { border-color: rgb(var(--error)); }
.contact__form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.footer { background: rgb(var(--footer-bg)); color: rgba(var(--on-brand), 0.7); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; padding-block: 4rem 3rem; }
.footer__about p { margin: 1rem 0 1.5rem; max-width: 22rem; }
.footer h4 { margin-bottom: 1rem; color: rgb(var(--accent)); font-size: 1rem; font-weight: 600; }
.footer ul { display: grid; gap: 0.625rem; }
.footer ul a { color: rgba(var(--on-brand), 0.7); transition: color 0.2s var(--ease); }
.footer ul a:hover { color: rgb(var(--on-brand)); text-decoration: none; }
.newsletter { display: flex; gap: 0.5rem; max-width: 22rem; }
.newsletter input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 1rem;
  border: 1px solid rgba(var(--on-brand), 0.2);
  border-radius: var(--radius-btn);
  background: rgba(var(--on-brand), 0.04);
  color: rgb(var(--on-brand));
  font: inherit;
}
.newsletter input::placeholder { color: rgba(var(--on-brand), 0.5); }
.newsletter input:focus { outline: none; border-color: rgb(var(--primary)); }
.newsletter input.is-invalid { border-color: rgb(var(--error)); }
.newsletter .btn { height: 40px; }
.footer__bottom { border-top: 1px solid rgba(var(--accent), 0.25); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; font-size: 0.875rem; }
.footer__bottom .socials { margin: 0; }

/* ---------- Utilitários flutuantes ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  z-index: 40;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(var(--primary));
  color: rgb(var(--on-brand));
  font-size: 1.5rem;
  box-shadow: 0 6px 18px -4px rgba(var(--primary), 0.6);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.toast {
  position: fixed;
  left: 50%; bottom: 1.5rem;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 2rem);
  padding: 0.875rem 1.25rem;
  border-radius: 4px;
  background: rgb(var(--secondary));
  color: rgb(var(--on-brand));
  font-size: 0.9375rem;
  box-shadow: var(--elevation-12);
  transform: translateX(-50%);
  animation: toast-in 0.25s var(--ease);
}
.toast[hidden] { display: none; }
.toast .mdi { color: rgb(var(--success)); font-size: 1.375rem; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Animações de entrada ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

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

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav__link { padding-inline: 0.5rem; font-size: 0.875rem; }
  .nav__link.is-active::after { left: 0.5rem; right: 0.5rem; }
}

@media (max-width: 960px) {
  :root { --navbar-h: 64px; }
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(280px, 82vw);
    margin: 0;
    padding: 5rem 1rem 1.5rem;
    background: rgb(var(--surface));
    box-shadow: var(--elevation-12);
    transform: translateX(-105%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 0.25rem; }
  .nav__link { padding: 0.75rem 1rem; font-size: 1rem; }
  .nav__link.is-active { background: rgba(var(--primary), 0.12); }
  .nav__link.is-active::after { display: none; }
  .navbar__actions { margin-inline-start: auto; }

  .hero { padding-top: calc(var(--navbar-h) + 3rem); }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__cta, .hero__proof { justify-content: center; }
  .hero__proof { text-align: start; }
  .hero__media { max-width: 520px; margin-inline: auto; }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats__panel { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .slider { grid-auto-columns: calc((100% - 1.5rem) / 2); }
  .faq { grid-template-columns: 1fr; }
  .faq__media { max-width: 420px; margin-inline: auto; }
  .cta { grid-template-columns: 1fr; padding: 2.5rem 2rem 0; text-align: center; }
  .cta__content { padding-bottom: 3.5rem; }
  .cta .hero__cta { justify-content: center; }
  .cta__media img { max-width: 300px; }
  .contact { grid-template-columns: 1fr; }
  .contact__info { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .section { padding: 4.5rem 0; }
  .d-none-sm { display: none; }
  .hero__proof { flex-direction: column; gap: 0.75rem; text-align: center; }
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .pricing { max-width: 420px; margin-inline: auto; }
  .steps { gap: 2.5rem; }
  .steps::before { display: none; }
  .slider { grid-auto-columns: 88%; }
  .testimonials__head { flex-direction: column; align-items: flex-start; }
  .slider-controls { display: none; }
  .contact__info { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 1.5rem; }
  .contact__form .btn { justify-self: stretch; }
  .billing-toggle__save { position: static; }
  .billing-toggle { flex-wrap: wrap; margin-top: -1rem; }
  .billing-toggle__save .mdi { display: none; }
  .float-card--a { right: 0; }
  .member__photo { height: 200px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .container { padding-inline: 1rem; }
  .hero__cta .btn { width: 100%; }
  .stats__panel { grid-template-columns: 1fr; }
  .float-card { display: none; }
}

/* ==========================================================================
   Fellowship em Cirurgia Capilar — complementos do template
   (reaproveitam tokens e componentes acima; nenhuma cor nova)
   ========================================================================== */

/* marca: ícone do logo + nome em duas linhas */
.brand img.brand__logo { width: auto; height: 40px; }
.brand__name { display: flex; flex-direction: column; font-size: 1.0625rem; line-height: 1.1; }
.brand__name small { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; color: rgb(var(--deep)); }
.brand--light img.brand__logo { filter: brightness(0) invert(1); }
.brand--light .brand__name small { color: rgb(var(--accent)); }

/* hero centralizado: texto no centro e a foto numa janela larga abaixo,
   que se desfaz num degradê curto na base (só os últimos 15% da foto) */
.hero--centered { padding-bottom: 6rem; }
.hero--centered .hero__content { position: relative; z-index: 2; display: grid; justify-items: center; max-width: 860px; margin-inline: auto; text-align: center; }
.hero--centered .hero__title { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.12; }
.hero--centered .hero__subtitle { max-width: 38rem; }
.hero--centered .hero__cta { justify-content: center; }
.hero--centered .hero__proof { justify-content: center; margin-top: 1.75rem; text-align: start; }
.hero__proof .avatar { border-radius: 50%; }
.hero__window { position: relative; z-index: 1; max-width: 1000px; margin: 3.5rem auto 0; }
.hero__window-glow {
  position: absolute;
  inset: -8% 10% 30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--primary), 0.35), transparent);
  filter: blur(10px);
}
/* filete claro em volta do topo da janela, que também some na base */
.hero__window-frame {
  position: absolute;
  inset: -10px -10px 0;
  z-index: -1;
  border-radius: 38px 38px 0 0;
  background: linear-gradient(to bottom, rgba(var(--surface), 0.9), rgba(var(--surface), 0) 90%);
}
.hero__window-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1358 / 680;
  object-fit: cover;
  border-radius: 28px 28px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
}
.hero__window .float-card { white-space: nowrap; }
.hero__window .float-card--1 { top: 14%; left: -3%; }
.hero__window .float-card--2 { top: 8%; right: -3%; animation-delay: -2.5s; }
.hero__window .float-card--3 { top: 52%; left: -5%; animation-delay: -1.2s; }
.hero__window .float-card--4 { top: 46%; right: -5%; animation-delay: -3.7s; }

/* grade de 2 colunas centralizada */
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.compare, .team { max-width: 880px; margin-inline: auto; }

/* para quem é: texto + lista lado a lado */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split .section__header { margin-bottom: 1.5rem; }
.prose { display: grid; gap: 1rem; font-size: 1.0625rem; text-align: justify; }
.checklist { padding: 2rem; }
.checklist h3 { font-size: 1.25rem; }
.checklist .plan__features { margin: 1.5rem 0 0; }
.plan__features li { align-items: flex-start; }
.plan__features .mdi { margin-top: 0.1rem; }

/* conteúdo programático */
.tabs--center { justify-content: center; }
.tab-panel__intro { max-width: 720px; margin: 0 auto 1.5rem; text-align: center; }
.feature__list { display: grid; gap: 0.5rem; padding-inline-start: 1.125rem; list-style: disc; }
.feature__list li::marker { color: rgb(var(--primary)); }
#cp-teorico .accordion { max-width: 880px; margin-inline: auto; }
.lessons { display: grid; gap: 0.875rem; padding: 0 1.25rem 1.25rem 3rem; list-style: decimal; }
.lessons li::marker { color: rgb(var(--deep)); font-weight: 600; }
.lessons strong { display: block; color: rgba(var(--on-surface), var(--high)); font-weight: 600; }
.lessons span { display: block; font-size: 0.9375rem; }

/* o local: painel claro com a foto do prédio e o logo do Instituto ao fundo.
   A foto ocupa a altura do painel: topo, lateral direita e base do PNG coincidem com as bordas
   (overflow hidden) e o lado esquerdo some em degradê. */
.venue {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  min-height: 740px;
  border-radius: var(--radius-lg);
  background: rgb(var(--surface));
  box-shadow: var(--elevation-6);
  overflow: hidden;
  isolation: isolate;
}
.venue__content { position: relative; z-index: 2; display: grid; align-content: center; justify-items: start; gap: 1.5rem; padding: 3.5rem; }
.venue__content .section__title { margin: 0; }
.venue__lead { max-width: 34rem; font-size: 1.0625rem; text-align: justify; }
.venue__facts { display: grid; gap: 1.25rem; margin-top: 0.5rem; }
.venue__facts li { display: flex; align-items: flex-start; gap: 1rem; }
.venue__facts strong { display: block; margin-bottom: 0.125rem; color: rgba(var(--on-surface), var(--high)); font-weight: 600; }
.venue__facts p { font-size: 0.9375rem; }
.venue__glow {
  position: absolute;
  right: -10%; top: -20%;
  z-index: 0;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary), 0.28) 0%, transparent 65%);
  pointer-events: none;
}
.venue__media { position: absolute; top: 0; right: 0; bottom: 0; z-index: 1; height: 100%; aspect-ratio: 900 / 1324; pointer-events: none; }
.venue__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right bottom;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%);
  mask-image: linear-gradient(to right, transparent 0%, #000 30%);
}
.venue__badge {
  position: absolute;
  right: 1.5rem; bottom: 1.5rem;
  z-index: 3;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: rgb(var(--surface));
  box-shadow: var(--elevation-12);
}
.venue__badge small { display: block; font-size: 0.75rem; }
.venue__badge strong { display: block; color: rgba(var(--on-surface), var(--high)); font-size: 0.9375rem; font-weight: 600; }

/* diferenciais: itens do "outros cursos" esmaecidos */
.plan__features--muted .mdi { color: rgba(var(--on-surface), var(--disabled)); }
.compare .plan h3 { margin-bottom: 0.25rem; }

/* especialistas: retrato inteiro + currículo expansível */
.member__photo--cover { place-items: stretch; height: 360px; background: rgb(var(--secondary)); }
.member__photo--cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member .member__role { margin-top: 0.25rem; color: rgb(var(--deep)); font-weight: 500; }
.member .member__bio { margin-top: 1rem; text-align: justify; }
.member__cv { margin-top: 1.25rem; text-align: start; box-shadow: none; border: 1px solid rgba(var(--on-surface), var(--border-opacity)); }
.member__cv details > p + p { margin-top: -0.5rem; }

/* depoimentos fixos (sem carrossel) */
.testimonials { align-items: start; }
.testimonial__text { flex: 1; display: grid; gap: 0.75rem; align-content: start; }
.testimonial__text p { flex: none; }
.testimonial footer img { width: 48px; height: 48px; }
.section__cta { display: flex; justify-content: center; margin-top: 2.5rem; }

/* investimento: card único */
.pricing--single { max-width: 480px; margin-inline: auto; }
.pricing--single .plan h3 { margin-top: 1rem; }
.plan__lead { margin-top: 1.5rem; font-size: 0.9375rem; color: rgba(var(--on-brand), var(--high)); }
.plan__lead + .plan__price { margin-top: 0.25rem; }
.plan__actions { display: grid; gap: 0.75rem; width: 100%; margin-top: auto; }
.pricing__note { margin-top: 1.5rem; text-align: center; font-weight: 500; color: rgba(var(--on-surface), var(--high)); }

/* processo seletivo: cronograma */
.timeline { margin-top: 4rem; }
.timeline__item { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; }
.timeline__item small { display: block; font-size: 0.8125rem; }
.timeline__item strong { display: block; color: rgba(var(--on-surface), var(--high)); font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }

/* galeria: faixa contínua que passa sozinha e aceita arraste (o deslocamento é feito pelo main.js) */
.gallery__viewport {
  overflow: hidden;
  touch-action: pan-y; /* o arraste lateral fica com a faixa; o vertical continua rolando a página */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.gallery__viewport.is-dragging,
.gallery__viewport.is-dragging .gallery__item { cursor: grabbing; }
.gallery__track { display: flex; gap: 1rem; width: max-content; padding-block: 0.5rem; will-change: transform; }
.gallery__item {
  position: relative;
  flex: 0 0 auto;
  height: 360px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: rgba(var(--secondary), 0.06);
  box-shadow: var(--elevation-3);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__item img { width: auto; max-width: none; height: 100%; pointer-events: none; -webkit-user-drag: none; transition: transform 0.5s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__zoom {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(var(--surface), 0.92);
  color: rgb(var(--deep));
  font-size: 1.25rem;
  box-shadow: var(--elevation-3);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }
@media (hover: none) { .gallery__zoom { opacity: 1; transform: none; } }
.gallery__controls { display: flex; justify-content: center; margin-top: 1.25rem; }
.gallery__toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 36px; padding: 0 1rem;
  border: 0; border-radius: 999px;
  background: rgba(var(--primary), 0.14);
  color: rgb(var(--deep));
  font-size: 0.8125rem; font-weight: 600;
  cursor: pointer;
}
.gallery__toggle .mdi { font-size: 1.125rem; }
@media (prefers-reduced-motion: reduce) { .gallery__toggle { display: none; } }

/* visualizador de fotos ampliadas */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem;
  background: rgba(var(--secondary), 0.97);
  color: rgba(var(--on-brand), 0.85);
  animation: fade-in 0.2s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.875rem; }
.lightbox__count { font-weight: 600; color: rgb(var(--accent)); font-variant-numeric: tabular-nums; }
.lightbox__btn { background: rgba(var(--on-brand), 0.1); color: rgb(var(--on-brand)); }
.lightbox__btn:hover { background: rgba(var(--on-brand), 0.2); color: rgb(var(--on-brand)); }
.lightbox__stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 0; }
.lightbox__figure { position: relative; align-self: stretch; min-height: 0; margin: 0; touch-action: pan-y; }
/* a foto ocupa a área disponível e se ajusta sem corte, inclusive as menores */
.lightbox__img { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__bottom { display: grid; gap: 0.75rem; }
.lightbox__caption { text-align: center; color: rgb(var(--on-brand)); font-size: 0.9375rem; }
/* margens automáticas centralizam sem esconder o início quando as miniaturas não cabem */
.lightbox__thumbs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem; scrollbar-width: thin; }
.lightbox__thumbs > :first-child { margin-left: auto; }
.lightbox__thumbs > :last-child { margin-right: auto; }
.lightbox__thumbs button { flex: 0 0 auto; width: 64px; height: 48px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: none; opacity: 0.45; cursor: pointer; }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid rgb(var(--primary)); outline-offset: 2px; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ: foto real */
.faq__media img { border-radius: var(--radius-lg); box-shadow: var(--elevation-6); }

/* CTA sem ilustração */
.cta--solo { grid-template-columns: 1fr; padding-bottom: 0; text-align: center; }
.cta--solo .cta__content { max-width: 720px; margin-inline: auto; }
.cta--solo .hero__cta { justify-content: center; }

/* pré-inscrição */
.contact__hint { font-size: 0.8125rem; }

/* rodapé */
.footer__bottom a { color: rgba(var(--on-brand), 0.85); }
.footer__bottom small { font-size: 0.8125rem; }

.nav__item--mobile { display: none; }

@media (max-width: 960px) {
  /* o menu vira gaveta fixa: as ações voltam para a direita da barra */
  .nav + .navbar__actions { margin-inline-start: auto; }
  .nav__item--mobile { display: block; }
  .hero__window .float-card--1, .hero__window .float-card--3 { left: 0; }
  .hero__window .float-card--2, .hero__window .float-card--4 { right: 0; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .contact__info { grid-template-columns: repeat(2, 1fr); }
  /* o local: a foto desce para baixo do texto, na largura do painel; o logo surge em degradê */
  .venue { grid-template-columns: 1fr; min-height: 0; }
  .venue__content { padding: 2.5rem 2rem 0; }
  .venue__media { position: relative; top: auto; bottom: auto; width: 100%; height: auto; margin-top: 1rem; }
  .venue__media img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 14%);
  }
  .venue__glow { top: auto; bottom: 10%; right: -20%; width: 90%; }
}

@media (max-width: 680px) {
  .grid--2 { grid-template-columns: 1fr; }
  .member__photo--cover { height: 340px; }
  .contact__info { grid-template-columns: 1fr; }
  .timeline { margin-top: 3rem; }
  .venue__content { padding: 2rem 1.5rem 0; }
  .venue__badge { right: 1rem; bottom: 1rem; }
  .gallery__item { height: 260px; }
  .hero--centered { padding-bottom: 4.5rem; }
  .hero--centered .hero__proof { flex-direction: column; text-align: center; }
  .hero__window { margin-top: 2.5rem; }
  /* no celular a janela fica mais alta para a foto não ficar baixa demais */
  .hero__window-photo { aspect-ratio: 4 / 3.2; object-position: 60% center; }
  .hero__window .float-card { padding: 0.5rem 0.75rem; gap: 0.5rem; }
  .hero__window .float-card small { font-size: 0.6875rem; }
  .hero__window .float-card strong { font-size: 0.8125rem; }
  .hero__window .float-card--3, .hero__window .float-card--4 { display: none; }
  /* o template esconde os cards abaixo de 400px; no hero centralizado os dois primeiros ficam */
  .hero__window .float-card--1, .hero__window .float-card--2 { display: flex; }
  .hero__window .float-card--1 { top: -6%; left: 0; }
  .hero__window .float-card--2 { top: auto; bottom: 18%; right: 0; }
  .lightbox__stage { grid-template-columns: minmax(0, 1fr); }
  .lightbox__nav { display: none; }
}
