/* THL Theme — newsletter form + /newsletter page.
   Re-skins the MailerLite embed (thl_newsletter_form) to the dark theme and styles
   the standalone /newsletter page. Loaded on the homepage (form only) and the
   /newsletter page (page chrome + form). Page-head bits are local (.phead lives in
   speaker.css). */

/* ---- MailerLite form, dark skin ---------------------------------------- */
.thl-nl { width: 100%; max-width: 480px; margin: 0 auto; }
.thl-nl .ml-form-embedContainer,
.thl-nl .ml-form-embedWrapper,
.thl-nl .ml-form-embedBody { width: 100% !important; display: block !important; box-sizing: border-box; background: none; }
.thl-nl .ml-form-align-center { text-align: center; }
.thl-nl .ml-form-formContent { margin: 0; }
.thl-nl .ml-form-fieldRow { margin: 0 0 12px; }

.thl-nl input[type="text"],
.thl-nl input[type="email"] {
  width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: 15px; line-height: 1.4;
  color: var(--t-strong);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 9px; padding: 13px 15px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s;
}
.thl-nl input::placeholder { color: var(--t-soft); }
.thl-nl input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(122,175,201,0.18); background: rgba(255,255,255,0.07);
}
/* MailerLite flags invalid fields with .ml-error on the group. */
.thl-nl .ml-error input { border-color: rgba(217,154,154,0.7) !important; }

/* reCAPTCHA: centre it, drop MailerLite's float. */
.thl-nl .ml-form-recaptcha { float: none !important; margin: 4px 0 16px; display: flex; justify-content: center; }
.thl-nl .ml-form-recaptcha.ml-error .g-recaptcha { outline: 1px solid #d99a9a; border-radius: 4px; }

/* Submit. */
.thl-nl .ml-form-embedSubmit { margin: 0; }
.thl-nl .ml-form-embedSubmit button.primary {
  width: 100%; box-sizing: border-box; border: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy-deeper); background: var(--blue);
  border-radius: 9px; padding: 14px 18px;
  transition: background .2s, transform .15s;
}
.thl-nl .ml-form-embedSubmit button.primary:hover { background: var(--blue-bright); transform: translateY(-1px); }
.thl-nl .ml-form-embedSubmit button.loading { width: 100%; box-sizing: border-box; border: 0; border-radius: 9px; padding: 14px 18px; background: var(--blue); display: flex; align-items: center; justify-content: center; }

/* Loading spinner (ported from the MailerLite embed). */
.thl-nl .ml-form-embedSubmitLoad { display: inline-block; width: 20px; height: 20px; }
.thl-nl .ml-form-embedSubmitLoad:after {
  content: " "; display: block; width: 11px; height: 11px; margin: 1px; border-radius: 50%;
  border: 3px solid var(--navy-deeper); border-color: var(--navy-deeper) var(--navy-deeper) var(--navy-deeper) transparent;
  animation: thl-nl-spin 1.2s linear infinite;
}
@keyframes thl-nl-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.thl-nl .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Success state. */
.thl-nl .ml-form-successBody { padding: 6px 4px; }
.thl-nl .ml-form-successContent h3 { font-size: 20px; font-weight: 700; color: var(--t-strong); margin-bottom: 8px; letter-spacing: -0.01em; }
.thl-nl .ml-form-successContent p { font-size: 14.5px; color: var(--t-mid); line-height: 1.65; margin: 0; }

/* ---- /newsletter page -------------------------------------------------- */
.phead.nl-head {
  padding: 84px 48px 48px;
  background:
    radial-gradient(ellipse 60% 120% at 86% 0%, rgba(122,175,201,0.10) 0%, transparent 58%),
    linear-gradient(180deg, #16202e 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--line);
}
.nl-head .phead-inner { max-width: 1040px; margin: 0 auto; }
.nl-head .crumb { font-size: 12.5px; color: var(--t-soft); margin-bottom: 18px; }
.nl-head .crumb a { color: var(--t-mid); text-decoration: none; transition: color .2s; }
.nl-head .crumb a:hover { color: var(--blue-bright); }
.nl-head .crumb .sep { margin: 0 8px; }
.nl-head .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 14px; }
.nl-head .kicker::before { content: ''; width: 26px; height: 1px; background: var(--blue); }
.nl-head h1 { font-size: clamp(32px, 4vw, 50px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 16px; }
.nl-head .lede { font-size: 15.5px; color: var(--t-mid); line-height: 1.7; max-width: 620px; }

.nl-wrap { padding: 56px 24px 88px; background: var(--bg); }
.nl-layout { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.nl-card { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: var(--shadow-lift); }
.nl-card h2 { font-size: 19px; font-weight: 700; color: var(--t-strong); margin-bottom: 6px; letter-spacing: -0.01em; }
.nl-card .nl-sub { font-size: 13.5px; color: var(--t-soft); line-height: 1.6; margin-bottom: 22px; }
.nl-fineprint { font-size: 12px; color: var(--t-soft); text-align: center; margin-top: 16px; line-height: 1.6; }

.nl-points { list-style: none; padding-top: 6px; }
.nl-points li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--t-mid); line-height: 1.6; }
.nl-points li:last-child { border-bottom: 0; }
.nl-points svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue-bright); margin-top: 1px; }
.nl-points strong { color: var(--t-strong); font-weight: 700; }

@media (max-width: 760px) {
  .phead.nl-head { padding: 56px 24px 40px; }
  .nl-layout { grid-template-columns: 1fr; gap: 30px; }
  .nl-points { order: 2; }
  .nl-wrap { padding: 40px 22px 64px; }
}
