/* Camada visual. Não altera textos. Carrega depois dos estilos da página. */

:root {
  --green: #4e7a1c;
  --logo: #70a92d;
  --dark: #1c2b14;
  --muted: #5c6756;
  --pale: #f4f7f0;
  --line: #e3eadc;
  --gray: #5c6756;
  --navy: #1c2b14;
  --blue: #70a92d;
  --blue-deep: #4e7a1c;
  --surface: #f4f7f0;
  --ink: #1c2418;
}

html {
  scroll-padding-top: 96px;
}

body {
  color: var(--ink);
  background: #fff;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}

.skip:focus {
  transform: none;
}

header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 20;
}

.nav {
  height: 84px;
  gap: 0;
  position: relative;
}

header .wrap {
  max-width: 1540px;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex: 0 0 300px;
  margin-left: -36px;
  padding: 0 16px 0 36px;
  background: #fff;
}

.header-content {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid #fff;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand img {
  width: 228px;
}

.links {
  flex: 1;
  justify-content: flex-end;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #243024;
}

.links a:not(.btn) {
  position: relative;
  padding: 7px 8px;
  border: 1px solid #dfe7d8;
  border-radius: 9px;
  background: #fff;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.links a:not(.btn):hover {
  color: var(--blue-deep);
  background: var(--surface);
  border-color: #b7cba4;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #dfe7d8;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-deep);
  font-size: 19px;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--surface);
  border-color: #b7cba4;
}

header .menu {
  color: #fff;
  background: #4e7a1c;
  border-color: #4e7a1c;
  border-radius: 10px;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

header .menu:hover {
  color: #fff;
  background: #3d6316;
  border-color: #3d6316;
  box-shadow: 0 6px 16px rgba(28, 43, 20, 0.18);
  transform: translateY(-1px);
}

.btn {
  border-radius: 10px;
  padding: 13px 18px;
  font-weight: 600;
  letter-spacing: 0;
  gap: 8px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  filter: none;
  background: #3d6316;
  border-color: #3d6316;
  transform: translateY(-1px);
}

.btn.outline {
  background: #fff;
  color: var(--blue-deep);
  border-color: #c9d9b4;
}

.btn.outline:hover {
  background: #f3f8ea;
  color: var(--blue-deep);
  border-color: #9bb57a;
}

header .btn {
  padding: 11px 14px;
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #e8b84a;
  outline-offset: 3px;
}

.eyebrow {
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 16px;
}

.hero {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(112, 169, 45, 0.18), transparent 60%),
    linear-gradient(180deg, #f4f7f0 0%, #fff 72%);
  padding: 72px 0 56px;
}

.hero h1 {
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--navy);
  max-width: 980px;
}

.hero h1 span {
  color: var(--blue);
}

.lead,
.intro,
.card p,
.principle p,
.note,
.film-copy p,
.workday-panel p,
.workday-math p,
.history-photos p,
.mobile-card p,
.pillar-caption {
  color: var(--muted);
}

.actions {
  margin: 28px 0 36px;
}

.stats {
  gap: 48px;
  padding-top: 8px;
}

.stats strong {
  color: var(--navy);
  font-weight: 600;
}

.system {
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(28, 43, 20, 0.06);
  padding: 28px 32px;
}

.system-top {
  letter-spacing: 0.12em;
  color: #667056;
}

.dot {
  background: #70a92d;
  box-shadow: 0 0 0 4px rgba(112, 169, 45, 0.2);
}

.nodes {
  gap: 14px;
}

