/* Reusable component styles — re-skinned to the sprint3 design system
   (see 0_Ajustes_Sprints/0_sprint2_ajustesdokaiky/01-design-system.md).
   Class names are kept stable where existing Jinja macros already emit
   them; only the visual treatment changes. Buttons live in base.css.
   Illustrations + the Rastro de Inteligência trail live in their own
   partials, appended in later build phases. */

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface-card);
  color: var(--navy-700);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
}
.badge__icon {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

/* -- Brand / logo slot ---------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  min-height: 44px;
}
.brand__logo {
  align-self: center;
  height: 26px;
  width: auto;
}
.brand__logo--custom {
  height: 34px;
}
.brand__logo--negative {
  display: none;
}
.site-header .brand__logo--positive,
.site-footer .brand__logo--positive {
  display: none;
}
.site-header .brand__logo--negative,
.site-footer .brand__logo--negative {
  display: block;
}
.brand__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: var(--tracking-display);
  color: #fff;
}
.brand__unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan-300);
  white-space: nowrap;
}
.site-header[data-stuck] .brand__name {
  color: var(--ink);
}
.site-header[data-stuck] .brand__unit {
  color: var(--navy-700);
}
.site-footer .brand__name {
  color: #fff;
}
.site-footer .brand__unit {
  color: var(--cyan-300);
}

/* ============================================================
   HEADER
   ============================================================ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--navy-700), var(--cyan-500), var(--orange-500));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(4, 32, 63, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.22s ease;
}
.site-header[data-stuck] {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
}

.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.14s ease;
}
.site-nav a:hover {
  color: #fff;
}
.site-nav a[aria-current="location"] {
  color: var(--cyan-300);
}
.site-header[data-stuck] .site-nav a {
  color: var(--body);
}
.site-header[data-stuck] .site-nav a:hover {
  color: var(--navy-700);
}
.site-header[data-stuck] .site-nav a[aria-current="location"] {
  color: var(--navy-700);
}
@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  margin-left: auto;
}
@media (min-width: 1081px) {
  .header-actions {
    margin-left: 0;
  }
}
.header-actions .btn--primary {
  background: var(--orange-500);
  color: #1a1005;
}
.header-actions .btn--primary:hover {
  background: var(--orange-400);
}
@media (max-width: 640px) {
  .header-actions__cta {
    display: none;
  }
}
@media (min-width: 641px) {
  .drawer__cta {
    display: none;
  }
}

/* language dropdown: a disclosure button revealing a list of links (each
   language has its own URL, so this isn't a listbox) */
.lang-dd {
  position: relative;
}
.lang-dd__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.lang-dd__btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.site-header[data-stuck] .lang-dd__btn {
  background: var(--tint-cool);
  color: var(--navy-700);
}
.site-header[data-stuck] .lang-dd__btn:hover {
  border-color: var(--hairline);
}
.lang__globe {
  flex: none;
  opacity: 0.7;
}
.lang__flag {
  width: 19px;
  height: 14px;
  border-radius: 2.5px;
  flex: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}
.lang__chev {
  flex: none;
  opacity: 0.65;
  transition: transform 0.18s ease;
}
.lang-dd__btn[aria-expanded="true"] .lang__chev {
  transform: rotate(180deg);
}
.lang-dd__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 140;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 40px -16px rgba(4, 32, 63, 0.36);
}
.lang-dd__menu[hidden] {
  display: none;
}
.lang-dd__menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: background 0.12s ease;
}
.lang-dd__menu a:hover {
  background: var(--tint-cool);
  color: var(--navy-700);
}
.lang-dd__menu a[aria-current="true"] {
  background: var(--tint-blue);
  color: var(--navy-700);
  font-weight: 600;
}
.lang__abbr {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.lang-dd__menu a[aria-current="true"] .lang__abbr {
  color: var(--navy-700);
}
@media (max-width: 420px) {
  .site-header__inner {
    gap: var(--s-sm);
  }
  .lang-dd__btn .lang__flag {
    display: none;
  }
  .lang-dd__btn {
    padding: 0 10px;
  }
  .lang-dd__menu {
    min-width: 196px;
  }
}

/* ============================================================
   MOBILE NAVIGATION
   Below 1080px the links stop fitting the bar; instead of disappearing
   they move to a panel: a button with aria-expanded + a drawer with
   trapped focus, Escape, click-outside, and locked background scroll.
   ============================================================ */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  padding: 0;
  transition: background 0.14s ease;
}
.menu-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.site-header[data-stuck] .menu-btn {
  background: var(--tint-cool);
}
.menu-btn__box {
  display: block;
  position: relative;
  width: 18px;
  height: 12px;
}
.menu-btn__box i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.22s ease, opacity 0.16s ease, top 0.22s ease;
}
.site-header[data-stuck] .menu-btn__box i {
  background: var(--navy-700);
}
.menu-btn__box i:nth-child(1) {
  top: 0;
}
.menu-btn__box i:nth-child(2) {
  top: 5px;
}
.menu-btn__box i:nth-child(3) {
  top: 10px;
}
.menu-btn[aria-expanded="true"] .menu-btn__box i:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-btn__box i:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] .menu-btn__box i:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}
@media (max-width: 1080px) {
  .menu-btn {
    display: flex;
  }
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 32, 63, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.scrim[hidden] {
  display: none;
}
.scrim[data-open] {
  opacity: 1;
}

.drawer {
  position: fixed;
  z-index: 130;
  top: var(--header-h);
  right: 0;
  left: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #04305f, #04203f);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 60px -24px rgba(2, 15, 30, 0.7);
  padding: var(--s-lg) 0 calc(var(--s-lg) + env(safe-area-inset-bottom));
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.drawer[hidden] {
  display: none;
}
.drawer[data-open] {
  transform: none;
  opacity: 1;
}
.drawer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer__nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.drawer__nav a:hover {
  color: #fff;
}
.drawer__nav li:last-child a {
  border-bottom: 0;
}
.drawer__cta {
  display: flex;
  margin-top: var(--s-lg);
}
.drawer__cta .btn {
  flex: 1;
  min-height: 48px;
  font-size: 15px;
  background: var(--orange-500);
  color: #1a1005;
}
@media (min-width: 1081px) {
  .drawer,
  .scrim {
    display: none !important;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface-dark);
  color: var(--on-dark-soft);
  padding: 64px 0 32px;
  font-size: 14px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-xl);
}
.site-footer__top {
  display: grid;
  gap: var(--s-xl);
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}
.site-footer__about {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  max-width: 24rem;
}
.site-footer__description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-dark-soft);
}
.site-footer__powered-by {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8fabc7;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
.site-footer__col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-400);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
}
.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark-soft);
  text-decoration: none;
  transition: color 0.14s ease;
}
.site-footer__link:hover {
  color: #fff;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm) var(--s-lg);
  justify-content: space-between;
  padding-top: var(--s-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #8fabc7;
}
.site-footer__bottom p {
  margin: 0;
}

/* -- Section heading ----------------------------------------------------- */

.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  margin-bottom: var(--s-xxl);
  max-width: 64ch;
}
.section-heading--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}
.section-heading__eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-600);
  letter-spacing: 0.02em;
}
.section-heading--inverse .section-heading__eyebrow {
  color: var(--cyan-300);
}
.section-heading__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.031em;
  color: var(--ink);
  max-width: 20ch;
  text-wrap: balance;
}
.section-heading--inverse .section-heading__title {
  color: #fff;
}
.section-heading__intro {
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  margin-top: var(--s-md);
}
.section-heading--inverse .section-heading__intro {
  color: var(--on-dark-soft);
}
.section-heading--center .section-heading__intro {
  margin-inline: auto;
}

