:root {
  --ps-primary: #17a1e5;
  --ps-secondary: #116ec1;
  --ps-tertiary: #093761;
  --ps-dark: #31415b;
  --ps-navy: #0d1929;
  --ps-gray: #f7f7f7;
  --ps-light: #c4e8f9;
  --white: #ffffff;
  --ink: #17243a;
  --muted: #5d6878;
  --border: #dce2e8;
  --border-dark: rgba(255, 255, 255, 0.16);
  --container: 1240px;
  --header-height: 76px;
  --shadow-soft: 0 24px 70px rgba(9, 55, 97, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

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

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ps-tertiary);
  transform: translateY(-180%);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(23, 161, 229, 0.38);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #edf0f3;
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.brand-home {
  display: inline-flex;
  align-items: center;
  transition: opacity 180ms ease;
}

.brand-home:hover {
  opacity: 0.76;
}

.brand-logo {
  width: 162px;
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: #cfd7de;
}

.brand-product {
  color: var(--ps-tertiary);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 180ms ease;
}

.brand-product:hover {
  color: var(--ps-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: #1d2a3e;
  font-size: 14px;
  font-weight: 500;
}

.header-nav a {
  position: relative;
  padding: 27px 0 25px;
  white-space: nowrap;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 18px;
  height: 2px;
  background: var(--ps-primary);
  transition: right 180ms ease;
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
  right: 0;
}

.header-home-link {
  white-space: nowrap;
}

/* Language switch. Both languages are always visible as "PT | EN" with the current one
   marked, instead of a single link to the other version: the visitor sees at a glance which
   language they are on, and the pair reads the same in either language. The current item is
   a <span>, not a link, so there is no self-link on the page. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch__item {
  padding: 3px 6px;
  border-radius: 5px;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease;
}

.lang-switch__sep {
  color: rgba(93, 104, 120, 0.45);
  font-weight: 400;
}

.lang-switch__item[aria-current] {
  color: var(--ink);
  background: rgba(23, 161, 229, 0.16);
}

a.lang-switch__item:hover,
a.lang-switch__item:focus-visible {
  color: var(--ps-secondary);
  background: rgba(23, 161, 229, 0.09);
}

/* The header nav gives every link a sliding underline and tall padding; the switch opts out
   of both so it reads as a control rather than a nav destination. */
.header-nav .lang-switch__item {
  padding: 3px 6px;
}

.header-nav .lang-switch__item::after {
  content: none;
}

/* In the mobile menu the whole group becomes one row, matching the link rows above it. */
.mobile-menu .lang-switch {
  padding: 14px 2px;
  border-bottom: 1px solid #edf0f3;
  font-size: 15px;
}

.mobile-menu .lang-switch .lang-switch__item {
  padding: 4px 8px;
  border-bottom: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button-blue {
  color: var(--white);
  background: var(--ps-primary);
  box-shadow: 0 10px 24px rgba(23, 161, 229, 0.17);
}

.button-blue:hover {
  background: #1296d7;
  box-shadow: 0 14px 28px rgba(23, 161, 229, 0.25);
}

.button-black {
  color: var(--white);
  background: #050708;
  box-shadow: 0 10px 24px rgba(5, 7, 8, 0.12);
}

.button-black:hover {
  background: #16202e;
  box-shadow: 0 14px 28px rgba(5, 7, 8, 0.19);
}

.button-outline {
  color: var(--ps-tertiary);
  background: transparent;
  border-color: rgba(9, 55, 97, 0.28);
}

.button-outline:hover {
  background: var(--white);
  border-color: var(--ps-secondary);
}

.button-white {
  color: var(--ps-tertiary);
  background: var(--white);
}

.button-white:hover {
  background: var(--ps-light);
}

.button-arrow {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--ps-tertiary);
  background: var(--ps-gray);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-button[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-button[aria-expanded="true"] .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  z-index: 90;
  top: var(--header-height);
  inset-inline: 0;
  max-height: calc(100vh - var(--header-height));
  overflow: auto;
  padding: 20px 24px 28px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 38px rgba(9, 55, 97, 0.12);
}

.mobile-menu.is-open {
  display: grid;
  gap: 6px;
}

.mobile-menu a:not(.button) {
  padding: 14px 2px;
  border-bottom: 1px solid #edf0f3;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.mobile-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

section {
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247, 247, 247, 1) 0%, rgba(247, 247, 247, 0.96) 52%, rgba(196, 232, 249, 0.34) 100%);
  border-bottom: 1px solid #edf0f3;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(49, 65, 91, 0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 65, 91, 0.036) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.28) 46%, rgba(0, 0, 0, 0.65) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -200px;
  bottom: -330px;
  width: 840px;
  height: 840px;
  border: 1px solid rgba(17, 110, 193, 0.11);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, 0.98fr);
  align-items: center;
  gap: 74px;
  padding: 84px 0 78px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--ps-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--ps-primary);
}

