/* Mapa 18 systemów pozyskiwania klientów (AI Marketing Lab).
   Projekt Hero zaakceptowany przez Mirka 28.11.2026 (2 OK, projekt-hero-mapa-18-systemow.png).
   System wizualny FRAME v2: #F9F8FD, #09080E, #9959FF, Geist, linie 1px, zero zaokrągleń. */

.mapa-page {
    --mapa-muted: oklch(44% 0.014 295);
    --mapa-line: oklch(84% 0.01 295);
    --mapa-paper: #ffffff;
    background: var(--frame-canvas);
    color: var(--frame-ink);
}

[data-przepis-screen][hidden] {
    display: none !important;
}

/* ===== HERO Z PROJEKTU (28.11.2026, 2 OK) ===== */

.mapa-hero {
    border-bottom: 1px solid var(--frame-ink);
}

.mapa-hero-frame {
    display: grid;
    grid-template-columns: minmax(0, 6.2fr) minmax(20rem, 5.8fr);
    align-items: center;
    padding-inline: 0;
}

.mapa-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 3vw, 3rem) clamp(3rem, 6vw, 5.5rem) var(--frame-gutter);
}

.mapa-kicker {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mapa-kicker::before {
    content: "";
    flex: 0 0 auto;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--frame-violet);
}

.mapa-title {
    margin: 1.5rem 0 0;
    max-width: none;
    font-size: clamp(2.35rem, 4.1vw, 3.85rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-transform: none;
}

.mapa-title span {
    display: block;
}

.mapa-lead {
    max-width: 40rem;
    margin: 1.5rem 0 0;
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    line-height: 1.52;
}

.mapa-gate {
    max-width: 36rem;
    margin-top: 2rem;
}

.mapa-gate-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.mapa-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.mapa-field input {
    display: block;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--frame-ink);
    border-right: 0;
    border-radius: 0;
    background: var(--mapa-paper);
    color: var(--frame-ink);
    font-size: 1rem;
}

.mapa-field input::placeholder {
    color: var(--mapa-muted);
    opacity: 1;
}

.mapa-field input[aria-invalid="true"] {
    border-color: var(--frame-error);
}

.mapa-submit {
    min-height: 3.5rem;
    padding: 0.85rem 1.5rem;
    justify-content: center;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 700;
}

.mapa-submit:hover:not(:disabled) {
    background: var(--frame-ink);
    color: var(--frame-canvas);
}

.mapa-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.mapa-helper {
    margin: 0.85rem 0 0;
    color: var(--mapa-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.mapa-consent {
    margin-top: 0.9rem;
}

.mapa-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--mapa-muted);
    cursor: pointer;
}

.mapa-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin: 0.15rem 0 0;
    accent-color: var(--frame-violet);
}

.mapa-consent a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.mapa-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.mapa-error {
    margin: 0.75rem 0 0;
    color: var(--frame-error);
    font-size: 0.92rem;
    font-weight: 600;
}

.mapa-error:not([hidden]) {
    display: block;
}

.mapa-hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 2.5vw, 2.25rem) clamp(1.5rem, 3vw, 2.75rem) 0;
}

.mapa-hero-art img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

/* ===== PASEK 3 KROKÓW POD HERO (1:1 Z PROJEKTU) ===== */

.mapa-strip-frame {
    border-top: 1px solid var(--frame-ink);
    padding-inline: 0;
}

