/* ==========================================================================
   LISTEN — platform band
   ========================================================================== */

.listen { background: var(--sand); padding: clamp(4rem, 9vh, 7rem) 0; }

.listen-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}

.listen-title {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  margin: 1.1rem auto 2.8rem;
  max-width: 26ch;
}

.platform-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem 2.6rem;
  padding-top: 0.4rem;
}
.platform-band a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 470;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em;
  color: var(--espresso);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.platform-icon {
  width: clamp(23px, 2.5vw, 30px);
  height: clamp(23px, 2.5vw, 30px);
  flex-shrink: 0;
}

/* Font Awesome icons (Apple Podcasts, Threads) size via font-size, not
   width/height — an <i> glyph ignores box dimensions. */
.platform-icon-fa {
  font-size: clamp(21px, 2.3vw, 27px);
  width: auto;
  height: auto;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Desktop: force an explicit 4-top / 3-bottom split instead of letting
   flex-wrap fill each row to whatever fits (previously 6 then 1 alone). */
@media (min-width: 861px) {
  .platform-band {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.5rem;
    max-width: 50rem;
    margin: 0 auto;
  }
  .platform-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2.6rem;
  }
}

/* Mobile: the row grouping is desktop-only — flatten back into the single
   flex-wrap list so the existing 2-2-2-1 wrap pattern is untouched. */
@media (max-width: 860px) {
  .platform-row { display: contents; }
}

@media (max-width: 560px) {
  .platform-band a { font-size: clamp(1.5rem, 5.8vw, 1.9rem); }
  .platform-icon { width: clamp(26px, 7vw, 33px); height: clamp(26px, 7vw, 33px); }
  .platform-icon-fa { font-size: clamp(24px, 6.5vw, 30px); }
}
.platform-band a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out);
}
.platform-band a:hover { color: var(--orange-deep); }
.platform-band a:hover::after { width: 100%; }

/* ==========================================================================
   NEWSLETTER — dark, stay connected
   ========================================================================== */

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

.newsletter {
  background: var(--ink);
  color: var(--cream-on-dark);
  padding: clamp(4.5rem, 10vh, 7.5rem) 0;
}

.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1.16;
  padding-bottom: 0.05em;
  margin: 1.1rem 0 2.4rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}
.newsletter-form[hidden] { display: none; }
.newsletter-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  padding: 0.8rem 0.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream-on-dark);
  text-align: center;
  transition: border-color 0.2s ease;
}
.newsletter-input::placeholder { color: var(--muted-on-dark); }
.newsletter-input:focus { outline: none; border-bottom-color: var(--orange); }

.newsletter-submit {
  flex-shrink: 0;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--muted-on-dark);
  background: transparent;
  color: var(--cream-on-dark);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.newsletter-submit:hover { border-color: var(--orange); color: var(--orange); }
.newsletter-submit:disabled { opacity: 0.55; cursor: default; border-color: var(--muted-on-dark); color: var(--muted-on-dark); }

.newsletter-success {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--orange);
  border-radius: 2px;
  background: rgba(246, 236, 221, 0.03);
  text-align: left;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.newsletter-success[hidden] { display: none; }
.newsletter-success.is-visible { opacity: 1; transform: translateY(0); }

.newsletter-success-watermark {
  position: absolute;
  top: 50%;
  right: -0.5rem;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 3.4rem;
  letter-spacing: -0.03em;
  color: var(--orange);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.newsletter-success-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s, opacity 0.3s ease 0.1s;
}
.newsletter-success.is-visible .newsletter-success-icon {
  transform: scale(1);
  opacity: 1;
}

.newsletter-success-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  opacity: 0;
}
.newsletter-success.is-visible .newsletter-success-ring {
  animation: newsletter-ring-pulse 1s var(--ease-out) 0.35s;
}

@keyframes newsletter-ring-pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}

.newsletter-success-copy { position: relative; z-index: 1; }

.newsletter-success-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.3rem;
}

.newsletter-success-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--cream-on-dark);
  line-height: 1.3;
}

.newsletter-success-sub {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted-on-dark);
  margin-top: 0.3rem;
}

@media (max-width: 480px) {
  .newsletter-success-watermark { font-size: 2.4rem; opacity: 0.05; }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-success-icon { transition: none; transform: none; opacity: 1; }
  .newsletter-success.is-visible .newsletter-success-ring { animation: none; }
}

.newsletter-error {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-on-dark);
  margin-top: 0.6rem;
  text-align: center;
}

@media (min-width: 560px) {
  .newsletter-form { flex-direction: row; align-items: center; justify-content: center; }
  .newsletter-input { width: 20rem; text-align: left; }
}
