/* ============================================================
   ZORIANA — NEWSLETTER LANDING ("List od Zoriany")
   Editorial hero — cosmos veil, sigil frame, gold hairlines,
   ornamental altar with MailerLite iframe.
   Scope: .zn-nl-page
   ============================================================ */

.zn-nl-page {
    --nl-bg-deep:   #0c0c1a;
    --nl-bg:        #14141f;
    --nl-bg-mid:    #181828;
    --nl-ivory:     #efe7d4;
    --nl-ivory-dim: #c8bfa6;
    --nl-muted:     #8a8298;
    --nl-gold:      #c9a84c;
    --nl-gold-hi:   #e6c875;
    --nl-gold-soft: #f3dc99;
    --nl-gold-deep: #8a6f24;
    --nl-violet:    #8b7ec8;
    --nl-line:      rgba(201, 168, 76, 0.22);
    --nl-line-hi:   rgba(230, 200, 117, 0.55);
    --nl-cta-text:  #16162b;

    --nl-font-display: 'Poppins', system-ui, sans-serif;
    --nl-font-body:    'Poppins', system-ui, sans-serif;

    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 126, 200, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 50% 100%, rgba(201, 168, 76, 0.06) 0%, transparent 65%),
        linear-gradient(180deg, var(--nl-bg-deep) 0%, var(--nl-bg-mid) 50%, var(--nl-bg-deep) 100%);
    color: var(--nl-ivory);
    font-family: var(--nl-font-body);
    overflow-x: hidden;
}

/* ============================================================
   COSMOS — starfield + nebulae + grain (hero only)
   ============================================================ */
.zn-nl-cosmos {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.zn-nl-cosmos__nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    mix-blend-mode: screen;
    opacity: 0.35;
}
.zn-nl-cosmos__nebula--gold {
    width: 70vw;
    height: 70vw;
    top: -25vw;
    right: -22vw;
    background: radial-gradient(circle,
        rgba(230, 200, 117, 0.14) 0%,
        rgba(201, 168, 76, 0.08) 35%,
        transparent 70%);
    animation: zn-nl-drift-1 28s ease-in-out infinite alternate;
}
.zn-nl-cosmos__nebula--violet {
    width: 60vw;
    height: 60vw;
    bottom: -18vw;
    left: -18vw;
    background: radial-gradient(circle,
        rgba(139, 126, 200, 0.12) 0%,
        rgba(86, 72, 138, 0.07) 40%,
        transparent 72%);
    animation: zn-nl-drift-2 36s ease-in-out infinite alternate;
}
@keyframes zn-nl-drift-1 {
    0%   { transform: translate(0, 0)        rotate(0deg);   }
    100% { transform: translate(-3vw, 4vw)   rotate(8deg);   }
}
@keyframes zn-nl-drift-2 {
    0%   { transform: translate(0, 0)        rotate(0deg);   }
    100% { transform: translate(4vw, -3vw)   rotate(-10deg); }
}

.zn-nl-cosmos__stars {
    position: absolute;
    inset: 0;
}
.zn-nl-cosmos__star {
    position: absolute;
    width: 1.5px;
    height: 1.5px;
    border-radius: 50%;
    background: var(--nl-ivory);
    box-shadow:
        0 0 6px rgba(239, 231, 212, 0.85),
        0 0 12px rgba(239, 231, 212, 0.45);
    opacity: 0;
    animation: zn-nl-twinkle 5s ease-in-out infinite;
}
.zn-nl-cosmos__star--1  { top:  6%; left:  8%; animation-delay: 0s;   }
.zn-nl-cosmos__star--2  { top: 12%; left: 24%; animation-delay: 1.2s; width: 2px; height: 2px; }
.zn-nl-cosmos__star--3  { top:  4%; left: 52%; animation-delay: 2.4s; }
.zn-nl-cosmos__star--4  { top: 16%; left: 76%; animation-delay: 0.6s; width: 2.5px; height: 2.5px; }
.zn-nl-cosmos__star--5  { top:  9%; left: 92%; animation-delay: 3.1s; }
.zn-nl-cosmos__star--6  { top: 28%; left:  4%; animation-delay: 1.8s; }
.zn-nl-cosmos__star--7  { top: 32%; left: 88%; animation-delay: 0.3s; }
.zn-nl-cosmos__star--8  { top: 44%; left: 12%; animation-delay: 2.7s; width: 2px; height: 2px; }
.zn-nl-cosmos__star--9  { top: 48%; left: 94%; animation-delay: 4.0s; }
.zn-nl-cosmos__star--10 { top: 58%; left:  2%; animation-delay: 1.5s; }
.zn-nl-cosmos__star--11 { top: 62%; left: 22%; animation-delay: 3.7s; width: 1px; height: 1px; }
.zn-nl-cosmos__star--12 { top: 66%; left: 70%; animation-delay: 0.9s; }
.zn-nl-cosmos__star--13 { top: 72%; left: 96%; animation-delay: 2.2s; width: 2px; height: 2px; }
.zn-nl-cosmos__star--14 { top: 78%; left: 18%; animation-delay: 4.3s; }
.zn-nl-cosmos__star--15 { top: 84%; left: 48%; animation-delay: 1.1s; }
.zn-nl-cosmos__star--16 { top: 88%; left: 82%; animation-delay: 3.4s; }
.zn-nl-cosmos__star--17 { top: 94%; left:  6%; animation-delay: 0.5s; width: 2px; height: 2px; }
.zn-nl-cosmos__star--18 { top: 96%; left: 64%; animation-delay: 2.0s; }
@keyframes zn-nl-twinkle {
    0%, 100% { opacity: 0.15; transform: scale(1);   }
    50%      { opacity: 1;    transform: scale(1.6); }
}

