/* =========================================================
   ETHOS · Asesoría de Inversiones
   Folha de estilo única das 3 páginas (Home, Perguntas, Blog).
   Base: identidade de "ETHOS Lei de Maquila.html".
   Layout: bandas alternadas (floresta escura / papel claro),
   conteúdo em grid até 72rem, ritmo de 4px.
   Tema único deliberado: identidade da marca, sem modo escuro.
   ========================================================= */

/* ---------- Fontes ---------- */
@font-face { font-family: "SF Pro Display"; src: url("../fonts/sf-pro-display-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("../fonts/sf-pro-display-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("../fonts/sf-pro-display-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  color-scheme: light;

  /* Cor: primitivos */
  --forest-950: #161e0e;
  --forest-900: #1f2914;
  --forest-800: #2b3a1c;
  --forest-700: #3a4b26;
  --olive-600:  #5d6b17;
  --olive-700:  #4b5712;
  --olive-300:  #b9c86b;
  --olive-200:  #d6e0a3;
  --bronze-500: #b07a3c;
  /* Dourado do logo */
  --gold-700: #a8622d;   /* texto dourado sobre claro: 4.7:1 */
  --gold-500: #c98a45;
  --gold-300: #e2b46c;
  --gold-100: #f5d488;
  --gold-50:  #fbf3e3;
  --gold-grad: linear-gradient(120deg, #c98a45 0%, #e2b46c 55%, #f5d488 100%);
  --paper:      #f5f6ef;
  --white:      #ffffff;
  --ink:        #1b2112;
  --ink-muted:  #4a5340;
  --line:       #d8dccb;
  --on-dark:        #eef1e4;
  --on-dark-muted:  #b9c1a6;
  --line-dark:      #3d4b2c;
  --danger:     #a3261b;
  --danger-bg:  #fbecea;
  --success:    #2f6b3a;
  --success-bg: #e8f2e6;
  --warn-bg:    #f7efd9;
  --warn-ink:   #6e4b12;
  --whatsapp:   #25d366;
  --whatsapp-ink: #0b3d1f;

  /* Cor: semânticos */
  --surface:        var(--white);
  --surface-alt:    var(--paper);
  --surface-strong: var(--forest-900);
  --text:           var(--ink);
  --text-muted:     var(--ink-muted);
  --border:         var(--line);
  --accent:         var(--olive-600);
  --accent-hover:   var(--olive-700);
  --focus:          var(--gold-500);
  --eyebrow:        var(--gold-700);
  --rule:           var(--gold-300);

  /* Tipografia */
  --font-sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.3rem + 2.4vw, 2.875rem);
  --fs-3xl: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  /* Espaçamento: escala de 4px */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --section-y: clamp(var(--s-16), 8vw, var(--s-24));

  /* Raios */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-band: clamp(24px, 3vw, 40px);
  --r-pill: 999px;

  /* Elevação */
  --shadow-1: 0 1px 2px rgb(22 30 14 / .08);
  --shadow-2: 0 8px 24px -8px rgb(22 30 14 / .25);

  /* Movimento */
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 300ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  /* Layout */
  --container: 72rem;
  --header-h: 5.5rem;
  --header-h-compact: 4rem;
  --tap: 48px;
}

/* Contexto escuro: só redefine tokens semânticos */
.on-dark {
  --surface: var(--forest-800);
  --surface-alt: var(--forest-900);
  --text: var(--on-dark);
  --text-muted: var(--on-dark-muted);
  --border: var(--line-dark);
  --accent: var(--gold-300);
  --accent-hover: var(--gold-100);
  --btn-bg: var(--gold-grad);
  --btn-fg: var(--forest-950);
  --btn-bg-hover: var(--gold-100);
  --eyebrow: var(--gold-300);
  background: var(--surface-strong);
  color: var(--text);
}

/* Bloco verde arredondado */
.section.on-dark { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-band); }

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h-compact); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  background: var(--surface-alt);
  color: var(--text);
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-tight); text-wrap: balance; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: var(--s-4); top: calc(env(safe-area-inset-top, 0px) - 100px); z-index: 100; background: var(--white); color: var(--ink); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); transition: top var(--dur-base) var(--ease-out); }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + var(--s-4)); }

.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--s-8));
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) {
  .wrap { padding-left: max(var(--s-8), env(safe-area-inset-left, 0px)); padding-right: max(var(--s-8), env(safe-area-inset-right, 0px)); }
}
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.section-head { display: flex; flex-direction: column; gap: var(--s-3); max-width: 46rem; margin-bottom: var(--s-10); }
.section-head p:not(.eyebrow) { color: var(--text-muted); font-size: var(--fs-md); }
.h2 { font-size: var(--fs-2xl); }
.h3 { font-size: var(--fs-lg); line-height: var(--lh-snug); }

/* =========================================================
   3. COMPONENTES
   ========================================================= */
.eyebrow { font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--eyebrow); }

/* Chip "a confirmar": conteúdo pendente da cliente.
   Para esconder todos: ETHOS_CONFIG.mostrarPendencias = false */
.tbc {
  display: inline-flex; align-items: center; gap: var(--s-1);
  font-size: var(--fs-xs); font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none;
  padding: 1px var(--s-2); border-radius: var(--r-pill);
  background: var(--warn-bg); color: var(--warn-ink);
  border: 1px dashed currentColor; vertical-align: middle; max-width: 100%;
}
.tbc:empty::before { content: "a confirmar"; }
.tbc[data-label]::before { content: attr(data-label); }
.hide-pending .tbc:not(.tbc--keep) { display: none !important; } /* a do CNPJ (rodapé) fica sempre */

