/* ════════════════════════════════════════════════════════════════
   U18 DSP ESP — Layout styles replicating kidscorp.digital/dsp/
   ════════════════════════════════════════════════════════════════ */

/* ── Logos marquee (standalone — Home/styles.css not loaded here) */
.logos-strip { overflow: hidden; padding: 28px 0; }
.logos-strip .lbl { text-align: center; font-family: 'Roboto Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; }
.marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
}
.marquee__track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
}
.marquee__item { flex: 0 0 auto; display: flex; align-items: center; }
.marquee__item img { height: 32px; width: auto; display: block; object-fit: contain; filter: invert(0) opacity(0.45) grayscale(1); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Hero 2-col: text left + illustration right ─────────────── */
.dsp-hero { background: #0d0d0d; padding: 120px 0 80px; }
.dsp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.dsp-hero-text {}
.dsp-hero-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}
.dsp-hero-text .dsp-hero-lead {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 46ch;
  margin-bottom: 32px;
}
.dsp-hero-img { display: flex; align-items: center; justify-content: center; }
.dsp-hero-img img { width: 100%; max-width: 520px; height: auto; display: block; }

@media (max-width: 820px) {
  .dsp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .dsp-hero-img { display: none; }
  .dsp-hero { padding: 100px 0 60px; }
}

/* ── Stats row ───────────────────────────────────────────────── */
.dsp-stats { background: #0d0d0d; padding: 0 0 80px; }
.dsp-stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 48px;
}
.dsp-stat-item { display: flex; flex-direction: column; gap: 8px; }
.dsp-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.dsp-stat-label {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,255,255,0.55);
  max-width: 28ch;
}
@media (max-width: 640px) {
  .dsp-stats-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ── CTA Banner: centered, chip + H2 + text + button ────────── */
.dsp-cta-banner {
  background: linear-gradient(135deg, rgba(148,20,250,0.12), rgba(76,203,255,0.06));
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 80px 0;
  text-align: center;
}
.dsp-cta-chip {
  display: inline-block;
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9414FA;
  background: rgba(148,20,250,0.10);
  border: 1px solid rgba(148,20,250,0.28);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.dsp-cta-banner h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 680px;
  margin: 0 auto 16px;
}
.dsp-cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  max-width: 44ch;
  margin: 0 auto 32px;
  line-height: 1.55;
}

/* ── Feature Cards: alternating text/image ───────────────────── */
.dsp-features { background: #0a0a0a; }
.dsp-feat-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.dsp-feat-card:last-child { border-bottom: none; }
.dsp-feat-card.reverse { direction: rtl; }
.dsp-feat-card.reverse > * { direction: ltr; }
.dsp-feat-text {}
.dsp-feat-num {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9414FA;
  margin-bottom: 16px;
}
.dsp-feat-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.dsp-feat-text p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.58);
  max-width: 44ch;
}
.dsp-feat-img {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.dsp-feat-img::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(148,20,250,0.28) 0%, rgba(148,20,250,0.10) 45%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.dsp-feat-img img { width: 100%; max-width: 520px; height: auto; display: block; position: relative; z-index: 1; }

@media (max-width: 820px) {
  .dsp-feat-card { grid-template-columns: 1fr; gap: 32px; direction: ltr !important; }
  .dsp-feat-card .dsp-feat-img { order: -1; }
  .dsp-feat-card .dsp-feat-img img { max-width: 320px; margin: 0 auto; }
}

/* ── Comparison table ────────────────────────────────────────── */
.dsp-table-section { background: #0a0a0a; padding: 100px 0; }
.dsp-table-head { text-align: center; margin-bottom: 56px; }
.dsp-table-head h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.dsp-table-head p { font-size: 17px; color: rgba(255,255,255,0.55); max-width: 52ch; margin: 0 auto; }

.dsp-table-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  overflow: hidden;
  background: #141414;
  box-shadow: 0 4px 40px rgba(148,20,250,0.08);
}
.dsp-table-col-head {
  padding: 24px 28px;
  background: #141414;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dsp-table-col-head.label-col { background: #0f0f0f; }
.dsp-table-col-head.kc-col { background: linear-gradient(135deg, rgba(148,20,250,0.14), rgba(76,203,255,0.05)); }
.dsp-table-col-tag {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9414FA;
  margin-bottom: 6px;
}
.dsp-table-col-head h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin: 0;
}
.dsp-table-row {
  display: contents;
}
.dsp-table-cell {
  padding: 20px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.58);
  display: flex;
  align-items: center;
}
.dsp-table-cell.row-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.85);
  background: #0f0f0f;
}
.dsp-table-cell.kc-col {
  background: rgba(148,20,250,0.05);
}

@media (max-width: 720px) {
  .dsp-table-section { padding: 60px 0; }

  /* Switch grid → flex column so we can reorder items with `order` */
  .dsp-table-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  /* Hide empty label column header */
  .dsp-table-col-head.label-col { display: none; }

  /* Row label cells hidden — labels shown via ::before on value cells */
  .dsp-table-cell.row-label { display: none !important; }

  /* ── SELF-SERVICE CARD (order 1–6) ── */
  .dsp-table-col-head:not(.label-col):not(.kc-col) { order: 1; }
  .dsp-table-row .dsp-table-cell:not(.row-label):not(.kc-col) { order: 2; }

  /* ── MANAGED SERVICE CARD (order 3–8) ── */
  .dsp-table-col-head.kc-col { order: 3; margin-top: 20px; }
  .dsp-table-row .dsp-table-cell.kc-col { order: 4; }

  /* Shared col-head card top styles */
  .dsp-table-col-head:not(.label-col) {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-left: 1px solid rgba(255,255,255,0.10);
    border-right: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px 16px 0 0;
  }
  .dsp-table-col-head.kc-col {
    background: linear-gradient(135deg, rgba(148,20,250,0.18), rgba(76,203,255,0.07));
  }

  /* Value cells */
  .dsp-table-cell:not(.row-label) {
    display: block;
    padding: 14px 20px;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    border-left: 1px solid rgba(255,255,255,0.10);
    border-right: 1px solid rgba(255,255,255,0.10);
    background: #141414;
  }
  .dsp-table-cell.kc-col {
    background: rgba(148,20,250,0.04);
  }

  /* Row label prefix via ::before */
  .dsp-table-row:nth-child(4) .dsp-table-cell:not(.row-label)::before { content: "Ideal para"; }
  .dsp-table-row:nth-child(5) .dsp-table-cell:not(.row-label)::before { content: "Benefício principal"; }
  .dsp-table-row:nth-child(6) .dsp-table-cell:not(.row-label)::before { content: "Compromisso"; }
  .dsp-table-row:nth-child(7) .dsp-table-cell:not(.row-label)::before { content: "Reporting"; }
  .dsp-table-row:nth-child(8) .dsp-table-cell:not(.row-label)::before { content: "Suporte criativo"; }

  .dsp-table-cell:not(.row-label)::before {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9414FA;
    margin-bottom: 5px;
  }

  /* Bottom border + rounded corners on last row cells */
  .dsp-table-row:last-child .dsp-table-cell:not(.row-label) {
    border-bottom: 1px solid rgba(255,255,255,0.10);
    border-radius: 0 0 16px 16px;
  }
}