.hero h1 {
  max-width: 710px;
  margin: 0;
  color: var(--ps-dark);
  font-size: clamp(48px, 5.2vw, 76px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero h1 strong {
  color: var(--ps-primary);
  font-weight: 600;
}

.hero-copy {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions .button {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 14px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 52px;
  border-top: 1px solid #cfd8df;
}

.hero-highlight {
  min-height: 100px;
  padding: 20px 24px 0;
}

.hero-highlight + .hero-highlight {
  border-left: 1px solid #cfd8df;
}

.hero-highlight span {
  display: block;
  margin-bottom: 8px;
  color: var(--ps-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-highlight strong {
  display: block;
  color: var(--ps-dark);
  font-size: 14px;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.shape-field {
  position: absolute;
  inset: 14px -42px 14px 12px;
}

.shape {
  position: absolute;
  overflow: hidden;
  border-radius: 16px 46px 16px 16px;
}

.shape-one {
  right: 4%;
  top: 2%;
  width: 62%;
  height: 63%;
  background: linear-gradient(145deg, var(--ps-primary), var(--ps-secondary));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 48% 100%, 0 52%);
  box-shadow: 0 36px 70px rgba(17, 110, 193, 0.2);
}

.shape-two {
  left: 2%;
  bottom: 2%;
  width: 68%;
  height: 60%;
  background: linear-gradient(145deg, rgba(196, 232, 249, 0.94), rgba(23, 161, 229, 0.38));
  clip-path: polygon(0 0, 74% 0, 100% 44%, 100% 100%, 46% 100%, 0 54%);
}

.shape-three {
  right: 0;
  bottom: 9%;
  width: 34%;
  height: 34%;
  background: var(--ps-tertiary);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.96;
}

.shape-lines {
  position: absolute;
  inset: 7% 4% 4% 8%;
  border: 1px solid rgba(9, 55, 97, 0.13);
  border-radius: 18px 58px 18px 18px;
  transform: translate(26px, 24px);
}

.shape-lines::before,
.shape-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  border: inherit;
  border-radius: inherit;
}

.shape-lines::before {
  transform: translate(28px, 26px);
  opacity: 0.64;
}

.shape-lines::after {
  transform: translate(56px, 52px);
  opacity: 0.34;
}

.automation-panel {
  position: relative;
  z-index: 4;
  width: min(94%, 510px);
  margin: 14px 0 0 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(49, 65, 91, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6ebef;
}

.panel-product {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ps-dark);
  font-size: 13px;
  font-weight: 700;
}

.panel-mark {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f6d6d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.status-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18aaa3;
  box-shadow: 0 0 0 5px rgba(24, 170, 163, 0.12);
}

.automation-flow {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.automation-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 0;
}

.automation-step + .automation-step {
  border-top: 1px solid #eef1f4;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ps-secondary);
  background: #eaf6fc;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.automation-step.is-active .step-number {
  color: var(--white);
  background: var(--ps-primary);
}

.step-copy small {
  display: block;
  margin-bottom: 4px;
  color: #7b8592;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-copy strong {
  display: block;
  color: var(--ps-dark);
  font-size: 14px;
  line-height: 1.4;
}

.step-check {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--ps-secondary);
  border: 1px solid #cfe7f5;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.automation-step.is-active .step-check {
  color: var(--white);
  background: #18aaa3;
  border-color: #18aaa3;
}

.panel-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid #e6ebef;
}

.panel-metric {
  padding-right: 14px;
}

.panel-metric + .panel-metric {
  padding-left: 14px;
  border-left: 1px solid #e6ebef;
}

.panel-metric span {
  display: block;
  color: #808995;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-metric strong {
  display: block;
  margin-top: 5px;
  color: var(--ps-tertiary);
  font-size: 12px;
}

.section {
  position: relative;
  padding: 116px 0;
}

.section-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--ps-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  max-width: 920px;
  margin: 0;
  color: var(--ps-dark);
  font-size: clamp(39px, 4.6vw, 62px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-title strong {
  font-weight: 600;
}

.section-lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.transformation {
  background: var(--white);
}

.transformation-head {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  align-items: end;
  gap: 60px;
}

.transformation-head .section-lead {
  margin: 0 0 8px;
}

.process-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 68px;
  background: var(--ps-gray);
  border: 1px solid #e4e8ec;
}

.process-item {
  position: relative;
  min-height: 228px;
  padding: 34px 28px 30px;
}

.process-item + .process-item {
  border-left: 1px solid #dfe4e8;
}

.process-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44%;
  height: 4px;
  background: var(--ps-primary);
}

.process-item:nth-child(2)::before {
  width: 58%;
  background: var(--ps-secondary);
}

.process-item:nth-child(3)::before {
  width: 72%;
  background: var(--ps-tertiary);
}

.process-item:nth-child(4)::before {
  width: 100%;
  background: var(--ps-dark);
}

.process-number {
  color: var(--ps-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.process-item h3 {
  margin: 28px 0 12px;
  color: var(--ps-dark);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.34;
}

.process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.benefits-anchor {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 78px;
}

.benefit-card {
  position: relative;
  padding: 38px 0 0;
  border-top: 1px solid var(--ps-dark);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: var(--ps-secondary);
  background: var(--ps-light);
  border-radius: 4px;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-card h3 {
  margin: 0;
  color: var(--ps-dark);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}

.benefit-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.institutional {
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 28%, rgba(23, 161, 229, 0.23), transparent 30%),
    linear-gradient(125deg, #0d1929 0%, #102c4a 54%, #093761 100%);
}

.institutional::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.55));
}

.institutional-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.78fr);
  align-items: center;
  gap: 90px;
}

