/* Lead-gen banner only — scoped so it does not restyle the rest of the B2B site */

.hero-banner {
  --header-bg: #1a4d6e;
  --banner-bg: #215d85;
  --brand-color: #2ec4f1;
  --brand-dark: #1eb3e0;
  background: var(--banner-bg);
  display: flex;
  align-items: center;
  min-height: 520px;
}

.hero-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.hero-banner-content {
  flex: 1.1;
  color: #fff;
  min-width: 0;
}

.hero-banner-content h1 {
  margin: 0 0 1rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: none;
}

.hero-banner .hero-subtitle {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.95;
  max-width: 520px;
  color: #fff;
}

.hero-banner .hero-input-label {
  margin: 0 0 0.65rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.hero-banner-image {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-banner-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.25));
}

.printer-setup-form {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  max-width: 560px;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.printer-setup-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.printer-setup-form input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border: none;
  border-radius: 0;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #111;
}

.printer-setup-form input::placeholder {
  color: #94a3b8;
}

.printer-setup-form input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand-color);
}

.quick-setup-btn {
  flex-shrink: 0;
  background: var(--brand-color);
  color: #fff;
  border: none;
  padding: 15px 28px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
}

.quick-setup-btn:hover:not(:disabled) {
  background: var(--brand-dark);
}

.quick-setup-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Lead gate uses brand color from banner vars */
body.brand-page {
  --brand-color: #2ec4f1;
  --brand-dark: #1eb3e0;
}

@media (max-width: 900px) {
  .hero-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.25rem;
  }

  .hero-banner .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .printer-setup-form {
    margin: 0 auto;
  }

  .hero-banner-image img {
    max-height: 240px;
  }
}

@media (max-width: 520px) {
  .printer-setup-form {
    flex-direction: column;
    border-radius: 8px;
    overflow: visible;
    box-shadow: none;
    gap: 0.5rem;
  }

  .printer-setup-form input {
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  }

  .quick-setup-btn {
    border-radius: 6px;
    width: 100%;
    padding: 14px;
  }
}

/* Lead gate modal (triggered from banner Setup Now) */
.lead-gate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lead-gate-overlay.active {
  display: flex;
}

body.lead-pending {
  overflow: hidden;
}

body.lead-pending > *:not(.lead-gate-overlay):not(script) {
  pointer-events: none;
  user-select: none;
}

.lead-gate-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: leadSlideIn 0.4s ease-out;
  pointer-events: auto;
}

@keyframes leadSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lead-gate-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.lead-gate-icon {
  margin: 0 auto 1rem;
  object-fit: contain;
  max-height: 48px;
  width: auto;
}

.lead-gate-header h2 {
  font-family: inherit;
  font-size: 1.5rem;
  color: var(--brand-color, #2ec4f1);
  margin: 0 0 0.5rem;
}

.lead-gate-header p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.lead-gate-form .lead-field {
  margin-bottom: 1rem;
}

.lead-gate-form label {
  display: block;
  font-weight: 700;
  color: #111;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.lead-gate-form input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.lead-gate-form input:focus {
  outline: none;
  border-color: var(--brand-color, #2ec4f1);
  box-shadow: 0 0 0 3px rgba(46, 196, 241, 0.2);
}

.lead-gate-submit {
  width: 100%;
  background: var(--brand-color, #2ec4f1);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.15s;
}

.lead-gate-submit:hover:not(:disabled) {
  background: var(--brand-dark, #1eb3e0);
  transform: translateY(-1px);
}

.lead-gate-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.lead-gate-trust {
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: 1rem;
}

.required {
  color: #dc2626;
}
