/**
 * Shared marketing layout (home, blog) — aligned with practice page light theme.
 */
:root {
    --mkt-bg: #f1f5f9;
    --mkt-surface: #ffffff;
    --mkt-text: #0f172a;
    --mkt-muted: #64748b;
    --mkt-accent: #2563eb;
    --mkt-accent-soft: #eff6ff;
    --mkt-border: #e2e8f0;
    --mkt-radius: 14px;
    --mkt-radius-lg: 20px;
    --mkt-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
    --mkt-max: 1120px;
}

.mkt-page {
    max-width: var(--mkt-max);
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}

.mkt-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-lg);
    box-shadow: var(--mkt-shadow);
    overflow: hidden;
}

.mkt-hero-copy,
.mkt-hero-visual {
    min-width: 0;
}

.mkt-hero-copy .mkt-kicker {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mkt-accent);
    background: var(--mkt-accent-soft);
    border-radius: 999px;
}

.mkt-hero-copy h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--mkt-text);
}

.mkt-hero-copy h1 .mkt-brand {
    color: var(--mkt-accent);
}

.mkt-hero-lead {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--mkt-muted);
    max-width: 34rem;
}

.mkt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.mkt-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.35rem;
    background: var(--mkt-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.mkt-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.mkt-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.2rem;
    background: var(--mkt-surface);
    color: var(--mkt-text);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--mkt-border);
    transition: border-color 0.15s, background 0.15s;
}

.mkt-btn-ghost:hover {
    border-color: var(--mkt-accent);
    background: var(--mkt-accent-soft);
}

.mkt-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.mkt-stat {
    min-width: 5.5rem;
}

.mkt-stat-val {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mkt-text);
    font-variant-numeric: tabular-nums;
}

.mkt-stat-label {
    font-size: 0.75rem;
    color: var(--mkt-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mkt-hero-visual {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mkt-preview-card {
    background: #f8fafc;
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius);
    padding: 1rem 1.1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    overflow: hidden;
    max-width: 100%;
}

.mkt-preview-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mkt-preview-correct { color: #16a34a; }
.mkt-preview-current { color: var(--mkt-accent); text-decoration: underline; text-underline-offset: 3px; }
.mkt-preview-rest { color: #94a3b8; }

.mkt-preview-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.mkt-preview-metric {
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-border);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.72rem;
    color: var(--mkt-muted);
    min-width: 0;
    overflow: hidden;
}

.mkt-preview-metric strong {
    display: block;
    font-size: 1rem;
    color: var(--mkt-text);
}

.mkt-section-head {
    margin-bottom: 1.25rem;
}

.mkt-section-head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--mkt-text);
}

.mkt-section-head p {
    margin: 0;
    color: var(--mkt-muted);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .mkt-hero {
        grid-template-columns: 1fr;
        padding: clamp(1.25rem, 4vw, 2rem);
    }

    .mkt-hero-visual {
        order: -1;
    }

    .mkt-hero-lead {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .mkt-hero-copy .mkt-kicker {
        font-size: 0.65rem;
        letter-spacing: 0.04em;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }

    .mkt-hero-actions {
        flex-direction: column;
    }

    .mkt-hero-actions .mkt-btn-primary,
    .mkt-hero-actions .mkt-btn-ghost {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .mkt-stat-row {
        justify-content: space-between;
        gap: 0.75rem;
    }

    .mkt-stat {
        min-width: 0;
        flex: 1 1 0;
        text-align: center;
    }

    .mkt-preview-card {
        padding: 0.85rem 0.75rem;
        font-size: 0.75rem;
    }

    .mkt-preview-line {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .mkt-preview-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .mkt-preview-metric {
        padding: 0.45rem 0.2rem;
        font-size: 0.62rem;
        line-height: 1.35;
    }

    .mkt-preview-metric strong {
        font-size: 0.9rem;
    }
}
