/* Espiral v2: base, tipografia, botões, cabeçalho e rodapé.
   Paleta: preto, branco e o amarelo nos detalhes. Fonte única: Manrope. */
/* Breul Grotesk: a fonte do logo, usada nos momentos de destaque.
   É uma fonte paga (TypeSketchbook). Com a licença para web, coloque o
   arquivo em assets/fonts/breul/ e acrescente a linha url(...) abaixo.
   Sem o arquivo, quem tem a fonte instalada vê a Breul; os demais veem a
   Manrope em peso 800. */
@font-face {
  font-family: "Breul Grotesk";
  src: local("Breul Grotesk A Bold"), local("BreulGroteskA-Bold"), local("Breul Grotesk Bold"), local("BreulGrotesk-Bold");
  /* , url("../assets/fonts/breul/BreulGroteskA-Bold.woff2") format("woff2") */
  font-weight: 700 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope/Manrope-VF.woff2") format("woff2-variations"),
       url("../assets/fonts/manrope/Manrope-VF.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  /* Cor de destaque: oliva. --olive é a cor da marca (#808000); no fundo
     preto usa-se um tom um pouco mais claro dela (--sun) para ter leitura. */
  --olive: #808000;
  --sun: #A6A628;
  --on-sun: var(--paper);
  /* Variações por transparência sobre preto ou branco (sem cinzas próprios) */
  --on-dark: color-mix(in srgb, var(--paper) 72%, var(--ink));
  --on-dark-soft: color-mix(in srgb, var(--paper) 52%, var(--ink));
  --line-dark: color-mix(in srgb, var(--paper) 12%, transparent);
  --glass: color-mix(in srgb, color-mix(in srgb, var(--paper) 6%, var(--ink)) 68%, transparent);
  --glass-2: color-mix(in srgb, var(--paper) 8%, var(--ink));
  --on-light: color-mix(in srgb, var(--ink) 74%, var(--paper));
  --line-light: color-mix(in srgb, var(--ink) 12%, transparent);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: "Breul Grotesk", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  /* Nomes usados pelos módulos que vieram do site anterior */
  --warm: var(--paper);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --display: var(--font);
  --line: var(--line-dark);
  --ink-soft: var(--on-dark-soft);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
.has-motion { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--sun); color: var(--on-sun); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--sun); color: var(--on-sun); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px color-mix(in srgb, var(--sun) 70%, transparent); }
.dot--ink { background: currentColor; box-shadow: none; opacity: 0.35; }

/* Rótulos numerados: "01  O problema" */
.label { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark); }
.label span { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun) 70%, transparent); color: var(--sun); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); }

.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--on-dark); max-width: 56ch; }
.link { color: inherit; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 700; }

/* Botões em pílula */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.pill:hover { transform: translateY(-1px); }
.pill--sun { background: var(--sun); color: var(--on-sun); box-shadow: 0 10px 40px -12px color-mix(in srgb, var(--sun) 80%, transparent); }
.pill--sun:hover { box-shadow: 0 14px 50px -10px var(--sun); }
.pill--light { background: var(--paper); color: var(--ink); }
.pill--ghost { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper) 30%, transparent); color: var(--paper); }
.pill--ghost:hover { box-shadow: inset 0 0 0 1px var(--paper); background: color-mix(in srgb, var(--paper) 6%, transparent); }

.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--paper); text-decoration: none; transition: background 0.3s var(--ease); }
.icon-btn:hover { background: color-mix(in srgb, var(--paper) 10%, transparent); }

