.hero-actions .text-link { color: var(--forest); font-size: .875rem; }
.platform-section { background: var(--surface); }
.feature-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.feature-groups button {
  display: grid;
  gap: 7px;
  text-align: left;
  background: #ffffff;
  color: var(--forest);
  border: 1px solid var(--line-brand);
  border-radius: 14px;
  padding: 18px 20px;
}
.feature-groups small { font-size: .64rem; letter-spacing: .09em; font-weight: 750; }
.feature-groups strong { font-size: clamp(.87rem, 1.45vw, 1.12rem); }
.feature-groups button:hover { border-color: var(--forest); }
.feature-groups button[aria-pressed=true] { background: var(--forest); color: white; border-color: var(--forest); }
.feature-groups button[aria-pressed=true] small { color: var(--line-brand); }
.feature-workspace {
  display: grid;
  grid-template-columns: minmax(170px, .65fr) minmax(0, 3fr);
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line-brand);
  border-radius: 18px;
  background: #ffffff;
}
.feature-workspace .module-tabs {
  display: flex;
  flex-direction: column;
  align-self: start;
  margin: 0;
  border: 0;
  padding: 6px;
  background: var(--surface);
}
.feature-workspace .module-tabs button {
  display: flex;
  flex: none;
  justify-content: flex-start;
  white-space: normal;
  text-align: left;
  font-size: .82rem;
  min-height: 45px;
}
.feature-workspace .module-tabs button[hidden] { display: none; }
.feature-workspace .module-tabs button[aria-selected=true] { background: var(--forest); color: #ffffff; }
.feature-workspace .module-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 20px;
  min-width: 0;
  min-height: 315px;
}
.feature-workspace .module-description { display: block; padding: 8px 0; min-height: 0; }
.feature-workspace .module-description h3 { font-size: clamp(1.35rem, 2.3vw, 2rem); margin: 6px 0 12px; }
.feature-workspace .module-description p { font-size: .86rem; line-height: 1.55; }
.feature-workspace .module-example {
  background: var(--surface);
  color: var(--forest);
  padding: 11px 13px;
  border-left: 3px solid var(--forest);
  border-radius: 0 8px 8px 0;
}
.module-example strong { display: block; font-size: .72rem; margin-bottom: 3px; }
.feature-workspace .screen-stage { min-width: 0; }
.feature-workspace .screen-toolbar, .feature-workspace .screen-bottom { padding: 9px 10px; gap: 8px; flex-wrap: wrap; }
.feature-workspace .screen-image-button { height: auto; aspect-ratio: 1.65; }
.feature-workspace .screen-stage.profile-mode .screen-image-button img { width: 100%; height: 94%; box-shadow: none; }
.feature-workspace .screen-bottom > span { font-size: .63rem; }
.feature-groups button:focus-visible, .feature-workspace button:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
@media (max-width: 1000px) {
  .feature-workspace .module-panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .feature-workspace { grid-template-columns: 1fr; gap: 12px; }
  .feature-workspace .module-tabs { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .feature-groups { gap: 6px; }
  .feature-groups button { padding: 10px 8px; }
  .feature-groups small { font-size: .54rem; letter-spacing: .025em; }
  .feature-workspace { padding: 12px; }
}

/* Typography and section rhythm */
body, button, input, textarea, select { font-family: Inter, system-ui, sans-serif; }
h1, h2, h3, .feature-groups strong {
  font-family: Outfit, system-ui, sans-serif;
  letter-spacing: -.035em;
  font-weight: 650;
}
.hero {
  background: var(--forest);
  border-bottom: 0;
}
.hero::before {
  background: radial-gradient(ellipse at 82% 48%, #128c7e 0%, transparent 64%);
}
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.6rem, 5.1vw, 4.85rem);
  line-height: .99;
  letter-spacing: -.045em;
  font-weight: 700;
  text-wrap: balance;
}
.hero h1 span { color: var(--soft-green); }
.hero-copy > p, .hero-caption, .hero-actions .text-link { color: var(--paper); }
.hero-copy > .eyebrow { color: var(--soft-green); }
.hero-actions .button.primary { background: #25d366; color: var(--forest); }
.hero-actions .button.primary:hover { background: var(--soft-green); }
.platform-section, .evaluation-section {
  background: color-mix(in srgb, var(--soft-green) 42%, var(--paper));
}
.services, .faq {
  background: color-mix(in srgb, var(--teal) 9%, var(--paper));
}
.management { background: var(--soft-green); }
.feature-workspace {
  background: color-mix(in srgb, var(--soft-green) 18%, var(--paper));
}
.feature-groups strong { letter-spacing: -.018em; }
@media (max-width: 540px) {
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.35rem); }
}

