/* ==========================================================================
   Consili Consultoria
   CSS puro, sem build. Usado por index.html, politica-de-privacidade.html
   e pelos artigos em /conteudos/.

   Direção visual: referência "Arcadia" (verde-floresta sobre papel creme,
   um acento menta, DM Sans leve, cards com borda sálvia e sem sombra).

   Sumário
   1. Tokens                       6. Seções da home
   2. Base e tipografia            7. Formulário de contato
   3. Layout e utilitários         8. Rodapé
   4. Cabeçalho e navegação        9. Artigos e páginas de texto
   5. Botões                       10. Movimento
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --canopy: #104336;        /* marca: CTA principal, rodapé, rótulos */
  --canopy-hover: #0b3329;
  --mint: #0fff87;          /* acento: uma ação principal por tela */
  --mint-hover: #5cffab;
  --cream: #f3f1ec;         /* fundo de faixas alternadas */
  --white: #ffffff;         /* fundo base e cards */
  --ink: #000000;           /* títulos de destaque */
  --bark: #101f1e;          /* texto */
  --slate: #535e5d;         /* texto secundário */
  --sage: #afc4bf;          /* bordas e divisórias */
  --field-border: #798281;
  --ok: #0b6b4f;
  --ok-bg: #e3f3ec;
  --err: #a32d2d;
  --err-bg: #fbeaea;

  /* Regra de raios: cards e fotos 16px, botões 8px, campos 4px. */
  --r-card: 16px;
  --r-btn: 8px;
  --r-input: 4px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 68px;
  --font: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 2. Base e tipografia ---------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Imagens nunca distorcem: a altura acompanha a largura e o corte é feito
   por aspect-ratio + object-fit nos componentes. */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1rem + 3.4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2 {
  max-width: 22em;
  font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--canopy);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--mint);
  color: var(--bark);
}

/* 3. Layout e utilitários ------------------------------------------------- */

.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-tint {
  background: var(--cream);
}

.eyebrow,
.article-hero .eyebrow {
  display: block;
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--canopy);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head > p:not(.eyebrow) {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--slate);
}

.prose > p:not(.eyebrow) {
  max-width: 36em;
  margin-top: 20px;
  color: var(--slate);
}

.prose > p.lead,
.lead {
  max-width: 34em;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--bark);
}

.prose > h2 + .lead {
  margin-top: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: var(--r-btn);
  background: var(--canopy);
  color: var(--white);
}

/* 4. Cabeçalho e navegação ------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--sage);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--canopy);
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.brand strong {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand small {
  margin-top: 6px;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.42em;
}

/* Símbolo do logo (imagem enviada pela Consili); o nome segue em texto. */
.brand-symbol {
  flex: none;
  width: 40px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  font-size: 0.9375rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}

.main-nav a:not(.nav-cta):hover {
  color: var(--canopy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.main-nav .nav-cta {
  padding: 0 24px;
  border-radius: var(--r-btn);
  background: var(--canopy);
  color: var(--white);
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.main-nav .nav-cta:hover {
  background: var(--canopy-hover);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: var(--r-btn);
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--canopy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--sage);
    font-size: 1.0625rem;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    min-height: 48px;
    border-top: 1px solid var(--sage);
  }

  .main-nav .nav-cta {
    justify-content: center;
    min-height: 52px;
    margin-top: 16px;
    border-top: 0;
  }
}

/* 5. Botões --------------------------------------------------------------- */
/* Blocos sólidos: sem gradiente e sem sombra. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--canopy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--canopy-hover);
}

/* Menta: reservada à ação mais importante da tela. */
.btn-mint {
  background: var(--mint);
  color: var(--bark);
}

.btn-mint:hover {
  background: var(--mint-hover);
}

.btn-ghost {
  border-color: var(--canopy);
  color: var(--canopy);
}

.btn-ghost:hover {
  background: rgb(16 67 54 / 0.07);
}

.btn-full {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* 6. Seções da home ------------------------------------------------------- */

/* Hero: texto centralizado sobre a lavagem diagonal, foto logo abaixo. */
.hero {
  padding-top: clamp(48px, 7vw, 88px);
  background: linear-gradient(212.12deg, #afc4bf 14.83%, #e8e7f5 52.99%, #f1eee9 79.47%);
}

.hero-stack {
  max-width: 58rem;
  margin-inline: auto;
  text-align: center;
}

.hero-lead {
  max-width: 40em;
  margin: 24px auto 0;
  font-size: 1.125rem;
  color: var(--bark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-media {
  margin-top: clamp(40px, 6vw, 64px);
  overflow: hidden;
  border: 1px solid var(--sage);
  border-radius: var(--r-card);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 15%;
}

.facts {
  padding-block: 24px clamp(40px, 6vw, 64px);
  background: #f1eee9;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--slate);
}

.facts-list li {
  padding: 24px;
  border: 1px solid var(--sage);
  border-radius: var(--r-card);
  background: var(--white);
}

.facts-list strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bark);
}

/* Quem somos */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-card);
}

.about-figure figcaption {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--slate);
}

