/* newsletter.css — bloco de captura de e-mail (.bp-news), reutilizável e
   auto-contido (não depende dos tokens de nenhuma seção). Tema via
   prefers-color-scheme + [data-theme]. Verde de "assinar" combinando com a Loja. */

.bp-news { --bpn-accent: #16a34a; --bpn-bg: #0f172a; --bpn-card: #1e293b; --bpn-text: #f8fafc;
  --bpn-muted: #94a3b8; --bpn-border: rgba(255,255,255,.12); --bpn-field: #243349;
  margin: 2.4rem auto; max-width: 900px; }
:root[data-theme="light"] .bp-news, .bp-news[data-theme="light"] {
  --bpn-bg: #f1f5f9; --bpn-card: #ffffff; --bpn-text: #0f172a; --bpn-muted: #475569;
  --bpn-border: rgba(15,23,42,.1); --bpn-field: #f8fafc; --bpn-accent: #15803d; }
@media (prefers-color-scheme: light) {
  .bp-news { --bpn-bg: #f1f5f9; --bpn-card: #ffffff; --bpn-text: #0f172a; --bpn-muted: #475569;
    --bpn-border: rgba(15,23,42,.1); --bpn-field: #f8fafc; --bpn-accent: #15803d; }
  :root[data-theme="dark"] .bp-news {
    --bpn-card: #1e293b; --bpn-text: #f8fafc; --bpn-muted: #94a3b8; --bpn-border: rgba(255,255,255,.12);
    --bpn-field: #243349; --bpn-accent: #16a34a; }
}

.bp-news__inner { display: grid; gap: 1.1rem; padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--bpn-border); border-radius: 16px; background: var(--bpn-card);
  background-image: radial-gradient(120% 120% at 100% 0%, rgba(22,163,74,.10), transparent 55%); }
.bp-news__kicker { margin: 0 0 .3rem; font: 700 .68rem ui-monospace, monospace; letter-spacing: .2em; color: var(--bpn-accent); }
.bp-news__title { margin: 0 0 .3rem; font-family: 'Poppins', system-ui, sans-serif; font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--bpn-text); line-height: 1.1; }
.bp-news__sub { margin: 0; color: var(--bpn-muted); font-size: .95rem; line-height: 1.55; max-width: 52ch; }

.bp-news__form { display: flex; flex-direction: column; gap: .6rem; }
.bp-news__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* visually-hidden */
.bp-news__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.bp-news__email { flex: 1; min-width: 200px; min-height: 48px; padding: .6rem .9rem; font-size: 1rem;
  border-radius: 10px; border: 1px solid var(--bpn-border); background: var(--bpn-field); color: var(--bpn-text); }
.bp-news__email:focus-visible { outline: 2px solid var(--bpn-accent); outline-offset: 1px; border-color: var(--bpn-accent); }
.bp-news__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* honeypot */
.bp-news__btn { min-height: 48px; padding: .6rem 1.3rem; cursor: pointer; white-space: nowrap;
  border: 0; border-radius: 10px; background: var(--bpn-accent); color: #fff;
  font: 700 .95rem 'Inter', system-ui, sans-serif; transition: filter .15s, transform .08s; }
.bp-news__btn:hover { filter: brightness(1.08); }
.bp-news__btn:active { transform: scale(.98); }
.bp-news__btn[disabled] { opacity: .6; cursor: default; }

.bp-news__consent { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; color: var(--bpn-muted); line-height: 1.5; }
.bp-news__consent input { margin-top: .15rem; accent-color: var(--bpn-accent); width: 16px; height: 16px; flex: none; }

.bp-news__status { margin: .2rem 0 0; font-size: .88rem; font-weight: 600; }
.bp-news__status.is-ok { color: var(--bpn-accent); }
.bp-news__status.is-err { color: #ef4444; }

@media (min-width: 720px) {
  .bp-news__inner { grid-template-columns: 1fr 1fr; align-items: center; }
}
