/**
 * Design system — tokens, tipografia, cards, utilitários
 * Carregar após site-extra.css
 */

:root {
  /* Cores */
  --color-primary: oklch(0.3 0.08 250);
  --color-primary-deep: oklch(0.28 0.08 250);
  --color-secondary: oklch(0.55 0.14 155);
  --color-secondary-muted: oklch(0.48 0.14 155);
  --color-foreground: oklch(0.25 0.03 250);
  --color-muted: oklch(0.5 0.02 250);
  --color-muted-soft: oklch(0.52 0.02 250);
  --color-background: #fff;
  --color-band-light: oklch(0.97 0.005 250);
  --color-band-navy: oklch(0.28 0.08 250);
  --color-border: oklch(0.92 0.01 250);
  --color-on-navy: #fff;
  --color-on-navy-muted: oklch(1 0 0 / 0.78);
  --color-on-navy-faint: oklch(1 0 0 / 0.55);
  --color-focus: oklch(0.55 0.14 155);
  --color-danger-outline: oklch(0.55 0.2 25 / 35%);

  /* Aliases (legado) */
  --primary: var(--color-primary);
  --secondary: var(--color-secondary);
  --foreground: var(--color-foreground);
  --muted-foreground: var(--color-muted);
  --background: var(--color-background);
  --border: var(--color-border);

  /* Tipografia */
  --text-2xs: 0.625rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.5rem, 3.5vw, 1.875rem);
  --text-h2: clamp(1.75rem, 4vw, 2.25rem);
  --text-stat: clamp(1.75rem, 4vw, 2.25rem);
  --leading-tight: 1.15;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  /* Espaço */
  --space-section-y: clamp(3rem, 5.5vw, 4.75rem);
  --space-section-y-lg: clamp(3.75rem, 7vw, 5.75rem);
  --space-stack: clamp(2rem, 4vw, 3rem);
  --space-intro-after: clamp(2.5rem, 5vw, 3.5rem);
  --space-intro-after-compact: clamp(2rem, 4vw, 2.25rem);
  --gap-inline: clamp(0.75rem, 2vw, 1rem);

  /* Superfícies */
  --radius-sm: 0.25rem;
  --radius-card: 0.35rem;
  --card-padding: clamp(1.25rem, 3vw, 1.75rem);
  --card-padding-lg: clamp(1.5rem, 3vw, 2rem);
  --shadow-card: 0 4px 18px oklch(0.22 0.04 250 / 0.06);
  --shadow-card-hover: 0 12px 32px oklch(0.22 0.04 250 / 0.1);
  --shadow-elevated: 0 16px 40px oklch(0.22 0.06 250 / 0.14%);
}

/* —— Visibilidade única —— */
.u-hidden,
.is-hidden,
.lead-form .u-hidden,
.lead-form .hidden,
.lead-form__error.u-hidden,
.lead-form__sim-summary.u-hidden,
#lead-consent-error.u-hidden,
#lead-consent-error.hidden,
#lead-error.u-hidden,
#lead-error.hidden,
#lead-error-wa.u-hidden,
#lead-error-wa.hidden,
#cookie-banner.u-hidden,
#cookie-banner.hidden,
#mobile-overlay.u-hidden,
#mobile-overlay.hidden,
.gd-simulator-widget .u-hidden,
.gd-simulator-widget .is-hidden,
.gd-simulator-widget [hidden]:not([hidden="false"]) {
  display: none !important;
}

/* —— Tipografia de seção —— */
.section-intro {
  margin-bottom: var(--space-intro-after);
}

.section-intro--compact {
  margin-bottom: var(--space-intro-after-compact);
}

.section-intro--center {
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.section-intro--left {
  text-align: left;
  max-width: 40rem;
}

.section-rule {
  display: block;
  width: 7.5rem;
  height: 4px;
  flex-shrink: 0;
  margin-top: 0.4rem;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: auto;
  color: var(--color-accent, oklch(0.55 0.14 155));
}

.section-intro .section-label + .section-rule {
  margin-top: 0.35rem;
}

.section-intro .section-rule + .section-title {
  margin-top: 0.75rem;
}

.section-rule--on-dark {
  color: oklch(1 0 0 / 0.42);
}

.section-intro--center .section-rule {
  margin-left: auto;
  margin-right: auto;
}

.section-intro .section-title {
  margin: 0;
}

.section-title {
  margin: 0.75rem 0 0;
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.section-title--on-dark {
  color: var(--color-on-navy);
}

.section-title__accent,
.section-title .text-secondary {
  color: var(--color-secondary-muted);
}

.section-desc {
  margin: 1rem 0 0;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-muted);
}

@media (min-width: 640px) {
  .section-desc {
    font-size: var(--text-lg);
  }
}

.section-desc--on-dark {
  color: var(--color-on-navy-muted);
}

.section-tagline {
  margin: 0.35rem 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-secondary-muted);
}

.section-links {
  margin: 0.5rem 0 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-muted);
}

.section-links a {
  font-weight: 600;
  color: var(--color-secondary-muted);
  text-decoration: none;
}

.section-links a:hover {
  text-decoration: underline;
}

.section-links a.link-primary {
  color: var(--color-primary);
}

.section-eyebrow-muted {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* —— Intro split (GD / ML) —— */
.section-intro-split,
.fm-intro-grid {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.section-intro-split--center,
.fm-intro-grid--light {
  align-items: center;
}

.section-intro-split__copy,
.fm-intro-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 48rem;
}

.section-intro-split__copy .section-desc,
.section-intro-split__copy .section-tagline,
.section-intro-split__copy .section-links,
.fm-intro-copy .section-desc,
.fm-intro-copy .section-tagline,
.fm-intro-copy .section-links {
  margin-top: 0.75rem;
}

@media (min-width: 1024px) {
  .section-intro-split,
  .fm-intro-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 2.5rem;
  }
}