.hero .hero-visual .visual-word { color: #ffffff; }
.services, .management { background: var(--forest); }
.services .section-heading h2, .management .section-heading h2,
.services .service-tab:not(.active), .services .service-tab:not(.active) small,
.services .service-note, .management .management-copy h3,
.management .management-copy p { color: #ffffff; }
.services .section-heading .eyebrow, .management .section-heading .eyebrow,
.management .management-copy article > span, .management .management-copy .text-link,
.services .service-tab:not(.active) .tab-arrow { color: var(--soft-green); }
.services .service-tab:not(.active):hover { background: #ffffff16; }
.services .service-tab:focus-visible, .management a:focus-visible {
  outline: 2px solid var(--soft-green);
  outline-offset: 3px;
}
.management .management-preview { background: var(--soft-green); }

#solucoes .center-heading { color: white; margin-bottom: 30px; }
#solucoes .center-heading h2 { color: white; }
#solucoes .center-heading .eyebrow { color: var(--soft-green); }
.case-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,430px) minmax(0,1fr); align-items: center; gap: 20px; }
.case-layout .demo-stage { padding: 10px; min-width: 0; }
.case-layout .demo-chat { position: relative; margin: 0 auto; width: 100%; max-width: none; }
.case-layout .demo-messages { height: 340px; min-height: 200px; }
.case-layout .demo-input { display: flex; gap: 8px; padding: 10px; }
.demo-input input { width: 100%; min-width: 0; border: 1px solid var(--line-brand); border-radius: 20px; padding: 10px 14px; color: var(--forest); background: white; }
.demo-input button, .case-repeat { border: 0; border-radius: 20px; padding: 8px 13px; background: var(--forest); color: white; }
.demo-input svg { width: 19px; height: 19px; }
.case-sheet { position: absolute; inset: auto 0 0; z-index: 2; max-height: 88%; overflow: auto; background: white; color: var(--forest); padding: 14px; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 40px #075e5450; }
.case-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.case-sheet-head h3 { margin: 0; }
.case-sheet button { background: white; color: var(--forest); border: 0; padding: 9px; }
#case-departments button { display: block; width: 100%; text-align: left; border-top: 1px solid var(--line-brand); font-weight: 700; }
#case-departments button:hover { background: var(--surface); }
#case-departments small { display: block; margin-top: 3px; font-weight: 400; }
.case-examples p { background: var(--soft-green); color: var(--forest); padding: 14px; border-radius: 12px; }
.case-repeat { display: block; margin: 16px auto; background: var(--soft-green); color: var(--forest); }
.case-layout [hidden], .case-repeat[hidden] { display: none; }
@media (max-width: 800px) {
  .case-layout { grid-template-columns: minmax(0, 430px); justify-content: center; gap: 0; }
  .case-layout .demo-stage { grid-row: 1; }
}

/* Phone mockup for the interactive cases */
#solucoes {
  background: radial-gradient(ellipse at 20% 76%, #128c7e 0%, transparent 55%), #043631;
}
#solucoes .case-layout {
  grid-template-columns: minmax(0,260px) minmax(0,282px) minmax(0,260px);
  justify-content: center;
  gap: 28px;
}
#solucoes .demo-stage {
  padding: 0;
  border: 0;
  border-radius: 34px;
  background: transparent;
  box-shadow: 0 24px 50px #001b1890;
}
#solucoes .demo-chat {
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto auto;
  height: 548px;
  overflow: hidden;
  border: 6px solid #163833;
  border-radius: 34px;
  background: #e8e5db;
  box-shadow: inset 0 0 0 1px #ffffff70;
}
#solucoes .chat-header {
  background: #075e54;
  color: white;
  min-height: 59px;
  padding: 10px;
  gap: 8px;
}
#solucoes .chat-header b { color: white; font-size: .82rem; }
#solucoes .chat-header small { color: #dcf8c6; font-size: .65rem; }
#solucoes .chat-avatar { background: white; color: #075e54; flex-shrink: 0; }
#solucoes .reset-chat { color: white; }
#solucoes .demo-messages {
  height: auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  background: radial-gradient(circle, #075e5412 1px, transparent 1px) 0 0 / 13px 13px, #e8e5db;
}
#solucoes .demo-messages .bubble { font-size: var(--demo-message-font-size, .77rem); max-width: 94%; }
#solucoes .chat-actions:empty { display: none; }
#solucoes .chat-actions { padding: 7px 9px; background: #f0f1eb; max-height: 144px; overflow: auto; }
#solucoes .chat-actions button { font-size: .73rem; }
#solucoes .demo-input { background: #f0f1eb; padding: 8px; gap: 6px; }
#solucoes .demo-input input { border: 0; font-size: .73rem; padding: 9px 11px; }
#solucoes .demo-input button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; padding: 0; background: #128c7e; }
#solucoes .case-examples p { background: white; color: #075e54; font-size: .85rem; margin: 0 0 10px; }
#solucoes .service-note { color: #dcf8c6; text-align: center; }
@media (max-width: 800px) {
  #solucoes .case-layout { grid-template-columns: minmax(0,282px); gap: 0; }
  #solucoes .case-examples:not(:empty) { margin-top: 10px; }
}

