/* ==========================================================================
   Bmtech — site institucional
   Tema escuro premium. Tokens, base, layout e componentes.
   ========================================================================== */

:root {
  /* Cor: grafite azulado fosco em tons por seção, texto titânio, ultramar como luz */
  --bg: #1a1e26;        /* tom 1: topo, Método, Contato */
  --tone-2: #20252e;    /* tom 2: Serviços, Segmentos */
  --tone-3: #15181f;    /* tom 3: Atuação, Sobre */
  --bg-deep: #101318;   /* rodapé */
  --surface: #232831;   /* painéis sobre o tom 1 e o tom 3 */
  --surface-2: #2a303a; /* painéis sobre o tom 2 */
  --ink: #f2f3f6;
  --text: #c3c7d1;
  --tagline: #d3d6dc;
  --logo: #ffffff;
  --hover-tint: rgba(255, 255, 255, 0.04);
  --field-hover: rgba(255, 255, 255, 0.32);
  --shadow-panel: none;
  --muted: #979dab;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #2a38f7;
  --accent-text: #8089ff;
  --accent-glow: transparent;
  --ultra: #2631b0;
  --ultra-soft: rgba(255, 255, 255, 0.78);
  --ultra-line: rgba(255, 255, 255, 0.24);
  --danger: #ff7b72;


  /* Tipo */
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display-stretch: 88%;
  --title-stretch: 92%;

  /* Espaço e forma */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --section-y: clamp(96px, 13vw, 200px);
  --header-h: 76px;
  --radius: 4px;
  --radius-btn: 4px;
  --radius-panel: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

::selection { background: var(--accent); color: #fff; }

img { display: block; max-width: 100%; height: auto; }

/* Logo: símbolo SVG único (definido em index.html); branco no tema escuro. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo-mark { display: block; fill: var(--logo); overflow: visible; }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}

.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }

.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover {
  background: var(--accent);
  color: #fff;
}

.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); background: var(--hover-tint); }

.btn[disabled] { opacity: 0.6; cursor: progress; }

.link-quiet {
  white-space: nowrap;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.link-quiet:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
/* O desfoque fica num pseudo-elemento: backdrop-filter no próprio header
   viraria o bloco de contenção do menu mobile (position: fixed). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before,
body.menu-open .site-header::before { opacity: 1; }
body.menu-open .site-header::before { background: var(--bg); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  height: var(--header-h);
}

.brand {
  flex: none;
  display: block;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
.brand .logo-mark { width: 109px; height: 30px; }
/* Enquanto o logo grande do topo está visível, o do cabeçalho se recolhe. */
.site-header.brand-hidden .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }
body.menu-open .site-header .brand { opacity: 1; transform: none; pointer-events: auto; }

.nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 32px;
}

.nav-list { display: flex; gap: 32px; }
.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-list a:hover { color: var(--ink); }
.nav-list a[aria-current="true"] { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 0 10px 10px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1239px) {
  .menu-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding: 24px var(--gutter) 40px;
    background: var(--bg);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s;
  }

  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.875rem;
    font-weight: 650;
    font-stretch: var(--title-stretch);
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .nav-list a[aria-current="true"] { color: var(--accent-text); }

  .nav-actions { flex-direction: column; align-items: stretch; gap: 16px; margin-left: 0; }
  .nav-actions .btn { min-height: 56px; }
  .nav-actions .link-quiet { padding: 6px 0; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100svh - var(--header-h));
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 104px));
  overflow-x: clip;
  isolation: isolate;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: center;
}

/* O logo é a peça principal do topo; a assinatura vem logo abaixo. */
.hero-brand { display: grid; justify-items: start; }

.hero-logo {
  width: clamp(200px, 25vw, 360px);
  height: auto;
  aspect-ratio: 247 / 68;
  animation: logo-in 1.1s var(--ease) both;
}

.hero-tagline {
  display: block;
  margin-top: clamp(20px, 2.2vw, 32px);
  color: var(--tagline);
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  font-weight: 700;
  font-stretch: var(--display-stretch);
  line-height: 1;
  letter-spacing: -0.035em;
  animation: logo-in 1.1s var(--ease) 0.15s both;
}

