/*
 * fonts.css holds the @font-face rules for the three font families the site
 * uses. It is the first file in the joined stylesheet, and the only one the
 * build runs through Hugo's template engine: each call to the asset-url.html
 * partial below becomes the font's address with its content hash in the file
 * name. Template braces may appear nowhere else in this file, comments
 * included, and in no other stylesheet file.
 */

/* Fonts. Each file covers the Latin characters and the symbols the pages
 * use. The IBM Plex files are IBM's own Latin1 split, unchanged, plus IBM's
 * symbol split for the arrow in semibold links; the unicode-range values are
 * IBM's own. Bricolage Grotesque is limited to the weights 500 to 800 and the
 * Latin characters. The licenses are published under /licenses/. */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/assets/fonts/bricolage-grotesque-variable.4a5dd1457c16aa53a112adf747ef79f627e77db6c5091076214decf0c2bd9f39.woff2") format("woff2");
    font-weight: 500 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/ibm-plex-sans-400.bdb53f2af84b15e0a742428f5e199dacc3e6fd60776f0aebd9f700e2c97c960f.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/ibm-plex-sans-500.668a0d9eabbfac0925f431988f56222b8b989ad66a0a78e91bc5889f73fe274a.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/ibm-plex-sans-600.8251b7fc61b580c2f52550fa69b3c49fb94fc333815ad301ca6b1f6d15420f85.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/ibm-plex-sans-600-symbols.1beaaee0bfa91cf0d77e4f0b43f9bf12a1364f7cc3af05fa14f857297f2552e6.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+2190-2199;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("/assets/fonts/ibm-plex-mono-400.e8993d946649b9d01abb1ed06d574b19d8ea3e66b5c3948602db335c44c18e56.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("/assets/fonts/ibm-plex-mono-500.41201b658a328b9d00368215c2f1102770f80b15952ab82631e4006255e6365d.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
/*
 * base.css holds the design's values as custom properties, the rules for
 * plain elements, the keyboard focus outline, the skip link, and the
 * reduced-motion rule. It comes right after fonts.css in the joined
 * stylesheet, so every later file can use its custom properties.
 *
 * The site's stylesheet is split by purpose into the files under assets/css/,
 * which baseof.html joins, in a fixed order, into one fingerprinted file. Pages
 * may not use style attributes or <style> elements, because Caddy's Content
 * Security Policy only allows that joined file.
 *
 * Rules are nested: a block such as .hero holds the rules for the elements
 * inside it, such as .copy, which means exactly ".hero .copy". Browsers have
 * read nested rules natively since December 2023 (Chrome and Edge 120,
 * Firefox 117, Safari 17.2), so no build tool is involved.
 *
 * Phones are screens 760 pixels wide or less, as in the approved phone design.
 * Each block holds its own @media (max-width: 760px) rule for phones.
 *
 * Custom properties, on :root:
 *   --color-*        the design's colors: paper, sand, white, ink, three text
 *                    greys, the border tones, the greens, the amber used for
 *                    test mode, the dark-band tones, the example client's
 *                    brand colors used in the mock screens, and the colors
 *                    Google and Facebook require for their sign-in buttons.
 *   --font-heading   Bricolage Grotesque, for headings and the wordmark.
 *   --font-body      IBM Plex Sans, for text, links, and buttons.
 *   --font-mono      IBM Plex Mono, for small labels, numbers, and code.
 *   --content-width  1,200 pixels, the widest any section's content gets.
 *   --page-gutter    the space between content and the screen edge.
 *   --section-space  the vertical space above and below a section.
 *   --radius-*       corner rounding for buttons, cards, and steps.
 *   --shadow-*       the soft shadows under the mock screens.
 */

/* Design values. */
:root {
    --color-paper: #F5F3EE;
    --color-sand: #ECE9E1;
    --color-white: #FFFFFF;
    --color-ink: #15171C;
    --color-text-muted: #4A4E57;
    --color-text-subtle: #62666F;
    --color-icon-muted: #8C9098;
    --color-border: #DDD9CF;
    --color-border-soft: #ECE9E1;
    --color-border-strong: #C9C5BA;
    --color-rule: #D3CFC4;
    --color-green: #0B6E43;
    --color-green-hover: #08512F;
    --color-green-light: #E3F1E8;
    --color-green-bright: #2BD47D;
    --color-green-on-dark: #6FE3A4;
    --color-amber: #8A5200;
    --color-amber-light: #FBEFD9;
    --color-dark-text: #C3C6CC;
    --color-green-deep: #0A5A37;
    --color-green-pale: #BFDCCB;
    --color-green-mist: #CDEBD9;
    --color-paper-tint: #F7F5F0;
    --color-row-rule: #F0EDE6;
    --color-dark-surface: #22252C;
    --color-dark-border: #353943;
    --color-dark-dashed: #4A4F5A;
    --color-dark-label: #B9BCC3;
    --color-code-text: #E6E7EA;
    --color-code-rule: #2A2D34;
    --color-code-string: #F2C88B;
    --color-code-number: #9EC7FF;
    --color-code-keyword: #C9A4FF;
    --color-example-brand: #1F5F7A;
    --color-example-brand-tint: #F1F6F8;
    --color-example-brand-border: #CFE0E7;
    /* Google's "Sign in with Google" branding guidelines set the light
     * button's border and text colors, and Facebook's login guidelines set
     * its button's blue. The mock sign-up screen uses them so its provider
     * buttons look like the real ones. */
    --color-google-button-border: #747775;
    --color-google-button-text: #1F1F1F;
    --color-facebook-blue: #1877F2;
    --shadow-mock: 0 30px 60px -30px rgba(21, 23, 28, 0.28);
    --shadow-screen: 0 24px 48px -28px rgba(21, 23, 28, 0.28);
    --font-heading: "Bricolage Grotesque", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
    --content-width: 1200px;
    --page-gutter: clamp(20px, 4vw, 40px);
    --section-space: 112px;
    --radius-button: 10px;
    --radius-card: 16px;
    --radius-step: 14px;
}

/* Base. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* The body is a column with main stretched to fill it, so the footer sits at
 * the bottom of the screen even on a short page. Its line height is the
 * browser's normal one, as in the design; paragraphs and lists that need
 * more room between lines set their own. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--color-paper);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: normal;

    > main {
        flex: 1 0 auto;
    }
}

h1,
h2,
h3,
h4,
p,
figure,
pre {
    margin: 0;
}

a {
    color: var(--color-green);

    &:hover {
        color: var(--color-green-hover);
    }
}

/* Every link and button shows a clear outline when reached by keyboard. */
:focus-visible {
    outline: 3px solid var(--color-green);
    outline-offset: 2px;
}

/* The skip link stays off screen until a keyboard user reaches it, then lets
 * them jump past the header. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 100;
    padding: 12px 16px;
    border-radius: var(--radius-button);
    background: var(--color-ink);
    color: var(--color-paper);
    font-weight: 600;
    text-decoration: none;

    &:focus {
        top: 12px;
        color: var(--color-paper);
    }
}

/* Visitors who ask their system for less motion get none. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
/*
 * components.css holds the reusable pieces every page builds from, and the
 * page openings. It comes after base.css in the joined stylesheet.
 *
 *   .page-container                 centers content at --content-width.
 *   .section (.in-band, .closing, .no-top, .no-bottom, .short-bottom)
 *                                   a section with the design's space above
 *                                   and below it.
 *   .stack                          a column of blocks with a fixed gap.
 *   .split                          two blocks side by side that stack on
 *                                   narrow screens.
 *   .band.sand, .band.dark          full-width colored bands.
 *   .eyebrow                        the small uppercase label over a heading.
 *   .display-heading, .section-heading, .card-heading
 *                                   the three heading sizes.
 *   .section-intro                  an eyebrow and heading, with an optional
 *                                   paragraph beside them.
 *   .subsection-heading, .faq-heading
 *                                   the headings of a part of a section and
 *                                   of a page's questions.
 *   .lede, .body-text, .fine-print  paragraph sizes.
 *   .text-link                      a link inside a sentence.
 *   .button (.primary, .secondary, .on-dark, .outline-on-dark, .on-green,
 *   .small, .medium)                link buttons.
 *   .cta-row                        a row of buttons that turns into
 *                                   full-width, centered buttons on phones.
 *   .card-row, .card (.label)       white cards in a wrapping row.
 *   .feature-grid, .feature         a grid of titled cards.
 *   .status-badge (.live, .test)    the pill-shaped Live and Test mode badges.
 *   .check-list, .cross-list        lists with a check or a cross before each
 *                                   item.
 *   .icon                           an inline icon from the icon.html partial.
 *   .step-flow (.step, .label, .heading, .arrow)
 *                                   numbered steps with arrows between them,
 *                                   stacked with down arrows on phones.
 *   .numbered-steps                 a numbered list of steps in a grid.
 *   .option-cards                   side-by-side choices, such as the two ways
 *                                   to own a client app.
 *   .plan-cards, .plan-card         plan cards with their price and fee.
 *   .partner-band                   the partner revenue share band.
 *   .audience-cards, .audience-card the three "Pick your starting point" cards.
 *   .faq-list (.item, .question)    question and answer pairs in a grid.
 *   .closing-row, .closing-card     the call to action that ends a page.
 *   .flow-arrow                     the arrow between two boxes in a diagram.
 *   .center-on-phone                centers text on phones.
 *
 * Page openings: .hero and .not-found.
 */

/* Containers and bands. */
/* The design's content is 1,200 pixels wide with the gutter outside it, so
 * the container's widest size adds the gutter on both sides. */
.page-container {
    max-width: calc(var(--content-width) + 2 * var(--page-gutter));
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--page-gutter);
    padding-left: var(--page-gutter);
}

