/* ==========================================================================
   Consistem ERP 8.1 — Design System
   Base: nova identidade Consistem (DM Sans · Grafite · Branco · Coral · Amarelo)
   Ênfase da versão 8.1: CORAL + BRANCO como cores protagonistas.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Coral — cor-assinatura da 8.1 (500 = oficial da marca) */
  --coral-50:  #FDF0EE;
  --coral-100: #FBDCD8;
  --coral-200: #F6B8B0;
  --coral-300: #F19185;
  --coral-400: #EC6E5F;
  --coral-500: #E84F3D;   /* Coral 500 (Oficial) */
  --coral-600: #D03E2D;
  --coral-700: #AE3224;
  --coral-800: #88281D;
  --coral-900: #5C1B14;

  /* Branco */
  --branco-0:   #FFFFFF;
  --branco-100: #FCFCFC;
  --branco-300: #F9F9F9;
  --branco-500: #F5F5F5;  /* branco-500 da marca (superfícies) */
  --branco-700: #EAEAEA;  /* bordas suaves */

  /* Grafite — base sólida, usada com parcimônia na 8.1 */
  --grafite-50:  #F0F0F0;
  --grafite-100: #D6D5D6;
  --grafite-200: #A09EA0;
  --grafite-300: #757275;
  --grafite-500: #4A484B;
  --grafite-800: #2E2E30;  /* grafite oficial */
  --grafite-900: #19191A;

  /* Coral de ação — usado nos botões e marcadores do protótipo v2 */
  --coral-action: #DF5241;

  /* Amarelo — apoio pontual (herdado da marca, não protagonista na 8.1) */
  --amarelo-500: #EBAF2D;

  /* Semânticos */
  --color-bg:            var(--branco-0);
  --color-surface:       var(--branco-500);
  --color-surface-alt:   var(--coral-50);
  --color-text:          var(--grafite-800);
  --color-text-muted:    var(--grafite-300);
  --color-text-inverse:  var(--branco-0);
  --color-border:        var(--branco-700);
  --color-brand:         var(--coral-500);
  --color-brand-strong:  var(--coral-600);   /* texto coral sobre branco (contraste AA) */
  --color-brand-soft:    var(--coral-50);
  --color-dark:          var(--grafite-800);
  --color-dark-deep:     var(--grafite-900);

  /* Tipografia */
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-display: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);  /* 44 → 88 */
  --fs-h1:      clamp(2.5rem, 1.7rem + 3.2vw, 4rem);      /* 40 → 64 */
  --fs-h2:      clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem);  /* 30 → 40 */
  --fs-h3:      clamp(1.625rem, 1.3rem + 1.2vw, 2.5rem);  /* 26 → 40 */
  --fs-h4:      1.5rem;     /* 24 */
  --fs-h5:      1.25rem;    /* 20 */
  --fs-lead:    1.2rem;     /* 19,2 · textos de apoio (16px no mobile) */
  --fs-body:    1rem;       /* 16 */
  --fs-small:   .875rem;    /* 14 */
  --fs-eyebrow: .875rem;    /* 14 · DM Mono */

  --lh-tight: 1;
  --lh-heading: 1.08;
  --lh-snug: 1.3;
  --lh-body: 1.5;

  --ls-display: -0.03em;
  --ls-heading: -0.02em;
  --ls-eyebrow: 0.05em;

  /* Espaçamento (base 4) */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --space-32: 128px;

  --section-y: clamp(72px, 5vw + 40px, 112px);
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 80px);

  /* Raios */
  --radius-xs: 4px;
  --radius-sm: 8px;     /* botões, chips */
  --radius-md: 16px;    /* cards */
  --radius-lg: 24px;    /* mídias, blocos grandes, header */
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(25, 25, 26, .06), 0 1px 3px rgba(25, 25, 26, .06);
  --shadow-md: 0 8px 24px rgba(25, 25, 26, .08);
  --shadow-lg: 0 24px 56px rgba(25, 25, 26, .14);
  --shadow-coral: 0 16px 40px rgba(232, 79, 61, .28);
  --shadow-header: 0 8px 32px rgba(0, 0, 0, .12);

  /* Movimento */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 700ms;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Eixo óptico do DM Sans igual ao Figma: texto corrido em "9pt", títulos e rótulos em 14 */
  font-variation-settings: "opsz" 9;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, p { margin: 0; }
