/* =========================================================
   SYNETRA — LAPIDAÇÃO VISUAL DESKTOP + WIDGET DA SY
   Carregado depois dos estilos principais para atuar como
   uma camada segura de refinamento, sem reescrever o site.
   ========================================================= */

/* ---------------------------------------------------------
   Ritmo vertical do site no desktop
   --------------------------------------------------------- */

@media (min-width: 901px) {
  html {
    scroll-padding-top: 82px;
  }

  .section {
    min-height: auto !important;
    padding-top: 68px !important;
    padding-bottom: 68px !important;
  }

  .hero.section {
    min-height: auto !important;
    padding-top: 76px !important;
    padding-bottom: 52px !important;
  }

  .hero-grid,
  .diagnostic-grid {
    min-height: auto !important;
    align-items: center !important;
  }

  .hero-copy {
    position: relative;
  }

  /* Pequena assinatura luminosa, discreta e tecnológica. */
  .hero-copy::before {
    content: "";
    position: absolute;
    top: 2px;
    left: -22px;
    width: 2px;
    height: 76px;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      rgba(34, 211, 238, 0),
      rgba(34, 211, 238, 0.9),
      rgba(109, 76, 255, 0.72),
      rgba(109, 76, 255, 0)
    );
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.28);
    opacity: 0.78;
    pointer-events: none;
  }

  .hero-copy h1 {
    text-wrap: balance;
    text-shadow: 0 10px 34px rgba(5, 11, 24, 0.28);
  }

  .strip-section {
    min-height: auto !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  .value-strip {
    position: relative;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden;
  }

  /* Linha de sinal para reforçar o aspecto tecnológico. */
  .value-strip::before {
    content: "";
    position: absolute;
    top: 0;
    right: 7%;
    left: 7%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(34, 211, 238, 0.66),
      rgba(29, 167, 255, 0.52),
      rgba(109, 76, 255, 0.66),
      transparent
    );
    opacity: 0.72;
    pointer-events: none;
  }

  #solucoes.section {
    padding-top: 48px !important;
    padding-bottom: 74px !important;
  }

  .diagnostic-section {
    padding-top: 74px !important;
    padding-bottom: 74px !important;
  }

  #metodo.section {
    padding-top: 66px !important;
    padding-bottom: 58px !important;
  }

  .proof-section {
    padding-top: 30px !important;
    padding-bottom: 62px !important;
  }

  .contact-section {
    padding-top: 62px !important;
    padding-bottom: 62px !important;
  }

  .section-head {
    position: relative;
    margin-bottom: 34px !important;
  }

  .section-head::after {
    content: "";
    display: block;
    width: 86px;
    height: 2px;
    margin-top: 24px;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      #22d3ee,
      #1da7ff,
      #6d4cff
    );
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.24);
    opacity: 0.86;
  }

  .cards-grid,
  .steps,
  .proof-grid {
    margin-top: 34px !important;
  }

  .contact-card {
    margin-top: 0 !important;
  }

  .site-footer {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
}

/* Telas desktop com pouca altura, como o print de teste.
   A hero fica integralmente visível sem cortar os botões. */
@media (min-width: 901px) and (max-height: 900px) {
  .hero.section {
    padding-top: 58px !important;
    padding-bottom: 40px !important;
  }

  .hero-copy h1 {
    font-size: clamp(52px, 4.7vw, 76px) !important;
    line-height: 0.99 !important;
  }

  .hero-copy .lead {
    margin-top: 24px !important;
  }

  .hero-actions {
    margin-top: 26px !important;
  }

  .trust-row {
    margin-top: 24px !important;
  }
}

@media (min-width: 1200px) and (min-height: 901px) {
  .hero.section {
    padding-top: 82px !important;
    padding-bottom: 58px !important;
  }

  .section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
}

/* ---------------------------------------------------------
   Widget da Sy — correção do foco quadrado no textarea
   --------------------------------------------------------- */

/* O site principal possui estilos globais de formulário.
   Este reset garante que eles não vazem para dentro do widget. */
#sy-widget-root .syw-composer textarea.syw-input,
#sy-widget-root .syw-composer textarea.syw-input:hover,
#sy-widget-root .syw-composer textarea.syw-input:active,
#sy-widget-root .syw-composer textarea.syw-input:focus,
#sy-widget-root .syw-composer textarea.syw-input:focus-visible {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px 8px 8px !important;

  border: 0 !important;
  border-radius: 12px !important;
  outline: 0 !important;

  color: #f8fafc !important;
  background: transparent !important;

  box-shadow: none !important;
  filter: none !important;
  clip-path: none !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  caret-color: #22d3ee;
}

#sy-widget-root .syw-input:focus-visible {
  outline: 0 !important;
  outline-offset: 0 !important;
}

#sy-widget-root .syw-composer {
  border-radius: 18px !important;
  clip-path: none !important;
  overflow: hidden;
}

#sy-widget-root .syw-composer:focus-within {
  border-color: rgba(34, 211, 238, 0.42) !important;
  background: rgba(255, 255, 255, 0.064) !important;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.08),
    0 0 0 4px rgba(34, 211, 238, 0.055),
    0 12px 26px rgba(0, 0, 0, 0.16) !important;
}

#sy-widget-root .syw-send {
  border-radius: 14px !important;
  clip-path: none !important;
}

/* Um pouco mais de profundidade sem deixar o launcher chamativo demais. */
#sy-widget-root .syw-launcher {
  box-shadow:
    0 18px 46px rgba(5, 11, 24, 0.44),
    0 10px 30px rgba(29, 167, 255, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
}

/* Painel ligeiramente mais compacto em desktop para não dominar a tela. */
@media (min-width: 561px) {
  #sy-widget-root .syw-panel {
    height: min(640px, calc(100vh - 38px));
    height: min(640px, calc(100dvh - 38px));
  }
}
