/* ==========================================================================
   Newsletter signup — conversion panel (footer-adjacent)
   Atmosphere imagery lives in background.css (.gg-section-atmosphere--newsletter).
   ========================================================================== */

/* Outer band: aligned with videos md + breves base. */
.newsletter-section {
  padding-block: var(--space-10); /* 40 — same as breves / recommended */
}

@media (min-width: 640px) {
  .newsletter-section {
    padding-block: var(--space-12); /* 48 */
  }
}

@media (min-width: 768px) {
  .newsletter-section {
    padding-block: var(--space-16); /* 64 — matches videos md ceiling */
  }
}

.newsletter-section__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(var(--color-border));
  border-radius: 0;
  background: rgb(var(--color-surface) / 0.92);
  backdrop-filter: blur(2px);
  padding: var(--space-8);
}

.newsletter-section__ticks {
  inset: 0.75rem;
  opacity: 0.7;
}

.newsletter-section__ticks .gg-hex-ticks__tick {
  filter: none;
  opacity: 0.55;
  color: rgb(var(--color-brand));
}

.newsletter-section__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .newsletter-section__panel {
    padding: var(--space-10) var(--space-12);
  }

  .newsletter-section__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(12rem, 0.65fr);
    gap: var(--space-10);
  }
}

.newsletter-section__main {
  min-width: 0;
  max-width: 38rem;
}

.newsletter-section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 var(--space-3);
  font-size: var(--text-label-size, 0.75rem);
  line-height: var(--text-label-line, 1.2);
  font-weight: var(--text-label-weight, 700);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--color-brand));
}

.newsletter-section__kicker .gg-hex-accent-mark {
  gap: 0;
}

.newsletter-section__title {
  margin: 0 0 var(--space-3);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: var(--font-weight-semibold, 600);
  color: rgb(var(--color-ink));
}

@media (min-width: 640px) {
  .newsletter-section__title {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .newsletter-section__title {
    font-size: 2.25rem;
  }
}

.newsletter-section__lede {
  margin: 0 0 var(--space-5);
  color: rgb(var(--color-ink-muted));
  font-size: 1rem;
  line-height: 1.55;
  max-width: 36rem;
}

.newsletter-section__props {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
}

.newsletter-section__prop {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem 0.35rem 0.5rem;
  border: 1px solid rgb(var(--color-border));
  background: rgb(var(--color-bg) / 0.55);
  color: rgb(var(--color-ink));
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: 600;
}

.newsletter-section__prop-mark {
  display: block;
  width: 0.35rem;
  height: 0.35rem;
  flex-shrink: 0;
  background: rgb(var(--color-brand));
  /* Pointy-top hex pip — signature without hex markup spam */
  clip-path: var(--gg-hex-clip);
}

.newsletter-section__status {
  margin: 0 0 var(--space-4);
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.newsletter-section__status--ok {
  border-color: rgb(var(--color-success));
  color: rgb(var(--color-success));
  background: rgb(var(--color-success) / 0.08);
}

.newsletter-section__status--error {
  border-color: rgb(var(--color-danger));
  color: rgb(var(--color-danger));
  background: rgb(var(--color-danger) / 0.08);
}

/* Form as one clear action unit */
.newsletter-section__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
}

@media (min-width: 640px) {
  .newsletter-section__form {
    flex-direction: row;
    align-items: flex-end;
    gap: var(--space-3);
  }
}

.newsletter-section__field {
  flex: 1 1 auto;
  min-width: 0;
}

.newsletter-section__label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgb(var(--color-ink));
}

.newsletter-section__control {
  position: relative;
}

.newsletter-section__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  color: rgb(var(--color-ink-muted));
  pointer-events: none;
}

.newsletter-section__input {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  border: 1px solid rgb(var(--color-border));
  border-radius: 0;
  background: rgb(var(--color-bg));
  color: rgb(var(--color-ink));
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  transition:
    border-color var(--duration-base) var(--ease-standard),
    background-color var(--duration-base) var(--ease-standard);
}

.newsletter-section__input::placeholder {
  color: rgb(var(--color-ink-muted));
  opacity: 0.85;
}

.newsletter-section__input:hover {
  border-color: rgb(var(--color-brand) / 0.55);
}

.newsletter-section__input:focus {
  outline: none;
}

.newsletter-section__input:focus-visible {
  border-color: rgb(var(--color-focus));
}

.newsletter-section__submit {
  flex: 0 0 auto;
  width: 100%;
  min-height: 3.25rem;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .newsletter-section__submit {
    width: auto;
    min-width: 11.5rem;
  }
}

.newsletter-section__trust {
  margin: var(--space-4) 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(var(--color-ink-muted));
}

.newsletter-section__trust-link {
  margin-left: 0.35em;
  color: rgb(var(--color-brand));
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color var(--duration-fast) var(--ease-standard);
}

.newsletter-section__trust-link:hover,
.newsletter-section__trust-link:focus-visible {
  color: rgb(var(--color-accent));
}

/* Brand endorsement column — intentional, not a faded afterthought */
.newsletter-section__brand {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
}

@media (min-width: 1024px) {
  .newsletter-section__brand {
    display: flex;
  }
}

.newsletter-section__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 14rem;
  max-height: 8.5rem;
  object-fit: contain;
  opacity: 1;
}

.newsletter-logo {
  animation: newsletter-float 3s ease-in-out infinite;
}

@keyframes newsletter-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.newsletter-section__brand-note {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--color-ink-muted));
}

.light-mode .newsletter-section__panel {
  background: rgb(var(--color-surface) / 0.96);
}

.light-mode .newsletter-section__prop {
  background: rgb(var(--color-bg) / 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-logo {
    animation: none;
  }
}
