/* ==========================================================================
   MentoraOS — Official Stylesheet
   Tema Padrão: Light Mode (Claro) com suporte a Dark Mode (Escuro)
   Tipografia: Plus Jakarta Sans (Títulos/Headings) + Inter (Corpo de Texto)
   Acessibilidade: WCAG AA/AAA, contraste, navegação por teclado e skip link
   Responsividade Mobile-First: px-4 sm:px-6 lg:px-8, grid progressivo, zero overflow horizontal
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ─── TEMA CLARO (PADRÃO / DEFAULT) ─────────────────────────────────────── */
:root,
html[data-theme="light"] {
  /* Fundos */
  --bg:            #f8fafc;
  --bg-elevated:   #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-subtle:     #f1f5f9;

  /* Bordas */
  --border:        #e2e8f0;
  --border-subtle: #edf2f7;
  --border-accent: rgba(22, 82, 216, 0.35);

  /* Azul Corporativo / Tech Oficial */
  --accent:        #1652d8;
  --accent-hover:  #0f42b3;
  --accent-lt:     #0265d2;
  --accent-dim:    rgba(22, 82, 216, 0.08);
  --accent-dim2:   rgba(22, 82, 216, 0.04);

  /* Verde Oficial (Sucesso / Status / Checkmarks) */
  --green:         #059669;
  --green-dim:     rgba(5, 150, 105, 0.1);
  --green-border:  rgba(5, 150, 105, 0.25);

  /* Semântica */
  --danger:        #dc2626;
  --danger-dim:    rgba(220, 38, 38, 0.08);

  /* Textos (Alto Contraste WCAG AA/AAA) */
  --text:          #0f172a; /* Slate 900 -> 16.08:1 */
  --text-2:        #334155; /* Slate 700 -> 9.38:1 */
  --text-3:        #64748b; /* Slate 500 -> 4.54:1 */

  /* Tipografia */
  --font-head:     'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Raios */
  --r-sm:   4px;
  --r-md:   8px;   /* Ajustado para 8px (Estilo Técnico SaaS) */
  --r-lg:   16px;
  --r-xl:   20px;
  --r-full: 9999px;

  /* Transição & Sombras */
  --t: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 6px 18px -2px rgba(15, 23, 42, 0.06);
  --shadow-elevated: 0 12px 32px -4px rgba(22, 82, 216, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-accent: 0 8px 24px -4px rgba(22, 82, 216, 0.35);

  /* Textura de fundo */
  --bg-pattern: radial-gradient(circle, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

/* ─── TEMA ESCURO (DARK MODE) ───────────────────────────────────────────── */
html[data-theme="dark"] {
  /* Fundos */
  --bg:            #090c15;
  --bg-elevated:   #0f1422;
  --bg-card:       #13192b;
  --bg-card-hover: #182037;
  --bg-subtle:     #161d31;

  /* Bordas */
  --border:        rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-accent: rgba(56, 189, 248, 0.35);

  /* Azul Corporativo no Dark Mode */
  --accent:        #1d70f5;
  --accent-hover:  #3b82f6;
  --accent-lt:     #38bdf8;
  --accent-dim:    rgba(29, 112, 245, 0.15);
  --accent-dim2:   rgba(29, 112, 245, 0.06);

  /* Verde */
  --green:         #10b981;
  --green-dim:     rgba(16, 185, 129, 0.15);
  --green-border:  rgba(16, 185, 129, 0.3);

  /* Semântica */
  --danger:        #ef4444;
  --danger-dim:    rgba(239, 68, 68, 0.15);

  /* Textos (Alto Contraste) */
  --text:          #f8fafc; /* Slate 50 -> 17.8:1 */
  --text-2:        #cbd5e1; /* Slate 300 -> 12.1:1 */
  --text-3:        #94a3b8; /* Slate 400 -> 6.6:1 */

  /* Sombras */
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 16px 36px -6px rgba(29, 112, 245, 0.3), 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 8px 24px -4px rgba(29, 112, 245, 0.45);

  /* Textura de fundo */
  --bg-pattern: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: var(--bg-pattern);
  background-size: 28px 28px;
  transition: background-color var(--t), color var(--t);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--text);
  font-weight: 700;
}

p {
  color: var(--text-2);
  line-height: 1.65;
}

/* ─── Skip Link (Acessibilidade WCAG) ───────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 16px;
  z-index: 1000;
  background: var(--accent);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-accent);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ─── Wrapper Principal / Container Padronizado (px-4 sm:px-6 lg:px-8) ──── */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;  /* px-4 (16px) */
  padding-right: 1rem; /* px-4 (16px) */
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;  /* sm:px-6 (24px) */
    padding-right: 1.5rem; /* sm:px-6 (24px) */
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;  /* lg:px-8 (32px) */
    padding-right: 2rem; /* lg:px-8 (32px) */
  }
}