@keyframes logo-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero-lead {
  max-width: 31em;
  margin-top: clamp(32px, 4vw, 52px);
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.status-field {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 0 0 auto;
}
.status-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--line);
}
.status-title {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 650;
  font-stretch: var(--title-stretch);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.status-sub { margin-top: 2px; color: var(--muted); font-size: 0.875rem; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-text);
  box-shadow: 0 0 10px var(--accent-glow);
}
.status-panel.is-done .status-badge { border-color: var(--accent); background: rgba(42, 56, 247, 0.16); }

.status-list { padding: 6px 28px 10px; }

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.status-row:last-child { border-bottom: 0; }
.status-label { color: var(--text); }
.status-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  transition: color 0.3s ease;
}
.status-check {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(128, 137, 255, 0.55);
  border-radius: 50%;
  background: rgba(42, 56, 247, 0.16);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.status-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14;
  stroke-dashoffset: 0;
}
.status-row.is-ai .status-check {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 14px 1px var(--accent-glow);
}
.status-row.is-ai .status-check svg { stroke: #fff; }
.status-row.is-ai .status-value { color: var(--accent-text); }

/* Verificando: o check vira um anel girando e uma varredura cruza a linha. */
.status-row { position: relative; overflow: hidden; }
.status-row.is-checking .status-value { color: var(--muted); font-weight: 500; }
.status-row.is-checking .status-check {
  border-color: var(--line-strong);
  border-top-color: var(--accent-text);
  background: transparent;
  box-shadow: none;
  animation: spin 0.8s linear infinite;
}
.status-row.is-checking .status-check svg { opacity: 0; }
.status-row.is-checking::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: rgba(128, 137, 255, 0.12);
  animation: scan 1.1s var(--ease) infinite;
  pointer-events: none;
}
.status-row.is-checked .status-check { animation: check-pop 0.45s var(--ease); }
.status-row.is-checked .status-check svg { animation: check-draw 0.45s var(--ease) 0.05s both; }
.status-panel.is-checking .status-dot { background: var(--muted); box-shadow: none; }
.status-panel.is-done .status-dot { animation: live 2.4s ease-in-out infinite; }

.status-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 16px 28px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}
.status-foot time { color: var(--text); font-variant-numeric: tabular-nums; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(260%); }
}
@keyframes check-pop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes check-draw {
  from { stroke-dashoffset: 14; }
  to { stroke-dashoffset: 0; }
}
@keyframes live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(128, 137, 255, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(128, 137, 255, 0); }
}

.status-caption {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.hero-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 36px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-block: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .status-field { max-width: none; margin-left: 0; }
  .hero-index { justify-content: flex-start; gap: 8px 24px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */

.section { padding-block: var(--section-y); }
.section-tone-2 { background: var(--tone-2); }
.section-tone-3 { background: var(--tone-3); }

.section-title {
  font-size: clamp(2.375rem, 5vw, 4.5rem);
  font-weight: 720;
  font-stretch: var(--title-stretch);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-lead {
  max-width: 34em;
  margin-top: 24px;
  font-size: 1.125rem;
  color: var(--muted);
}

.section-head-wide { max-width: 900px; margin-bottom: clamp(56px, 7vw, 104px); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 128px);
  align-items: start;
}
.split .section-head { position: sticky; top: calc(var(--header-h) + 40px); }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split .section-head { position: static; }
}

/* Serviços (acordeão) */

.service { border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }

.service-head { font: inherit; }

.service-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  grid-template-areas: "name icon" "summary icon";
  column-gap: 24px;
  row-gap: 8px;
  width: 100%;
  padding: 34px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.service-name {
  grid-area: name;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 680;
  font-stretch: var(--title-stretch);
  line-height: 1.12;
  letter-spacing: -0.03em;
  transition: color 0.2s ease;
}

.service-summary {
  grid-area: summary;
  color: var(--muted);
  font-size: 1rem;
}

.service-trigger:hover .service-name { color: var(--accent-text); }

.service-icon {
  grid-area: icon;
  align-self: center;
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.3s ease;
}
.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), background-color 0.2s ease;
}
.service-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.service-trigger:hover .service-icon { border-color: var(--ink); }
.service.is-open .service-icon {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.service.is-open .service-icon::before,
.service.is-open .service-icon::after { background: #fff; }
.service.is-open .service-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.service-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.js .service:not(.is-open) .service-body { grid-template-rows: 0fr; }

.service-body-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 4vw, 64px);
  overflow: hidden;
  min-height: 0;
}
.service-body-inner > p { padding-bottom: 44px; }