/* -- Tag grid (pill + card variants) -------------------------------------- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--surface-card);
  color: var(--navy-700);
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
}
.chip--inverse {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.chip__icon {
  width: 14px;
  height: 14px;
  color: currentColor;
}

/* -- Semana PRAXIANAI de Inteligência Artificial ----------------------------
   A dark, full-bleed "save the date" banner — deliberately louder than the
   surrounding light sections, with a few continuously-running animations
   (the pulsing live-dot, the glowing CTA) rather than only scroll-reveal,
   since the brief was specifically to draw attention to an upcoming event,
   not just to narrate content as the visitor scrolls past it. */
.ai-week {
  background: var(--navy-900);
  overflow: hidden;
}
.ai-week__inner {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.ai-week__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s-lg);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange-400);
}
.ai-week__badge-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  animation: ai-week-pulse 1.8s ease-in-out infinite;
}
@keyframes ai-week-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 135, 26, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(232, 135, 26, 0);
  }
}
.ai-week__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: var(--tracking-display);
  color: #fff;
  margin: 0 0 var(--s-sm);
}
.ai-week__tagline {
  font-size: 18px;
  font-weight: 600;
  color: var(--cyan-300);
  margin: 0 0 var(--s-md);
}
.ai-week__intro {
  max-width: 62ch;
  margin: 0 auto var(--s-xl);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-dark-soft);
}
.ai-week__topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-sm);
  list-style: none;
  margin: 0 0 var(--s-xl);
  padding: 0;
}
.ai-week__topic {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition-delay: calc(var(--i, 0) * 0.05s);
}
.ai-week .btn--primary.ai-week__cta {
  background: var(--orange-500);
  color: #1a1005;
  animation: ai-week-cta-glow 2.4s ease-in-out infinite;
}
.ai-week .btn--primary.ai-week__cta:hover {
  background: var(--orange-400);
}
@keyframes ai-week-cta-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 135, 26, 0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(232, 135, 26, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-week__badge-dot,
  .ai-week .btn--primary.ai-week__cta {
    animation: none;
  }
}

/* -- PraxianAI Academy & Certification --------------------------------------
   Three belt cards, colored to match the growing-circle illustration above
   them (green → blue → near-black), so the badges and the copy read as one
   deliberate progression rather than three unrelated cards. */
.academy__lead {
  max-width: 70ch;
  margin-top: var(--s-lg);
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  padding-left: 16px;
  border-left: 3px solid var(--orange-500);
}
.academy__progression {
  display: flex;
  justify-content: center;
  margin: var(--s-xl) 0;
}
.academy__progression-art {
  width: 100%;
  max-width: 480px;
  height: auto;
}
.academy__belts {
  display: grid;
  gap: var(--s-lg);
}
@media (min-width: 760px) {
  .academy__belts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.academy-belt {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}
.academy-belt:nth-child(1) {
  border-top-color: var(--green-500);
}
.academy-belt:nth-child(2) {
  border-top-color: var(--navy-500);
}
.academy-belt:nth-child(3) {
  border-top-color: var(--navy-900);
}
.academy-belt__label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.academy-belt__role {
  margin: 4px 0 var(--s-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.academy-belt__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
}

/* -- Security, Privacy & Governance -----------------------------------------
   OWASP/LGPD/GDPR get their own dark, high-contrast badge row — visually
   distinct from (and "louder" than) the regular light tag-grid cards used
   for the other controls below, per the brief to make these three stand
   out assertively rather than blend into one long checklist. */
.security__lead {
  max-width: 70ch;
  margin-top: var(--s-lg);
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  padding-left: 16px;
  border-left: 3px solid var(--orange-500);
}
.standards-row {
  display: grid;
  gap: var(--s-lg);
  margin: var(--s-xl) 0;
}
@media (min-width: 760px) {
  .standards-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.standards-badge {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  background: var(--navy-900);
  border-top: 3px solid var(--orange-500);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}
.standards-badge__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.1);
}
.standards-badge__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cyan-300);
}
.standards-badge__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #fff;
}
.standards-badge__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-soft);
}

