/* ── service-pages.css — shared styles for bot/service landing pages ── */

/* Integrations grid */
.integ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px
}

.integ-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    text-align: center;
    line-height: 1.3
}

.integ-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px
}

.integ-emoji {
    font-size: 30px;
    line-height: 1
}

/* Price card */
.price-card {
    position: relative;
    border-radius: 20px;
    padding: 52px 52px 44px;
    background: linear-gradient(150deg, #f0f4ff 0%, #e8edff 100%);
    border: 1px solid #cdd9ff;
    overflow: hidden
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent);
    border-radius: 20px 20px 0 0
}

.price-header {
    margin-bottom: 20px
}

.price-from {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(44px, 6vw, 64px);
    font-weight: 700;
    color: var(--ink);
    line-height: 1
}

.price-from-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: .07em
}

.price-desc {
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 28px
}

.price-factors {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 32px
}

.price-factors li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-2);
    align-items: baseline
}

.price-factors li::before {
    content: '—';
    color: var(--accent);
    flex-shrink: 0
}

.price-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center
}

.price-card-left,
.price-card-right {
    display: contents
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 40px 0 0
}

.stat-item {
    background: var(--bg);
    padding: 28px 20px;
    text-align: center
}

.stat-num {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px
}

.stat-label {
    font-size: 12.5px;
    color: var(--ink-2);
    line-height: 1.4
}

/* Chat mock (Telegram-style dialogue) */
.chat-mock {
    background: #efeae2;
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.chat-row {
    display: flex;
    gap: 8px;
    align-items: flex-end
}

.chat-row.user {
    flex-direction: row-reverse
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    font-weight: 700
}

.chat-bubble {
    max-width: 82%;
    background: #fff;
    border-radius: 12px 12px 12px 4px;
    padding: 10px 13px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .07)
}

.chat-row.user .chat-bubble {
    background: #dcf8c6;
    border-radius: 12px 12px 4px 12px
}

.chat-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px
}

.chat-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 12px;
    color: var(--ink)
}

.chat-btn.picked {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff
}

.chat-confirm {
    background: #25d366;
    color: #fff;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4
}

/* Lead funnel steps */
.funnel-wrap {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px
}

.funnel-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg)
}

.funnel-step+.funnel-step {
    border-top: 1px solid var(--border)
}

.funnel-n {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px
}

.funnel-t {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
    color: var(--ink)
}

.funnel-d {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.5
}

.funnel-tag {
    display: inline-block;
    background: #eef2ff;
    color: var(--accent);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px
}

/* Scenario split (chat left + points right) */
.scenario-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start
}

.scenario-points {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.scenario-point {
    display: flex;
    gap: 14px;
    align-items: flex-start
}

.scenario-point-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border)
}

.scenario-point-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px
}

.scenario-point-text span {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.5
}

/* Niche cards */
.niche-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px
}

.niche-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px
}

.niche-card-icon {
    font-size: 28px;
    margin-bottom: 12px
}

.niche-card-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 6px
}

.niche-card-text {
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.5
}

.niche-card-example {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--muted);
    font-style: italic
}

/* Phone mockup (for mini-apps hero) */
.phone-mock {
    width: 260px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 48px 96px rgba(11, 13, 18, .32), 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 2px #333
}

.phone-notch {
    width: 80px;
    height: 22px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 6px;
    position: relative
}

.phone-notch::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2a2a2a;
    top: 6px;
    left: 50%;
    transform: translateX(-50%)
}

.phone-screen {
    background: #fff;
    border-radius: 24px;
    overflow: hidden
}

.papp-header {
    background: #2b6eff;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600
}

.papp-back {
    opacity: .7;
    font-size: 17px
}

.papp-body {
    padding: 14px
}

.papp-lbl {
    font-size: 10px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 7px
}

.papp-chip {
    border: 1px solid #e6e4de;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12.5px;
    color: #0b0d12;
    margin-bottom: 6px
}

.papp-chip.sel {
    border-color: #2b6eff;
    background: #eef2ff;
    color: #2b6eff;
    font-weight: 500
}

.papp-dates {
    display: flex;
    gap: 5px;
    margin-bottom: 12px
}

.papp-date {
    flex: 1;
    text-align: center;
    border: 1px solid #e6e4de;
    border-radius: 7px;
    padding: 6px 2px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25
}

.papp-date small {
    display: block;
    font-size: 9px;
    font-weight: 400;
    color: #888
}

.papp-date.act {
    background: #2b6eff;
    border-color: #2b6eff;
    color: #fff
}

.papp-date.act small {
    color: rgba(255, 255, 255, .7)
}

.papp-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 14px
}

.papp-time {
    border: 1px solid #e6e4de;
    border-radius: 6px;
    padding: 7px 4px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 500
}

.papp-time.act {
    background: #2b6eff;
    border-color: #2b6eff;
    color: #fff
}

.papp-time.bsy {
    background: #f6f5f2;
    color: #c8c5bc;
    text-decoration: line-through
}

.papp-cta {
    background: #2b6eff;
    color: #fff;
    border-radius: 9px;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600
}

/* Responsive */
@media(max-width:860px) {
    .scenario-split {
        grid-template-columns: 1fr
    }
}

@media(max-width:600px) {
    .price-card {
        padding: 28px 24px 24px
    }

    .price-factors {
        grid-template-columns: 1fr
    }

    .price-cta {
        flex-direction: column;
        align-items: stretch
    }

    .integ-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .stats-row {
        grid-template-columns: 1fr
    }

    .niche-grid {
        grid-template-columns: 1fr
    }
}

@media (max-height:900px) and (min-width:821px) {
    .stats-row {
        display: flex;
        gap: 10px;
        background: transparent;
        border: none;
        border-radius: 0;
        overflow: visible;
        margin-top: 16px
    }

    .stat-item {
        flex: 1 1 0;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 14px 12px
    }

    .stat-label {
        font-size: 11.5px;
        line-height: 1.35
    }

    .price-card {
        padding: 40px 40px 34px
    }

    .scenario-split {
        gap: 32px
    }
}

@media (max-height:780px) and (min-width:821px) {
    .stats-row {
        gap: 8px;
        margin-top: 12px
    }

    .stat-item {
        padding: 12px 10px
    }

    .stat-num {
        font-size: clamp(18px, 2.1vw, 24px)
    }

    .stat-label {
        font-size: 11px
    }

    .price-card {
        padding: 34px 32px 28px
    }

    .funnel-step {
        padding: 16px 18px
    }

    .scenario-split {
        gap: 24px
    }
}