/* ─── Eyebrow (Caixa Alta, Destaque da Marca) ───────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 0.75rem;
}

/* ─── Section Titles ────────────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

/* ─── 2. Botões Base e Tipografia ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  min-height: 42px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: all var(--t);
  white-space: nowrap;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-lg {
  padding: 0.8rem 1.75rem;
  font-size: 0.98rem;
  min-height: 48px;
}

/* ─── 3. Botão Primário (Destaque Pro / CTAs Principais) ─────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-lt) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(22, 82, 216, 0.25), 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ─── 4. Botão Secundário / Outline com Preenchimento Sutil ──────────── */
.btn-outline {
  background: var(--bg-subtle);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-3);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}

/* ─── 5. Botão Ghost (Navegação / Ações Secundárias) ──────────────────── */
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-subtle);
  border-color: var(--border);
}

/* ─── SPLASH SCREEN / APRESENTAÇÃO DE MARCA ─────────────────────────────── */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s;
  overflow: hidden;
}

.splash-screen.splash-hide {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  visibility: hidden;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  text-align: center;
  user-select: none;
}

.splash-logo-wrapper {
  position: relative;
  width: clamp(110px, 14vw, 150px);
  height: clamp(110px, 14vw, 150px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transform: scale(0.85) translateY(12px);
  filter: blur(4px);
  animation: splashLogoEnter 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s forwards;
}

.splash-text {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  animation: splashTextEnter 0.5s ease-out 0.22s forwards;
}

.splash-accent {
  color: var(--accent-lt);
}

@keyframes splashLogoEnter {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(12px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes splashTextEnter {
  0% {
    opacity: 0;
    transform: translateY(12px);
    letter-spacing: 0.02em;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -0.03em;
  }
}

/* ─── NAVBAR ────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0.95rem 0;
  transition:
    background-color var(--t),
    border-color var(--t),
    padding var(--t),
    box-shadow var(--t);
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding: 0.65rem 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

html[data-theme="dark"] .navbar.scrolled {
  background-color: rgba(9, 12, 21, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar.menu-open {
  background-color: var(--bg-elevated) !important;
  border-bottom-color: var(--border) !important;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Micro-interação de Hover no Logotipo Oficial */
.logo:hover .logo-img {
  transform: rotate(8deg) scale(1.08) translateY(-1px);
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent-lt);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

.nav-menu-list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: clamp(0.85rem, 0.9vw, 0.92rem);
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t);
  padding: 0.35rem 0.2rem;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-cta-btn {
  white-space: nowrap;
  font-size: clamp(0.85rem, 0.9vw, 0.92rem);
  padding: 0.55rem 1.15rem;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Botão Alternador de Tema */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: block; }
html[data-theme="dark"] .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: block; }

/* Botão Menu Hambúrguer Mobile */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 8px;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--t);
}

.mobile-menu-btn:hover {
  border-color: var(--border-accent);
  background: var(--accent-dim);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color var(--t);
}

.mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
.mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }

/* ─── HERO — ASSIMÉTRICO ────────────────────────────────────────────────── */
.hero {
  padding: 7.75rem 0 4.25rem;
  position: relative;
  overflow: hidden; /* Garante que a marca d'água não cause scroll horizontal */
  background-image:
    radial-gradient(ellipse 65% 55% at 18% 45%, var(--accent-dim) 0%, transparent 70%),
    var(--bg-pattern);
  background-size: auto, 28px 28px;
}

/* Marca D'água com Logo Oficial no Fundo do Hero */
.hero-watermark {
  position: absolute;
  top: 48%;
  right: -3%;
  transform: translateY(-50%);
  width: clamp(320px, 34vw, 420px);
  height: clamp(320px, 34vw, 420px);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--t);
}

/* Calibração de Opacidade por Tema */
[data-theme="light"] .hero-watermark {
  opacity: 0.04;
  filter: grayscale(0.2);
}

