/* ==============================
   Kalkulator AI – style specyficzne
   ============================== */

/* Ekrany jako slajdy */
.screen {
    display: none;
    padding: 120px 0 80px;
    min-height: 100vh;
}
.screen.active {
    display: block;
}

/* ===== EKRAN 0 HERO ===== */
.kalk-hero {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}
.kalk-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.1;
    margin: 16px 0 20px;
    font-weight: 800;
}
.kalk-sub {
    font-size: 19px;
    color: var(--text-soft);
    max-width: 720px;
    margin: 0 auto 40px;
}
.kalk-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
}
.kalk-stat {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 32px;
    box-shadow: var(--shadow-sm);
    min-width: 160px;
}
.kalk-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}
.kalk-stat span {
    color: var(--text-mute);
    font-size: 14px;
}

.btn-xl {
    font-size: 19px;
    padding: 20px 40px;
    border-radius: 999px;
}

/* Trust cards */
.kalk-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 80px auto 60px;
    text-align: left;
}
.trust-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.trust-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}
.trust-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.trust-card p {
    color: var(--text-soft);
    font-size: 15px;
}

/* Mini FAQ */
.kalk-mini-faq {
    max-width: 720px;
    margin: 40px auto 0;
    text-align: left;
}
.kalk-mini-faq details {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 12px;
    cursor: pointer;
}
.kalk-mini-faq summary {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    list-style: none;
    font-size: 16px;
}
.kalk-mini-faq summary::-webkit-details-marker { display: none; }
.kalk-mini-faq summary span {
    color: var(--primary);
    font-size: 22px;
}
.kalk-mini-faq details[open] summary span {
    transform: rotate(45deg);
    transition: transform 0.2s;
}
.kalk-mini-faq p {
    margin-top: 12px;
    color: var(--text-soft);
}

/* ===== FORMULARZ ===== */
.kalk-form {
    max-width: 720px;
}
.kalk-form h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin: 16px 0 12px;
}
.form-help {
    color: var(--text-soft);
    margin-bottom: 32px;
}
.progress-bar {
    height: 6px;
    background: var(--bg-alt);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-fill {
    height: 100%;
    background: var(--gradient);
    transition: width 0.3s;
}
.progress-label {
    font-size: 13px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Kafelki wyboru */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin: 24px 0 32px;
}
.tile-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.tile-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.tile {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 18px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-family: inherit;
}
.tile:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.tile.selected {
    border-color: var(--primary);
    background: #EEF2FF;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.tile.tile-sm {
    padding: 18px 14px;
}
.tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}
.tile h3 {
    font-size: 16px;
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-weight: 700;
}
.tile p {
    font-size: 13px;
    color: var(--text-mute);
}

/* Pola formularza */
.form-field {
    margin-bottom: 28px;
}
.form-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 15px;
}
.form-field input,
.form-field select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary);
}
.form-field small {
    display: block;
    color: var(--text-mute);
    font-size: 13px;
    margin-top: 6px;
}
.input-with-suffix {
    position: relative;
}
.input-with-suffix input {
    padding-right: 80px;
}
.input-with-suffix span {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-mute);
    font-weight: 600;
}

/* Nawigacja formularza */
.form-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ===== EKRAN PŁATNOŚCI ===== */
.kalk-pay {
    max-width: 600px;
}
.pay-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-top: 24px;
}
.pay-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-alt);
}
.pay-row:last-child { border: none; }
.pay-row.pay-total {
    margin-top: 16px;
    padding: 20px 0;
    border-top: 2px solid var(--text);
    font-size: 22px;
    font-weight: 800;
}
.pay-row.pay-total strong {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pay-email {
    margin: 20px 0;
}
.pay-email label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}
.pay-email input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
}
.btn-stripe {
    width: 100%;
    background: #635BFF;
    margin-top: 12px;
}
.pay-guarantee {
    text-align: center;
    margin-top: 16px;
    color: #16A34A;
    font-weight: 700;
}
.pay-meta {
    text-align: center;
    color: var(--text-mute);
    font-size: 13px;
    margin-top: 8px;
}