#solucoes {
  background: radial-gradient(ellipse at 15% 70%, #352165 0%, #160c35 37%, transparent 66%), #090611;
}
#solucoes .center-heading .eyebrow { color: #d8caff; }
#solucoes .center-heading h2 { color: white; }
#solucoes .case-layout { grid-template-columns: minmax(0,260px) 270px minmax(0,260px); gap: 31px; }
#solucoes .demo-stage { width: 270px; }
#solucoes .demo-chat {
  width: 100%;
  height: 540px;
  min-height: 540px;
  max-height: 540px;
  border: 5px solid #252f3b;
  border-radius: 35px;
  grid-template-rows: 53px minmax(0,1fr) auto 55px;
}
#solucoes .chat-header { min-height: 53px; background: #075e54; }
#solucoes .demo-messages { background-color: #e6dfd2; }
#solucoes .demo-input { grid-row: 4; align-items: center; background: #efefed; }
#solucoes .demo-input[hidden] { display: flex; }
#solucoes .demo-input[hidden] input,
#solucoes .demo-input[hidden] button { opacity: .55; visibility: visible; pointer-events: none; }
#solucoes .case-examples p { color: #202832; padding: 13px 17px; }
#solucoes .case-repeat { background: #4a0aa3; color: white; }
#solucoes .service-note { color: #e4daff; }
@media (max-width: 800px) {
  #solucoes .case-layout { grid-template-columns: 270px; gap: 0; }
}

#solucoes {
  background: radial-gradient(ellipse at 16% 70%, #128c7e 0%, transparent 63%), #075e54;
}
#solucoes .center-heading .eyebrow, #solucoes .service-note { color: #dcf8c6; }
#solucoes .case-repeat { background: #25d366; color: #075e54; }
#solucoes .demo-chat { border-color: #123e38; }
#solucoes .demo-input button:disabled { opacity: .5; }
.case-department-label {
  margin: 9px 0 5px;
  color: #075e54;
  font-size: .64rem;
  letter-spacing: .09em;
  font-weight: 750;
}
#case-departments button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 10px 3px;
}
#case-departments small { line-height: 1.35; }
.case-department-icon { font-size: 1rem; }

