/**
 * SynkTribe Signal Updates — scoped cinematic styles.
 * Lane: SYNKTRIBE-WORDPRESS-NEWSLETTER-SIGNAL-UPDATES-SUBSCRIPTION-IMPLEMENTATION-01
 */

body.st-newsletter-page {
  --st-nl-bg-0: var(--st-mkt-bg-page-0);
  --st-nl-bg-1: var(--st-mkt-bg-page-1);
  --st-nl-text-0: var(--st-mkt-heading-alt);
  --st-nl-text-1: var(--st-mkt-text-secondary);
  --st-nl-text-2: var(--st-mkt-text-muted);
  --st-nl-line: var(--st-mkt-glass-border);
  --st-nl-glass: var(--st-mkt-glass-bg);
  --st-nl-panel: var(--st-mkt-surface-elevated);
  --st-nl-accent: var(--st-mkt-accent);
  --st-nl-accent-bright: var(--st-mkt-accent-bright);
  --st-nl-btn-primary-bg: var(--st-mkt-cta-bg);
  --st-nl-btn-primary-text: var(--st-mkt-cta-fg);
  --st-nl-shadow: var(--st-mkt-shadow);
  --st-nl-footer-bg: var(--st-mkt-terminal-footer-bg);
  --st-nl-footer-text: var(--st-mkt-terminal-footer-text);
  --st-nl-signal: #58d7ff;
  --st-nl-cyan: #3de0d0;

  background:
    radial-gradient(circle at 12% 8%, rgba(88, 215, 255, 0.14), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(61, 224, 208, 0.1), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(74, 141, 255, 0.06), transparent 40%),
    linear-gradient(180deg, var(--st-nl-bg-1) 0%, var(--st-nl-bg-0) 48%, var(--st-mkt-bg-page-end) 100%);
  color: var(--st-nl-text-0);
  overflow-x: clip;
}

:root[data-theme="dark"] body.st-newsletter-page {
  background:
    radial-gradient(circle at 10% 8%, rgba(88, 215, 255, 0.08), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(61, 224, 208, 0.06), transparent 22%),
    linear-gradient(180deg, var(--st-nl-bg-1) 0%, var(--st-nl-bg-0) 100%);
}

body.st-newsletter-page .st-site-main {
  min-height: auto;
}

.st-main--newsletter {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 28px);
  padding-bottom: 0;
}

.st-nl-shell {
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
}

.st-nl-section {
  padding: clamp(28px, 5vw, 56px) 0;
}

.st-nl-section--band {
  background: var(--st-nl-panel);
  border-block: 1px solid var(--st-nl-line);
  padding-inline: clamp(16px, 3vw, 24px);
  border-radius: 18px;
  margin-inline: clamp(8px, 2vw, 16px);
}

.st-nl-panel {
  border: 1px solid var(--st-nl-line);
  border-radius: 18px;
  background: var(--st-nl-glass);
  box-shadow: var(--st-nl-shadow);
  backdrop-filter: blur(12px);
}

.st-nl-section__header {
  max-width: 760px;
  margin-bottom: 32px;
}

.st-nl-section__header--center {
  margin-inline: auto;
  text-align: center;
}

.st-nl-section__header h2 {
  margin: 12px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--st-nl-text-0);
}

.st-nl-section__intro {
  margin: 14px 0 0;
  color: var(--st-nl-text-1);
  line-height: 1.6;
}

.st-nl-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-nl-accent-bright);
}

.st-nl-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--st-nl-line);
  color: var(--st-nl-text-1);
  background: rgba(255, 255, 255, 0.04);
}

.st-nl-chip--eyebrow {
  color: var(--st-nl-accent-bright);
  border-color: rgba(88, 215, 255, 0.35);
}

.st-nl-chip--selected {
  color: var(--st-nl-btn-primary-text);
  background: var(--st-nl-accent);
  border-color: transparent;
}

.st-nl-frame-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-nl-text-2);
  margin-bottom: 16px;
}

.st-nl-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: stretch;
}

@media (max-width: 860px) {
  .st-nl-hero__grid {
    grid-template-columns: 1fr;
  }
}

.st-nl-hero__copy {
  padding: clamp(24px, 4vw, 40px);
}

.st-nl-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.st-nl-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.08;
  color: var(--st-nl-text-0);
}

