/* Landing page. One rhythm: sections are spaced by --section-gap, headings are the editorial serif, copy is the sans. */

.hero {
    padding-block: var(--space-8) var(--space-7);
    text-align: center;
}

.hero__inner {
    display: grid;
    justify-items: center;
    gap: var(--space-5);
}

.hero__title {
    max-width: 16ch;
    font-size: var(--text-3xl);
    font-weight: var(--weight-regular);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.hero__lead {
    max-width: 34rem;
    color: var(--color-text-muted);
    font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
    line-height: 1.6;
}

.hero__actions {
    justify-content: center;
    margin-top: var(--space-2);
}

.section {
    padding-block: var(--space-7);
}

.section--tint {
    border-block: 1px solid var(--color-border);
    background: var(--color-surface);
}

.section__head {
    display: grid;
    gap: var(--space-2);
    max-width: 38rem;
    margin-bottom: var(--space-6);
}

.section__head h2 {
    font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
    font-weight: var(--weight-regular);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.section__head p {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
}

.features__grid {
    display: grid;
    gap: var(--space-6) var(--space-7);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature {
    display: grid;
    gap: var(--space-2);
    align-content: start;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-strong);
}

.feature--wide {
    grid-column: 1 / -1;
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: var(--space-2);
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
    color: var(--color-primary-text);
}

.feature h3 {
    font-size: var(--text-lg);
}

.feature p,
.steps__list p {
    color: var(--color-text-muted);
}

.steps__list {
    display: grid;
    gap: var(--space-5) var(--space-6);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps__list li {
    display: grid;
    gap: var(--space-3);
    align-content: start;
}

.steps__list h3 {
    margin-bottom: var(--space-1);
    font-size: var(--text-lg);
}

.steps__number {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
}

.cta {
    display: grid;
    justify-items: center;
    gap: var(--space-4);
    padding: var(--space-7) var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
    font-weight: var(--weight-regular);
    letter-spacing: -0.025em;
}

.cta p {
    max-width: 30rem;
    color: var(--color-text-muted);
}

@media (max-width: 47.99rem) {
    .hero {
        padding-block: var(--space-7) var(--space-5);
    }

    .section {
        padding-block: var(--space-6);
    }

    .section__head {
        margin-bottom: var(--space-5);
    }

    .features__grid,
    .steps__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature--wide {
        grid-column: auto;
    }

    .steps__list li {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .hero__actions .btn {
        flex: 1 1 10rem;
    }
}


/* The product flow: six connected steps, each with a small abstract picture (no figures, no sample data). */

.flow {
    display: grid;
    gap: var(--space-5) var(--space-4);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.flow__step {
    position: relative;
    display: grid;
    gap: var(--space-3);
    align-content: start;
}

.flow__node {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
}

/* The line from one node to the next. */
.flow__step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: 2.25rem;
    right: calc(-1 * var(--space-4));
    height: 2px;
    background: var(--color-border-strong);
}

.flow__body h3 {
    margin-bottom: var(--space-1);
    font-size: var(--text-md);
}

.flow__body p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.flow__art {
    display: grid;
    gap: var(--space-2);
    align-content: start;
    min-height: 6.5rem;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 0.72rem;
}

.section--tint .flow__art {
    background: var(--color-bg);
}

.art-bubble {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: var(--color-surface-sunken);
    color: var(--color-text);
}

.art-bubble--input {
    border: 1px solid var(--color-border-strong);
    background: var(--color-field);
    color: var(--color-text-subtle);
}

.art-bubble .icon {
    flex: none;
    width: 0.9rem;
    height: 0.9rem;
    color: var(--color-primary-text);
}

.art-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.art-chips span {
    padding: 0.15rem var(--space-2);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
}

.art-fields,
.art-rows {
    display: grid;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.art-fields li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text);
}

.dot {
    flex: none;
    width: 0.55rem;
    height: 0.55rem;
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-full);
}

.dot--known { background: var(--color-primary); }
.dot--inferred { background: var(--color-primary-soft); }
.dot--missing { border-color: var(--color-border-strong); }

.art-match {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
}

.art-match span { flex: 1; }
.art-match .icon { width: 0.9rem; height: 0.9rem; color: var(--color-primary-text); }

.art-rows li {
    display: grid;
    align-items: center;
    gap: var(--space-2);
    grid-template-columns: 4rem minmax(0, 1fr);
}

.bar {
    display: block;
    height: 0.4rem;
    border-radius: var(--radius-full);
    background: var(--color-border-strong);
}

.bar--40 { width: 40%; }
.bar--45 { width: 45%; }
.bar--55 { width: 55%; }
.bar--60 { width: 60%; }

.art-button {
    justify-self: start;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-weight: var(--weight-semibold);
}

@media (min-width: 48rem) {
    .flow__step {
        grid-template-rows: auto auto 1fr; /* the pictures line up whatever the text length */
    }
}

@media (min-width: 64rem) {
    .flow {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Three per row: no line runs off the end of a row. */
@media (min-width: 48rem) and (max-width: 63.99rem) {
    .flow__step:nth-child(3)::before {
        display: none;
    }
}

@media (max-width: 47.99rem) {
    .flow {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-5);
    }

    .flow__step {
        grid-template-columns: 2rem minmax(0, 1fr);
        column-gap: var(--space-4);
    }

    .flow__body,
    .flow__art {
        grid-column: 2;
    }

    .flow__node {
        grid-row: 1 / span 2;
    }

    /* The line runs down through the nodes instead of across. */
    .flow__step:not(:last-child)::before {
        top: 2.25rem;
        bottom: calc(-1 * var(--space-5));
        left: 1rem;
        right: auto;
        width: 2px;
        height: auto;
    }
}
