/*=========================
   Table of Contents
=========================*/
/*
   1     bareBat — Institucional v2 (rascunho onepage)
   6     Tokens
   30    Reset mínimo
   60    Utilitários
   90    Botões
   130   Navbar
   210   Hero
   260   História / Capítulos
   320   3 Passos
   360   Modelos (tabs sem JS)
   450   Recursos
   490   Planos
   600   CTA
   660   Footer
   700   Responsivo
*/

/*=========================
   bareBat — Institucional v2 (rascunho onepage)
=========================*/
/* Self-contained: sem dependência do core/tokens.css do app (esta página
   sai daqui e vira HTML+CSS estático hospedado à parte, no Cloudflare). */

/*=========================
   Tokens
=========================*/

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-10: rgba(79, 70, 229, 0.1);
  --teal: #14b8a6;
  --lime: #84cc16;
  --orange: #fb923c;
  --dark: #111827;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e5e7eb;
  --font-sans: "Inter", Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-full: 999px;
}

/*=========================
   Reset mínimo
=========================*/

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}

/*=========================
   Utilitários
=========================*/

.inst2-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.inst2-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.inst2-eyebrow--icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inst2-eyebrow-icon {
  font-size: 22px;
  color: var(--orange);
}

.inst2-section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.inst2-section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.inst2-section-title span {
  color: var(--primary);
}

.inst2-section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0;
}

.icon {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: inherit;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

/*=========================
   Botões
=========================*/

.inst2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 2.375rem;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s, transform 0.15s;
}
.inst2-btn:hover {
  transform: translateY(-1px);
}
.inst2-btn:active {
  transform: translateY(0);
}

.inst2-btn--primary {
  background: var(--primary);
  color: #fff;
}
.inst2-btn--primary:hover {
  background: var(--primary-dark);
}

.inst2-btn--dark {
  background: var(--dark);
  color: #fff;
}
.inst2-btn--dark:hover {
  background: #374151;
}

.inst2-btn--white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.inst2-btn--white:hover {
  background: #f5f5f5;
}

.inst2-btn--outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.inst2-btn--outline:hover {
  background: var(--primary-10);
}

.inst2-btn--outline-invert {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.inst2-btn--outline-invert:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.inst2-btn--block {
  display: flex;
  width: 100%;
}

/*=========================
   Navbar
=========================*/

.inst2-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.inst2-navbar-inner {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.inst2-brand {
  display: flex;
  align-items: center;
}
.inst2-brand img {
  height: 40px;
  width: auto;
  margin-left: -6px;
}
.inst2-brand-tagline {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .inst2-brand-tagline {
    display: none;
  }
}

.inst2-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
}

.inst2-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inst2-nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.inst2-nav-toggle {
  display: none;
  position: absolute;
  top: 8px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
}

.inst2-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 20px;
  border-top: 1px solid var(--border);
}

.inst2-mobile-menu a {
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.inst2-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/*=========================
   Hero
=========================*/

.inst2-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  background: linear-gradient(135deg, #fbf9ff 0%, #f5f9ff 50%, #f6fdfb 100%);
}

.inst2-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.inst2-hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.inst2-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.inst2-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #4b5563;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.inst2-hero-badge-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.inst2-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.inst2-hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.inst2-hero-subtitle {
  font-size: 19px;
  color: #4b5563;
  margin: 0 0 36px;
  max-width: 480px;
}

.inst2-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.inst2-hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

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

.inst2-hero-orbit {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  margin: 20px auto;
}

.inst2-hero-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(79, 70, 229, 0.2);
}

.inst2-hero-visual-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96%;
  display: block;
  border-radius: var(--radius-lg);
}

.inst2-hero-orbit-spin {
  position: absolute;
  inset: 0;
  animation: hero-orbit-spin 110s linear infinite;
}

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

.inst2-hero-orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--angle)) translateX(265px);
}

.inst2-hero-card {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 8px 14px 8px 8px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14);
  white-space: nowrap;
  animation: hero-orbit-counter 110s linear infinite;
}

@keyframes hero-orbit-counter {
  from {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle)));
  }
  to {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle) - 360deg));
  }
}

.inst2-hero-card strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.inst2-hero-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .inst2-hero-card {
    display: none;
  }
}

/*=========================
   História / Capítulos
=========================*/

.inst2-story {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.inst2-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  pointer-events: none;
}

.inst2-story > .inst2-container {
  position: relative;
  z-index: 1;
}

.inst2-chapters {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.inst2-chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.inst2-chapter-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.inst2-chapter-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.inst2-chapter--reverse .inst2-chapter-media {
  order: 1;
}
.inst2-chapter--reverse .inst2-chapter-body {
  order: 2;
}

.inst2-chapter-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.inst2-chapter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}
.inst2-chapter-dot--teal {
  background: var(--teal);
}
.inst2-chapter-dot--lime {
  background: var(--lime);
}
.inst2-chapter-dot--orange {
  background: var(--orange);
}

