:root {
  --agents-shell-container: 1280px;
  --agents-shell-gutter: clamp(20px, 5.55vw, 80px);
}

#root > .announce,
#root > .site-header,
body > .site-header__drawer {
  display: none !important;
}

/* Mantém o primeiro conteúdo na mesma posição da landing original enquanto o
   novo header flutua sobre a hero. */
#root > main > .hero {
  padding-top: 208px;
}

.agents-skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #1c1917;
  color: #fff;
  font: 600 14px/1 "Montserrat", Arial, sans-serif;
}

.agents-skip-link:focus { transform: translateY(0); }

.agents-new-header {
  position: sticky;
  top: 12px;
  z-index: 70;
  height: 64px;
  margin-bottom: -64px;
  padding-inline: var(--agents-shell-gutter);
  pointer-events: none;
}

.agents-new-header__inner {
  position: relative;
  width: min(100%, var(--agents-shell-container));
  min-height: 64px;
  margin-inline: auto;
  padding-inline: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.59), rgba(244, 242, 242, 0.39)), color-mix(in srgb, #f4f2f2 44%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), inset 0 -1px 0 rgba(46, 42, 35, 0.035), 0 10px 34px rgba(28, 25, 23, 0.075), 0 2px 8px rgba(28, 25, 23, 0.035);
  backdrop-filter: blur(18px) saturate(1.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.28);
  pointer-events: auto;
}

.agents-new-header__inner::before {
  content: "";
  position: absolute;
  inset: 1px 12% auto;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

.agents-new-header__logo { width: 64px; justify-self: start; }
.agents-new-header__logo img { display: block; width: 64px; height: auto; }
.agents-new-header__nav { display: flex; align-items: center; justify-content: center; gap: 2px; }

.agents-new-header__nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #2e2a23;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.agents-new-header__nav a:hover { background: rgba(46, 42, 35, 0.05); }
.agents-new-header__nav a[aria-current="page"] { color: #1c1917; font-weight: 600; }

.agents-new-header__action,
.agents-mobile-panel__action {
  min-height: 42px;
  padding: 0 14px 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e94e1b;
  border-radius: 999px;
  background: #e94e1b;
  color: #1c1917;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.agents-new-header__action::after,
.agents-mobile-panel__action::after {
  content: "↗";
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition: transform 150ms ease;
}

.agents-new-header__action { justify-self: end; }
.agents-new-header__action:hover,
.agents-mobile-panel__action:hover {
  border-color: #eb683d;
  background: #eb683d;
  transform: translateY(-1px);
}

.agents-new-header__action:hover::after,
.agents-mobile-panel__action:hover::after { transform: translate(2px, -2px); }

.agents-new-header__menu-button {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(46, 42, 35, 0.55);
  border-radius: 50%;
  background: transparent;
  color: #2e2a23;
}

.agents-new-header__menu-button svg { width: 20px; margin: auto; }

.agents-mobile-panel {
  position: fixed;
  z-index: 68;
  top: 84px;
  right: var(--agents-shell-gutter);
  left: var(--agents-shell-gutter);
  padding: 10px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: color-mix(in srgb, #f4f2f2 76%, transparent);
  box-shadow: 0 18px 48px rgba(28, 25, 23, 0.13);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

.agents-mobile-panel[hidden] { display: none; }
.agents-mobile-panel nav { display: grid; }

.agents-mobile-panel nav a {
  padding: 16px 0;
  border-bottom: 1px solid rgba(46, 42, 35, 0.11);
  color: #2e2a23;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
}

.agents-mobile-panel nav a[aria-current="page"] { color: #c13a10; }
.agents-mobile-panel__action {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  padding-inline: 24px;
  font-size: 16px;
}

/* Hero typography aligned with the approved Home and Training scale. */
#root .hero__headline {
  margin: 0 0 30px;
  font-size: clamp(44px, 5.75vw, 83px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.035em;
}

#root .hero__headline em.brand {
  font-size: 1.03em;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-style: normal;
}

#root .hero__subline {
  max-width: 48ch;
  margin: 0 auto 36px;
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Editorial typography aligned with the approved V4 page system. */
#root .problem__headline {
  font-size: clamp(48px, 5.2vw, 72px);
  font-weight: 500;
  line-height: 1.04;
}

#root .problem__headline-accent {
  font-size: 1.03em;
  font-weight: 400;
  font-style: normal;
}

#root .problem__subtitle {
  font-size: 18px;
  line-height: 1.6;
}

#root .problem__metric-value {
  font-weight: 600;
}

#root .agents-ops__section-header,
#root .agents-ops__header {
  align-items: flex-start;
  text-align: left;
}