/* Botões */
.btn {
  --_bg: var(--btn-bg, var(--olive-600));
  --_fg: var(--btn-fg, var(--white));
  --_bg-h: var(--btn-bg-hover, var(--olive-700));
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: var(--s-3) var(--s-6);
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--_bg); color: var(--_fg);
  background-origin: border-box; /* o degradê cobre também a borda transparente (sem filete claro na ponta esquerda) */
  font-size: var(--fs-sm); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), color var(--dur-fast);
}
.btn:hover { background: var(--_bg-h); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn .icon { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--text); border-color: currentColor; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); box-shadow: none; }
.btn--sm { min-height: 44px; padding: var(--s-2) var(--s-5); font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn--wa { --btn-bg: var(--whatsapp); --btn-fg: var(--whatsapp-ink); --btn-bg-hover: #3fe07c; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .btn-label::after { content: "…"; }
.link-btn {
  background: none; border: 0; padding: var(--s-2) 0; min-height: 44px;
  color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.link-btn:hover { color: var(--accent-hover); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.card { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); }

/* Faixa de chamada (texto + botão) */
.callout {
  margin-top: var(--s-8); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-6); border-radius: var(--r-xl);
  background: var(--forest-950); color: var(--on-dark); border: 1px solid color-mix(in srgb, var(--gold-300) 45%, transparent);
  --btn-bg: var(--gold-grad); --btn-fg: var(--forest-950); --btn-bg-hover: var(--gold-100);
}
.callout p { font-size: var(--fs-md); flex: 1 1 20rem; }
.callout p span { color: var(--on-dark-muted); }

/* =========================================================
   4. HEADER (animação no scroll)
   Estados: top → scrolled (compacto, sólido) → hidden
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--white);
  background: transparent;
  transition: background-color var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.site-header[data-scrolled="true"] {
  background: color-mix(in srgb, var(--forest-950) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line-dark), var(--shadow-2);
}
.site-header[data-hidden="true"] { transform: translateY(-100%); box-shadow: none; }
.header-inner { display: flex; align-items: center; gap: var(--s-6); height: var(--header-h); transition: height var(--dur-slow) var(--ease-out); }
.site-header[data-scrolled="true"] .header-inner { height: var(--header-h-compact); }

.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; margin-right: auto; }
.brand-logo { height: 2.5rem; width: auto; max-width: none; transition: height var(--dur-slow) var(--ease-out); }
.site-header[data-scrolled="true"] .brand-logo { height: 2rem; }
.brand-logo--lg { height: 3rem; }

.nav { display: none; }
.nav-list { list-style: none; display: flex; gap: var(--s-1); position: relative; }
/* Briefing 4.1: todos os textos do menu em branco */
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--white); border-radius: var(--r-sm);
  transition: opacity var(--dur-fast);
}
.nav-list a:hover { opacity: .8; }
.nav-list a[aria-current] { opacity: 1; }
.nav-indicator {
  position: absolute; left: 0; bottom: 4px; height: 2px; width: 1px; border-radius: 2px;
  background: var(--white); transform-origin: left;
  transform: translateX(var(--x, 0)) scaleX(var(--w, 0));
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base);
  opacity: 0;
}
.nav-indicator[data-on="true"] { opacity: 1; }
.header-cta { display: none; --btn-bg: var(--gold-grad); --btn-fg: var(--forest-950); --btn-bg-hover: var(--gold-100); }

.menu-btn {
  display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); flex: none;
  background: transparent; border: 1px solid color-mix(in srgb, var(--white) 55%, transparent); border-radius: var(--r-pill); color: var(--white); cursor: pointer;
  transition: background-color var(--dur-fast);
}
.menu-btn:hover { background: color-mix(in srgb, var(--white) 12%, transparent); }
.burger { display: grid; gap: 5px; width: 20px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: var(--white); }
.burger i:nth-child(2) { width: 70%; justify-self: end; }

.scroll-progress { height: 2px; background: transparent; overflow: hidden; }
.scroll-progress span { display: block; height: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(var(--p, 0)); }

@media (min-width: 72rem) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* =========================================================
   5. DIALOGS (menu mobile + exemplo de parecer)
   ========================================================= */
dialog { border: 0; padding: 0; color: var(--text); max-width: none; max-height: none; }
dialog::backdrop { background: rgb(22 30 14 / .6); backdrop-filter: blur(2px); }
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: 100dvh; width: min(22rem, 88vw);
  border-radius: var(--r-band) 0 0 var(--r-band); overflow-y: auto;
  display: none; flex-direction: column;
  background: var(--forest-950); color: var(--white);
  padding: calc(env(safe-area-inset-top, 0px) + var(--s-4)) max(var(--s-6), env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + var(--s-6)) var(--s-6);
}
.drawer[open] { display: flex; animation: drawer-in var(--dur-slow) var(--ease-out); }
.drawer[open]::backdrop { animation: fade-in var(--dur-slow) var(--ease-out); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-8); }
.drawer nav ul { list-style: none; display: flex; flex-direction: column; }
.drawer .brand-logo { height: 2rem; }
.drawer nav a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line-dark); text-decoration: none; font-size: var(--fs-md); font-weight: 500; color: var(--white); }
.drawer nav a:hover, .drawer nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold-300); }
.drawer .btn { margin-top: var(--s-8); --btn-bg: var(--gold-grad); --btn-fg: var(--forest-950); --btn-bg-hover: var(--gold-100); }
.drawer .btn--wa { margin-top: var(--s-3); --btn-bg: var(--whatsapp); --btn-fg: var(--whatsapp-ink); --btn-bg-hover: #3fe07c; }
.icon-btn {
  display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--r-pill);
  background: transparent; border: 1px solid var(--border); color: inherit; cursor: pointer; transition: background-color var(--dur-fast);
}
.drawer .icon-btn { border-color: var(--line-dark); }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

