/*
 * blackCurrant — home (landing page) styles.
 *
 * Every colour pulls from the theme variables in site.css so the /theme
 * editor recolours this page too. Layout uses CSS grid + auto-fit so it
 * collapses gracefully down to phone widths without media queries.
 */

/* ── Hero ──────────────────────────────────────────────────────────── */
.bc-hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}
.bc-hero .badge {
    display: inline-block;
    background: rgba(217, 70, 239, 0.12);
    color: var(--accent);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font: 600 0.72rem/1.3 inherit;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(217, 70, 239, 0.3);
}
.bc-hero h1 {
    margin: 1rem auto 0.75rem;
    font-size: clamp(1.75rem, 2.4vw + 1rem, 2.8rem);
    line-height: 1.15;
    max-width: 28ch;
    letter-spacing: -0.015em;
}
.bc-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.bc-hero .lead {
    max-width: 56ch;
    margin: 0 auto 1.5rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}
.bc-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1.5rem 0 0; }

/* Stat strip ----------------------------------------------------- */
.bc-stats {
    list-style: none;
    margin: 2.5rem auto 0;
    padding: 0;
    max-width: 760px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}
.bc-stats li {
    padding: 1rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
}
.bc-stats strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.015em;
}
.bc-stats span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bc-hero-fineprint {
    max-width: 60ch;
    margin: 1rem auto 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.85;
}

/* ── Pillar sections ──────────────────────────────────────────────── */
.bc-pillar { margin: 3.5rem 0; }
.bc-pillar > header {
    text-align: center;
    max-width: 56ch;
    margin: 0 auto 2rem;
}
.bc-pillar-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}
.bc-pillar > header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.85rem;
    letter-spacing: -0.015em;
}
.bc-pillar > header p { color: var(--muted); margin: 0; line-height: 1.6; }

.bc-pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* Feature card ---------------------------------------------------- */
.bc-feature {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, border-color .15s ease;
}
.bc-feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.bc-feature h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--text);
}
.bc-feature p {
    color: var(--muted);
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.55;
}
.bc-feature p strong { color: var(--text); }
.bc-feature pre {
    margin: auto 0 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.7rem 0.85rem;
    overflow-x: auto;
    font: 12px/1.5 SFMono-Regular, Menlo, Consolas, monospace;
}
.bc-feature pre code { background: transparent; padding: 0; color: var(--text); }

/* ── Tour grid (links to /features etc.) ──────────────────────────── */
.bc-tour { margin: 4rem 0; }
.bc-tour h2 { text-align: center; font-size: 1.85rem; letter-spacing: -0.015em; margin: 0 0 0.5rem; }
.bc-tour-lead { text-align: center; color: var(--muted); max-width: 56ch; margin: 0 auto 2rem; }
.bc-tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}
.bc-tile {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.1rem;
    color: var(--text);
    text-decoration: none !important;
    display: flex; flex-direction: column;
    transition: transform .15s ease, border-color .15s ease;
}
.bc-tile:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.bc-tile-icon {
    font-size: 1.4rem;
    width: 38px; height: 38px;
    background: var(--panel-2);
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 0.6rem;
}
.bc-tile h3 { margin: 0 0 0.3rem; font-size: 1rem; color: var(--text); }
.bc-tile p  { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; flex: 1; }
.bc-tile-cta { margin-top: 0.85rem; color: var(--accent-2); font-size: 0.82rem; font-weight: 600; }

/* ── Quickstart block ─────────────────────────────────────────────── */
.bc-quickstart {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 3.5rem 0;
}
.bc-quickstart h2 {
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: -0.015em;
    margin: 0 0 1.25rem;
}
.bc-quickstart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}
.bc-quickstart pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    overflow-x: auto;
    font: 12.5px/1.5 SFMono-Regular, Menlo, Consolas, monospace;
    margin: 0;
}
.bc-quickstart pre code { background: transparent; padding: 0; color: var(--text); }
.bc-step { color: var(--muted); margin: 0 0 0.5rem; font-size: 0.95rem; }
.bc-step strong { color: var(--accent); margin-right: 0.25rem; }
.bc-step-done { text-align: center; margin: 1.25rem 0 0; color: var(--text); }
.bc-step-done strong { color: var(--good); }