#root .agents-ops__headline,
#root .how__headline {
  font-size: clamp(40px, 4.55vw, 64px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

#root .agents-ops__subline,
#root .how__subline {
  font-size: 17px;
  line-height: 1.6;
}

#root .ops-block__headline {
  font-size: clamp(26px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.2;
}

#root .how__headline-brand {
  font-size: 1.03em;
  font-weight: 400;
  font-style: normal;
}

#root .about-team__headline {
  font-size: clamp(42px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

#root .about-team__intro {
  font-size: 17px;
  line-height: 1.65;
}

#root .founder__name {
  font-size: clamp(23px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

#root .founder__bio {
  font-size: 16px;
  line-height: 1.65;
}

#root .site-footer__headline {
  font-size: clamp(48px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

#root .site-footer__subline {
  font-size: 17px;
  line-height: 1.6;
}

#root .site-footer__cta {
  font-size: 15px;
  font-weight: 600;
}

#root .site-footer__meta-link,
#root .site-footer__copyright {
  font-size: 12px;
}

@media (max-width: 1040px) {
  .agents-new-header__inner { grid-template-columns: auto 1fr auto; }
  .agents-new-header__nav,
  .agents-new-header__action { display: none; }
  .agents-new-header__menu-button { display: grid; }
}

@media (max-width: 780px) {
  .agents-new-header { padding-inline: 20px; }
  .agents-new-header__inner { padding-inline: 28px 20px; }
  .agents-new-header__logo,
  .agents-new-header__logo img { width: 62px; }
  .agents-mobile-panel { right: 20px; left: 20px; }
}

@media (max-width: 640px) {
  #root .hero__inner {
    align-items: center;
    text-align: center;
  }

  #root > main > .hero {
    padding-top: 156px;
    padding-bottom: 80px;
  }

  #root .hero__headline {
    margin-bottom: 30px;
    font-size: clamp(38px, 10.8vw, 42px);
    line-height: 1;
  }

  #root .hero__headline em.brand {
    font-size: 1.03em;
    line-height: 1.02;
  }

  #root .hero__subline {
    max-width: 48ch;
    margin: 0 auto 36px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
  }

  #root .problem__headline {
    font-size: clamp(38px, 10.8vw, 44px);
    line-height: 1.08;
  }

  #root .problem__subtitle {
    font-size: 16px;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agents-new-header *,
  .agents-mobile-panel * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* WCAG 2.2 AA contrast corrections from the independent audit. */
#root .hero__eyebrow-sep {
  color: var(--ink-muted);
}

#root .problem:not(.problem--orange) .problem__eyebrow,
#root .problem:not(.problem--orange) .problem__metric-source {
  color: #9b958f;
}

#root .badge--cyan {
  color: #1a7880;
}

#root .badge--cyan .badge__dot {
  background: #1a7880;
}

#root .founder__linkedin {
  transition: color 150ms ease, border-color 150ms ease;
}

#root .founder__linkedin:hover {
  color: var(--ink-strong);
  border-bottom-color: var(--orange-deep);
  opacity: 1;
}

/* Team section aligned with the approved Home, Treinamentos and Consultoria system. */
#root .agents-authority {
  padding: clamp(72px, 8.35vw, 120px) 0 clamp(56px, 5vw, 72px);
  border-top: 0;
  background: transparent;
}

#root .agents-authority__inner {
  display: grid;
  gap: clamp(52px, 6vw, 80px);
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5.55vw, 80px);
}

#root .agents-authority__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: end;
}

#root .agents-authority__title {
  max-width: 850px;
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(42px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

#root .agents-authority__accent {
  color: var(--orange);
  font-family: var(--font-brand);
  font-size: 1.03em;
  font-weight: 400;
}

#root .agents-authority__body {
  max-width: 44ch;
  margin: 0;
  justify-self: end;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