.node {
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.node:hover {
  background: var(--surface);
  border-color: var(--line);
}

.hero .node:hover {
  background: #eaf3df;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef6e4;
  color: var(--blue);
  font-size: 18px;
}

section {
  padding: 88px 0;
}

h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.card,
.mobile-card,
.workday-panel,
.partner-invite,
.history-photos figure,
.tech-explanations article,
.seal,
.law-details {
  border-radius: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover,
.mobile-card:hover,
.workday-panel:hover,
.partner-invite:hover {
  border-color: #c9d9b4;
  box-shadow: 0 14px 36px rgba(28, 43, 20, 0.07);
  transform: translateY(-2px);
}

.card .num,
.mobile-card > span,
.principle span {
  color: var(--blue);
  font-weight: 700;
}

.card h3,
.mobile-card h3,
.workday-panel h3,
.history-photos h3,
.partner-invite h3 {
  color: var(--navy);
  letter-spacing: -0.02em;
}

.tech {
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(112, 169, 45, 0.22), transparent 55%),
    var(--navy);
  color: #fff;
}

.tech h2,
.tech h3 {
  color: #fff;
}

.tech .eyebrow,
.tech .workday-math-heading,
.tech summary {
  color: #d7ecb4;
}

.tech .intro,
.tech p {
  color: #d5e0cc;
}

.tech .btn.outline,
.tech-explanations .btn.outline {
  color: #f4f8ee;
  border-color: rgba(215, 232, 180, 0.7);
  background: transparent;
}

.tech .btn.outline:not([data-core]):hover,
.tech-explanations .btn.outline:not([data-core]):hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.tech-explanations .btn[data-core] {
  color: #fff;
  background: #4e7a1c;
  border-color: #4e7a1c;
}

.tech-explanations .btn[data-core]:hover {
  background: #3d6316;
  border-color: #3d6316;
  box-shadow: none;
  transform: translateY(-1px);
}

.tech-explanations article {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transition: background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

.tech-explanations article:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: #d7ecb4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.tags span,
.product-links .btn {
  border-radius: 10px;
}

.homolog,
.workday,
.confseguro,
.contact-footer,
.mobile-card,
.partner-invite {
  background: var(--surface);
}

.partner-choice,
.workday-panel,
.history-photos figure,
.seal,
.law-details,
.mobile-apps {
  background: #fff;
}

.principle {
  border-top-color: var(--line);
}

.contact {
  background: linear-gradient(100deg, #3d6316 0%, #4e7a1c 70%);
  padding: 72px 0;
}

.contact h2,
.contact .eyebrow,
.contact p {
  color: #fff;
}

.contact .eyebrow {
  color: #e7f3d4;
}

.contact p {
  color: #eef6e4;
}

.contact .btn {
  background: #fff;
  color: var(--blue-deep);
  border-color: #fff;
}

.contact .btn:hover {
  background: #f3f8ea;
  color: var(--blue-deep);
}

.contact-footer strong {
  color: var(--navy);
  font-weight: 600;
}

.footer-channels {
  color: var(--blue-deep);
}

.footer-channels a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.floating-whatsapp {
  background: #21bb59;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(28, 43, 20, 0.22);
}

.floating-whatsapp:hover {
  background: #23c960;
  filter: none;
  transform: translateY(-1px);
}

.film-player video,
.on-demand-player video,
.video-cover {
  background: var(--navy);
  box-shadow: 0 18px 44px rgba(28, 43, 20, 0.16);
}

.video-play-label {
  background: rgba(78, 122, 28, 0.94);
  border-radius: 12px;
}

.mobile-card {
  display: flex;
  flex-direction: column;
}

.mobile-card .app-video-button,
.mobile-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid #dfe7d8;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-deep);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mobile-card .app-video-button {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: auto;
}

.mobile-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.mobile-brand .btn {
  border-color: #dfe7d8;
}

.mobile-brand .app-video-button {
  margin-top: auto;
}

.mobile-card .app-video-button:hover,
.mobile-card .btn:hover {
  background: #000;
  border-color: #000;
  color: #fff;
  transform: translateY(-1px);
}

.mobile-card .app-video-button:focus-visible {
  outline: 3px solid #4e7a1c;
  outline-offset: 3px;
}

.mobile-brand .btn {
  color: var(--blue-deep);
}

dialog,
.pillar-modal {
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(28, 43, 20, 0.22);
}

dialog::backdrop,
.pillar-modal::backdrop {
  background: rgba(20, 32, 14, 0.72);
}

.pillar-modal h2,
dialog h2 {
  color: var(--navy);
}

.workday-dates strong,
.law-details .law-heading,
.workday-math-heading {
  color: var(--blue-deep);
}

.workday-math-heading {
  margin: 0 0 12px;
  font-size: 14px;
}

.workday-math {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.faq {
  max-width: 680px;
}

.law-details .law-heading {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.faq-item {
  margin-bottom: 10px;
  padding: 0;
  border: 1px solid #dfe7d8;
  border-radius: 12px;
  background: #fff;
  transition: transform 0.18s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
}

.faq-item h3 {
  margin: 0;
  padding: 14px 18px 8px;
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
}

.history-photos img {
  background: var(--surface);
}

@media (max-width: 1520px) {
  header .nav {
    height: 84px;
  }

  .header-brand {
    flex-basis: 280px;
  }

  .brand img {
    width: 210px;
  }

  .header-content {
    justify-content: flex-end;
  }

  header .menu {
    display: block;
    border-radius: 10px;
    font-weight: 600;
  }

  header .links {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 18px 22px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(28, 43, 20, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  header .links.open {
    display: flex;
  }

  header .links a:not(.btn) {
    padding: 11px 14px;
  }

  header .links .btn {
    margin-top: 10px;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .header-brand {
    flex-basis: 236px;
    margin-left: -22px;
    padding-left: 22px;
    padding-right: 10px;
  }

  .brand img {
    width: 180px;
  }

  .header-content {
    gap: 8px;
    padding-left: 10px;
  }

  .header-controls {
    gap: 6px;
  }

  .hero {
    padding: 42px 0 36px;
  }

  .system {
    padding: 18px;
  }

  section {
    padding: 64px 0;
  }

  .card:hover,
  .mobile-card:hover,
  .workday-panel:hover,
  .partner-invite:hover,
  .faq-item:hover {
    transform: none;
  }
}

@media (max-width: 380px) {
  .header-brand {
    flex-basis: 194px;
  }

  .brand img {
    width: 150px;
  }
}

body[data-theme="night"] {
  color: #fff;
  background: #000;
}

body[data-theme="night"] header {
  background: #000;
  border-bottom-color: var(--gray);
}

body[data-theme="night"] .contact-footer {
  --navy: #fff;
  --muted: #fff;
  --ink: #fff;
  --blue-deep: #70a92d;
  --line: var(--gray);
  color: #fff;
  background: #000;
  border-top-color: var(--gray);
}

body[data-theme="night"] .header-brand {
  background: #000;
}

body[data-theme="night"] .header-content {
  background: #000;
  border-left-color: #000;
}

body[data-theme="night"] .links {
  color: #fff;
}

body[data-theme="night"] header .links {
  background: #000;
  border-bottom-color: var(--gray);
}

body[data-theme="night"] .links a:not(.btn) {
  color: #fff;
  background: #000;
  border-color: var(--gray);
}

body[data-theme="night"] .links a:not(.btn):hover {
  color: #000;
  background: #fff;
  border-color: #fff;
}

body[data-theme="night"] .theme-toggle {
  color: var(--logo);
  background: #000;
  border-color: var(--gray);
}

body[data-theme="night"] .theme-toggle:hover {
  color: var(--logo);
  background: #000;
  border-color: var(--green);
}

body[data-theme="night"] .hero,
body[data-theme="night"] .brand-film,
body[data-theme="night"] #sobre-nos,
body[data-theme="night"] #homologacao {
  --navy: #fff;
  --muted: #fff;
  --ink: #fff;
  --dark: #fff;
  --surface: #000;
  --pale: #000;
  --line: var(--gray);
  color: #fff;
  background: #000;
  background-image: none;
}

body[data-theme="night"] #solucoes,
body[data-theme="night"] #aplicativos,
body[data-theme="night"] #operacoes,
body[data-theme="night"] #confseguro {
  --navy: #fff;
  --muted: #fff;
  --ink: #fff;
  --dark: #fff;
  --surface: #000;
  --pale: #000;
  --line: var(--gray);
  color: #fff;
  background: var(--gray);
}

body[data-theme="night"] #jornada {
  --navy: #fff;
  --muted: #fff;
  --ink: #fff;
  --dark: #fff;
  --surface: #000;
  --pale: #000;
  --line: var(--gray);
  color: #fff;
  background: #1c2b14;
}

body[data-theme="night"] :is(
    .hero,
    .brand-film,
    #solucoes,
    #aplicativos,
    #homologacao,
    #operacoes,
    #jornada,
    #confseguro,
    #sobre-nos
  )
  :is(h1, h2, h3, h4, p, small, figcaption, .system-top, .pillar-caption, .note) {
  color: #fff;
}

body[data-theme="night"] .hero h1 span {
  color: var(--blue);
}

body[data-theme="night"] #jornada .workday-dates strong {
  color: var(--green);
}

body[data-theme="night"] .system,
body[data-theme="night"] #solucoes .card,
body[data-theme="night"] .brand-film .partner-invite,
body[data-theme="night"] #homologacao .seal,
body[data-theme="night"] #homologacao .law-details,
body[data-theme="night"] #aplicativos .mobile-card,
body[data-theme="night"] #operacoes .faq-item,
body[data-theme="night"] #jornada .workday-panel,
body[data-theme="night"] #sobre-nos .history-photos figure {
  color: #fff;
  background: #000;
  border-color: var(--gray);
}

body[data-theme="night"] .system-top,
body[data-theme="night"] .node,
body[data-theme="night"] .node:hover,
body[data-theme="night"] .historybox {
  border-color: var(--gray);
}

body[data-theme="night"] .node:hover {
  background: #000;
}

body[data-theme="night"] .hero .node:hover {
  color: #1c2b14;
  background: #eaf3df;
  border-color: #dfe7d8;
}

body[data-theme="night"] #inicio .hero .node:hover .pillar-caption {
  color: #5c6756;
}

body[data-theme="night"] .hero .node:hover .icon {
  color: #4e7a1c;
  background: #eaf3df;
}

body[data-theme="night"] #homologacao .principle {
  border-top-color: var(--gray);
}