.modal {
  width: min(44rem, calc(100vw - 32px)); max-height: min(90dvh, 52rem);
  margin: auto; border-radius: var(--r-xl); background: var(--white); box-shadow: var(--shadow-2);
  overflow: auto; overscroll-behavior: contain;
}
.modal[open] { animation: modal-in var(--dur-slow) var(--ease-out); }
.modal-head { position: sticky; top: 0; background: var(--white); display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); padding: var(--s-6) var(--s-6) var(--s-4); border-bottom: 1px solid var(--line); }
.modal-body { padding: var(--s-6); display: grid; gap: var(--s-6); }
.modal-foot { padding: 0 var(--s-6) var(--s-6); display: flex; gap: var(--s-3); flex-wrap: wrap; }

@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

/* =========================================================
   6. HERO (Home)
   Banner novo, céu escuro, versão desktop e mobile (<picture>).
   Briefing 4.1: textos sem sombra.
   ========================================================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: min(100svh, 56rem);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + var(--s-8));
  border-radius: 0 0 var(--r-band) var(--r-band);
  background: #0b2a6b; /* cor do céu enquanto a imagem carrega */
}
.hero-media, .hero-media img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-media img { object-position: 50% 100%; }
/* Véu leve no topo para o menu e o texto (não é sombra no texto) */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(4 18 56 / .45) 0%, rgb(4 18 56 / .12) 45%, transparent 65%); }
/* Mobile/tablet (banner vertical): a bandeira e a ponte ocupam ~1/3
   inferior da imagem, então o texto precisa terminar acima disso. */
.hero-grid { display: grid; align-items: start; padding-bottom: max(62vw, 23rem); }
.hero-copy { display: flex; flex-direction: column; gap: var(--s-6); max-width: 40rem; min-width: 0; color: var(--white); }
.hero .eyebrow { color: var(--gold-100); }
.hero h1 { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.025em; color: var(--white); }
.hero h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: var(--fs-xl); font-weight: 500; line-height: var(--lh-snug); color: var(--white); max-width: 34rem; }
.hero .lede { font-size: var(--fs-md); color: var(--white); max-width: 34rem; }
.hero .btn--ghost { color: var(--white); background: rgb(255 255 255 / .08); }
.hero .btn--ghost:hover { background: rgb(255 255 255 / .18); }
.hero-note { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-sm); font-weight: 500; color: var(--white); }
.hero-note .icon { color: var(--gold-300); margin-top: 2px; }
.hero-micro { font-size: var(--fs-sm); color: rgb(255 255 255 / .85); max-width: 34rem; }
@media (min-width: 64rem) {
  .hero { min-height: max(60rem, min(100svh, 68rem)); }
  .hero::after { background: linear-gradient(90deg, rgb(4 18 56 / .4) 0%, rgb(4 18 56 / .15) 45%, transparent 65%); }
  .hero-media img { object-position: 60% 100%; }
  .hero-grid { padding-block: 0 clamp(10rem, 16vw, 15rem); }
  .hero-copy { gap: var(--s-5); }
}

/* Cabeçalho das páginas internas (Perguntas, Blog) */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + var(--s-12)) 0 var(--s-16);
  border-radius: 0 0 var(--r-band) var(--r-band);
  background: linear-gradient(180deg, #0b2a6b 0%, #133a86 55%, var(--forest-900) 100%);
  color: var(--white);
}
.page-hero .wrap { display: grid; gap: var(--s-4); }
.page-hero h1 { font-size: var(--fs-3xl); letter-spacing: -0.025em; max-width: 22ch; }
.page-hero p:not(.eyebrow) { font-size: var(--fs-md); color: rgb(255 255 255 / .88); max-width: 42rem; }
.page-hero .eyebrow { color: var(--gold-100); }
.page-hero .bridge-line { position: absolute; left: 0; right: 0; bottom: -2px; z-index: -1; width: 100%; height: auto; opacity: .28; pointer-events: none; fill: none; stroke: var(--gold-300); stroke-width: 1.5; }

/* =========================================================
   7. SEÇÕES DA HOME
   ========================================================= */

/* Números */
.stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8) var(--s-4); margin: 0; }
.stat { display: flex; flex-direction: column; gap: var(--s-1); text-align: center; padding-inline: var(--s-2); }
.stat dt { order: 2; font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-snug); }
.stat dd { order: 1; margin: 0; font-size: var(--fs-2xl); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--forest-900); }
@media (min-width: 48rem) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat + .stat { border-left: 1px solid var(--rule); }
}
.trust-line { display: flex; justify-content: center; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid color-mix(in srgb, var(--gold-300) 50%, transparent); font-size: var(--fs-sm); color: var(--text-muted); text-align: center; }
.trust-line .icon { color: var(--gold-700); margin-top: 2px; }

/* O que é maquila: passos */
.steps { list-style: none; display: grid; gap: var(--s-6); counter-reset: step; border-top: 1px solid color-mix(in srgb, var(--gold-300) 40%, transparent); padding-top: var(--s-8); }
.steps li { counter-increment: step; display: grid; gap: var(--s-2); align-content: start; }
.steps li::before { content: counter(step); font-size: var(--fs-3xl); font-weight: 700; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; line-height: 1; margin-bottom: var(--s-2); }
.steps h3 { font-size: var(--fs-md); }
.steps p { color: var(--text-muted); font-size: var(--fs-sm); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8); } }

