/*
 * The landing of www. (templates/public/home.html.twig), from the mockup of 30 November 2026.
 * Full-width bands that alternate surface and surface-raised; grids fall to one column under 960px.
 * Colors from tokens.css only. The screens of the product reuse the bubbles and the pins of the app (cb-msg, cb-pin).
 */

.landing {
    color: var(--ink);

    /* An anchor of the header stops under the environment banner, with some air */
    & [id] {
        scroll-margin-block-start: var(--space-5);
    }

    & h3 {
        margin: 0;
        font-size: 19px;
        line-height: 1.3;
    }

    & p {
        margin: 0;
    }
}

/* The bands run edge to edge, down to the footer: the frame gives the page no margin of its own */
.page-body:has(> .landing) {
    margin-block: 0;
}

/*
 * One container for the whole public frame: the header, every band and the footer share its width and its gutters,
 * so their edges line up. 1160px of content, 32px of gutter (18px under 960px).
 */
.landing-in {
    width: 100%;
    max-width: calc(1160px + 2 * var(--space-6));
    margin-inline: auto;
    padding-inline: var(--space-6);

    @media (max-width: 960px) {
        padding-inline: 18px;
    }
}

/* Type: one family, tight titles that scale with the window */
.landing-h1 {
    margin: 0;
    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.landing-h2 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.landing-lead {
    max-width: 600px;
    margin-block-start: var(--space-4) !important;
    color: var(--ink-muted);
    font-size: 18px;
    line-height: 1.55;
    text-wrap: pretty;
}

/* The eyebrow names the band in the color of the action */
.landing-eyebrow {
    margin-block-end: 14px !important;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.landing-muted {
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 20px;
}

/* A tag over a title: who it is for, in the ink of the assistant as the mockup sets it */
.landing-tag {
    color: var(--ai-ink);
    font-size: 13px;
    font-weight: 700;
}

/* The header lays its logo, its anchors and its actions on one line of that container (Tabler's navbar expects a .container) */
.landing-header {
    display: flex;
    align-items: center;
}

/* The anchors of the header: quiet links, hidden with the grids under 960px */
.landing-nav {
    display: flex;
    flex: 1;
    gap: 22px;
    margin-inline-start: var(--space-5);
    font-size: 14px;

    & a,
    & a:hover,
    & a:focus,
    & a:active {
        color: var(--ink-muted);
        text-decoration: none;
    }

    & a:hover,
    & a:focus-visible {
        color: var(--ink);
    }

    @media (max-width: 960px) {
        display: none;
    }
}

/* Hero: the pitch on the left, a screen of the product on the right */
.landing-hero {
    padding-block: 56px 80px;
}

.landing-hero__grid,
.landing-split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;

    @media (max-width: 960px) {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-6);
    }
}

.landing-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;

    @media (max-width: 960px) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* The two doors: a card each, the whole surface is the link, never an underline */
.landing-doors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-block: 30px 22px;

    @media (max-width: 960px) {
        grid-template-columns: minmax(0, 1fr);
    }
}

.landing-door,
.landing-door:hover,
.landing-door:focus,
.landing-door:active {
    color: var(--ink);
    text-decoration: none;
}

.landing-door {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 40px 14px var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    transition: border-color 150ms, box-shadow 150ms;

    &:hover,
    &:focus-visible {
        border-color: var(--line-strong);
        box-shadow: var(--shadow-sm);
    }

    & span {
        color: var(--ink-muted);
        font-size: 13px;
    }

    & strong {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.35;
    }

    & svg {
        position: absolute;
        inset-inline-end: 14px;
        inset-block-end: 14px;
        width: 18px;
        height: 18px;
        color: var(--brand);
    }
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* What the assistant does not do, said up front: a dot in its color, then the sentence */
.landing-honest {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    margin-block-start: 18px !important;
    color: var(--ink-muted);
    font-size: 14px;

    &::before {
        content: '';
        flex: none;
        width: 8px;
        height: 8px;
        margin-block-start: 7px;
        border-radius: 50%;
        background: var(--ai);
    }
}

/* A screen of the product: a window with its bar, inert */
.landing-screen {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-raised);
    box-shadow: var(--shadow-md);
}

.landing-screen__bar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    border-block-end: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 13px;

    & i {
        flex: none;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--line);
    }

    & .cb-meta {
        margin-inline-start: var(--space-2);
    }

    & strong {
        color: var(--ink);
        font-weight: 600;
    }
}