/* ===== WYNIK ===== */
.kalk-result {
    max-width: 900px;
}
.badge-success {
    background: #DCFCE7;
    color: #16A34A;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 16px;
}
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 32px 0;
}
.result-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.result-card-success {
    border-color: #86EFAC;
    background: linear-gradient(135deg, #F0FDF4 0%, white 100%);
}
.result-card-warning {
    border-color: #FCD34D;
    background: linear-gradient(135deg, #FFFBEB 0%, white 100%);
}
.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.result-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.result-header h3 {
    font-size: 22px;
    margin: 0;
}
.result-chance {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.chance-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}
.chance-high { background: linear-gradient(135deg, #16A34A, #22C55E); }
.chance-mid { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.chance-low { background: linear-gradient(135deg, #DC2626, #EF4444); }
.result-chance strong {
    display: block;
    font-size: 17px;
}
.result-chance p {
    color: var(--text-soft);
    font-size: 14px;
}
.result-amount {
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.result-amount span {
    color: var(--text-mute);
    font-size: 13px;
    display: block;
}
.result-amount strong {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--text);
}
.result-meta {
    font-size: 14px;
    color: var(--text-soft);
}

/* AI Comment */
.ai-comment {
    background: linear-gradient(135deg, #EEF2FF 0%, #ECFEFF 50%, #FCE7F3 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 32px 0;
}
.ai-comment-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.ai-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-sm);
}
.ai-comment-head strong {
    display: block;
    font-size: 17px;
}
.ai-comment-head span {
    font-size: 13px;
    color: var(--text-soft);
}
.ai-comment-body p {
    margin-bottom: 14px;
    line-height: 1.7;
}

/* Dokumenty */
.docs-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin: 32px 0;
}
.docs-card h3 {
    margin-bottom: 16px;
}
.docs-card ul {
    list-style: none;
}
.docs-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-alt);
    color: var(--text-soft);
}
.docs-card li:last-child { border: none; }

/* Disclaimer card */
.disclaimer-card {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 32px 0;
}
.disclaimer-icon {
    font-size: 32px;
    flex-shrink: 0;
}
.disclaimer-card strong {
    display: block;
    font-size: 17px;
    margin-bottom: 6px;
    color: #92400E;
}
.disclaimer-card p {
    color: #78350F;
    font-size: 15px;
    line-height: 1.5;
}

/* Upsell */
.upsell-card {
    background: var(--gradient);
    color: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 32px 0;
}
.upsell-header {
    text-align: center;
    margin-bottom: 32px;
}
.upsell-card h3 {
    font-size: 28px;
    color: white;
    margin-bottom: 12px;
}
.upsell-sub {
    color: rgba(255,255,255,0.92);
    font-size: 16px;
}

/* Service tiles (wybór usługi) */
.service-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.service-tile {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 3px solid transparent;
}
.service-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.service-tile-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}
.service-tile h4 {
    font-family: var(--font-display);
    font-size: 19px;
    margin-bottom: 8px;
    line-height: 1.2;
}
.service-tile p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}
.service-tile-price {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.service-tile-price strong {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--text);
    line-height: 1;
}
.service-tile-price span {
    font-size: 13px;
    color: var(--text-mute);
}
.service-tile-price s {
    color: var(--text-mute);
    margin-right: 6px;
}

.service-tile-best {
    border-color: #F59E0B;
    background: linear-gradient(135deg, #FFFBEB 0%, white 100%);
}
.service-tile-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #F59E0B;
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.service-tile-best .service-tile-price strong {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upsell-roi {
    font-size: 14px;
    color: rgba(255,255,255,0.92);
    text-align: center;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-soft);
}
.footer small {
    color: var(--text-mute);
}

/* Responsive */
@media (max-width: 640px) {
    .screen { padding: 100px 0 60px; }
    .kalk-stats { gap: 12px; }
    .kalk-stat { padding: 16px 20px; min-width: 130px; }
    .kalk-stat strong { font-size: 24px; }
    .upsell-grid { flex-direction: column; text-align: center; }
    .upsell-price { text-align: center; }
    .form-nav { flex-direction: column-reverse; }
    .form-nav .btn { width: 100%; }
}

/* Active link in navbar */
.nav-menu a.active {
    color: var(--primary);
    font-weight: 700;
}