/* A section's padding follows the design board: 112 pixels above and below
 * by default, 96 inside the sand bands, and 88 in the dark bands that close
 * a page. no-top and no-bottom drop the space where the design has the next
 * section carry on directly, and short-bottom ends a section at 96 pixels. */
.section {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);

    &.in-band {
        padding-top: 96px;
        padding-bottom: 96px;
    }

    &.closing {
        padding-top: 88px;
        padding-bottom: 88px;
    }

    &.no-top {
        padding-top: 0;
    }

    &.no-bottom {
        padding-bottom: 0;
    }

    &.short-bottom {
        padding-bottom: 96px;
    }
}

/* A stack is a column of blocks, such as a heading above a row of cards,
 * with the design's 40-pixel gap; wide and narrow give 48 and 32. */
.stack {
    display: flex;
    flex-direction: column;
    gap: 40px;

    &.wide {
        gap: 48px;
    }

    &.narrow {
        gap: 32px;
    }
}

/* A split puts two blocks side by side, each at least 440 pixels wide, and
 * stacks them when the screen is narrower. loose widens the gap between them,
 * and top lines them up at the top instead of the middle. */
.split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;

    > * {
        flex: 1 1 440px;
        min-width: 0;
    }

    &.loose {
        gap: 40px 64px;
    }

    &.top {
        align-items: stretch;
    }
}

.band {
    &.sand {
        background: var(--color-sand);
    }

    &.dark {
        background: var(--color-ink);
        color: var(--color-paper);

        .lede,
        .body-text {
            color: var(--color-dark-text);
        }

        .eyebrow {
            color: var(--color-green-on-dark);
        }

        .check-list {
            color: var(--color-dark-text);

            > li::before {
                border-color: var(--color-green-on-dark);
            }
        }
    }
}

/* Type. */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-green);
}

.display-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(40px, 4.6vw, 62px);
    line-height: 1.03;
    letter-spacing: -0.03em;
}