/* -- AI Cloud & Infrastructure ---------------------------------------------
   The "stack formula" turns the PDF's own equation ("Infraestrutura + LLMs +
   Tokens + ... + Suporte") into a row of connected pills — a "+" between
   each chip via a pseudo-element, instead of one long plain-text line. */
.ai-cloud__desc {
  max-width: 70ch;
  margin-top: var(--s-lg);
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  padding-left: 16px;
  border-left: 3px solid var(--orange-500);
}
.stack-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-sm);
  list-style: none;
  margin: var(--s-xl) 0 0;
  padding: 0;
}
.stack-formula__term {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
}
.stack-formula__term:not(:last-child)::after {
  content: "+";
  color: var(--muted);
  font-weight: 700;
}

.editorial {
  display: grid;
  gap: var(--s-xl);
}
@media (min-width: 960px) {
  .editorial {
    grid-template-columns: 5fr 7fr;
  }
}
.editorial__body p {
  margin: 0 0 var(--s-md);
  font-size: 16px;
  color: var(--body);
  max-width: 64ch;
}

/* -- About (Quem somos) -----------------------------------------------------
   Reads as continuous prose, but each paragraph and question reveals on
   scroll (data-reveal, see base.css) instead of appearing all at once — the
   "comunicação fluida" the section was asked for: the story unfolds a beat
   at a time as the visitor scrolls, rather than landing as one text wall. */
.about__masthead {
  margin-bottom: var(--s-lg);
}
.about__logo {
  height: clamp(32px, 4vw, 44px);
  width: auto;
}
.about__lead {
  margin-top: var(--s-lg);
  max-width: 70ch;
}
.about__lead p {
  margin: 0 0 var(--s-md);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}
/* Shared bold "breather" statement — reused wherever a section needs the
   PDF's isolated one-line emphasis (e.g. About's "Não começamos do zero.",
   Security's "Segurança não é uma etapa..."). */
.statement-highlight {
  margin: var(--s-lg) 0;
  padding-left: var(--s-md);
  border-left: 3px solid var(--orange-500);
  max-width: 42ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.3;
  color: var(--ink);
}
.about__origin-heading {
  margin-top: var(--s-xxl);
  padding-top: var(--s-xl);
  border-top: 1px solid var(--hairline);
}
.about__questions-intro {
  margin: var(--s-xl) 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-600);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.about-questions {
  list-style: none;
  margin: var(--s-md) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-sm);
  max-width: 60ch;
}
.about-questions__item {
  display: flex;
  align-items: baseline;
  gap: var(--s-sm);
  padding: var(--s-sm) 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition-property: opacity, transform;
}
.about-questions__item:nth-child(2) {
  transition-delay: 0.08s;
}
.about-questions__item:nth-child(3) {
  transition-delay: 0.16s;
}
.about-questions__item:nth-child(4) {
  transition-delay: 0.24s;
}
.about-questions__item:nth-child(5) {
  transition-delay: 0.32s;
}
.about-questions__index {
  flex: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-600);
}
.about-questions__text {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs);
  list-style: none;
  margin: var(--s-lg) 0 var(--s-xl);
  padding: 0;
}
.signals li {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: #fdecd7;
  color: var(--orange-600);
}

.tag-grid {
  display: grid;
  gap: var(--s-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.tag-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--orange-500);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) {
  .tag-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -18px rgba(4, 32, 63, 0.4);
  }
}
.tag-card--inverse {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  border-left-color: var(--orange-400);
}
.tag-card__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-md);
  background: var(--surface-card);
}
.tag-card--inverse .tag-card__icon-wrap {
  background: rgba(255, 255, 255, 0.1);
}
.tag-card__icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--navy-700);
}
.tag-card--inverse .tag-card__icon {
  color: var(--cyan-300);
}
.tag-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.tag-card--inverse .tag-card__title {
  color: #fff;
}
.tag-card__desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
}
.tag-card--inverse .tag-card__desc {
  color: var(--on-dark-soft);
}

/* -- Team roster (photo + role + name + bio, one row per person) ----------- */

.team-roster {
  list-style: none;
  margin: 0 0 var(--s-xl);
  padding: 0;
}
.team-roster__item {
  display: flex;
  gap: var(--s-lg);
  padding: var(--s-xl) 0;
  border-bottom: 1px solid var(--hairline);
}
.team-roster__item:first-child {
  padding-top: 0;
}
.team-roster__photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.team-roster__role {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-500);
}
.team-roster__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--s-sm);
}
.team-roster__bio {
  max-width: 65ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}
@media (max-width: 600px) {
  .team-roster__item {
    flex-direction: column;
    gap: var(--s-md);
  }
  .team-roster__photo {
    width: 72px;
    height: 72px;
  }
}