.about-figure figcaption strong {
  font-weight: 500;
  color: var(--bark);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 40px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--sage);
}

.principles dt,
.benefits dt {
  font-size: 1.0625rem;
  font-weight: 500;
}

.principles dd,
.benefits dd {
  margin-top: 4px;
  color: var(--slate);
}

/* Soluções: lista em linhas (nome, descrição, entregas) */
.service {
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  gap: 12px 40px;
  padding: 28px 0;
  border-top: 1px solid var(--sage);
}

.service h3 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.service p {
  color: var(--slate);
}

.service ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.service li + li {
  margin-top: 6px;
}

.service-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: 12px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-card);
  background: var(--canopy);
  color: var(--white);
}

.service-start p {
  margin-top: 6px;
  color: rgb(255 255 255 / 0.82);
}

.service-start :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--mint);
}

/* Mercado Livre */
.market-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.market-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-card);
}

.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-block: 36px;
}

.benefits > div {
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--cream);
}

.benefits dd {
  font-size: 0.9375rem;
}

/* Gestão contínua */
.intelligence {
  padding-top: 0;
}

.intelligence-media {
  margin-top: clamp(32px, 5vw, 56px);
}

.intelligence-media img {
  width: 100%;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
  border-radius: var(--r-card);
}

.principle-quote {
  max-width: 26em;
  margin: clamp(32px, 5vw, 56px) 0 0 auto;
  font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

/* Conteúdos */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 6vw, 80px);
}

.insight {
  grid-column: 2;
  padding: 22px 0;
  border-top: 1px solid var(--sage);
}

.insight-featured {
  grid-column: 1;
  grid-row: 1 / span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--sage);
  border-radius: var(--r-card);
  background: var(--white);
}

/* Destaque com foto de fundo (torres de transmissão) e véu verde para leitura. */
.insight-featured {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 460px;
  border-color: transparent;
  background: var(--canopy);
  color: var(--white);
}

.insight-featured .insight-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
}

.insight-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(16 31 30 / 0.25) 0%, rgb(16 67 54 / 0.7) 50%, rgb(16 31 30 / 0.9) 100%);
}

.insight-featured .insight-topic {
  color: var(--mint);
}

.insight-topic {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--canopy);
}

.insight h3 {
  margin-top: 8px;
}

.insight-featured h3 {
  margin-top: 16px;
  font-size: clamp(1.625rem, 1rem + 1.8vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.insight h3 a:hover {
  color: var(--canopy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.insight-featured h3 a:hover {
  color: var(--white);
}

.insight > p:last-child {
  max-width: 36em;
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--slate);
}

.insight-featured > p:last-child {
  margin-top: 16px;
  font-size: 1rem;
  color: rgb(255 255 255 / 0.86);
}

/* Como atuamos: cinco etapas em sequência */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--canopy);
}

.process-list li {
  padding-top: 20px;
}

.step-no {
  display: block;
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--canopy);
}

.process-list h3 {
  margin-top: 16px;
}

.process-list p {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--slate);
}

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.contact-copy .lead {
  margin-top: 24px;
  color: var(--slate);
}

.contact-direct {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.contact-direct dt {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate);
}

.contact-direct dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--canopy);
  overflow-wrap: anywhere;
}

.contact-direct dd a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1023px) {
  .process-list {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 0;
  }

  .process-list li {
    display: grid;
    grid-template-columns: 56px 1fr;
    padding: 20px 0;
    border-top: 1px solid var(--sage);
  }

  .process-list li:first-child {
    border-top: 2px solid var(--canopy);
  }

  .step-no {
    grid-row: 1 / span 2;
  }

  .process-list h3 {
    margin-top: 0;
  }

  .process-list p {
    max-width: 36em;
  }
}

@media (max-width: 899px) {
  .about-grid,
  .market-grid,
  .contact-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    aspect-ratio: 3 / 2;
    object-position: center;
  }

  .market-figure {
    max-width: 480px;
  }

  .service {
    grid-template-columns: 1fr 1fr;
  }

  .service h3 {
    grid-column: 1 / -1;
  }

  .insight,
  .insight-featured {
    grid-column: 1;
    grid-row: auto;
  }

  .insight-featured {
    margin-bottom: 20px;
  }


  .principle-quote {
    margin-left: 0;
  }
}

@media (max-width: 699px) {
  .facts-list,
  .principles,
  .service {
    grid-template-columns: 1fr;
  }

  .facts-list {
    gap: 12px;
  }

  .facts-list li {
    padding: 20px;
  }

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

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .intelligence-media img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 479px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}

/* 7. Formulário de contato ------------------------------------------------ */

.contact-form {
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--sage);
  border-radius: var(--r-card);
  background: var(--white);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--r-input);
  background-color: var(--white);
  font-size: 1rem;
  font-weight: 400;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form ::placeholder {
  color: #66706f;
  opacity: 1;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid var(--canopy);
  outline-offset: 1px;
  border-color: var(--canopy);
}

.contact-form [aria-invalid="true"] {
  border-color: var(--err);
  border-width: 2px;
}

.field-error {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--err);
}

