:root {
  --aa-marinho: #0F2747;
  --aa-marinho-2: #143A63;
  --aa-azul: #1E4A78;
  --aa-azul-medio: #1B4F78;
  --aa-petroleo: #23768A;
  --aa-petroleo-texto: #1F6E80;
  --aa-ciano: #9FD9E6;
  --aa-ciano-suave: #CFEAF1;
  --aa-texto: #15253A;
  --aa-texto-suave: #5B6B7C;
  --aa-texto-claro: #C9DAE6;
  --aa-fundo: #F2F5F8;
  --aa-borda: #E3E9EF;
  --aa-borda-campo: #D6E0E8;
  --aa-verde: #3F6A4C;
  --aa-verde-fundo: #E4EFEA;
  --aa-icone-fundo: #E6F1F4;
  --aa-campo-fundo: #FAFCFD;
  --aa-degrade-faixa: linear-gradient(150deg, var(--aa-marinho) 0%, var(--aa-marinho-2) 45%, var(--aa-azul-medio) 75%, var(--aa-petroleo) 100%);
  --aa-degrade-botao: linear-gradient(90deg, var(--aa-marinho-2), var(--aa-azul-medio) 60%, var(--aa-petroleo));
  --aa-sombra-botao: 0 14px 26px -14px rgba(20, 58, 99, .8);
  --aa-sombra-card: 0 30px 70px -36px rgba(15, 39, 71, .35);
  --aa-foco: rgba(30, 74, 120, .35);
  --aa-font-titulo: "Manrope", "Segoe UI", sans-serif;
  --font: "DM Sans", "Segoe UI", Arial, sans-serif;

  /* Existing components share these theme colors. */
  --blue: var(--aa-azul);
  --navy: var(--aa-marinho);
  --green: var(--aa-petroleo);
  --mint: var(--aa-petroleo-texto);
  --ink: var(--aa-texto);
  --muted: var(--aa-texto-suave);
  --bg: var(--aa-fundo);
  --line: var(--aa-borda);
}

body {
  background: var(--aa-fundo);
  font-weight: 400;
}

h1, h2, h3, h4, .wizard legend {
  color: var(--aa-marinho);
  font-family: var(--aa-font-titulo);
  font-weight: 800;
}

.hero h1, .contact-copy h2, .profile-copy h2,
.section-heading h2, .diagnostic-intro h2, .faq-layout h2 {
  font-weight: 800;
  letter-spacing: -1.4px;
}

.service-card h3, .wizard legend, .wizard-result h3,
.difference-grid h3, .profile-copy h3, .method-steps h3,
.contact-form h3, .instagram-copy h3, .system-lightbox-top h2 {
  font-weight: 700;
  letter-spacing: -.8px;
}

.eyebrow, .eyebrow.dark, .hero .eyebrow, .profile-copy .eyebrow,
.instagram-label, .result-label {
  color: var(--aa-petroleo-texto);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-header {
  border-color: var(--aa-borda);
}

nav > a:not(.button) {
  color: var(--aa-marinho);
}

nav > a:not(.button):hover, .text-link, .instagram-profile {
  color: var(--aa-azul);
}

.button {
  background: var(--aa-degrade-botao);
  color: white;
  border-radius: 12px;
  box-shadow: var(--aa-sombra-botao);
  font-weight: 600;
  transition: filter .2s, transform .2s;
}

.button:hover {
  background: var(--aa-degrade-botao);
  color: white;
  filter: brightness(1.07);
}

.hero .button, .hero .button:hover {
  background: white;
  color: var(--aa-marinho);
  border-color: transparent;
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .45);
  filter: none;
}

.hero .button:hover {
  background: var(--aa-fundo);
}

.hero .text-link, .hero .text-link:hover {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
}

.hero .text-link:hover {
  background: rgba(255, 255, 255, .08);
}

.system-lightbox-close {
  background: white;
  color: var(--aa-azul);
  border: 1px solid var(--aa-borda-campo);
  border-radius: 12px;
}

.system-lightbox-close:hover {
  background: var(--aa-fundo);
}

.hero, .contact-section {
  color: white;
  --mint: var(--aa-ciano);
}

