/* Lead-gen banner only — scoped so it does not restyle the rest of the B2B site */

.hero-banner {
  --header-bg: #8f1d2c;
  --banner-bg: #b42335;
  --brand-color: #c62838;
  --brand-dark: #a91f30;
  background: var(--banner-bg);
  display: flex;
  align-items: center;
  min-height: 520px;
}

.banner-intro {
  padding: 1.1rem 0;
  background: #fff6f6;
  border-bottom: 1px solid rgba(234, 213, 215, 0.8);
}

.printer-guide {
  padding: clamp(3rem, 6vw, 5.25rem) 0;
  background: #fff;
}

.printer-guide-heading {
  max-width: 710px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.guide-eyebrow {
  margin: 0 0 .45rem;
  color: #a91f30;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.printer-guide-heading h2 {
  margin: 0 0 .65rem;
  color: #4a1e23;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.printer-guide-heading > p:last-child {
  margin: 0;
  color: #70565a;
}

.printer-guide-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.setup-steps {
  display: grid;
  gap: 1.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.step-number {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: #fdecef;
  color: #8f1d2c;
  font-size: .78rem;
  font-weight: 700;
}

.setup-steps h3 {
  margin: .1rem 0 .25rem;
  color: #4a1e23;
  font-size: 1.03rem;
}

.setup-steps p {
  margin: 0;
  color: #70565a;
  font-size: .94rem;
  line-height: 1.65;
}

.printer-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.printer-photo-grid figure {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #ead5d7;
  border-radius: 12px;
  background: #fffafa;
}

.printer-photo-grid img {
  width: 100%;
  height: 190px;
  padding: .65rem;
  object-fit: contain;
}

.printer-photo-grid figcaption {
  padding: .7rem .9rem;
  border-top: 1px solid #ead5d7;
  color: #5a3c3f;
  font-size: .84rem;
  font-weight: 600;
}

.setup-tip {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid #c62838;
  border-radius: 0 8px 8px 0;
  background: #fff5f6;
  color: #51373b;
}

.setup-tip strong { font-size: .9rem; }
.setup-tip p { margin: .25rem 0 0; color: #70565a; font-size: .88rem; line-height: 1.55; }

.connection-guides {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.connection-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #ead5d7;
  border-radius: 14px;
  background: #fffafa;
}

.connection-copy h3 {
  margin: 0 0 .8rem;
  color: #4a1e23;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.2;
}

.connection-copy .guide-eyebrow { margin-bottom: .35rem; }

.connection-copy ol {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding-left: 1.3rem;
  color: #40576a;
  font-size: .91rem;
  line-height: 1.6;
}

.connection-copy li { padding-left: .2rem; }
.connection-copy li::marker { color: #a91f30; font-weight: 700; }

.connection-note {
  margin: 1rem 0 0;
  padding: .8rem .9rem;
  border-radius: 8px;
  background: #fff5f6;
  color: #40576a;
  font-size: .87rem;
  line-height: 1.55;
}

.connection-diagram {
  min-width: 0;
  margin: 0;
}

.connection-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.connection-diagram figcaption {
  margin-top: .45rem;
  color: #617587;
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
}

.printer-photo-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 1.5rem auto 0;
}

.printer-photo-strip figure {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  margin: 0;
  padding: .5rem .75rem;
  border: 1px solid #ead5d7;
  border-radius: 10px;
  background: #fffafa;
}

.printer-photo-strip img {
  width: 120px;
  height: 90px;
  object-fit: contain;
}

.printer-photo-strip figcaption {
  color: #40576a;
  font-size: .85rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .printer-guide-layout { grid-template-columns: 1fr; gap: 2.25rem; }
  .printer-photo-grid img { height: 160px; }
  .connection-card { grid-template-columns: 1fr; }
  .connection-diagram { max-width: 520px; margin-inline: auto; }
  .printer-photo-strip figure { grid-template-columns: 90px 1fr; }
  .printer-photo-strip img { width: 90px; }
}

@media (max-width: 480px) {
  .printer-photo-strip { grid-template-columns: 1fr; }
  .connection-card { padding: 1rem; }
}

.banner-intro p {
  max-width: 68rem;
  margin: 0 auto;
  color: #405466;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.banner-intro h1 {
  max-width: none;
  margin: 0 0 0.35rem;
  color: #1f3a50;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
}

.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.1rem, 1.8vw, 1.35rem);
  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: 0.78rem;
  line-height: 1.45;
  opacity: 0.95;
  max-width: 520px;
  color: #fff;
}

.hero-banner .hero-business-note {
  margin: 1cm 0 1.5rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--brand-color);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 520px;
}

.hero-banner .hero-input-label {
  margin: 0 0 1.25rem;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.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 8px 26px rgba(0, 0, 0, 0.24), 0 0 0 3px rgba(198, 40, 56, 0.3);
}

.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: 17px 18px;
  border: none;
  border-radius: 0;
  font-size: 1.1rem;
  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: 17px 28px;
  border-radius: 0;
  font-size: 1.05rem;
  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: 1;
  background: var(--brand-color);
  color: #fff;
  cursor: not-allowed;
}

/* Lead gate uses brand color from banner vars */
body.brand-page {
  --brand-color: #c62838;
  --brand-dark: #a91f30;
}

@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;
  }

  .hero-banner .hero-business-note {
    margin-left: auto;
    margin-right: auto;
    border-left: 0;
    padding-left: 0;
  }

  .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, #c62838);
  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, #c62838);
  box-shadow: 0 0 0 3px rgba(198, 40, 56, 0.2);
}

.lead-gate-submit {
  width: 100%;
  background: var(--brand-color, #c62838);
  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, #a91f30);
  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;
}