[data-theme="dark"] .hero-watermark {
  opacity: 0.06;
  filter: brightness(1.2);
}

.hero-watermark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: floatSubtle 12s ease-in-out infinite alternate;
}

@keyframes floatSubtle {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1; /* Mantém todo o conteúdo acima da marca d'água */
}

.hero-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.8vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--accent-lt);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--text-2);
  line-height: 1.68;
  max-width: 520px;
  margin-bottom: 1.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ─── Product Widget (Hero Visual) ──────────────────────────────────────── */
.hero-visual {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.product-widget {
  width: 100%;
  max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  box-sizing: border-box;
}

.pw-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.pw-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 0.2rem;
}

.pw-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.pw-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  margin-top: 0.2rem;
}

.pw-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-live 2.4s ease-in-out infinite;
}

.pw-students {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0;
}

.pw-student {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.35rem;
  transition: background var(--t);
}

.pw-student:hover {
  background: var(--bg-subtle);
}

.pw-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pw-student:nth-child(1) .pw-avatar { background: rgba(22, 82, 216, 0.14); color: var(--accent); }
.pw-student:nth-child(2) .pw-avatar { background: rgba(5, 150, 105, 0.14); color: var(--green); }
.pw-student:nth-child(3) .pw-avatar { background: rgba(2, 101, 210, 0.14); color: var(--accent-lt); }
.pw-student:nth-child(4) .pw-avatar { background: rgba(124, 58, 237, 0.14); color: #7c3aed; }

.pw-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pw-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw-bar {
  height: 5px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.pw-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-lt));
  border-radius: var(--r-full);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-widget.bars-animated .pw-fill {
  width: var(--target, 0%);
}

.pw-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-3);
  min-width: 2.2rem;
  text-align: right;
  flex-shrink: 0;
}

.pw-footer {
  border-top: 1px solid var(--border);
  padding: 0.9rem 1.35rem;
}

.pw-bot-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pw-bot-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.pw-bot-body {
  flex: 1;
  min-width: 0;
}

.pw-bot-body strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 0.1rem;
}

.pw-bot-body p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.35;
}

.pw-bot-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  flex-shrink: 0;
}

/* Toast Flutuante */
.pw-toast {
  position: absolute;
  bottom: -12px;
  right: -12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-full);
  padding: 0.45rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  animation: toast-in 0.4s ease-out 0.8s both;
}

.pw-toast svg {
  color: var(--green);
  flex-shrink: 0;
}

/* ─── ESPAÇAMENTO HARMONIZADO ENTRE SEÇÕES ──────────────────────────────── */
.solution-section,
.features-section,
.mentorobot-section,
.pricing-section,
.security-section,
.faq-section,
.cta-section {
  padding: 4.75rem 0;
  border-top: 1px solid var(--border);
}

/* ─── SEÇÃO COMO FUNCIONA (CARDS MODERNOS & ELEGANTES) ──────────────────── */
.solution-section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}

.sol-header {
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.sol-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .sol-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.sol-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  box-sizing: border-box;
}

.sol-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.sol-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.sol-card-step {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-sm);
}

.sol-card-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.sol-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sol-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sol-row p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.sol-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Linha ANTES: Tom neutro com texto suave */
.sol-pill--before {
  background: var(--danger-dim);
  color: var(--danger);
}

.sol-row--before p {
  color: var(--text-3);
  text-decoration: line-through decoration-slate-400/40;
}

/* Linha DEPOIS: Destaque positivo e moderno */
.sol-row--after {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
}

.sol-row--after .sol-pill {
  margin-top: 0;
}

.sol-pill--after {
  background: var(--green-dim);
  color: var(--green);
}

.sol-row--after p {
  color: var(--text);
  font-weight: 500;
}

/* ─── 2. FUNCIONALIDADES (GRID RESPONSIVA sm:grid-cols-2 lg:gap-8) ───────── */
.features-header {
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.features-header .section-title {
  margin-top: 0.35rem;
}

.features-desc {
  max-width: 560px;
  margin-top: 0.75rem;
  font-size: 0.98rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Mobile-First: 1 coluna (< 640px), 2 colunas (>= 640px) */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    gap: 2rem;
  }
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition:
    border-color var(--t),
    background var(--t),
    transform var(--t),
    box-shadow var(--t);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
  min-width: 0;
}

.bento-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.bento-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.bento-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
}