.hero {
  background: var(--aa-degrade-faixa);
}

.contact-section {
  position: relative;
  padding-bottom: max(80px, var(--aa-contact-padding, 106px));
  background: linear-gradient(170deg, var(--aa-marinho) 0%, var(--aa-marinho-2) 40%, var(--aa-azul-medio) 70%, var(--aa-petroleo) 100%);
}

.contact-section::after {
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--aa-marinho-2));
  content: "";
  pointer-events: none;
}

.hero-grid-bg {
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(135deg, black, transparent 82%);
}

.hero h1, .contact-copy h2 {
  color: white;
}

.hero h1 em, .hero .eyebrow, .hero-note .icon, .contact-copy h2 em,
.contact-copy .eyebrow, .contact-channel > .icon, .contact-channel:hover strong {
  color: var(--aa-ciano);
}

.hero .eyebrow > span {
  box-shadow: 0 0 0 4px rgba(159, 217, 230, .15);
}

.hero-copy > p, .hero-note, .hero-foot, .hero-foot > div > span,
.contact-copy > p, .contact-channel small, .contact-copy .contact-location {
  color: var(--aa-texto-claro);
}

/* Keep small labels legible over the petrol end of the hero gradient. */
.hero-foot {
  position: relative;
  isolation: isolate;
}

.hero-foot::before {
  content: "";
  position: absolute;
  inset: -32px min(0px, calc((100% - 100vw) / 2)) 0;
  z-index: -1;
  background: linear-gradient(155deg, transparent 46%, rgba(15, 39, 71, .58));
  pointer-events: none;
}

.system-window {
  background: var(--aa-fundo);
  border-radius: 18px;
}

.system-window-bar {
  background: var(--aa-borda);
  color: var(--aa-texto-suave);
}

.system-window-bar i {
  background: var(--aa-petroleo);
}

.services, .differences, .profile-section, .faq-section {
  background: white;
}

.diagnostic-section, .erp-section, .method-section {
  background: var(--aa-fundo);
}

.service-card, .wizard, .system-card, .profile-photo,
.contact-form, .instagram-card, .system-lightbox {
  background: white;
  border: 1px solid var(--aa-borda);
  border-radius: 20px;
  box-shadow: var(--aa-sombra-card);
}

.service-card:hover {
  border-color: var(--aa-borda-campo);
  box-shadow: var(--aa-sombra-card);
}

.erp-section, .profile-section, .contact-form, .instagram-card {
  color: var(--aa-texto);
}

.service-card > p, .check-list li, .service-top > span:last-child,
.difference-grid p, .choice small, .wizard-progress > span, .back-button,
.faq-list details > p, .erp-section .section-heading > div:last-child,
.profile-copy .profile-role, .profile-copy > p:not(.profile-role),
.profile-education li, .contact-form > .form-privacy, .instagram-qr {
  color: var(--aa-texto-suave);
}

.erp-section .erp-disclaimer {
  color: var(--aa-texto-suave);
}

.icon-box, .method-steps li > span {
  background: var(--aa-icone-fundo);
  color: var(--aa-petroleo);
}

.icon-box {
  border-color: var(--aa-borda);
}

.method-steps li {
  border-color: var(--aa-borda-campo);
}

.method-steps li > span {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  min-height: 26px;
  border-radius: 8px;
  font-weight: 600;
}

.diagnostic-intro h2 em, .diagnostic-promise, .diagnostic-promise .icon,
.difference-grid > article > span, .faq-list summary > .icon {
  color: var(--aa-petroleo-texto);
}

.check-list li::before {
  color: var(--aa-verde);
}

.development-pill, .table-badge:not(.overdue) {
  background: var(--aa-ciano-suave);
  color: var(--aa-azul);
  border-color: var(--aa-borda-campo);
}

.profile-copy::before {
  background: linear-gradient(135deg, transparent 60%, var(--aa-campo-fundo));
}

.contact-channel > span {
  background: rgba(15, 39, 71, .28);
  color: var(--aa-ciano);
  border-color: rgba(159, 217, 230, .36);
}