.section-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(32px, 3.6vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.card-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.lede {
    max-width: 560px;
    font-size: 19px;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.body-text {
    font-size: 16px;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.fine-print {
    font-size: 14px;
    color: var(--color-text-subtle);
}

/* The heading of a part inside a section, such as "Your client always owns
 * their customers.", and the heading over a page's questions. */
.subsection-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(24px, 2.4vw, 32px);
    letter-spacing: -0.02em;
}

.faq-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(28px, 3vw, 36px);
    letter-spacing: -0.02em;
}

/* An eyebrow and heading, at most 720 pixels wide. split-intro puts a
 * paragraph beside them on wide screens, lined up with the heading's last
 * line. */
.section-intro {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 720px;

    &.wider {
        max-width: 760px;
    }

    &.split-intro {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px 48px;
        max-width: none;
    }

    .heading-group {
        display: flex;
        flex: 1 1 560px;
        flex-direction: column;
        gap: 14px;
        min-width: 0;
    }

    .intro-text {
        flex: 1 1 380px;
        min-width: 0;
        font-size: 17px;
        line-height: 1.6;
        color: var(--color-text-muted);
    }
}

/* A link written in a sentence that should stand out, such as "Compare every
 * plan". */
.text-link {
    font-weight: 600;
}

.center-on-phone {
    @media (max-width: 760px) {
        text-align: center;
    }
}

/* Buttons. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;

    &.primary {
        background: var(--color-green);
        color: var(--color-white);

        &:hover {
            background: var(--color-green-hover);
            color: var(--color-white);
        }
    }

    &.secondary {
        padding: 0 22px;
        border-color: var(--color-ink);
        color: var(--color-ink);

        &:hover {
            background: var(--color-white);
            color: var(--color-ink);
        }
    }

    &.on-dark {
        background: var(--color-green-bright);
        color: var(--color-ink);

        &:hover {
            background: var(--color-green-on-dark);
            color: var(--color-ink);
        }
    }

    &.small {
        min-height: 44px;
        padding: 0 18px;
        font-size: 15px;
    }

    /* The outlined button on a dark band, beside an on-dark button. */
    &.outline-on-dark {
        padding: 0 22px;
        border-color: var(--color-paper);
        color: var(--color-paper);

        &:hover {
            background: var(--color-paper);
            color: var(--color-ink);
        }
    }

    /* The white button on a green panel. */
    &.on-green {
        background: var(--color-white);
        color: var(--color-green);

        &:hover {
            background: var(--color-green-light);
            color: var(--color-green-hover);
        }
    }

    /* A slightly smaller button, such as "Become a partner" in its band. */
    &.medium {
        min-height: 48px;
        padding: 0 20px;
        font-size: 15px;
    }
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    @media (max-width: 760px) {
        justify-content: center;
        width: 100%;

        > .button {
            flex: 1 1 100%;
        }
    }
}

/* Cards. */
.card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    > * {
        flex: 1 1 300px;
        min-width: 0;
    }
}

.card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-white);

    .label {
        font-family: var(--font-mono);
        font-size: 13px;
        color: var(--color-text-subtle);
    }
}

/* Status badges. The dot is drawn with ::before: filled for Live, a ring for
 * Test mode, so the two differ by shape as well as color. */
.status-badge {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;

    &::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
    }

    &.live {
        background: var(--color-green-light);
        color: var(--color-green);

        &::before {
            background: var(--color-green);
        }
    }

    &.test {
        background: var(--color-amber-light);
        color: var(--color-amber);

        &::before {
            border: 2px solid var(--color-amber);
        }
    }
}

/* Check lists. The check is drawn with borders, so it needs no image. */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 15px;
    list-style: none;

    > li {
        display: flex;
        gap: 10px;

        &::before {
            content: "";
            flex: none;
            width: 11px;
            height: 6px;
            margin: 7px 3px 0 2px;
            border-bottom: 2px solid var(--color-green);
            border-left: 2px solid var(--color-green);
            transform: rotate(-45deg);
        }
    }
}

/* Step flows. The arrow between steps is drawn with borders and turns to
 * point down when the steps stack on phones. */
.step-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 16px;

    .step {
        display: flex;
        flex: 1 1 260px;
        flex-direction: column;
        gap: 10px;
        min-width: 0;
        padding: 24px;
        border-radius: var(--radius-step);
        background: var(--color-paper);
    }

    .label {
        font-family: var(--font-mono);
        font-size: 14px;
        color: var(--color-green);
    }

    .heading {
        font-size: 20px;
        font-weight: 600;
    }

    .arrow {
        display: flex;
        flex: none;
        align-items: center;
        justify-content: center;
        width: 24px;

        &::before {
            content: "";
            width: 9px;
            height: 9px;
            border-top: 2px solid var(--color-icon-muted);
            border-right: 2px solid var(--color-icon-muted);
            transform: rotate(45deg);
        }
    }

    @media (max-width: 760px) {
        flex-direction: column;

        .step {
            flex: 0 0 auto;
        }

        .arrow {
            align-self: center;
            height: 24px;

            &::before {
                transform: rotate(135deg);
            }
        }
    }
}

/* Questions and answers. */
.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 28px 48px;

    .item {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 20px;
        border-top: 1px solid var(--color-border);
    }

    .question {
        font-size: 18px;
        font-weight: 600;
    }
}

/* Titled cards in a grid, each at least 300 pixels wide. compact is the
 * developer page's version, with smaller headings and padding. The design
 * made its cards at least 260 pixels wide, four across; with roles and
 * permissions added there are nine, so they are at least 300 pixels wide,
 * three by three, instead of leaving the ninth alone. */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 20px;

    .feature {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 28px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-card);
        background: var(--color-white);
    }

    .heading {
        font-size: 20px;
        font-weight: 600;
    }

    &.compact {
        .feature {
            padding: 24px;
        }

        .heading {
            font-size: 18px;
        }

        .body-text {
            font-size: 15px;
        }
    }
}

/* Icons from the icon.html partial take the color of the text around them. */
.icon {
    flex: none;
    width: 16px;
    height: 16px;
}

/* A list with a grey cross before each item, for things RegPayReady takes
 * off the agency's list. */
