/* =============================================================================
   Barlin Games — newsletter band (.bnl)
   -----------------------------------------------------------------------------
   One card split on a diagonal: the pitch and form on the left, the artwork
   with its glass cards on the right. Tokens fall back to literals so the sheet
   also works on a page that does not load homepage.css.
   ========================================================================== */

.bnl {
    --n-red:      var(--bh-red, #E51B23);
    --n-red-deep: var(--bh-red-deep, #C7070F);
    --n-grad:     var(--bh-red-grad, linear-gradient(135deg, #EF1B24 0%, #C8080F 100%));
    --n-tint:     var(--bh-red-tint, #FEEFEE);
    --n-ink:      var(--bh-ink, #0A0A0B);
    --n-muted:    var(--bh-muted, #6B6B75);
    --n-card:     var(--bh-card, #FFFFFF);
    --n-line:     var(--bh-line, #EFEFF2);
    --n-line-2:   var(--bh-line-2, #E6E6EB);
    --n-r:        26px;

    padding: clamp(40px, 5vw, 72px) 0;
}
.bnl-wrap { width: min(var(--bh-max, 1450px), 100% - 2 * var(--bh-pad, 24px)); margin-inline: auto; }

/* The card, and the rose glow the design sits in. */
.bnl-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
    background: var(--n-card);
    border: 1px solid var(--n-line);
    border-radius: var(--n-r);
    box-shadow: 0 30px 70px -40px rgba(229, 27, 35, .45), 0 2px 10px rgba(16, 16, 24, .05);
    overflow: hidden;
    isolation: isolate;
}
.bnl-card::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(229, 27, 35, .07), transparent 62%),
        radial-gradient(90% 80% at 42% 100%, rgba(229, 27, 35, .05), transparent 60%);
    pointer-events: none; z-index: 0;
}

/* ── Left ─────────────────────────────────────────────────────────────── */
.bnl-main { position: relative; z-index: 1; padding: clamp(24px, 3vw, 46px) clamp(20px, 2.6vw, 44px); min-width: 0; }

.bnl-top { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(14px, 1.6vw, 22px); }
.bnl-mail { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--n-tint); color: var(--n-red); }
.bnl-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--n-red); }

.bnl-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.bnl-h { margin: 0; font-family: 'Sora', 'Inter', sans-serif; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.06; font-weight: 800; letter-spacing: -.028em; color: var(--n-ink); }
.bnl-h span { display: block; color: var(--n-red); }

/* The two handwritten lines. Caveat with a generic cursive fallback, so a
   blocked font request degrades to a script face rather than to Inter. */
.bnl-script, .bnl-tagline { font-family: 'Caveat', 'Segoe Script', cursive; font-weight: 700; line-height: 1.05; }
.bnl-script {
    position: relative; margin: 6px 0 0; flex: none;
    font-size: clamp(22px, 2vw, 30px); color: var(--n-ink);
    transform: rotate(-4deg); transform-origin: left center;
    padding-bottom: 14px; max-width: 15ch;
}
.bnl-script svg { position: absolute; left: 6%; bottom: 0; width: 72%; height: 12px; color: var(--n-red); }

.bnl-copy { margin: clamp(12px, 1.4vw, 18px) 0 0; max-width: 56ch; font-size: clamp(14.5px, 1.05vw, 16.5px); line-height: 1.62; color: var(--n-muted); }

/* Form: two fields and the button on one row, each field keeping its hint. */
.bnl-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: start; margin: clamp(20px, 2.2vw, 30px) 0 0; }
.bnl-field { min-width: 0; }
.bnl-input { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px; border-radius: 16px; background: var(--n-card); border: 1.5px solid var(--n-line-2); transition: border-color .16s ease, box-shadow .16s ease; }

.bnl-fic { flex: none; display: grid; place-items: center; color: var(--n-muted); }
.bnl-input input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15.5px; color: var(--n-ink); outline: 0; }
.bnl-input input::placeholder { color: #A8A8B3; }
.bnl-field > small { display: block; margin: 7px 0 0 4px; font-size: 12.5px; color: var(--n-muted); }
.bnl-field--go { align-self: start; }
.bnl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 60px; padding: 0 30px; border: 0; border-radius: 16px;
    background: var(--n-grad); color: #fff;
    font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; white-space: nowrap;
    box-shadow: 0 16px 34px -14px rgba(229, 27, 35, .7);
    transition: transform .16s ease, filter .16s ease;
}
.bnl-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.bnl-btn .bnl-btn-go { transition: transform .16s ease; }
.bnl-btn:hover .bnl-btn-go { transform: translateX(3px); }
.bnl-msg { margin: 12px 0 0; font-size: 13px; font-weight: 700; }
.bnl-msg.is-ok  { color: #0F8A4C; }
.bnl-msg.is-err { color: var(--n-red-deep); }

/* Benefit row, divided rather than boxed. */
.bnl-perks { list-style: none; margin: clamp(20px, 2.2vw, 30px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 10px 0; }
.bnl-perks li { display: flex; align-items: center; gap: 11px; padding: 2px 16px; border-left: 1px solid var(--n-line); min-width: 0; }
.bnl-perks li:first-child { border-left: 0; padding-left: 0; }
.bnl-perk-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--n-tint); color: var(--n-red); }
.bnl-perk-tx { min-width: 0; display: grid; gap: 1px; }
.bnl-perk-tx b { font-size: 13.5px; font-weight: 800; color: var(--n-ink); line-height: 1.25; }
.bnl-perk-tx i { font-style: normal; font-size: 12.5px; color: var(--n-muted); }
.bnl-note { display: inline-flex; align-items: center; gap: 7px; margin: 16px 0 0; font-size: 12.5px; color: var(--n-muted); }
.bnl-note svg { color: var(--n-red); }

.bnl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Right: artwork ───────────────────────────────────────────────────── */
.bnl-art {
    position: relative; z-index: 1; min-height: 420px; overflow: hidden;
    background: var(--n-grad);
    /* The diagonal. The panel is pulled left under the content so the slant
       crosses the card rather than sitting at its edge. */
    clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -6%;
}
.bnl-art > img:not(.bnl-art-fallback) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bnl-card.has-art .bnl-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,10,12,.34) 0%, rgba(10,10,12,.06) 42%, rgba(10,10,12,.30) 100%); pointer-events: none; }
/* Fallback ground: a soft radial so the panel has depth, with the real mark
   centred on it rather than a letter set in type. */