/* Cabeçalho */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s; }
.top.is-scrolled { background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line-dark); }
.top__bar { display: flex; align-items: center; gap: 28px; max-width: calc(var(--max) + var(--gutter) * 2); height: 76px; margin: 0 auto; padding: 0 var(--gutter); }
.top__logo { flex: none; line-height: 0; }
.top__logo img { width: 92px; height: auto; }
.top__nav { display: flex; gap: 4px; margin-right: auto; }
.top__nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--on-dark); transition: color 0.25s, background 0.25s; }
.top__nav a:hover { color: var(--paper); background: color-mix(in srgb, var(--paper) 8%, transparent); }
.top__nav a.is-current { color: var(--paper); }
.top__nav-cta { display: none; }
.top__actions { display: flex; align-items: center; gap: 6px; }
.top__cta { min-height: 40px; padding: 0 18px; font-size: 14px; }
.top__menu { display: none; }
.burger { position: relative; width: 18px; height: 10px; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 8px; }
[aria-expanded="true"] .burger i:first-child { top: 4px; transform: rotate(45deg); }
[aria-expanded="true"] .burger i:last-child { top: 4px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .top__menu { display: grid; }
  .top__nav {
    position: fixed; inset: 76px 0 auto; margin: 0; padding: 12px var(--gutter) 24px;
    flex-direction: column; gap: 2px;
    background: color-mix(in srgb, var(--ink) 96%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line-dark), 0 30px 60px -20px rgb(0 0 0 / 0.8);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  /* Ao abrir, fica visível na hora (o fade continua no opacity): assim o foco
     pelo teclado já pode ir para o primeiro link. Ao fechar, a regra acima
     mantém o menu visível até o fade terminar. */
  .top__nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s; }
  .top__nav a { padding: 14px 4px; border-radius: 0; font-size: 20px; font-weight: 700; color: var(--paper); border-bottom: 1px solid var(--line-dark); }
  .top__nav a:hover { background: none; }
  .top__nav .top__nav-cta { display: block; margin-top: 16px; padding: 14px 20px; border: 0; border-radius: 999px; background: var(--sun); color: var(--on-sun); text-align: center; font-size: 16px; }
  .top.menu-open { background: var(--ink); }
}
@media (max-width: 560px) {
  .top__cta { display: none; }
  .top__bar { height: 64px; gap: 12px; }
  .top__nav { inset: 64px 0 auto; }
}

/* Rodapé */
.foot { padding: 72px 0 32px; border-top: 1px solid var(--line-dark); background: var(--ink); }
.foot__grid { display: grid; grid-template-columns: 2fr repeat(2, 1fr); gap: 40px; }
.foot__brand { display: grid; gap: 16px; align-content: start; }
.foot__brand img { width: 150px; }
.foot__brand p { max-width: 30ch; color: var(--on-dark-soft); font-size: 15px; }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__col p { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); }
.foot__col a { width: fit-content; font-size: 15px; text-decoration: none; color: var(--on-dark); transition: color 0.25s; }
.foot__col a:hover { color: var(--sun); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-soft); }
.foot__base a { text-decoration: none; }
.foot__base a:hover { color: var(--paper); }
@media (max-width: 860px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* Voltar ao topo */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.6);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--sun); }

/* Entrada suave dos blocos */
.has-motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.has-motion .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.to-top.is-on.is-away { opacity: 0; visibility: hidden; transform: translateY(10px); }

/* Cabeçalho sobre o trecho branco do topo (classe posta por js/ui.js) */
.top.is-light { color: var(--ink); }
.top.is-light .top__nav a { color: color-mix(in srgb, var(--ink) 72%, var(--paper)); }
.top.is-light .top__nav a:hover, .top.is-light .top__nav a.is-current { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.top.is-light .top__logo .logo, .top.is-light .icon-btn { color: var(--ink); }
.top.is-light .icon-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.top.is-light .top__cta { background: var(--ink); color: var(--paper); }
.top.is-light.is-scrolled { background: color-mix(in srgb, var(--paper) 90%, transparent); box-shadow: 0 1px 0 var(--line-light); }
.top.is-light.menu-open { background: var(--ink); color: var(--paper); }
.top.is-light.menu-open .top__logo .logo, .top.is-light.menu-open .icon-btn { color: var(--paper); }
@media (max-width: 1023px) { .top.is-light .top__nav a { color: var(--paper); } .top.is-light .top__nav .top__nav-cta { color: var(--ink); } }
.icon-btn--wa svg { width: 21px; height: 21px; }

/* No branco, o destaque é o oliva da marca */
.hero, .sec--light, .stance--light, .top.is-light, .demo, .pfeat { --sun: var(--olive); }
.pfeat { --sun: #A6A628; }