.deliverables {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 0 0 44px clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink);
}
.deliverables li,
.segment-panel li {
  position: relative;
  padding-left: 20px;
}
.deliverables li::before,
.segment-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

@media (max-width: 700px) {
  .service-body-inner { grid-template-columns: 1fr; }
  .service-body-inner > p { padding-bottom: 0; }
  .deliverables { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .service-icon { width: 30px; height: 30px; }
  .service-trigger { grid-template-columns: minmax(0, 1fr) 30px; column-gap: 16px; padding: 28px 0; }
}

/* Modelos de atuação */

.models {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.model {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
}
.model::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(32px, 4vw, 56px);
  width: 56px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

.model-title {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 700;
  font-stretch: var(--title-stretch);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.model-for {
  margin: 20px 0 24px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
}
.model p:last-child { color: var(--muted); max-width: 36em; }

@media (max-width: 760px) {
  .models { grid-template-columns: 1fr; }
}

/* Consultoria e IA */

.section-ultra {
  position: relative;
  background: var(--ultra);
  color: #fff;
  overflow: hidden;
}
.section-ultra > .wrap { position: relative; }
.section-ultra h2,
.section-ultra h3 { color: #fff; }
.section-ultra :focus-visible { outline-color: #fff; }

.ia-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 104px);
  align-items: end;
}

.ia-title { font-size: clamp(2.75rem, 6vw, 5.75rem); max-width: 12ch; }

.ia-lead { color: var(--ultra-soft); font-size: 1.125rem; }

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(72px, 9vw, 128px);
}
.outcome { padding-top: 28px; border-top: 1px solid var(--ultra-line); }
.outcome h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  font-weight: 680;
  font-stretch: var(--title-stretch);
  letter-spacing: -0.03em;
}
.outcome p { margin-top: 14px; color: var(--ultra-soft); }

.ia-examples {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 6vw, 104px);
  margin-top: clamp(72px, 9vw, 128px);
}
.ia-examples-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.ia-examples li {
  padding: 20px 0;
  border-top: 1px solid var(--ultra-line);
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.4;
}
.ia-examples li:last-child { border-bottom: 1px solid var(--ultra-line); }

@media (max-width: 900px) {
  .ia-top,
  .ia-examples { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; gap: 32px; }
}

/* Método */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.step {
  position: relative;
  padding-top: 40px;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: var(--ink);
}
.step:last-child::before {
  background: var(--accent);
  box-shadow: 0 0 14px 2px var(--accent-glow);
}

.step-num {
  display: block;
  color: var(--accent-text);
  font-size: clamp(3.25rem, 5.5vw, 5rem);
  font-weight: 300;
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: -0.04em;
}

.step-title {
  margin-top: 24px;
  font-size: 1.625rem;
  font-weight: 680;
  font-stretch: var(--title-stretch);
  letter-spacing: -0.025em;
}

.step p { margin-top: 12px; color: var(--muted); font-size: 1rem; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* Segmentos (abas verticais) */

.segments {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.segment-tabs { display: grid; border-top: 1px solid var(--line); }

.segment-tabs [role="tab"] {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  font-stretch: var(--title-stretch);
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, padding-left 0.35s var(--ease);
}
.segment-tabs [role="tab"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 1px;
  background: var(--line-strong);
  transition: background-color 0.2s ease, box-shadow 0.3s ease;
}
.segment-tabs [role="tab"]:hover { color: var(--ink); }
.segment-tabs [role="tab"][aria-selected="true"] { color: var(--ink); padding-left: 36px; }
.segment-tabs [role="tab"][aria-selected="true"]::before {
  background: var(--accent);
  box-shadow: 0 0 12px 1px var(--accent-glow);
}

.segment-panel {
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-2);
}
.segment-panel + .segment-panel { margin-top: 24px; }
.js .segment-panel { grid-column: 2; grid-row: 1; }
.js .segment-panel + .segment-panel { margin-top: 0; }
.js .segment-panel:not(.is-active) { display: none; }

.segment-panel.is-active { animation: panel-in 0.4s var(--ease); }

.segment-need {
  max-width: 22em;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 600;
  font-stretch: var(--title-stretch);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.segment-panel ul {
  display: grid;
  gap: 14px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--text);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .segments { grid-template-columns: 1fr; }
  .js .segment-panel { grid-column: 1; grid-row: auto; }
  .segment-tabs [role="tab"] { min-height: 60px; }
}

/* Sobre */

.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 7vw, 128px);
}