/* Títulos e valores grandes: eixo óptico automático (como o Figma renderiza em 40–64px) */
h1, h2, .t-display, .t-h1, .t-h2, .t-h3, .b-card__value { font-variation-settings: normal; }
/* Rótulos, botões e títulos de card: opsz 14 */
h3, h4, h5, .btn, .site-nav a, .chip, .t-h4, .t-h5, .feature__title, .num-card__title, .num-card__num,
.app-card__title, .sol-card__title, .sol-card__text, .b-card__desc, .solucoes__sub, .submarca__tag,
.clara__titles .t-lead { font-variation-settings: "opsz" 14; }
:focus-visible { outline: 2px solid var(--coral-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--coral-500); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   3. TIPOGRAFIA
   -------------------------------------------------------------------------- */
.t-display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-display); font-weight: 600; }
.t-h1 { font-size: var(--fs-h1); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); font-weight: 600; }
.t-h2 { font-size: var(--fs-h2); line-height: 1.3; letter-spacing: -0.01em; font-weight: 400; text-wrap: balance; }
.t-h3 { font-size: var(--fs-h3); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); font-weight: 600; }
.t-h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); letter-spacing: -0.01em; font-weight: 600; }
.t-h5 { font-size: var(--fs-h5); line-height: var(--lh-snug); font-weight: 600; }
.t-lead { font-size: var(--fs-lead); line-height: 1.5; font-weight: 400; }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.t-small { font-size: var(--fs-small); line-height: 1.5; }
.t-light { font-weight: 300; }
.t-muted { color: var(--color-text-muted); }
.t-coral { color: var(--color-brand-strong); }

/* Contraste peso leve × forte, assinatura da nova marca: "Confiança não se declara. <b>Se constrói.</b>" */
.t-split { font-weight: 300; }
.t-split strong, .t-split b { font-weight: 700; }