.bnl-art:not(:has(> img:not(.bnl-art-fallback))) { background: radial-gradient(120% 120% at 70% 20%, #FF3B43 0%, #E51B23 42%, #8E060D 100%); }
.bnl-art-fallback { position: absolute; top: 50%; left: 52%; transform: translate(-50%, -50%); width: min(46%, 230px); height: auto; opacity: .92; filter: drop-shadow(0 26px 50px rgba(0,0,0,.45)); object-fit: contain; }

.bnl-brand { position: absolute; z-index: 2; top: clamp(16px, 1.8vw, 26px); right: clamp(18px, 2vw, 30px); display: inline-flex; align-items: center; gap: 9px; }
.bnl-brand-mk { width: 38px; height: 38px; object-fit: contain; display: block; }
.bnl-brand-tx { line-height: 1.02; }
.bnl-brand-tx b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.bnl-brand-tx i { display: block; font-style: normal; font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--n-red); }

.bnl-cards { list-style: none; position: absolute; z-index: 2; right: clamp(14px, 1.6vw, 24px); top: 50%; transform: translateY(-50%); margin: 0; padding: 0; display: grid; gap: 10px; max-width: 232px; }
.bnl-cards li {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 14px; border-radius: 14px;
    background: rgba(18, 18, 22, .62);
    border: 1px solid rgba(255, 255, 255, .13);
    backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
    font-size: 13px; font-weight: 700; line-height: 1.3; color: #fff;
}
.bnl-cards-ic { flex: none; display: grid; place-items: center; color: var(--n-red); }

.bnl-tagline { position: absolute; z-index: 2; right: clamp(18px, 2vw, 32px); bottom: clamp(14px, 1.8vw, 26px); margin: 0; padding-bottom: 12px; font-size: clamp(20px, 1.7vw, 27px); color: #fff; transform: rotate(-3deg); }
.bnl-tagline svg { position: absolute; left: 8%; bottom: 0; width: 80%; height: 11px; color: var(--n-red); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .bnl-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .bnl-field--go { grid-column: 1 / -1; }
    .bnl-btn { width: 100%; }
}
@media (max-width: 900px) {
    .bnl-card { grid-template-columns: minmax(0, 1fr); }
    .bnl-art { clip-path: none; margin-left: 0; min-height: 300px; order: -1; }
    .bnl-cards { position: static; transform: none; max-width: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding: clamp(60px, 9vw, 86px) 16px 16px; }
    .bnl-tagline { right: 16px; bottom: 10px; }
}
@media (max-width: 640px) {
    .bnl-form { grid-template-columns: minmax(0, 1fr); }
    .bnl-headrow { flex-direction: column; }
    .bnl-script { transform: rotate(-3deg); margin-top: 10px; }
    .bnl-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bnl-perks li { border-left: 0; padding-left: 0; }
    .bnl-h { font-size: clamp(26px, 8vw, 34px); }
}
@media (prefers-reduced-motion: reduce) {
    .bnl-btn, .bnl-btn .bnl-btn-go { transition: none; }
    .bnl-btn:hover, .bnl-btn:hover .bnl-btn-go { transform: none; }
}

/* ── Dark theme ───────────────────────────────────────────────────────── */
body.theme-dark .bnl-card { background: var(--bh-card, #131317); border-color: rgba(255,255,255,.08); }
body.theme-dark .bnl-input { background: #0E0E12; border-color: rgba(255,255,255,.12); }
body.theme-dark .bnl-input input { color: #F4F4F6; }
body.theme-dark .bnl-perks li { border-left-color: rgba(255,255,255,.08); }