.about-text { display: grid; gap: 22px; max-width: 42em; }
.about-text p { color: var(--muted); }
.about-text .about-statement {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 650;
  font-stretch: var(--title-stretch);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
}

/* Contato */

.section-contact {
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.section-contact > .wrap { position: relative; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.contact-title { font-size: clamp(2.75rem, 5.4vw, 5rem); max-width: 11ch; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 36px;
}
.contact-actions-note { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

.btn-whatsapp {
  border-color: rgba(37, 211, 102, 0.55);
  color: var(--ink);
  background: transparent;
}
.btn-whatsapp-icon { width: 20px; height: 20px; fill: #25d366; transition: fill 0.2s ease; }
.btn-whatsapp:hover { border-color: #25d366; background: #25d366; color: #06301a; }
.btn-whatsapp:hover .btn-whatsapp-icon { fill: #06301a; }

.contact-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 56px;
  margin: clamp(40px, 5vw, 64px) 0 0;
}
@media (min-width: 1200px) {
  .contact-list { grid-template-columns: max-content max-content; }
}
@media (min-width: 620px) and (max-width: 960px) {
  .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.contact-list dt { font-size: 0.875rem; color: var(--muted); }
.contact-list dd { margin: 4px 0 0; color: var(--ink); font-weight: 500; }
.contact-list a { text-decoration: none; transition: color 0.2s ease; }
.contact-list a:hover { color: var(--accent-text); text-decoration: underline; }

.contact-client {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.contact-client a { color: var(--ink); font-weight: 600; }
.contact-client a:hover { color: var(--accent-text); }

.form {
  display: grid;
  gap: 22px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.field label { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.optional { margin-left: 6px; font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field select option { background: var(--surface); color: var(--ink); }
.field input::placeholder { color: var(--muted); opacity: 0.6; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--field-hover); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px rgba(42, 56, 247, 0.35);
}

.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 0.875rem; color: var(--danger); }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 6px;
}
.form-note { font-size: 0.875rem; color: var(--muted); }

.form-status:empty { display: none; }
.form-status {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--ink);
}
.form-status.is-error { border-left-color: var(--danger); }

@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(64px, 8vw, 112px) 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 2fr)) minmax(0, 3fr);
  gap: 40px;
}

.footer-brand .logo-mark { width: 109px; height: 30px; }
.footer-brand p { margin-top: 18px; color: var(--tagline); font-weight: 500; }

.footer-heading {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}
.footer-nav ul { display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }

.footer-legal { display: grid; gap: 14px; align-content: start; font-size: 0.875rem; }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Página 404 */

.section-404 { --sc: var(--c-blue, var(--accent)); min-height: calc(100svh - var(--header-h)); }

/* Produtos */

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.product {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.product-for {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.product-name {
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  font-weight: 720;
  font-stretch: var(--title-stretch);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.product-lead {
  margin-top: 16px;
  max-width: 30em;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
}

.product-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9875rem;
}
.product-list li { position: relative; padding-left: 20px; }
.product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--accent);
}

.product-note { margin-top: 20px; color: var(--muted); font-size: 0.875rem; }

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}

.product:only-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "head list"
    "name list"
    "lead list"
    "note list"
    "actions list";
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: clamp(32px, 5vw, 80px);
}
.product:only-child .product-head { grid-area: head; justify-content: flex-start; }
.product:only-child .product-name { grid-area: name; }
.product:only-child .product-lead { grid-area: lead; }
.product:only-child .product-note { grid-area: note; }
.product:only-child .product-actions { grid-area: actions; align-self: end; }
.product:only-child .product-list {
  grid-area: list;
  align-self: center;
  margin-top: 0;
  padding: 0 0 0 clamp(24px, 3vw, 40px);
  border-top: 0;
  border-left: 1px solid var(--line);
}

.segment-text { margin-top: 20px; max-width: 34em; color: var(--text); }
.segment-note { margin-top: 20px; color: var(--muted); font-size: 0.875rem; }

.segment-link { margin-top: 28px; font-weight: 600; }
.segment-link a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.25em; }
.segment-link a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; }
  .product:only-child { display: flex; }
  .product:only-child .product-list { margin-top: 28px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .product-actions .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Ícones (as duas versões)
   -------------------------------------------------------------------------- */

.icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-text);
}