.team-pillars {
  display: grid;
  gap: var(--s-xl);
  padding-top: var(--s-xl);
  border-top: 1px solid var(--hairline);
}
@media (min-width: 768px) {
  .team-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.team-pillar__index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange-600);
}
.team-pillar__title {
  margin-top: var(--s-sm);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.team-pillar__desc {
  margin-top: var(--s-sm);
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
}

/* -- Methodology intro (heading + animated cycle illustration) ------------ */

.methodology__intro {
  display: grid;
  gap: var(--s-xl);
  align-items: center;
  margin-bottom: var(--s-xl);
}
@media (min-width: 860px) {
  .methodology__intro {
    display: flex;
    flex-wrap: nowrap;
  }
  .methodology__intro > .section-heading {
    flex: 0 1 auto;
    margin-bottom: 0;
  }
}
.methodology__cycle {
  display: flex;
  justify-content: center;
}
@media (min-width: 860px) {
  .methodology__cycle {
    flex: 1 1 auto;
  }
}
.methodology__cycle-art {
  width: 100%;
  max-width: 160px;
  height: auto;
}
@media (min-width: 860px) {
  .methodology__cycle-art {
    max-width: 360px;
  }
}

/* -- Order flow (methodology "ordem da engenharia" stepper) ---------------
   A numbered horizontal stepper (vertical on mobile) with a connecting
   line through the markers — same title/description type scale as the
   .trilho cards right below it, so the two five-step blocks in the
   Metodologia section read as one family instead of two unrelated
   components stacked on top of each other. */
.order-flow {
  position: relative;
  list-style: none;
  margin: 0 0 var(--s-xl);
  padding: 0;
  display: grid;
  gap: var(--s-lg) var(--s-md);
}
@media (min-width: 860px) {
  .order-flow {
    grid-template-columns: repeat(5, 1fr);
  }
  .order-flow::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--hairline);
  }
}
.order-flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
@media (min-width: 860px) {
  .order-flow__step {
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 859px) {
  .order-flow__step {
    padding-left: 44px;
  }
  .order-flow__step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: calc(var(--s-lg) * -1);
    width: 2px;
    background: var(--hairline);
  }
}
.order-flow__marker {
  position: relative;
  z-index: 1;
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--navy-700);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 859px) {
  .order-flow__marker {
    position: absolute;
    left: 0;
    top: 0;
  }
}
.order-flow__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.order-flow__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
  max-width: 34rem;
}

/* -- Trilho (methodology rail) --------------------------------------------
   Numbered rail cards, same family as .order-flow above. See
   macros/timeline.html. */
.trilho {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-lg) var(--s-md);
}
.trilho__rail {
  /* Decorative-only placeholder (aria-hidden, no visual styling) — must
     not become a grid item, or it eats the first column and pushes the
     5th .trilho-step card into its own row below. */
  display: none;
}
@media (min-width: 860px) {
  .trilho {
    /* Same column count and gap as .order-flow above, so each numbered
       card lines up directly under its matching marker in that stepper
       instead of wrapping into its own, differently-spaced grid. */
    grid-template-columns: repeat(5, 1fr);
  }
}
.trilho-step {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--navy-700);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  display: flex;
  gap: var(--s-md);
}
.trilho-step__index {
  flex: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-600);
}
.trilho-step__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}
.trilho-step__icon-wrap {
  display: none;
}
.trilho-step__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.trilho-step__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
  max-width: 34rem;
}

/* -- Comparison block ------------------------------------------------------ */

.comparison-block {
  display: grid;
  align-items: center;
  gap: var(--s-lg);
}
@media (min-width: 860px) {
  .comparison-block {
    grid-template-columns: 1fr auto 1fr;
  }
}
.comparison-column {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  color: var(--ink);
}
.comparison-column--loop {
  position: relative;
  background: linear-gradient(160deg, #04305f, #04203f);
  border-color: transparent;
  color: #fff;
  overflow: hidden;
}
.comparison-column__heading {
  margin-bottom: var(--s-md);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--ink);
}
.comparison-column--loop .comparison-column__heading {
  color: #fff;
}
.comparison-column__steps {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
.comparison-step-wrap {
  display: flex;
  flex-direction: column;
}
.comparison-step {
  display: flex;
  align-items: center;
  gap: var(--s-xs);
  font-size: 16px;
  color: var(--body);
  padding-left: 20px;
  position: relative;
}
.comparison-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
}
.comparison-step__icon {
  display: none;
}
.comparison-step--loop {
  color: #c5d8ec;
}
.comparison-step--loop::before {
  background: var(--orange-400);
}
.comparison-column__loop-label {
  margin-top: var(--s-md);
  display: flex;
  align-items: center;
  gap: var(--s-xs);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--orange-400);
}
.comparison-column__loop-icon {
  width: 1rem;
  height: 1rem;
}
.flow-connector {
  margin-inline: auto;
  width: 1px;
  height: var(--s-sm);
  background: var(--hairline);
}
.flow-connector--inverse {
  background: rgba(255, 255, 255, 0.25);
}
.cmp__vs {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}


/* -- Bento (operations) ---------------------------------------------------- */