body[data-theme="night"] #homologacao .shield {
  color: #fff;
}

body[data-theme="night"] #jornada .workday-dates {
  border-color: var(--gray);
}

body[data-theme="night"] #jornada .workday-dates span,
body[data-theme="night"] #confseguro .on-demand-player figcaption {
  color: #fff;
}

body[data-theme="night"] .brand-film .partner-choice .btn.outline,
body[data-theme="night"] #solucoes .card .btn.outline,
body[data-theme="night"] #aplicativos .mobile-card .app-video-button {
  color: #fff;
  background: #4e7a1c;
  border-color: #4e7a1c;
}

body[data-theme="night"] .brand-film .partner-choice .btn.outline:hover,
body[data-theme="night"] #solucoes .card .btn.outline:hover,
body[data-theme="night"] #aplicativos .mobile-card .app-video-button:hover {
  color: #fff;
  background: #3d6316;
  border-color: #3d6316;
  box-shadow: none;
  transform: translateY(-1px);
}

body[data-theme="night"] #operacoes .faq-item {
  color: #fff;
  background: #000;
  border-color: var(--gray);
}

body[data-theme="night"] #operacoes .faq-item h3 {
  color: var(--logo);
}

body[data-theme="day"] #solucoes .card,
body[data-theme="day"] .brand-film .partner-choice {
  background: var(--pale);
}