.landing-screen__split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);

    @media (max-width: 960px) {
        grid-template-columns: minmax(0, 1fr);
    }
}

.landing-canvas {
    display: grid;
    place-items: center;
    padding: 22px;
    background: var(--surface-sunken);
}

/* The sheet carries the pins of the app: they place themselves in percent of it */
.landing-sheet {
    position: relative;
    width: 100%;

    & .landing-art {
        border-radius: 6px;
        box-shadow: var(--shadow-md);
    }
}

/* An artwork: a document, drawn with the family of the page */
.landing-art {
    display: block;
    width: 100%;
    height: auto;
    font-family: var(--font);
}

.landing-thread {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: var(--space-4);
}

.landing-thread--flush {
    padding: 0;
}

/* The revision brief the assistant prepared: its pale ground, its color on the border */
.landing-brief {
    padding: var(--space-3) 14px;
    border: 1px solid var(--ai);
    border-radius: var(--radius-lg);
    background: var(--ai-soft);
    font-size: 13.5px;
    line-height: 1.45;

    & ol {
        margin: var(--space-2) 0 6px;
        padding-inline-start: 18px;
    }

    & li {
        margin-block: 3px;
    }

    & .cb-meta {
        color: var(--ink-muted);
        font-size: 13px;
    }
}

.landing-brief__head {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.landing-ai-mark {
    display: inline-flex;
    gap: var(--space-1);
    align-items: center;
    color: var(--ai-ink);

    & svg {
        flex: none;
        width: 16px;
        height: 16px;
    }
}

/* The strip of trades under the hero */
.landing-strip {
    padding-block: 18px;
    border-block: 1px solid var(--line);

    & .landing-in {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2) 26px;
        color: var(--ink-muted);
        font-size: 14px;
    }

    & strong {
        color: var(--ink);
        font-weight: 600;
    }
}

/* A band, and its raised twin */
.landing-band {
    padding-block: 96px;

    @media (max-width: 960px) {
        padding-block: 64px;
    }
}

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

.landing-grid {
    display: grid;
    gap: 18px;
    margin-block-start: 40px;

    @media (max-width: 960px) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

.landing-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-grid--tight {
    margin-block-start: 26px;
}

/* A card of a band: on a raised band it sinks to the surface of the page */
.landing-card {
    padding: var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);

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

    & p {
        margin-block-start: var(--space-3);
        color: var(--ink-muted);
    }

    & h3 {
        margin-block-start: var(--space-1);
    }

    & ul {
        margin: 14px 0 0;
        padding-inline-start: 18px;
        color: var(--ink-muted);
    }

    & li {
        margin-block: 6px;
    }
}

.landing-quote {
    display: block;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.015em;
    quotes: '«\00a0' '\00a0»';

    :lang(en) & {
        quotes: '“' '”';
    }

    :lang(es) & {
        quotes: '«' '»';
    }
}

/* The three steps of the revision brief, numbered in brand */
.landing-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: landing-flow;

    @media (max-width: 960px) {
        grid-template-columns: minmax(0, 1fr);
    }

    & li {
        padding: 22px;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: var(--surface);
        counter-increment: landing-flow;
    }

    & li::before {
        content: counter(landing-flow);
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        margin-block-end: 14px;
        border-radius: 50%;
        background: var(--brand);
        color: var(--on-brand);
        font-weight: 700;
    }

    & p {
        margin-block-start: var(--space-2);
        color: var(--ink-muted);
    }
}

.landing-panel {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);

    & h3 {
        margin-block-end: var(--space-3);
        font-size: 16px;
    }

    & ul:not(.landing-rows) {
        margin: 0;
        padding-inline-start: 18px;
        color: var(--ink-muted);
    }

    & ul:not(.landing-rows) li {
        margin-block: var(--space-2);
    }
}

/* What the assistant does not do yet, on its pale ground */
.landing-panel--ai {
    border-color: var(--ai);
    background: var(--ai-soft);
}

.landing-rows {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;

    & li {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: var(--space-3);
        padding: 11px 13px;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        background: var(--surface-raised);
        font-size: 14px;
    }

    & span {
        color: var(--ink-muted);
        font-size: 13px;
        white-space: nowrap;
    }
}

/* The benefits of the freelancer: a check in success, a rule between two */
.landing-benefits {
    margin: 26px 0;
    padding: 0;
    list-style: none;

    & li {
        position: relative;
        padding: 13px 0 13px 28px;
        border-block-start: 1px solid var(--line);
        color: var(--ink-muted);
    }

    & strong {
        color: var(--ink);
        font-weight: 600;
    }

    & svg {
        position: absolute;
        inset-inline-start: 0;
        inset-block-start: 15px;
        width: 18px;
        height: 18px;
        color: var(--success);
    }
}

