/*
 * The home page: a hero with a real chart beside the pitch, then the four
 * chart types as cards.
 */

.content { max-width: 1100px; }

.hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 1rem 0 2rem;
}
.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brand-deep);
    background: var(--accent-tint);
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); }
.hero-lead { font-size: 1.15rem; color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.hero-link { font-weight: 700; }
.hero-note { color: var(--text-muted); font-size: 0.95rem; }

/* The chart sits like a sheet taped to the fridge.  Tilted only where
   motion is welcome; the tape is a tint of the accent, not the chart's own
   colours. */
.hero-chart { position: relative; margin: 0; }
.hero-chart .chart-frame svg { border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
    .hero-chart { transform: rotate(-1.5deg); }
}
.hero-chart::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 110px;
    height: 26px;
    transform: translateX(-50%) rotate(2deg);
    background: color-mix(in srgb, var(--accent) 55%, transparent);
    border-radius: 3px;
    z-index: 1;
}

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; gap: 2rem; }
}

.type-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.type-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.type-card img {
    width: 48px;
    height: 48px;
    padding: 6px;
    background: var(--brand-tint);
    border-radius: 14px;
    box-sizing: content-box;
}
.type-card h3 { font-size: 1.2rem; margin-top: 0.4rem; }
.type-card h3 a { color: var(--text-head); text-decoration: none; }
.type-card h3 a:hover { color: var(--brand); }
.type-card p { color: var(--text-soft); flex: 1; }
.type-make { font-weight: 700; }

.how-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.how-steps li {
    counter-increment: step;
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 4rem;
    background: var(--surface-2);
    border-radius: 20px;
}
.how-steps li::before {
    content: counter(step);
    position: absolute;
    left: 1.1rem;
    top: 1.1rem;
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--on-brand);
    background: var(--brand);
    border-radius: 50%;
}
.how-steps strong { font-family: var(--font-display); font-weight: 600; color: var(--text-head); }