.cross-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    font-size: 15px;
    list-style: none;
    color: var(--color-text-muted);

    > li {
        display: flex;
        gap: 10px;
    }

    .icon {
        margin-top: 3px;
        color: var(--color-icon-muted);
    }
}

/* A numbered list of steps in a grid, each at least 240 pixels wide, with a
 * green rule along its top. wide makes each step at least 280 pixels. */
.numbered-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;

    &.wide {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    }

    > li {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 24px;
        border-top: 3px solid var(--color-green);
        border-radius: var(--radius-step);
        background: var(--color-paper);
    }

    .number {
        font-family: var(--font-mono);
        font-size: 14px;
        color: var(--color-green);
    }

    .heading {
        font-size: 19px;
        font-weight: 600;
    }

    .body-text {
        font-size: 15px;
    }
}

/* Side-by-side choices, such as the two ways an agency keeps the client as
 * the owner. */
.option-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    .option {
        display: flex;
        flex: 1 1 340px;
        flex-direction: column;
        gap: 10px;
        min-width: 0;
        padding: 28px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-step);
        background: var(--color-white);
    }

    .heading {
        font-size: 20px;
        font-weight: 600;
    }
}

/* Plan cards: the plan's name, its price and fee from data/plans.toml, and a
 * sentence about it. The cards come white, dark, or green, as the design
 * places them. */
.plan-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.plan-card {
    display: flex;
    flex: 1 1 340px;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-white);

    .name {
        font-family: var(--font-mono);
        font-size: 13px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--color-text-subtle);
    }

    .price-line {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 8px;
    }

    .price {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 48px;
        letter-spacing: -0.03em;
    }

    .fee {
        font-size: 16px;
        color: var(--color-text-muted);
    }

    &.dark {
        border-color: var(--color-ink);
        background: var(--color-ink);
        color: var(--color-paper);

        .name {
            color: var(--color-green-on-dark);
        }

        .fee,
        .body-text {
            color: var(--color-dark-text);
        }
    }

    &.green {
        border-color: var(--color-green);
        background: var(--color-green);
        color: var(--color-white);

        .name {
            color: var(--color-green-mist);
        }

        .fee,
        .body-text {
            color: var(--color-green-light);
        }
    }
}

/* The partner revenue share band on the agency page. */
.partner-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 40px;
    padding: 28px 32px;
    border: 1px solid var(--color-green-pale);
    border-radius: var(--radius-card);
    background: var(--color-green-light);

    .copy {
        display: flex;
        flex: 1 1 480px;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }

    .label {
        font-family: var(--font-mono);
        font-size: 13px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--color-green-deep);
    }

    .statement {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 26px;
        line-height: 1.15;
        letter-spacing: -0.02em;
    }
}

/* The home page's three "Pick your starting point" cards. Each card is one
 * link; featured is the green agency card. */
.audience-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.audience-card {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-white);
    color: var(--color-ink);
    text-decoration: none;

    &:hover {
        border-color: var(--color-border-strong);
        color: var(--color-ink);
    }

    .label {
        font-family: var(--font-mono);
        font-size: 13px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--color-text-subtle);
    }

    .heading {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 28px;
        line-height: 1.1;
        letter-spacing: -0.02em;
    }

    .text {
        font-size: 16px;
        line-height: 1.55;
        color: var(--color-text-muted);
    }

    .more {
        margin-top: auto;
        padding-top: 12px;
        font-weight: 600;
        color: var(--color-green);
    }

    &.featured {
        border-color: var(--color-green);
        background: var(--color-green);
        color: var(--color-white);

        &:hover {
            border-color: var(--color-green-hover);
            background: var(--color-green-hover);
            color: var(--color-white);
        }

        .label {
            color: var(--color-green-mist);
        }

        .text {
            color: var(--color-green-light);
        }

        .more {
            color: var(--color-white);
        }
    }
}

/* The call to action that ends a page. closing-row is a heading and buttons
 * on a dark band; closing-card is the same in a white or green panel. */
.closing-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;

    .section-heading {
        flex: 1 1 480px;
        min-width: 0;
    }
}

.closing-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-white);

    .copy {
        display: flex;
        flex: 1 1 520px;
        flex-direction: column;
        gap: 10px;
        min-width: 0;
    }

    .heading {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: clamp(28px, 3vw, 40px);
        line-height: 1.08;
        letter-spacing: -0.025em;
    }

    &.green {
        padding: 48px;
        border-color: var(--color-green);
        background: var(--color-green);
        color: var(--color-white);

        .heading {
            flex: 1 1 480px;
            min-width: 0;
            font-size: clamp(30px, 3.2vw, 44px);
            line-height: 1.05;
        }
    }
}

/* The arrow between two boxes in a diagram, drawn with borders like the step
 * flow's, in the color of the text around it. */
.flow-arrow {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-icon-muted);

    &::before {
        content: "";
        width: 9px;
        height: 9px;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: rotate(45deg);
    }
}

/* Page openings. The visual is the mock screen or sample beside the opening
 * copy. deep gives the extra space below that some pages' openings have. */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
    padding-top: 88px;
    padding-bottom: 96px;

    .copy {
        display: flex;
        flex: 1 1 520px;
        flex-direction: column;
        gap: 24px;
        min-width: 0;

        .cta-row {
            padding-top: 8px;
        }
    }

    .visual {
        display: flex;
        flex: 1 1 440px;
        flex-direction: column;
        gap: 16px;
        min-width: 0;
    }

    &.deep {
        padding-bottom: 104px;
    }
}

.not-found {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 96px;
    padding-bottom: 112px;
}
/*
 * site-header-and-footer.css holds the header, the logo, the navigation, the
 * phone menu, and the footer, which every page shares. It comes after
 * components.css in the joined stylesheet.
 */