.institutional .section-kicker {
  color: var(--ps-light);
}

.institutional .section-title {
  color: var(--white);
}

.institutional .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.agent-vision {
  max-width: 620px;
  margin: 28px 0 0;
  padding-left: 18px;
  color: var(--white);
  border-left: 3px solid var(--ps-primary);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
}

.institutional-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.institutional-note {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.6;
}

.execution-visual {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
}

.execution-symbol {
  position: absolute;
  right: -40px;
  top: 0;
  width: 370px;
  opacity: 0.07;
  filter: grayscale(1) brightness(4);
}

.execution-stack {
  position: relative;
  z-index: 2;
  width: min(100%, 470px);
  display: grid;
  gap: 12px;
}

.execution-row {
  min-height: 104px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-dark);
  backdrop-filter: blur(10px);
}

.execution-row:nth-child(2) {
  margin-left: 30px;
  background: rgba(17, 110, 193, 0.3);
}

.execution-row:nth-child(3) {
  margin-left: 60px;
  background: rgba(23, 161, 229, 0.28);
}

.execution-index {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--ps-light);
  border: 1px solid rgba(196, 232, 249, 0.34);
  font-size: 12px;
  font-weight: 700;
}

.execution-copy small {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.execution-copy strong {
  display: block;
  margin-top: 5px;
  color: var(--white);
  font-size: 17px;
  line-height: 1.35;
}

.execution-arrow {
  color: var(--ps-light);
  font-size: 24px;
}

.contact {
  color: var(--white);
  background: #0d1929;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(600px, 1.15fr);
  align-items: start;
  gap: 64px;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 42px);
}

.contact .section-kicker {
  color: var(--ps-primary);
}

.contact .section-title {
  max-width: 600px;
  color: var(--white);
}

.contact .section-lead {
  color: rgba(255, 255, 255, 0.74);
}

.contact-vision {
  max-width: 650px;
  margin: 24px 0 0;
  padding: 18px 20px;
  color: var(--ps-light);
  background: rgba(23, 161, 229, 0.1);
  border-left: 4px solid var(--ps-primary);
  font-size: 14px;
  line-height: 1.65;
}

.client-access {
  margin-top: 34px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--ps-primary);
  box-shadow: none;
}

.client-access strong {
  display: block;
  color: var(--white);
  font-size: 15px;
}

.client-access a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--ps-primary);
  font-size: 13px;
  font-weight: 700;
}

.lead-form {
  padding: 38px 36px 36px;
  color: var(--ps-dark);
  background: var(--white);
  border: 0;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.2);
}

.form-assurances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}

.form-assurance {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  color: #747474;
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
}

.form-assurance svg {
  width: 21px;
  height: 21px;
  margin-top: 1px;
  color: #777;
  flex: 0 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ps-dark);
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 36px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #7790bf;
  border-radius: 0;
  outline: none;
  font-size: 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input::placeholder {
  color: #929292;
}

