/* ==========================================================================
   C DEV — CSS de seção (#credibilidade até #rodape)
   Layout das seções sobre os componentes de cdev-ds.css. Navbar e #hero NÃO
   passam por aqui (navbar.css / word-scroll.css / base.css).
   ========================================================================== */

/* ---- Casca comum ---- */
/* Canvas (inclui o scrollbar-gutter de base.css) no mesmo chumbo das seções;
   o body continua #0A0A0A por baixo do #hero, que não muda. */
html { background: #0D0F12; }
.cd section[id],
footer.cd {
  background: var(--bg);
  color: var(--ink);
}
.cd-block {
  padding-block: var(--space-8);
  border-top: 1px solid var(--line);
}
.cd-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.cd-block .cd-section { margin-bottom: var(--space-6); }
@media (min-width: 768px) {
  .cd-wrap { padding-inline: var(--space-6); }
}
@media (min-width: 992px) {
  .cd-block { padding-block: var(--space-10); }
  .cd-block .cd-section { margin-bottom: var(--space-8); }
}

/* Luz de canto (DS: "luz de canto, não orbe"). radial-gradient em vez de
   filter: blur(120px) — mesmo resultado visual, sem custo de blur na GPU. */
.cd-glow { position: relative; overflow: clip; }
.cd-glow > * { position: relative; }
.cd-glow::before {
  content: "";
  position: absolute;
  top: -240px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 18, 92, 0.14), transparent);
  pointer-events: none;
}
.cd-glow--right::before { right: -320px; }
.cd-glow--left::before { left: -320px; }

/* Ícone em caixinha (bento, benefícios do CTA) */
.cd-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}
.cd-tile svg { width: 18px; height: 18px; }

/* Lista com fio de 1px entre itens — usada em serviços e garantia */
.cd-rows { list-style: none; margin: 0; padding: 0; }
.cd-rows > li + li { border-top: 1px solid var(--line); }

/* ---- #credibilidade ---- */
/* position:relative + z-index 2: precisa ficar ACIMA dos <li> do #hero
   (word-scroll.css, z-index 1) — pedido do dono, não remover. */
#credibilidade {
  position: relative;
  z-index: 2;
  padding-block: var(--space-6);
}
.cd-metrics {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .cd-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- #dor (bento) ---- */
.cd-bento { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.cd-bento__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-edge);
  transition: border-color var(--motion-base) var(--ease);
}
.cd-bento__card:hover { border-color: rgba(255, 255, 255, 0.16); }
.cd-bento__card p { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink); }
.cd-bento__card .cd-eyebrow { color: var(--ink-faint); }
.cd-bento__card--main {
  min-height: 260px;
  padding-bottom: var(--space-6);
  background: radial-gradient(120% 90% at 100% 0%, rgba(232, 18, 92, 0.12), transparent 60%), var(--surface);
  border-color: var(--brand-tint-line);
}
.cd-bento__card--main:hover { border-color: rgba(232, 18, 92, 0.45); }
.cd-bento__card--main .cd-eyebrow { color: var(--brand-ink); }
.cd-bento__figure { margin-top: auto; font: 700 72px/1 var(--font-mono); letter-spacing: -.05em; color: var(--ink); }
.cd-bento__card--main p { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; max-width: 24ch; }
@media (min-width: 768px) {
  .cd-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-bento__card--main { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
  .cd-bento { grid-template-columns: 1.3fr 1fr 1fr; }
  .cd-bento__card--main { grid-column: 1; grid-row: 1 / span 2; }
  .cd-bento__figure { font-size: 96px; }
}
.cd-closing { margin-top: var(--space-5); max-width: 720px; }

/* ---- #mecanismo ---- */
.cd-compare {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .cd-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cd-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-edge);
}
.cd-panel--us {
  border-color: rgba(232, 18, 92, 0.35);
  background: linear-gradient(180deg, rgba(232, 18, 92, 0.07), transparent 45%), var(--surface);
}
.cd-panel h3 { margin: var(--space-3) 0 var(--space-4); font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.01em; }
.cd-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.cd-checklist li { display: flex; gap: var(--space-3); font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.cd-checklist .cd-icon { margin-top: 2px; }
.cd-checklist--before .cd-icon { color: var(--ink-faint); }
.cd-checklist--after .cd-icon { color: var(--positive); }
.cd-checklist--after li { color: var(--ink); }
.cd-bridge {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  margin-top: var(--space-6);
}
.cd-bridge p { margin: 0; max-width: 60ch; font-size: 16px; line-height: 26px; color: var(--ink-muted); }
@media (min-width: 992px) {
  .cd-bridge { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-6); }
  .cd-bridge .cd-btn { flex: none; }
}

