/* ============================================================
   assets/landing.css — strona główna / (landing zapisu e-mail)
   Klimat: ciemny fiolet schodzący w czerń, srebrno-fioletowa stal,
   fioletowy akcent/CTA. Mobile-first.
   ============================================================ */

:root {
    --bg: #0a0612;
    --panel: #171024;
    --hairline: rgba(168, 140, 220, 0.16);
    --steel-hi: #f4f0fb;
    --steel: #cfc4e8;
    --steel-lo: #8f7fb8;
    --text: #d8d0e8;
    --muted: #9a8cb8;
    --accent: #8b5cf6;
    --accent-hi: #a78bfa;
    --ok: #7fc98f;
    --err: #ef5350;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    /* Fiolet z góry, czerń na dole — gradient trzyma całą stronę. */
    background: linear-gradient(180deg, #1a1030 0%, #0f0a1c 45%, #060409 100%) fixed;
    min-height: 100vh;
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---------- HERO ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 20px 56px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(139, 92, 246, 0.20), transparent 65%),
        radial-gradient(ellipse 55% 40% at 50% 115%, rgba(109, 70, 200, 0.16), transparent 60%),
        radial-gradient(ellipse 40% 30% at 85% 40%, rgba(168, 130, 255, 0.07), transparent 60%);
    pointer-events: none;
}

.hero-inner { position: relative; max-width: 560px; width: 100%; }

.hero-mark {
    width: 240px;
    height: auto;
    border-radius: 22%;
    box-shadow: 0 0 0 1px var(--hairline), 0 10px 40px rgba(0, 0, 0, 0.8);
    margin-bottom: 28px;
}

.hero-eyebrow {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--steel-lo);
    margin-bottom: 18px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 5.5vw, 3rem);
    line-height: 1.22;
    letter-spacing: 0;
    word-break: normal;
    hyphens: none;
    overflow-wrap: normal;
    background: linear-gradient(180deg, #f5f2ff 0%, #cbbcf0 48%, #9380c4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

/* Zasada typografii H1: zdanie = linia. Łamanie wyłącznie na granicy zdań
   (każde zdanie w osobnym .h1-line); na wąskim ekranie zdanie może zająć
   dwie linie, ale nowe zdanie nigdy nie zaczyna się w tej samej linii. */
.hero h1 .h1-line { display: block; text-wrap: balance; }

.hero-sub {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 42ch;
    margin: 0 auto 34px;
}

/* ---------- FORMULARZ ZAPISU ---------- */

#zapis { scroll-margin-top: 24px; }

.signup-form { text-align: left; }

.signup-row { display: flex; flex-direction: column; gap: 12px; }

.signup-form input[type="email"] {
    width: 100%;
    padding: 16px 18px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    color: var(--steel-hi);
    background: #150e24;
    border: 1px solid var(--hairline);
    border-radius: 3px;
    outline: none;
    transition: border-color 0.2s ease;
}

.signup-form input[type="email"]::placeholder { color: #6b5f8a; }

.signup-form input[type="email"]:focus { border-color: var(--steel-lo); }

.cta {
    display: inline-block;
    width: 100%;
    padding: 17px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.cta:hover { background: var(--accent-hi); }
.cta:active { transform: translateY(1px); }
.cta:disabled { opacity: 0.55; cursor: default; transform: none; }

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 0;
    text-align: left;
}

.consent-row input { margin-top: 4px; flex-shrink: 0; accent-color: var(--accent); }

.consent-row label { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }

.consent-row a { color: var(--steel); }

.form-status {
    margin-top: 16px;
    font-size: 0.9rem;
    min-height: 1.4em;
    display: none;
}

.form-status.ok { display: block; color: var(--ok); }
.form-status.err { display: block; color: var(--err); }

.form-note {
    margin-top: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: #6f6390;
    text-align: left;
}

/* ---------- SEKCJE ---------- */

.section { padding: 72px 0; border-top: 1px solid rgba(168, 140, 220, 0.10); }

.section-kicker {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 4.5vw, 2rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    word-break: normal;
    hyphens: none;
    overflow-wrap: normal;
    text-wrap: balance;
    color: var(--steel);
    margin-bottom: 30px;
}

/* ---------- DOWÓD ---------- */

.dossier-card {
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 4px;
    padding: 26px 24px;
}

.dossier-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(168, 140, 220, 0.12);
}

.dossier-clause {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    color: var(--steel);
}

.stamp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 2px;
    padding: 4px 10px;
    transform: rotate(-1.5deg);
}

.dossier-body { color: var(--muted); font-size: 0.95rem; }

.redacted {
    display: inline-block;
    height: 0.85em;
    background: #2c2440;
    border-radius: 2px;
    margin: 0 0.15em;
    vertical-align: -0.08em;
}

.section-cta { margin-top: 30px; }

.btn-ghost {
    display: inline-block;
    padding: 14px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--steel);
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 3px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover { border-color: var(--steel-lo); color: var(--steel-hi); }

/* ---------- CO OTRZYMASZ ---------- */

.protocol-list { list-style: none; }

.protocol-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(168, 140, 220, 0.12);
}

.protocol-item:first-child { padding-top: 0; }
.protocol-item:last-child { border-bottom: 0; }

.protocol-no {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--steel-lo);
    border: 1px solid var(--hairline);
    border-radius: 3px;
    padding: 6px 10px;
    height: fit-content;
    margin-top: 2px;
}

.protocol-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--steel-hi);
    margin-bottom: 6px;
}

.protocol-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- STOPKA ---------- */

footer {
    border-top: 1px solid rgba(168, 140, 220, 0.10);
    padding: 40px 20px 48px;
    text-align: center;
}

footer .protocol-links { margin-bottom: 16px; }

footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    margin: 0 10px;
}

footer a:hover { color: var(--steel); }

footer .copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: #5c5470;
}

/* ---------- DESKTOP ---------- */

@media (min-width: 700px) {
    .signup-row { flex-direction: row; }

    .signup-form input[type="email"] { flex: 1; }

    .cta { width: auto; white-space: nowrap; }

    .hero-mark { width: 330px; }

    .dossier-card { padding: 34px 36px; }
}

/* ---------- DOSTĘPNOŚĆ ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
