/* ============================================================
   ESCALA GOVTECH BRASIL - dobras 2-6, rodapé e cookies
   Depende dos tokens e classes base definidos em styles.css
   ============================================================ */

/* ============================================================
   O QUE É (segunda dobra)
   ============================================================ */
.about__body {
  margin-top: 28px;
  display: grid;
  gap: 20px;
  max-width: 68ch;
}

.about__body p {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.7;
  color: var(--muted);
}

.about__body p strong { color: var(--ink); }

.about__body p:first-child {
  color: var(--ink);
  border-left: 3px solid var(--green);
  padding-left: 22px;
}

/* ============================================================
   ÂNCORAS (terceira dobra)
   ============================================================ */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.chips li {
  font-size: 14.5px;
  font-weight: 700;
  border: 1.5px solid rgba(16, 18, 17, 0.25);
  border-radius: var(--radius-cta);
  padding: 9px 18px;
}

.role {
  margin-top: 64px;
  max-width: 68ch;
}

.role h3 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.role p {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.benefits-title {
  margin-top: 72px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.benefits {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.benefit {
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--hairline);
}

.benefit h4 {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.benefit p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.benefit .benefit__figure {
  display: block;
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 14px 0 6px;
}

/* células destacadas do grid (2 + 3) */
.benefit--green {
  grid-column: span 3;
  background: #F4AB23;
  border: none;
  color: #000000;
  padding: 40px 36px;
}
.benefit--green p { color: #000000; }
.benefit--green .benefit__figure { color: #000000; }

.benefit--navy {
  grid-column: span 3;
  background: #F4AB23;
  border: none;
  color: #000000;
  padding: 40px 36px;
}
.benefit--navy p { color: #000000; }
.benefit--navy .benefit__figure { color: #000000; }

.benefit--std { grid-column: span 2; }

.anchors__cta { margin-top: 48px; }

/* ============================================================
   FUNIL (quarta dobra) - bloco de cor marinho (único da página)
   ============================================================ */
.funnel {
  background: var(--black);
  color: var(--navy-ink);
  border-top: 6px solid;
  border-image: linear-gradient(90deg, var(--green), var(--amber)) 1;
}

.funnel .section-title { color: var(--navy-ink); }

.funnel .lead { color: var(--navy-muted); }

.steps {
  margin-top: 64px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

/* linha do tempo: degradê verde->amarelo atravessando os marcadores */
.steps::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--amber));
}

.step__marker {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--black);
  outline: 2px solid var(--green);
  margin-bottom: 26px;
}

.step h3 {
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.step__when {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
}

.step p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--navy-muted);
  max-width: 34ch;
}

/* ============================================================
   CREDIBILIDADE E CONTATO (quinta dobra)
   ============================================================ */
.governance {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.governance div {
  border-top: 3px solid var(--green);
  padding-top: 18px;
}

.governance .gov__role {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
}

.governance .gov__org {
  display: block;
  margin-top: 6px;
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* régua oficial de governança: logos brancos sobre preto */
.governance-bar {
  margin-top: 40px;
  background: var(--black);
  padding: clamp(28px, 3.4vw, 48px) clamp(24px, 4vw, 56px);
}

.governance-bar img {
  display: block;
  width: 100%;
  max-width: 880px;
  height: auto;
  margin: 0 auto;
}

.logo-wall {
  margin-top: 56px;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  padding: clamp(20px, 3vw, 40px);
}

.logo-wall img {
  display: block;
  width: 100%;
  height: auto;
}

.contact { margin-top: 72px; }

.contact h3 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.contact > p {
  margin-top: 12px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}

.contact__people {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact__card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 22px 28px;
  min-width: 280px;
}
.contact__card:hover { border-color: var(--green); }

.contact__card strong { display: block; font-size: 16.5px; font-weight: 900; }

.contact__card span {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--green-text);
  font-weight: 700;
}

/* ============================================================
   FAQ (sexta dobra)
   ============================================================ */
.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
  max-width: 860px;
}

.faq-list details { border-bottom: 1px solid var(--hairline); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 24px 56px 24px 0;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 400;
  color: var(--green-text);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  padding: 0 0 26px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 72ch;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  padding: 72px 0 40px;
}

.footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hairline);
}

.footer__cta h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 900;
  letter-spacing: -0.015em;
}

.footer__cta .ctas { flex-wrap: wrap; }

.footer__attribution {
  margin-top: 40px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 76ch;
}

.footer__legal {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}

.footer__legal a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer__legal a:hover { color: var(--green-text); }

/* ============================================================
   COOKIE BANNER (LGPD)
   ============================================================ */
.cookie {
  position: fixed;
  z-index: 60;
  left: 20px;
  bottom: 20px;
  max-width: 560px;
  background: var(--ink);
  color: #F0F0F1;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 48px rgba(16, 18, 17, 0.35);
}

.cookie p { font-size: 14px; line-height: 1.55; }

.cookie a { color: var(--amber); font-weight: 700; }

.cookie button {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 900;
  color: #06130A;
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-cta);
  padding: 11px 24px;
  cursor: pointer;
}
.cookie button:hover { background: #E09C15; }
.cookie button:active { transform: translateY(1px) scale(0.98); }

/* ============================================================
   Colapso mobile das seções (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  .benefits { grid-template-columns: 1fr; }
  .benefit--green, .benefit--navy, .benefit--std { grid-column: span 1; }

  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }

  .governance { grid-template-columns: 1fr; gap: 24px; }

  .contact__card { width: 100%; min-width: 0; }

  .footer__cta { flex-direction: column; align-items: stretch; }

  .cookie { left: 12px; right: 12px; flex-direction: column; align-items: stretch; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie button, .faq-list summary::after { transition: none; }
}