.bento-badge-pill--green {
  background: var(--green-dim);
  color: var(--green);
}

.bento-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
}

.bento-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.bento-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* Card 1: Gestão de Turmas */
.bento-turmas-widget {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1.15rem;
  min-width: 0;
}

.btw-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.btw-item:last-child {
  border-bottom: none;
}

.btw-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.btw-status--active {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.btw-status--pending {
  background: var(--accent);
}

.btw-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.btw-info strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  white-space: normal;
  word-break: break-word;
}

.btw-info span {
  font-size: 0.75rem;
  color: var(--text-3);
}

.btw-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

/* Prevenção de Overflow para Badges em Telas < 768px */
@media (max-width: 640px) {
  .btw-item {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.35rem 0.65rem;
    padding: 0.55rem 0;
  }

  .btw-status {
    margin-top: 0.35rem;
  }

  .btw-info {
    flex: 1 1 calc(100% - 24px);
  }

  .btw-badge {
    margin-left: 20px;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
  }
}

/* Card 2: Trilhas */
.bento-steps-widget {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  min-width: 0;
}

.bsw-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bsw-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-3);
  flex-shrink: 0;
}

.bsw-item--done .bsw-dot {
  background: var(--green-dim);
  border-color: var(--green-border);
  color: var(--green);
}

.bsw-item--current .bsw-dot {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.bsw-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.bsw-text strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.bsw-text span {
  font-size: 0.7rem;
  color: var(--text-3);
}

/* Card 3: Agenda */
.bento-agenda-snippet {
  margin-top: 0.35rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.bas-time-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.bento-agenda-snippet strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.bas-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 0.15rem;
}

.bas-link svg {
  color: var(--accent);
}

/* Card 4: Bot Telegram */
.bento-tg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.bento-tg-preview {
  margin-top: 0.35rem;
  background: var(--accent-dim2);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  min-width: 0;
}

.btg-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.bento-tg-preview p {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.4;
}

/* ─── MENTOROBOT ───────────────────────────────────────────────────────── */
.mentorobot-section {
  background: var(--bg-elevated);
}

.mentorobot-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .mentorobot-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 4.5rem;
  }
}

.mentorobot-copy .section-title {
  max-width: 570px;
  margin-top: 0.35rem;
  margin-bottom: 1rem;
}

.mentorobot-copy > p {
  max-width: 560px;
  font-size: 0.98rem;
  line-height: 1.7;
}

.mentorobot-points {
  display: flex;
  flex-direction: column;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
}

.mentorobot-points li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}

.mentorobot-points li:last-child {
  border-bottom: 1px solid var(--border);
}

.mentorobot-point-number {
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.55;
}

.mentorobot-points strong,
.mentorobot-points span {
  display: block;
}

.mentorobot-points strong {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.mentorobot-points span {
  color: var(--text-2);
  font-size: 0.84rem;
  line-height: 1.55;
}

.mentorobot-demo {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-elevated);
  min-width: 0;
}

.mentorobot-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mentorobot-demo-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.mentorobot-demo-brand svg {
  color: var(--accent);
  flex-shrink: 0;
}

.mentorobot-demo-brand strong,
.mentorobot-demo-brand span {
  display: block;
}

.mentorobot-demo-brand strong {
  color: var(--text);
  font-size: 0.9rem;
}

.mentorobot-demo-brand span {
  color: var(--text-3);
  font-size: 0.72rem;
  margin-top: 0.05rem;
}

.mentorobot-plan-badge {
  flex-shrink: 0;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
}

.mentorobot-message {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--r-md);
  font-size: 0.82rem;
}

