/*
 * The shopper app's V4 look, light only: its colours and type are the Figma file Fair Baskets V4's
 * variables (board 6.46 · Plan). Everything is centred on white, and the three blocks are paper
 * cards. The phone's side margin is the design system's 20; a wide page's padding and gaps are
 * outside the app's scale.
 */

@font-face {
    font-family: "Fraunces";
    font-weight: 600;
    font-display: swap;
    src: url("fonts/fraunces-latin-600-normal.woff2?v=3a1de7711d") format("woff2");
}

@font-face {
    font-family: "Fraunces";
    font-weight: 700;
    font-display: swap;
    src: url("fonts/fraunces-latin-700-normal.woff2?v=c38570d224") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-weight: 400;
    font-display: swap;
    src: url("fonts/inter-latin-400-normal.woff2?v=8909904ab6") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-weight: 600;
    font-display: swap;
    src: url("fonts/inter-latin-600-normal.woff2?v=f9a06e79cd") format("woff2");
}

:root {
    color-scheme: only light;
    --ink: #17201b;
    --ink-muted: #5e6862;
    --paper: #fbf7ef;
    --line: #e8e4da;
    --field-line: #cfc9bb;
    --next-step: #1f5b3d;
    --price: #d95b22;
    --white: #ffffff;
    --side-margin: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font:
        400 17px / 24px "Inter",
        system-ui,
        sans-serif;
    -webkit-text-size-adjust: 100%;
}

/* The robots' field is hidden by its attribute; no later rule may show it. */
[hidden] {
    /* biome-ignore lint/complexity/noImportantStyles: a hidden element stays hidden whatever rule follows */
    display: none !important;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
}

/* ── The top bar ── */

.bar {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 var(--side-margin);
    background: rgb(255 255 255 / 0.94);
    border-bottom: 1px solid var(--line);
}

.name {
    color: var(--ink);
    font:
        700 20px / 26px "Fraunces",
        Georgia,
        serif;
    text-decoration: none;
}

.pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--next-step);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
}

/* ── The first screen ── */

.hero {
    display: grid;
    justify-items: center;
    padding: 48px var(--side-margin) 0;
    text-align: center;
}

h1 {
    max-width: 760px;
    font-size: 42px;
    font-weight: 700;
    line-height: 46px;
    letter-spacing: -0.9px;
    /* So no word ends alone on the last line. */
    text-wrap: balance;
}

.sub {
    max-width: 560px;
    margin: 16px 0 0;
    color: var(--ink-muted);
    font-size: 19px;
    line-height: 27px;
}

.opening {
    margin: 20px 0 16px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    color: var(--next-step);
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
}

/* The phone rises out of a paper band and is cut at the band's lower edge, as a phone held up
   from below: the cut is the band's, so it reads as meant. */
.stage {
    justify-self: stretch;
    display: flex;
    justify-content: center;
    margin: 48px calc(-1 * var(--side-margin)) 0;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(var(--white) 0 40%, var(--paper) 40%);
}

.phone {
    width: min(300px, 76vw);
    height: min(420px, 108vw);
    overflow: hidden;
    border: 10px solid var(--ink);
    border-bottom: 0;
    border-radius: 48px 48px 0 0;
    background: var(--white);
}

/* ── The form, at the top and again near the bottom ── */

.beta {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    text-align: left;
}

.field {
    display: grid;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
}

.field em {
    color: var(--ink-muted);
    font-style: normal;
    font-weight: 400;
}

.field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--field-line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 17px;
    font-weight: 400;
}

.beta button {
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--next-step);
    color: var(--white);
    font:
        600 17px / 24px "Inter",
        system-ui,
        sans-serif;
    cursor: pointer;
}

.note {
    margin: 0;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.problem {
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--white);
    color: var(--price);
    font-weight: 600;
}

/* ── The three blocks ── */

.blocks {
    display: grid;
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px var(--side-margin);
}

.block {
    display: grid;
    gap: 20px;
    align-content: start;
    padding: 24px;
    border-radius: 24px;
    background: var(--paper);
}

.block img {
    width: 100%;
    border-radius: 16px;
    background: var(--white);
}

.block h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: -0.2px;
}

/* ── The form again, the thanks, and the bottom ── */

.again {
    display: grid;
    justify-items: center;
    gap: 20px;
    padding: 56px var(--side-margin);
    background: var(--paper);
    text-align: center;
}

.again h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 36px;
}

.again .sub {
    margin: 0;
}

footer {
    padding: 32px var(--side-margin) 48px;
    text-align: center;
}

footer a {
    color: var(--next-step);
    font-weight: 600;
    text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
    text-decoration: underline;
}

@media (min-width: 840px) {
    .hero {
        padding-top: 88px;
    }

    h1 {
        font-size: 68px;
        line-height: 72px;
        letter-spacing: -1.6px;
    }

    .beta {
        grid-template-columns: minmax(0, 1fr) 160px;
        max-width: 560px;
    }

    .beta button,
    .beta .note {
        grid-column: 1 / -1;
    }

    .phone {
        width: 340px;
        height: 470px;
    }

    .blocks {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        padding: 80px var(--side-margin);
    }

    .again {
        max-width: 1080px;
        margin: 0 auto;
        padding: 72px var(--side-margin);
        border-radius: 32px;
    }

    .again h2 {
        font-size: 40px;
        line-height: 46px;
    }
}
