/* Newsletters page — scoped to #page-newsletters. Hero / multi-newsletter
   picker grid / sticky sign-up bar / trust strip / editor's note / success
   overlay. Theme header / footer / cookie banner remain global. */

#page-newsletters {
    --nl-red:    var(--red);
    --nl-red-d:  var(--red-dark);
    --nl-red-deep: #520003;
    --nl-ink:    var(--ink);
    --nl-paper:  var(--paper);
    --nl-cream:  #FBF7F3;
    --nl-gm:     #737373;
    --nl-g-1:    #5C5C5C;
    --nl-g-2:    #A8A8A8;
    --nl-g-3:    #DFDFDF;
    --nl-g-4:    #EDEDED;
    --nl-green:  #1F8A5B;
    --nl-serif:  var(--font-serif);
    --nl-body:   var(--font-body);
    --nl-sans:   var(--font-sans);
    background: var(--nl-paper);
    color: var(--nl-ink);
    font-family: var(--nl-sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
#page-newsletters *,
#page-newsletters *::before,
#page-newsletters *::after { box-sizing: border-box; }
#page-newsletters img { display: block; max-width: 100%; }
#page-newsletters input { font: inherit; color: inherit; }

.nl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .nl-wrap { padding: 0 20px; } }

.nl-eyebrow {
    font-size: 11px; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--nl-red);
    display: inline-flex; align-items: center; gap: 10px;
}
.nl-eyebrow::before {
    content: ""; display: block; width: 24px; height: 1px; background: var(--nl-red);
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.nl-hero {
    padding: 80px 0 56px;
    background: linear-gradient(180deg, var(--nl-cream) 0%, #fff 100%);
    position: relative; overflow: hidden;
}
.nl-hero::before {
    content: "@";
    position: absolute;
    font-family: var(--nl-serif); font-style: italic; font-weight: 700;
    font-size: 380px; line-height: .7;
    color: rgba(29, 5, 6, .03);
    right: 0; top: -40px;
    pointer-events: none; z-index: 0;
}
.nl-hero-in { position: relative; z-index: 1; max-width: 720px; }
.nl-hero-h {
    font-family: var(--nl-serif);
    font-size: clamp(40px, 5.5vw, 68px);
    font-weight: 600; line-height: 1.02;
    letter-spacing: -.025em;
    color: var(--nl-ink);
    margin: 18px 0;
}
.nl-hero-h em { font-style: italic; color: var(--nl-red); font-weight: 600; }
.nl-hero-p {
    font-family: var(--nl-body);
    font-size: 20px; color: var(--nl-g-1);
    line-height: 1.6; max-width: 560px;
}
.nl-hero-p strong { color: var(--nl-ink); font-weight: 600; }

/* ── PICKER ─────────────────────────────────────────────────────────────── */
.nl-picker { padding: 24px 0 56px; background: #fff; }
.nl-picker-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--nl-ink);
    flex-wrap: wrap;
}
.nl-picker-h {
    font-family: var(--nl-serif);
    font-size: 24px; font-weight: 600;
    letter-spacing: -.01em; line-height: 1;
}
.nl-picker-hint { font-size: 13px; color: var(--nl-gm); }
.nl-picker-hint b { color: var(--nl-red); font-weight: 600; font-variant-numeric: tabular-nums; }

.nl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .nl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .nl-grid { grid-template-columns: 1fr; } }

.nl-card {
    position: relative;
    border: 1px solid var(--nl-g-3);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    display: flex; flex-direction: column;
}
.nl-card::before {
    content: ""; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--nl-red);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s;
    z-index: 3;
}
.nl-card:hover { box-shadow: 0 20px 44px -20px rgba(29, 5, 6, .2); transform: translateY(-3px); }
.nl-card:hover::before { transform: scaleX(1); }
.nl-card.is-selected { border-color: var(--nl-red); box-shadow: 0 0 0 1px var(--nl-red), 0 16px 36px -18px rgba(222, 28, 34, .3); }
.nl-card.is-selected::before { transform: scaleX(1); }

.nl-cover {
    aspect-ratio: 3/2;
    position: relative; overflow: hidden;
    background: var(--nl-cream);
}
.nl-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.nl-card:hover .nl-cover img { transform: scale(1.04); }

.nl-cadence {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255, 255, 255, .95); color: var(--nl-ink);
    font-size: 10px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 99px;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    z-index: 2;
}
.nl-cadence--daily { background: var(--nl-red); color: #fff; }

.nl-toggle {
    position: absolute; top: 12px; right: 12px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    border: 1.5px solid transparent;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.nl-toggle svg { opacity: 0; transform: scale(.5); transition: all .2s; color: #fff; }
.nl-card.is-selected .nl-toggle { background: var(--nl-red); border-color: var(--nl-red); }
.nl-card.is-selected .nl-toggle svg { opacity: 1; transform: scale(1); }
.nl-toggle .nl-plus { position: absolute; color: var(--nl-g-2); transition: opacity .2s; }
.nl-card.is-selected .nl-toggle .nl-plus { opacity: 0; }

.nl-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.nl-title {
    font-family: var(--nl-serif);
    font-size: 21px; font-weight: 600;
    letter-spacing: -.01em; line-height: 1.15;
    color: var(--nl-ink);
    margin-bottom: 8px;
}
.nl-desc {
    font-family: var(--nl-body);
    font-size: 16px; color: var(--nl-g-1);
    line-height: 1.5;
    flex: 1; margin-bottom: 16px;
}
.nl-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--nl-gm);
    padding-top: 14px;
    border-top: 1px solid var(--nl-g-3);
}
.nl-meta .nl-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--nl-g-2); }
.nl-meta .nl-subs { color: var(--nl-ink); }