.mentorobot-message > span {
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mentorobot-message p {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.45;
}

.mentorobot-message--user {
  width: fit-content;
  min-width: 92px;
  margin-left: auto;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
}

.mentorobot-message--user > span {
  color: var(--accent);
}

.mentorobot-message--bot {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.mentorobot-event {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
}

.mentorobot-event strong {
  color: var(--text);
  font-size: 0.8rem;
}

.mentorobot-event span {
  color: var(--text-3);
  font-size: 0.73rem;
}

.mentorobot-event a {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.mentorobot-admin-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mentorobot-admin-panel span,
.mentorobot-admin-panel strong {
  display: block;
}

.mentorobot-admin-panel span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mentorobot-admin-panel strong {
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-top: 0.25rem;
}

/* Card 5: Chat */
.bento-chat-widget {
  margin-top: 0.35rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.bcw-bubble {
  padding: 0.45rem 0.7rem;
  border-radius: var(--r-sm);
  font-size: 0.76rem;
  max-width: 90%;
}

.bcw-author {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.bcw-bubble--student {
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-self: flex-start;
  color: var(--text-2);
}

.bcw-bubble--student .bcw-author {
  color: var(--text-3);
}

.bcw-bubble--teacher {
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  align-self: flex-end;
  color: var(--text);
}

.bcw-bubble--teacher .bcw-author {
  color: var(--accent);
}

/* Card 6: Relatórios */
.bento-card--relatorios {
  min-width: 0;
}

@media (min-width: 640px) {
  .bento-card--relatorios {
    grid-column: span 2; /* Span 2 a partir de telas médias para visual de banner */
  }
}

.bento-relatorios-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  min-width: 0;
}

@media (min-width: 768px) {
  .bento-relatorios-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.25rem;
  }
}

.bento-relatorios-text {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bento-metrics-widget {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.bmw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bmw-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.bmw-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
}

.bmw-bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bmw-metric-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-3);
}

.bmw-metric-row span {
  width: 58px;
  flex-shrink: 0;
}

.bmw-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.bmw-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-lt));
  border-radius: var(--r-full);
}

.bmw-metric-row strong {
  font-size: 0.75rem;
  color: var(--text);
  flex-shrink: 0;
}

/* ─── 3. PLANOS E PREÇOS (grid-cols-1 lg:grid-cols-3) ────────────────────── */
.pricing-header {
  max-width: 600px;
  margin-bottom: 2.75rem;
}

.pricing-header .section-title {
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}

.pricing-desc {
  font-size: 0.98rem;
  color: var(--text-2);
}

/* Grid de Planos: 1 col (mobile) -> auto-fit/2 cols (tablet) -> 3 cols (desktop) */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: stretch;
  padding-top: 1.25rem;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.85rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition:
    border-color var(--t),
    background var(--t),
    transform var(--t),
    box-shadow var(--t);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
  min-width: 0;
}

.pricing-card--secondary {
  opacity: 0.96;
}

.pricing-card--secondary:hover {
  opacity: 1;
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.pricing-card--featured {
  border: 2px solid var(--accent);
  background: var(--bg-elevated);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-elevated);
  z-index: 2;
}

@media (min-width: 1024px) {
  .pricing-card--featured {
    transform: scale(1.02);
  }
  .pricing-card--featured:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 20px 40px -8px rgba(22, 82, 216, 0.22);
  }
}

/* Badge Mais Popular: absolute -top-3 left-1/2 -translate-x-1/2 */
.plan-badge-popular {
  position: absolute;
  top: -12px; /* -top-3 */
  left: 50%;
  transform: translateX(-50%); /* left-1/2 -translate-x-1/2 */
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.32rem 1rem;
  border-radius: var(--r-full);
  white-space: nowrap;
  font-family: var(--font-head);
  box-shadow: 0 4px 12px rgba(22, 82, 216, 0.35);
  z-index: 3;
}

.pricing-top {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.plan-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 0.15rem;
}

.price-range {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-3);
  font-weight: 500;
}

.plan-tagline {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.45;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-2);
}

.plan-features li svg {
  color: var(--green);
  flex-shrink: 0;
}

.plan-feature-off {
  opacity: 0.45;
}

.plan-feature-off svg {
  color: var(--text-3) !important;
}

/* ─── 6. Refinamento nos Cards de Preço ───────────────────────────────── */
.pricing-card .btn-outline {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
}

.pricing-card .btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.pricing-card--featured .btn-primary {
  width: 100%;
}

/* ─── SECURITY (APRESENTAÇÃO EDITORIAL) ──────────────────────────────────── */
.security-section {
  background: var(--bg-elevated);
}

.security-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .security-editorial {
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
  }
}

.security-editorial-left .section-title {
  margin-top: 0.35rem;
  margin-bottom: 1.15rem;
}

.security-editorial-left p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.35rem;
}

.security-badge-lgpd {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full);
  line-height: 1.4;
  text-align: left;
}

.security-editorial-right {
  display: flex;
  flex-direction: column;
}

.security-list-item {
  display: flex;
  gap: 1.35rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--border);
}

.security-list-item:first-child {
  border-top: 1px solid var(--border);
}