/* Eyebrow / rótulo de seção — DM Mono 14px com marcador coral */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--fs-eyebrow); line-height: 1.5; font-weight: 400;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--grafite-800);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--coral-action); border-radius: 2px; }
.eyebrow--inverse { color: #fff; }
.eyebrow--plain::before { display: none; }
.eyebrow--deep { color: var(--coral-700); }

/* Destaque coral atrás de palavra ("Mais [clareza] na comunicação") */
.mark {
  background: var(--coral-500); color: #fff;
  padding: 0 .18em; border-radius: .14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.mark--white { background: #fff; color: var(--coral-600); }

/* --------------------------------------------------------------------------
   4. BOTÕES
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--coral-action); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 48px; padding: 0 var(--space-6);
  font: 600 1rem/1 var(--font-sans); text-decoration: none; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: 12px; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-base);
}
.btn:hover { --btn-bg: var(--coral-600); box-shadow: var(--shadow-coral); }
.btn:active { transform: translateY(1px); }
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; height: auto; min-height: 48px; padding-block: 12px; line-height: 1.25; }
  .btn--lg { min-height: 52px; }
}
.btn svg { flex: none; width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--sm { height: 40px; padding: 0 var(--space-4); font-size: .9375rem; }
.btn--lg { height: 56px; padding: 0 var(--space-6); }
.btn--outline.btn--lg { font-size: 1.0625rem; }

/* Secundário — contorno grafite sobre branco */
.btn--outline { --btn-bg: transparent; --btn-fg: var(--grafite-800); --btn-bd: var(--grafite-800); font-weight: 500; border-radius: var(--radius-sm); }
.btn--outline:hover { --btn-bg: var(--grafite-800); --btn-fg: #fff; box-shadow: none; }

/* Sobre coral: branco sólido + contorno branco */
.btn--white { --btn-bg: #fff; --btn-fg: var(--coral-600); }
.btn--white:hover { --btn-bg: var(--branco-500); --btn-fg: var(--coral-700); box-shadow: var(--shadow-md); }
.btn--ghost-white { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.7); }
.btn--ghost-white:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: #fff; box-shadow: none; }

/* Sobre grafite */
.btn--dark { --btn-bg: var(--grafite-800); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: var(--grafite-900); box-shadow: var(--shadow-md); }

/* Link com seta */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; color: var(--color-brand-strong); text-decoration: none;
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: border-color var(--dur-fast), gap var(--dur-fast) var(--ease-out);
}
.link-arrow:hover { border-color: currentColor; gap: var(--space-3); }
.link-arrow svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   5. TAGS / CHIPS
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 var(--space-3);
  font-size: var(--fs-small); font-weight: 500;
  border-radius: var(--radius-sm); background: var(--coral-50); color: var(--coral-700);
}
.chip--outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); gap: var(--space-2); }
.chip svg { width: 16px; height: 16px; flex: none; }
.chip--dark { background: rgba(255,255,255,.1); color: #fff; }
.chip--solid { background: var(--coral-600); color: #fff; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Badge de versão — "8.1" */
.version-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  background: #fff; color: var(--coral-500);
  border-radius: .16em; padding: .08em .2em .1em;
}
.version-badge--coral { background: var(--coral-500); color: #fff; }

/* Lockup da versão — substitui o [LOGO VERSÃO] do roteiro */
.version-lockup { display: inline-flex; align-items: center; gap: 14px; margin-bottom: var(--space-2); }
.version-lockup__symbol { width: 44px; height: 44px; color: #fff; }
.version-lockup__text { display: grid; line-height: 1; }
.version-lockup__brand { font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.version-lockup__product { display: flex; align-items: center; gap: 8px; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.version-lockup__product .version-badge { font-size: 1.5rem; }
.version-lockup__divider { width: 1px; align-self: stretch; background: rgba(255,255,255,.4); margin-inline: 6px; }
.version-lockup__gen { font-size: .8125rem; line-height: 1.25; font-weight: 500; opacity: .9; }

@media (max-width: 520px) { .version-lockup__divider, .version-lockup__gen { display: none; } }

/* --------------------------------------------------------------------------
   6. HEADER (vidro grafite — protótipo v2)
   -------------------------------------------------------------------------- */
/* Altura do header fixa nos dois estados (90px; 82px ≤1040px): só a barra encolhe. Se a altura mudasse, o conteúdo abaixo
   pularia ~20px, o navegador corrigiria a rolagem e o script leria isso como "rolou para cima" — o header ficava tremendo.
   A área vazia abaixo da barra compacta não captura cliques (pointer-events). */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding: 12px 24px; height: 90px; overflow-anchor: none; pointer-events: none; }
.site-header__bar { pointer-events: auto; }
.site-header__bar {
  max-width: 1320px; margin: 0 auto; height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  padding: 16px;
  background: rgba(46,46,48,.55); color: #fff;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
  transition: max-width var(--dur-slow) var(--ease-out), height var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out), background var(--dur-base), border-radius var(--dur-base);
}
.site-header { transition: padding var(--dur-base) var(--ease-out); }
.site-header__brand .logo { transition: height var(--dur-base) var(--ease-out); }
/* Compacta ao rolar para baixo; volta ao tamanho normal ao rolar para cima */
.site-header.is-compact { padding-block: 8px; }
.site-header.is-compact .site-header__bar { max-width: 1080px; height: 52px; padding: 8px 8px 8px 16px; background: rgba(46,46,48,.78); border-radius: 14px; }
.site-header.is-compact .site-header__brand .logo { height: 22px; }
.site-header.is-compact .site-nav { gap: 22px; }
.site-header.is-compact .site-nav a { font-size: .875rem; }
.site-header.is-compact .site-header__cta { height: 36px; padding: 0 14px; font-size: .8125rem; }
.site-header__brand { display: inline-flex; align-items: center; text-decoration: none; color: #fff; }
.site-header__brand .logo { height: 29px; width: auto; }
.site-nav { display: flex; gap: 32px; }
.site-nav { transition: gap var(--dur-base) var(--ease-out); }
.site-nav a {
  position: relative; font-size: 1rem; font-weight: 500; text-decoration: none; opacity: .85; padding-block: 2px 4px; white-space: nowrap;
  transition: opacity var(--dur-fast), font-size var(--dur-base) var(--ease-out);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out);
}
.site-nav a:hover { opacity: 1; }
.site-nav a.is-active { opacity: 1; font-weight: 700; }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: var(--space-2); }
.site-header__cta { height: 40px; padding: 0 16px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; transition: height var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out), background var(--dur-fast); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 1200px) {
  .site-nav { gap: 20px; }
  .site-nav a { font-size: .9375rem; }
}
@media (max-width: 1200px) { .site-header.is-compact .site-header__bar { max-width: 960px; } .site-header.is-compact .site-nav { gap: 16px; } }
@media (max-width: 1040px) {
  .site-header, .site-header.is-compact { padding: 8px 12px; height: 82px; }
  .site-header.is-compact .site-header__bar { max-width: 1320px; }
  .site-nav {
    position: absolute; top: 82px; left: 12px; right: 12px; flex-direction: column; gap: 0;
    background: #fff; color: var(--grafite-800); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    padding: var(--space-2); opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out);
  }
  .site-nav a { padding: 14px 16px; border-radius: var(--radius-sm); opacity: 1; }
  .site-nav a::after { display: none; }
  .site-nav a:hover, .site-nav a.is-active { background: var(--coral-50); color: var(--coral-700); }
  .site-header.is-open .site-nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) { .site-header__cta { display: none; } }

/* --------------------------------------------------------------------------
   7. CARDS
   -------------------------------------------------------------------------- */
/* 7a. Card de recurso com fio divisor (padrão "Experiência que gera eficiência") */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature {
  padding: var(--space-2) var(--space-8) var(--space-2) var(--space-8);
  border-left: 1px solid var(--color-border);
}
.feature:first-child { padding-left: 0; border-left: 0; }
.feature__icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: grid; place-items: center; margin-bottom: var(--space-6);
  background: var(--grafite-800); color: #fff; border-radius: 12px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature__title { font-size: var(--fs-h5); font-weight: 600; line-height: 1.3; margin-bottom: var(--space-3); }
.feature__text { color: var(--color-text-muted); font-size: .9375rem; line-height: 1.5; }
@media (max-width: 1024px) {
  .feature-row { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-12); }
  .feature:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .feature-row { grid-template-columns: 1fr; row-gap: var(--space-8); }
  .feature { padding: var(--space-8) 0 0; border-left: 0; border-top: 1px solid var(--color-border); }
  .feature:first-child { border-top: 0; padding-top: 0; }
}