/* Header. */
.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-paper);

    .bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px 32px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .actions {
        display: flex;
        align-items: center;
        gap: 8px;

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

    .sign-in {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 12px;
        color: var(--color-ink);
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;

        &:hover {
            color: var(--color-green);
        }
    }
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--color-ink);
    text-decoration: none;

    &:hover {
        color: var(--color-ink);
    }

    .mark {
        flex: none;
    }

    .wordmark {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 21px;
        letter-spacing: -0.02em;
    }
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 26px;
    font-size: 15px;
    font-weight: 500;

    .link {
        position: relative;
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        color: var(--color-ink);
        text-decoration: none;

        &:hover {
            color: var(--color-green);
        }

        &[aria-current="page"]::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: 6px;
            left: 0;
            height: 2px;
            background: var(--color-green);
        }
    }

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

/* The phone menu. It is hidden on wider screens. Its panel drops down over
 * the page, the full width of the screen, from the bottom of the header. */
.site-menu {
    display: none;

    @media (max-width: 760px) {
        display: block;
    }

    summary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--color-border-strong);
        border-radius: var(--radius-button);
        background: var(--color-white);
        cursor: pointer;
        list-style: none;

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

    .icon-close {
        display: none;
    }

    &[open] {
        .icon-open {
            display: none;
        }

        .icon-close {
            display: block;
        }
    }

    .panel {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        padding: 4px var(--page-gutter) 16px;
        border-top: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
        background: var(--color-paper);
        box-shadow: 0 24px 32px -24px rgba(21, 23, 28, 0.35);
    }

    .link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        border-bottom: 1px solid var(--color-border-soft);
        color: var(--color-ink);
        font-size: 17px;
        font-weight: 500;
        text-decoration: none;

        &::after {
            content: "";
            width: 8px;
            height: 8px;
            margin-right: 6px;
            border-top: 2px solid var(--color-icon-muted);
            border-right: 2px solid var(--color-icon-muted);
            transform: rotate(45deg);
        }
    }

    .buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 16px;

        .button {
            min-height: 48px;
        }
    }
}

/* Footer. */
.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-sand);

    .inner {
        display: flex;
        flex-direction: column;
        gap: 48px;
        padding-top: 64px;
        padding-bottom: 32px;
    }

    .top {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 40px 64px;
    }

    .brand {
        display: flex;
        flex: 1 1 280px;
        flex-direction: column;
        gap: 14px;
        max-width: 360px;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .wordmark {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 19px;
        letter-spacing: -0.02em;
    }

    .blurb {
        font-size: 15px;
        line-height: 1.55;
        color: var(--color-text-muted);
    }

    .columns {
        display: flex;
        flex-wrap: wrap;
        gap: 32px 72px;
    }

    .column {
        display: flex;
        flex-direction: column;
        gap: 2px;
        font-size: 15px;
    }

    .heading {
        margin-bottom: 6px;
        font-family: var(--font-mono);
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--color-text-subtle);
    }

    .link {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        color: var(--color-text-muted);
        text-decoration: none;

        &:hover {
            color: var(--color-green);
        }
    }

    .bottom {
        padding-top: 24px;
        border-top: 1px solid var(--color-rule);
        font-size: 14px;
        color: var(--color-text-muted);
    }
}
/*
 * mocks.css draws the pretend screens and samples the pages show: the
 * agency dashboard, the three sign-up screens, the team checkout and its
 * billing page, the agency page's comparison card, the access token sample,
 * and the developer page's request rows. It comes after
 * site-header-and-footer.css in the joined stylesheet.
 *
 * Every mock is a .mock block named after its partial in
 * layouts/_partials/, such as .client-dashboard. Where a pretend screen is a
 * figure that screen readers announce by its description, its drawing sits
 * in a .drawing element hidden from them. The example client's brand color,
 * a deep teal, comes from the --color-example-brand properties.
 */

/* Every mock starts from the same box model. A figure that is a mock holds
 * its drawing as a column, so a button at the bottom of a pretend screen can
 * be pushed down with margin-top: auto. */
.mock {
    display: flex;
    flex-direction: column;
    min-width: 0;

    > .drawing {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
    }
}

/* Pieces the pretend screens share: the client's brand mark and name, the
 * screen's title, the fields and their boxes, the radio buttons and
 * checkboxes, the main button, and the "Powered by RegPayReady" line. */
.signup-screen,
.team-checkout {
    .brand {
        display: flex;
        align-items: center;
        gap: 10px;

        &.large {
            .brand-mark {
                width: 26px;
                height: 26px;
            }

            .brand-name {
                font-size: 16px;
            }
        }
    }

    .brand-mark {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        background: var(--color-example-brand);
    }

    .brand-name {
        font-size: 15px;
        font-weight: 600;
    }

    .screen-title {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 22px;
        letter-spacing: -0.02em;
    }

    .checkbox {
        display: inline-flex;
        flex: none;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border-radius: 5px;
        background: var(--color-example-brand);
        color: var(--color-white);

        .icon {
            width: 12px;
            height: 12px;

            path {
                stroke-width: 2.5;
            }
        }
    }

    .figure {
        font-family: var(--font-mono);
    }

    .submit {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        margin-top: auto;
        border-radius: var(--radius-button);
        background: var(--color-example-brand);
        color: var(--color-white);
        font-size: 15px;
        font-weight: 600;
    }

    .powered-by {
        font-size: 12px;
        text-align: center;
        color: var(--color-text-subtle);
    }
}

/* The home page's example dashboard, and the note below it that a client's
 * colleague took a seat. */
.client-dashboard {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow: var(--shadow-mock);

    .toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid var(--color-border-soft);
    }

    .title {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .name {
        font-size: 16px;
        font-weight: 600;
    }

    .count {
        font-family: var(--font-mono);
        font-size: 12px;
        color: var(--color-text-subtle);
    }

    .new-app {
        padding: 6px 10px;
        border: 1px solid var(--color-green-pale);
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        color: var(--color-green);
    }

    .app {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 14px 20px;
        border-bottom: 1px solid var(--color-row-rule);

        &:last-child {
            border-bottom: 0;
        }
    }

    .app-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;

        &:last-child {
            align-items: baseline;
        }
    }

    .app-name {
        min-width: 0;
        font-size: 15px;
        font-weight: 600;
    }

    .address {
        min-width: 0;
        overflow-wrap: anywhere;
        font-family: var(--font-mono);
        font-size: 12px;
        color: var(--color-text-subtle);
    }

    .metric {
        flex: none;
        font-family: var(--font-mono);
        font-size: 13px;
        white-space: nowrap;
        color: var(--color-text-muted);

        &.pending {
            color: var(--color-text-subtle);
        }
    }

    .summary {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 20px;
        padding: 12px 20px;
        border-top: 1px solid var(--color-border-soft);
        background: var(--color-paper-tint);
        font-family: var(--font-mono);
        font-size: 12px;
        color: var(--color-text-muted);
    }
}

