/* ============================================================
   Email Capture — Free Lesson signup block (Guitar Lick Lab)
   Universal styling shared across all 13 tool pages.
   Matches v2.x design system (warm dark + amber accent).
   ============================================================ */

.email-capture-section {
  margin: 36px auto 28px;
  padding: 0 16px;
  max-width: 880px;
}

.email-capture-card {
  position: relative;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(212, 160, 76, 0.08) 0%, transparent 55%),
    linear-gradient(135deg, rgba(50, 35, 28, 0.7) 0%, rgba(28, 20, 16, 0.85) 100%);
  border: 1px solid rgba(212, 160, 76, 0.28);
  border-radius: 14px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 22px;
  align-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.email-capture-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 76, 0.22);
  display: block;
}

.email-capture-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.email-capture-eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright, #f0c068);
  font-weight: 500;
}

.email-capture-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  margin: 2px 0 4px 0;
  color: #f5ede0;
}

.email-capture-body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #c8b8a4;
  margin: 0 0 10px 0;
}

.email-capture-form {
  display: flex;
  gap: 8px;
  margin: 2px 0 4px;
}

.email-capture-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(212, 160, 76, 0.28);
  color: #f5ede0;
  padding: 10px 14px;
  border-radius: 7px;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 14px;
  transition: border-color 120ms, background 120ms;
}

.email-capture-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-bright, #f0c068);
  background: rgba(0, 0, 0, 0.56);
}

.email-capture-form input[type="email"]::placeholder {
  color: #7a6f60;
}

.email-capture-form button {
  flex: 0 0 auto;
  background: linear-gradient(180deg, var(--accent-bright, #f0c068) 0%, var(--accent, #d4a04c) 100%);
  color: #1a1208;
  border: none;
  padding: 10px 22px;
  border-radius: 7px;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 80ms, filter 120ms;
}

.email-capture-form button:hover:not(:disabled) {
  filter: brightness(1.08);
}

.email-capture-form button:active:not(:disabled) {
  transform: translateY(1px);
}

.email-capture-form button:disabled {
  opacity: 0.65;
  cursor: progress;
}

.email-capture-error {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #f0a888;
  margin-top: 4px;
}

.email-capture-success {
  background: rgba(94, 156, 92, 0.13);
  border: 1px solid rgba(94, 156, 92, 0.38);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #d8e8c8;
  margin-top: 2px;
}

.email-capture-success a.email-capture-download {
  color: var(--accent-bright, #f0c068);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--accent, #d4a04c);
  transition: color 120ms;
}

.email-capture-success a.email-capture-download:hover {
  color: #fff;
}

.email-capture-fineprint {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 11.5px;
  line-height: 1.4;
  color: #8a7d6e;
  margin: 4px 0 0 0;
}

.email-capture-hidden {
  display: none !important;
}

/* Mobile: stack vertically, center the thumbnail */
@media (max-width: 680px) {
  .email-capture-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    text-align: left;
  }
  .email-capture-thumb {
    max-width: 200px;
    margin: 0 auto;
  }
  .email-capture-form {
    flex-direction: column;
  }
  .email-capture-form button {
    width: 100%;
  }
  .email-capture-headline {
    font-size: 22px;
  }
}