.contact-form label > span {
  color: var(--aa-petroleo-texto);
}

.contact-form input:not([type="radio"]), .contact-form select, .contact-form textarea,
.period-select select, .filter-select select, .choice {
  background: var(--aa-campo-fundo);
  color: var(--aa-texto);
  border-color: var(--aa-borda-campo);
  border-radius: 12px;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: var(--aa-texto-suave);
}

.contact-form input:not([type="radio"]):focus, .contact-form select:focus, .contact-form textarea:focus,
.period-select select:focus, .filter-select select:focus {
  border-color: var(--aa-azul);
  box-shadow: 0 0 0 4px rgba(30, 74, 120, .12);
}

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible,
.choice:has(input:focus-visible) {
  outline: 3px solid var(--aa-foco);
  outline-offset: 2px;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:where(.hero, .site-footer) :is(a, button):focus-visible,
.contact-copy a:focus-visible {
  /* The offset ring stays visible against the navy background. */
  outline: 3px solid var(--aa-foco);
  box-shadow: 0 0 0 2px var(--aa-ciano);
}

.hero .button:focus-visible {
  box-shadow: 0 0 0 2px var(--aa-ciano), 0 14px 26px -14px rgba(0, 0, 0, .45);
}

.choice:has(input:focus-visible), .channel-choice input:focus-visible {
  border-color: var(--aa-azul);
}

.channel-choice input {
  accent-color: var(--aa-azul);
}

.choice-ring {
  border-color: var(--aa-texto-suave);
}

.choice:has(input:checked) {
  background: var(--aa-icone-fundo);
  border-color: var(--aa-azul);
}

.choice:has(input:checked) .choice-ring {
  border-color: var(--aa-azul);
}

.wizard-progress > div {
  background: var(--aa-borda-campo);
}

.result-format {
  background: var(--aa-icone-fundo);
  color: var(--aa-azul);
  border-color: var(--aa-petroleo);
}

.contact-ready {
  background: var(--aa-verde-fundo);
  border-color: var(--aa-verde);
  color: var(--aa-verde);
}

.contact-ready p {
  color: var(--aa-verde);
}

/* Recolor the two source colors without changing any QR modules or the image file. */
.instagram-qr img {
  filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='qr' color-interpolation-filters='sRGB'%3E%3CfeComponentTransfer%3E%3CfeFuncR type='discrete' tableValues='.0588235294 1'/%3E%3CfeFuncG type='discrete' tableValues='.1529411765 1'/%3E%3CfeFuncB type='discrete' tableValues='.2784313725 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3C/svg%3E#qr");
}

.whatsapp-float, .whatsapp-float:hover {
  background: var(--aa-marinho);
  border-color: white;
}

.site-footer {
  background: var(--aa-marinho);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--aa-texto-claro);
}

.footer-main > p, .footer-main > p span {
  color: var(--aa-texto-claro);
}

.footer-main > p:hover, .footer-main > p:hover span, .footer-main > a:last-child {
  color: var(--aa-ciano);
}

.footer-bottom {
  border-color: rgba(255, 255, 255, .12);
  padding-bottom: 88px;
  color: #A9C2D3;
  font-size: 12px;
}

.skip-link, .noscript-note, ::selection {
  background: var(--aa-ciano-suave);
  color: var(--aa-marinho);
}

@media (max-width: 900px) {
  .contact-section {
    --aa-contact-padding: 80px;
  }

  .menu-toggle {
    background: var(--aa-fundo);
    border-color: var(--aa-borda-campo);
  }

  .menu-toggle > span {
    background: var(--aa-marinho);
  }

  nav {
    border-color: var(--aa-borda-campo);
  }
}

@media (max-width: 700px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .system-window {
    /* Leave the fixed button a clear lane beside the ERP screenshot. */
    margin-inline-end: 60px;
  }

  .hero-foot::before {
    background: linear-gradient(180deg, transparent, rgba(15, 39, 71, .58));
  }
}

@media (prefers-reduced-motion: reduce) {
  .button:hover, .text-link:hover .icon, .system-enlarge:hover img,
  .whatsapp-float:hover {
    transform: none;
  }
}