body[data-theme="day"] #aplicativos .mobile-card.mobile-brand {
  background: #eaf3df;
  border: 2px solid #4e7a1c;
  box-shadow: 0 10px 24px rgba(78, 122, 28, 0.12);
}

body[data-theme="night"] #aplicativos .mobile-card.mobile-brand {
  background: #1c2b14;
  border-color: #70a92d;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

body[data-theme="day"] .brand-film .partner-choice .btn.outline,
body[data-theme="day"] #solucoes .card .btn.outline,
body[data-theme="day"] #aplicativos .mobile-card .app-video-button {
  color: #fff;
  background: #4e7a1c;
  border-color: #4e7a1c;
}

body[data-theme="day"] .brand-film .partner-choice .btn.outline:hover,
body[data-theme="day"] #solucoes .card .btn.outline:hover,
body[data-theme="day"] #aplicativos .mobile-card .app-video-button:hover {
  color: #fff;
  background: #3d6316;
  border-color: #3d6316;
  box-shadow: none;
  transform: translateY(-1px);
}

body[data-theme="day"] #operacoes .faq-item {
  background: var(--pale);
}

.section-nav {
  position: sticky;
  top: 84px;
  z-index: 19;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.section-nav .wrap {
  display: flex;
  gap: 26px;
  align-items: center;
  min-height: 52px;
  overflow-x: auto;
}

.section-nav a {
  flex: 0 0 auto;
  padding: 14px 0 12px;
  border-bottom: 2px solid transparent;
  color: #243024;
  font-size: 14px;
  font-weight: 600;
}

.section-nav a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero .system {
  margin-top: 0;
}

.hero-grid .nodes {
  grid-template-columns: 1fr;
  gap: 8px;
}

.hero-grid .system-top {
  align-items: flex-start;
  gap: 10px;
}

.product-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-links .btn {
  width: 100%;
  justify-content: flex-start;
  min-height: 54px;
}

.history-photos img {
  object-fit: cover;
  background: #eef3e8;
}

.hero-photo {
  margin: 0 0 16px;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
}

.contact-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.footer-grid strong {
  display: block;
  margin-bottom: 12px;
}

.footer-grid p {
  margin: 0 0 12px;
}

.footer-links,
.footer-grid .footer-channels {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-grid .footer-channels a {
  color: var(--blue-deep);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero-grid,
  .product-links,
  .footer-grid,
  .contact-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card,
  .mobile-card,
  .workday-panel,
  .partner-invite,
  .node,
  .floating-whatsapp {
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .mobile-card:hover,
  .floating-whatsapp:hover {
    transform: none;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #aplicativos .mobile-card:hover {
    box-shadow: 0 16px 38px rgba(28, 43, 20, 0.14);
    transform: translateY(-5px);
  }

  body[data-theme="night"] #aplicativos .mobile-card:hover {
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
  }
}