/* —— Stat card —— */
.stat-card {
  align-self: start;
  padding: var(--card-padding);
  text-align: center;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.stat-card--accent {
  border-left: 4px solid var(--color-secondary);
}

@media (min-width: 1024px) {
  .stat-card {
    align-self: center;
    text-align: right;
    min-width: 220px;
  }
}

.stat-card__label {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.stat-card__value {
  margin: 0.5rem 0 0.25rem;
  font-size: var(--text-stat);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.stat-card__note {
  margin: 0;
  font-size: 0.6875rem;
  line-height: var(--leading-normal);
  color: var(--color-muted);
}

/* —— Cards —— */
.card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.card--elevated {
  box-shadow: var(--shadow-card);
}

.card--accent {
  border-left: 4px solid var(--color-secondary);
}

.card--on-dark {
  color: var(--color-on-navy);
  background: oklch(1 0 0 / 0.06);
  border-color: oklch(1 0 0 / 0.14);
}

.card-surface {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.card-surface.card--elevated,
.card-surface.hover-lift {
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.card-surface.hover-lift:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* —— Layout helpers —— */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-row--start {
  justify-content: flex-start;
}

.u-text-center {
  text-align: center;
}

.u-list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.u-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

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

.icon-inline--md {
  width: 1.125rem;
  height: 1.125rem;
}

.icon-inline--lg {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-box-size {
  width: 3rem;
  height: 3rem;
}

.icon-box-size .lucide,
.icon-box-size svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* —— Hero copy —— */
.layout-hero__desc {
  margin: 0;
  max-width: 32rem;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-muted);
}

.layout-hero__note {
  margin: 0;
  max-width: 32rem;
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: oklch(0.5 0.02 250 / 0.9);
}

.layout-hero__trust-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.layout-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.layout-hero {
  position: relative;
  overflow: hidden;
}

.layout-hero__bg,
.layout-hero__picture {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.layout-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.12;
}

.layout-hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  color: var(--color-primary);
  pointer-events: none;
}

.link-accent {
  font-weight: 600;
  color: var(--color-secondary-muted);
  text-decoration: none;
}

.link-accent:hover {
  text-decoration: underline;
}

.text-secondary {
  color: var(--color-secondary-muted);
}

/* —— About —— */
.layout-about__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .layout-about__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
  }

  .layout-about__media {
    order: 1;
  }

  .layout-about__content {
    order: 2;
  }
}

.layout-about__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-elevated);
}

.layout-about__img {
  display: block;
  width: 100%;
  min-height: 260px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .layout-about__img {
    min-height: 380px;
  }

  .layout-about__figure {
    transform: translateX(-1.5rem);
  }
}

.layout-about__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.layout-about__points {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.layout-about__point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-base);
  color: var(--color-foreground);
}

/* —— Trust stats —— */
.trust-stat-card {
  padding: var(--card-padding-lg);
  text-align: center;
}

.trust-stat-card__value {
  margin: 0;
  font-size: var(--text-stat);
  font-weight: 800;
  color: var(--color-primary);
}

.trust-stat-card__label {
  margin: 0.5rem 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-foreground);
}

.trust-stat-card__note {
  margin: 0.5rem 0 0;
  font-size: var(--text-2xs);
  color: var(--color-muted);
}

/* —— Grid de cards (highlights ML/GD) —— */
.card-grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.card-grid-item {
  height: 100%;
  padding: var(--card-padding-lg);
}

.card-grid-item .icon-box-size {
  margin-bottom: 1.25rem;
}

.card-grid-item__title {
  margin: 0 0 0.5rem;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
}

.card-grid-item__desc {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-muted);
}

.section-subhead {
  margin: 0 0 1.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-muted);
}

/* —— CTA band —— */
.cta-band {
  padding: var(--card-padding-lg);
  text-align: center;
}

.cta-band__title {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-primary);
}

.cta-band__desc {
  margin: 0.75rem auto 1.5rem;
  max-width: 42rem;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-muted);
}

.cta-band__disclaimer {
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  max-width: 42rem;
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

.fm-cta-band {
  padding: var(--card-padding-lg);
  text-align: center;
}

.section-divider {
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 56rem;
  margin-inline: auto;
}

.services-hub-note {
  margin-top: 2rem;
  max-width: 48rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

/* —— Faixas navy —— */
.section-band-navy,
.layout-band--navy {
  background: var(--color-band-navy);
  color: var(--color-on-navy);
}

.layout-band--navy + .layout-band--paper::before,
.layout-band--navy + .layout-band--light::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    oklch(0.55 0.14 155 / 35%) 50%,
    transparent 100%
  );
}

.process-bridge {
  margin: 0 0 2rem;
  max-width: 48rem;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-on-navy-muted);
}

@media (min-width: 640px) {
  .process-bridge {
    font-size: var(--text-base);
  }
}

/* —— Focus —— */
:where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  .layout-hero__chip,
  .process-tabs__btn
):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.lead-consent-wrap.consent-invalid,
.gd-simulator-followup__consent.lead-consent-wrap.consent-invalid {
  border-radius: var(--radius-sm);
  outline: 2px solid var(--color-danger-outline);
  outline-offset: 2px;
}

/* —— Motion —— */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card-surface.hover-lift:hover {
    transform: none;
  }

  .layout-trust__carousel {
    scroll-behavior: auto;
  }
}