.st-nl-hero__lede {
  margin: 0 0 12px;
  color: var(--st-nl-text-1);
  line-height: 1.65;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.st-nl-hero__note {
  margin: 0 0 24px;
  color: var(--st-nl-text-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.st-nl-hero__signal {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.st-nl-signal-ring,
.st-nl-signal-core,
.st-nl-signal-pulse {
  position: absolute;
  border-radius: 50%;
}

.st-nl-signal-ring {
  width: min(72%, 220px);
  aspect-ratio: 1;
  border: 1px solid rgba(88, 215, 255, 0.35);
  box-shadow: 0 0 40px rgba(88, 215, 255, 0.12);
}

.st-nl-signal-core {
  width: min(38%, 110px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(88, 215, 255, 0.55), rgba(61, 224, 208, 0.15) 68%, transparent 72%);
}

.st-nl-signal-pulse {
  width: min(92%, 280px);
  aspect-ratio: 1;
  border: 1px dashed rgba(61, 224, 208, 0.2);
  animation: st-nl-pulse 6s ease-in-out infinite;
}

@keyframes st-nl-pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.5; }
  50% { transform: scale(1.04); opacity: 0.9; }
}

.st-nl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.st-nl-btn--primary {
  background: var(--st-nl-btn-primary-bg);
  color: var(--st-nl-btn-primary-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.st-nl-btn--primary:hover {
  transform: translateY(-1px);
}

.st-nl-form button.st-nl-btn--primary {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.st-nl-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.st-nl-signal-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.st-nl-signal-card:hover {
  border-color: rgba(88, 215, 255, 0.45);
}

.st-nl-signal-card.is-selected {
  border-color: rgba(88, 215, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(88, 215, 255, 0.2), var(--st-nl-shadow);
}

.st-nl-signal-card__label {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--st-nl-text-0);
}

.st-nl-signal-selection {
  margin: 20px 0 0;
  color: var(--st-nl-text-1);
  font-size: 0.95rem;
}

.st-nl-form-slot {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 36px);
}

.st-nl-form-slot__notice {
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  line-height: 1.55;
}

.st-nl-form-slot__notice--success {
  background: rgba(78, 207, 138, 0.12);
  border: 1px solid rgba(78, 207, 138, 0.35);
}

.st-nl-form-slot__notice--error {
  background: rgba(255, 120, 120, 0.1);
  border: 1px solid rgba(255, 120, 120, 0.35);
}

.st-nl-form-slot__ticket {
  margin: 8px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.st-nl-form-slot__ticket-note,
.st-nl-form-slot__hint {
  margin: 8px 0 0;
  color: var(--st-nl-text-2);
  font-size: 0.92rem;
}

.st-nl-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.st-nl-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .st-nl-form__grid {
    grid-template-columns: 1fr;
  }
}

.st-nl-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--st-nl-text-1);
  font-size: 0.92rem;
}

.st-nl-form__field input,
.st-nl-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--st-nl-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--st-nl-text-0);
  font: inherit;
}

.st-nl-form__field em {
  color: var(--st-nl-text-2);
  font-style: normal;
}

.st-nl-form__signals-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.st-nl-form__signals-legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--st-nl-text-0);
}

.st-nl-form__signals-legend span {
  font-weight: 400;
  color: var(--st-nl-text-2);
}

.st-nl-form__signal-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.st-nl-form__signal-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--st-nl-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--st-nl-text-1);
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}

.st-nl-form__signal-option:has(input:checked) {
  border-color: rgba(88, 215, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(88, 215, 255, 0.15);
}

.st-nl-form__signal-option input {
  margin-top: 3px;
  flex-shrink: 0;
  pointer-events: auto;
}

.st-nl-form__consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--st-nl-text-2);
  font-size: 0.88rem;
  line-height: 1.5;
}

.st-nl-form__consent input {
  margin-top: 4px;
  flex-shrink: 0;
}

.st-nl-points {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--st-nl-text-1);
  line-height: 1.65;
  display: grid;
  gap: 10px;
}

.st-nl-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.st-nl-ecosystem-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 16px;
  text-decoration: none;
  color: var(--st-nl-text-0);
  font-weight: 600;
  transition: border-color 0.15s ease;
}

.st-nl-ecosystem-card:hover {
  border-color: rgba(88, 215, 255, 0.45);
}

/* Terminal footer */
.st-newsletter-footer,
.st-nl-footer {
  position: relative;
  margin-top: clamp(24px, 4vw, 40px);
  background: var(--st-nl-footer-bg);
  color: var(--st-nl-footer-text);
  overflow: hidden;
}

.st-nl-footer__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(88, 215, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.st-nl-footer__scanlines {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background: repeating-linear-gradient(180deg, transparent, transparent 2px, #fff 2px, #fff 3px);
  pointer-events: none;
}

.st-nl-footer__inner {
  position: relative;
  padding: clamp(32px, 5vw, 56px) 0;
}

.st-nl-footer__terminal {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: clamp(20px, 4vw, 32px);
  background: rgba(0, 0, 0, 0.18);
}

.st-nl-footer__frame-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 20px;
}

.st-nl-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(20px, 4vw, 32px);
}

@media (max-width: 860px) {
  .st-nl-footer__grid {
    grid-template-columns: 1fr;
  }
}

.st-nl-footer__title {
  margin: 8px 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.st-nl-footer__subtitle {
  margin: 0 0 16px;
  opacity: 0.82;
  line-height: 1.55;
}

.st-nl-footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-nl-footer__chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.st-nl-footer__heading {
  margin: 0 0 12px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.st-nl-footer__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-nl-footer__pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  text-decoration: none;
  font-size: 0.88rem;
}

.st-nl-footer__pill:hover {
  border-color: rgba(88, 215, 255, 0.45);
}

.st-nl-footer__strip {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
}

.st-nl-footer__strip-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}
