/* =========================================================================
   LAVACASCADE — css/components/cards.css
   .card            the base surface: night-700, 1px line, 14px radius
   .card--hot       highlighted: thin molten line along the top edge
   .feature         icon tile + title + text (features grids)
   .icon-tile       small square holding an icon
   .stat            label over a big number (spec strip, dashboard)
   ========================================================================= */

/* =========================================
   CARD
   ========================================= */
.card {
    position: relative;
    padding: var(--space-6);
    background: linear-gradient(160deg, rgba(255, 133, 64, 0.035), transparent 45%), var(--night-700);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.card--flat {
    background: var(--night-800);
    box-shadow: none;
}

/* highlighted card: molten line on top */
.card--hot::before {
    content: "";
    position: absolute;
    inset: -1px -1px auto -1px;
    height: 2px;
    background: var(--grad-molten);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card h3 + p,
.card h2 + p {
    margin-top: var(--space-3);
}

.card p {
    color: var(--text-soft);
}

/* =========================================
   FEATURE CARD
   ========================================= */
.feature {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.feature:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.feature h3 {
    margin-top: var(--space-1);
}

.feature p {
    font-size: var(--fs-sm);
}

/* a card that spans the whole row ('wide' => true in features.php) */
.feature--wide {
    grid-column: 1 / -1;
}

.feature--wide p {
    max-width: 72ch;   /* keep long lines readable */
}

/* =========================================
   ICON TILE
   ========================================= */
.icon-tile {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: none;
    color: var(--lava-400);
    background: var(--night-800);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}

.icon-tile svg {
    width: 22px;
    height: 22px;
}

.icon-tile--sm {
    width: 38px;
    height: 38px;
}

.icon-tile--sm svg {
    width: 18px;
    height: 18px;
}

/* =========================================
   STAT: small label, big number, muted unit
   ========================================= */
.stat__label {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-muted);
}

.stat__value {
    margin-top: var(--space-1);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
    color: var(--text-strong);
}

.stat__unit {
    margin-left: 0.15em;
    font-size: 0.55em;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--lava-300);
}

/* =========================================
   CHECK LIST: "Included at every size"
   ========================================= */
.check-list {
    display: grid;
    gap: var(--space-3);
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--text);
}

.check-list svg {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 0.25em;
    color: var(--lava-400);
}

.check-list--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3) var(--space-6);
}

@media (max-width: 640px) {
    .card { padding: var(--space-5); }
    .check-list--2col { grid-template-columns: 1fr; }
}
