:root {
  --institutional-header-height: 68px;
  --institutional-header-offset: 12px;
  --institutional-content-width: 1180px;
}

html {
  scroll-padding-top: calc(var(--institutional-header-height) + var(--institutional-header-offset) + 18px);
}

body {
  padding-top: calc(var(--institutional-header-height) + var(--institutional-header-offset) + 12px) !important;
}

.brand-fixed-header {
  position: fixed !important;
  top: var(--institutional-header-offset) !important;
  right: auto !important;
  left: 50% !important;
  width: min(var(--institutional-content-width), calc(100% - 28px)) !important;
  height: var(--institutional-header-height) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  background: rgba(10, 16, 49, 0.97) !important;
  box-shadow: 0 16px 42px rgba(8, 12, 38, 0.2) !important;
  transform: translateX(-50%);
  overflow: visible;
  z-index: 2147480000 !important;
  box-sizing: border-box;
  isolation: isolate;
}

.brand-fixed-header-inner {
  width: 100%;
  max-width: none !important;
  height: 100%;
  margin: 0 auto;
  min-width: 0;
  padding: 0 10px 0 20px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.brand-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-header-left,
.brand-header-nav {
  min-width: 0;
}

.brand-header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px !important;
  margin-left: auto;
  padding: 4px 0;
  overflow: visible !important;
}

.brand-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 13px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.brand-nav-link i,
.brand-nav-link svg {
  display: none;
}

.brand-nav-link:hover,
.brand-nav-link:focus-visible,
.brand-nav-link.active {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
  transform: none !important;
}

.brand-nav-link.active {
  box-shadow: inset 0 -2px 0 #f97316 !important;
}

.brand-nav-link--accent {
  min-height: 46px;
  margin-left: 7px;
  padding: 0 18px !important;
  background: #f97316 !important;
  color: #fff !important;
}

.brand-nav-link--accent:hover,
.brand-nav-link--accent:focus-visible {
  background: #ea580c !important;
  box-shadow: none !important;
}

.brand-header-logo {
  display: block;
  height: 31px !important;
  width: auto;
  max-width: 142px;
  object-fit: contain;
}

.brand-header-title {
  display: none !important;
  letter-spacing: 0 !important;
}

.brand-fixed-header,
.brand-fixed-header a,
.brand-fixed-header button,
.hero,
.hero-banner,
.page,
.page-container {
  font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif !important;
}

.hero h1,
.hero h2,
.hero-banner h1,
.page h1,
.page h2,
.page-container h1,
.page-container h2,
.page-container h3 {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif !important;
}

.brand-header-menu {
  display: none;
}

.brand-fixed-header + .hero {
  min-height: calc(100svh - var(--institutional-header-height));
  padding-top: 40px !important;
}

.brand-fixed-header + .hero-banner {
  margin-top: 0 !important;
}

.brand-fixed-header + .page.hero {
  padding-top: 48px !important;
}

.hero h1,
.hero-banner h1,
.title-xl,
.title-lg,
.section-title,
.section-title-main,
.tutorial-header h2 {
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
}

.page,
.page-container,
.brand-fixed-header-inner {
  max-width: var(--institutional-content-width);
}

.page {
  padding-right: 28px !important;
  padding-left: 28px !important;
}

.table-container {
  max-width: 100%;
}