/* ---- #servicos ---- */
.cd-offers {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .cd-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cd-offer .cd-rows { margin: var(--space-4) 0 var(--space-5); }
.cd-offer .cd-rows li { padding: var(--space-2) 0; font-size: 14px; line-height: 22px; color: var(--ink); }
.cd-offers + .cd-note { margin-top: var(--space-4); }

/* ---- #como-funciona ---- */
#como-funciona .cd-note { margin-top: var(--space-6); max-width: 720px; }

/* ---- #diferenciais ---- */
.cd-diff {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cd-diff-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cd-diff .cd-table { min-width: 640px; }
.cd-diff .cd-table th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 170px;
  font: 600 14px/22px var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--bg);
  box-shadow: 1px 0 0 var(--line);
}
.cd-diff thead th:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--line); }
.cd-diff .is-us {
  color: var(--ink);
  background: rgba(232, 18, 92, 0.06);
  box-shadow: inset 1px 0 0 rgba(232, 18, 92, 0.35), inset -1px 0 0 rgba(232, 18, 92, 0.35);
}
.cd-diff thead .is-us { color: var(--brand-ink); }
.cd-diff .cd-icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
.cd-diff .cd-yes { color: var(--positive); }
.cd-diff .cd-no { color: var(--ink-faint); }
.cd-diff-hint {
  margin: var(--space-3) 0 0;
  font: 500 12px/18px var(--font-mono);
  color: var(--ink-faint);
}
@media (max-width: 991.98px) {
  .cd-diff::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 32px;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
  }
}
@media (min-width: 992px) {
  .cd-diff-hint { display: none; }
}

/* ---- #parceiros (stack em marquee) ---- */
.cd-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.cd-marquee__track { display: flex; width: max-content; will-change: transform; animation: cd-marquee 45s linear infinite; }
.cd-marquee:hover .cd-marquee__track { animation-play-state: paused; }
/* Com GSAP (marquee.ts) o movimento e a desaceleração no hover são do tween. */
.cd-marquee.is-gsap .cd-marquee__track { animation: none; }
.cd-marquee__list { display: flex; gap: var(--space-3); margin: 0; padding: 0 var(--space-3) 0 0; list-style: none; }
.cd-chip {
  display: grid;
  gap: 2px;
  flex: none;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-edge);
}
.cd-chip { transition: border-color var(--motion-base) var(--ease), background var(--motion-base) var(--ease), opacity var(--motion-base) var(--ease), transform var(--motion-base) var(--ease); }
/* Badge em foco: ganha destaque e os vizinhos recuam. */
.cd-chip:hover { border-color: rgba(232, 18, 92, .55); background: var(--surface-raised); transform: translateY(-3px); }
.cd-marquee:hover .cd-chip:not(:hover) { opacity: .5; }
.cd-chip strong { font-size: 16px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.cd-chip span { font: 500 12px/18px var(--font-mono); color: var(--ink-faint); white-space: nowrap; }
@keyframes cd-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .cd-marquee { -webkit-mask-image: none; mask-image: none; max-width: 1200px; margin-inline: auto; padding-inline: var(--space-4); }
  .cd-marquee__track { animation: none; width: auto; }
  .cd-marquee__list { flex-wrap: wrap; padding: 0; }
  .cd-marquee__list[aria-hidden] { display: none; }
}

/* ---- #resultados ---- */
.cd-pending {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}
@media (min-width: 992px) {
  .cd-pending { flex-direction: row; align-items: center; justify-content: space-between; }
  .cd-pending .cd-note { max-width: 720px; }
}