.nl-action {
    font-size: 12px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--nl-gm);
    transition: color .15s;
    display: inline-flex; align-items: center; gap: 6px;
    margin-left: auto;
}
.nl-card.is-selected .nl-action { color: var(--nl-red); }
.nl-action .nl-added { display: none; }
.nl-card.is-selected .nl-action .nl-add { display: none; }
.nl-card.is-selected .nl-action .nl-added { display: inline; }

/* ── SIGN-UP BAR ─────────────────────────────────────────────────────────
   Inline at the bottom of the picker — always visible, no float/sticky
   trickery so it never overlaps content below. */
.nl-bar {
    margin-top: 32px;
    background: #fff;
    border: 1px solid var(--nl-g-3);
    border-radius: 14px;
    padding: 6px 0;
    box-shadow: 0 14px 36px -22px rgba(29, 5, 6, .25);
    transition: opacity .2s ease, background .2s ease, border-color .2s ease;
}
.nl-bar:not(.is-active) { opacity: .65; }
.nl-bar.is-active { border-color: var(--nl-ink); background: #fff; }
@media (max-width: 760px) { .nl-bar { margin-top: 24px; } }
.nl-bar-in {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 24px; align-items: center;
    padding: 22px 28px;
}
@media (max-width: 760px) { .nl-bar-in { padding: 18px 20px; } }
@media (max-width: 760px) { .nl-bar-in { grid-template-columns: 1fr; gap: 14px; } }
.nl-bar-count { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.nl-bar-count-n {
    font-family: var(--nl-serif);
    font-size: 22px; font-weight: 600;
    letter-spacing: -.01em; line-height: 1;
}
.nl-bar-count-n b { color: var(--nl-red); }
.nl-bar-count-l {
    font-size: 11px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--nl-gm);
}
.nl-bar-form { display: flex; gap: 10px; align-items: center; }
@media (max-width: 760px) { .nl-bar-form { flex-direction: column; align-items: stretch; } }
.nl-bar-email {
    flex: 1; min-width: 0;
    font-size: 15px;
    border: 1.5px solid var(--nl-g-3);
    border-radius: 8px;
    padding: 13px 16px;
    outline: none;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.nl-bar-email:focus { border-color: var(--nl-ink); box-shadow: 0 0 0 3px rgba(29, 5, 6, .06); }
#page-newsletters .nl-bar-btn {
    background: var(--nl-red); color: #fff;
    font-size: 14px; font-weight: 600;
    padding: 13px 28px;
    border-radius: 8px;
    border: 0;
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: 9px;
    transition: background .15s, transform .15s, opacity .15s;
    cursor: pointer;
}
#page-newsletters .nl-bar-btn:hover { background: var(--nl-red-d); color: #fff; transform: translateY(-1px); }
#page-newsletters .nl-bar-btn svg { transition: transform .15s; }
#page-newsletters .nl-bar-btn:hover svg { transform: translateX(3px); }
.nl-bar-consent {
    grid-column: 1 / -1;
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 12px; color: var(--nl-gm); line-height: 1.5;
}
.nl-bar-consent input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--nl-red); flex-shrink: 0; cursor: pointer; }
#page-newsletters .nl-bar-consent a { color: var(--nl-red); font-weight: 600; border-bottom: 1px solid rgba(222, 28, 34, .3); }
#page-newsletters .nl-bar-consent a:hover { border-color: var(--nl-red); color: var(--nl-red-d); }

.nl-bar-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.nl-bar-chip {
    font-size: 11px; font-weight: 600; color: var(--nl-ink);
    background: var(--nl-cream); border: 1px solid var(--nl-g-3);
    border-radius: 99px; padding: 4px 10px;
    white-space: nowrap;
}

