/* ==========================================================================
   Newsletter band (above the footer, every page) — the www.incode.com footer
   newsletter block (site-footer.css, 2026-10-01) ported with its token values
   resolved: DM Sans, 44px / 12px-radius controls, dark ground.
   The .sib-* / .entry* / .input hooks are Brevo's runtime contract (it toggles
   classes and inline display on them); ours are nl__*.
   ========================================================================== */

.nl {
  background: #050505;
  color: #FFFFFF;
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

.nl__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 48px;
}

.nl__title {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: #FFFFFF;
}

.nl__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.nl__sib {
  flex: 1 1 320px;
  min-width: 0;
}

.nl__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.nl__field {
  flex: 1 1 220px;
  min-width: 0;
}

.nl__entry { position: relative; }

/* the field: hairline + faint fill on the ink */
.nl__input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  transition: border-color 0.2s, background-color 0.2s;
}

.nl__input::placeholder { color: rgba(255, 255, 255, 0.5); }

.nl__input:hover { border-color: rgba(255, 255, 255, 0.3); }

.nl__input:focus {
  outline: none;
  border-color: #006AFF;
  background: rgba(255, 255, 255, 0.08);
}

/* Brevo marks the entry .entry_errored and writes the message into the
   label (inline display:block) — we only color them */
.entry_errored .nl__input { border-color: #ff6467; }

.nl__error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: #ffa2a2;
}

/* Buttons: the kit's .btn at the dark-ground 44px / 12px-radius size */
.nl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* primary: solid blue at rest; hover slides a blue → ink gradient through
   (same page blue as the landing's CTAs) */
.nl-btn--primary {
  background-color: #006AFF;
  background-image: linear-gradient(115deg, #006AFF 0%, #006AFF 48%, #000000 100%);
  background-size: 230% 100%;
  background-position: 0% 0;
  color: #FFFFFF;
}

.nl-btn--primary:hover { background-position: 100% 0; }

.nl-btn--primary:disabled { opacity: 0.7; cursor: default; }

.nl-btn--ghost {
  padding-inline: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #FFFFFF;
}

.nl-btn--ghost:hover { border-color: rgba(255, 255, 255, 0.5); }

.nl-btn:focus-visible {
  outline: 2px solid #006AFF;
  outline-offset: 2px;
}

/* Brevo's loader toggle: it removes .sib-hide-loader-icon from the svg
   while the XHR is in flight and puts it back after */
.nl__spinner {
  width: 16px;
  height: 16px;
  animation: nl-spin 0.8s linear infinite;
}

.nl__spinner.sib-hide-loader-icon { display: none; }

@keyframes nl-spin { to { transform: rotate(360deg); } }

.nl__linkedin svg {
  width: 16px;
  height: 16px;
}

/* Brevo's honeypot */
.nl__hp { display: none; }

/* result panels — Brevo toggles .sib-form-message-panel--active */
.nl__msg {
  display: none;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 20px;
}

.nl__msg.sib-form-message-panel--active { display: block; }

.nl__msg p { margin: 0; }

.nl__msg--ok { color: #1EC677; }

.nl__msg--error { color: #ffa2a2; }

.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;
}

@media (min-width: 1024px) {
  .nl__block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 24px 48px;
    align-items: start;
  }

  /* 10px top/bottom seats the 24px title on the 44px control row */
  .nl__title {
    margin: 0;
    padding-block: 10px;
  }
}

@media (max-width: 768px) {
  .nl__inner { padding: 40px 20px; }
}

@media (max-width: 639px) {
  .nl__btn,
  .nl__linkedin { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nl__spinner { animation: none; }
  .nl-btn { transition: none; }
}