.actors { margin-top: var(--s-12); position: relative; border: 1px solid color-mix(in srgb, var(--gold-300) 35%, transparent); border-radius: var(--r-xl); background: var(--forest-950); padding: var(--s-8) var(--s-6) var(--s-6); }
.actors-label { position: absolute; top: 0; left: var(--s-6); transform: translateY(-50%); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); background: var(--gold-grad); color: var(--forest-950); }
.actors dl { display: grid; gap: var(--s-6); margin: 0; }
.actors dt { font-weight: 700; }
.actors dd { margin: var(--s-1) 0 0; color: var(--text-muted); font-size: var(--fs-sm); }
@media (min-width: 48rem) {
  .actors dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .actors dl > div + div { border-left: 1px solid var(--border); padding-left: var(--s-6); }
}
.law-note { margin-top: var(--s-8); text-align: center; font-size: var(--fs-sm); color: var(--text-muted); }

/* Benefícios */
.benefits { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.benefit { container-type: inline-size; }
.benefit .card { height: 100%; display: flex; flex-direction: column; gap: var(--s-2); transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.benefit .card:hover { border-color: var(--gold-500); box-shadow: var(--shadow-2); }
.benefit-num { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--forest-900); font-variant-numeric: tabular-nums; }
.benefit-label { font-weight: 700; font-size: var(--fs-md); line-height: var(--lh-snug); }
.benefit-text { font-size: var(--fs-sm); color: var(--text-muted); }
.benefit-src { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid color-mix(in srgb, var(--gold-300) 60%, transparent); font-size: var(--fs-xs); color: var(--text-muted); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
@container (min-width: 22rem) { .benefit-num { font-size: 2.75rem; } }

/* Comparativo Brasil x Paraguai (briefing 4.4) */
.cmp-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-1); }
table.cmp { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.cmp thead th { border-top: 0; background: var(--paper); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
.cmp tbody th { font-weight: 700; width: 22%; color: var(--ink); }
.cmp td { color: var(--ink-muted); width: 26%; }
.cmp .mq { background: var(--gold-50); color: var(--ink); font-weight: 500; }
.cmp thead .mq { background: var(--forest-900); color: var(--gold-300); }
.cmp-src { margin: var(--s-4) auto 0; font-size: var(--fs-xs); color: var(--text-muted); max-width: 60rem; text-align: justify; }
@media (max-width: 47.99rem) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { border-top: 1px solid var(--line); padding: var(--s-4) var(--s-5); }
  .cmp tr:first-child { border-top: 0; }
  .cmp th, .cmp td { border: 0; padding: 0; }
  .cmp tbody th { width: auto; font-size: var(--fs-base); margin-bottom: var(--s-2); }
  .cmp td { width: auto; padding: var(--s-1) 0; }
  .cmp td::before { content: attr(data-c); display: block; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
  .cmp td.mq { padding: var(--s-2) var(--s-3); margin-top: var(--s-2); border-radius: var(--r-sm); }
  .cmp td.mq::before { color: var(--gold-700); }
}

/* Condição: serve / não serve */
.fit { display: grid; gap: var(--s-4); }
.fit .card { display: grid; gap: var(--s-4); align-content: start; }
.fit-title { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-lg); }
.fit-badge { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-pill); flex: none; }
.fit--yes .fit-badge { background: var(--success-bg); color: var(--success); }
.fit--no .fit-badge { background: var(--danger-bg); color: var(--danger); }
.fit ul { list-style: none; display: grid; gap: var(--s-3); }
.fit li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); color: var(--text-muted); }
.fit li .icon { margin-top: 3px; }
.fit--yes li .icon { color: var(--success); }
.fit--no li .icon { color: var(--danger); }
@media (min-width: 48rem) { .fit { grid-template-columns: 1fr 1fr; } }

/* Serviço principal (fundo verde): 5 etapas da maquila */
.steps--5 li h3 { font-size: var(--fs-base); line-height: var(--lh-snug); }
@media (min-width: 48rem) { .steps.steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); } }
@media (min-width: 64rem) { .steps.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.svc-actions { margin-top: var(--s-10); }

/* Sem maquila (fundo branco): 11 serviços avulsos */
.svc-others { display: grid; gap: var(--s-8); }
.svc-others { container-type: inline-size; }
.service-list { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
@container (min-width: 32rem) { .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service--wide { grid-column: span 2; } }
@container (min-width: 46rem) { .service-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-4); align-items: start; align-content: start;
  padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-out);
}
.service:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.service .icon { grid-row: span 2; width: 1.75rem; height: 1.75rem; color: var(--gold-700); }
.section--white .service { background: var(--paper); }
.on-dark .service .icon { color: var(--gold-300); }
.service h4 { font-size: var(--fs-base); line-height: var(--lh-snug); }
.service p { font-size: var(--fs-sm); color: var(--text-muted); }