#solucoes .demo-chat::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 16px;
  border-radius: 0 0 13px 13px;
  background: #123e38;
  pointer-events: none;
}
#solucoes .demo-chat { grid-template-rows: 70px minmax(0,1fr) auto 55px; }
#solucoes .chat-header { padding-top: 22px; }
#solucoes .case-sheet {
  inset: 0;
  max-height: none;
  border-radius: 0;
  padding: 25px 15px 14px;
  overscroll-behavior: contain;
}
#solucoes .case-sheet-head {
  position: sticky;
  top: -25px;
  background: white;
  padding-top: 18px;
  padding-bottom: 6px;
}
#solucoes .case-examples p {
  animation: case-appear .24s ease-out both;
}
@keyframes case-appear {
  from { opacity: 0; transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  #solucoes .case-examples p { animation: none; }
}

/* Keep the phone anchored while the surrounding content changes. */
#solucoes {
  padding-block: clamp(48px, 6vw, 84px);
  background: radial-gradient(ellipse at 50% 58%, #128c7e 0%, #075e54 66%);
}
#solucoes .center-heading { margin: 0 auto 28px; max-width: 650px; }
#solucoes .center-heading h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; margin: 10px 0; }
#solucoes .center-heading p { color: #dcf8c6; font-size: .95rem; margin: 0; }
#solucoes .case-layout { gap: clamp(14px, 3vw, 36px); }
#solucoes .demo-stage { margin: 0; align-self: start; }
#solucoes .case-examples { display: grid; gap: 8px; }
#solucoes .case-examples p {
  margin: 0;
  background: #ffffff;
  color: #075e54;
  border-radius: 10px;
  border-left: 3px solid #25d366;
  font-size: .82rem;
  line-height: 1.45;
}
#solucoes .service-note { margin: 12px auto 0; max-width: 520px; font-size: .75rem; }
#solucoes .case-sheet { display: grid; grid-template-rows: auto auto minmax(0,1fr); overflow: hidden; }
#solucoes .case-sheet[hidden] { display: none; }
#solucoes .case-sheet-head { position: static; padding: 3px 0 8px; }
#solucoes #case-departments { overflow-y: auto; overscroll-behavior: contain; }
#solucoes .demo-input input:focus-visible, #solucoes button:focus-visible { outline: 2px solid #34b7f1; outline-offset: -2px; }
@media (max-width: 800px) {
  #solucoes .case-layout { grid-template-columns: minmax(0, 270px); gap: 0; }
  #solucoes .demo-stage { width: 100%; }
  #solucoes .case-examples:empty { display: none; }
  #solucoes .case-examples:not(:empty) { margin-top: 8px; }
}

#solucoes { scroll-margin-top: 24px; background: #075e54; }
#solucoes .center-heading p, #solucoes .service-note { color: #fff; }
#solucoes .case-sheet {
  padding: 19px 12px 8px;
  color: #123e38;
  background: #fff;
}
#solucoes .case-sheet-head { padding: 0 0 3px; }
#solucoes .case-department-label { margin: 3px 0; }
#solucoes #case-departments button {
  min-height: 43px;
  padding: 4px 2px;
  font-size: .75rem;
  line-height: 1.1;
  color: #075e54;
}
#solucoes #case-departments small { color: #123e38; font-size: .64rem; line-height: 1.15; }
#solucoes .demo-input input::placeholder { color: #425c56; opacity: 1; }
#solucoes .case-examples p { animation-duration: .38s; }

#solucoes .demo-stage { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 100%; }
#solucoes .demo-chat { position: relative; isolation: isolate; overflow: hidden; min-width: 0; }
#solucoes .case-sheet { position: absolute; inset: 0; width: auto; min-width: 0; min-height: 0; z-index: 5; }
#solucoes #case-departments { min-height: 0; }
#solucoes .case-repeat { justify-self: center; max-width: 100%; margin: 12px 0 0; }
@media (max-width: 800px) {
  #solucoes .demo-chat {
    height: clamp(360px, calc(100svh - 150px), 540px);
    min-height: 0;
  }
}

html { scroll-snap-type: none; scroll-padding-top: 84px; }
#visao-plataforma, #solucoes {
  height: auto;
  min-height: 0;
  display: flow-root;
  scroll-margin-top: 0;
}
#visao-plataforma { padding-block: clamp(42px, 6vw, 84px); }

#solucoes .demo-stage { box-shadow: none; }
#solucoes .demo-chat { box-shadow: 0 2px 5px #001b1860; }