.sli-number {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 0.1rem;
}

.sli-content h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.sli-content p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* ─── FAQ (ACORDEÃO FLUIDO COM CSS GRID) ─────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: 1fr 1.35fr;
    gap: 3.5rem;
  }
}

.faq-header .section-title {
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
}

.faq-desc {
  font-size: 0.98rem;
  color: var(--text-2);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition:
    border-color var(--t),
    background var(--t),
    box-shadow var(--t);
  box-shadow: var(--shadow-card);
}

.faq-item:hover {
  border-color: var(--border-accent);
}

.faq-item.active {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
}

.faq-question {
  width: 100%;
  padding: 1.15rem 1.35rem;
  background: transparent;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--t);
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-icon {
  color: var(--text-3);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color var(--t);
  will-change: transform;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Transição de Altura Suave via CSS Grid 0fr -> 1fr */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer-inner p {
  padding: 0 1.35rem 1.15rem;
  font-size: 0.91rem;
  color: var(--text-2);
  line-height: 1.65;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.faq-item.active .faq-answer-inner p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

/* ─── SEÇÃO CTA & FORMULÁRIO INLINE RESPONSIVO (SEM ESPREMIMENTO) ────────── */
.cta-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 70px;
  width: 100%;
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-xl);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .cta-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    padding: 3.25rem 3rem;
    gap: 3.5rem;
    align-items: center;
  }
}

.cta-text h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.cta-text p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.cta-perks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cta-perks li {
  font-size: 0.88rem;
  color: var(--text-2);
  font-weight: 500;
}

/* No mobile, remove a borda redundante do container interno para ganhar largura */
.cta-form-wrapper {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  padding: 0;
}

@media (min-width: 992px) {
  .cta-form-wrapper {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
  }
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-select {
  width: 100%;
  min-height: 44px; /* Área de toque ideal para mobile */
  font-size: 16px; /* Previne zoom forçado no Safari do iOS */
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}

.btn-submit-inline {
  width: 100%;
  min-height: 48px;
  margin-top: 0.5rem;
  font-size: 0.96rem;
  font-weight: 700;
}

/* ─── FOOTER REDESENHADO & CENTRALIZADO ─────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-top: auto;
  width: 100%;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3.5rem 1rem 2.5rem;
  max-width: 1160px;
  margin: 0 auto;
}

/* Marca no topo com descrição abaixo do logo */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 360px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* Grid de Links */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colunas no mobile por padrão */
  gap: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 colunas a partir de tablets */
  }
}

/* Desktop: Logo + 3 colunas em linha harmônica */
@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1.3fr 2fr;
    align-items: flex-start;
    gap: 4rem;
    padding: 4rem 1rem 3rem;
  }
  
  .footer-links-grid {
    gap: 2rem;
  }
}

.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col li a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color var(--t);
}

.footer-col li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  width: 100%;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


/* ─── FORMULÁRIOS & FEEDBACK ────────────────────────────────────────────── */
.form-req {
  color: var(--accent);
  font-weight: 700;
}

.form-opt {
  color: var(--text-3);
  font-weight: 500;
  font-size: 0.78rem;
}

.form-input,
.form-select {
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--text-3);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-elevated);
  color: var(--text);
}

.btn-submit-form {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.form-input.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger) !important;
  background-color: var(--danger-dim) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.form-error-msg {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--danger);
  margin-top: 0.2rem;
  animation: fadeUp 0.2s ease-out both;
}

.form-error-msg svg {
  flex-shrink: 0;
}

.shake-field {
  animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* Spinner no Botão de Envio */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.9;
}

.btn-spinner {
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Banner de Erro Geral */
.form-error-banner {
  background: var(--danger-dim);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  animation: fadeUp 0.3s ease-out both;
}

.form-error-banner p {
  color: var(--danger);
  font-size: 0.86rem;
  margin: 0;
  line-height: 1.45;
}

/* Confirmação / Sucesso */
.form-success-wrapper {
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
  animation: fadeUp 0.35s ease-out both;
}

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}

.form-success-wrapper h4 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-success-wrapper p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* ─── RESPONSIVIDADE COMPLETA ───────────────────────────────────────────── */

/* === Desktop intermediário: 992px–1200px === */
@media (min-width: 992px) and (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
  }
}

