/*
 * Public site: the blocks of a product landing (spec.md §3.2) — one block, one rhythm: the caption of the kind, the heading,
 * then the content. Features reuse the principle of grid.css, Requirements and Changelog reuse the table of facts, Pricing
 * reuses the plans of product.css. Here are the blocks that have no component yet: Lead, How it works, Screenshots, FAQ.
 */

.app-block__title {
    margin: 0 0 var(--space-4);
    font-size: var(--fs-section);
    font-weight: var(--fw-bold);
    letter-spacing: -0.015em;
    line-height: var(--lh-tight);
}

/* Lead: the promise of the product on the left, the picture on the right. */
.app-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-5) var(--space-6);
}

.app-lead__title {
    margin: 0 0 var(--space-2);
    font-size: var(--fs-value);
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    line-height: var(--lh-tight);
}

.app-lead__sub {
    color: var(--text-2);
    font-size: var(--fs-card);
    line-height: var(--lh-text);
}

.app-lead__img,
.app-shot__img {
    display: block;
    width: 100%;
    height: auto; /* the height attribute reserves the box; the ratio below draws it */
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}

/* How it works: numbered steps in a row; the number is drawn by the counter, not typed. */
.app-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    counter-reset: app-step;
    list-style: none;
}

.app-steps__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-weight: var(--fw-semibold);
    counter-increment: app-step;
}

.app-steps__item::before {
    content: counter(app-step);
    color: var(--text-3);
    font-size: var(--fs-site-meta);
    font-variant-numeric: var(--numeric);
}

/* The details of a step, when the owner wrote them: under the title, in the plain weight. */
.app-steps__text {
    color: var(--text-2);
    font-size: var(--fs-site-read);
    font-weight: var(--fw-regular);
    line-height: var(--lh-text);
}

/* Screenshots: two to a row, each with its caption. */
.app-shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-shot {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin: 0;
}

.app-shot__cap {
    color: var(--text-3);
    font-size: var(--fs-site-meta);
}

/* FAQ: a question in bold, the answer under it; the questions are told apart by a line. */
.app-faq {
    margin: 0;
}

.app-faq__q {
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-2);
    font-weight: var(--fw-semibold);
}

.app-faq__a {
    margin: var(--space-0) 0 var(--space-3);
    color: var(--text-2);
    font-size: var(--fs-site-read);
    line-height: var(--lh-text);
}

@container (max-width: 719px) {
    .app-lead,
    .app-steps,
    .app-shots {
        grid-template-columns: minmax(0, 1fr);
    }
}
