/* =========================================================
   Baggio Licitações — LP de aquisição (v2)
   ========================================================= */
:root {
  --red: #e11f26;
  --red-dark: #b5151b;
  --black: #0a0a0a;
  --ink: #111111;
  --grey: #6b6b6b;
  --grey-2: #a5a5a5;
  --bg: #f6f6f4;
  --bg-2: #ebebe8;
  --white: #ffffff;
  --line: rgba(0,0,0,0.12);
  --line-dark: rgba(255,255,255,0.14);

  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 1440px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.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; }

/* ---------- Type ---------- */
.t-display {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-size: clamp(3.1rem, 7.4vw, 7.6rem);
  text-wrap: balance;
}
.t-h2 {
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-size: clamp(2.5rem, 5.6vw, 5.5rem);
  text-wrap: balance;
}
.t-h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}
.t-lead { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.4; letter-spacing: -0.01em; }
.t-small { font-size: 0.9rem; }
.t-mono-label { font-size: 0.8rem; font-weight: 500; color: var(--grey); letter-spacing: 0.01em; }
.muted { color: var(--grey); }
.dark .muted { color: rgba(255,255,255,0.6); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(5rem, 11vw, 10rem); }
.dark { background: var(--black); color: #fff; }
.red { background: var(--red); color: #fff; }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 960px) {
  .grid-12 { grid-template-columns: repeat(12, 1fr); }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-4 { grid-column: span 4; }
  .col-8 { grid-column: span 8; }
  .col-start-7 { grid-column: 7 / -1; }
  .col-start-6 { grid-column: 6 / -1; }
  .sticky { position: sticky; top: 7rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  height: 3.5rem; padding-inline: 1.6rem;
  border-radius: 999px;
  font-weight: 500; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.5s var(--ease), background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.5s var(--ease);
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(0,0,0,0.5); }
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 130%; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--fill, rgba(0,0,0,0.08)) 0%, var(--fill, rgba(0,0,0,0.08)) 77%, transparent 100%);
  transform: translateX(-102%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .btn::before { transition: none; } }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary { --fill: #b8141a; }
.btn--black { background: var(--black); color: #fff; }
.btn--black { --fill: #2c2c2c; }
.btn--white { background: #fff; color: var(--black); }
.btn--white { --fill: #e6e6e6; }
.btn--outline { background: transparent; color: currentColor; border: 1.5px solid currentColor; }
.btn--outline { --fill: rgba(255,255,255,0.14); }
.btn--lg { height: 4rem; padding-inline: 2rem; font-size: 1.1rem; }
.btn .arrow { width: 1.1rem; height: 1.1rem; transition: transform 0.5s var(--ease); position: relative; z-index: 1; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  padding-block: 1.1rem;
  color: #fff;
  transition: background-color 0.4s, color 0.4s, padding 0.4s, box-shadow 0.4s;
}
.header:not(.is-scrolled)::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150%;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0) 100%);
  pointer-events: none; z-index: -1;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header .logo img { height: 30px; width: auto; }
.logo__neg { display: none; }
.header:not(.is-light) .logo__pos { display: none; }
.header:not(.is-light) .logo__neg { display: block; }
.header.is-light { color: var(--ink); }
.header.is-scrolled { background: rgba(246,246,244,0.85); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); color: var(--ink); padding-block: 0.75rem; }
.header.is-scrolled .logo__pos { display: block; }
.header.is-scrolled .logo__neg { display: none; }
.header.is-scrolled.is-dark { background: rgba(10,10,10,0.75); color: #fff; }
.header.is-scrolled.is-dark .logo__pos { display: none; }
.header.is-scrolled.is-dark .logo__neg { display: block; }
.header__nav { display: none; gap: 2rem; font-size: 0.95rem; font-weight: 500; }
.header__nav a { text-decoration: none; opacity: 0.8; transition: opacity 0.3s; }
.header__nav a:hover { opacity: 1; }
@media (min-width: 960px) { .header__nav { display: flex; } }
.header .btn { height: 2.75rem; padding-inline: 1.2rem; font-size: 0.92rem; }
.header:not(.is-scrolled):not(.is-light) .btn--primary { background: #fff; color: var(--black); }
.header:not(.is-scrolled):not(.is-light) .btn--primary { --fill: #e6e6e6; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--black); display: flex; flex-direction: column; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 35%; transform: scale(1.06); will-change: transform; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0) 65%),
    rgba(0,0,0,0.3);
}
.hero__content { position: relative; z-index: 1; display: flex; align-items: flex-end; min-height: 100svh; padding-top: 7rem; padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.hero__copy { max-width: 34rem; text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.hero__kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.85); margin-bottom: 1.1rem; }
.hero__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero__title { font-weight: 600; letter-spacing: -0.045em; line-height: 0.96; }
.hero__big { font-size: clamp(2.5rem, 4.4vw, 4.4rem); display: block; }
.hero__tag { display: block; margin-top: 0.55em; font-size: clamp(1.35rem, 2.1vw, 2rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: rgba(255,255,255,0.92); }
.hero__title .line { display: block; overflow: hidden; padding: 0.08em 0.1em 0.16em 0; margin: -0.08em 0 -0.16em 0; }
.hero__title .line > span { display: block; will-change: transform; }
.hero__sub { margin-top: 1.25rem; max-width: 30em; color: rgba(255,255,255,0.78); font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.5; }
.hero__sub strong { color: #fff; font-weight: 600; }
.hero__proof { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.2); display: flex; flex-wrap: wrap; gap: 1rem 2.75rem; }
.hero__proof li { display: grid; gap: 0.25rem; }
.hero__proof strong { font-size: clamp(2rem, 2.8vw, 2.7rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero__proof li > span { font-size: 0.9rem; color: rgba(255,255,255,0.72); }
.hero__proof strong span { font-size: inherit; color: inherit; }

/* Captura de contato no hero (etapa 0 do diagnóstico) */
.contato { margin-top: 1.75rem; display: grid; gap: 0.6rem; }
.contato__title { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.015em; margin-bottom: 0.2rem; }
.contato__fields { display: grid; gap: 0.6rem; }
@media (min-width: 560px) { .contato__fields { grid-template-columns: 1fr 1fr; } }
.contato__field { position: relative; }
.contato__field input {
  width: 100%; height: 3.5rem; padding: 0 1.1rem;
  border: 1.5px solid rgba(255,255,255,0.18); border-radius: 999px;
  font: inherit; font-size: 1rem; background: rgba(255,255,255,0.1); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.contato__field input::placeholder { color: rgba(255,255,255,0.6); }
.contato__field input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,0.16); box-shadow: 0 0 0 4px rgba(255,255,255,0.12); }
.contato__field.is-invalid input { border-color: var(--red); }
.contato__field .err { display: none; color: #ff9b9b; font-size: 0.8rem; margin: 0.3rem 0 0 1.1rem; }
.contato__field.is-invalid .err { display: block; }
.contato .btn { width: 100%; height: 3.6rem; }
.contato__note { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; padding-block: 1.1rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.marquee__track { display: inline-flex; animation: marquee 60s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; font-size: 0.95rem; font-weight: 500; color: var(--grey); }
.marquee span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Perdas ---------- */
.perdas__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.perdas__head .t-lead { margin-top: 1.5rem; max-width: 30em; }
.perdas__list { border-top: 1px solid var(--ink); }
.perdas__item {
  display: grid; gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) { .perdas__item { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; } }
.perdas__item h3 { font-size: clamp(1.6rem, 3.2vw, 3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.perdas__item h3 em { font-style: normal; color: var(--red); }
.perdas__item p { color: var(--grey); max-width: 36em; font-size: 1.05rem; }
  margin-top: clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden; border-radius: 12px;
  aspect-ratio: 21 / 9;
}
@media (max-width: 700px) {   position: absolute; left: 1.5rem; bottom: 1.5rem; right: 1.5rem;
  color: #fff; font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25;
  max-width: 28em; text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* ---------- Método (grid full-bleed de cards iguais) ---------- */
.metodo { padding-bottom: 0; }
.metodo__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.etapas { display: grid; grid-template-columns: 1fr; gap: 0; width: 100%; }
@media (min-width: 640px) { .etapas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .etapas { grid-template-columns: repeat(3, 1fr); } }
.etapa {
  position: relative; overflow: hidden; background: #1a1a1a; isolation: isolate;
  aspect-ratio: 4 / 3.2; display: flex; align-items: flex-end;
}
@media (max-width: 639px) { .etapa { aspect-ratio: 4 / 3.6; } }
.etapa__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transition: transform 1.3s var(--ease); z-index: -1;
}
.etapa:hover .etapa__bg { transform: scale(1.05); }
.etapa::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(32deg, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.78) 28%, rgba(0,0,0,0.35) 52%, rgba(0,0,0,0.05) 72%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
}
.etapa__body { position: relative; z-index: 1; padding: clamp(1.5rem, 2.6vw, 2.5rem); max-width: 30em; }
.etapa__n {
  display: block; margin-bottom: 0.6rem;
  font-size: clamp(3.2rem, 4.6vw, 4.6rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.85; color: #fff;
}
.etapa__t { font-size: clamp(1.5rem, 2vw, 1.9rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.etapa__d { margin-top: 0.6rem; color: rgba(255,255,255,0.78); font-size: 0.95rem; line-height: 1.45; max-width: 28em; }
.etapa__d strong { color: #fff; font-weight: 500; }
.etapa--cta { background: var(--red); align-items: center; }
.etapa--cta::after { display: none; }
.etapa--cta .etapa__t { font-size: clamp(1.6rem, 2.3vw, 2.2rem); }
.etapa--cta .etapa__d { color: rgba(255,255,255,0.85); }
.etapa--cta .btn { margin-top: 1.25rem; }

/* ---------- O que a Baggio faz ---------- */
.servicos__you { margin-top: 2rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--red); background: #fff; border-radius: 0 12px 12px 0; font-size: 1.05rem; line-height: 1.5; color: var(--grey); max-width: 26em; }
.servicos__you strong { color: var(--ink); font-weight: 600; }
.servicos__list { border-top: 1px solid var(--ink); }
.servicos__list li {
  display: grid; gap: 0.4rem; padding: 1.4rem 0.75rem; margin-inline: -0.75rem; border-bottom: 1px solid var(--line); border-radius: 10px;
  transition: transform 0.6s var(--ease), background-color 0.4s;
}
.servicos__list li { grid-template-columns: auto 1fr; column-gap: 1rem; }
.servicos__list li p { grid-column: 2; }
@media (min-width: 700px) { .servicos__list li { grid-template-columns: auto 14rem 1fr; gap: 0.4rem 1.5rem; align-items: start; } .servicos__list li p { grid-column: 3; grid-row: 1; } }
.servicos__icon { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: none; color: var(--ink); margin-top: 0.1rem; }
.servicos__icon svg { width: 1.5rem; height: 1.5rem; }
.servicos__list li:hover { transform: translateX(6px); background: rgba(0,0,0,0.03); }
.servicos__list h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.servicos__list h3 { align-self: center; }
.servicos__list p { color: var(--grey); font-size: 1rem; line-height: 1.5; max-width: 34em; }

/* ---------- Resultados: depoimentos ---------- */
.depo { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .depo { grid-template-columns: 1fr 1fr; gap: 1.5rem; } .depo__card--feature { grid-column: 1 / -1; } }
.depo__card {
  margin: 0; padding: clamp(1.75rem, 3vw, 2.75rem);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 22px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem; position: relative; overflow: hidden;
  transition: transform 0.6s var(--ease), background-color 0.4s, border-color 0.4s;
}
.depo__card::before { content: "\201C"; position: absolute; right: 1.5rem; top: 0.2rem; font-size: 9rem; line-height: 1; font-weight: 600; color: var(--red); opacity: 0.22; pointer-events: none; letter-spacing: -0.1em; }
.depo__card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.2); }
.depo__card blockquote { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.45; font-weight: 500; letter-spacing: -0.015em; color: rgba(255,255,255,0.9); text-wrap: pretty; position: relative; }
.depo__card blockquote em { font-style: normal; color: var(--red); }
.depo__who { display: flex; align-items: center; gap: 1rem; position: relative; }
.depo__avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.1); transition: transform 0.6s var(--ease), box-shadow 0.4s; }
.depo__card:hover .depo__avatar { transform: scale(1.08); box-shadow: 0 0 0 3px var(--red); }
.depo__who figcaption { display: grid; gap: 0.1rem; font-size: 0.9rem; }
.depo__who strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }
.depo__role { color: var(--red); font-weight: 500; }
.depo__company { color: rgba(255,255,255,0.6); }
.depo__since { margin-top: 0.5rem; display: inline-block; width: max-content; font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 999px; background: rgba(255,255,255,0.1); color: #fff; }

/* destaque: card branco, citação grande */
.depo__card--feature { background: #fff; color: var(--ink); border-color: #fff; }
.depo__card--feature:hover { background: #fff; border-color: #fff; }
.depo__card--feature::before { opacity: 0.12; }
@media (min-width: 900px) { .depo__card--feature { display: grid; grid-template-columns: 17rem 1fr; gap: 3rem; align-items: center; padding: clamp(2rem, 3.5vw, 3.25rem); } }
.depo__card--feature blockquote { font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.035em; color: var(--ink); }
.depo__card--feature .depo__who { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.depo__card--feature .depo__avatar { width: 96px; height: 96px; box-shadow: 0 0 0 4px var(--bg-2); }
.depo__card--feature:hover .depo__avatar { box-shadow: 0 0 0 4px var(--red); }
.depo__card--feature .depo__who strong { font-size: 1.2rem; }
.depo__card--feature .depo__company { color: var(--grey); }
.depo__card--feature .depo__since { background: var(--black); color: #fff; }

.res__who { margin-top: 1.5rem; color: rgba(255,255,255,0.6); }
.res__who strong { display: block; color: #fff; font-weight: 500; }
.res__big { display: grid; gap: 0.35rem; }
.res__big .n { font-size: clamp(2.8rem, 5vw, 4.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; }
.res__big .n em { font-style: normal; color: var(--red); }
.res__big p { color: rgba(255,255,255,0.6); max-width: 18em; }

/* ---------- Vídeos ---------- */
.res__videos { display: grid; gap: 1.25rem; margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 700px) { .res__videos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .res__videos { grid-template-columns: 0.8fr 0.8fr 1.3fr; gap: 1.5rem; align-items: start; } }
.vcard { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #1a1a1a; margin: 0; }
.vcard img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.8s var(--ease); }
.vcard:hover img { transform: scale(1.04); }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7)); pointer-events: none; }
.vcard__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: var(--black);
  display: grid; place-items: center; z-index: 2;
  transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s;
}
.vcard__play svg { width: 1.6rem; height: 1.6rem; margin-left: 3px; }
.vcard:hover .vcard__play { transform: translate(-50%, -50%) scale(1.08); background: var(--red); color: #fff; }
.vcard figcaption { position: absolute; left: 1.25rem; bottom: 1.1rem; z-index: 2; font-weight: 500; font-size: 0.95rem; }
.vcard iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.vcard.is-playing::after, .vcard.is-playing .vcard__play, .vcard.is-playing figcaption { display: none; }
.res__side { display: grid; gap: 1.75rem; align-content: start; }
@media (min-width: 1000px) { .res__side { padding-left: 1.5rem; } }
.res__side .t-h3 { letter-spacing: -0.035em; }

/* ---------- FAQ ---------- */
.faq__list { border-top: 1px solid var(--ink); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 1.5rem 0;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list .plus { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background-color 0.3s, border-color 0.3s; }
.faq__list .plus::before, .faq__list .plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.4s var(--ease); }
.faq__list .plus::before { width: 0.9rem; height: 1.5px; }
.faq__list .plus::after { width: 1.5px; height: 0.9rem; }
.faq__list details[open] .plus { background: var(--black); color: #fff; border-color: var(--black); }
.faq__list details[open] .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__list .answer { padding: 0 0 1.75rem; color: var(--grey); max-width: 40em; font-size: 1.05rem; }
.faq__list .answer p + p { margin-top: 0.75rem; }

/* ---------- Diagnóstico ---------- */
.diag { position: relative; overflow: hidden; }
.diag__bgword {
  position: absolute; left: -2vw; bottom: -0.15em;
  font-size: clamp(8rem, 26vw, 26rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.8;
  color: rgba(255,255,255,0.07); pointer-events: none; user-select: none; white-space: nowrap;
}
.diag .wrap { position: relative; }
.diag__intro .t-lead { margin-top: 1.5rem; color: rgba(255,255,255,0.85); max-width: 26em; }
.diag__points { margin-top: 2.25rem; display: grid; gap: 0.75rem; }
.diag__points li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.6rem; align-items: start; font-size: 1rem; }
.diag__points svg { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; }

.form {
  background: #fff; color: var(--ink);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
}
.form__steps { display: flex; gap: 0.4rem; margin-bottom: 1.5rem; }
.form__steps span { flex: 1; height: 3px; background: var(--bg-2); border-radius: 2px; overflow: hidden; position: relative; }
.form__steps span::after { content: ""; position: absolute; inset: 0; background: var(--black); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.form__steps span.is-done::after, .form__steps span.is-current::after { transform: scaleX(1); }
.form__step-label { font-size: 0.85rem; color: var(--grey); margin-bottom: 0.3rem; }
.form__title { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 1.5rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.form legend, .form .lbl { display: block; font-weight: 500; margin-bottom: 0.6rem; font-size: 0.98rem; padding: 0; letter-spacing: -0.01em; }
.form .hint { font-weight: 400; color: var(--grey); font-size: 0.85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.chip span { display: inline-block; padding: 0.65rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: 0.92rem; font-weight: 500; line-height: 1.2; transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.3s var(--ease); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--black); border-color: var(--black); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.field { margin-bottom: 1.1rem; }
.field input, .field select {
  width: 100%; height: 3.4rem; padding: 0 1rem;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px rgba(17,17,17,0.08); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); }
.field .err { display: none; color: var(--red); font-size: 0.85rem; margin-top: 0.35rem; }
.field.is-invalid .err { display: block; }
.form__row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.form__actions .btn { flex: 1 1 auto; }
.form__legal { margin-top: 1.1rem; font-size: 0.8rem; color: var(--grey); line-height: 1.45; }
.form [hidden] { display: none !important; }
.form__panel { animation: fadeUp 0.6s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.form__error { color: var(--red); font-size: 0.9rem; margin-top: 0.85rem; display: none; }
.form__error.is-on { display: block; }

.result__tag { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.25rem; }
.result__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.result__tag--ok { background: #e7f6ec; color: #157a47; }
.result__tag--mid { background: #fff3e0; color: #b05a00; }
.result__tag--no { background: var(--bg-2); color: var(--grey); }
.result p { color: var(--grey); max-width: 34em; }
.result p + p { margin-top: 0.75rem; }
.result .btn { margin-top: 1.5rem; }
.result__summary { margin-top: 1.5rem; padding: 1rem 1.2rem; background: var(--bg); border-radius: 12px; font-size: 0.9rem; display: grid; gap: 0.4rem; }
.result__summary div { display: flex; justify-content: space-between; gap: 1rem; }
.result__summary dt { color: var(--grey); }
.result__summary dd { font-weight: 500; text-align: right; }

/* ---------- Footer ---------- */
.footer { padding-block: 3rem 2.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer__top { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center; padding-bottom: 2rem; border-bottom: 1px solid var(--line-dark); }
.footer .logo img { height: 26px; width: auto; }
.footer .logo__pos { display: none; }
.footer .logo__neg { display: block; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer a { text-decoration: none; color: rgba(255,255,255,0.75); }
.footer a:hover { color: #fff; }
.footer__bottom { padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform 0.5s var(--ease); }
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4); }
@media (min-width: 960px) { .sticky-cta { display: none; } }

/* ---------- Animações ---------- */
.header.is-hidden { transform: translateY(-110%); }
.header { transition: background-color 0.4s, color 0.4s, padding 0.4s, box-shadow 0.4s, transform 0.5s var(--ease); }
.img-reveal img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease); }
.img-reveal.is-in img { clip-path: inset(0 0 0% 0); transform: scale(1); }
.faq__list .answer { overflow: hidden; }
.faq__list details.is-animating .answer { transition: height 0.45s var(--ease); }
.etapa .etapa__body { transform: translateY(0); transition: transform 0.7s var(--ease); }
.etapa:hover .etapa__body { transform: translateY(-4px); }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(28px); }
.rv.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv-lines .rl { display: block; overflow: hidden; padding: 0.08em 0.1em 0.16em 0; margin: -0.08em 0 -0.16em 0; }
.rv-lines .rl > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.rv-lines.is-in .rl > span { transform: none; }
.rv-lines.is-in .rl { overflow: visible; }
.rv-lines.is-in .rl:nth-child(2) > span { transition-delay: 0.08s; }
.rv-lines.is-in .rl:nth-child(3) > span { transition-delay: 0.16s; }
.rv-lines.is-in .rl:nth-child(4) > span { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-lines .rl > span { opacity: 1; transform: none; transition: none; }
  .img-reveal img { clip-path: none; transform: none; }
  .hero__title .line > span { transform: none !important; }
  .hero__media img { transform: none !important; }
  }

/* Form: uma pergunta por vez */
.form__qlabel { font-size: 0.8rem; color: var(--grey); margin-bottom: 0.4rem; }
.form fieldset.is-anim { animation: fadeUp 0.45s var(--ease) both; }
.form__qnav { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; flex-wrap: wrap; }
.form__qnav .form__legal { margin-top: 0; flex: 1; }
.form__qback { font-size: 0.9rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); white-space: nowrap; }
.form__qback:hover { color: var(--red); }

.form [data-panel="0"] .field { margin-bottom: 0.9rem; }
.form [data-panel="0"] .form__actions { margin-top: 0.75rem; }

/* Hero no celular: foto numa faixa no topo, texto abaixo sobre o degradê */
@media (max-width: 999px) {
  .hero__content { min-height: 0; padding-top: 46svh; padding-bottom: 2.5rem; }
  .hero__media { bottom: auto; height: 62svh; }
  .hero__media img { object-position: 68% 25%; transform: none !important; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 22%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0.75) 82%, var(--black) 100%);
  }
  .hero__sub { font-size: 1rem; }
}
}

/* Form final: a seção já tem o título, esconde o do template */
#diagnostico .form [data-panel="0"] .form__title { display: none; }
#diagnostico .form [data-panel="0"] .form__intro { margin-top: 0; }

/* ---------- Interações globais ---------- */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--red); transform-origin: left; }
.logo img { transition: transform 0.5s var(--ease); }
.logo:hover img { transform: scale(1.04); }
.header__nav a { position: relative; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hero__kicker::before { animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(225,31,38,0.6); } 100% { box-shadow: 0 0 0 10px rgba(225,31,38,0); } }
.marquee:hover .marquee__track { animation-play-state: paused; }
.perdas__item { transition: transform 0.6s var(--ease), background-color 0.4s; padding-inline: 0.75rem; margin-inline: -0.75rem; border-radius: 10px; }
.perdas__item:hover { transform: translateX(6px); background: rgba(0,0,0,0.03); }
.perdas__item h3 em { position: relative; }
.perdas__item h3 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.05em; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.perdas__item:hover h3 em::after { transform: scaleX(1); }
.etapa::after { transition: opacity 0.6s; }
.etapa:hover::after { opacity: 0.92; }
.etapa__n { transition: transform 0.7s var(--ease), color 0.4s; }
.etapa:hover .etapa__n { transform: translateX(6px); color: var(--red); }
.depo__avatar { transition: transform 0.6s var(--ease), box-shadow 0.4s; }
.depo__card:hover .depo__avatar { transform: scale(1.08); box-shadow: 0 0 0 3px var(--red); }
.res__big .n { transition: transform 0.6s var(--ease); }
.res__big:hover .n { transform: translateX(6px); }
.faq__list summary { transition: color 0.3s, padding-left 0.4s var(--ease); }
.faq__list summary:hover { color: var(--red); padding-left: 0.5rem; }
.faq__list .plus { transition: background-color 0.3s, border-color 0.3s, transform 0.5s var(--ease); }
.faq__list summary:hover .plus { transform: rotate(90deg); border-color: var(--red); }
.chip span { transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.3s var(--ease); }
.chip:hover span { transform: translateY(-2px); }
.chip input:checked + span { animation: pop 0.35s var(--ease); }
@keyframes pop { 0% { transform: scale(0.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.field input, .field select, .contato__field input { transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s, transform 0.3s var(--ease); }
.field input:focus, .contato__field input:focus { transform: translateY(-1px); }
.diag__bgword { will-change: transform; }
.form__steps span::after { transition: transform 0.6s var(--ease); }
.result__tag { animation: fadeUp 0.6s var(--ease) both; }
.result .btn { animation: fadeUp 0.6s 0.15s var(--ease) both; }
.footer a { position: relative; transition: color 0.3s; }
.footer a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.footer a:hover::after { transform: scaleX(1); transform-origin: left; }
.vcard figcaption { transition: transform 0.5s var(--ease); }
.vcard:hover figcaption { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .hero__kicker::before, .chip input:checked + span, .result__tag, .result .btn { animation: none; }
  .perdas__item:hover, }

/* Botões de contorno sobre fundo claro (ex.: "Voltar" no formulário) */
.form .btn--outline { --fill: rgba(0,0,0,0.07); }

/* Título que se preenche com a rolagem */
.fill-text .w { color: rgba(17,17,17,0.18); transition: none; will-change: color; }
.fill-text .w.is-on { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .fill-text .w { color: var(--ink); } }

/* ---------- Modal do diagnóstico ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; inset: 0; margin: 0; display: none; }
.modal[open] { display: grid; place-items: center; padding: 1rem; }
.modal::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn 0.3s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__box {
  position: relative; width: min(100%, 640px); max-height: calc(100svh - 2rem); overflow: auto;
  background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.6);
  animation: modalIn 0.5s var(--ease) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; right: 1rem; top: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); transition: background-color 0.3s, transform 0.4s var(--ease); z-index: 2; }
.modal__close:hover { background: var(--bg-2); transform: rotate(90deg); }
.modal__close svg { width: 1.1rem; height: 1.1rem; }
.modal__kicker { font-size: 0.85rem; font-weight: 500; color: var(--grey); margin-bottom: 0.75rem; }
.form--modal { padding: 0; box-shadow: none; border-radius: 0; }
.form--modal .form__step-label { display: none; }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .modal__box, .modal::backdrop { animation: none; } }

/* Modal de assessoria */
.assessoria__title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 0.6rem; }
.assessoria__intro { color: var(--grey); font-size: 0.98rem; margin-bottom: 1.4rem; }
.assessoria__ok { display: grid; gap: 0.75rem; }
.assessoria__ok .result__tag { margin-bottom: 0.25rem; }

/* Formulário único (modal e seção final) */
.form--final .assessoria__title { display: none; }
.form--final .assessoria__intro { display: none; }

/* Formulário em passos */
.form--modal .form__step-label, .form--final .form__step-label { display: block; font-size: 0.85rem; color: var(--grey); margin-bottom: 1rem; }
.form--modal .form__steps, .form--final .form__steps { margin-bottom: 1rem; }
.form [data-step] .form__actions { margin-top: 0.75rem; }
.form--final .assessoria__title, .form--final .assessoria__intro { display: none; }