/* The portal of a freelancer, as her client sees it */
.landing-portal {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.landing-portal__row {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    justify-content: space-between;
}

.landing-portal__title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.landing-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    & .landing-art {
        border-radius: 6px;
    }
}

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

/* The cases: three columns, the first case on two */
.landing-cases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 18px;
    margin-block-start: 40px;

    @media (max-width: 960px) {
        grid-template-columns: minmax(0, 1fr);
    }
}

.landing-case {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);

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

    & h3 {
        margin-block: 6px;
        font-size: 18px;
    }

    & p {
        color: var(--ink-muted);
        font-size: 14px;
    }
}

.landing-case--wide {
    @media (min-width: 961px) {
        grid-column: span 2;
    }
}

.landing-case__body {
    padding: var(--space-4) 18px 20px;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-block-start: 40px;

    @media (max-width: 960px) {
        grid-template-columns: minmax(0, 1fr);
    }
}

.landing-stat {
    padding-block-start: var(--space-4);
    border-block-start: 1px solid var(--ink);

    & strong {
        display: block;
        margin-block-end: var(--space-2);
        font-size: clamp(40px, 4.6vw, 56px);
        font-weight: 700;
        line-height: 1;
        letter-spacing: -0.03em;
    }

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

/* How it works: two paths behind two radio buttons, one list shown at a time */
.landing-how__tabs {
    display: inline-flex;
    margin-block-start: 30px;
}

.landing-how:has(#landing-how-solo:checked) [data-path='firm'],
.landing-how:has(#landing-how-firm:checked) [data-path='solo'] {
    display: none;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-3);
    margin: 26px 0 0;
    padding: 0;
    list-style: none;

    @media (max-width: 960px) {
        grid-template-columns: minmax(0, 1fr);
    }

    & li {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: var(--surface-raised);
    }

    & h3 {
        font-size: 16px;
    }

    & p {
        color: var(--ink-muted);
        font-size: 14px;
        line-height: 1.5;
    }
}

.landing-steps__number {
    color: var(--brand);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.landing-steps__turn {
    color: var(--ink-muted);
    font-size: 12.5px;
}

/* The offers: the freelancer's is the main one, ringed with brand */
.landing-offer {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);

    & h3 {
        margin-block: var(--space-2) var(--space-3);
    }

    & ul {
        margin: 0 0 18px;
        padding-inline-start: 18px;
        color: var(--ink-muted);
    }
}

.landing-offer--main {
    border: 2px solid var(--brand);
}

.landing-offer__price {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.landing-founders {
    display: flex;
    gap: var(--space-5);
    align-items: center;
    justify-content: space-between;
    margin-block-start: 18px;
    padding: 22px 26px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);

    & p {
        max-width: 640px;
        margin-block-start: var(--space-1);
        color: var(--ink-muted);
    }

    & .btn {
        flex: none;
    }

    @media (max-width: 960px) {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* The FAQ: native details, a plus that turns to a minus */
.landing-faq {
    max-width: 860px;
    margin-block-start: 36px;
    border-block-start: 1px solid var(--line);

    & details {
        border-block-end: 1px solid var(--line);
    }

    & summary {
        display: flex;
        gap: var(--space-5);
        justify-content: space-between;
        padding-block: 18px;
        font-size: 17px;
        font-weight: 600;
        list-style: none;
        cursor: pointer;
    }

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

    & summary::after {
        content: '+';
        content: '+' / '';
        color: var(--brand);
        font-size: 22px;
        line-height: 1;
    }

    & details[open] summary::after {
        content: '–';
        content: '–' / '';
    }

    & p {
        max-width: 700px;
        margin-block-end: 18px;
        color: var(--ink-muted);
    }
}

/* The closing band carries data-bs-theme="dark": the dark tokens apply inside it, in both page themes, on the ground of the menu */
.landing-final {
    padding-block: 96px;
    background: var(--surface-sunken);
    color: var(--ink);

    & p {
        margin-block: 14px 30px;
        color: var(--ink-muted);
        font-size: 18px;
    }

    @media (max-width: 960px) {
        padding-block: 64px;
    }
}

/* The footer of www. says whose product it is, before the legal links */
.landing-footer-line {
    margin-block-end: var(--space-2);
    color: var(--ink-muted);
    font-size: 14px;
}