/* ── TRUST STRIP ────────────────────────────────────────────────────────── */
.nl-trust {
    padding: 56px 0;
    background: var(--nl-cream);
    border-top: 1px solid var(--nl-g-3);
    border-bottom: 1px solid var(--nl-g-3);
}
.nl-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
@media (max-width: 760px) { .nl-trust-grid { grid-template-columns: 1fr; gap: 24px; } }
.nl-trust-item {
    padding: 0 32px;
    border-right: 1px solid var(--nl-g-3);
    display: flex; gap: 16px; align-items: flex-start;
}
.nl-trust-item:first-child { padding-left: 0; }
.nl-trust-item:last-child { border-right: 0; }
@media (max-width: 760px) { .nl-trust-item { border-right: 0; padding: 0; } }
.nl-trust-icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--nl-g-3);
    color: var(--nl-red);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.nl-trust-h {
    font-family: var(--nl-serif);
    font-size: 18px; font-weight: 600;
    letter-spacing: -.005em;
    margin-bottom: 5px;
}
.nl-trust-d {
    font-family: var(--nl-body);
    font-size: 15px; color: var(--nl-g-1);
    line-height: 1.5;
}

/* ── EDITOR NOTE ────────────────────────────────────────────────────────── */
.nl-editor {
    padding: 80px 0;
    background: var(--nl-ink);
    color: #fff;
    position: relative; overflow: hidden;
}
.nl-editor::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(600px 320px at 85% 10%, rgba(222, 28, 34, .25), transparent 60%),
        radial-gradient(440px 260px at 0% 100%, rgba(82, 0, 3, .5), transparent 55%);
    pointer-events: none;
}
.nl-editor::after {
    content: "\201D";
    position: absolute;
    font-family: var(--nl-serif); font-weight: 700;
    font-size: 360px; line-height: .6;
    color: rgba(255, 255, 255, .04);
    right: 40px; bottom: -80px;
    pointer-events: none;
}
.nl-editor-in { position: relative; z-index: 1; max-width: 780px; }
.nl-editor-eye { color: var(--nl-red); margin-bottom: 24px; }
.nl-editor-q {
    font-family: var(--nl-serif);
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 500; font-style: italic;
    line-height: 1.35; letter-spacing: -.01em;
    margin-bottom: 28px;
    text-wrap: balance;
}
.nl-editor-q em { color: #ffb3bd; font-style: italic; }
.nl-editor-by { display: flex; align-items: center; gap: 14px; }
.nl-editor-av {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nl-red-deep), var(--nl-red));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--nl-serif); font-style: italic; font-weight: 600;
    color: #fff; font-size: 20px;
    flex-shrink: 0;
}
.nl-editor-name { font-size: 14px; font-weight: 600; color: #fff; }
.nl-editor-role { font-size: 12px; color: rgba(255, 255, 255, .55); margin-top: 2px; }

/* ── SUCCESS OVERLAY ────────────────────────────────────────────────────── */
.nl-success {
    position: fixed; inset: 0;
    background: rgba(29, 5, 6, .55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 200;
    padding: 24px;
    opacity: 0;
    transition: opacity .3s;
}
.nl-success.is-show { display: flex; opacity: 1; }
.nl-success-card {
    background: #fff;
    border-radius: 18px;
    padding: 48px 40px;
    max-width: 480px; width: 100%;
    text-align: center;
    position: relative;
    transform: translateY(16px) scale(.98);
    transition: transform .35s cubic-bezier(.2, 1, .3, 1);
    overflow: hidden;
}
.nl-success.is-show .nl-success-card { transform: translateY(0) scale(1); }
.nl-success-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--nl-red);
}
.nl-success-check {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--nl-green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
    position: relative;
}
.nl-success-check svg { stroke-dasharray: 30; stroke-dashoffset: 30; animation: nl-draw .5s ease-out .2s forwards; }
@keyframes nl-draw { to { stroke-dashoffset: 0; } }
.nl-success-check::after {
    content: ""; position: absolute; inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--nl-green);
    opacity: 0;
    animation: nl-ring .6s ease-out .3s forwards;
}
@keyframes nl-ring { 0% { transform: scale(.85); opacity: .6; } 100% { transform: scale(1.15); opacity: 0; } }
.nl-success-h {
    font-family: var(--nl-serif);
    font-size: 30px; font-weight: 600;
    letter-spacing: -.015em;
    margin-bottom: 12px;
}
.nl-success-h em { font-style: italic; color: var(--nl-red); }
.nl-success-p {
    font-family: var(--nl-body);
    font-size: 17px; color: var(--nl-g-1);
    line-height: 1.6;
    margin-bottom: 8px;
}
.nl-success-p b { color: var(--nl-ink); font-weight: 600; }
.nl-success-list {
    display: flex; flex-direction: column; gap: 8px;
    margin: 22px 0;
    text-align: left;
    background: var(--nl-cream);
    border-radius: 10px;
    padding: 18px;
}
.nl-success-row {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--nl-ink); font-weight: 500;
}
.nl-success-row svg { color: var(--nl-green); flex-shrink: 0; }
#page-newsletters .nl-success-close {
    font-size: 13px; font-weight: 600;
    color: var(--nl-gm);
    letter-spacing: .04em;
    padding: 12px 24px;
    border: 1px solid var(--nl-g-3);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
}
#page-newsletters .nl-success-close:hover { border-color: var(--nl-ink); color: var(--nl-ink); }
.nl-success-note { font-size: 12px; color: var(--nl-gm); margin-top: 16px; line-height: 1.5; }