.bento {
  display: grid;
  gap: var(--s-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) and (max-width: 819px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__tile--protagonist {
    grid-column: span 2;
  }
}
@media (min-width: 820px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }
  .bento__tile--protagonist {
    grid-column: span 2;
    grid-row: span 2;
  }
  .bento__tile--medium {
    grid-column: span 2;
  }
}
.bento__tile {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) {
  .bento__tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -18px rgba(4, 32, 63, 0.4);
  }
}
.bento__tile--protagonist {
  background: linear-gradient(160deg, #04305f, #04203f);
  color: #fff;
  border-color: transparent;
}
.bento__protagonist-visual {
  display: none;
}
.bento__protagonist-flow {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--s-xs);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #9fb9d4;
  padding-top: var(--s-lg);
}
.tile__badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-400);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.bento__protagonist-flow i {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  display: block;
}
.bento__protagonist-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}
.bento__tile--protagonist .bento__icon {
  display: none;
}
.bento__tile--protagonist .bento__title {
  font-size: 28px;
  letter-spacing: -0.018em;
  color: #fff;
}
.bento__tile--protagonist .bento__desc {
  color: #c5d8ec;
}
.bento__tile--medium {
  justify-content: center;
}
.bento__tile--compact {
  gap: var(--s-xs);
}
.bento__icon {
  display: none;
}
.bento__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.bento__tile--medium .bento__title {
  font-size: 22px;
}
.bento__desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
}
.bento-more {
  margin-top: var(--s-lg);
}
.bento-more__summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-700);
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.bento-more__summary::-webkit-details-marker {
  display: none;
}
.bento-more__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs);
  margin-top: var(--s-xs);
  padding: 0;
  list-style: none;
}
.bento-more__item {
  display: inline-flex;
}
.bento-more__icon {
  display: none;
}
.bento-more__title {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--surface-card);
  color: var(--navy-700);
}
.bento-more__desc {
  display: none;
}

/* -- Editorial index (advisory) --------------------------------------------
   An animated accordion, one stage of the advisory process open at a time
   (see static/js/advisory.js for the smooth height animation — this CSS
   also degrades cleanly to plain native <details> show/hide without JS).
   The numbered markers form a connecting rail down the left edge, reusing
   the same "numbered stepper" language as .order-flow/.trilho elsewhere in
   the page, so the four stages read as a process, not a flat reference. */

.editorial-index {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
  max-width: 46rem;
}
.editorial-index__group {
  position: relative;
  border: none;
}
.editorial-index__group:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  width: 2px;
  height: calc(100% + var(--s-lg));
  background: var(--hairline);
}
.editorial-index__summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--s-md);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.editorial-index__summary::-webkit-details-marker {
  display: none;
}
.editorial-index__number {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--navy-700);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.editorial-index__group[open] .editorial-index__number {
  background: var(--orange-500);
  color: #1a1005;
}
.editorial-index__category {
  flex: 1;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.editorial-index__chevron {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
  transition: transform 0.25s ease;
}
.editorial-index__group[open] .editorial-index__chevron {
  transform: rotate(180deg);
  color: var(--orange-600);
}
.editorial-index__panel {
  display: grid;
  gap: var(--s-md);
  padding: var(--s-md) 0 var(--s-xs) 44px;
}
.editorial-index__item {
  display: flex;
  gap: var(--s-sm);
  opacity: 0;
  transform: translateY(6px);
  animation: editorial-item-in 0.32s ease forwards;
}
@keyframes editorial-item-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.editorial-index__item:nth-child(2) {
  animation-delay: 0.05s;
}
.editorial-index__item:nth-child(3) {
  animation-delay: 0.1s;
}
.editorial-index__item:nth-child(4) {
  animation-delay: 0.15s;
}
.editorial-index__item-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--navy-700);
}
.editorial-index__item-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.editorial-index__item-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .editorial-index__item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* -- Integrations constellation --------------------------------------------
   The wave animates only background + border, never text color — an
   interpolated text color measured 3.34:1 mid-transition. */
.constellation {
  display: grid;
  gap: var(--s-lg);
  margin-top: var(--s-xl);
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}
.constellation-layer {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  display: block;
}
.constellation-layer__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: var(--s-sm);
}
.constellation-layer__index {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--orange-600);
  font-weight: 600;
}
.constellation-layer__category {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-700);
}
.constellation-layer__nodes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs);
}
.constellation-node {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: none;
  border-radius: var(--r-pill);
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--surface-card);
  box-shadow: inset 0 0 0 1px transparent;
  animation: chipWave 6s ease-in-out infinite;
  animation-delay: calc((var(--i, 0) * 0.28s) + (var(--col, 0) * 0.5s));
}
.constellation-node::before {
  display: none;
}
@keyframes chipWave {
  0%,
  84%,
  100% {
    background: var(--surface-card);
    box-shadow: inset 0 0 0 1px transparent;
  }
  8%,
  18% {
    background: #dbe9fb;
    box-shadow: inset 0 0 0 1px var(--navy-500);
  }
}
.integrations__note {
  max-width: 70ch;
  margin-top: var(--s-xl);
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  padding-left: 16px;
  border-left: 3px solid var(--orange-500);
}

/* -- Pull quote (manifesto only — see 05_ ai_architecture chapter) --------- */

.pull-quote {
  background: transparent;
  color: inherit;
}
.pull-quote--manifesto {
  padding: var(--s-section) 0;
  background: var(--navy-900);
  color: #fff;
}
.pull-quote__inner {
  position: relative;
}
.pull-quote__text {
  max-width: 22ch;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.031em;
  color: #fff;
  text-wrap: balance;
}
.pull-quote__trace {
  display: block;
  margin-top: var(--s-md);
  width: clamp(48px, 6vw, 80px);
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--orange-400);
  opacity: 0.55;
}