/* Como funciona: 4 etapas */
.journey { list-style: none; display: grid; gap: var(--s-4); counter-reset: j; }
.journey li { counter-increment: j; position: relative; padding: var(--s-6); padding-top: var(--s-12); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold-300); display: flex; flex-direction: column; gap: var(--s-2); }
.journey li::before { content: "Etapa " counter(j); position: absolute; top: var(--s-5); left: var(--s-6); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); }
.journey h3 { font-size: var(--fs-md); }
.journey p { font-size: var(--fs-sm); color: var(--ink-muted); }
.journey .get { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.journey .get strong { display: block; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
@media (min-width: 40rem) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Oferta: Duas formas de começar
   Oculta na Home; abre com [data-show-produtos] (ver ethos.js).
   Sem JavaScript a seção aparece normalmente. */
.js .is-collapsible:not(.is-open) { display: none; }
.is-collapsible.is-open { animation: reveal var(--dur-slow) var(--ease-out); }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } }
#ofe-title:focus { outline: none; }
.offers { display: grid; gap: var(--s-6); }
.offer { container-type: inline-size; }
.offer .card { height: 100%; display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-8) var(--s-6); position: relative; border-radius: var(--r-xl); }
.offer--main .card { border: 1.5px solid var(--gold-300); }
.offer-flag { position: absolute; top: 0; left: var(--s-6); transform: translateY(-50%); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); background: var(--gold-grad); color: var(--forest-950); }
.offer-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-2) var(--s-4); }
.price { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; }
.price strong { font-size: var(--fs-xl); font-variant-numeric: tabular-nums; color: var(--gold-300); }
.offer-lede { color: var(--text-muted); }
.offer-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pill { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-xs); font-weight: 500; padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--text-muted); }
.pill .icon { width: 1rem; height: 1rem; color: var(--gold-300); }
.offer-cols { display: grid; gap: var(--s-4); }
.offer-cols h4 { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-2); }
.offer-cols ul { list-style: none; display: grid; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-muted); }
.offer-cols li { padding-left: var(--s-4); position: relative; }
.offer-cols li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 2px; background: var(--gold-300); }
.offer-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; }
.offer-credit { margin-top: var(--s-8); text-align: center; font-size: var(--fs-md); font-weight: 500; }
.offer-credit span { color: var(--gold-300); }
@container (min-width: 32rem) { .offer-cols { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 60rem) { .offers { grid-template-columns: 1fr 1fr; } }

/* Como pedir: estrutura do "Do que você precisa?" (briefing 4.3) */
.need { display: grid; gap: var(--s-4); align-items: stretch; }
.side { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-8) var(--s-6); border-radius: var(--r-xl); min-width: 0; }
.side--how { background: var(--paper); border: 1.5px solid var(--gold-300); }
.side--talk { background: var(--forest-950); color: var(--on-dark); border: 1px solid color-mix(in srgb, var(--gold-300) 45%, transparent); }
.side > .eyebrow { margin-bottom: calc(var(--s-3) * -1); }
.side--talk > .eyebrow { color: var(--gold-300); }
.side h3 { font-size: var(--fs-xl); }
.order-steps { list-style: none; display: grid; gap: var(--s-4); counter-reset: o; }
.order-steps li { counter-increment: o; display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-1) var(--s-3); }
.order-steps li::before { content: counter(o); grid-row: span 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--r-pill); background: var(--forest-900); color: var(--gold-300); font-weight: 700; font-variant-numeric: tabular-nums; }
.order-steps strong { font-weight: 700; }
.order-steps span { font-size: var(--fs-sm); color: var(--ink-muted); }
.rules { list-style: none; display: grid; gap: var(--s-3); font-size: var(--fs-sm); color: var(--ink-muted); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); }
.rules .icon { color: var(--olive-600); margin-top: 2px; }
.rules strong { color: var(--ink); }
.side--talk ul.topics { list-style: none; display: grid; gap: var(--s-2); font-size: var(--fs-sm); color: var(--on-dark-muted); }
.side--talk ul.topics li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2); }
.side--talk ul.topics .icon { color: var(--gold-300); margin-top: 2px; }
.wanum { margin-top: auto; font-size: var(--fs-md); font-weight: 700; font-variant-numeric: tabular-nums; }
.wanum small { display: block; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); }
@media (min-width: 60rem) { .need { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); } }

/* =========================================================
   8. FORMULÁRIO DE DIAGNÓSTICO (briefing 5)
   ========================================================= */
.order { display: grid; gap: var(--s-10); }
.order-aside { display: flex; flex-direction: column; gap: var(--s-4); }
.order-aside p:not(.eyebrow) { color: var(--text-muted); }
.order-summary { display: grid; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-lg); background: var(--paper); border-left: 3px solid var(--gold-300); font-size: var(--fs-sm); }
.order-summary strong { font-size: var(--fs-md); }
.order-summary span { color: var(--ink-muted); }
@media (min-width: 64rem) { .order { grid-template-columns: 1fr 1.7fr; align-items: start; } .order-aside { position: sticky; top: calc(var(--header-h-compact) + var(--fp-h, 0px) + var(--s-8)); } }
.order-help { font-size: var(--fs-sm); }
.order-help a { color: var(--olive-700); font-weight: 500; }

/* Grupos do formulário = etapas da barra de progresso */
.form-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s-5); scroll-margin-top: calc(var(--header-h-compact) + var(--fp-h, 0px) + var(--s-6)); }
.form-group + .form-group { padding-top: var(--s-6); border-top: 1px solid var(--line); }
.form-group legend { display: flex; align-items: center; gap: var(--s-3); padding: 0; margin-bottom: var(--s-5); font-size: var(--fs-md); font-weight: 700; color: var(--ink); }
.form-group legend span { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: var(--r-pill); background: var(--forest-900); color: var(--gold-300); font-size: var(--fs-sm); }
@media (min-width: 40rem) { .field--full { grid-column: 1 / -1; } }

/* Barra de progresso do formulário (briefing 02, item 5)
   Fica dentro do header fixo da página de pedido: sempre visível. */
