
/* ============================================================
   SENSTECH — CARDS
   ============================================================ */

.st-card {
    min-width: 0;
    padding: var(--st-space-6, 24px);

    color: var(--st-text, #0B1220);
    background: var(--st-surface, #FFFFFF);
    border: 1px solid var(--st-border, #E2E8F0);
    border-radius: var(--st-radius-lg, 16px);

    box-shadow: var(--st-shadow-xs, 0 1px 2px rgba(11, 18, 32, .04));
}

.st-card-flat {
    box-shadow: none;
}

.st-card-hover {
    transition:
        transform var(--st-transition, 180ms ease),
        box-shadow var(--st-transition, 180ms ease),
        border-color var(--st-transition, 180ms ease);
}

.st-card-hover:hover {
    transform: translateY(-3px);
    border-color: var(--st-green-200, #A7F3D0);
    box-shadow: var(--st-shadow-md, 0 6px 18px rgba(11, 18, 32, .08));
}

.st-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--st-space-4, 16px);
    margin-bottom: var(--st-space-4, 16px);
}

.st-card-title {
    margin: 0 0 var(--st-space-2, 8px);
    color: var(--st-text, #0B1220);
    font-family: var(--st-font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: var(--st-text-lg, 1.125rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.st-card-description {
    margin: 0;
    color: var(--st-text-muted, #64748B);
    font-size: var(--st-text-sm, 0.875rem);
    line-height: 1.7;
}

.st-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: var(--st-space-5, 20px);
    padding-top: var(--st-space-4, 16px);

    border-top: 1px solid var(--st-border, #E2E8F0);
}

/* Variants */

.st-card-green {
    color: #FFFFFF;
    background: var(--st-primary, #0F6A4A);
    border-color: var(--st-primary, #0F6A4A);
}

.st-card-green h2,
.st-card-green h3,
.st-card-green p,
.st-card-green .st-card-title {
    color: #FFFFFF;
}

.st-card-tinted {
    background: var(--st-surface-green, #ECFDF5);
    border-color: var(--st-green-100, #D1FAE5);
}

/* Feature card */

.st-feature-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    padding: var(--st-space-6, 24px);

    color: #FFFFFF;
    background: var(--st-primary, #0F6A4A);
    border-radius: var(--st-radius-lg, 16px);
}

.st-feature-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -70px;

    width: 180px;
    height: 180px;

    background: var(--st-secondary, #14B8A6);
    opacity: 0.28;
    border-radius: 50%;
    pointer-events: none;
}

.st-feature-card > * {
    position: relative;
    z-index: 1;
}

.st-feature-card h3,
.st-feature-card p {
    color: #FFFFFF;
}

/* Image card */

.st-image-tile {
    position: relative;
    min-height: 260px;
    overflow: hidden;

    color: #FFFFFF;
    background: var(--st-primary, #0F6A4A);
    border-radius: var(--st-radius-lg, 16px);
}

.st-image-tile img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    transition: transform var(--st-transition-slow, 280ms ease);
}

.st-image-tile:hover img {
    transform: scale(1.04);
}

.st-image-tile::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        transparent 25%,
        rgba(3, 24, 18, 0.82)
    );
}

.st-image-tile-content {
    position: absolute;
    z-index: 1;
    right: 18px;
    bottom: 18px;
    left: 18px;
}

.st-image-tile h3 {
    color: #FFFFFF;
    font-size: var(--st-text-lg, 1.125rem);
}

/* Metrics */

.st-metric {
    padding: var(--st-space-6, 24px);
    background: #FFFFFF;
    border: 1px solid var(--st-border, #E2E8F0);
    border-radius: var(--st-radius-lg, 16px);
    box-shadow: var(--st-shadow-xs, 0 1px 2px rgba(11, 18, 32, .04));
}

.st-metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.st-metric-label {
    color: var(--st-text-muted, #64748B);
    font-size: var(--st-text-sm, 0.875rem);
    font-weight: 500;
}

.st-metric-value {
    margin: 10px 0 6px;
    color: var(--st-text, #0B1220);
    font-family: var(--st-font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: var(--st-text-3xl, 1.875rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.st-metric-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--st-text-muted, #64748B);
    font-size: var(--st-text-xs, 0.75rem);
}

.st-trend-up {
    color: var(--st-success, #15803D);
    font-weight: 600;
}

.st-trend-down {
    color: var(--st-danger, #DC2626);
    font-weight: 600;
}

/* Pricing */

.st-pricing-card {
    position: relative;
    padding: var(--st-space-8, 32px);

    background: #FFFFFF;
    border: 1px solid var(--st-border, #E2E8F0);
    border-radius: var(--st-radius-xl, 24px);
    box-shadow: var(--st-shadow-sm, 0 2px 6px rgba(11, 18, 32, .06));
}

.st-pricing-card-featured {
    border: 2px solid var(--st-primary, #0F6A4A);
    box-shadow: var(--st-shadow-green, 0 10px 28px rgba(15, 106, 74, .18));
}

.st-pricing-featured-label {
    position: absolute;
    top: 16px;
    right: 16px;

    padding: 5px 10px;

    color: var(--st-green-900, #064E3B);
    background: var(--st-lime-300, #BEF264);
    border-radius: var(--st-radius-full, 9999px);

    font-size: var(--st-text-xs, 0.75rem);
    font-weight: 700;
}

.st-price {
    margin-block: var(--st-space-4, 16px);
    color: var(--st-primary, #0F6A4A);
    font-family: var(--st-font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: var(--st-text-4xl, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.st-price small {
    color: var(--st-text-muted, #64748B);
    font-family: var(--st-font-body, 'Inter', sans-serif);
    font-size: var(--st-text-sm, 0.875rem);
    font-weight: 400;
    letter-spacing: 0;
}

@media (max-width: 640px) {
    .st-card,
    .st-metric {
        padding: var(--st-space-4, 16px);
    }

    .st-pricing-card {
        padding: var(--st-space-5, 20px);
    }
}