/* -- Contact / CTA band ----------------------------------------------------- */

.section--contact {
  padding-bottom: var(--s-section);
}
.cta-band {
  border-radius: var(--r-xl);
  padding: clamp(28px, 6vw, 48px);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: radial-gradient(700px 300px at 50% -20%, rgba(103, 216, 245, 0.26), transparent 60%),
    linear-gradient(150deg, #04305f, #04203f);
}
.contact-section__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-md);
  text-align: center;
}
.contact-section__title {
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 2.7vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin: 0 auto;
}
.contact-section__subtitle {
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.5;
  color: #c5d8ec;
  margin: var(--s-md) auto var(--s-lg);
}

/* -- FAQ -------------------------------------------------------------------- */

.faq-section__heading {
  max-width: 900px;
  margin-inline: auto;
}
.faq-section__status {
  display: inline-block;
  margin-top: var(--s-md);
  border-radius: var(--r-xs);
  border: 1px solid var(--orange-600);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-600);
}
.faq {
  max-width: 900px;
  margin: var(--s-xl) auto 0;
  width: 100%;
  border-top: 1px solid var(--hairline);
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-item__summary {
  display: block;
  cursor: pointer;
  list-style: none;
  padding: var(--s-lg) 34px var(--s-lg) 0;
  position: relative;
  min-height: 44px;
}
.faq-item__summary::-webkit-details-marker {
  display: none;
}
.faq-item__summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--orange-500);
  border-bottom: 2px solid var(--orange-500);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-item__summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq-item__question {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.faq-item__icon {
  display: none;
}
.faq-item__panel {
  padding-bottom: var(--s-lg);
}
.faq-item__answer {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
}
@media (pointer: coarse) {
  .faq-item__summary {
    padding-block: var(--s-lg);
  }
}

/* ============================================================
   ILLUSTRATIONS — animated UI-as-artefact fragments (macros/illustrations.html)
   All share --clock so they pulse together.
   ============================================================ */
.ill {
  margin: 0;
  position: relative;
}
.sk {
  display: block;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--hairline);
  overflow: hidden;
  width: 100%;
}
.sk i {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy-500), var(--cyan-500));
}
.sk--faint i {
  background: var(--hairline);
  opacity: 0.9;
}
.sk--live i {
  animation: barBreathe var(--clock) ease-in-out infinite;
}
@keyframes barBreathe {
  0%,
  100% {
    width: calc(var(--w) * 0.78);
  }
  50% {
    width: var(--w);
  }
}

.chip--ok {
  background: #dcf5ec;
  color: var(--green-600);
}
.chip--live {
  background: #dceafe;
  color: #1a56c4;
}
.chip--gov {
  background: #fdecd7;
  color: var(--orange-600);
}
.chip--idle {
  background: var(--surface-card);
  color: var(--muted);
}

/* product window (hero console) */
.win {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(4, 32, 63, 0.55);
}
.win__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--tint-cool);
}
.win__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hairline);
  flex: none;
}
.win__bar i:first-child {
  background: #ff5f57;
}
.win__bar i:nth-child(2) {
  background: #febc2e;
}
.win__bar i:nth-child(3) {
  background: #28c840;
}
.win__title {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-700);
}
.win__live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-600);
}
.win__live b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
.win__body {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.win__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(46, 124, 246, 0.1), transparent);
  animation: scan var(--clock) linear infinite;
}
@keyframes scan {
  0% {
    transform: translateY(-64px);
  }
  100% {
    transform: translateY(560px);
  }
}
.crow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-xs);
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  animation: rowLift var(--clock) ease-in-out infinite;
  animation-delay: calc(var(--i) * (var(--clock) / 5) * -1);
}
@keyframes rowLift {
  0%,
  10% {
    background: var(--tint-cool);
  }
  22%,
  100% {
    background: transparent;
  }
}
@media (min-width: 680px) {
  .crow {
    grid-template-columns: 210px 1fr auto;
    gap: var(--s-lg);
    align-items: center;
  }
}
.crow:last-child {
  border-bottom: 0;
}
.crow__code {
  font-size: 12.5px;
  color: var(--navy-700);
  font-weight: 500;
}
.crow__state {
  display: flex;
  align-items: center;
  gap: 8px;
}
.win__foot {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 14px 20px;
  border-top: 1px solid var(--hairline-soft);
  background: var(--tint-blue);
}
.trace-mini {
  flex: none;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--navy-700), var(--cyan-500), var(--orange-500));
  background-size: 200% 100%;
  animation: slide 4s linear infinite;
}
@keyframes slide {
  to {
    background-position: -200% 0;
  }
}
.win__note {
  font-size: 13px;
  color: var(--body);
}
@media (max-width: 559px) {
  .win__bar,
  .win__foot,
  .crow {
    padding-inline: 16px;
  }
}