.invitation-note {
    display: inline-flex;
    align-self: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: -36px;
    margin-right: 24px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--color-ink);
    color: var(--color-paper);
    font-size: 14px;
    box-shadow: 0 16px 32px -16px rgba(21, 23, 28, 0.5);

    .dot {
        flex: none;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--color-green-bright);
    }
}

/* The three sign-up screens, side by side, each at least 320 pixels wide. */
.signup-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;

    .signup-step {
        display: flex;
        flex: 1 1 320px;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
    }

    .step-label {
        font-family: var(--font-mono);
        font-size: 13px;
        color: var(--color-green);
    }
}

.signup-screen {
    flex: 1 1 auto;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow: var(--shadow-screen);

    > .drawing {
        gap: 12px;
    }

    /* The Google and Facebook buttons, drawn as each company's own sign-in
     * button: 40 pixels tall, 4-pixel corners, the logo 12 pixels from the
     * left edge, and the words centered. Google's is white with a grey border
     * and its colored "G"; Facebook's is Facebook blue with its white logo.
     * Each logo image is 22 pixels square, so the logo itself is the 20
     * pixels both companies' rules show. */
    .provider-button {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 40px;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 500;

        &.google {
            border: 1px solid var(--color-google-button-border);
            background: var(--color-white);
            color: var(--color-google-button-text);
        }

        &.facebook {
            background: var(--color-facebook-blue);
            color: var(--color-white);
            font-weight: 600;
        }
    }

    .provider-logo {
        position: absolute;
        top: 50%;
        left: 11px;
        width: 22px;
        height: 22px;
        transform: translateY(-50%);
    }

    /* The phone number field with its Send code button beside it. The button
     * has the field's padding, border, and text size, so the two are the
     * same height. */
    .phone-row {
        display: flex;
        align-items: flex-end;
        gap: 10px;

        .field {
            flex: 1 1 0;
            min-width: 0;
        }
    }

    .field-box.phone {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;

        @media (max-width: 760px) {
            gap: 8px;
        }
    }

    .country-code {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding-right: 10px;
        border-right: 1px solid var(--color-border);

        @media (max-width: 760px) {
            padding-right: 8px;
        }

        .icon {
            width: 14px;
            height: 14px;
            color: var(--color-text-subtle);
        }
    }

    /* The example number stays on one line, and is cut short with an
     * ellipsis on the narrowest screens instead of wrapping. */
    .placeholder {
        overflow: hidden;
        min-width: 0;
        color: var(--color-text-subtle);
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .send-code {
        flex: none;
        padding: 10px 14px;
        border: 1px solid var(--color-example-brand);
        border-radius: 8px;
        color: var(--color-example-brand);
        font-size: 15px;
        font-weight: 600;

        @media (max-width: 760px) {
            padding: 10px 12px;
        }
    }

    /* "or with your phone" and "or with email", with a rule on each side. */
    .divider {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        color: var(--color-text-subtle);

        &::before,
        &::after {
            content: "";
            flex: 1;
            height: 1px;
            background: var(--color-border);
        }
    }

    .field {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .field-label {
        font-size: 13px;
        font-weight: 500;
        color: var(--color-text-muted);

        &.with-icon {
            display: flex;
            align-items: center;
            gap: 6px;

            .icon {
                width: 14px;
                height: 14px;
            }
        }
    }

    .field-box {
        padding: 10px 12px;
        border: 1px solid var(--color-border-strong);
        border-radius: 8px;
        font-size: 15px;

        &.focused {
            border: 2px solid var(--color-example-brand);
        }

        &.password {
            letter-spacing: 0.15em;
        }

        &.select {
            display: flex;
            justify-content: space-between;

            .icon {
                margin-top: 2px;
                color: var(--color-text-subtle);
            }
        }
    }

    .field-row {
        display: flex;
        gap: 10px;

        .wide {
            flex: 2 1 0;
            min-width: 0;
        }

        .narrow {
            flex: 1 1 0;
            min-width: 0;
        }
    }

    .agreement {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        color: var(--color-text-muted);
    }

    .plan-summary {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 14px 16px;
        border: 1px solid var(--color-example-brand-border);
        border-radius: var(--radius-button);
        background: var(--color-example-brand-tint);
        font-size: 14px;
    }

    .summary-row {
        display: flex;
        justify-content: space-between;

        &.muted {
            color: var(--color-text-muted);
        }
    }

    .plan-name {
        font-weight: 600;
    }

    .total {
        font-weight: 500;
        color: var(--color-ink);
    }

    /* The pretend card field: the number, then the expiry and the security
     * code side by side, in one bordered box. */
    .card-boxes {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid var(--color-border-strong);
        border-radius: 8px;
        font-family: var(--font-mono);
        font-size: 14px;
        color: var(--color-text-subtle);
    }

    .card-number {
        padding: 10px 12px;
        border-bottom: 1px solid var(--color-border);
    }

    .card-row-boxes {
        display: flex;
    }

    .card-expiry,
    .card-code {
        flex: 1;
        padding: 10px 12px;
    }

    .card-expiry {
        border-right: 1px solid var(--color-border);
    }

    .field-note {
        font-size: 12px;
        color: var(--color-text-subtle);
    }
}

/* The founder page's example checkout, and the billing page that overlaps
 * its lower corner. */
.team-checkout {
    align-self: flex-end;
    width: 100%;
    max-width: 420px;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow: var(--shadow-mock);

    > .drawing {
        gap: 16px;
    }

    .screen-title {
        font-size: 24px;
    }

    .choice {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-button);
        font-size: 15px;

        &.compact {
            padding: 12px 16px;
        }

        &.selected {
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
            border: 2px solid var(--color-example-brand);
            background: var(--color-example-brand-tint);
        }
    }

    .choice-line {
        display: flex;
        align-items: center;
        justify-content: space-between;

        &.seats {
            color: var(--color-text-muted);
        }
    }

    .choice-name {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .radio {
        flex: none;
        width: 18px;
        height: 18px;
        border: 2px solid var(--color-icon-muted);
        border-radius: 50%;

        &.on {
            border: 5px solid var(--color-example-brand);
            background: var(--color-white);
        }
    }

    .strong {
        font-weight: 600;
    }

    .muted {
        color: var(--color-text-muted);
    }

    .subtle {
        color: var(--color-text-subtle);
    }

    .stepper {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        font-family: var(--font-mono);
        color: var(--color-ink);
    }

    .stepper-key {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border: 1px solid var(--color-border-strong);
        border-radius: 6px;
    }

    .card-placeholder {
        padding: 14px 16px;
        border: 1px dashed var(--color-border-strong);
        border-radius: var(--radius-button);
        font-size: 14px;
        color: var(--color-text-subtle);
    }

    .totals {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 15px;
    }

    .total-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .total {
        font-weight: 500;
    }

    .submit {
        min-height: 48px;
    }
}

.billing-page {
    align-self: flex-start;
    width: 260px;
    margin-top: -84px;
    padding: 18px;
    border-radius: var(--radius-step);
    background: var(--color-ink);
    color: var(--color-paper);
    box-shadow: 0 20px 40px -20px rgba(21, 23, 28, 0.6);

    > .drawing {
        gap: 10px;
    }

    .caption {
        font-family: var(--font-mono);
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--color-dark-label);
    }

    .plan-line {
        font-size: 15px;
        font-weight: 600;
    }

    .renewal {
        font-size: 13px;
        color: var(--color-dark-label);
    }

    .actions {
        display: flex;
        gap: 8px;
        padding-top: 4px;
    }

    .chip {
        padding: 6px 10px;
        border: 1px solid var(--color-dark-dashed);
        border-radius: 8px;
        font-size: 13px;
    }
}

/* The agency page's opening card: today's work beside the work with
 * RegPayReady, each column at least 220 pixels wide. */
.client-setup-comparison {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow: var(--shadow-mock);

    .caption {
        padding: 16px 22px;
        border-bottom: 1px solid var(--color-border-soft);
        font-family: var(--font-mono);
        font-size: 12px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--color-text-subtle);
    }

    .columns {
        display: flex;
        flex-wrap: wrap;
    }

    .column {
        display: flex;
        flex: 1 1 220px;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
        padding: 22px;
    }

    .today {
        background: var(--color-paper-tint);

        .column-heading {
            color: var(--color-text-muted);
        }
    }

    .with-regpayready {
        .column-heading {
            color: var(--color-green);
        }

        .check-list {
            gap: 12px;
        }
    }

    .column-heading {
        font-size: 15px;
        font-weight: 600;
    }

    .note {
        margin-top: auto;
        padding: 12px 14px;
        border-radius: var(--radius-button);
        background: var(--color-green-light);
        font-size: 14px;
        line-height: 1.5;
        color: var(--color-green-deep);
    }
}