.field select:invalid {
  color: #929292;
}

.field select option {
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: var(--ps-primary);
  box-shadow: 0 0 0 3px rgba(23, 161, 229, 0.12);
}

/* The phone field is a country code plus a national number. The column is wide enough for the
   longest option label so the number input never jumps when the code changes. */
.phone-field {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px;
}

.form-consent {
  margin: 18px 0 0;
  color: #4f5968;
  font-size: 10px;
  line-height: 1.55;
}

.form-consent a {
  color: var(--ps-primary);
  text-decoration: none;
  font-weight: 600;
}

.form-consent a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.form-status-success {
  color: #1f5f4d;
  background: #edf8f3;
  border: 1px solid #cfe9de;
}

.form-status-error {
  color: #8a2f2a;
  background: #fff2f1;
  border: 1px solid #f0d0cd;
}

.lead-form .button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

.lead-form .button {
  width: min(100%, 224px);
  min-height: 38px;
  margin: 20px auto 0;
  display: flex;
  padding-inline: 22px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #0d1929;
}

.footer-main {
  padding: 78px 0 62px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.38fr 0.72fr 1fr 0.84fr;
  grid-template-areas:
    "brand platform solutions know"
    "brand content legal social";
  gap: 54px 48px;
  align-items: start;
}

.footer-brand {
  grid-area: brand;
  max-width: 300px;
}

.footer-logo {
  width: 194px;
  height: auto;
}

.footer-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.footer-product::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--ps-primary);
}

.footer-description {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.7;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-column.platform {
  grid-area: platform;
}

.footer-column.solutions {
  grid-area: solutions;
}

.footer-column.know {
  grid-area: know;
}

.footer-column.content {
  grid-area: content;
}

.footer-column.legal {
  grid-area: legal;
}

.footer-column.social {
  grid-area: social;
}

.footer-column h3 {
  margin: 0 0 4px;
  padding-bottom: 12px;
  color: #8191a5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 500;
}

.footer-column a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.45;
}

.footer-column a:hover {
  color: var(--ps-primary);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
}

.social-link {
  width: 24px !important;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--white) !important;
}

.social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.footer-bottom {
  background: #05090f;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom-inner {
  min-height: 94px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 36px;
  padding: 18px 0;
}

.footer-address,
.footer-company {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  line-height: 1.75;
}

.footer-company {
  text-align: right;
}

/* The header needs about 1300px for the brand, four nav links, the language switch and both
   buttons, so it collapses into the menu before the rest of the layout does. Keep this width
   in step with the resize check in site.js. */