.zn-nl-cosmos__grain {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.94 0 0 0 0 0.91 0 0 0 0 0.83 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
}

/* ============================================================
   HERO — RYTUAŁ NOWIU
   ============================================================ */
.zn-nl-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(80px, 11vw, 150px) clamp(20px, 4vw, 40px) clamp(60px, 8vw, 110px);
    text-align: center;
}
.zn-nl-hero__container {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Górna ramka z sigil */
.zn-nl-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: min(720px, 100%);
    margin: 0 auto clamp(28px, 4vw, 44px);
    color: var(--nl-gold-hi);
}
.zn-nl-frame__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--nl-line) 30%,
        var(--nl-line-hi) 100%);
}
.zn-nl-frame__line:last-child {
    background: linear-gradient(90deg,
        var(--nl-line-hi) 0%,
        var(--nl-line) 70%,
        transparent 100%);
}
.zn-nl-frame__sigil {
    flex: 0 0 auto;
    color: var(--nl-gold-hi);
    filter: drop-shadow(0 0 10px rgba(230, 200, 117, 0.55));
    animation: zn-nl-sigil-spin 80s linear infinite;
}
@keyframes zn-nl-sigil-spin {
    to { transform: rotate(360deg); }
}

/* Eyebrow */
.zn-nl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(20px, 3vw, 32px);
    font-family: var(--nl-font-body);
    font-size: 11px;
    letter-spacing: 4.5px;
    text-transform: uppercase;
    color: var(--nl-gold);
    font-weight: 600;
}
.zn-nl-eyebrow__dash {
    display: inline-block;
    width: 38px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--nl-line-hi));
}
.zn-nl-eyebrow__dash:last-child {
    background: linear-gradient(90deg, var(--nl-line-hi), transparent);
}

/* Tytuł editorial */
.zn-nl-title {
    font-family: var(--nl-font-display);
    font-weight: 600;
    font-size: clamp(2.5rem, 1.6rem + 4vw, 5.25rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    color: var(--nl-ivory);
    margin: 0 0 clamp(22px, 3vw, 34px);
    text-transform: uppercase;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.zn-nl-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--nl-gold-hi);
    letter-spacing: 0;
    text-transform: none;
    background: linear-gradient(180deg, var(--nl-gold-soft) 0%, var(--nl-gold) 70%, var(--nl-gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 18px rgba(230, 200, 117, 0.35));
}

/* Lead */
.zn-nl-lead {
    max-width: 580px;
    font-family: var(--nl-font-body);
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
    line-height: 1.75;
    color: var(--nl-ivory-dim);
    font-weight: 300;
    margin: 0;
    text-wrap: pretty;
}

/* Subtelny gold hairline zamykający blok hero */
.zn-nl-hero__close {
    display: block;
    width: clamp(80px, 12vw, 140px);
    height: 1px;
    margin: clamp(36px, 5vw, 56px) auto 0;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--nl-line-hi) 50%,
        transparent 100%);
}

/* ============================================================
   OŁTARZ — formularz MailerLite w ornamentalnej ramie
   ============================================================ */
.zn-nl-altar {
    position: relative;
    padding: clamp(70px, 9vw, 120px) clamp(20px, 4vw, 40px) clamp(80px, 10vw, 140px);
    isolation: isolate;
    overflow: hidden;
}