/* The developer page's decoded access token and seat check. */
.access-token {
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--color-ink);
    color: var(--color-code-text);
    box-shadow: 0 30px 60px -30px rgba(21, 23, 28, 0.45);

    .caption {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 18px;
        border-bottom: 1px solid var(--color-code-rule);
        font-family: var(--font-mono);
        font-size: 12px;
        color: var(--color-dark-label);

        &.divider {
            border-top: 1px solid var(--color-code-rule);
            border-bottom: 0;
        }
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--color-green-bright);
    }

    .code {
        padding: 20px 22px;
        overflow-x: auto;
        font-family: var(--font-mono);
        font-size: 14px;
        line-height: 1.7;
        white-space: pre;

        &.seat-check {
            padding: 18px 22px 22px;
        }
    }

    .key {
        color: var(--color-green-on-dark);
    }

    .string {
        color: var(--color-code-string);
    }

    .number {
        color: var(--color-code-number);
    }

    .punctuation {
        color: var(--color-icon-muted);
    }

    .keyword {
        color: var(--color-code-keyword);
    }
}

/* The developer page's two request rows: a box, an arrow, and the result,
 * which wraps under the box on narrow screens. */
.request-flow {
    display: flex;
    flex-direction: column;
    gap: 14px;

    .flow-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .node {
        flex: 1 1 140px;
        padding: 16px;
        border: 1px solid var(--color-border);
        border-radius: 12px;
        background: var(--color-white);
        font-size: 15px;
        font-weight: 600;
        text-align: center;
    }

    .result {
        flex: 2 1 330px;

        &.in-app {
            border-color: var(--color-green);
            background: var(--color-green-light);
            color: var(--color-green-deep);
        }

        &.service {
            border-color: var(--color-ink);
            background: var(--color-ink);
            color: var(--color-paper);
        }
    }
}
/*
 * home.css holds what only the home page uses: the "Works with" row of
 * builder logos, the four "What every client app needs" cards, and the
 * "Where the money goes" diagram. It comes after mocks.css in the joined
 * stylesheet.
 */

/* The "Works with" row, between two rules. Each logo is the company's own
 * file, shown 24 pixels tall to sit level with the 22-pixel names, and
 * never recolored. A builder without a logo file, and "your own code", are
 * text in the design's muted heading type. */
