/* Dashboard Elements for CTA */
/* ── DB Card base ─────────────────────────────────────────────── */
.db-card {
    position: absolute;
    z-index: 10;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: none;
}

/* Coordinates from pixel-accurate measurement of 1350×856px source image */
.db-card--1 {
    top: 24.8%;
    left: 61.6%;
    width: 16.9%;
    height: 29.7%;
    padding: 2% 2%;
}

.db-card--2 {
    top: 24.8%;
    left: 79.2%;
    width: 16.9%;
    height: 29.7%;
    padding: 2% 2%;
}

.db-card--3 {
    top: 55.8%;
    left: 61.6%;
    width: 34.8%;
    height: 35.4%;
    padding: 2% 2%;
}

/* ── Card header ──────────────────────────────────────────────── */
.db-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
}

.db-card__title {
    font-size: clamp(4px, 1.2vw, 15px);
    font-weight: 600;
    color: #111;
    line-height: 1.25;
}

.db-card__title--lg {
    font-size: clamp(5px, 1.35vw, 17px);
    font-weight: 700;
}

.db-card__sub {
    font-size: clamp(3px, 0.68vw, 9px);
    color: #9ca3af;
    margin-top: 2px;
}

/* ── Badges ───────────────────────────────────────────────────── */
.db-badge {
    font-size: clamp(3px, 0.7vw, 9px);
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
}

.db-badge--green {
    background: #f0f4e8;
    color: #5a7a2a;
}

.db-badge--dark {
    background: #111;
    color: #fff;
}

/* ── Avatars (Card 1) ─────────────────────────────────────────── */
.db-avatars {
    display: flex;
    align-items: center;
}

.db-avatar {
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-avatar svg {
    width: 55%;
    height: 55%;
    display: block;
}

.db-avatar--sm {
    width: clamp(8px, 2.3vw, 28px);
    height: clamp(8px, 2.3vw, 28px);
    margin-right: -5px;
}

.db-avatar--md {
    width: clamp(10px, 2.9vw, 34px);
    height: clamp(10px, 2.9vw, 34px);
    margin-right: -5px;
    z-index: 1;
}

.db-avatar--gray {
    background: #e5e7eb;
}

.db-avatar--orange {
    background: #fde8e0;
}

/* ── Metric row (shared) ──────────────────────────────────────── */
.db-metric {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.db-metric__value {
    font-size: clamp(7px, 2.4vw, 32px);
    font-weight: 700;
    color: #111;
    line-height: 1;
}

.db-metric__unit {
    font-size: 0.58em;
    color: #9ca3af;
    font-weight: 400;
}

.db-arrow {
    width: clamp(4px, 0.9vw, 12px);
    height: auto;
    flex-shrink: 0;
}

/* ── Calendar (Card 2) ────────────────────────────────────────── */
.db-calendar {
    display: flex;
    gap: 3%;
    align-items: stretch;
}

.db-cal-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border-radius: 6px;
    padding: 4% 2%;
    font-size: clamp(3px, 0.88vw, 12px);
}

.db-cal-day--active {
    background: #eef0f8;
}

.db-cal-day__num {
    font-weight: 700;
    color: #111;
    font-size: 1.15em;
    line-height: 1;
}

.db-cal-day__name {
    color: #9ca3af;
    line-height: 1;
}

.db-cal-day:not(.db-cal-day--active) .db-cal-day__num,
.db-cal-day:not(.db-cal-day--active) .db-cal-day__name {
    color: #d1d5db;
}

/* ── Segmented bar (Card 3) ───────────────────────────────────── */
.db-seg-bar {
    display: flex;
    gap: 2px;
    border-radius: 6px;
    overflow: hidden;
    height: clamp(2px, 0.85vw, 10px);
    background: #f3f4f6;
}

.db-seg-bar>div {
    border-radius: 4px;
}

/* ── Stage list (Card 3) ──────────────────────────────────────── */
.db-stage-list {
    display: flex;
    flex-direction: column;
    gap: 2%;
    flex: 1;
    justify-content: space-evenly;
}

.db-stage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: clamp(3px, 0.88vw, 11px);
}