[data-header="fixed"] { --fp-h: 3rem; }
.form-progress { background: color-mix(in srgb, var(--forest-950) 94%, transparent); border-top: 1px solid var(--line-dark); }
.form-progress-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: calc(var(--fp-h) - 4px); }
.fp-steps { list-style: none; display: flex; gap: var(--s-1) var(--s-5); }
.fp-steps li { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); cursor: pointer; border-radius: var(--r-sm); }
.fp-steps li:hover { color: var(--white); }
.fp-dot { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: var(--r-pill); border: 1.5px solid var(--line-dark); font-size: .6875rem; letter-spacing: 0; transition: background-color var(--dur-base), border-color var(--dur-base), color var(--dur-base); }
.fp-steps li[aria-current] { color: var(--white); }
.fp-steps li[aria-current] .fp-dot { border-color: var(--gold-300); color: var(--gold-300); }
.fp-steps li[data-done="true"] { color: var(--white); }
.fp-steps li[data-done="true"] .fp-dot { background: var(--gold-300); border-color: var(--gold-300); color: var(--forest-950); font-size: 0; }
.fp-steps li[data-done="true"] .fp-dot::before { content: "✓"; font-size: .75rem; font-weight: 700; }
.fp-count { font-size: var(--fs-xs); color: var(--on-dark-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fp-bar { height: 4px; background: var(--line-dark); overflow: hidden; }
.fp-bar span { display: block; height: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-out); }
@media (max-width: 39.99rem) { .fp-name { display: none; } .fp-steps li[aria-current] .fp-name { display: inline; } }
[data-header="fixed"] .page-hero { padding-top: calc(var(--header-h) + var(--fp-h) + env(safe-area-inset-top, 0px) + var(--s-10)); background: linear-gradient(180deg, var(--forest-950) 0%, var(--forest-800) 55%, var(--forest-700) 100%); }
:root:has([data-header="fixed"]) { scroll-padding-top: calc(var(--header-h-compact) + 3rem); }
.page-back { display: inline-flex; align-items: center; gap: var(--s-2); width: fit-content; font-size: var(--fs-sm); font-weight: 500; color: rgb(255 255 255 / .85); text-decoration: none; }
.page-back:hover { color: var(--white); }
.page-back .icon { transform: rotate(180deg); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-1); padding: var(--s-6); }
@media (min-width: 48rem) { .form-card { padding: var(--s-8); } }
.form { display: grid; gap: var(--s-5); }
.grid-2, .form-rows { display: grid; gap: var(--s-5); }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); min-width: 0; align-content: start; }
.field > label { font-weight: 500; font-size: var(--fs-sm); }
.field .req { color: var(--danger); }
.field .opt { font-weight: 400; color: var(--ink-muted); }
.help { font-size: var(--fs-xs); color: var(--ink-muted); }
.help--tip { display: flex; gap: var(--s-2); align-items: flex-start; color: var(--olive-700); font-weight: 500; }
.help--tip .icon { width: 1rem; height: 1rem; margin-top: 1px; }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: var(--s-3) var(--s-4);
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--white); color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.select { appearance: none; padding-right: var(--s-10); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5340' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--s-4) center; background-size: 1rem; }
.select:invalid { color: var(--ink-muted); }
.select option { color: var(--ink); }
.textarea { min-height: 7rem; resize: vertical; line-height: var(--lh-body); }
.input::placeholder, .textarea::placeholder { color: #8a917c; }
.input:hover, .select:hover, .textarea:hover { border-color: #a9b096; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--olive-600); box-shadow: 0 0 0 4px color-mix(in srgb, var(--olive-600) 18%, transparent); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus, .select[aria-invalid="true"]:focus, .textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.error-msg { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-sm); color: var(--danger); font-weight: 500; }
.error-msg:empty { display: none; }
.error-msg::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 1.125rem; height: 1.125rem; border-radius: var(--r-pill); background: var(--danger); color: var(--white); font-size: .75rem; margin-top: 2px; }
.form-foot { display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.form-foot .btn { width: 100%; }
.form-legal { font-size: var(--fs-xs); color: var(--ink-muted); text-align: center; }
.save-state { font-size: var(--fs-xs); color: var(--ink-muted); text-align: center; min-height: 1.2em; }
@media (min-width: 40rem) { .form-foot .btn { width: auto; justify-self: start; } .form-legal, .save-state { text-align: left; } }

.alert { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-md); font-size: var(--fs-sm); }
.alert--error { background: var(--danger-bg); color: var(--danger); }
.alert--info { background: var(--paper); color: var(--ink-muted); }
.alert strong { display: block; }

/* Resultado do envio */
.result { display: grid; gap: var(--s-5); }
.result-badge { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm); width: fit-content; background: var(--success-bg); color: var(--success); }
.result-badge::before { content: "✓"; }
.result-badge[data-state="pending"] { background: var(--warn-bg); color: var(--warn-ink); }
.result-badge[data-state="pending"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result p { color: var(--ink-muted); }
.deadline { padding: var(--s-5); border-radius: var(--r-xl); background: var(--forest-900); color: var(--on-dark); display: grid; gap: var(--s-1); }
.deadline span { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); }
.deadline strong { font-size: var(--fs-lg); }
.deadline small { color: var(--on-dark-muted); }

/* Quem é a ETHOS */
.about { display: grid; gap: var(--s-10); align-items: start; }
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 26rem; border-radius: var(--r-xl); overflow: hidden; background: var(--forest-900); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 20%; }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-6) var(--s-5) var(--s-4); background: linear-gradient(transparent, rgb(22 30 14 / .88)); color: var(--on-dark); font-size: var(--fs-sm); }
.portrait figcaption strong { display: block; font-size: var(--fs-md); }
.about-copy { display: grid; gap: var(--s-5); min-width: 0; }
.about-copy > p:not(.eyebrow) { font-size: var(--fs-md); color: var(--ink-muted); max-width: 42rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tags li { font-size: var(--fs-xs); font-weight: 500; padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--gold-300); color: var(--gold-700); background: var(--gold-50); }
.lead-who { display: grid; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.lead-who h3 { font-size: var(--fs-lg); }
.lead-who > p { color: var(--ink-muted); font-size: var(--fs-sm); max-width: 42rem; }
.creds { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.creds li { padding: var(--s-4); border-radius: var(--r-md); background: var(--paper); border-left: 2px solid var(--gold-300); font-size: var(--fs-sm); color: var(--ink-muted); }
.creds strong { display: block; color: var(--ink); }
.quote { margin: 0; padding-left: var(--s-5); border-left: 3px solid var(--gold-300); font-size: var(--fs-lg); line-height: var(--lh-snug); font-weight: 500; color: var(--ink); }
.quote cite { display: block; margin-top: var(--s-2); font-size: var(--fs-sm); font-style: normal; font-weight: 400; color: var(--ink-muted); }
.quote cite span { display: block; }
@media (min-width: 60rem) { .about { grid-template-columns: 22rem 1fr; } .portrait { position: sticky; top: calc(var(--header-h-compact) + var(--s-8)); } }

/* Casos reais */
.cases { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.case { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-6); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.case:hover { border-color: var(--gold-500); box-shadow: var(--shadow-2); }
.case .eyebrow { color: var(--gold-700); }
.case h3 { font-size: var(--fs-md); line-height: var(--lh-snug); }
.case p { font-size: var(--fs-sm); color: var(--ink-muted); }
.case--next { justify-content: space-between; gap: var(--s-6); background: var(--forest-950); border-color: color-mix(in srgb, var(--gold-300) 45%, transparent); color: var(--on-dark); --btn-bg: var(--gold-grad); --btn-fg: var(--forest-950); --btn-bg-hover: var(--gold-100); }
.case--next h3 { font-size: var(--fs-xl); }
.case--next .btn { align-self: flex-start; }

/* Lei */
.law { display: grid; gap: var(--s-8); align-items: start; }
.law-seal { display: grid; gap: var(--s-2); padding: var(--s-6); border-radius: var(--r-xl); border: 1px solid color-mix(in srgb, var(--gold-300) 45%, transparent); background: var(--forest-950); }
.law-seal strong { font-size: var(--fs-xl); }
.law-seal span { color: var(--text-muted); font-size: var(--fs-sm); }
.law-list { list-style: none; display: grid; gap: var(--s-4); }
.law-list li { display: grid; grid-template-columns: 5rem 1fr; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid color-mix(in srgb, var(--gold-300) 30%, transparent); }
.law-list .yr { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.law-list p { color: var(--text-muted); font-size: var(--fs-sm); }
.law-list strong { color: var(--text); display: block; font-size: var(--fs-base); }
@media (min-width: 60rem) { .law { grid-template-columns: 1fr 1.6fr; } }

/* CTA final */
.final { text-align: center; }
.section.on-dark.final { border-radius: var(--r-band) var(--r-band) 0 0; background: linear-gradient(180deg, var(--forest-700) 0%, var(--forest-900) 100%); }
.final .wrap { display: grid; justify-items: center; gap: var(--s-6); }
.final .h2 { max-width: 24ch; }
.final p { color: var(--text-muted); font-size: var(--fs-md); max-width: 36rem; }
.final .actions { justify-content: center; }
.final-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-8); font-size: var(--fs-sm); color: var(--text-muted); }
.final-contact strong { color: var(--text); font-weight: 500; }

/* Rodapé */
.footer { background: linear-gradient(180deg, var(--forest-900) 0%, var(--forest-950) 100%); color: var(--on-dark-muted); font-size: var(--fs-sm); padding-block: var(--s-16) calc(var(--s-24) + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; gap: var(--s-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-brand { display: grid; gap: var(--s-3); align-content: start; }
.footer-brand .slogan { color: var(--gold-300); font-weight: 500; font-size: var(--fs-md); }
.footer h2 { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); margin-bottom: var(--s-3); }
.footer ul { list-style: none; display: grid; gap: var(--s-2); }
.footer a { text-underline-offset: 3px; color: var(--on-dark); }
.footer a:hover { color: var(--white); }
.footer .icon { color: var(--gold-300); }
.footer-social { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.footer-social .btn { --btn-bg: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.contact-row { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; overflow-wrap: anywhere; }
.copy-btn { min-height: 32px; padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark); font-size: var(--fs-xs); font-weight: 500; cursor: pointer; transition: background-color var(--dur-fast); position: relative; }
.copy-btn::before { content: ""; position: absolute; inset: -6px; }
.copy-btn:hover { background: var(--forest-800); }
.footer-legal { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid color-mix(in srgb, var(--gold-300) 30%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-xs); }

/* Botão de WhatsApp flutuante (briefing 4.5)
   Briefing 02: no centro da altura da tela, longe da etiqueta
   "Powered by Netlify" do canto inferior. */
.wa-float {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right, 0px));
  top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 56px; min-width: 56px; padding: 0 var(--s-4);
  border-radius: var(--r-pill); background: var(--whatsapp); color: var(--whatsapp-ink);
  font-weight: 700; font-size: var(--fs-sm); text-decoration: none;
  box-shadow: 0 10px 28px -8px rgb(11 61 31 / .55), 0 2px 6px rgb(0 0 0 / .15);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.wa-float:hover { transform: translateY(-50%) scale(1.04); box-shadow: 0 14px 32px -8px rgb(11 61 31 / .6), 0 2px 6px rgb(0 0 0 / .15); }
.wa-float .icon { width: 28px; height: 28px; }
/* No meio da tela o botão fica sobre o conteúdo: só o ícone,
   e o texto abre ao passar o mouse ou focar (desktop). */
.wa-float { padding: 0 14px; gap: 0; }
.wa-float-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width var(--dur-slow) var(--ease-out), margin var(--dur-slow) var(--ease-out); }
@media (hover: hover) and (min-width: 48rem) {
  .wa-float:hover, .wa-float:focus-visible { padding-right: var(--s-5); }
  .wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { max-width: 8rem; margin-left: var(--s-2); }
}

/* Toast */
.toast-region { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--s-6)); transform: translateX(-50%); z-index: 70; display: grid; gap: var(--s-2); width: min(26rem, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--forest-950); color: var(--on-dark); padding: var(--s-3) var(--s-5); border-radius: var(--r-md); box-shadow: var(--shadow-2); font-size: var(--fs-sm); font-weight: 500; animation: toast-in var(--dur-slow) var(--ease-out); }
.toast[data-type="error"] { background: var(--danger); color: var(--white); }
.toast[data-leaving] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-base), transform var(--dur-base); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* Parecer (modal) */
.paper-doc { display: grid; gap: var(--s-5); font-size: var(--fs-sm); }
.paper-doc section { display: grid; gap: var(--s-2); }
.paper-doc h3 { font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--olive-600); }
.paper-doc p, .paper-doc li { color: var(--ink-muted); }
.paper-doc ul { padding-left: var(--s-5); display: grid; gap: var(--s-1); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 28rem; font-size: var(--fs-sm); }
.table-wrap th, .table-wrap td { padding: var(--s-2) var(--s-3); text-align: left; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--paper); font-weight: 500; }
.table-wrap td.num { font-variant-numeric: tabular-nums; text-align: right; }
.verdict { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--success-bg); color: var(--success); font-weight: 700; }
.verdict small { display: block; font-weight: 500; color: var(--ink-muted); font-size: var(--fs-xs); }