/* Central do Criador: leitura direta e eixo visual unico. */
.hero-banner-container {
  max-width: 920px !important;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-banner p {
  margin-left: auto !important;
  margin-right: auto !important;
}

.url-access-box {
  max-width: 520px;
  justify-content: center;
  text-align: left;
}

@media (max-width: 768px) {
  :root {
    --institutional-header-height: 58px;
    --institutional-header-offset: 8px;
  }

  .brand-fixed-header {
    height: var(--institutional-header-height) !important;
    width: calc(100% - 16px) !important;
    border-radius: 10px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .brand-fixed-header-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px !important;
    padding: 0 7px 0 14px !important;
  }

  .brand-header-left {
    width: auto;
    max-width: calc(100vw - 78px);
    height: 100%;
    justify-content: flex-start;
    gap: 9px !important;
  }

  .brand-header-logo {
    height: 25px !important;
    max-width: 116px;
  }

  .brand-header-title {
    display: none !important;
  }

  .brand-header-nav {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    width: min(300px, calc(100vw - 16px));
    height: auto;
    display: none !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px !important;
    padding: 9px !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #080c26;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  }

  .brand-fixed-header.is-menu-open .brand-header-nav {
    display: grid !important;
  }

  .brand-nav-link {
    width: 100%;
    min-height: 43px;
    justify-content: flex-start;
    padding: 0 12px !important;
    font-size: 0.76rem !important;
  }

  .brand-nav-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-nav-link--accent {
    justify-content: center;
    margin: 5px 0 0;
  }

  .brand-header-menu {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 42px;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
  }

  .brand-header-menu span {
    width: 17px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.18s ease;
  }

  .brand-header-menu[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .brand-header-menu[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .brand-fixed-header + .hero {
    min-height: calc(100svh - var(--institutional-header-height));
    padding: 30px 0 50px !important;
  }

  .brand-fixed-header + .hero-banner {
    padding: 30px 18px 34px !important;
    border-radius: 0 0 8px 8px !important;
  }

  .brand-fixed-header + .page.hero {
    padding: 34px 20px 42px !important;
  }

  .hero-banner h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.65rem) !important;
    line-height: 1.08 !important;
  }

  .hero-banner p {
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
  }

  .badge-tag-highcontrast {
    max-width: 100%;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
  }

  .url-access-box {
    width: 100%;
    max-width: 100%;
    padding: 13px 14px !important;
    box-sizing: border-box;
  }

  .url-access-box strong {
    font-size: 0.95rem !important;
    overflow-wrap: anywhere;
  }

  .page-container {
    width: 100%;
    padding: 20px 14px 44px !important;
    box-sizing: border-box;
  }

  .tutorial-section {
    padding: 22px 14px !important;
    margin-bottom: 30px !important;
    border-radius: 8px !important;
  }

  .tutorial-header {
    margin-bottom: 22px !important;
    text-align: left !important;
  }

  .tutorial-header h2 {
    font-size: 1.45rem !important;
    line-height: 1.2;
  }

  .tutorial-grid,
  .modalities-cards-container {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .tutorial-step-card,
  .modality-item-card {
    min-width: 0;
    padding: 18px !important;
    border-radius: 8px !important;
  }

  .section-title-main {
    align-items: flex-start !important;
    font-size: 1.45rem !important;
    line-height: 1.2;
  }

  .modality-header-row {
    align-items: flex-start !important;
  }

  .modality-title-box {
    min-width: 0;
  }

  .modality-title-box h3 {
    font-size: 1.12rem !important;
    overflow-wrap: anywhere;
  }

  .modality-specs-grid {
    padding: 11px !important;
    border-radius: 8px !important;
  }

  .spec-row {
    align-items: flex-start !important;
    flex-wrap: wrap;
  }

  .spec-label,
  .spec-val {
    white-space: normal !important;
  }

  .spec-val {
    flex: 1 1 150px;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .commercial-cta-box {
    padding: 28px 18px !important;
    border-radius: 8px !important;
  }

  .commercial-cta-box h2 {
    font-size: 1.5rem !important;
  }

  .btn-whatsapp-commercial {
    width: 100%;
    justify-content: center;
    padding: 13px 16px !important;
    box-sizing: border-box;
    text-align: center;
  }

  .brand-fixed-header + .hero .container {
    width: 100%;
    box-sizing: border-box;
  }
}

@media print {
  body {
    padding-top: 0 !important;
  }

  .brand-fixed-header {
    display: none !important;
  }
}