@media (max-width: 1320px) {
  .header-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .header-cta {
    display: none;
  }
}

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .shape-field {
    inset: 0 5% 0 5%;
  }

  .automation-panel {
    width: min(84%, 620px);
    margin-inline: auto;
  }

  .transformation-head,
  .institutional-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .transformation-head {
    align-items: start;
    gap: 20px;
  }

  .institutional-inner {
    gap: 52px;
  }

  .execution-visual {
    min-height: 390px;
  }

  .contact-copy {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-areas:
      "brand platform solutions"
      "brand know content"
      "brand legal social";
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .brand-logo {
    width: 144px;
  }

  .brand-product {
    font-size: 13px;
  }

  /* "Acessar Virtual Tower" (.header-access) stays in the bar on phones, outside the menu. */
  .header-inner {
    gap: 16px;
  }

  .mobile-menu-actions {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 68px 0 66px;
  }

  .hero h1 {
    font-size: clamp(44px, 12vw, 62px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .hero-highlight {
    min-height: auto;
    padding: 18px 0;
  }

  .hero-highlight + .hero-highlight {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #cfd8df;
  }

  .hero-visual {
    min-height: 460px;
  }

  .shape-field {
    inset: 2% -18% 0 -4%;
  }

  .automation-panel {
    width: 94%;
    padding: 20px;
  }

  .panel-foot {
    grid-template-columns: 1fr;
  }

  .panel-metric {
    padding: 10px 0;
  }

  .panel-metric + .panel-metric {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #e6ebef;
  }

  .section {
    padding: 88px 0;
  }

  .section-title {
    font-size: clamp(37px, 10vw, 52px);
  }

  .section-lead {
    font-size: 16px;
  }

  .process-board {
    grid-template-columns: 1fr 1fr;
  }

  .process-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #dfe4e8;
  }

  .process-item:nth-child(4) {
    border-top: 1px solid #dfe4e8;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .institutional {
    min-height: auto;
  }

  .execution-row:nth-child(2),
  .execution-row:nth-child(3) {
    margin-left: 0;
  }

  .contact-inner {
    gap: 48px;
  }

  .lead-form {
    max-width: 780px;
    padding: 32px 24px 30px;
  }

  .form-assurances {
    gap: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "platform solutions"
      "know content"
      "legal social";
  }

  .footer-brand {
    max-width: 520px;
  }

  .footer-bottom-inner {
    grid-template-columns: 1fr;
  }

  .footer-company {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .form-assurances {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-assurance {
    grid-template-columns: 20px 1fr;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6e9ed;
  }

  .form-assurance:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .brand-divider,
  .brand-product {
    display: none;
  }

  .brand-logo {
    width: 132px;
  }

  .header-access {
    max-width: 118px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 520px;
  }

  .automation-panel {
    width: 100%;
    margin: 0;
  }

  .automation-step {
    grid-template-columns: 38px 1fr;
  }

  .step-number {
    width: 38px;
    height: 38px;
  }

  .step-check {
    display: none;
  }

  .process-board {
    grid-template-columns: 1fr;
  }

  .process-item + .process-item {
    border-left: 0;
    border-top: 1px solid #dfe4e8;
  }

  .execution-row {
    grid-template-columns: 46px 1fr;
  }

  .execution-index {
    width: 46px;
    height: 46px;
  }

  .execution-arrow {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "platform"
      "solutions"
      "know"
      "content"
      "legal"
      "social";
    gap: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Landing page sections (MKT-001, reworked as a conversion page in MKT-002). They come from the design export with inline
   styles, so this block only carries what cannot live inline: the base colour of the main
   area, the FAQ disclosure, form focus and the mobile overrides. */
.vt-main {
  color: #093761;
  font-size: 16px;
  line-height: 1.6;
  background: #f7f7f7;
}

.vt-main summary {
  cursor: pointer;
  list-style: none;
}

.vt-main summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  display: inline-block;
  transition: transform 0.2s ease;
}

.vt-main details[open] .faq-plus {
  transform: rotate(45deg);
}

.vt-contact {
  background: #093761;
}

.vt-accent {
  color: var(--ps-primary);
}

.vt-contact-phone {
  margin: 28px 0 0;
  color: var(--white);
  font-size: 15px;
}

.vt-contact-phone a {
  color: var(--ps-primary);
  font-weight: 600;
}

@media (max-width: 900px) {
  .vt-h1 {
    font-size: 40px !important;
  }

  .vt-h2 {
    font-size: 32px !important;
  }

  .vt-section > div {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
}

@media (max-width: 560px) {
  .vt-h1 {
    font-size: 34px !important;
  }

  .vt-h2 {
    font-size: 28px !important;
  }

  .vt-section > div,
  .vt-topbar > div {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* MKT-002: login + conversion page. One primary action ("Fazer o diagnóstico") styled with
   .button-primary / .vt-cta; signing in is the secondary action everywhere. */
.button-primary {
  color: var(--white);
  background: var(--ps-secondary);
  box-shadow: 0 10px 24px rgba(17, 110, 193, 0.18);
}

.button-primary:hover {
  background: var(--ps-tertiary);
}

.mobile-menu-actions:has(> :only-child) {
  grid-template-columns: 1fr;
}

.vt-cta {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  color: #ffffff;
  background: var(--ps-secondary);
  font-size: 16px;
  font-weight: 600;
  transition: background 180ms ease;
}

.vt-cta:hover {
  background: var(--ps-tertiary);
}

.vt-text-link {
  color: var(--ps-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.vt-text-link:hover {
  color: var(--ps-tertiary);
}

/* Hero proof strip: three figures side by side, stacked on phones. A list, not headings. */
.vt-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 640px;
  margin: 32px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid #c9d3de;
  list-style: none;
}

.vt-proof li {
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--ps-dark);
  font-size: 14px;
  line-height: 1.45;
}

.vt-proof strong {
  color: var(--ps-tertiary);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
}

/* Closing question of the problem section. */
.vt-closing {
  max-width: 820px;
  margin: 72px auto 0;
  color: var(--ps-tertiary);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.vt-main a:focus-visible,
.site-header a:focus-visible,
.vt-table-scroll:focus-visible {
  outline: 3px solid rgba(23, 161, 229, 0.6);
  outline-offset: 3px;
}

/* Hero: a neutral background for the whole section, and on the right the control tower
   illustration with the cycle card over its lower-left corner. The card stays HTML so its text
   is readable by search engines; on phones the illustration sits above it as a band. */
.vt-hero {
  overflow: hidden;
  background: #f7f7f7 url("hero-fundo.svg") center / cover no-repeat;
}

.vt-hero-visual {
  position: relative;
  flex: 1 1 460px;
  min-width: 0;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.vt-hero-art {
  position: absolute;
  top: -8px;
  right: -56px;
  width: min(118%, 620px);
  height: auto;
}

.vt-hero-visual .vt-hero-stack {
  width: min(78%, 420px);
}

.vt-hero-stack {
  position: relative;
  z-index: 2;
  width: min(100%, 510px);
  display: grid;
  gap: 12px;
}

.vt-login-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 18px;
  color: var(--ps-dark);
  background: #ffffff;
  border-left: 4px solid var(--ps-primary);
  box-shadow: 0 8px 20px rgba(9, 55, 97, 0.1);
  font-size: 14px;
}

.vt-login-strip strong {
  color: var(--ps-secondary);
  font-weight: 700;
}

.vt-login-strip:hover strong {
  color: var(--ps-tertiary);
}

.automation-panel.vt-hero-panel {
  width: 100%;
  margin: 0;
  background: #ffffff;
}

.vt-hero-panel .automation-flow {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.vt-hero-panel .step-copy {
  display: block;
}

/* How it works: sources -> agent -> action and team, in HTML so search engines read it.
   Three columns on desktop with arrows between them; stacked 01 to 04 on smaller screens. */
.vt-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.vt-flow__col {
  position: relative;
  min-width: 0;
}

.vt-flow__col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -32px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--ps-primary);
  transform: translateY(-50%);
}

.vt-flow__tag {
  margin: 0;
  color: var(--ps-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.vt-flow__title {
  margin: 8px 0 20px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.vt-flow__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vt-flow__list li,
.vt-flow__step {
  padding: 12px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--ps-primary);
  border-radius: 6px;
  font-size: 15px;
}

.vt-flow__list li span {
  display: block;
  color: var(--ps-light);
  font-size: 12px;
}

.vt-flow__list li.is-open {
  color: var(--ps-light);
  background: transparent;
  border-style: dashed;
  border-color: var(--ps-light);
  font-weight: 600;
}

.vt-flow__col--agent {
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--ps-primary);
  border-radius: 10px;
}

.vt-flow__step + .vt-flow__step {
  margin-top: 10px;
}

.vt-flow__step p {
  margin: 2px 0 0;
  color: var(--ps-light);
  font-size: 14px;
  line-height: 1.45;
}

.vt-flow__step .vt-flow__step-name {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.vt-flow__col--out {
  display: grid;
  align-content: center;
  gap: 16px;
}

.vt-flow__card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(196, 232, 249, 0.5);
  border-radius: 6px;
}

.vt-flow__card p:not(.vt-flow__tag) {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.5;
}

.vt-flow__card--action {
  background: var(--ps-secondary);
  border-color: var(--ps-secondary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.vt-flow__card--action .vt-flow__tag {
  color: #ffffff;
}

@media (max-width: 900px) {
  .vt-flow {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .vt-flow__col:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -30px;
    left: 24px;
    border-top: 12px solid var(--ps-primary);
    border-right: 8px solid transparent;
    border-bottom: 0;
    border-left: 8px solid transparent;
    transform: none;
  }
}

/* "Em construção com clientes" tag on the Frentes cards. A paragraph, not a heading. */
.vt-status {
  align-self: flex-start;
  margin: 0;
  padding: 3px 8px;
  color: var(--ps-tertiary);
  background: var(--ps-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Form validation messages, next to each field. */
.field-error {
  margin: 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.field-error:empty {
  /* Kept rendered (not display: none) so screen readers pick up the live region when a
     message appears; the negative margin cancels the field's grid gap while it is empty. */
  margin-top: -6px;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #b42318;
}

@media (max-width: 560px) {
  .vt-hero-visual {
    display: block;
    min-height: 0;
    padding: 8px 0 0;
  }

  .vt-hero-art {
    position: static;
    width: 100%;
    margin-bottom: -64px;
  }

  .vt-hero-visual .vt-hero-stack {
    width: 100%;
  }

  /* Full width on phones; the label may wrap to two lines, never truncated. */
  .vt-cta {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    text-align: center;
    white-space: normal;
  }

  .vt-proof {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vt-closing {
    margin-top: 48px;
    font-size: 21px;
  }
}