.db-stage-row__label {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.db-stage-dot {
    width: clamp(3px, 0.72vw, 9px);
    height: clamp(3px, 0.72vw, 9px);
    border-radius: 50%;
    flex-shrink: 0;
}

.db-stage-name {
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-stage-pct {
    color: #9ca3af;
    margin: 0 4px;
    flex-shrink: 0;
}

.db-stage-count {
    font-weight: 600;
    color: #111;
    flex-shrink: 0;
}

/* Final CTA Section */
/* ═══════════════════════════════════════════════════
   FINAL CTA SECTION (Stenzo)
═══════════════════════════════════════════════════ */
.stenzo-final-cta {
    background-color: #ebeff5;
    /* Seamless transition from blog section gradient */
    padding: 120px 24px;
    width: 100%;
}

.stenzo-final-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #343647;
    border-radius: 40px;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.stenzo-final-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    padding: 0 24px;
    z-index: 2;
}

.stenzo-final-cta-icon {
    width: 48px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 32px;
}

.stenzo-final-cta-title {
    color: #ffffff;
    font-size: 56px;
    font-weight: var(--text-title-weight);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px 0;
}

.stenzo-final-cta-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 40px 0;
}

.stenzo-final-cta-button {
    display: inline-flex;
    align-items: center;
    background-color: rgb(219, 74, 43);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgb(255, 255, 255);
    padding: 6px 24px 6px 6px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.stenzo-final-cta-button:hover {
    transform: scale(1.02);
    background-color: rgb(212, 78, 22);
}

.stenzo-final-cta-button-text {
    margin-left: 12px;
}

.stenzo-final-cta-button-icon {
    width: 56px;
    height: 40px;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.06) 0px 1px 4px 0px;
}

.stenzo-final-cta-button-icon svg {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2px !important;
    stroke: rgb(219, 74, 43) !important;
}

.stenzo-final-cta-dashboard {
    margin-top: 80px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    z-index: 1;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: 24px;
    transform: translateZ(0);
}

.stenzo-final-cta-dashboard-inner {
    position: relative;
    width: 100%;
}

.stenzo-final-cta-dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    /* Added proper border radius */
}

.stenzo-final-cta-dashboard-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, rgba(52, 54, 71, 0) 0%, #343647 90%);
    pointer-events: none;
    z-index: 20;
    border-radius: 0 0 24px 24px;
    /* Ensure fade matches image radius at bottom */
}

/* Ensure the reused db-card classes are visible and in correct initial state */
.stenzo-final-cta-dashboard .db-card {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto;
    /* allow hover on cards */
}

@media (max-width: 991px) {
    .stenzo-final-cta-dashboard {
        border-radius: 12px;
    }

    .stenzo-final-cta-dashboard-img {
        border-radius: 12px;
    }

    .stenzo-final-cta-dashboard-fade {
        border-radius: 0 0 12px 12px;
    }

    .stenzo-final-cta-dashboard .db-card {
        border-radius: 14px !important;
    }
}

@media (max-width: 768px) {
    .stenzo-final-cta {
        padding: 60px 16px;
    }

    .stenzo-final-cta-container {
        border-radius: 24px;
        padding-top: 60px;
    }

    .stenzo-final-cta-title {
        font-size: 36px;
    }

    .stenzo-final-cta-description {
        font-size: 16px;
    }

    .stenzo-final-cta-dashboard {
        width: calc(100% - 32px);
        margin-top: 40px;
        border-radius: 5px;
    }

    .stenzo-final-cta-dashboard-fade {
        border-radius: 0 0 5px 5px;
    }

    .stenzo-final-cta-dashboard .db-card {
        border-radius: 4px !important;
    }
}