/* ============================================================
   S7 — Email Lead Capture Section
   Loaded as: css/email-capture.css (index.html only)
   Palette: locked — #40045D | #000000 | #FFFFFF | #C9A227 | #0B0B0D | #161418
   Typography: Playfair Display 700 (display) / DM Sans 400/600/700 (body)
   Stan Store direct CTA overrides included at bottom.
   ============================================================ */


/* ============================================================
   SECTION CONTAINER
   ============================================================ */

.email-capture {
  background-color: #40045D;
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}

/* Subtle texture overlay — does not obscure text */
.email-capture::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.email-capture__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}


/* ============================================================
   HEADER
   ============================================================ */

.email-capture__header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.email-capture__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 20px;
}

.email-capture__heading {
  font-family: 'League Spartan', 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #FFFFFF;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.email-capture__subhead {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin: 0;
}


/* ============================================================
   TWO-OPTION LAYOUT
   ============================================================ */

.email-capture__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.email-capture__option {
  background-color: rgba(0, 0, 0, 0.25);
  padding: 44px 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.email-capture__option--primary {
  background-color: rgba(0, 0, 0, 0.4);
  border-top: 2px solid #C9A227;
}

.email-capture__option-num {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.6875rem;
  color: #C9A227;
  letter-spacing: 0.1em;
}

.email-capture__option-name {
  font-family: 'League Spartan', 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #FFFFFF;
  line-height: 1.3;
  margin: 0;
}

.email-capture__option-body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

.email-capture__option-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0B0B0D;
  background-color: #C9A227;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 2px;
  margin-top: 8px;
  align-self: flex-start;
  transition: background-color 0.2s ease;
}

.email-capture__option-cta:hover {
  background-color: #FFFFFF;
}

.email-capture__option-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  margin-top: 4px;
}

.email-capture__option-link:hover {
  color: rgba(255, 255, 255, 0.75);
}


/* ============================================================
   MAILERLITE FORM OVERRIDES
   Approved visual spec:
   - Outer: #40045D (section background — inherited)
   - Card: light silver/gray (#F2F2F0) on the dark purple
   - Heading: "EMAIL" — gold label treatment
   - Support text: "Claim the free guide through Stan and receive it by email."
   - Field label/placeholder: "Email"
   - Button: #C9A227 gold / text #111111
   - Button hover: darker gold #A8841E
   All overrides scoped inside .email-capture__form.
   ============================================================ */

/* Card wrapper — light silver/gray card on purple */
.email-capture__form {
  margin: 16px 0 4px;
  background-color: #F2F2F0;
  border-top: 3px solid #C9A227;
  border-radius: 2px;
  padding: 28px 28px 24px;
}

/* Card heading — "EMAIL" */
.email-capture__form::before {
  content: 'EMAIL';
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: #C9A227;
  margin-bottom: 8px;
}

/* Card support text — "Claim the free guide through Stan and receive it by email." */
.email-capture__form::after {
  content: 'Claim the free guide through Stan and receive it by email.';
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  color: #3a3a3a;
  line-height: 1.5;
  margin-bottom: 16px;
  margin-top: -4px;
}

/* Strip ALL ML wrapper chrome */
.email-capture__form .ml-embedded,
.email-capture__form .ml-form-embedWrapper,
.email-capture__form .ml-form-embedBody,
.email-capture__form .ml-form-embedContent,
.email-capture__form .ml-form-fieldRow,
.email-capture__form .ml-form-formContent {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* ML label — "Email" */
.email-capture__form label {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #444444 !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 6px !important;
  display: block !important;
  text-transform: none !important;
}

/* ML input field */
.email-capture__form input[type="email"],
.email-capture__form input[type="text"] {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9375rem !important;
  color: #111111 !important;
  background-color: #FFFFFF !important;
  border: 1px solid #CCCCCC !important;
  border-radius: 2px !important;
  padding: 12px 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.email-capture__form input[type="email"]::placeholder,
.email-capture__form input[type="text"]::placeholder {
  color: #999999 !important;
}

.email-capture__form input[type="email"]:focus,
.email-capture__form input[type="text"]:focus {
  border-color: #C9A227 !important;
  outline: none !important;
}

/* ML submit button — "Send Me the Guide" */
.email-capture__form button[type="submit"],
.email-capture__form .ml-form-embedSubmit button,
.email-capture__form input[type="submit"] {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #111111 !important;
  background-color: #C9A227 !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 14px 28px !important;
  cursor: pointer !important;
  width: 100% !important;
  margin-top: 12px !important;
  transition: background-color 0.2s ease !important;
}

/* Button hover — darker gold */
.email-capture__form button[type="submit"]:hover,
.email-capture__form .ml-form-embedSubmit button:hover,
.email-capture__form input[type="submit"]:hover {
  background-color: #A8841E !important;
  color: #111111 !important;
}

/* ML success state */
.email-capture__form .ml-form-successBody,
.email-capture__form .ml-form-successContent {
  background: transparent !important;
  color: #111111 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9375rem !important;
  padding: 8px 0 !important;
  text-align: left !important;
}

/* ML error state */
.email-capture__form .ml-error input[type="email"],
.email-capture__form .ml-error input[type="text"] {
  border-color: #c0392b !important;
}

.email-capture__form .ml-error label {
  color: #c0392b !important;
}

/* GDPR / recaptcha — subdue */
.email-capture__form .ml-form-embedPermissions,
.email-capture__form .ml-form-recaptcha,
.email-capture__form .ml-form-checkboxRow {
  font-size: 0.6875rem !important;
  color: #666666 !important;
  opacity: 0.7;
  margin-top: 8px !important;
}

/* Strip any ML link colors */
.email-capture__form a {
  color: #40045D !important;
}

/* Stan Store direct CTA — replaces non-functional embedded email capture path */
.email-capture__stan-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: #111111;
  background-color: #C9A227;
  border: none;
  border-radius: 2px;
  padding: 14px 28px;
  cursor: pointer;
  margin-top: 12px;
  transition: background-color 0.2s ease;
}

.email-capture__stan-cta:hover,
.email-capture__stan-cta:focus {
  background-color: #A8841E;
  color: #111111;
}


/* ============================================================
   RESPONSIVE — MOBILE PARITY
   ============================================================ */

@media (max-width: 768px) {

  .email-capture {
    padding: 72px 0 80px;
  }

  .email-capture__inner {
    padding: 0 24px;
  }

  .email-capture__header {
    margin-bottom: 48px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .email-capture__options {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .email-capture__option {
    padding: 36px 28px 40px;
  }

}


.email-capture__progression {
  margin: 14px 0 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.66);
}
