/* The landing of www. (templates/public/home.html.twig). Colors from tokens.css only. */

.landing-eyebrow,
.landing-mono {
    margin: 0;
    color: var(--ink-muted);
    font: 400 13px/20px var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.landing-eyebrow {
    margin-bottom: var(--space-3);
}

/* display-xl (44/48) from md, display-lg (32/40) below, so the title fits a phone */
.landing-title {
    margin-bottom: var(--space-4);
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.005em;

    @media (min-width: 768px) {
        font-size: 44px;
        line-height: 48px;
        letter-spacing: -0.01em;
    }
}

.landing-h2 {
    margin: 0;
    font-size: 28px;
    line-height: 36px;

    @media (min-width: 768px) {
        font-size: 32px;
        line-height: 40px;
    }
}

.landing-h3 {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
}

.landing-lead {
    margin: 0;
    color: var(--ink-muted);
    font-size: 17px;
    line-height: 28px;
}

.landing-small {
    margin: 0;
    font-size: 13px;
    line-height: 20px;
}

/* Hero: one column, the text first; two columns from lg */
.landing-hero {
    display: grid;
    gap: var(--space-7);
    align-items: center;
    padding-block: var(--space-7) var(--space-8);

    @media (min-width: 992px) {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    }

    & .landing-lead {
        margin-bottom: var(--space-5);
    }
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

.landing-link {
    font-weight: 600;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

.landing-note {
    margin: var(--space-5) 0 0;
    color: var(--ink-muted);
    font: 400 13px/20px var(--font-mono);
}

/* Sections and bands */
.landing-section {
    padding-block: var(--space-8);
}

.landing-band {
    background: var(--surface-sunken);
}

/* The memory band carries data-bs-theme="dark": the dark tokens apply inside it, in both page themes */
.landing-band--dark {
    color: var(--ink);
}

.landing-head {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.landing-cols {
    display: grid;
    gap: var(--space-5);

    @media (min-width: 768px) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.landing-tile {
    display: grid;
    align-content: start;
    gap: var(--space-2);
    padding: var(--space-5);

    & p {
        margin: 0;
    }
}

/* A feature: text and a product screen side by side from lg, alternating sides */
.landing-step {
    display: grid;
    gap: var(--space-6);
    align-items: center;
    padding-block: var(--space-6);
    border-top: 1px solid var(--line);

    @media (min-width: 992px) {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: var(--space-8);
    }
}

.landing-step--flip .landing-step__text {
    @media (min-width: 992px) {
        order: 2;
    }
}

.landing-step__text,
.landing-split__text {
    display: grid;
    align-content: start;
    gap: var(--space-3);

    & p {
        margin: 0;
    }
}

.landing-split {
    display: grid;
    gap: var(--space-7);
    align-items: center;

    @media (min-width: 992px) {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }
}

/* A product screen: a card with a sunken title bar */
.landing-window {
    overflow: hidden;
}

.landing-window__head,
.landing-window__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: 13px;
    line-height: 20px;
}

.landing-window__head {
    border-bottom: 1px solid var(--line);
    background: var(--surface-sunken);

    & strong {
        font-weight: 600;
    }
}

.landing-window__foot {
    justify-content: space-between;
    border-top: 1px solid var(--line);
}

.landing-window__body {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-4);

    & p {
        margin: 0;
    }
}

/* One line of a list in a screen: a mark or a switch, two lines of text, a detail on the right */
.landing-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.landing-row--child {
    margin-inline-start: var(--space-5);
}

.landing-row__text {
    display: grid;
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 20px;

    & strong {
        font-size: 14px;
        font-weight: 600;
    }

    & span {
        color: var(--ink-muted);
    }
}

.landing-row__action {
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
}

/* The client's poster: a sheet on a sunken backdrop, a title, a date and a logo square */
.landing-poster {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-sunken);
    overflow: hidden;
}

.landing-poster__sheet {
    position: absolute;
    inset: 12% 14%;
    padding: 8% 9%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    box-shadow: var(--shadow-sm);
}

.landing-poster__title {
    margin: 0;
    font: 600 clamp(18px, 2.6vw, 30px) / 1.1 var(--font-sans);
}

/* The client's own typeface, not the interface's: the AI read it in the client's memory */
.landing-poster__title--serif {
    font-family: Georgia, "Times New Roman", serif;
}

.landing-poster__date {
    margin: var(--space-1) 0 0;
    color: var(--ink-muted);
    font: 400 12px/18px var(--font-mono);
}

.landing-poster__logo {
    position: absolute;
    right: 9%;
    bottom: 10%;
    width: 18%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--brand);
}

/* The variants prepared from the poster, each at its own ratio */
.landing-thumbs {
    display: grid;
    grid-template-columns: 2.4fr 1fr 0.8fr;
    gap: var(--space-3);
    align-items: end;
}

.landing-thumb {
    display: grid;
    gap: var(--space-1);

    & .landing-mono {
        font-size: 11px;
        line-height: 16px;
    }
}

.landing-thumb__preview {
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    overflow: hidden;

    & span {
        font: 600 12px/1.1 Georgia, "Times New Roman", serif;
        text-align: center;
    }

    & i {
        position: absolute;
        right: 8%;
        bottom: 10%;
        width: 14%;
        aspect-ratio: 1;
        border-radius: 2px;
        background: var(--brand);
    }
}

.landing-thumb__preview--banner {
    aspect-ratio: 1584 / 396;
}

.landing-thumb__preview--avatar {
    aspect-ratio: 1;

    & i {
        position: static;
        width: 40%;
    }
}

.landing-thumb__preview--story {
    aspect-ratio: 9 / 16;

    & span {
        max-width: 5ch;
    }
}

/* The AI's check before sending: one finding per line */
.landing-report {
    gap: 0;
}

.landing-report__line {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-block: var(--space-3);
    border-top: 1px solid var(--line);
    font-size: 13px;
    line-height: 20px;

    &:first-child {
        border-top: 0;
    }

    & p {
        flex: 1;
    }
}

/* The client's annotations: the poster beside the comment thread from 576px */
.landing-annotate {
    @media (min-width: 576px) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}

.landing-comments {
    display: grid;
    gap: var(--space-2);
}

.landing-comment {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 13px;
    line-height: 20px;
}

.landing-comment__reply {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding-inline-start: var(--space-3);
    border-inline-start: 2px solid var(--line);
}

.landing-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
    margin: var(--space-6) 0 0;
    padding: 0;
    list-style: none;

    & li {
        display: flex;
        align-items: center;
        gap: var(--space-2);
    }
}

.landing-trust {
    display: grid;
    align-content: start;
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: 2px solid var(--ink);

    & p {
        margin: 0;
    }
}

.landing-faq {
    max-width: 760px;

    & details {
        padding-block: var(--space-4);
        border-top: 1px solid var(--line);

        &:last-child {
            border-bottom: 1px solid var(--line);
        }
    }

    & summary {
        display: flex;
        justify-content: space-between;
        gap: var(--space-4);
        font: 600 17px/24px var(--font-display);
        list-style: none;
        cursor: pointer;

        &::-webkit-details-marker {
            display: none;
        }

        &::after {
            content: "+";
            color: var(--ink-muted);
            font-family: var(--font-mono);
        }
    }

    & details[open] summary::after {
        content: "\2212";
    }

    & p {
        margin: var(--space-3) 0 0;
    }
}

.landing-final {
    display: grid;
    justify-items: center;
    gap: var(--space-4);
    padding: var(--space-8) var(--space-5);
    text-align: center;
}