.inst2-chapter-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.inst2-chapter-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.inst2-chapter-title span {
  color: var(--primary);
}

.inst2-chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #374151;
  font-size: 16px;
}

.inst2-chapter-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inst2-chapter-check {
  font-size: 18px;
  color: var(--teal);
  flex-shrink: 0;
}

/*=========================
   3 Passos
=========================*/

.inst2-steps-section {
  background: var(--surface-2);
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.inst2-steps {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.inst2-step {
  text-align: center;
}

.inst2-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 20px;
}

.inst2-step-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.inst2-step-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

/*=========================
   Modelos (tabs sem JS)
=========================*/

.inst2-models {
  padding: 96px 0;
}

.inst2-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.inst2-tab-labels {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.inst2-tab-labels label {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

#tab-bar:checked ~ .inst2-tab-labels label[for="tab-bar"],
#tab-bat:checked ~ .inst2-tab-labels label[for="tab-bat"],
#tab-elegante:checked ~ .inst2-tab-labels label[for="tab-elegante"] {
  background: var(--dark);
  color: #fff;
}

.inst2-tab-panel {
  display: none;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  background: var(--surface-2);
}

#tab-bar:checked ~ #panel-bar,
#tab-bat:checked ~ #panel-bat,
#tab-elegante:checked ~ #panel-elegante {
  display: grid;
}

.inst2-tab-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.inst2-tab-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.inst2-tab-name {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 12px;
}

.inst2-tab-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.inst2-tab-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/*=========================
   Recursos
=========================*/

.inst2-features-section {
  background: var(--surface-2);
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.inst2-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.inst2-feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.inst2-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.inst2-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.inst2-feature-icon--primary {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}
.inst2-feature-icon--teal {
  background: rgba(20, 184, 166, 0.12);
  color: #0d9488;
}
.inst2-feature-icon--amber {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.inst2-feature-icon--rose {
  background: rgba(244, 63, 94, 0.12);
  color: #e11d48;
}
.inst2-feature-icon--violet {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}
.inst2-feature-icon--emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.inst2-feature-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.inst2-feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/*=========================
   Planos
=========================*/

.inst2-plans-section {
  background: var(--surface-2);
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.inst2-plans-grid {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.inst2-plan-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.inst2-plan-card .inst2-btn {
  margin-top: auto;
}

.inst2-plan-card--featured {
  border: 2px solid var(--primary);
}

.inst2-plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.inst2-plan-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.inst2-plan-card--featured .inst2-plan-name {
  color: var(--primary);
}

.inst2-plan-price {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 24px;
}
.inst2-plan-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.inst2-plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.inst2-plan-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #374151;
}

.inst2-plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inst2-plan-features li .icon {
  font-size: 18px;
  color: var(--teal);
  flex-shrink: 0;
}

.inst2-plan-features li.disabled {
  color: var(--text-light);
}

.inst2-plan-features li.disabled .icon {
  color: var(--border);
}

/*=========================
   CTA
=========================*/

.inst2-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #6366f1 100%);
  padding: 96px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inst2-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.inst2-cta::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  filter: blur(100px);
  pointer-events: none;
}

.inst2-cta-inner {
  position: relative;
  z-index: 1;
}

.inst2-cta-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 16px;
}

.inst2-cta-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
}

.inst2-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

.inst2-footer {
  background: var(--dark);
  padding: 48px 0 32px;
}

.inst2-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #27272a;
  margin-bottom: 24px;
}

.inst2-footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.inst2-footer-links a {
  color: #9ca3af;
}
.inst2-footer-links a:hover {
  color: #fff;
}

.inst2-footer-copy {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

/*=========================
   Responsivo
=========================*/

@media (max-width: 1024px) {
  .inst2-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .inst2-nav-links,
  .inst2-nav-actions {
    display: none;
  }
  .inst2-nav-toggle {
    display: flex;
  }
  .inst2-nav-toggle-input:checked ~ .inst2-container .inst2-mobile-menu {
    display: flex;
  }

  .inst2-hero {
    padding: 56px 0 48px;
  }
  .inst2-hero-inner {
    grid-template-columns: 1fr;
  }

  .inst2-story,
  .inst2-steps-section,
  .inst2-models,
  .inst2-features-section,
  .inst2-plans-section {
    padding: 64px 0;
  }

  .inst2-chapter,
  .inst2-chapter--reverse .inst2-chapter-media,
  .inst2-chapter--reverse .inst2-chapter-body {
    order: initial;
  }
  .inst2-chapter {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .inst2-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .inst2-tab-panel {
    grid-template-columns: 1fr;
  }
  .inst2-tab-labels {
    flex-wrap: wrap;
  }

  .inst2-features-grid,
  .inst2-plans-grid {
    grid-template-columns: 1fr;
  }
  .inst2-plans-grid {
    max-width: 420px;
  }

  .inst2-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .inst2-cta-actions .inst2-btn,
  .inst2-hero-actions .inst2-btn {
    width: 100%;
  }
}
