/* Five Engines Grid - Matching Screenshot Layout */

.wt-grid-5 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 28px);
    grid-template-areas:
        "c1 c1 c1 c1 c2 c2 c2 c2 c3 c3 c3 c3"
        "c4 c4 c4 c4 c4 c4 c5 c5 c5 c5 c5 c5";
}

.wt-grid-5 article:nth-child(1) { grid-area: c1; }
.wt-grid-5 article:nth-child(2) { grid-area: c2; }
.wt-grid-5 article:nth-child(3) { grid-area: c3; }
.wt-grid-5 article:nth-child(4) { grid-area: c4; }
.wt-grid-5 article:nth-child(5) { grid-area: c5; }

/* Base Card */
.wt-card {
    background: #fff;
    border-radius: 24px;
    padding: clamp(20px, 4vw, 32px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.wt-card h3 {
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.25;
}

.wt-card p {
    margin: 0;
    color: var(--wt-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Card 1: Cost per Lead */
.wt-card--cost {
    align-items: center;
    text-align: center;
}

.wt-card__big-metric {
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    font-weight: 700;
    color: var(--wt-dark);
}

.wt-card__widgets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.wt-widget {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wt-widget--trend {
    justify-content: center;
}

.wt-widget--trend span {
    font-weight: 600;
    color: #fb7185;
}

.wt-widget--metric {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.wt-widget__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.1rem;
}

.wt-widget__icon--green {
    background: #16a34a;
}

.wt-widget__number {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--wt-dark);
}

.wt-widget span {
    font-size: 0.85rem;
    color: var(--wt-muted);
}

/* Card 2: Revenue Growth */
.wt-card--revenue {
}

.wt-bar-chart {
    background: #fafafa;
    border-radius: 18px;
    padding: 16px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 140px;
}

.wt-bar-chart__bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 120px;
}

.wt-bar {
    width: 18px;
    height: calc(var(--height, 50%) * 1);
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border-radius: 6px 6px 0 0;
    animation: wtBarGrow 1.2s ease-out;
    animation-fill-mode: both;
}

@keyframes wtBarGrow {
    from { height: 0; opacity: 0; }
    to { height: calc(var(--height, 50%) * 1); opacity: 1; }
}

.wt-bar-chart__icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wt-dark);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
}

/* Card 3: Leads Accelerator */
.wt-card--accelerator {
}

.wt-cost-box {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.wt-cost-box__label {
    font-size: 0.9rem;
    color: var(--wt-muted);
    writing-mode: horizontal-tb;
}

.wt-cost-box__value {
    background: var(--wt-dark);
    color: #fff;
    font-size: clamp(1.8rem, 5vw, 2.3rem);
    font-weight: 700;
    border-radius: 16px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wt-cost-box__icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wt-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.wt-icon-btn:hover {
    transform: scale(1.08);
}

.wt-icon-btn--dark {
    background: var(--wt-dark);
}

.wt-icon-btn--green {
    background: #16a34a;
}

.wt-icon-btn i {
    color: #fff;
}

/* Card 4: Services Grid */
.wt-card--services-grid {
    background: #fff;
}

.wt-services-icons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 24px);
}

.wt-service-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.wt-service-icon:focus-visible {
    outline: none;
}

.wt-service-icon:focus-visible .wt-service-icon__circle {
    border-color: #f97316;
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.22);
}

.wt-service-icon__circle {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #ffffff;
    display: grid;
    place-items: center;
    color: #f97316;
    font-size: 1.5rem;
    transition: border 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid transparent;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.wt-service-icon:hover .wt-service-icon__circle {
    border-color: #f97316;
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.22);
}

.wt-service-icon span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wt-dark);
}

.wt-btn--block {
    width: 100%;
    justify-content: center;
}

.wt-btn--dark {
    background: var(--wt-dark);
    color: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}

.wt-btn--dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}

.wt-btn--dark i {
    color: #fff;
}

/* Card 5: Segmentation */
.wt-card--segmentation {
}

.wt-retention {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wt-retention__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wt-retention__value {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--wt-dark);
}

.wt-retention__label {
    color: var(--wt-muted);
    font-size: 0.95rem;
}

.wt-progress {
    height: 12px;
    background: rgba(251, 113, 133, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

.wt-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #fb7185, #f97316);
    border-radius: inherit;
    transition: width 1.2s ease-out;
}

.wt-new-leads {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafafa;
    border-radius: 16px;
    padding: 16px;
}

.wt-new-leads__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wt-new-leads__header span {
    font-size: 0.9rem;
    color: var(--wt-muted);
}

.wt-new-leads__number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wt-dark);
}

.wt-segments {
    display: flex;
    gap: 4px;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
}

.wt-seg {
    border-radius: inherit;
}

.wt-seg--orange { background: #fb7185; }
.wt-seg--yellow { background: #fbbf24; }
.wt-seg--green { background: #22c55e; }
.wt-seg--blue { background: #3b82f6; }

/* Responsive */
@media (max-width: 1024px) {
    .wt-grid-5 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-areas:
            "c1 c1 c2 c2 c3 c3"
            "c4 c4 c4 c5 c5 c5";
    }
}

@media (max-width: 720px) {
    .wt-grid-5 {
        grid-template-columns: 1fr;
        grid-template-areas:
            "c1"
            "c2"
            "c3"
            "c4"
            "c5";
    }

    .wt-card__widgets {
        grid-template-columns: 1fr;
    }

    .wt-cost-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wt-cost-box__icons {
        flex-direction: row;
        justify-content: center;
    }

    .wt-services-icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