/* ---- #fundador ---- */
.cd-founder {
  display: grid;
  gap: var(--space-5);
}
.cd-founder__card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  align-self: start;
}
.cd-avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-line);
}
.cd-founder__name { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.cd-founder__role { margin: 2px 0 var(--space-2); font: 500 12px/18px var(--font-mono); color: var(--ink-faint); }
.cd-founder__text p { margin: 0; font-size: 16px; line-height: 26px; color: var(--ink-muted); max-width: 62ch; }
.cd-founder__text p + p { margin-top: var(--space-4); }
.cd-founder__text p:first-child { font-size: 18px; line-height: 28px; color: var(--ink); }
@media (min-width: 992px) {
  .cd-founder { grid-template-columns: 340px 1fr; gap: var(--space-8); }
}

/* ---- #investimento ---- */
.cd-plans {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 992px) {
  .cd-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cd-plan__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 24px; }
.cd-plan .cd-rows { margin: var(--space-4) 0 var(--space-5); }
.cd-plan .cd-rows li { padding: var(--space-2) 0; font-size: 14px; line-height: 22px; color: var(--ink); }
.cd-plan--featured { border-color: var(--brand-tint-line); }
.cd-plan--featured:hover { border-color: var(--brand); }
.cd-price { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.cd-price span { display: block; font: 500 11px/16px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.cd-price strong { display: block; margin-top: var(--space-1); font: 600 22px/1.2 var(--font-mono); letter-spacing: -.02em; color: var(--ink); }
.cd-plans-foot {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: stretch;
  margin-top: var(--space-5);
}
@media (min-width: 992px) {
  .cd-plans-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .cd-plans-foot .cd-btn { flex: none; }
}

/* ---- #garantia ---- */
.cd-promises {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-edge);
}
.cd-promises li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-muted);
}
.cd-promises .cd-icon { color: var(--positive); margin-top: 2px; }
.cd-promises strong { color: var(--ink); font-weight: 600; }
.cd-seal { margin: var(--space-4) 0 0; font: 500 12px/18px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

/* ---- #faq (cards) ---- */
.cd-faq { display: grid; gap: var(--space-2); max-width: 880px; interpolate-size: allow-keywords; }
.cd-faq details {
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-edge);
  transition: border-color var(--motion-base) var(--ease), background var(--motion-base) var(--ease);
}
.cd-faq details:hover,
.cd-faq details[open] { border-color: rgba(255, 255, 255, 0.14); }
.cd-faq details[open] { background: var(--surface); }
/* Expansão animada: Chromium 131+. Os demais abrem na hora. */
.cd-faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size var(--motion-slow) var(--ease), content-visibility var(--motion-slow) allow-discrete;
}
.cd-faq details[open]::details-content { block-size: auto; }
.cd-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.cd-faq summary::-webkit-details-marker { display: none; }
.cd-faq__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform var(--motion-base) var(--ease), border-color var(--motion-base) var(--ease), background var(--motion-base) var(--ease);
}
.cd-faq__icon::before,
.cd-faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--ink-muted);
  translate: -50% -50%;
}
.cd-faq__icon::after { rotate: 90deg; }
.cd-faq details[open] .cd-faq__icon { transform: rotate(45deg); border-color: rgba(232, 18, 92, 0.5); background: var(--brand-tint); }
.cd-faq details[open] .cd-faq__icon::before,
.cd-faq details[open] .cd-faq__icon::after { background: var(--brand-ink); }
.cd-faq p { margin: 0; padding: 0 var(--space-5) var(--space-5); max-width: 70ch; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
@media (min-width: 992px) {
  .cd-faq summary { font-size: 17px; line-height: 26px; }
}

/* ---- #cta-final ---- */
.cd-final {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}
.cd-final__title {
  margin: var(--space-3) 0 0;
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.cd-final__lead { margin: var(--space-4) 0 0; font-size: 16px; line-height: 26px; color: var(--ink-muted); max-width: 52ch; }
.cd-final__facts { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.cd-final__facts li { display: flex; gap: var(--space-4); align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.cd-final__facts .cd-tile { margin: 0; color: var(--brand-ink); }
.cd-final__facts strong { display: block; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.cd-form .cd-btn { width: 100%; margin-top: var(--space-1); }
.cd-form__status { margin: 0; font-size: 13px; line-height: 20px; color: var(--attention); }
.cd-form__status:empty { display: none; }
@media (min-width: 992px) {
  .cd-final { grid-template-columns: 1fr 420px; gap: var(--space-10); align-items: center; }
  .cd-final__title { font-size: 40px; line-height: 44px; }
  .cd-final__lead { font-size: 18px; line-height: 28px; }
}

/* ---- #rodape ---- */
.cd-footer { position: relative; padding-block: var(--space-8) var(--space-6); }
.cd-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 18, 92, 0.55) 30%, rgba(255, 255, 255, 0.14) 70%, transparent);
}
.cd-footer__grid { display: grid; gap: var(--space-6); }
.cd-footer__logo { display: block; height: 24px; width: auto; }
.cd-footer__tag { margin: var(--space-3) 0 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); max-width: 36ch; }
.cd-footer h2 { margin: 0 0 var(--space-3); font: 600 11px/16px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.cd-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.cd-footer li, .cd-footer a { font-size: 14px; line-height: 22px; color: var(--ink-muted); text-decoration: none; }
.cd-footer a {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color var(--motion-base) var(--ease), background-size var(--motion-base) var(--ease);
}
.cd-footer a:hover { color: var(--ink); background-size: 100% 1px; }
.cd-footer__legal { margin: var(--space-8) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); font: 500 12px/18px var(--font-mono); color: var(--ink-faint); }
@media (min-width: 768px) {
  .cd-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---- CTA flutuante (posição/visibilidade em base.css) ---- */
[data-cdev="floating-cta"] .cd-btn { box-shadow: var(--shadow-glow); }

/* ---- #resultados: mural em perspectiva (drift-wall.ts) ---- */
.cd-wall {
  --dw-tile-w: 240px;
  --dw-tile-h: 160px;
  --dw-gap: 18px;
  --dw-edge: 40%;
  position: relative;
  margin-block: var(--space-4) var(--space-6);
}
/* sem JS: grade simples e legivel */
.cd-wall:not(.is-ready) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
  padding-inline: var(--space-4);
}
.cd-wall:not(.is-ready) img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.cd-wall:not(.is-ready) figcaption { display: flex; flex-direction: column; padding-top: 8px; font-size: .8125rem; }
.cd-wall.is-ready {
  height: 560px;
  overflow: hidden;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 46%, #000 var(--dw-edge), transparent 100%);
  mask-image: radial-gradient(ellipse 78% 82% at 50% 46%, #000 var(--dw-edge), transparent 100%);
}
.cd-wall__plane {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}
.cd-wall__col { width: calc(var(--dw-tile-w) + var(--dw-gap)); transform-style: preserve-3d; }
.cd-wall__track { display: flex; flex-direction: column; will-change: transform; transform-style: preserve-3d; }
.cd-wall.is-ready .cd-wall__tile {
  position: relative;
  margin: 0;
  flex: none;
  width: 100%;
  height: calc(var(--dw-tile-h) + var(--dw-gap));
  padding: calc(var(--dw-gap) / 2);
  outline: none;
  transform-style: preserve-3d;
  cursor: pointer;
}
.cd-wall.is-ready img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  border: 1px solid var(--line);
  opacity: .55;
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), opacity .42s cubic-bezier(.22, 1, .36, 1), box-shadow .42s cubic-bezier(.22, 1, .36, 1);
  user-select: none;
}
.cd-wall.is-ready figcaption {
  position: absolute;
  left: calc(var(--dw-gap) / 2 + 10px);
  right: calc(var(--dw-gap) / 2 + 10px);
  bottom: calc(var(--dw-gap) / 2 + 8px);
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(13, 15, 18, .85);
  font-size: .8125rem;
  line-height: 1.3;
  opacity: 0;
  transition: opacity .3s ease, transform .42s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.cd-wall figcaption span { color: rgba(255, 255, 255, .6); font-size: .75rem; }
.cd-wall .is-active img,
.cd-wall .cd-wall__tile:focus-visible img {
  opacity: 1;
  transform: translateZ(64px);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .7);
}
.cd-wall .is-active figcaption,
.cd-wall .cd-wall__tile:focus-visible figcaption { opacity: 1; transform: translateZ(64px); }
.cd-wall .cd-wall__tile:focus-visible img { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
@media (max-width: 767.98px) { .cd-wall.is-ready { height: 440px; } }
@media (prefers-reduced-motion: reduce) { .cd-wall__plane, .cd-wall__track { will-change: auto; } }
