/* Ajustes responsivos compartilhados pelas páginas institucionais DayLu Tech. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Preserva a paleta escolhida contra o "modo escuro forçado" de alguns
   navegadores Android/Samsung e aumenta o contraste em telas AMOLED. */
html[data-theme="dark"] {
  color-scheme: only dark;
}

html[data-theme="light"] {
  color-scheme: only light;
}

html[data-theme="dark"] body {
  background-color: #070809 !important;
  color: #f9fafb !important;
}

html[data-theme="dark"] header.site-header {
  background: rgba(7, 8, 9, 0.98) !important;
}

html[data-theme="light"] body,
html[data-theme="light"] section.hero {
  background-color: #f7f8fa !important;
  color: #111827 !important;
}

html[data-theme="light"] header.site-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-theme="light"] .top-banner {
  background: linear-gradient(90deg, #fff9e8 0%, #f7e7b5 50%, #fff9e8 100%) !important;
  color: #6f4e00 !important;
  border-bottom-color: rgba(143, 96, 16, 0.38) !important;
}

html[data-theme="light"] .badge-hero {
  background: rgba(184, 134, 11, 0.13) !important;
  color: #795500 !important;
  border-color: rgba(143, 96, 16, 0.42) !important;
}

html[data-theme="light"] .hero-desc,
html[data-theme="light"] .pillar-text,
html[data-theme="light"] .section-subtext {
  color: #374151 !important;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
}

.container,
.nav-container,
.hero-grid,
.hero-content,
.mockup-container,
.pillar-grid,
.deep-dive-grid,
.steps-grid,
.escrow-box,
.footer-grid,
.footer-grid > *,
.hero-grid > *,
.deep-dive-grid > *,
.steps-grid > *,
.escrow-box > * {
  min-width: 0;
}

.footer-links a,
.footer-links li,
.hero-title,
.hero-desc,
.section-title,
.section-subtitle,
.content-card,
.legal-card,
main p,
main li {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 820px) {
  /* Gradiente recortado pode virar marrom/preto no compositor de alguns
     aparelhos. No celular usamos ouro sólido de alto contraste. */
  .gold-text {
    background: none !important;
    color: var(--gold-primary) !important;
    -webkit-text-fill-color: var(--gold-primary) !important;
  }

  html[data-theme="dark"] .gold-text {
    color: #ffd75e !important;
    -webkit-text-fill-color: #ffd75e !important;
  }

  html[data-theme="light"] .gold-text {
    color: #8a6100 !important;
    -webkit-text-fill-color: #8a6100 !important;
  }

  .container,
  .nav-container {
    width: 100%;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .top-banner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem !important;
  }

  .top-banner .badge {
    max-width: 100%;
    margin-right: 0 !important;
    white-space: normal;
  }

  .nav-brand-row,
  .brand-logo,
  .brand-text {
    min-width: 0;
  }

  .brand-logo {
    gap: 0.7rem;
  }

  .brand-name {
    font-size: 1.08rem !important;
  }

  .brand-sub {
    font-size: 0.56rem !important;
    letter-spacing: 0.1em;
  }

  .nav-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .btn,
  .nav-actions .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  section.hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-grid,
  .pillar-grid,
  .deep-dive-grid,
  .steps-grid,
  .escrow-box,
  .footer-grid,
  .problem-solution-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .problem-solution-grid {
    gap: 1.5rem !important;
    margin-top: 1.5rem !important;
    width: 100% !important;
  }

  .pain-card {
    padding: 1.35rem 1.15rem !important;
    border-radius: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .pain-item {
    gap: 0.75rem !important;
    margin-bottom: 1.1rem !important;
    padding-bottom: 0.95rem !important;
  }

  .pain-item > div {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .pain-item strong {
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
    display: block !important;
  }

  .pain-item p {
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
    margin-top: 0.3rem !important;
  }

  .deep-dive-grid [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .deep-dive-grid [style*="display: flex"] > div {
    min-width: 0;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.45rem) !important;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-trust {
    justify-content: center;
    gap: 0.85rem 1.25rem;
  }

  .badge-hero {
    max-width: 100%;
    white-space: normal;
  }

  .phone-frame {
    width: min(100%, 320px);
  }

  .escrow-box {
    padding: 1.35rem !important;
    gap: 1.5rem;
  }

  footer.site-footer {
    padding: 3rem 0 calc(5.5rem + env(safe-area-inset-bottom)) !important;
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer-bottom,
  .footer-bottom > div {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 0.65rem !important;
  }

  .modal-overlay {
    padding: 1rem;
  }
}

@media (max-width: 390px) {
  .brand-emblem-img {
    width: 40px !important;
    height: 40px !important;
  }

  .brand-name {
    font-size: 0.98rem !important;
  }

  .brand-sub {
    font-size: 0.5rem !important;
  }

  .hero-title {
    font-size: 1.9rem !important;
  }

  .daylu-language-switcher {
    right: max(0.65rem, env(safe-area-inset-right)) !important;
    bottom: max(0.65rem, env(safe-area-inset-bottom)) !important;
  }
}