/* =========================================================
   9. PERGUNTAS
   ========================================================= */
.faq-layout { display: grid; gap: var(--s-10); }
.faq-nav { display: grid; gap: var(--s-4); align-content: start; }
.faq-search { position: relative; }
.faq-search .icon { position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.faq-search .input { padding-left: var(--s-12); }
.faq-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.faq-chips a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: var(--s-1) var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.faq-chips a:hover { border-color: var(--gold-500); }
.faq-chips small { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.faq-group { display: grid; gap: var(--s-4); scroll-margin-top: calc(var(--header-h-compact) + var(--s-4)); }
.faq-group + .faq-group { margin-top: var(--s-12); }
.faq-group h2 { font-size: var(--fs-xl); }
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 3.5rem; padding-block: var(--s-4); font-weight: 500; font-size: var(--fs-md); line-height: var(--lh-snug);
  transition: color var(--dur-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-700); }
.faq-item summary .icon { flex: none; transition: transform var(--dur-base) var(--ease-out); color: var(--gold-700); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .answer { padding-bottom: var(--s-6); color: var(--ink-muted); max-width: 46rem; display: grid; gap: var(--s-3); }
.faq-item .answer a { color: var(--olive-700); font-weight: 500; }
.faq-item[open] .answer { animation: fade-down var(--dur-base) var(--ease-out); }
.faq-quote { margin: 0; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--gold-300); background: var(--gold-50); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink); }
.faq-quote cite { display: block; margin-top: var(--s-2); font-style: normal; font-size: var(--fs-sm); color: var(--ink-muted); }
.faq-empty { padding: var(--s-6); border-radius: var(--r-lg); border: 1px dashed var(--line); background: var(--white); color: var(--ink-muted); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-4px); } }
@media (min-width: 60rem) { .faq-layout { grid-template-columns: 18rem 1fr; } .faq-nav { position: sticky; top: calc(var(--header-h-compact) + var(--s-6)); } .faq-chips { flex-direction: column; } .faq-chips a { justify-content: space-between; width: 100%; } }

