/* Stage 7: KP Generator */

.kp-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.kp-hero__bg,
.kp-hero__overlay {
    position: absolute;
    inset: 0;
}

.kp-hero__bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.kp-hero__overlay {
    background:
        radial-gradient(circle at 22% 25%, rgba(251,191,36,0.24), transparent 32%),
        linear-gradient(90deg, rgba(2,6,23,0.97), rgba(2,6,23,0.78), rgba(2,6,23,0.4));
}

.kp-hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.kp-hero h1 {
    max-width: 900px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.95;
    margin: 22px 0;
}

.kp-hero p {
    max-width: 760px;
    font-size: 20px;
    line-height: 1.65;
    color: #dbeafe;
}

.kp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.kp-form {
    display: grid;
    gap: 20px;
}

.kp-card {
    border: 1px solid rgba(255,255,255,0.13);
    background: rgba(15,23,42,0.72);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}

.kp-card h3 {
    margin-top: 0;
}

.kp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.kp-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

.kp-checks label {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}

.kp-checks input {
    width: auto;
}

.kp-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.kp-help {
    position: sticky;
    top: 90px;
}

.kp-help ul {
    color: #d1d5db;
    line-height: 1.7;
    padding-left: 20px;
}

.kp-document-wrap {
    background: #0b0f19;
    padding: 40px 20px;
}

.kp-document {
    width: min(100%, 960px);
    margin: 0 auto;
    background: #fff;
    color: #111827;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 35px 100px rgba(0,0,0,0.45);
}

.kp-cover {
    min-height: 300px;
    padding: 46px;
    background:
        radial-gradient(circle at 20% 20%, rgba(251,191,36,0.26), transparent 28%),
        linear-gradient(135deg, #0f172a, #020617);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: end;
}

.kp-logo {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.kp-logo span {
    color: #fbbf24;
}

.kp-label {
    color: #fbbf24;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.kp-cover h2 {
    font-size: 46px;
    line-height: 1;
    margin: 18px 0;
}

.kp-cover p {
    color: #dbeafe;
}

.kp-meta {
    padding: 22px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}

.kp-meta p {
    margin: 8px 0;
}

.kp-section {
    padding: 34px 46px;
    border-bottom: 1px solid #e5e7eb;
}

.kp-section h3 {
    margin-top: 0;
    font-size: 24px;
    color: #0f172a;
}

.kp-table,
.kp-estimate {
    display: grid;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.kp-table div,
.kp-estimate div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.kp-table div:last-child,
.kp-estimate div:last-child {
    border-bottom: 0;
}

.kp-table span,
.kp-estimate span {
    color: #475569;
}

.kp-table strong,
.kp-estimate strong {
    text-align: right;
}

.kp-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    padding-left: 0;
    list-style: none;
}

.kp-list li {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.kp-list li::before {
    content: "✓ ";
    color: #ca8a04;
    font-weight: 900;
}

.kp-total {
    background: #0f172a;
    color: #fff;
    font-size: 20px;
}

.kp-total span {
    color: #fef3c7;
}

.kp-total strong {
    color: #fbbf24;
}

.kp-warning {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 14px;
    padding: 18px;
    color: #78350f;
    line-height: 1.65;
}

.kp-footer-doc {
    padding: 34px 46px;
    display: flex;
    justify-content: space-between;
    gap: 26px;
    background: #f8fafc;
    color: #334155;
}

@media (max-width: 900px) {
    .kp-layout,
    .kp-cover {
        grid-template-columns: 1fr;
    }

    .kp-help {
        position: static;
    }
}

@media (max-width: 680px) {
    .kp-grid,
    .kp-checks,
    .kp-list {
        grid-template-columns: 1fr;
    }

    .kp-cover,
    .kp-section,
    .kp-footer-doc {
        padding: 24px;
    }

    .kp-cover h2 {
        font-size: 34px;
    }
}

@media print {
    @page {
        size: A4;
        margin: 10mm;
    }

    body {
        background: #fff !important;
    }

    .no-print,
    .header,
    .floating-call-btn {
        display: none !important;
    }

    .kp-document-wrap {
        padding: 0 !important;
        background: #fff !important;
    }

    .kp-document {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .kp-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