.contact-form .consent {
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 44px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--slate);
}

.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--canopy);
}

.consent > span:not(.field-error) {
  flex: 1;
}

.consent .field-error {
  flex-basis: 100%;
}

.consent a {
  color: var(--canopy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Campo-isca contra spam: fora da tela e fora da ordem de tabulação. */
.hp {
  position: absolute !important;
  left: -9999px !important;
}

.form-status {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid currentColor;
  border-radius: var(--r-btn);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.form-status.is-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.form-status.is-error {
  background: var(--err-bg);
  color: var(--err);
}

@media (max-width: 699px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* 8. Rodapé --------------------------------------------------------------- */

.site-footer {
  padding: clamp(56px, 8vw, 96px) 0 24px;
  background: var(--canopy);
  color: var(--white);
  font-size: 0.9375rem;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand-symbol {
  width: 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 32px clamp(32px, 5vw, 56px);
}

.footer-grid p {
  margin-top: 12px;
  color: rgb(255 255 255 / 0.8);
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-grid > div:not(:first-child) > strong {
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mint);
}

.footer-grid > div:not(:first-child) > a {
  padding: 8px 0;
  color: rgb(255 255 255 / 0.88);
  overflow-wrap: anywhere;
}

.footer-grid > div:not(:first-child) > a:hover,
.footer-bottom a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.2);
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.8);
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-company {
  display: grid;
  gap: 4px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

@media (max-width: 699px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* 9. Artigos e páginas de texto ------------------------------------------ */

.article-hero {
  padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
  background: var(--cream);
}

.article-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--canopy);
}

.article-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-hero h1 {
  max-width: 20em;
  font-size: clamp(2rem, 1rem + 2.8vw, 3rem);
}

.article-hero p {
  max-width: 40em;
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--slate);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--slate);
}

.article-section {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 112px);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 44rem) 20rem;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.article-content h2 {
  margin: 2.2em 0 0.6em;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content p {
  margin-bottom: 1.1em;
}

.article-content ol,
.article-content ul {
  margin: 0 0 1.3em;
  padding-left: 1.25em;
}

.article-content li {
  margin: 0.5em 0;
}

.article-content a {
  color: var(--canopy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-intro {
  font-size: 1.25rem;
  line-height: 1.5;
}

.article-highlight {
  margin: 1.6em 0;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--cream);
}

.article-sources {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--sage);
  font-size: 1rem;
}

.article-content .article-sources h2 {
  margin: 0 0 0.6em;
  font-size: 1.25rem;
  font-weight: 500;
}

.article-sources small {
  color: var(--slate);
}

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.article-cta {
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--cream);
}

.article-cta > span {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--canopy);
}

.article-cta h3 {
  margin: 12px 0 8px;
}

.article-cta p {
  margin-bottom: 20px;
  font-size: 0.9375rem;
  color: var(--slate);
}

.article-side-links {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
}

.article-side-links strong {
  margin-bottom: 8px;
  font-weight: 500;
}

.article-side-links a {
  padding: 12px 0;
  border-top: 1px solid var(--sage);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.article-side-links a:hover {
  color: var(--canopy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.comparison-table {
  margin: 1.6em 0;
  border: 1px solid var(--sage);
  border-radius: var(--r-card);
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.4;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
}

.comparison-row span {
  padding: 12px 16px;
  border-top: 1px solid var(--sage);
}

.comparison-row span + span {
  border-left: 1px solid var(--sage);
}

.comparison-row.head {
  background: var(--canopy);
  color: var(--white);
  font-weight: 500;
}

.comparison-row.head span {
  border-top: 0;
}

/* Página de texto simples (política de privacidade) */
.legal .article-content {
  max-width: 44rem;
}

.legal-back {
  margin-top: 2.5em;
}

.legal-date {
  color: var(--slate);
  font-size: 0.9375rem;
}

/* Aviso de cookies */
.cookie-notice {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 460px;
  padding: 14px 16px;
  border: 1px solid var(--sage);
  border-radius: var(--r-card);
  background: var(--white);
  color: var(--bark);
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.14);
}

.cookie-notice a {
  color: var(--canopy);
  text-decoration: underline;
}

.cookie-notice .btn {
  flex: none;
}

@media (max-width: 600px) {
  .cookie-notice {
    left: 14px;
    right: 84px;
    bottom: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 899px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 699px) {
  .comparison-table {
    overflow-x: auto;
  }

  .comparison-row {
    min-width: 560px;
  }
}

/* 10. Movimento ----------------------------------------------------------- */
/* Um único momento orquestrado: a entrada do hero. O resto da página fica
   parado e só responde a ações (hover, foco, menu, envio). */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-stack > * {
    animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-stack > h1 { animation-delay: 0.06s; }
  .hero-stack > .hero-lead { animation-delay: 0.12s; }
  .hero-stack > .hero-actions { animation-delay: 0.18s; }

  /* A foto é o LCP: sem opacidade zero, só um leve assentamento. */
  .hero-media img {
    animation: settle 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes settle {
  from { transform: scale(1.05); }
  to { transform: none; }
}

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