/* 7b. Card de superfície (cinza claro, raio 24) */
.card {
  position: relative; background: var(--color-surface); border-radius: var(--radius-lg);
  padding: var(--space-10); display: flex; flex-direction: column; gap: var(--space-4);
}
.card--white { background: #fff; border: 1px solid var(--color-border); }
.card--coral { background: var(--coral-500); color: #fff; }
.card--dark { background: var(--grafite-800); color: #fff; }

/* 7c. Card numerado (Compliance) */
.num-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-8); border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--color-border);
  transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.num-card:hover { border-color: var(--coral-200); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.num-card__num { font-size: var(--fs-small); font-weight: 600; color: var(--coral-600); letter-spacing: .04em; }
.num-card__title { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.num-card__text { color: var(--color-text-muted); }
.num-card__bar { height: 3px; width: 40px; border-radius: 3px; background: var(--coral-500); margin-bottom: var(--space-4); transition: width var(--dur-slow) var(--ease-out); }
.num-card:hover .num-card__bar { width: 72px; }

/* 7d. Card de app / portal (com ícone) */
.app-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6); border-radius: var(--radius-md); background: #fff; color: var(--grafite-800);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.app-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--coral-action); color: #fff; margin-bottom: var(--space-2); }
.app-card__icon svg { width: 22px; height: 22px; }
.app-card__title { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.app-card__text { font-size: .9375rem; color: var(--color-text-muted); }

/* 7e. Stat card (escuro — reutilizado da LP 40 anos) */
.stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--space-8); border-radius: var(--radius-md);
  background: var(--grafite-900); color: #fff; border: 1px solid rgba(255,255,255,.12);
}
.stat__icon { width: 28px; height: 28px; color: var(--coral-400); margin-bottom: var(--space-3); }
.stat__label { font-size: var(--fs-small); opacity: .62; }
.stat__value { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; font-weight: 400; padding-block: 8px 4px; white-space: nowrap; }
.stat__desc { font-size: var(--fs-small); opacity: .55; }
.stat--coral { background: var(--coral-500); border-color: transparent; }
.stat--coral .stat__icon { color: #fff; }
.stat--coral .stat__label, .stat--coral .stat__desc { opacity: .85; }

/* 7f. Tile do ecossistema */
.eco-tile {
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-1); text-decoration: none; color: var(--grafite-800);
  padding: var(--space-6); border-radius: var(--radius-md);
  border: 1px solid var(--color-border); background: #fff;
  transition: border-color var(--dur-base), background var(--dur-base);
}
.eco-tile:hover { border-color: var(--coral-300); background: var(--coral-50); }
.eco-tile__name { font-weight: 600; font-size: 1.0625rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.eco-tile__name svg { width: 18px; height: 18px; color: var(--coral-500); flex: none; }
.eco-tile__text { font-size: .9375rem; color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   8. MÍDIA
   -------------------------------------------------------------------------- */
.media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--branco-500); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Composição sobre fotografia: moldura fina + rótulos flutuantes (LP nova marca) */
.media-frame { position: absolute; inset: 12% 30%; border: 1.5px solid rgba(255,255,255,.75); border-radius: var(--radius-sm); pointer-events: none; }
.float-label {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: clamp(.8125rem, .7rem + .3vw, 1rem); font-weight: 500; line-height: 1.25;
  background: #fff; color: var(--grafite-800); box-shadow: var(--shadow-md);
}
.float-label--coral { background: var(--coral-600); color: #fff; }
.float-label svg { width: 20px; height: 20px; color: var(--coral-500); flex: none; }
.float-label--coral svg { color: #fff; }

/* Barras coral (grafismo de movimento) */
.speed-bar { position: absolute; height: 10px; border-radius: 2px; background: var(--coral-500); }

/* --------------------------------------------------------------------------
   9. SEÇÃO DE CABEÇALHO (título + texto)
   -------------------------------------------------------------------------- */
.section-head { display: grid; gap: var(--space-5); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.section-head p { color: var(--color-text-muted); }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; gap: var(--space-5); } }

/* --------------------------------------------------------------------------
   10. CARROSSEL
   -------------------------------------------------------------------------- */
.carousel { position: relative; }
.carousel__track {
  position: relative; display: flex; align-items: flex-start; gap: var(--space-6); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 min(86%, 980px); scroll-snap-align: start; }
.carousel__controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-8); }
.carousel__dots { display: flex; gap: var(--space-2); }
.carousel__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: var(--grafite-100); cursor: pointer; transition: width var(--dur-base) var(--ease-out), background var(--dur-base); }
.carousel__dot[aria-current="true"] { width: 32px; background: var(--coral-500); }
.carousel__arrows { display: flex; gap: var(--space-2); }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--grafite-100); background: #fff; color: var(--grafite-800); cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.icon-btn:hover { background: var(--coral-500); border-color: var(--coral-500); color: #fff; }
.icon-btn svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--grafite-800); color: #fff; border-radius: var(--radius-lg); margin: 0 8px 8px; padding-block: var(--space-16) var(--space-8); }
.site-footer__top { display: flex; justify-content: space-between; gap: var(--space-10); flex-wrap: wrap; }
.site-footer__brand .logo { height: 28px; width: auto; }
.site-footer__tagline { margin-top: var(--space-4); max-width: 320px; color: rgba(255,255,255,.7); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-8); }
.site-footer__nav a { font-size: var(--fs-small); text-decoration: none; color: rgba(255,255,255,.7); }
.site-footer__nav a:hover { color: #fff; }
.site-footer__bottom {
  margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); flex-wrap: wrap;
  font-size: var(--fs-small); color: rgba(255,255,255,.55);
}
.site-footer__bottom nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.site-footer__bottom a { text-decoration: none; color: rgba(255,255,255,.85); }
.site-footer__bottom a:hover { color: #fff; }
.socials { display: flex; gap: var(--space-4); }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background var(--dur-fast); }
.socials a:hover { background: var(--coral-500); }
.socials svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   12. MOVIMENTO (revelar ao rolar)
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
/* Transição entre páginas (main.js intercepta os links internos; o script do <head> cobre a página nova antes
   do primeiro quadro). Duas variantes, escolhidas por html[data-transicao]:
   · cortina — um painel coral e um grafite sobem cobrindo a tela; na página nova sobem de novo, revelando-a.
   · saida   — os elementos visíveis saem em sequência; na página nova os do topo entram em sequência. */