.works-with {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);

    .inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 40px;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .label {
        font-family: var(--font-mono);
        font-size: 12px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--color-text-subtle);
    }

    .builders {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 36px;
    }

    .builder-logo {
        display: block;
        width: auto;
        height: 24px;
    }

    /* FlutterFlow's logo is its mark and its name, two files, laid out as
     * FlutterFlow's own header lays them out: a 27-pixel mark, a 13-pixel
     * name, and 7.2 pixels between them. */
    .builder-logo-parts {
        display: flex;
        align-items: center;

        .part {
            display: block;
            width: auto;
        }

        &.flutterflow {
            gap: 7.2px;

            .part:first-child {
                height: 27px;
            }

            .part:last-child {
                height: 13px;
            }
        }
    }

    .builder-name {
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 22px;
        letter-spacing: -0.01em;
        color: var(--color-text-muted);
    }
}

/* "Where the money goes", on the dark band: the copy beside a diagram of the
 * payment going from the subscriber to the client's bank, a note on where
 * RegPayReady sits, and three checks. On phones the diagram's boxes stack,
 * with the arrows turned to point down, as in the phone design. */
.money-section {
    .money-copy {
        display: flex;
        flex-direction: column;
        gap: 20px;

        .lede {
            max-width: none;
            font-size: 18px;
            line-height: 1.6;
        }
    }

    .money-diagram {
        display: flex;
        flex: 1 1 460px;
        flex-direction: column;
        gap: 16px;
    }

    .money-flow {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;

        .node {
            flex: 1 1 120px;
            padding: 18px 16px;
            border: 1px solid var(--color-dark-border);
            border-radius: 12px;
            background: var(--color-dark-surface);
            font-size: 15px;
            font-weight: 600;
            text-align: center;

            &.account {
                flex-basis: 150px;
                border-color: var(--color-green-on-dark);
            }
        }

        .flow-arrow {
            color: var(--color-green-on-dark);
        }

        @media (max-width: 760px) {
            flex-direction: column;
            align-items: stretch;

            .node,
            .node.account {
                flex: 0 0 auto;
            }

            .flow-arrow {
                align-self: center;
                transform: rotate(90deg);
            }
        }
    }

    .beside-note {
        padding: 16px 18px;
        border: 1px dashed var(--color-dark-dashed);
        border-radius: 12px;
        font-size: 15px;
        line-height: 1.5;
        color: var(--color-dark-text);

        .strong {
            font-weight: 600;
            color: var(--color-paper);
        }
    }

    .check-list {
        gap: 10px;
        padding-top: 8px;
        line-height: 1.5;
    }
}

/* The four "What every client app needs" cards. The shared card row lets
 * each card grow to fill its line, so a fourth card would sit alone at full
 * width under the other three. Here they are a grid instead: four across on
 * a wide screen, two by two on a tablet, and one column on a phone, so every
 * card keeps the same width and the cards in a line keep the same height.
 * Four across, the headings are 22 pixels instead of 26, so "Sign-up and
 * sign-in" stays on one line instead of breaking inside "sign-in". */
.client-app-needs {
    .card-row {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));

        .card-heading {
            font-size: 22px;
        }

        @media (max-width: 1100px) {
            grid-template-columns: repeat(2, minmax(0, 1fr));

            .card-heading {
                font-size: 26px;
            }
        }

        @media (max-width: 760px) {
            grid-template-columns: minmax(0, 1fr);
        }
    }
}
/*
 * agencies.css holds what only the agency page uses: the smaller space above
 * "What each client gets", which sits close under the opening, the narrower
 * cards there, and the
 * spacing of "Your client always owns their customers." under the steps. It
 * comes after home.css in the joined stylesheet.
 */

.client-features {
    padding-top: 32px;

    /* Seven cards since roles and permissions joined them: cards at least
     * 260 pixels wide fit four and three across, instead of the design's
     * three across, which would leave the seventh card alone. */
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    }
}

.ownership {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 24px;
}
/*
 * founders.css holds what only the founder page uses: the opening's checkout
 * column, where the billing page overlaps the checkout without a gap, and
 * "Where the money goes", with its heading beside two paragraphs and 104
 * pixels above and below. It comes after agencies.css in the joined
 * stylesheet.
 */

.hero {
    .checkout-visual {
        gap: 0;
    }
}

.founder-money {
    padding-top: 104px;
    padding-bottom: 104px;

    .money-heading {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .money-text {
        display: flex;
        flex-direction: column;
        gap: 16px;
        font-size: 17px;
        line-height: 1.6;
        color: var(--color-dark-text);
    }
}
/*
 * developers.css holds what only the developer page uses: the widths of the
 * opening's copy and token sample, the smaller headings of its two split
 * sections, and the plan table. It comes after founders.css in the joined
 * stylesheet.
 */

.code-hero {
    .copy {
        flex-basis: 500px;
    }

    .visual {
        flex-basis: 460px;
    }
}

/* "Signed-in requests stay in your app." and "No charge per user.": a
 * heading and paragraph beside the request rows or the plan table. */
.request-section,
.pricing-section {
    .section-heading {
        font-size: clamp(32px, 3.6vw, 44px);
    }

    .request-copy,
    .pricing-copy {
        display: flex;
        flex: 1 1 400px;
        flex-direction: column;
        gap: 16px;
    }

    .intro-text {
        font-size: 17px;
        line-height: 1.6;
        color: var(--color-text-muted);
    }

    .text-link {
        font-size: 16px;
    }
}

.request-section {
    .request-flow {
        flex: 1 1 520px;
    }
}

/* Every plan's monthly fee and share of billed volume, one row each, read
 * from data/plans.toml. The last plan has no rule under it, because the
 * note below has one above it. */
.plan-table {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-white);

    .plan-row {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 18px 22px;
        border-bottom: 1px solid var(--color-border-soft);
        font-size: 16px;

        &:has(+ .table-note) {
            border-bottom: 0;
        }
    }

    .plan-name {
        font-weight: 600;
    }

    .plan-figures {
        font-family: var(--font-mono);
    }

    .table-note {
        padding: 12px 22px;
        border-top: 1px solid var(--color-border-soft);
        background: var(--color-paper-tint);
        font-size: 13px;
        color: var(--color-text-muted);
    }
}