/* ingestion */
.ill--ingestion {
  display: flex;
  flex-direction: column;
  align-items: center;
  container-type: inline-size;
}
.ing__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-sm);
  width: 100%;
}
.fchip {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: chipLift 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.65s);
}
@keyframes chipLift {
  0%,
  88%,
  100% {
    transform: translateY(0);
    border-color: var(--hairline);
  }
  8%,
  20% {
    transform: translateY(-3px);
    border-color: var(--navy-500);
  }
}
.fchip__ext {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fchip__ext::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
  background: var(--muted);
}
.fchip--doc .fchip__ext::before {
  background: var(--red-500);
}
.fchip--sheet .fchip__ext::before {
  background: var(--green-500);
}
.fchip--api .fchip__ext::before {
  background: var(--blue-400);
}
.fchip__lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
@container (max-width: 330px) {
  .ing__row {
    gap: var(--s-xs);
  }
  .fchip {
    padding: 10px 7px;
  }
  .fchip__ext {
    font-size: 11.5px;
    gap: 4px;
  }
}
@container (max-width: 260px) {
  .ing__row {
    gap: 6px;
  }
  .fchip {
    padding: 10px 5px;
  }
  .fchip__ext {
    gap: 3px;
  }
  .fchip__ext::before {
    width: 6px;
    height: 6px;
  }
}
.ing__wires {
  width: 100%;
  height: 46px;
}
.ing__wire {
  fill: none;
  stroke: var(--hairline);
  stroke-width: 1.4;
}
.ing__dot {
  fill: var(--cyan-500);
}
.ing__node {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--canvas);
  border: 1px solid var(--navy-500);
  border-radius: var(--r-pill);
  padding: 9px 18px;
  box-shadow: 0 2px 10px rgba(10, 92, 184, 0.14);
}
.ing__node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-500);
  flex: none;
  animation: blink 2.2s ease-in-out infinite;
}

/* decision */
.dcard {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}
@media (max-width: 559px) {
  .dcard {
    padding: var(--s-md);
  }
}
.dcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-sm);
}
.dcard__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.dcard__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dtrail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
.dtrail__item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: var(--s-sm);
  align-items: center;
}
.dtrail__mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  position: relative;
  animation: markRing 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.9s);
}
@keyframes markRing {
  0%,
  6% {
    border-color: var(--hairline);
  }
  14%,
  90% {
    border-color: var(--green-500);
  }
  100% {
    border-color: var(--hairline);
  }
}
.dtrail__mark::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--green-500);
  transform: scale(0);
  animation: markFill 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.9s);
}
@keyframes markFill {
  0%,
  6% {
    transform: scale(0);
  }
  14%,
  90% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
.dtrail__label {
  font-size: 14px;
  color: var(--body);
}

/* agents — states swap on their own */
.apanel {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  container-type: inline-size;
}
.apanel__head {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-700);
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--tint-cool);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.apanel__live b {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  animation: blink 2s ease-in-out infinite;
}
.apanel__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.arow {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  gap: var(--s-sm);
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline-soft);
}
.arow:last-child {
  border-bottom: 0;
}
.arow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: dotCycle 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.8s);
}
@keyframes dotCycle {
  0%,
  45% {
    background: var(--blue-400);
  }
  50%,
  95% {
    background: var(--green-500);
  }
  100% {
    background: var(--blue-400);
  }
}
.arow__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}
@container (max-width: 400px) {
  .arow {
    grid-template-columns: 10px 1fr;
    row-gap: 6px;
    padding: 12px 16px;
  }
  .arow .sk {
    display: none;
  }
  .arow__states {
    grid-column: 2;
    justify-self: start;
    min-height: 36px;
    align-items: start;
  }
  .arow__chip {
    white-space: normal;
    text-align: left;
    font-size: 12px;
    line-height: 1.32;
    padding: 5px 10px;
  }
  .apanel__head {
    padding-inline: 16px;
  }
}
.arow__states {
  position: relative;
  display: grid;
}
.arow__chip {
  grid-area: 1 / 1;
  animation-duration: 7s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-delay: calc(var(--i) * 0.8s);
}
.arow__chip[data-phase="0"] {
  animation-name: phaseA;
}
.arow__chip[data-phase="1"] {
  animation-name: phaseB;
}
@keyframes phaseA {
  0%,
  42% {
    opacity: 1;
  }
  50%,
  92% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes phaseB {
  0%,
  42% {
    opacity: 0;
  }
  50%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* memory graph */
.ill--memory svg {
  width: 100%;
  height: auto;
  display: block;
}
.graph__edge {
  stroke: var(--navy-500);
  stroke-width: 1.4;
  fill: none;
  opacity: 0.45;
  stroke-dasharray: 4 7;
  animation: edgeFlow 3.4s linear infinite;
  animation-delay: calc(var(--i) * -0.42s);
}
@keyframes edgeFlow {
  to {
    stroke-dashoffset: -22;
  }
}
.graph__node {
  fill: var(--navy-700);
  animation: nodePulse 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.34s);
}
@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
.ill__cap {
  display: block;
  margin-top: var(--s-sm);
  font-size: 13px;
  color: var(--body);
}
.ill-pair {
  display: grid;
  gap: var(--s-lg);
  margin: var(--s-xl) 0 var(--s-md);
}
@media (min-width: 620px) {
  .ill-pair {
    grid-template-columns: 1.25fr 1fr;
    align-items: end;
  }
}

/* -- Features (fcard pair above the technical row list) -------------------- */
.fgrid {
  display: grid;
  gap: var(--s-lg);
}
@media (min-width: 860px) {
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
}
.fcard {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
  min-height: clamp(380px, 62vw, 460px);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(4, 32, 63, 0.06);
}
.fcard__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.fcard__desc {
  margin: 0;
  font-size: 16px;
  color: var(--body);
  max-width: 44ch;
}
.fcard__art {
  margin-top: auto;
  padding-top: var(--s-lg);
}

/* -- Carousel ---------------------------------------------------------------- */
.carousel__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-600);
}
.carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
  margin-bottom: var(--s-lg);
  flex-wrap: wrap;
}
.carousel__nav {
  display: flex;
  gap: var(--s-xs);
}
.carousel {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--s-xs);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(268px, 100%), 1fr);
  gap: var(--s-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
@media (min-width: 900px) {
  .carousel {
    grid-auto-columns: calc(50% - 12px);
  }
}
.slide {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  min-width: 0;
}
.slide__stage {
  background: var(--tint-cool);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 42vw, 250px);
}
.slide__stage > * {
  min-width: 0;
  max-width: 100%;
}
.slide__stage .ill {
  width: 100%;
  min-width: 0;
}
.slide__cap {
  margin: 0;
  font-size: 16px;
  color: var(--body);
}
.slide__cap b {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 400px) {
  .carousel__head {
    gap: var(--s-sm);
  }
}