html::before, html::after { content: ""; position: fixed; inset: 0; z-index: 10000; pointer-events: none; transform: translateY(100%); visibility: hidden; }
html::before { background: #fff; }
html::after { background: var(--grafite-800); }
html.pt-leave::before, html.pt-leave::after, html.pt-cover::before, html.pt-cover::after { visibility: visible; }
html.pt-leave::before { animation: pt-up 520ms cubic-bezier(.76, 0, .24, 1) both; }
html.pt-leave::after { animation: pt-up 520ms cubic-bezier(.76, 0, .24, 1) 90ms both; }
html.pt-cover::before, html.pt-cover::after { transform: none; }
html.pt-cover.pt-reveal::after { animation: pt-out 640ms cubic-bezier(.76, 0, .24, 1) 60ms both; }
html.pt-cover.pt-reveal::before { animation: pt-out 640ms cubic-bezier(.76, 0, .24, 1) 150ms both; }
@keyframes pt-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pt-out { from { transform: none; } to { transform: translateY(-100%); } }
html.pt-hide main, html.pt-hide .site-footer { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   MODAL (<dialog> nativo) — abre por [data-modal="id"] (main.js)
   -------------------------------------------------------------------------- */
.modal { width: min(520px, calc(100% - 32px)); max-width: none; padding: var(--space-12) var(--space-10) var(--space-10); border: 0; border-radius: var(--radius-lg); background: var(--branco-0); color: var(--grafite-800); box-shadow: var(--shadow-lg); text-align: center; overflow: visible; }
.modal::backdrop { background: rgba(25, 25, 26, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .45s cubic-bezier(.16, 1, .3, 1) both; }
.modal[open]::backdrop { animation: modal-fade .3s ease-out both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 400; line-height: 1.2; letter-spacing: var(--ls-heading); text-wrap: balance; }
.modal__actions { display: flex; justify-content: center; gap: var(--space-3); margin-top: var(--space-8); }
.modal__actions .btn { min-width: 132px; }
.modal__close { position: absolute; top: var(--space-4); right: var(--space-4); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--grafite-500); cursor: pointer; }
.modal__close:hover { background: var(--branco-500); color: var(--grafite-800); }
.modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
html.modal-open { overflow: hidden; scrollbar-gutter: stable; }
@media (max-width: 480px) {
  .modal { padding: var(--space-12) var(--space-6) var(--space-6); }
  .modal__actions { flex-direction: column; }
  .modal__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   TEMPORÁRIO — lançamento sem a página Novidades.
   Esconde todo link/botão que leva para novidades/ (menu, rodapé, home, Versão 8.1).
   Para reativar: apagar este bloco e rodar python3 src/build.py. Ver NOVIDADES-OCULTAS.md
   -------------------------------------------------------------------------- */
[data-novidades] { display: none !important; }

/* TEMPORÁRIO — itens escondidos por enquanto (independente da Novidades):
   "IA" no menu e "Clara IA" no rodapé. Para reativar: apagar esta regra e rodar python3 src/build.py. */
[data-oculto] { display: none !important; }
