/*!
 * Creatiq theme — Subscribe pre-footer band styles
 * Authored:  2026-08-11 by Hermes
 * Spec:      mail/inbox/2026-08-09T0026Z-apollo-creatiq-ghost-email-capture.md
 * Aesthetic: primary-content feel (NOT utility footer).
 *            Headline + sub + form. Brand purple gradient backdrop.
 *            Generous vertical padding. 8px baseline grid.
 * Typography: Oswald headline (matches existing primary CTA tone), DM Sans body.
 * Contrast:  white-on-purple exceeds WCAG AA (4.5:1).
 * Variables: --brand-purple #8B5CF6, --brand-purple-dark #7C3AED,
 *             --bg-elevated #14141C, --text-muted rgba(250,250,252,0.5)
 *             (consistent with theme tokens).
 * Backout:   drop <link> from default.hbs or rm this file.
 */

.subscribe-band {
  position: relative;
  padding: clamp(80px, 12vh, 140px) 0;
  background:
    radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(124, 58, 237, 0.12), transparent 60%),
    linear-gradient(180deg, #0d0d14 0%, #14141c 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.18);
  color: #fff;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

.subscribe-band__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  text-align: center;
}

.subscribe-band__heading {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #fff;
}

.subscribe-band__sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(250, 250, 252, 0.55);
  margin: 0 auto 40px;
  max-width: 540px;
}

.subscribe-band__form {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.subscribe-band__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.subscribe-band__input {
  flex: 1 1 280px;
  min-width: 240px;
  padding: 14px 20px;
  font-size: 16px;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #fff;
  background: rgba(20, 20, 28, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.subscribe-band__input::placeholder {
  color: rgba(250, 250, 252, 0.35);
}

.subscribe-band__input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.subscribe-band__btn {
  flex: 0 0 auto;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #fff;
  background: #8B5CF6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.subscribe-band__btn:hover,
.subscribe-band__btn:focus {
  background: #7C3AED;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
  outline: none;
}

.subscribe-band__btn:active {
  transform: translateY(0);
}

.subscribe-band__msg {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.subscribe-band__msg:not([hidden]) {
  display: block;
}

.subscribe-band__msg--success {
  color: #a5e6c2;
}

.subscribe-band__msg--error {
  color: #ff8b8b;
}

.subscribe-band__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive: stack on mobile */
@media (max-width: 600px) {
  .subscribe-band__row {
    flex-direction: column;
  }
  .subscribe-band__input,
  .subscribe-band__btn {
    width: 100%;
  }
}

/* Reduced motion: disable hover lift */
@media (prefers-reduced-motion: reduce) {
  .subscribe-band__btn {
    transition: background 0.2s ease;
  }
  .subscribe-band__btn:hover {
    transform: none;
  }
}