/* ============================================================
   RASTRO DE INTELIGÊNCIA — the signature trail (macros/trace.html)
   Two variants in use: fragmented (problem), consolidated (architecture,
   scroll-scrubbed by static/js/architecture.js). The macro's third
   variant, "numbered", is no longer used by any template — methodology
   now renders its ordem flow with .order-flow instead (see that section
   of this file) — but is left in the macro rather than ripped out, since
   the other two variants share its geometry helpers.
   ============================================================ */
.stage-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 var(--s-sm);
}
.trace-wrap {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(14px, 3.2vw, 24px);
  overflow: hidden;
  margin-bottom: var(--s-xl);
}
.trace-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.trace-scroll:focus-visible {
  outline: 2px solid var(--navy-700);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.trace-mobile {
  display: none;
}
@media (max-width: 719px) {
  .trace-mobile {
    display: block;
    width: 100%;
    height: auto;
  }
  .trace-scroll {
    display: none;
  }
}
.trace-mobile .node__code,
.trace-mobile .node__label,
.trace-mobile .node__num {
  text-anchor: start;
}
.trace-wrap .trace-desktop {
  display: block;
  width: 100%;
  min-width: 600px;
  height: auto;
}
.trace-wrap--consolidated .trace-desktop {
  min-width: 420px;
}
.trace-path {
  fill: none;
  stroke: var(--navy-700);
  stroke-width: 2.6;
  stroke-linecap: round;
}
.trace-path--ghost {
  stroke: var(--hairline);
  stroke-width: 2;
}
.node__ring {
  fill: var(--canvas);
  stroke: var(--hairline);
  stroke-width: 2;
}
.node__core {
  fill: var(--hairline);
}
.node[data-state="active"] .node__ring {
  stroke: var(--orange-500);
  stroke-width: 2.4;
}
.node[data-state="active"] .node__core {
  fill: var(--orange-500);
}
.node[data-state="done"] .node__ring {
  stroke: var(--cyan-500);
}
.node[data-state="done"] .node__core {
  fill: var(--cyan-500);
}
.node__code {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--muted);
}
.node[data-state="active"] .node__code {
  fill: var(--orange-600);
  font-weight: 600;
}
.node__num {
  font-family: var(--font-mono);
  font-size: 14px;
  fill: var(--muted);
}
.node[data-state="active"] .node__num {
  fill: var(--orange-600);
}
.node__label {
  font-size: 15px;
  fill: var(--body);
}
.node__label tspan {
  fill: inherit;
}
.node[data-state="active"] .node__label {
  fill: var(--ink);
  font-weight: 600;
}
.pulse {
  fill: none;
  stroke: var(--orange-500);
  stroke-width: 1.6;
  opacity: 0;
}
.layer-row {
  fill: var(--tint-blue);
  stroke: var(--hairline);
  stroke-width: 1;
}
.gear {
  transform-box: fill-box;
  transform-origin: center;
}
.gear__body,
.gear__hub {
  fill: none;
  stroke: var(--orange-600);
  stroke-width: 1.3;
}
.gear__tooth {
  fill: var(--orange-600);
}
.gear-ic {
  color: var(--orange-600);
  transform-origin: center;
  flex: none;
  animation: spin 14s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- architecture (sticky rail + scrub) ---------- */
.arch {
  display: grid;
  gap: var(--s-xl);
}
@media (min-width: 1000px) {
  .arch {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
  .arch__stage {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
  .arch__steps {
    min-height: 118vh;
    justify-content: space-between;
  }
}
.architecture-narrative {
  display: contents;
}
.architecture-narrative__visual {
  grid-column: 1;
}
.architecture-narrative__steps {
  grid-column: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}
@media (min-width: 1000px) {
  .architecture-narrative {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: var(--s-xl);
    align-items: start;
  }
  .architecture-narrative__visual {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
  .architecture-narrative__steps {
    min-height: 118vh;
    justify-content: space-between;
  }
}
.architecture-step {
  padding: var(--s-lg);
  border-radius: var(--r-lg);
  border-left: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.architecture-step[data-active] {
  background: var(--canvas);
  border-left-color: var(--orange-500);
  box-shadow: 0 8px 24px -18px rgba(4, 32, 63, 0.4);
}
.architecture-step__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.architecture-step[data-active] .architecture-step__index {
  color: var(--orange-600);
  font-weight: 600;
}
.architecture-step__icon {
  display: none;
}
.architecture-step__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.architecture-step__desc {
  margin: 0;
  font-size: 16px;
  color: var(--body);
}
.architecture-narrative__link {
  margin-top: var(--s-md);
  color: var(--navy-700);
}