/* === Tablet e Mobile: < 992px (Ativação Sincronizada do Menu Hambúrguer) === */
@media (max-width: 991px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0s linear 0.22s;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.5rem 1.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav-links.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0s;
  }

  .nav-menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav-links .btn {
    margin-top: 1.15rem;
    width: 100%;
  }

  /* Hero em 1 coluna sincronizado */
  .hero {
    padding: 6.25rem 0 3.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero-content {
    max-width: 640px;
  }

  .hero-visual {
    max-width: 540px;
    width: 100%;
  }

  .pw-toast {
    position: static;
    margin-top: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    justify-content: center;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .product-widget {
    width: 100%;
  }

  .solution-section,
  .features-section,
  .mentorobot-section,
  .pricing-section,
  .security-section,
  .faq-section,
  .cta-section {
    padding: 3.75rem 0;
  }
}

/* === Mobile: < 768px === */
@media (max-width: 768px) {
  .hero {
    padding: 5.5rem 0 2.75rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .sol-header .section-title,
  .features-header .section-title,
  .pricing-header .section-title,
  .security-editorial-left .section-title,
  .faq-header .section-title,
  .cta-text h2 {
    font-size: clamp(1.5rem, 6.5vw, 1.95rem);
  }

  .solution-section,
  .features-section,
  .mentorobot-section,
  .pricing-section,
  .security-section,
  .faq-section,
  .cta-section {
    padding: 3.25rem 0;
  }
}

/* === Mobile pequeno: < 480px === */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.85rem, 8.5vw, 2.5rem);
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .pw-student {
    padding: 0.6rem 1rem;
  }

  .pw-header {
    padding: 1rem;
  }

  .pw-footer {
    padding: 0.875rem 1rem;
  }

  .bento-card {
    padding: 1.25rem;
  }

  .bento-turmas-widget {
    padding: 0.75rem 0.85rem;
  }

  .pricing-card {
    padding: 1.65rem 1.25rem;
  }

  .pricing-card--featured {
    padding: 1.85rem 1.25rem;
  }

  .cta-card {
    padding: 1.75rem 1.15rem;
  }
}

/* === Landscape mobile / Telas com altura reduzida (max-height: 540px) === */
@media (max-height: 540px) and (orientation: landscape) {
  .navbar {
    padding: 0.4rem 0;
  }

  .navbar.scrolled {
    padding: 0.3rem 0;
  }

  .logo-img {
    width: 26px;
    height: 26px;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .hero {
    padding: 4rem 0 1.75rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 1.75rem;
    align-items: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.35rem, 3.8vw, 1.95rem);
    line-height: 1.14;
    margin-bottom: 0.5rem;
  }

  .hero-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    max-width: 440px;
  }

  .hero-actions {
    gap: 0.5rem;
    flex-direction: row;
    justify-content: flex-start;
  }

  .hero-actions .btn {
    min-height: 36px;
    padding: 0.4rem 0.95rem;
    font-size: 0.84rem;
    width: auto;
  }

  .hero-visual {
    max-width: 100%;
  }

  .product-widget {
    width: 100%;
  }

  .pw-header {
    padding: 0.6rem 0.9rem;
  }

  .pw-student {
    padding: 0.35rem 0.9rem;
  }

  .pw-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
  }

  .pw-name {
    font-size: 0.78rem;
  }

  .pw-pct {
    font-size: 0.7rem;
  }

  .pw-footer {
    padding: 0.55rem 0.9rem;
  }

  .pw-bot-icon {
    width: 22px;
    height: 22px;
  }

  .pw-toast {
    display: none;
  }
}

/* ─── ANIMAÇÕES & MICRO-INTERAÇÕES ───────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.2); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px) translateX(4px); }
  to   { opacity: 1; transform: translateY(0) translateX(0); }
}

/* Hero: Animação no carregamento inicial */
.hero-content > * {
  animation: fadeUp 0.5s ease-out both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }
.hero-visual { animation: fadeUp 0.55s ease-out 0.2s both; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── prefers-reduced-motion (Acessibilidade) ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .hero-visual,
  .pw-live-dot,
  .pw-toast {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .pw-fill { transition: none !important; }
  .faq-answer { transition: none !important; }
  .faq-icon { transition: none !important; }
  .nav-links  { transition: none !important; }

  .bento-card:hover,
  .pricing-card:hover,
  .sol-card:hover,
  .btn-primary:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .logo-img,
  .hero-watermark-img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .splash-screen {
    display: none !important;
  }
}