.mapa-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.mapa-strip li {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: clamp(1.75rem, 3vw, 2.5rem) var(--frame-gutter);
    border-right: 1px solid var(--frame-ink);
    font-size: clamp(1.2rem, 1.85vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.mapa-strip li:last-child {
    border-right: 0;
}

/* ===== 5 KROKÓW MAPY ===== */

.mapa-steps-section {
    border-bottom: 1px solid var(--frame-ink);
}

.mapa-steps-frame {
    padding: 0;
}

.mapa-section-head {
    padding: clamp(2rem, 4vw, 3.25rem) var(--frame-gutter);
    border-bottom: 1px solid var(--frame-ink);
}

.mapa-section-title {
    margin: 0.9rem 0 0;
    font-size: clamp(1.85rem, 3.2vw, 2.85rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.mapa-section-sub {
    max-width: 44rem;
    margin: 0.8rem 0 0;
    font-size: 1.08rem;
    line-height: 1.55;
    color: var(--mapa-muted);
}

.mapa-five-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.mapa-five-grid li {
    grid-column: span 2;
    min-width: 0;
    padding: clamp(1.75rem, 3vw, 2.5rem) var(--frame-gutter);
    border-right: 1px solid var(--frame-ink);
    border-bottom: 1px solid var(--frame-ink);
}

.mapa-five-grid li:nth-child(3),
.mapa-five-grid li:nth-child(5) {
    border-right: 0;
}

.mapa-five-grid li:nth-child(n + 4) {
    grid-column: span 3;
    border-bottom: 0;
}

.mapa-step-num {
    display: inline-block;
    color: var(--frame-violet);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.mapa-five-grid strong {
    display: block;
    margin-top: 0.65rem;
    font-size: clamp(1.22rem, 1.7vw, 1.48rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.mapa-five-grid p {
    margin: 0.65rem 0 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--mapa-muted);
}

/* ===== PRZYKŁADOWY PODGLĄD 8-LINIOWEGO WYNIKU ===== */

.mapa-example-section {
    border-bottom: 1px solid var(--frame-ink);
}

.mapa-example-frame {
    display: grid;
    grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr);
    padding: 0;
}

.mapa-example-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 3.5rem) var(--frame-gutter);
    border-right: 1px solid var(--frame-ink);
}

.mapa-example-box {
    padding: clamp(2rem, 4vw, 3.5rem) var(--frame-gutter);
}

.mapa-example-badge {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--frame-ink);
}

.mapa-chat-window {
    border: 1px solid var(--frame-ink);
    background: var(--mapa-paper);
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.mapa-chat-who {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.18rem 0.55rem;
    border: 1px solid var(--frame-ink);
    background: var(--frame-canvas);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mapa-chat-lines {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
    font-size: 0.98rem;
    line-height: 1.5;
}

.mapa-chat-lines li {
    margin: 0;
}

.mapa-chat-note {
    margin: 0.9rem 0 0;
    font-size: 0.9rem;
    color: var(--mapa-muted);
}

/* ===== SEKCJA „CO DALEJ” (3 ZDANIA O AI MARKETING LAB) ===== */

.mapa-next-section {
    border-bottom: 1px solid var(--frame-ink);
}

.mapa-next-frame {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(15rem, 4fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(2.5rem, 5vw, 4rem) var(--frame-gutter);
}

.mapa-next-copy p {
    max-width: 46rem;
    margin: 0.9rem 0 0;
    font-size: 1.06rem;
    line-height: 1.6;
}

.mapa-next-cta {
    justify-self: end;
}

.mapa-next-cta:hover {
    background: var(--frame-ink);
    color: var(--frame-canvas);
}

/* ===== EKRAN PO ZAPISIE (ODBLOKOWANY PROMPT) ===== */

.mapa-ready-hero {
    border-bottom: 1px solid var(--frame-ink);
}

.mapa-ready-hero .mapa-title {
    font-size: clamp(2.1rem, 3.5vw, 3.35rem);
}

.mapa-confirm-note {
    max-width: 38rem;
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--frame-ink);
    background: var(--mapa-paper);
    font-size: 0.95rem;
    line-height: 1.5;
}

.mapa-confirm-note[hidden] {
    display: none !important;
}

.mapa-ready-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}

.prompt-copy-all {
    min-height: 3.5rem;
    padding: 0.85rem 1.65rem;
    border: 1px solid var(--frame-ink);
    border-radius: 0;
    background: var(--frame-violet);
    color: var(--frame-ink);
    font: 700 1rem/1 var(--frame-font);
    cursor: pointer;
}

.prompt-copy-all:hover:not(:disabled) {
    background: var(--frame-ink);
    color: var(--frame-canvas);
}

.prompt-copy-all:disabled {
    cursor: wait;
    opacity: 0.6;
}

.prompt-copy-all.is-copied {
    background: var(--frame-ink);
    color: var(--frame-canvas);
}

.mapa-download-link {
    font-size: 0.96rem;
    font-weight: 700;
    text-underline-offset: 0.25em;
}

.mapa-prompt-section {
    border-bottom: 1px solid var(--frame-ink);
}

.mapa-prompt-frame {
    padding: clamp(2rem, 4vw, 3.25rem) var(--frame-gutter);
}

.mapa-prompt-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sales-status {
    font-size: 0.96rem;
    font-weight: 600;
}

.mapa-prompt-details {
    border: 1px solid var(--frame-ink);
    background: var(--mapa-paper);
}

.mapa-prompt-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.35rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.mapa-prompt-details summary::-webkit-details-marker {
    display: none;
}

.mapa-prompt-details summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
}

.mapa-prompt-details[open] summary {
    border-bottom: 1px solid var(--frame-ink);
}

.mapa-prompt-details[open] summary::after {
    content: "−";
}

.mapa-prompt-pre {
    width: 100%;
    max-height: min(60rem, 70vh);
    margin: 0;
    overflow: auto;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    background: var(--frame-canvas);
    color: var(--frame-ink);
    font: 500 0.9rem/1.68 var(--frame-mono, ui-monospace, SFMono-Regular, Consolas, monospace);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.mapa-prompt-fallback {
    margin: 1rem 0 0;
    font-size: 0.94rem;
    color: var(--mapa-muted);
}

.mapa-prompt-fallback a {
    color: var(--frame-ink);
    font-weight: 700;
    text-underline-offset: 0.2em;
}

/* ===== RESPONSYWNOŚĆ ===== */

@media (max-width: 70rem) {
    .mapa-hero-frame,
    .mapa-example-frame,
    .mapa-next-frame {
        grid-template-columns: minmax(0, 1fr);
    }

    .mapa-hero-copy {
        padding: clamp(2.25rem, 5vw, 3.5rem) var(--frame-gutter) clamp(1.5rem, 3vw, 2rem);
    }

    .mapa-hero-art {
        padding: 0 var(--frame-gutter) clamp(1.75rem, 4vw, 2.5rem);
    }

    .mapa-example-intro {
        border-right: 0;
        border-bottom: 1px solid var(--frame-ink);
    }

    .mapa-next-cta {
        justify-self: start;
    }

    .mapa-five-grid li,
    .mapa-five-grid li:nth-child(n + 4) {
        grid-column: span 3;
        border-right: 1px solid var(--frame-ink);
        border-bottom: 1px solid var(--frame-ink);
    }

    .mapa-five-grid li:nth-child(2n) {
        border-right: 0;
    }

    .mapa-five-grid li:nth-child(5) {
        grid-column: span 6;
        border-right: 0;
        border-bottom: 0;
    }
}

@media (max-width: 48rem) {
    .mapa-title,
    .mapa-ready-hero .mapa-title {
        font-size: clamp(1.85rem, 8.2vw, 2.55rem);
    }

    .mapa-section-title {
        font-size: clamp(1.55rem, 7vw, 2.1rem);
    }

    .mapa-gate-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .mapa-field input {
        border-right: 1px solid var(--frame-ink);
        border-bottom: 0;
    }

    .mapa-submit {
        width: 100%;
    }

    .mapa-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .mapa-strip li {
        border-right: 0;
        border-bottom: 1px solid var(--frame-ink);
        font-size: 1.2rem;
    }

    .mapa-strip li:last-child {
        border-bottom: 0;
    }

    .mapa-five-grid li,
    .mapa-five-grid li:nth-child(n + 4),
    .mapa-five-grid li:nth-child(5) {
        grid-column: span 6;
        border-right: 0;
        border-bottom: 1px solid var(--frame-ink);
    }

    .mapa-five-grid li:last-child {
        border-bottom: 0;
    }

    .mapa-ready-actions .prompt-copy-all {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prompt-copy-all,
    .mapa-submit {
        transition: none;
    }
}