/* =========================================================
   10. BLOG
   ========================================================= */
.posts { list-style: none; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.post { display: flex; flex-direction: column; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: border-color var(--dur-base), box-shadow var(--dur-base), transform var(--dur-base) var(--ease-out); }
.post:hover { border-color: var(--gold-500); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.post-cover { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--forest-900); }
.post-body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-6); flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; font-size: var(--fs-xs); color: var(--ink-muted); }
.post-meta .eyebrow { color: var(--gold-700); }
.post h2 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
.post h2 a { text-decoration: none; }
.post h2 a::after { content: ""; position: absolute; inset: 0; }
.post { position: relative; }
.post p { font-size: var(--fs-sm); color: var(--ink-muted); }
.post-more { margin-top: auto; padding-top: var(--s-3); font-size: var(--fs-sm); font-weight: 500; color: var(--olive-700); display: inline-flex; align-items: center; gap: var(--s-2); }
.post--soon { border-style: dashed; background: transparent; }
.post--soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.post--soon .post-more { color: var(--ink-muted); }
.blog-filters { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-8); }
.blog-filters button { min-height: 40px; padding: var(--s-1) var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; }
.blog-filters button[aria-pressed="true"] { background: var(--forest-900); border-color: var(--forest-900); color: var(--white); }
.blog-state { padding: var(--s-8); border-radius: var(--r-xl); border: 1px dashed var(--line); background: var(--white); color: var(--ink-muted); display: grid; gap: var(--s-3); justify-items: start; }
.skeleton { border-radius: var(--r-xl); background: linear-gradient(90deg, var(--paper) 25%, #e8eadf 50%, var(--paper) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; min-height: 16rem; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.article { max-width: 46rem; margin-inline: auto; }
.article-back { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-8); font-size: var(--fs-sm); font-weight: 500; color: var(--olive-700); text-decoration: none; }
.article-back .icon { transform: rotate(180deg); }
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-xl); margin-bottom: var(--s-8); }
.prose { font-size: var(--fs-md); line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s-10); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--s-8); }
.prose ul, .prose ol { padding-left: var(--s-6); display: grid; gap: var(--s-2); }
.prose a { color: var(--olive-700); font-weight: 500; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 0; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--gold-300); background: var(--gold-50); border-radius: 0 var(--r-md) var(--r-md) 0; }
.prose img { border-radius: var(--r-lg); }
.article-cta { margin-top: var(--s-12); }

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
