/* =============================================================================
   Dynamiczny cennik + modal (landing /intro/)
   Minimalistyczny, czysty layout w duchu servicemanago.pl/intro.
   ========================================================================== */

.sm-pricing {
    padding: 110px 0 120px;
    background: #f7f8fb;
}

.sm-pricing-head {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}

.sm-pricing-eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #4a6cf7;
    font-weight: 600;
    margin-bottom: 14px;
}

.sm-pricing-title {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: #12141d;
    margin: 0 0 14px;
}

.sm-pricing-sub {
    font-size: 16px;
    color: #636a7e;
    margin: 0;
}

/* --- przełącznik cyklu --- */
.sm-cycle {
    display: inline-flex;
    padding: 5px;
    background: #eceef4;
    border-radius: 999px;
    margin: 0 auto 54px;
    gap: 4px;
}

.sm-cycle-wrap {
    text-align: center;
}

.sm-cycle-btn {
    border: 0;
    background: transparent;
    color: #5a6072;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
}

.sm-cycle-btn.is-active {
    background: #fff;
    color: #12141d;
    box-shadow: 0 4px 14px rgba(18, 20, 29, .08);
}

.sm-cycle-save {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: #22a06b;
    font-weight: 700;
}

/* --- siatka pakietów --- */
.sm-plans-grid {
    display: flex;
    gap: 18px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.sm-plans-grid > .sm-plan {
    flex: 1 1 0;
    min-width: 0;
}

.sm-plans-grid > .sm-plans-loading,
.sm-plans-grid > .sm-plans-empty {
    flex: 1 1 100%;
}

.sm-plans-loading,
.sm-plans-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #636a7e;
    padding: 40px 0;
}

.sm-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e7e9f0;
    border-radius: 18px;
    padding: 34px 30px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sm-plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(18, 20, 29, .10);
}

.sm-plan--featured {
    border-color: #4a6cf7;
    box-shadow: 0 18px 44px rgba(74, 108, 247, .16);
}

.sm-plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a6cf7;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 6px 16px;
    border-radius: 999px;
}

.sm-plan-name {
    font-size: 22px;
    font-weight: 700;
    color: #12141d;
    margin: 0 0 8px;
}

.sm-plan-desc {
    font-size: 14px;
    color: #737a8c;
    margin: 0 0 22px;
    min-height: 40px;
}

.sm-plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #eef0f5;
}

.sm-plan-amount {
    font-size: 38px;
    font-weight: 800;
    color: #12141d;
    letter-spacing: -.02em;
}

.sm-plan-amount--custom {
    font-size: 38px;
}

.sm-plan-cycle {
    font-size: 15px;
    color: #8a90a0;
    font-weight: 500;
}

.sm-plan-modules {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    flex: 1;
}

.sm-plan-modules li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #414759;
    padding: 7px 0;
}

.sm-plan-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e8f7f0;
    color: #22a06b;
    font-size: 12px;
    flex: none;
}

.sm-plan-more {
    color: #8a90a0;
    font-style: italic;
    padding-left: 30px;
}

.sm-plan-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-plan-detail {
    border: 0;
    background: transparent;
    color: #4a6cf7;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
}

.sm-plan-detail:hover { text-decoration: underline; }

/* --- przyciski --- */
.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 22px;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s ease;
}

.sm-btn--primary {
    background: #4a6cf7;
    color: #fff;
}
.sm-btn--primary:hover { background: #3a59e0; color: #fff; }

.sm-btn--ghost {
    background: #fff;
    border-color: #d6dae6;
    color: #2b3040;
}
.sm-btn--ghost:hover { border-color: #4a6cf7; color: #4a6cf7; }

/* =============================================================================
   Modal
   ========================================================================== */
.sm-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(18, 20, 29, .55);
    z-index: 1200;
    padding: 20px;
}

.sm-modal.is-open { display: flex; }
body.sm-modal-open { overflow: hidden; }

.sm-modal-dialog {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
    animation: smModalIn .22s ease;
}

@keyframes smModalIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 26px;
    border-bottom: 1px solid #eef0f5;
}

.sm-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #12141d;
    margin: 0;
}

.sm-modal-close {
    border: 0;
    background: #f2f3f7;
    color: #5a6072;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.sm-modal-close:hover { background: #e7e9f0; }

.sm-modal-body { padding: 24px 26px; }
.sm-modal-foot {
    padding: 0 26px 26px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.sm-modal-foot:empty { padding: 0; }

.sm-modal-sub { color: #737a8c; margin: 0 0 18px; }

.sm-modal-modules { list-style: none; margin: 0; padding: 0; }
.sm-modal-modules li {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f2f3f7;
}
.sm-modal-modules li:last-child { border-bottom: 0; }
.sm-modal-modules strong { display: block; color: #23283a; font-size: 15px; }
.sm-modal-modules span { display: block; color: #8a90a0; font-size: 13px; }

/* --- checkout --- */
.sm-checkout-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f7f8fb;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #5a6072;
}
.sm-checkout-total { font-size: 16px; color: #12141d; margin-top: 4px; }

.sm-field { display: block; margin-bottom: 16px; }
.sm-field span { display: block; font-size: 13px; color: #5a6072; margin-bottom: 6px; font-weight: 600; }
.sm-field input {
    width: 100%;
    border: 1px solid #d6dae6;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    color: #23283a;
}
.sm-field input:focus { outline: none; border-color: #4a6cf7; box-shadow: 0 0 0 3px rgba(74,108,247,.12); }

.sm-checkout-note { font-size: 12px; color: #a4a9b7; margin: 8px 0 0; }

.sm-checkout-msg { margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 14px; }
.sm-checkout-msg--error { background: #fdecec; color: #c0392b; }
.sm-checkout-msg--success { background: #e8f7f0; color: #1c8a5a; }

/* --- sukces --- */
.sm-success { text-align: center; padding: 8px 0; }
.sm-success-icon {
    width: 66px; height: 66px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e8f7f0;
    color: #22a06b;
    font-size: 34px;
    display: flex; align-items: center; justify-content: center;
}
.sm-success h4 { font-size: 22px; color: #12141d; margin: 0 0 8px; }
.sm-success p { color: #737a8c; margin: 0 0 22px; }
.sm-success-meta { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.sm-success-meta > div {
    display: flex; justify-content: space-between;
    background: #f7f8fb; border-radius: 10px; padding: 12px 16px;
}
.sm-success-meta dt { color: #8a90a0; font-size: 13px; margin: 0; }
.sm-success-meta dd { color: #23283a; font-size: 14px; font-weight: 600; margin: 0; }

.sm-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    background: #fff4d6;
    color: #b9840b;
    padding: 2px 8px;
    border-radius: 6px;
    vertical-align: middle;
}

@media (max-width: 1023px) {
    .sm-plans-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .sm-plans-grid { grid-template-columns: minmax(0, 1fr); }
    .sm-pricing-title { font-size: 28px; }
    .sm-plan { padding: 28px 22px; }
    .sm-plan-amount--custom { font-size: 28px; }
}
