/* ── Email Capture Popup ── */

.ec-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ec-overlay.ec-visible {
  opacity: 1;
  visibility: visible;
}

.ec-modal {
  background: #0f0f0f;
  border: 1px solid #1e1e1e;
  border-radius: 4px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}

.ec-overlay.ec-visible .ec-modal {
  transform: translateY(0) scale(1);
}

/* Lime top bar */
.ec-modal::before {
  content: '';
  display: block;
  height: 3px;
  background: #c8ff00;
}

.ec-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #444;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
  z-index: 1;
}
.ec-close:hover { color: #fff; }

.ec-body {
  padding: 40px 40px 44px;
}

.ec-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8ff00;
  margin-bottom: 16px;
}

.ec-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 8vw, 58px);
  color: #fff;
  line-height: 1;
  margin: 0 0 12px;
}

.ec-headline span {
  color: #c8ff00;
}

.ec-sub {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin: 0 0 28px;
}

.ec-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ec-input {
  width: 100%;
  background: #141414;
  border: 1px solid #222;
  border-radius: 2px;
  padding: 15px 18px;
  font-size: 14px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.ec-input::placeholder { color: #444; }
.ec-input:focus { border-color: #c8ff00; }

.ec-btn {
  width: 100%;
  background: #c8ff00;
  color: #000;
  border: none;
  border-radius: 2px;
  padding: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s;
  position: relative;
}
.ec-btn:hover { opacity: 0.88; }
.ec-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ec-fine {
  font-size: 11px;
  color: #383838;
  text-align: center;
  margin: 8px 0 0;
}

/* ── Success state ── */
.ec-success {
  display: none;
  text-align: center;
  padding: 40px 40px 44px;
}

.ec-success.ec-show { display: block; }
.ec-body.ec-hide { display: none; }

.ec-tick {
  width: 52px;
  height: 52px;
  background: #c8ff00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.ec-tick svg {
  width: 26px;
  height: 26px;
  stroke: #000;
  stroke-width: 2.5;
  fill: none;
}

.ec-success h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: #fff;
  margin: 0 0 8px;
}

.ec-success p {
  font-size: 14px;
  color: #666;
  margin: 0 0 24px;
  line-height: 1.6;
}

.ec-code-box {
  background: #141414;
  border: 1px dashed #c8ff00;
  border-radius: 2px;
  padding: 18px 24px;
  margin-bottom: 8px;
}

.ec-code-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 6px;
}

.ec-code {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 4px;
  color: #c8ff00;
}

.ec-copy-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: #555;
  cursor: pointer;
  margin-top: 6px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.ec-copy-btn:hover { color: #c8ff00; }

@media (max-width: 520px) {
  .ec-body, .ec-success { padding: 32px 24px 36px; }
  .ec-headline { font-size: 44px; }
}