.service-trigger {
  grid-template-columns: 48px minmax(0, 1fr) 36px;
  grid-template-areas: "badge name icon" "badge summary icon";
  column-gap: 20px;
}
.service-trigger .icon-badge { grid-area: badge; align-self: center; }

.model .icon-badge { margin-bottom: 24px; }

.outcome .icon-badge { margin-bottom: 20px; background: rgba(255, 255, 255, 0.14); color: #fff; }

.segment-tabs [role="tab"] { gap: 14px; padding-left: 0; }
.segment-tabs [role="tab"]::before { display: none; }
.segment-tabs [role="tab"][aria-selected="true"] { padding-left: 10px; }
.tab-icon { width: 22px; height: 22px; color: var(--muted); transition: color 0.2s ease; }
.segment-tabs [role="tab"][aria-selected="true"] .tab-icon { color: var(--accent-text); }

.dt-icon { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; color: var(--accent-text); }

@media (max-width: 560px) {
  .icon-badge { width: 40px; height: 40px; border-radius: 10px; }
  .icon-badge .icon { width: 20px; height: 20px; }
  .service-trigger { grid-template-columns: 40px minmax(0, 1fr) 30px; column-gap: 14px; }
}

/* --------------------------------------------------------------------------
   Versão alegre (?versao=alegre): fundo cinza claro, cor só nos detalhes.
   Cada seção tem a sua cor no traço do título, nos ícones e nos marcadores.
   -------------------------------------------------------------------------- */

[data-theme="alegre"] {
  --bg: #f3f4f6;
  --tone-2: #ffffff;
  --tone-3: #f3f4f6;
  --bg-deep: #121a3a;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --ink: #121a3a;
  --text: #3b4262;
  --muted: #5b6383;
  --tagline: #454b57;
  --logo: #121a3a;
  --line: rgba(18, 26, 58, 0.1);
  --line-strong: rgba(18, 26, 58, 0.2);
  --accent: #2a38f7;
  --accent-text: #2a38f7;
  --accent-glow: transparent;
  --danger: #c4231b;
  --hover-tint: rgba(42, 56, 247, 0.06);
  --field-hover: rgba(18, 26, 58, 0.38);
  --shadow-panel: none;
  --radius-btn: 999px;
  --radius-panel: 16px;
  color-scheme: light;

  /* Paleta: --c-* para preenchimentos, --ct-* para texto */
  --c-blue: #2a38f7;   --ct-blue: #2a38f7;    /* marca, serviços, contato */
  --c-violet: #7c3aed; --ct-violet: #6d28d9;  /* inteligência artificial */
  --c-coral: #f25f5c;  --ct-coral: #c93a37;   /* atuação, projetos, varejo */
  --c-sky: #0ea5e9;    --ct-sky: #0369a1;     /* infraestrutura, segmentos */
  --c-amber: #f59e0b;  --ct-amber: #b45309;   /* pessoas, educação, sobre */
  --c-green: #10b981;  --ct-green: #047857;   /* método, suporte, tudo em ordem */
}

/* Seções: cinza claro alternando com branco */
[data-theme="alegre"] .section-ultra { background: #ffffff; }
[data-theme="alegre"] .section-contact { border-top: 0; }
[data-theme="alegre"] .site-header::before { background: color-mix(in srgb, #ffffff 95%, transparent); }

/* Traço colorido acima do título: a cor de cada seção */
[data-theme="alegre"] #servicos { --sc: var(--c-blue); }
[data-theme="alegre"] #atuacao { --sc: var(--c-coral); }
[data-theme="alegre"] #ia { --sc: var(--c-violet); }
[data-theme="alegre"] #metodo { --sc: var(--c-green); }
[data-theme="alegre"] #segmentos { --sc: var(--c-sky); }
[data-theme="alegre"] #produtos { --sc: var(--c-blue); }
[data-theme="alegre"] #sobre { --sc: var(--c-amber); }
[data-theme="alegre"] #contato { --sc: var(--c-blue); }
[data-theme="alegre"] .section .section-title::before {
  content: "";
  display: block;
  width: 44px;
  height: 5px;
  margin-bottom: 28px;
  border-radius: 3px;
  background: var(--sc);
}

/* Botões */
[data-theme="alegre"] .btn-solid { background: var(--accent); color: #fff; }
[data-theme="alegre"] .btn-solid:hover { background: var(--ink); color: #fff; }
[data-theme="alegre"] .btn-line:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="alegre"] .btn-whatsapp { border-color: #25d366; }

/* Painéis brancos com borda sobre o cinza; cinza sobre o branco */
[data-theme="alegre"] .status-panel,
[data-theme="alegre"] .model { border-color: rgba(18, 26, 58, 0.1); }
[data-theme="alegre"] .segment-panel { background: #f3f4f6; border-color: transparent; }
[data-theme="alegre"] .form,
[data-theme="alegre"] .product { border-color: rgba(18, 26, 58, 0.1); }
[data-theme="alegre"] .field input,
[data-theme="alegre"] .field select,
[data-theme="alegre"] .field textarea { background: #f4f5f8; }
[data-theme="alegre"] .form-status { background: #f4f5f8; }

/* Painel do topo: checks verdes, IA em violeta */
[data-theme="alegre"] .status-check { background: var(--c-green); border-color: var(--c-green); }
[data-theme="alegre"] .status-check svg { stroke: #fff; }
[data-theme="alegre"] .status-row.is-ai .status-check { background: var(--c-violet); border-color: var(--c-violet); }
[data-theme="alegre"] .status-row.is-ai .status-value { color: var(--ct-violet); }
[data-theme="alegre"] .status-panel.is-done .status-badge { color: var(--ct-green); border-color: var(--c-green); background: transparent; }
[data-theme="alegre"] .status-panel.is-done .status-dot { background: var(--c-green); }

/* Ícones em selo de cor cheia */
[data-theme="alegre"] .icon-badge { background: var(--c, var(--sc)); color: #fff; }

/* Serviços e frentes do topo: uma cor por serviço */
[data-theme="alegre"] .service:nth-child(1),
[data-theme="alegre"] .hero-index li:nth-child(1) { --c: var(--c-blue); --ct: var(--ct-blue); }
[data-theme="alegre"] .service:nth-child(2),
[data-theme="alegre"] .hero-index li:nth-child(2) { --c: var(--c-violet); --ct: var(--ct-violet); }
[data-theme="alegre"] .service:nth-child(3),
[data-theme="alegre"] .hero-index li:nth-child(3) { --c: var(--c-coral); --ct: var(--ct-coral); }
[data-theme="alegre"] .service:nth-child(4),
[data-theme="alegre"] .hero-index li:nth-child(4) { --c: var(--c-sky); --ct: var(--ct-sky); }
[data-theme="alegre"] .service:nth-child(5),
[data-theme="alegre"] .hero-index li:nth-child(5) { --c: var(--c-amber); --ct: var(--ct-amber); }
[data-theme="alegre"] .service:nth-child(6),
[data-theme="alegre"] .hero-index li:nth-child(6) { --c: var(--c-green); --ct: var(--ct-green); }

[data-theme="alegre"] .hero-index li { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
[data-theme="alegre"] .hero-index li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
}

[data-theme="alegre"] .service-trigger:hover .service-name,
[data-theme="alegre"] .service.is-open .service-name { color: var(--ct); }
[data-theme="alegre"] .service.is-open .service-icon { background: var(--c); border-color: var(--c); }
[data-theme="alegre"] .deliverables { border-left: 2px solid var(--c); }
[data-theme="alegre"] .deliverables li::before { background: var(--c); border-radius: 50%; }
@media (max-width: 700px) {
  [data-theme="alegre"] .deliverables { border-left: 0; }
}

/* Modelos de atuação */
[data-theme="alegre"] .model:nth-child(1) { --c: var(--c-blue); }
[data-theme="alegre"] .model:nth-child(2) { --c: var(--c-coral); }
[data-theme="alegre"] .model::before { display: none; }

/* Consultoria e IA: fundo branco, detalhes em violeta */
[data-theme="alegre"] .section-ultra {
  color: var(--text);
  --ultra-soft: var(--muted);
  --ultra-line: var(--line);
  --c: var(--c-violet);
}
[data-theme="alegre"] .section-ultra h2,
[data-theme="alegre"] .section-ultra h3 { color: var(--ink); }
[data-theme="alegre"] .section-ultra :focus-visible { outline-color: var(--accent); }
[data-theme="alegre"] .outcome .icon-badge { background: var(--c-violet); color: #fff; }
[data-theme="alegre"] .ia-examples li { position: relative; padding-left: 24px; }
[data-theme="alegre"] .ia-examples li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--c-violet);
}

/* Método: uma cor por etapa */
[data-theme="alegre"] .step:nth-child(1) { --c: var(--c-blue); --ct: var(--ct-blue); }
[data-theme="alegre"] .step:nth-child(2) { --c: var(--c-violet); --ct: var(--ct-violet); }
[data-theme="alegre"] .step:nth-child(3) { --c: var(--c-green); --ct: var(--ct-green); }
[data-theme="alegre"] .step:nth-child(4) { --c: var(--c-amber); --ct: var(--ct-amber); }
[data-theme="alegre"] .step::before { width: 12px; height: 12px; top: -6px; border-radius: 50%; background: var(--c); }
[data-theme="alegre"] .step-num { color: var(--ct); font-weight: 400; }

/* Segmentos: uma cor por segmento, no ícone da aba e no painel */
[data-theme="alegre"] #tab-consultoria, [data-theme="alegre"] #seg-consultoria { --c: var(--c-blue); }
[data-theme="alegre"] #tab-educacao, [data-theme="alegre"] #seg-educacao { --c: var(--c-amber); }
[data-theme="alegre"] #tab-cartorios, [data-theme="alegre"] #seg-cartorios { --c: var(--c-green); }
[data-theme="alegre"] #tab-industria, [data-theme="alegre"] #seg-industria { --c: var(--c-sky); }
[data-theme="alegre"] #tab-varejo, [data-theme="alegre"] #seg-varejo { --c: var(--c-coral); }
[data-theme="alegre"] #tab-outros, [data-theme="alegre"] #seg-outros { --c: var(--c-violet); }
[data-theme="alegre"] .tab-icon { color: var(--c); }
[data-theme="alegre"] .segment-panel { border-top: 4px solid var(--c); }
[data-theme="alegre"] .segment-panel li::before { background: var(--c); border-radius: 50%; }


/* Produtos: azul por padrão; iAtividade em âmbar (educação) */
[data-theme="alegre"] #iatividade { --c: var(--c-amber); --ct: var(--ct-amber); }
[data-theme="alegre"] #omniport { --c: var(--c-green); --ct: var(--ct-green); }  /* ecoa o verde da marca do produto */
[data-theme="alegre"] .product { --c: var(--c-blue); --ct: var(--ct-blue); border-top: 4px solid var(--c); }
[data-theme="alegre"] .product-for { border-color: var(--c); color: var(--ct); }
[data-theme="alegre"] .product-list li::before { background: var(--c); border-radius: 50%; }
[data-theme="alegre"] .segment-link a { color: var(--ink); text-decoration-color: var(--c); text-decoration-thickness: 2px; }

/* Contato */
[data-theme="alegre"] .dt-icon { color: var(--c-blue); }

/* Rodapé azul-marinho, com a faixa das seis cores */
[data-theme="alegre"] .site-footer {
  --ink: #ffffff;
  --muted: #b4bbd8;
  --line: rgba(255, 255, 255, 0.12);
  --logo: #ffffff;
  --tagline: #c9cff5;
  --accent-text: #aab3ff;
  position: relative;
  border-top: 0;
}
[data-theme="alegre"] .site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--c-blue) 0 16.66%, var(--c-violet) 16.66% 33.33%, var(--c-coral) 33.33% 50%,
    var(--c-sky) 50% 66.66%, var(--c-amber) 66.66% 83.33%, var(--c-green) 83.33% 100%);
}

/* --------------------------------------------------------------------------
   Movimento reduzido
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