#root .agents-leadership {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

#root .agents-leader {
  min-width: 0;
}

#root .agents-leader__photo-frame {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid color-mix(in srgb, var(--warm-gray) 78%, transparent);
  border-radius: 24px;
  background: var(--cream);
}

#root .agents-leader__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(1.02);
}

#root .agents-leader__content {
  display: grid;
  gap: 18px;
  padding: 22px 4px 0;
}

#root .agents-leader__heading {
  display: flex;
  gap: 24px;
  align-items: baseline;
  justify-content: space-between;
}

#root .agents-leader__name {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(23px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

#root .agents-leader__role {
  flex: none;
  color: var(--orange-ink);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

#root .agents-leader__bio {
  max-width: 55ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  #root .agents-authority__intro {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  #root .agents-authority__body {
    max-width: 58ch;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  #root .agents-authority {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  #root .agents-authority__inner {
    gap: 44px;
  }

  #root .agents-authority__title {
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  #root .agents-authority__body {
    font-size: 16px;
    line-height: 1.55;
  }

  #root .agents-leadership {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  #root .agents-leader__photo-frame {
    aspect-ratio: 4 / 3.25;
    border-radius: 18px;
  }

  #root .agents-leader__content {
    gap: 14px;
    padding-top: 18px;
  }

  #root .agents-leader__heading {
    gap: 16px;
  }

  #root .agents-leader__name {
    font-size: 24px;
  }

  #root .agents-leader__bio {
    font-size: 15px;
  }
}