/* Tło — moon halo + rays */
.zn-nl-altar__halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(900px, 90vw);
    height: min(900px, 90vw);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle,
            rgba(230, 200, 117, 0.18) 0%,
            rgba(139, 126, 200, 0.08) 30%,
            transparent 60%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.zn-nl-altar__rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(800px, 85vw);
    height: min(800px, 85vw);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    animation: zn-nl-rays-spin 220s linear infinite;
}
.zn-nl-altar__ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 50%;
    background: linear-gradient(180deg, var(--nl-line-hi) 0%, transparent 100%);
    transform-origin: top center;
    transform: rotate(var(--angle)) translateX(-50%);
}
@keyframes zn-nl-rays-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.zn-nl-altar__container {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.zn-nl-altar__head {
    margin-bottom: clamp(36px, 5vw, 52px);
}
.zn-nl-altar__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--nl-font-body);
    font-size: 10px;
    letter-spacing: 4.5px;
    text-transform: uppercase;
    color: var(--nl-gold-hi);
    font-weight: 600;
    margin-bottom: 18px;
}
.zn-nl-altar__eyebrow-dash {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--nl-line-hi);
}
.zn-nl-altar__title {
    font-family: var(--nl-font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
    line-height: 1.15;
    color: var(--nl-ivory);
    margin: 0 0 14px;
    letter-spacing: 0;
}
.zn-nl-altar__hint {
    margin: 0;
    font-family: var(--nl-font-body);
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    line-height: 1.6;
    color: var(--nl-ivory-dim);
    font-weight: 300;
}

/* Frame around iframe */
.zn-nl-altar__frame {
    position: relative;
    padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
    background:
        linear-gradient(180deg,
            rgba(20, 20, 50, 0.55) 0%,
            rgba(10, 10, 24, 0.4) 100%);
    border: 1px solid var(--nl-line);
    box-shadow:
        0 20px 60px -16px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(230, 200, 117, 0.08) inset;
}

/* SVG corner ornaments */
.zn-nl-altar__corner {
    position: absolute;
    width: 36px;
    height: 36px;
    color: var(--nl-gold-hi);
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(230, 200, 117, 0.35));
}
.zn-nl-altar__corner--tl { top: -1px;    left: -1px; }
.zn-nl-altar__corner--tr { top: -1px;    right: -1px; }
.zn-nl-altar__corner--bl { bottom: -1px; left: -1px; }
.zn-nl-altar__corner--br { bottom: -1px; right: -1px; }

/* Top/bottom shimmer edges */
.zn-nl-altar__edge {
    position: absolute;
    left: 38px;
    right: 38px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--nl-line-hi) 50%,
        transparent 100%);
    overflow: hidden;
}
.zn-nl-altar__edge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 30%,
        var(--nl-gold-soft) 50%,
        transparent 70%);
    transform: translateX(-100%);
    animation: zn-nl-shimmer 5s ease-in-out infinite;
}
.zn-nl-altar__edge--top    { top: 16px; }
.zn-nl-altar__edge--bottom { bottom: 16px; }
.zn-nl-altar__edge--bottom::after { animation-delay: 2.5s; }

@keyframes zn-nl-shimmer {
    0%   { transform: translateX(-100%); }
    50%  { transform: translateX(100%);  }
    100% { transform: translateX(100%);  }
}

/* iframe */
.zn-nl-altar__iframe {
    display: block;
    width: 100%;
    border: 0;
    min-height: 645px;
    background: transparent;
}

.zn-nl-altar__noscript {
    margin: 12px 0 0;
    font-style: italic;
    color: var(--nl-ivory-dim);
    opacity: 0.8;
}

/* Trust strip */
.zn-nl-trust {
    list-style: none;
    margin: clamp(28px, 4vw, 40px) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 3vw, 32px);
    font-family: var(--nl-font-body);
    font-size: 10.5px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--nl-ivory-dim);
}
.zn-nl-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.zn-nl-trust__mark {
    color: var(--nl-gold-hi);
    font-size: 9px;
    text-shadow: 0 0 6px rgba(230, 200, 117, 0.6);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    /* Form MailerLite zawija pola na wąskim ekranie — wyższy min-height,
       żeby przed postMessage z iframe'a treść nie była przycięta */
    .zn-nl-altar__iframe { min-height: 764px; }
}

@media (max-width: 600px) {
    .zn-nl-frame { gap: 10px; }
    .zn-nl-eyebrow { gap: 9px; font-size: 10px; letter-spacing: 3.5px; }
    .zn-nl-eyebrow__dash { width: 24px; }
    .zn-nl-title { font-size: clamp(2rem, 7vw, 3rem); }
    .zn-nl-lead { font-size: 16px; line-height: 1.7; }

    .zn-nl-altar__corner { width: 28px; height: 28px; }
    .zn-nl-altar__edge { left: 28px; right: 28px; }
    .zn-nl-trust {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================================
   REVIEWS — wyrównanie do palety strony głównej
   (mirror palette-test.css scoped do /bezplatny-newsletter,
    bo newsletter-page.css ładuje się tylko na tym slugu)
   ============================================================ */
.reviews,
.reviews::before {
    background-color: #14142a;
}
.reviews {
    background-image: linear-gradient(180deg, #14142a 0%, #12122a 100%);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .zn-nl-cosmos__star,
    .zn-nl-cosmos__nebula--gold,
    .zn-nl-cosmos__nebula--violet,
    .zn-nl-frame__sigil,
    .zn-nl-altar__rays,
    .zn-nl-altar__edge::after {
        animation: none !important;
    }
}