.feature-groups {
  display: flex;
  flex-wrap: wrap;
}
.feature-groups button { padding: 10px 14px; }
.feature-workspace {
  background: #075e54;
  color: #ffffff;
}
.feature-workspace .module-description h3,
.feature-workspace .module-description p { color: #ffffff; }
.feature-workspace .module-number { color: #dcf8c6; }
.feature-workspace .module-example {
  background: #064b44;
  border-left-color: #dcf8c6;
}
.feature-workspace .module-tabs { background: #064b44; }
.feature-workspace .module-tabs button { color: #ffffff; }
.feature-workspace .module-tabs button:hover,
.feature-workspace .module-tabs button[aria-selected=true],
.feature-workspace .module-tags span {
  background: #dcf8c6;
  color: #075e54;
}
.feature-workspace button:focus-visible { outline-color: #25d366; }

#solucoes {
  min-height: 100svh;
  scroll-margin-top: -84px;
  padding-block: 24px;
}
#solucoes .center-heading { margin-bottom: 12px; }
#solucoes .case-repeat { margin-top: 8px; }
#solucoes .demo-chat {
  height: clamp(260px, calc(100svh - 135px), 620px);
  min-height: 0;
  max-height: none;
}
#como-funciona[hidden] { display: none; }
#gestao {
  background: #eefae5;
  color: #123e38;
  border-top: 4px solid #25d366;
}
#gestao .section-heading h2,
#gestao .management-copy h3 { color: #123e38; }
#gestao .section-heading .eyebrow,
#gestao .management-copy p,
#gestao .management-copy .text-link { color: #075e54; }

#inicio.hero {
  background: linear-gradient(125deg, #063c37, #075e54 58%, #137467);
}
#solucoes {
  background: radial-gradient(ellipse at 50% 38%, #13786a, #075e54 58%, #063c37);
}
#gestao .management-copy p,
#gestao .map-caption,
#gestao .window-bar small { color: #234b43; }
#gestao .management-copy article > span,
#gestao .preview-title .outline-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #075e54;
  color: #ffffff;
}

#avaliacao .evaluation-grid {
  padding: clamp(16px, 3vw, 40px);
  border: 1px solid #c5ded3;
  border-radius: 24px;
  background: var(--line-brand);
  gap: clamp(20px, 4vw, 48px);
}
#avaliacao .evaluation-copy,
#avaliacao .evaluation-visual { min-width: 0; }
#avaliacao .evaluation-visual { background: transparent; border-color: transparent; box-shadow: none; }

/* Shared reading scale for section copy. */
#conteudo .hero-copy > p,
#conteudo .feature-workspace .module-description p,
#conteudo #solucoes .center-heading p,
#conteudo .management-copy p,
#conteudo .evaluation-copy > p,
#conteudo .faq-grid > div > p,
#conteudo .faq-list details p,
#conteudo .cta-section p {
  font-family: inherit;
  font-size: .875rem;
  line-height: 1.6;
}
#conteudo .evaluation-examples small,
#conteudo .law-note p {
  font-family: inherit;
  font-size: .8125rem;
  line-height: 1.55;
}

@keyframes showcase-enter {
  from { opacity: .65; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
#module-panel.switching { animation: showcase-enter 240ms ease-out both; }
#solucoes .case-sheet:not([hidden]) { animation: showcase-enter 220ms ease-out both; }
@media (prefers-reduced-motion: reduce) {
  #module-panel.switching,
  #solucoes .case-sheet:not([hidden]) { animation: none; }
}

.case-mobile-examples { display: none; }

@media (max-width: 800px) and (pointer: coarse) {
  #solucoes .case-examples { display: none; }
  #solucoes #case-composer input { font-size: 16px; }
  .case-mobile-examples {
    display: grid;
    gap: 6px;
    align-self: flex-start;
    flex: none;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .case-mobile-examples li {
    font-size: var(--demo-message-font-size, .77rem);
    padding: 8px 12px;
    border: 1px solid #cde1d4;
    border-radius: 10px;
    background: #fff;
    color: #075e54;
  }
}