/* ---- Botao "Fale com a Vector" no acabamento compound da Home ---- */
.agents-v4-shell .agents-new-header__action,
.agents-v4-shell .agents-mobile-panel__action {
  min-height: 40px;
  padding: 0 20px;
  gap: 0;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 9999px;
  background-color: #e94e1b;
  background-image: radial-gradient(
    circle at top left,
    rgb(255 255 255 / var(--home-compound-shine-1)),
    rgb(255 255 255 / var(--home-compound-shine-2)),
    rgb(255 255 255 / var(--home-compound-shine-3))
  );
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  animation: home-compound-shine 3.77s linear 2 both;
  transition: background-color 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.agents-v4-shell .agents-new-header__action:hover,
.agents-v4-shell .agents-mobile-panel__action:hover {
  border-color: rgb(255 255 255 / 52%);
  background-color: #eb683d;
  background-image: radial-gradient(
    circle at top left,
    rgb(255 255 255 / var(--home-compound-shine-1)),
    rgb(255 255 255 / var(--home-compound-shine-2)),
    rgb(255 255 255 / var(--home-compound-shine-3))
  );
  box-shadow: 0 6px 18px rgb(233 78 27 / 28%);
  transform: none;
  animation: home-compound-shine 3.77s linear infinite;
}

.agents-v4-shell .agents-new-header__action:focus-visible,
.agents-v4-shell .agents-mobile-panel__action:focus-visible {
  outline: 2px solid #1c1917;
  outline-offset: 3px;
}

.agents-v4-shell .agents-new-header__action::after,
.agents-v4-shell .agents-mobile-panel__action::after {
  content: none;
}

@media (prefers-reduced-motion: reduce) {
  .agents-v4-shell .agents-new-header__action,
  .agents-v4-shell .agents-mobile-panel__action {
    animation: none !important;
    transition: none;
  }
}

/* ---- Hero da Agentes: par de CTAs no acabamento da Home ---- */
.agents-v4-shell .hero__cta {
  align-self: center;
  min-height: 48px;
  padding: 0 26px;
  gap: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 9999px;
  background-color: #e94e1b;
  background-image: radial-gradient(
    circle at top left,
    rgb(255 255 255 / var(--home-compound-shine-1)),
    rgb(255 255 255 / var(--home-compound-shine-2)),
    rgb(255 255 255 / var(--home-compound-shine-3))
  );
  box-shadow: none;
  color: #1c1917;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  animation: home-compound-shine 3.77s linear 2 both;
  transition: background-color 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.agents-v4-shell .hero__cta:hover {
  border-color: rgb(255 255 255 / 52%);
  background-color: #eb683d;
  box-shadow: 0 6px 18px rgb(233 78 27 / 28%);
  transform: none;
  animation: home-compound-shine 3.77s linear infinite;
}

.agents-v4-shell .hero__link {
  align-self: center;
  min-height: 48px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 9999px;
  background-color: color-mix(in srgb, #f4f2f2 44%, transparent);
  background-image: linear-gradient(
    135deg,
    rgb(255 255 255 / 59%),
    rgb(244 242 242 / 39%)
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 86%),
    inset 0 -1px 0 rgb(46 42 35 / 3.5%),
    0 0 0 1px rgb(46 42 35 / 6%),
    0 8px 24px rgb(28 25 23 / 7.5%),
    0 2px 8px rgb(28 25 23 / 3.5%);
  color: #1c1917;
  backdrop-filter: blur(18px) saturate(1.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.28);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  transform: none;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.agents-v4-shell .hero__link:hover {
  border-color: rgb(255 255 255 / 82%);
  background-color: color-mix(in srgb, #f4f2f2 56%, transparent);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 94%),
    inset 0 -1px 0 rgb(46 42 35 / 4%),
    0 0 0 1px rgb(46 42 35 / 8%),
    0 10px 28px rgb(28 25 23 / 8.5%),
    0 2px 8px rgb(28 25 23 / 4%);
  transform: none;
}

.agents-v4-shell .hero__cta:focus-visible,
.agents-v4-shell .hero__link:focus-visible {
  outline: 2px solid #1c1917;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .agents-v4-shell .hero__cta {
    animation: none !important;
    transition: none;
  }
}

@media (max-width: 880px) {
  .agents-v4-shell .hero__actions {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .agents-v4-shell .hero__cta,
  .agents-v4-shell .hero__link {
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }
}

/* ---- Header mobile no padrao compartilhado das outras paginas ---- */
@media (min-width: 881px) and (max-width: 1040px) {
  .agents-new-header__inner {
    grid-template-columns: 1fr auto 1fr;
    padding-inline: 32px;
    gap: 20px;
  }

  .agents-new-header__nav { display: flex; }
  .agents-new-header__nav a { padding: 10px; }
  .agents-new-header__action { display: inline-flex; }
  .agents-new-header__menu-button { display: none; }
}

@media (max-width: 880px) {
  .agents-new-header {
    height: 52px;
    margin-bottom: -52px;
    padding-inline: 0;
  }

  .agents-new-header__inner {
    width: calc(100% - 16px);
    min-height: 52px;
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    padding-inline: 18px 10px;
  }

  .agents-new-header__logo,
  .agents-new-header__logo img { width: 52px; }

  .agents-v4-shell .agents-new-header__action {
    display: inline-flex;
    min-height: 32px;
    padding: 0 14px;
    font-size: 12px;
  }

  .agents-new-header__menu-button {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
  }

  .agents-new-header__menu-button svg { width: 18px; }

  .agents-mobile-panel {
    right: 8px;
    left: 8px;
    top: 72px;
  }
}

@media (max-width: 374px) {
  .agents-v4-shell .agents-new-header__action {
    padding: 0 10px;
    font-size: 11.5px;
  }

  .agents-new-header__logo,
  .agents-new-header__logo img { width: 52px; }
}

.agents-new-header__menu-button .menu-line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 180ms ease, opacity 120ms ease;
}

.agents-new-header__menu-button[aria-expanded="true"] .menu-line--top {
  transform: translateY(5px) rotate(45deg);
}

.agents-new-header__menu-button[aria-expanded="true"] .menu-line--mid {
  opacity: 0;
}

.agents-new-header__menu-button[aria-expanded="true"] .menu-line--bot {
  transform: translateY(-5px) rotate(-45deg);
}

body.menu-open .agents-new-header__action {
  visibility: hidden;
  opacity: 0;
}

.agents-mobile-panel {
  background: color-mix(in srgb, #f4f2f2 96%, transparent);
  box-shadow:
    0 18px 48px rgba(28, 25, 23, 0.13),
    0 0 0 100vmax rgba(28, 25, 23, 0.32);
}

@media (max-width: 880px) {
  .agents-v4-shell .agents-mobile-panel__action {
    width: max-content;
    min-height: 32px;
    padding: 0 14px;
    font-size: 12px;
  }
}
