/*
 * Better Pricing Mothership theme.
 *
 * One stylesheet, built from the bottom up: faces, then tokens, then a handful of
 * primitives (frame, type steps, buttons, surfaces, fields), and only then the pages. No
 * framework underneath it. Every colour on every page comes from the tokens below, which
 * is what lets the whole site change between dark and light by swapping one block.
 *
 * The design is v2 in the Figma file ("Website v2", direction "Grøn flade"): dark by
 * default like the application itself, the wordmark's green as the one colour that acts —
 * big green panels for the hero, the close and the popular plan, with near-black text on
 * them — Bricolage Grotesque for the display steps, Geist to read and Geist Mono for
 * eyebrows and figures, and pill buttons.
 *
 * Theme. Dark unless the visitor has chosen light with the toggle in the header, which the
 * inline script in Head.ss writes to <html data-theme> before the first paint. The system
 * preference does not decide it: the site is dark because the product is.
 */

/* ---------------------------------------------------------------------------
   Faces

   Self-hosted rather than fetched from Google: a Danish site loading fonts from a
   third party hands every visitor's address to it, which is a GDPR problem in its
   own right. All three are variable fonts under the SIL Open Font License; the
   licences are beside the files.

   Bricolage Grotesque sets the display steps — headings and the big numbers. Geist is
   the reading face, and Geist Mono the eyebrows and anything that is a figure in a
   column, where every digit should be the same width.
--------------------------------------------------------------------------- */

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-sans.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist Mono";
    src: url("../fonts/geist-mono.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---------------------------------------------------------------------------
   Tokens

   The names and values are the "v2 · Colour" and "v2 · Layout" variables in Figma, one
   to one, so a value read off the design can be looked up here by name. Dark is the
   default block; light is the one a visitor chooses.
--------------------------------------------------------------------------- */

:root {
    color-scheme: dark;

    --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
    --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    /* The one frame every block on every page runs to the edge of: 1200px of content, and
       a gutter that is 20px on a phone and grows to fill the rest. */
    --frame: 75rem;
    --gutter: clamp(1.25rem, 4vw, 2rem);
    /* Green panels sit closer to the window than the frame does. */
    --panel-inset: clamp(0.5rem, 1.7vw, 1.5rem);
    --header-height: 4.75rem;

    --radius-xs: 0.25rem;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-panel: 1.75rem;
    --radius-pill: 999px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --t-press: 140ms;
    --t-hover: 180ms;

    /* Dark. */
    --bg: #0b0d11;
    --surface: #13161c;
    --surface-raised: #1a1e26;
    --surface-sunk: #08090c;

    --ink: #f1f3f5;
    --muted: #9ca3ae;

    --line: #272b34;
    --line-strong: #3a3f4a;

    --green: #36c76c;
    --green-hover: #4ad67e;
    --on-green: #03130a;
    --on-green-muted: #0e3d22;
    --green-text: #45d27a;
    --green-tint: #112619;

    --blue: #6e9bf2;
    --blue-text: #8db2f7;
    --blue-tint: #15213a;

    --amber: #f2a93b;
    --amber-text: #f5bd63;
    --amber-tint: #2e2210;

    --danger: #f0645a;
    --danger-text: #f58a82;
    --danger-tint: #3a1715;
    --on-danger: #1a0503;

    --focus: #a3f0c0;

    /* Behind a screenshot of the application that only exists in dark, such as one an
       editor uploaded. A screen shown in the page's own theme stands on --bg instead. */
    --shot-backdrop: #05070a;

    /* Near-black on green: the buttons and chips inside a green panel. Not a theme
       colour — it is the same on both grounds because the green is. */
    --inverse-bg: #03130a;
    --inverse-ink: #f1f3f5;

    --shadow-menu: 0 18px 48px -12px rgb(0 0 0 / 0.7);
    --shadow-shot: 0 -8px 40px 0 rgb(0 20 8 / 0.35);
    --shadow-phone: 0 24px 48px 0 rgb(0 0 0 / 0.45);
}

:root[data-theme="light"] {
    color-scheme: light;

    --bg: #f6f7f5;
    --surface: #ffffff;
    --surface-raised: #eef1ed;
    --surface-sunk: #e9ece8;

    --ink: #0c110d;
    --muted: #555e58;

    --line: #d8ddd7;
    --line-strong: #b9c0b8;

    --green: #36c76c;
    --green-hover: #2db55f;
    --on-green: #03130a;
    --on-green-muted: #0e3d22;
    --green-text: #137537;
    --green-tint: #e2f4e8;

    --blue: #2f6fe0;
    --blue-text: #1f56bf;
    --blue-tint: #e5edfb;

    --amber: #e39a22;
    --amber-text: #8a5300;
    --amber-tint: #fbefd9;

    --danger: #d93b30;
    --danger-text: #b42318;
    --danger-tint: #fde8e6;
    --on-danger: #ffffff;

    --focus: #0b5d2a;

    --shot-backdrop: #0b0d11;

    --shadow-menu: 0 16px 40px -12px rgb(12 17 13 / 0.24);
    --shadow-phone: 0 24px 48px 0 rgb(12 17 13 / 0.3);
}

/* The names the pages further down were written against, kept as aliases of the v2
   tokens rather than renamed through four thousand lines. Declared on :root after both
   theme blocks, so each one follows whichever theme is showing. */
:root {
    --paper: var(--bg);
    --card: var(--surface);
    --sunk: var(--surface-sunk);
    --elevated: var(--surface-raised);

    --foreground: var(--ink);
    --faint: color-mix(in oklab, var(--muted) 75%, var(--bg));

    --primary: var(--green);
    --primary-hover: var(--green-hover);
    --primary-foreground: var(--on-green);
    --primary-text: var(--green-text);
    --primary-tint: var(--green-tint);
    --primary-tint-strong: color-mix(in oklab, var(--green) 30%, var(--surface));

    --warning: var(--amber-text);
    --warning-tint: var(--amber-tint);

    --border: var(--line);
    --border-strong: var(--line-strong);
    --ring: var(--focus);

    --radius: var(--radius-md);

    --shadow-hairline: none;
    --shadow-card: none;
    --shadow-hero: none;
}

/* ---------------------------------------------------------------------------
   Base
--------------------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background-color: var(--bg);
    /* An in-page link lands under the sticky header without this. */
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Clipped sideways here rather than on body: overflow on body is handed to the
   viewport, where it stops nothing. clip, not hidden, so the sticky columns inside
   keep sticking — hidden would make main their scroll container. */
main {
    position: relative;
    flex: 1 0 auto;
    overflow-x: clip;
    outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: inherit;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure,
blockquote,
fieldset {
    margin: 0;
}

ul,
ol {
    padding: 0;
}

fieldset {
    min-width: 0;
    padding: 0;
    border: 0;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 0.07em;
    text-underline-offset: 0.22em;
}

strong,
b {
    font-weight: 600;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background-color: color-mix(in oklab, var(--green) 35%, transparent);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

[hidden] {
    display: none !important;
}

.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-pill);
    background-color: var(--green);
    color: var(--on-green);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

/* Font Awesome glyphs that are decoration sit on the text baseline at the text size. */
.fa-solid,
.fas,
.fa-regular,
.far,
.fa-brands,
.fab {
    line-height: 1;
}

main > *,
.site-footer {
    position: relative;
    z-index: 1;
}

/* ---------------------------------------------------------------------------
   Frame and rhythm
--------------------------------------------------------------------------- */

.frame {
    width: 100%;
    max-width: calc(var(--frame) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.frame--narrow {
    max-width: calc(48rem + 2 * var(--gutter));
}

.section {
    padding-block: clamp(5rem, 3rem + 6vw, 10rem) 0;
}

.section--last {
    padding-bottom: clamp(5rem, 3rem + 6vw, 10rem);
}

/* A big panel that runs nearly to the edge of the window — the hero, the close, the
   page heads of the account pages. Green, or the surface. Its content sits in a .frame
   of its own, so it lines up with every block above and below it. */
.panel {
    position: relative;
    isolation: isolate;
    margin-inline: var(--panel-inset);
    overflow: hidden;
    border-radius: var(--radius-panel);
}

.panel--green {
    background-color: var(--green);
    color: var(--on-green);
}

.panel--surface {
    border: 1px solid var(--line);
    background-color: var(--surface);
}

/* Inside a panel the frame keeps its own width, so on a wide screen the content in a
   panel starts exactly where content outside it does. On a narrower one it keeps a
   padding of its own from the panel's edge. */
.panel > .frame {
    --panel-pad: var(--gutter);

    max-width: calc(var(--frame) + 2 * var(--panel-pad));
    padding-inline: var(--panel-pad);
}

@media (min-width: 64rem) {
    .panel > .frame {
        --panel-pad: 3rem;
    }
}

/* A heading on the left and a sentence on the right, the sentence on the heading's
   last line — every section on the front page opens this way. */
.section-head {
    display: grid;
    gap: 1.25rem;
    margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

@media (min-width: 64rem) {
    .section-head {
        grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
        align-items: end;
        gap: 3rem;
    }
}

.section-head__lead {
    max-width: 25rem;
}

/* ---------------------------------------------------------------------------
   Type steps

   The v2 text styles: Display XL for the hero, Display L for a section, Display M for a
   card's title, Heading L, M for the smaller titles, and Body L, M, S to read. The
   display face is set at its text optical size, which is what the design uses at every
   size — the display cut narrows and thins at 148px in a way the design does not.
--------------------------------------------------------------------------- */

.display-xl,
.display,
.heading,
.heading-m,
.heading-l,
.heading-s {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14;
    text-wrap: balance;
}

.display-xl {
    font-size: clamp(3.5rem, 1.6rem + 7.8vw, 9.25rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.display,
.heading {
    font-size: clamp(2.5rem, 1.85rem + 2.6vw, 4.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.heading-m {
    font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.heading-l {
    font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.heading-s {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* A title that steps back so what is under it leads. */
.heading--quiet {
    color: var(--muted);
}

.heading--quiet strong,
.heading--quiet em {
    color: var(--ink);
    font-style: normal;
}

.statement {
    font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.lead {
    max-width: 46ch;
    color: var(--muted);
    font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
    line-height: 1.5;
    text-wrap: pretty;
}

.small {
    font-size: 0.875rem;
    line-height: 1.45;
}

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

.tnum {
    font-variant-numeric: tabular-nums;
}

/* Mono, uppercase, widely spaced. Only the hero and the close carry one on the front
   page; the account pages use it above their titles. */
.eyebrow {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--green-text);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

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

/* ---------------------------------------------------------------------------
   Buttons and links

   Pill-shaped. Primary is the green fill — the one thing to press. Secondary is an
   outline, quiet is text that behaves like a button, and inverse is near-black, for a
   green panel. Hover is green on every kind. Small, medium (the default) and large; the
   medium and the large are never under 44px high.
--------------------------------------------------------------------------- */

.button,
.btn-toolbar .action,
.btn-toolbar button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    background-color: var(--green);
    color: var(--on-green);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform var(--t-press) var(--ease-out),
        background-color var(--t-hover) ease,
        border-color var(--t-hover) ease,
        color var(--t-hover) ease;
    -webkit-appearance: none;
    appearance: none;
}

.button:active,
.btn-toolbar .action:active {
    transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
    .button:hover,
    .btn-toolbar .action:hover {
        background-color: var(--green-hover);
    }
}

.button i {
    font-size: 0.875em;
}

.button--secondary {
    border-color: var(--line-strong);
    background-color: transparent;
    color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
    .button--secondary:hover {
        border-color: var(--green-text);
        background-color: transparent;
        color: var(--green-text);
    }
}

.button--quiet {
    padding-inline: 1rem;
    background-color: transparent;
    color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
    .button--quiet:hover {
        background-color: var(--green-tint);
        color: var(--green-text);
    }
}

.button--inverse {
    background-color: var(--inverse-bg);
    color: var(--inverse-ink);
}

@media (hover: hover) and (pointer: fine) {
    .button--inverse:hover {
        background-color: var(--inverse-bg);
        color: var(--green);
    }
}

.button--sm {
    min-height: 2.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.button--lg {
    min-height: 3.25rem;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.button--block {
    width: 100%;
}

.button[disabled],
.button[aria-disabled="true"] {
    border-color: var(--line);
    background-color: var(--surface-raised);
    color: var(--muted);
    cursor: not-allowed;
    transform: none;
}

/* The arrow moves, not the button. */
.button__arrow {
    transition: transform var(--t-hover) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .button:hover .button__arrow,
    .link:hover .button__arrow {
        transform: translateX(3px);
    }
}

/* Plain text links: the underline arrives on hover, never the weight. */
.link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
    .link:hover {
        text-decoration-color: currentColor;
    }
}

/* On green the link is always underlined: there is no colour left to tell it by. */
.panel--green .link,
.link--on-green {
    color: var(--on-green);
    text-decoration-color: currentColor;
}

.link--green {
    color: var(--green-text);
    font-weight: 500;
}

.link--muted {
    color: var(--muted);
    font-weight: 400;
}

.link--muted:hover {
    color: var(--ink);
}

/* A tick in front of each line, for every "what you get" list on the site. */
.checks {
    display: grid;
    gap: 0.75rem;
    list-style: none;
}

.checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.checks i {
    flex: none;
    width: 1rem;
    margin-top: 0.15em;
    color: var(--green-text);
    font-size: 0.8125rem;
    text-align: center;
}

/* A small pill, for a plan's users, "most popular" and the like. */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    background-color: var(--green-tint);
    color: var(--green-text);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.pill--neutral {
    background-color: var(--surface-raised);
    color: var(--muted);
}

.pill--inverse {
    background-color: var(--inverse-bg);
    color: var(--green);
}

.pill--amber {
    background-color: var(--amber-tint);
    color: var(--amber-text);
}

.pill--blue {
    background-color: var(--blue-tint);
    color: var(--blue-text);
}

/* ---------------------------------------------------------------------------
   Surfaces
--------------------------------------------------------------------------- */

.surface {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background-color: var(--surface);
}

/* A square tile with an icon in it, tinted with the brand. */
.icon-tile {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    background-color: var(--green-tint);
    color: var(--green-text);
    font-size: 1.05rem;
}

/* ---------------------------------------------------------------------------
   Header

   The wordmark, the menu in the middle, and the tools on the right: the language, the
   theme, and the way in. On its own ground with a hairline under it, sticky.
--------------------------------------------------------------------------- */

/* The notice across the top of every page – Includes/SiteNotice.ss, switched on in the
   settings. Amber, the colour of something to know, and above the sticky header so it
   scrolls away once read. */
.site-notice {
    position: relative;
    z-index: 1;
    padding-block: 0.75rem;
    background-color: var(--amber-tint);
    color: var(--amber-text);
    font-size: 0.875rem;
    line-height: 1.45;
}

.site-notice__inner {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    justify-content: center;
    text-align: center;
}

.site-notice a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid var(--line);
    background-color: var(--bg);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    flex: none;
    color: var(--ink);
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-decoration: none;
}

/* The money bag, bare, the way the application shows it beside its name. */
.brand__mark {
    display: block;
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
}

.brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.site-nav__link {
    position: relative;
    color: var(--muted);
    font-size: 1rem;
    text-decoration: none;
    transition: color var(--t-hover) ease;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
    color: var(--ink);
}

/* The current page, marked by something other than a shade of grey. */
.site-nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.4rem;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background-color: var(--green);
}

/* Only in the folded menu on a narrow screen; the bar has its own copy of these. */
.site-nav__extra {
    display: none;
}

.site-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* DA / EN: each language a link, the one being read in ink. */
.locale-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-mono);
    list-style: none;
}

.locale-switch li + li::before {
    content: "/";
    margin-right: 0.25rem;
    color: var(--line-strong);
    font-size: 0.875rem;
}

.locale-switch a {
    display: inline-block;
    padding: 0.25rem 0.125rem;
    color: var(--muted);
    font-size: 0.875rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--t-hover) ease;
}

.locale-switch a:hover {
    color: var(--green-text);
}

.locale-switch a[aria-current] {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
}

/* An icon-sized round button: the theme toggle and the menu. */
.icon-button {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    transition: border-color var(--t-hover) ease, color var(--t-hover) ease;
}

.icon-button:hover {
    border-color: var(--green-text);
    color: var(--green-text);
}

/* The theme toggle needs the script to do anything, so it is only drawn with it. */
html:not(.js) .theme-toggle {
    display: none;
}

/* Sun while dark, moon while light: the icon is what pressing it gives you. */
.theme-toggle__light,
.theme-toggle__dark {
    display: none;
}

:root[data-theme-resolved="light"] .theme-toggle__dark,
:root[data-theme-resolved="dark"] .theme-toggle__light {
    display: inline;
}

/* "Menu", with its icon: a pill rather than a bare hamburger. */
.menu-toggle {
    display: none;
    gap: 0.5rem;
    width: auto;
    padding-inline: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Under the wide layout the menu folds into a panel under the bar. Only when the
   script is there to open it: without it the links stay in the bar and wrap. */
@media (max-width: 63.99rem) {
    .site-header__inner {
        gap: 0.75rem;
    }

    .js .menu-toggle {
        display: inline-flex;
        align-items: center;
    }

    .js .site-tools .locale-switch,
    .js .site-tools .button {
        display: none;
    }

    .js .site-nav {
        position: absolute;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        max-height: calc(100svh - var(--header-height));
        padding: 1rem var(--gutter) 1.75rem;
        overflow-y: auto;
        border-bottom: 1px solid var(--line);
        background-color: var(--bg);
        box-shadow: var(--shadow-menu);
    }

    .js .site-header[data-open] .site-nav {
        display: flex;
    }

    .js .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .js .site-nav__link {
        display: block;
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--line);
        color: var(--ink);
        font-size: 1.125rem;
    }

    .js .site-nav__link[aria-current="page"]::after {
        top: 50%;
        right: auto;
        bottom: auto;
        left: -0.9rem;
        width: 0.35rem;
        height: 0.35rem;
        border-radius: 50%;
        transform: translateY(-50%);
    }

    .js .site-nav__extra {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }

    .js .site-nav__extra .locale-switch {
        margin-left: auto;
    }

    html:not(.js) .site-header {
        height: auto;
        min-height: var(--header-height);
    }

    html:not(.js) .site-header__inner {
        flex-wrap: wrap;
        padding-block: 0.75rem;
    }

    html:not(.js) .site-nav,
    html:not(.js) .site-nav__list {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 30rem) {
    .brand {
        font-size: 1.25rem;
    }
}

/* The bar on its own, for pages that are not ContentController pages and have no
   menu to draw. */
.site-header--bare .site-header__inner {
    justify-content: space-between;
}

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */

.site-footer {
    flex: none;
    margin-top: auto;
    border-top: 1px solid var(--line);
    background-color: var(--surface-sunk);
}

.site-footer__inner {
    display: grid;
    gap: 2.5rem;
    padding-block: clamp(3rem, 2rem + 3vw, 5rem) 4rem;
}

@media (min-width: 48rem) {
    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 3rem;
    }
}

.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 2rem 3rem;
}

@media (min-width: 64rem) {
    .site-footer__columns {
        gap: 2rem 5rem;
    }
}

.site-footer__tagline {
    max-width: 18.75rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.site-footer__heading {
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-variation-settings: normal;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.site-footer__links {
    display: grid;
    gap: 0.75rem;
    list-style: none;
}

.site-footer__links a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}

.site-footer__links a:hover {
    color: var(--green-text);
}

.site-footer__links a[aria-current] {
    color: var(--green-text);
    font-weight: 500;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding-block: 1.5rem 2.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.site-footer__bottom p {
    margin: 0;
}

/* ---------------------------------------------------------------------------
   Reveal

   site.js marks only the elements that start below the fold as pending, so
   nothing already on screen ever blinks out, and nothing stays hidden without the
   script. Elements in the first screen rise once on load instead.
--------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    [data-reveal].is-pending {
        opacity: 0;
        transform: translateY(24px);
    }

    [data-reveal].is-in {
        opacity: 1;
        transform: none;
        transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo);
        transition-delay: calc(var(--r, 0) * 80ms);
    }

    [data-load] {
        opacity: 0;
        transform: translateY(14px);
        animation: rise 640ms var(--ease-out) forwards;
        animation-delay: var(--d, 120ms);
    }
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------------------
   Screenshots of the application

   Real screens, shown plainly: cropped by the edge of whatever they sit in, never
   annotated. The application has a dark theme and a light one of its own, and the site
   shows it in whichever the page is in. The frame around such a screen is the
   application's ground in that theme, which is this site's --bg; a screen that only
   exists in dark keeps the darker backdrop it was drawn for.

   A screen that exists in both is printed twice, `.themed__dark` and `.themed__light`,
   and one of them is shown. The theme is chosen in the browser, before the first paint,
   so it is the stylesheet that has to choose; the hidden one is lazy wherever that does
   not cost the page its first picture, and a hidden lazy image is not fetched.
--------------------------------------------------------------------------- */

.shot.themed,
.hero__shot.themed {
    background-color: var(--bg);
}

.themed__light {
    display: none;
}

:root[data-theme="light"] .themed__dark {
    display: none;
}

:root[data-theme="light"] .themed__light {
    display: block;
}

picture.themed__dark,
picture.themed__light {
    width: 100%;
    height: 100%;
}

picture.themed__dark {
    display: block;
}

:root[data-theme="light"] picture.themed__dark {
    display: none;
}

.shot {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.875rem;
    background-color: var(--shot-backdrop);
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

/* ---------------------------------------------------------------------------
   Front page: hero

   A green panel: the tagline and the claim across the top, the pitch and the way in
   under it on the left, and the calculator itself in the bottom right, running out of
   the panel at its edge and its foot.
--------------------------------------------------------------------------- */

.hero {
    padding-top: 0.5rem;
}

.hero__panel {
    min-height: min(47.5rem, calc(100svh - var(--header-height)));
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 4.25rem);
}

.hero__title {
    max-width: 12ch;
}

.hero__copy {
    display: grid;
    gap: 2rem;
    justify-items: start;
    max-width: 27rem;
    margin-top: clamp(2.5rem, 1.5rem + 4vw, 5.75rem);
}

.hero__lead {
    font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
    line-height: 1.5;
    text-wrap: pretty;
}

.hero__content > * + * {
    margin-top: 0.75rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.hero__facts {
    display: grid;
    gap: 0.5rem;
    font-weight: 500;
    list-style: none;
}

.hero__facts li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero__facts i {
    width: 1rem;
    font-size: 0.8125rem;
    text-align: center;
}

/* The calculator. Until the copy and the screen fit side by side it follows the copy,
   whole, running off the panel's right edge and its foot; on a wide screen it sits in
   the bottom right corner, cropped by both. */
.hero__shot {
    position: relative;
    margin-left: var(--gutter);
    overflow: hidden;
    border-top-left-radius: 1.25rem;
    background-color: var(--shot-backdrop);
    box-shadow: var(--shadow-shot);
}

.hero__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

/* Until then the picture stands on the panel's foot, however much taller than its
   copy the panel is. */
@media (max-width: 74.9375rem) {
    .hero__panel {
        display: flex;
        flex-direction: column;
    }

    .hero__shot {
        margin-top: auto;
    }
}

/* On a phone the picture is a strip of the phone layout instead, held inside the panel
   on both sides. */
@media (max-width: 39.9375rem) {
    .hero__shot {
        margin-inline: var(--gutter);
        border-radius: 1rem 1rem 0 0;
    }
}

@media (min-width: 75rem) {
    .hero__panel {
        min-height: 47.5rem;
    }

    .hero__shot {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 43.4%;
        height: 25rem;
        margin: 0;
    }
}

/* ---------------------------------------------------------------------------
   Front page: benefits

   A bento: two wide cards, three square ones, and the sixth as a green banner across
   the whole row. Each carries a real screen of that part of Better Pricing in its lower
   half, cropped by the card's edge. Another number of benefits than six falls back to
   squares, so nothing ever sits in a gap.
--------------------------------------------------------------------------- */

.features {
    display: grid;
    gap: 1.5rem;
    list-style: none;
}

@media (min-width: 40rem) {
    .features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .features {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .feature {
        grid-column: span 2;
    }

    .feature:nth-child(1),
    .feature:nth-child(2),
    /* With exactly four, the second row is two wide cards too. */
    .feature:nth-child(3):nth-last-child(2),
    .feature:nth-child(4):last-child {
        grid-column: span 3;
    }
}

.feature {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 24rem;
    overflow: hidden;
    padding: 2.25rem 2.25rem 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background-color: var(--surface);
}

@media (min-width: 64rem) {
    .feature {
        height: 27.5rem;
    }
}

.feature__title {
    max-width: 100%;
    font-family: var(--font-display);
    overflow-wrap: break-word;
    hyphens: auto;
    font-variation-settings: "opsz" 14;
    font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.feature__description {
    color: var(--muted);
    line-height: 1.5;
}

.feature:not(.feature--shot) {
    padding-bottom: 2.25rem;
}

.feature .icon-tile {
    margin-bottom: 0.5rem;
}

/* The screen: fixed in size and anchored by its top left, so the card's own edge does
   the cropping. */
.feature__shot {
    position: relative;
    flex: 1 1 auto;
    min-height: 11rem;
}

.feature__shot .shot {
    position: absolute;
    top: 1.75rem;
    left: 1.5rem;
    width: 28.75rem;
    aspect-ratio: 3 / 2;
}

@media (min-width: 75rem) {
    .feature:nth-child(1) .feature__title,
    .feature:nth-child(2) .feature__title {
        font-size: 2.75rem;
        line-height: 1.08;
        letter-spacing: -0.03em;
    }

    .feature:nth-child(1) .feature__shot .shot,
    .feature:nth-child(2) .feature__shot .shot {
        left: 3.5rem;
        width: 40rem;
    }
}

/* The sixth, when it is the last: green, across the whole row, its screen on the right. */
.feature:nth-child(6):last-child {
    border-color: transparent;
    background-color: var(--green);
    color: var(--on-green);
}

.feature:nth-child(6):last-child .feature__description {
    color: var(--on-green);
}

.feature:nth-child(6):last-child .icon-tile {
    background-color: var(--inverse-bg);
    color: var(--green);
}

@media (min-width: 40rem) {
    .feature:nth-child(6):last-child {
        grid-column: 1 / -1;
    }
}

/* In two columns the fifth would stand alone above the banner; it takes the row. */
@media (min-width: 40rem) and (max-width: 63.99rem) {
    .feature:nth-child(5):nth-last-child(2) {
        grid-column: 1 / -1;
    }
}

/* Its screen is a phone, standing in the middle of its picture: centred in the card
   while the card is narrow, so the card's edge crops the ground and not the phone. */
@media (max-width: 63.9375rem) {
    .feature:nth-child(6):last-child .feature__shot .shot {
        left: 50%;
        border: 0;
        translate: -50% 0;
    }
}

@media (min-width: 64rem) {
    .feature:nth-child(6):last-child {
        flex-direction: row;
        gap: 0;
        height: 22.5rem;
        min-height: 0;
        padding: 0;
    }

    .feature:nth-child(6):last-child .feature__text {
        display: grid;
        flex: none;
        align-content: start;
        gap: 0.75rem;
        width: 32.5rem;
        padding: 2.5rem 1.75rem 1.75rem 2.5rem;
    }

    .feature:nth-child(6):last-child .feature__title {
        font-size: 2.75rem;
        line-height: 1.08;
        letter-spacing: -0.03em;
    }

    .feature:nth-child(6):last-child .feature__shot .shot {
        top: 3rem;
        right: 2.5rem;
        left: auto;
        width: min(35rem, calc(100% - 2.5rem));
        border: 0;
    }
}

.feature__text {
    display: grid;
    gap: 0.75rem;
    justify-items: start;
}

/* ---------------------------------------------------------------------------
   Front page: the whole day on one page

   A surface panel mirroring the hero: the dashboard running off the left edge with the
   phone in front of it running off the foot, and the copy on the right.
--------------------------------------------------------------------------- */

.whole-day__panel {
    display: grid;
}

.whole-day__copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
    padding-block: clamp(2.5rem, 2rem + 3vw, 6rem) 0;
}

.whole-day__points {
    list-style: none;
}

.whole-day__points li {
    display: grid;
    gap: 0.25rem;
    padding-block: 1rem;
    border-top: 1px solid var(--line);
}

.whole-day__points p {
    color: var(--muted);
}

/* Under the wide layout the copy comes first and the screens run out of the panel's foot
   beneath it. */
.whole-day__screens {
    position: relative;
    order: 2;
    height: clamp(20rem, 80vw, 30rem);
    margin-top: 2.5rem;
}

.whole-day__desktop {
    position: absolute;
    top: 0;
    left: calc(var(--gutter) * -1);
    width: clamp(36rem, 150vw, 59.4rem);
    aspect-ratio: 950 / 443;
    border-color: var(--line-strong);
    border-radius: 1rem;
}

.whole-day__phone {
    position: absolute;
    top: clamp(5rem, 18vw, 9.4rem);
    right: var(--gutter);
    width: clamp(9rem, 32vw, 15.625rem);
    aspect-ratio: 25 / 44;
    border-color: var(--line-strong);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-phone);
}

@media (min-width: 64rem) {
    .whole-day__panel {
        min-height: 45rem;
    }

    .whole-day__copy {
        width: min(26.25rem, 36%);
        margin-left: auto;
        padding-block: 6rem;
    }

    .whole-day__screens {
        position: absolute;
        inset: 0;
        height: auto;
        margin: 0;
        pointer-events: none;
    }

    .whole-day__desktop {
        top: 9.375rem;
        left: -13.3%;
        width: 68.25%;
    }

    .whole-day__phone {
        top: 15.625rem;
        right: auto;
        left: 41.3%;
        width: 17.96%;
        max-width: 15.625rem;
    }
}

/* ---------------------------------------------------------------------------
   Front page: plans
--------------------------------------------------------------------------- */

.plans__head-end {
    display: grid;
    gap: 1.25rem;
    justify-items: start;
}

@media (min-width: 64rem) {
    .plans__head-end {
        justify-items: start;
    }
}

/* Two radios and a :has() rule, not script. */
.billing-toggle {
    display: inline-flex;
    padding: 0.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background-color: var(--surface);
}

.billing-toggle__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.billing-toggle__option {
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.billing-toggle__input:checked + .billing-toggle__option {
    background-color: var(--green);
    color: var(--on-green);
}

.billing-toggle__input:focus-visible + .billing-toggle__option {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.plans__group--year {
    display: none;
}

.plans:has(#plans-interval-year:checked) .plans__group--month {
    display: none;
}

.plans:has(#plans-interval-year:checked) .plans__group--year {
    display: block;
}

.plan-grid {
    display: grid;
    gap: 1.5rem;
    list-style: none;
}

/* Side by side only where a row holds all of them: two cards and an orphan read as
   two plans and an afterthought. */
@media (min-width: 64rem) {
    .plan-grid {
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    }
}

/* Cards in a row stretch to one height. The popular one is solid green. */
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background-color: var(--surface);
}

.plan--featured {
    border-color: transparent;
    background-color: var(--green);
    color: var(--on-green);
}

.plan__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.plan__name {
    font-size: 1.75rem;
    font-variation-settings: "opsz" 14;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.plan__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.625rem;
}

.plan__amount {
    color: var(--green-text);
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14;
    font-size: clamp(4rem, 3.2rem + 2vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.plan__unit {
    display: grid;
    font-size: 0.875rem;
}

.plan__unit-main {
    font-weight: 500;
    line-height: 1.3;
}

.plan__unit-note {
    color: var(--muted);
    line-height: 1.45;
}

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

.plan__features {
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.plan--featured .plan__amount {
    color: var(--on-green);
}

.plan--featured .plan__unit-note,
.plan--featured .plan__desc {
    color: var(--on-green-muted);
}

.plan--featured .plan__features {
    border-top-color: var(--on-green-muted);
}

.plan--featured .checks i {
    color: var(--on-green);
}

/* "Coming soon" on the green card: the inverse button, held back. */
.plan--featured .button[disabled] {
    border-color: transparent;
    background-color: color-mix(in oklab, var(--inverse-bg) 22%, var(--green));
    color: var(--on-green-muted);
}

/* The note under the cards: the small print on the left, the way to a negotiated price
   on the right. */
.plans__note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    margin-top: 3.5rem;
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-xl);
    background-color: var(--surface);
}

@media (min-width: 48rem) {
    .plans__note {
        border-radius: var(--radius-pill);
    }
}

.plans__small-print {
    color: var(--muted);
    font-size: 0.875rem;
}

.plans__more {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
    font-weight: 500;
}

/* A link in a running line sits on its baseline, not on a button's height. */
.plans__more .link,
.integrations__other .link,
.site-footer__bottom .link {
    min-height: 0;
}

/* ---------------------------------------------------------------------------
   Front page: accounting systems

   The logos on plates down the left, and on the right a green card saying what goes
   across: quotes, orders, invoices.
--------------------------------------------------------------------------- */

.integrations__grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 64rem) {
    .integrations__grid {
        grid-template-columns: minmax(0, 1fr) 24rem;
    }
}

.logo-grid {
    display: grid;
    gap: 1.5rem;
    list-style: none;
}

.logo-tile {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 7.75rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background-color: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color var(--t-hover) ease;
}

a.logo-tile:hover {
    border-color: var(--green-text);
}

.logo-tile__logo {
    max-width: min(100%, 12.5rem);
    max-height: 3.5rem;
    object-fit: contain;
}

/* The theme's own drawings of the partner logos, inline so they take the theme's colours:
   the mark green, the wordmark in the ink. */
.logo-tile .logo {
    width: auto;
    max-width: 100%;
    height: auto;
}

.logo__mark {
    fill: var(--green);
}

.logo__ink {
    fill: var(--ink);
}

.logo__on-green {
    fill: var(--on-green);
}

.logo-tile__name {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.sync-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background-color: var(--green);
    color: var(--on-green);
}

.sync-card__list {
    display: grid;
    gap: 0.625rem;
    list-style: none;
}

.sync-card__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.625rem;
    background-color: var(--inverse-bg);
    color: var(--inverse-ink);
    font-weight: 500;
}

.sync-card__list i {
    color: var(--green);
    font-size: 0.9rem;
}

.sync-card__note {
    font-size: 0.875rem;
}

.integrations__other {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
    margin-top: 3rem;
    color: var(--muted);
}

/* ---------------------------------------------------------------------------
   Front page: questions

   The heading and a green "still missing an answer?" card on the left, the questions
   down the right. Each one is a <details>, named into one group, so the browser itself
   keeps a single answer open; the open one lifts into a card.
--------------------------------------------------------------------------- */

.faq__grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 64rem) {
    .faq__grid {
        grid-template-columns: 23.75rem minmax(0, 1fr);
        gap: 5rem;
        align-items: start;
    }

    .faq__intro {
        position: sticky;
        top: calc(var(--header-height) + 2rem);
    }
}

.faq__intro {
    display: grid;
    gap: 1rem;
}

.ask-card {
    display: grid;
    gap: 1rem;
    justify-items: start;
    padding: 1.75rem;
    border-radius: var(--radius-xl);
    background-color: var(--green);
    color: var(--on-green);
}

.faq__list {
    display: grid;
    gap: 0.5rem;
}

.faq__item {
    border: 1px solid transparent;
    border-bottom-color: var(--line);
    border-radius: 0;
    transition: background-color 300ms ease, border-color 300ms ease, border-radius 300ms ease;
}

.faq__item[open] {
    border-color: var(--line);
    border-radius: var(--radius-xl);
    background-color: var(--surface);
}

.faq__question {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    list-style: none;
    cursor: pointer;
}

.faq__item[open] .faq__question {
    padding-top: 1.75rem;
    padding-bottom: 0.875rem;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question > span:first-child {
    flex: 1;
}

.faq__toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-pill);
    color: var(--ink);
    font-size: 0.95rem;
    transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease, color var(--t-hover) ease;
}

.faq__question:hover .faq__toggle {
    border-color: var(--green-text);
    color: var(--green-text);
}

.faq__toggle .fa-minus,
.faq__item[open] .faq__toggle .fa-plus {
    display: none;
}

.faq__item[open] .faq__toggle .fa-minus {
    display: inline;
}

.faq__item[open] .faq__toggle {
    border-color: transparent;
    background-color: var(--green);
    color: var(--on-green);
}

.faq__answer {
    padding: 0 5.75rem 1.75rem 1.75rem;
    color: var(--muted);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
    line-height: 1.5;
}

@media (max-width: 40rem) {
    .faq__question {
        padding-inline: 1.25rem;
        font-size: 1.1875rem;
    }

    .faq__answer {
        padding-inline: 1.25rem;
    }
}

.faq__answer > * + * {
    margin-top: 0.85rem;
}

.faq__answer ul,
.faq__answer ol {
    padding-left: 1.25rem;
}

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

@media (prefers-reduced-motion: no-preference) {
    .faq__item[open] .faq__answer {
        animation: rise 420ms var(--ease-out);
    }
}

/* ---------------------------------------------------------------------------
   Front page: the close
--------------------------------------------------------------------------- */

.closing {
    padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}

.closing__title {
    max-width: 13em;
}

.closing__lead {
    max-width: 35rem;
    margin-top: 1.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.closing__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-top: 2.25rem;
}

/* ---------------------------------------------------------------------------
   Standard pages and prose
--------------------------------------------------------------------------- */

.page-head {
    padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2vw, 4rem);
}

.page-head__title {
    max-width: 20ch;
}

.page-head__lead {
    margin-top: 1.5rem;
}

.page-body {
    padding-bottom: clamp(5rem, 4rem + 4vw, 8rem);
}

.prose {
    max-width: 68ch;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.prose > * + * {
    margin-top: 1.1em;
}

.prose h2 {
    margin-top: 2.2em;
    font-size: clamp(1.45rem, 1.25rem + 0.7vw, 1.85rem);
    letter-spacing: -0.02em;
}

.prose h3 {
    margin-top: 1.8em;
    font-size: 1.25rem;
}

.prose h4 {
    margin-top: 1.6em;
    font-size: 1.0625rem;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
    margin-top: 0.6em;
}

.prose > :first-child {
    margin-top: 0;
}

/* A link in a paragraph is green and medium: it reads as a link without shouting. */
.prose a {
    color: var(--green-text);
    font-weight: 500;
}

.prose a:hover {
    text-decoration-thickness: 0.12em;
}

.prose ul,
.prose ol {
    padding-left: 1.4rem;
}

.prose li + li {
    margin-top: 0.4em;
}

.prose li::marker {
    color: var(--green);
}

.prose ol li::marker {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.prose blockquote {
    padding-left: 1.25rem;
    border-left: 3px solid var(--primary);
    color: var(--muted);
}

.prose hr {
    margin-block: 2.5em;
    border: 0;
    border-top: 1px solid var(--border);
}

.prose img {
    border-radius: var(--radius);
}

.prose code {
    padding: 0.1em 0.35em;
    border-radius: 0.3rem;
    background-color: var(--sunk);
    font-family: var(--font-mono);
    font-size: 0.88em;
}

.prose pre {
    padding: 1rem 1.25rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--sunk);
}

.prose pre code {
    padding: 0;
    background: none;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.prose th,
.prose td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.prose th {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* The CMS editor's own alignment classes. */
.prose .text-center,
.prose .center {
    text-align: center;
}

.prose .text-right {
    text-align: right;
}

.prose img.left {
    float: left;
    max-width: 50%;
    margin: 0.25rem 1.5rem 1rem 0;
}

.prose img.right {
    float: right;
    max-width: 50%;
    margin: 0.25rem 0 1rem 1.5rem;
}

.prose img.center,
.prose img.leftAlone {
    margin-inline: auto;
}

/* ---------------------------------------------------------------------------
   Forms

   Labels above, never floating: the label is what the field is for, and a label
   that moves out of the way as you type is one you can no longer read. Styled by
   element inside a form, so the framework's own forms at /Security need no class
   of ours added to their inputs.
--------------------------------------------------------------------------- */

form .field {
    margin-bottom: 1.35rem;
}

.field__label,
form .field > label:not(.field__check-label),
form .field legend {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--foreground);
    font-size: 0.9rem;
    font-weight: 550;
    line-height: 1.35;
}

form input:where([type="text"], [type="email"], [type="password"], [type="tel"], [type="url"], [type="number"], [type="search"], [type="date"]),
form input.text,
form select,
form textarea {
    display: block;
    width: 100%;
    min-height: 2.875rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background-color: var(--card);
    color: var(--foreground);
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: var(--shadow-hairline);
    transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
    -webkit-appearance: none;
    appearance: none;
}

form textarea {
    min-height: 7rem;
    resize: vertical;
}

form select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23808a85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1rem;
}

form input::placeholder,
form textarea::placeholder {
    color: var(--faint);
}

form input:hover,
form select:hover,
form textarea:hover {
    border-color: color-mix(in oklab, var(--foreground) 60%, var(--border-strong));
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 22%, transparent);
}

form input:disabled,
form select:disabled,
form textarea:disabled {
    background-color: var(--sunk);
    color: var(--faint);
    cursor: not-allowed;
}

/* A field the server sent back. */
form .field.error input,
form .field.error select,
form .field.error textarea,
form .holder-error input,
form .holder-error select {
    border-color: var(--danger);
}

.field__help,
form .field .description,
form .field .right-title {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.field__help i {
    margin-right: 0.3rem;
}

/* Messages. The framework renders `message $MessageType` on the form and on each
   field, with good, bad, required, validation and warning as the types. */
.message {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--sunk);
    color: var(--foreground);
    font-size: 0.9rem;
    line-height: 1.5;
}

.message:empty {
    display: none;
}

.message.good {
    border-color: color-mix(in oklab, var(--primary) 35%, transparent);
    background-color: var(--primary-tint);
}

.message.bad,
.message.error,
.message.required,
.message.validation {
    border-color: color-mix(in oklab, var(--danger) 35%, transparent);
    background-color: var(--danger-tint);
}

.message.warning {
    border-color: color-mix(in oklab, var(--warning) 35%, transparent);
    background-color: var(--warning-tint);
}

.message.notice,
.message.info {
    border-color: color-mix(in oklab, var(--blue) 35%, transparent);
    background-color: var(--blue-tint);
}

/* The same, but under a single field, where a box would be heavier than the field. */
.field__message {
    margin-top: 0.45rem;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 500;
}

.field__message.good {
    color: var(--primary-text);
}

.field__message.warning {
    color: var(--warning);
}

/* A single checkbox with its label beside it. */
.field--check {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem;
}

.field--check .field__help,
.field--check .field__message {
    flex-basis: 100%;
    margin-left: 1.9rem;
}

form input[type="checkbox"],
form input[type="radio"] {
    display: inline-grid;
    place-content: center;
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.1rem 0 0;
    border: 1px solid var(--border-strong);
    border-radius: 0.3rem;
    background-color: var(--card);
    cursor: pointer;
    transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease;
    -webkit-appearance: none;
    appearance: none;
}

form input[type="radio"] {
    border-radius: 50%;
}

form input[type="checkbox"]::before {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    background-color: var(--primary-foreground);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: transform 120ms var(--ease-out);
}

form input[type="radio"]::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--primary-foreground);
    transform: scale(0);
    transition: transform 120ms var(--ease-out);
}

form input[type="checkbox"]:checked,
form input[type="radio"]:checked {
    border-color: var(--primary);
    background-color: var(--primary);
}

form input[type="checkbox"]:checked::before,
form input[type="radio"]:checked::before {
    transform: scale(1);
}

form input[type="checkbox"]:focus-visible,
form input[type="radio"]:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.field__check-label {
    flex: 1;
    min-width: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    cursor: pointer;
}

/* Radio options as selectable cards. The label covers the whole card, which is what
   makes the card clickable without a line of JavaScript. */
.choices {
    display: grid;
    gap: 0.6rem;
}

@media (min-width: 36rem) {
    .choices {
        grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    }
}

.choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background-color: var(--card);
    transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}

.choice:hover {
    border-color: color-mix(in oklab, var(--foreground) 60%, var(--border-strong));
}

.choice:has(input:checked) {
    border-color: var(--primary);
    background-color: color-mix(in oklab, var(--primary-tint) 60%, var(--card));
    box-shadow: 0 0 0 1px var(--primary);
}

.choice:has(input:disabled) {
    opacity: 0.6;
}

.choice__label {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
}

/* Stretched over the whole card. */
.choice__label::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

/* Two fields side by side on wider screens. */
.field-row {
    display: grid;
    gap: 0 1rem;
}

@media (min-width: 36rem) {
    .field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* The address field: the input and the base domain as one box, so the customer can
   see the whole address they are choosing. */
.subdomain {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background-color: var(--card);
    box-shadow: var(--shadow-hairline);
    transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}

.subdomain:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 22%, transparent);
}

form .subdomain input.text,
form .subdomain input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

form .subdomain input:focus {
    box-shadow: none;
}

.subdomain__base {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    border-left: 1px solid var(--border);
    background-color: var(--sunk);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 24rem) {
    .subdomain {
        flex-direction: column;
    }

    .subdomain__base {
        padding-block: 0.4rem;
        border-top: 1px solid var(--border);
        border-left: 0;
    }
}

.field__lock {
    display: flex;
    gap: 0.45rem;
    align-items: baseline;
    color: var(--amber-text);
}

/* The submit row. The framework wraps its actions in .btn-toolbar. */
.btn-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 0.5rem;
}

.btn-toolbar #ForgotPassword {
    margin: 0;
    font-size: 0.9rem;
}

.btn-toolbar #ForgotPassword a {
    color: var(--muted);
    text-decoration: underline;
    text-decoration-color: transparent;
}

.btn-toolbar #ForgotPassword a:hover {
    color: var(--foreground);
    text-decoration-color: currentColor;
}

form .clear {
    display: none;
}

/* The password strength meter the framework leaves an empty div for. */
.passwordstrength:empty {
    display: none;
}

/* ---------------------------------------------------------------------------
   Forms built in the CMS

   userforms — the contact page, and any form an editor builds. Its own stylesheet is
   switched off (app/_config/userforms.yml) and its templates are the theme's, in
   templates/SilverStripe/UserForms, so its fields take everything above by element.
   What is here is only what the module adds that the theme's own forms do not have:
   the error its script writes before the round trip, an "optional" beside a label,
   groups, a file field, headings and text between the fields, steps, and the
   thank-you.
--------------------------------------------------------------------------- */

/* The script's show and hide for a display rule, and what a field set to start
   hidden carries until a rule shows it. */
.userform .hide {
    display: none;
}

.userform-fields > :last-child,
.userform .form-step > :last-child {
    margin-bottom: 0;
}

/* userforms calls each page of a form .form-step, and so does signup for its numbered
   steps (further down), indented under a green disc. Not here: a userforms step has no
   disc, and the indent would only push its fields in from the button under them. */
.userform .form-step {
    margin-bottom: 1.35rem;
    padding-left: 0;
    counter-increment: none;
}

/* After the label, quieter than it: the label is what the field is for. */
.field__optional {
    margin-left: 0.35rem;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 400;
}

/* The error the script finds before the round trip: <span class="message error">
   after the control. Under a field, so the field's own line rather than the boxed
   message a whole form gets. */
.userform .field span.message {
    display: block;
    margin: 0.45rem 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 500;
}

.userform .field input.error,
.userform .field select.error,
.userform .field textarea.error {
    border-color: var(--danger);
}

.userform .field input.error:focus,
.userform .field select.error:focus,
.userform .field textarea.error:focus {
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger) 22%, transparent);
}

/* Radios and checkbox groups are fieldsets; a fieldset has a border and padding
   of its own to take off — but keeps the gap every field has under it. */
.userform fieldset {
    min-width: 0;
    margin: 0 0 1.35rem;
    padding: 0;
    border: 0;
}

.userform fieldset.field > legend {
    padding: 0;
}

/* A single checkbox: the theme's check row, inside the column the script needs. */
.field--check.field--userform {
    display: block;
}

.field--check.field--userform .middleColumn {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem;
}

.field--check.field--userform .middleColumn span.message,
.field--check.field--userform .field__help,
.field--check.field--userform .field__message {
    flex-basis: 100%;
    margin-left: 1.9rem;
}

/* A file: the control drawn as a field, its button as a small secondary one. */
form input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.5rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background-color: var(--card);
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
}

form input[type="file"]::file-selector-button {
    margin-right: 0.85rem;
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background-color: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--t-hover) ease, color var(--t-hover) ease;
}

form input[type="file"]:hover::file-selector-button {
    border-color: var(--green-text);
    color: var(--green-text);
}

form input[type="file"]:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* A heading between the fields. Whatever level the editor chose, it is a step
   inside a form, not a section of the page. */
.userform .FormHeading {
    margin: 2rem 0 1rem;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.userform .userform-fields > .FormHeading:first-child,
.userform .form-step > .FormHeading:first-child {
    margin-top: 0;
}

/* Text between the fields, written in the CMS editor. */
.field--literal__body {
    max-width: none;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* A group: a hairline and its legend in the mono of an eyebrow. */
.field-group {
    margin: 0 0 1.35rem;
}

fieldset.field-group {
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.field-group__legend {
    float: left;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.field-group__fields {
    clear: both;
}

/* Clear is a reset button: the outline, never the green — it is not the thing to press. */
.btn-toolbar .action[type="reset"] {
    border-color: var(--line-strong);
    background-color: transparent;
    color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
    .btn-toolbar .action[type="reset"]:hover {
        border-color: var(--green-text);
        background-color: transparent;
        color: var(--green-text);
    }
}

/* A form of several steps: "Trin 2 af 3", a bar, a numbered button per step. */
.userform-progress {
    margin-bottom: 1.75rem;
}

.userform-progress__count {
    margin-bottom: 0.6rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.userform-progress__track {
    position: relative;
    height: 0.375rem;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background-color: var(--line);
}

.userform-progress__bar {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background-color: var(--green);
    transition: width 300ms var(--ease-out);
}

.userform-progress__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
    list-style: none;
}

.userform-progress .step-button-jump {
    display: inline-grid;
    place-items: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background-color: var(--card);
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.userform-progress .step-button-jump:disabled {
    opacity: 0.5;
    cursor: default;
}

.userform-progress .viewed .step-button-jump {
    border-color: var(--green-text);
    color: var(--green-text);
}

.userform-progress .current .step-button-jump {
    border-color: var(--green);
    background-color: var(--green);
    color: var(--on-green);
    opacity: 1;
}

.userform-progress__title {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.userform-progress__title:empty {
    display: none;
}

.step-navigation .step-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    list-style: none;
}

.step-navigation .btn-toolbar {
    margin-top: 0;
}

/* What the script lists when an earlier step still has a mistake in it. */
.userform .error-container {
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
    border: 1px solid color-mix(in oklab, var(--danger) 35%, transparent);
    border-radius: var(--radius-sm);
    background-color: var(--danger-tint);
    font-size: 0.9rem;
}

.userform .error-container h4 {
    margin-bottom: 0.35rem;
    font-size: 0.9375rem;
}

.userform .error-container ul {
    padding-left: 1.1rem;
}

.userform .error-container a {
    color: var(--danger-text);
    font-weight: 500;
}

/* The honeypot: present for a bot, nowhere for a person — see HoneypotField_holder.ss. */
.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* The thank-you, in the form's place. userforms sends the browser to #uff, so it
   lands clear of the sticky header rather than under it. */
.userform-done {
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
    display: grid;
    gap: 1.25rem;
    justify-items: start;
}

.userform-done__icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-pill);
    background-color: var(--green);
    color: var(--on-green);
    font-size: 1.125rem;
}

.userform-done__message {
    font-size: 1.0625rem;
    line-height: 1.6;
}

.userform-done__message > * + * {
    margin-top: 0.8em;
}

.userform-done__message h2,
.userform-done__message h3 {
    font-size: 1.75rem;
    font-variation-settings: "opsz" 14;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.userform-done__message a {
    color: var(--green-text);
    font-weight: 500;
}

/* The form page's lead is the editor's content, so paragraphs rather than one line. */
.userform-page__lead {
    max-width: 46ch;
    font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
    line-height: 1.5;
}

.userform-page__lead > * + * {
    margin-top: 0.75em;
}

.userform-page__lead a {
    color: inherit;
    text-decoration: underline;
}

.auth__note a {
    color: var(--green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    overflow-wrap: anywhere;
}

/* A contact form is taller than a login, and starts at the top rather than floating
   in the middle of the panel beside it. */
.userform-page .auth__panel {
    align-self: start;
    padding-block: clamp(0.5rem, 2vw, 2.5rem);
}

/* ---------------------------------------------------------------------------
   Waiting on a submit — see auth.js
--------------------------------------------------------------------------- */

.btn-toolbar .action.is-busy {
    opacity: 0.6;
    cursor: progress;
}

.auth__busy {
    display: flex;
    flex-basis: 100%;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.auth__spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------------------------------------------------------------------------
   Login, password and message pages

   A green panel on the left, running nearly to the window's edge, saying where logging
   in leads; the form on the right, on the page's own ground. Stacked on a narrow screen.
   The one-card pages — logging out, the messages from /login, the installation chooser —
   are a single card in the middle of the frame instead.
--------------------------------------------------------------------------- */

.auth {
    padding-block: var(--panel-inset) clamp(3rem, 2rem + 4vw, 6rem);
}

.auth__grid {
    display: grid;
    gap: 2.5rem;
    padding-inline: var(--panel-inset);
}

@media (min-width: 60rem) {
    .auth__grid {
        grid-template-columns: minmax(0, 38.75rem) minmax(0, 1fr);
        gap: 3rem;
        min-height: calc(100svh - var(--header-height) - 2 * var(--panel-inset));
    }
}

.auth__copy {
    display: flex;
    flex-direction: column;
    padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
    border-radius: var(--radius-panel);
    background-color: var(--green);
    color: var(--on-green);
}

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

.auth__title {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14;
    font-size: clamp(2.5rem, 1.85rem + 2.6vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.auth__lead {
    margin-top: 1.5rem;
}

.auth__copy .auth__lead {
    color: var(--on-green);
}

/* Where logging in leads, at the foot of the panel. */
.auth__note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    background-color: var(--inverse-bg);
    color: var(--inverse-ink);
    font-size: 0.875rem;
    line-height: 1.45;
}

@media (min-width: 60rem) {
    .auth__note {
        margin-top: auto;
    }

    .auth__lead + .auth__note,
    .auth__lead + .auth__list {
        margin-top: auto;
    }
}

.auth__note i {
    margin-top: 0.2rem;
    color: var(--green);
}

.auth__panel {
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 33rem;
    /* The panel beside it runs nearer the edge than the frame; the form keeps the frame's
       gutter. */
    padding-inline: max(0px, calc(var(--gutter) - var(--panel-inset)));
}

/* On the page's own ground beside the panel; a card where it stands alone. */
.auth__card {
    padding: 0;
}

.auth__grid:not(.auth__grid--single) .auth__card {
    border: 0;
    border-radius: 0;
    background: none;
}

.auth__grid--single {
    max-width: 32rem;
    margin-inline: auto;
    padding-inline: 0;
}

@media (min-width: 60rem) {
    .auth__grid--single {
        grid-template-columns: 1fr;
        min-height: 0;
    }
}

.auth__grid--single .auth__card {
    padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
}

.auth__card-title {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-variation-settings: "opsz" 14;
    letter-spacing: -0.02em;
}

.auth__content {
    margin-bottom: 1.25rem;
    color: var(--muted);
}

.auth__content > * + * {
    margin-top: 0.75rem;
}

.auth__content a {
    color: var(--green-text);
    font-weight: 500;
}

.auth__card .btn-toolbar .action {
    width: 100%;
    min-height: 3.25rem;
    font-size: 1.0625rem;
}

.auth__card .btn-toolbar #ForgotPassword {
    flex-basis: 100%;
    text-align: center;
}

.auth__card #ForgotPassword a {
    color: var(--green-text);
    font-weight: 600;
}

.auth__list {
    margin-bottom: 1.75rem;
}

.auth__alt {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.875rem;
    text-align: center;
}

.auth__alt a {
    margin-left: 0.5rem;
    color: var(--green-text);
    font-weight: 600;
    text-decoration: none;
}

.auth__alt a:hover {
    text-decoration: underline;
}

.auth__grid--single .auth__alt {
    border-top: 0;
    padding-top: 0;
}

/* /login's question for somebody with more than one installation (LoginChooser.ss): one
   full-width row per installation, the company on top and its address under it, so two
   companies with similar names are still told apart by where they live. */
.auth__choices {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding: 0;
    list-style: none;
}

.auth__choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card);
    color: var(--foreground);
    text-decoration: none;
    transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease;
}

a.auth__choice:hover,
a.auth__choice:focus-visible {
    border-color: var(--primary);
    background-color: var(--primary-tint);
}

.auth__choice-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.auth__choice-title {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.auth__choice-domain {
    color: var(--muted);
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.auth__choice i {
    color: var(--primary-text);
}

.auth__choice--disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
   Signup
--------------------------------------------------------------------------- */

.signup {
    padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(5rem, 4rem + 4vw, 8rem);
}

.signup__head {
    margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.signup__grid {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 64rem) {
    .signup__grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
        gap: 3rem;
    }

    .signup__aside {
        position: sticky;
        top: calc(var(--header-height) + 1.5rem);
        order: 2;
    }
}

/* One numbered step. The number is a CSS counter, so adding or reordering steps
   cannot leave it wrong. */
.signup__grid form > fieldset {
    counter-reset: signup-step;
}

/* On the page's ground rather than in a card: a green numbered disc, the step's title
   beside it, and the fields indented under the title. */
.form-step {
    margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    counter-increment: signup-step;
}

.form-step__head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

@media (min-width: 40rem) {
    .form-step {
        padding-left: 3.25rem;
    }

    .form-step__head {
        margin-left: -3.25rem;
    }
}

.form-step__number {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-pill);
    background-color: var(--green);
    color: var(--on-green);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
}

.form-step__number::before {
    content: counter(signup-step);
}

.form-step__title {
    font-size: 1.375rem;
    font-variation-settings: "opsz" 14;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.form-step__desc {
    margin-top: 0.125rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.form-step .field:last-child {
    margin-bottom: 0;
}

.signup__grid form > .btn-toolbar {
    margin-top: 1.5rem;
}

.signup__grid form > .btn-toolbar .action {
    min-height: 3.25rem;
    padding-inline: 2rem;
    font-size: 1rem;
}

/* The order summary. */
.summary {
    padding: 1.75rem;
}

.summary .eyebrow {
    color: var(--muted);
}

.summary__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.summary__name {
    font-size: 1.75rem;
    font-variation-settings: "opsz" 14;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.summary__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.625rem;
    margin-top: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.summary__amount {
    color: var(--green-text);
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.summary__period {
    color: var(--muted);
    font-size: 0.875rem;
}

.summary__list {
    margin-top: 1.5rem;
}

.summary__change {
    margin-top: 1.25rem;
}

/* In place of the form, for a plan that cannot be bought yet. */
.signup__closed {
    padding: clamp(1.35rem, 1rem + 1.5vw, 2rem);
}

.summary__note {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding-inline: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.summary__note i {
    margin-top: 0.25rem;
    color: var(--primary-text);
}

/* ---------------------------------------------------------------------------
   The manual
--------------------------------------------------------------------------- */

.docs-intro {
    max-width: 58ch;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 1.125rem;
}

.docs-intro > * + * {
    margin-top: 0.75rem;
}

.docs-contents__head {
    margin-bottom: 2rem;
}

.docs-contents__title {
    font-size: 1.5rem;
}

.docs-contents__lead {
    margin-top: 0.5rem;
}

.docs-contents__list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
}

@media (min-width: 48rem) {
    .docs-contents__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.chapter {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card);
    transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}

.chapter:hover {
    border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
    box-shadow: var(--shadow-card);
}

.chapter__head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.35rem 1.5rem;
    color: inherit;
    text-decoration: none;
}

.chapter__number {
    flex: none;
    min-width: 1.75rem;
    padding-top: 0.15rem;
    color: var(--green-text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.chapter__text {
    display: grid;
    flex: 1;
    gap: 0.3rem;
}

.chapter__title {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.chapter__icon {
    color: var(--green-text);
    font-size: 0.95rem;
}

.chapter__summary {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.chapter__arrow {
    flex: none;
    padding-top: 0.25rem;
    color: var(--faint);
    font-size: 0.8rem;
    transition: transform var(--t-hover) var(--ease-out), color var(--t-hover) ease;
}

.chapter__head:hover .chapter__arrow {
    color: var(--primary-text);
    transform: translateX(3px);
}

.chapter__articles {
    margin: 0 1.5rem 1.25rem 4.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    list-style: none;
}

.chapter__articles a {
    display: block;
    padding: 0.35rem 0;
    color: var(--foreground);
    font-size: 0.9375rem;
    text-decoration: none;
}

.chapter__articles a:hover .chapter__article-title {
    text-decoration: underline;
}

.chapter__article-summary {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}

.docs-contents__empty {
    color: var(--muted);
}

/* A page of the manual: the manual on the left, the page in the middle, and on the
   widest screens the page's own headings on the right. */
.docs-layout {
    display: grid;
    gap: 2.5rem;
    padding-bottom: clamp(5rem, 4rem + 4vw, 8rem);
}

@media (min-width: 64rem) {
    .docs-layout {
        grid-template-columns: 15rem minmax(0, 1fr);
        gap: 3.5rem;
        align-items: start;
    }
}

@media (min-width: 80rem) {
    .docs-layout--toc {
        grid-template-columns: 15rem minmax(0, 1fr) 13rem;
    }
}

.docs-nav {
    font-size: 0.9375rem;
}

@media (min-width: 64rem) {
    .docs-nav,
    .docs-toc {
        position: sticky;
        top: calc(var(--header-height) + 1.5rem);
        max-height: calc(100vh - var(--header-height) - 3rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }
}

/* Under the wide layout the manual's contents fold into one <details>, so the
   article is not pushed a screen down by a dozen links. */
.docs-nav__fold {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card);
}

.docs-nav__summary {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.85rem 1rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.docs-nav__summary::-webkit-details-marker {
    display: none;
}

.docs-nav__summary i:last-child {
    margin-left: auto;
    color: var(--faint);
    font-size: 0.7rem;
    transition: transform var(--t-hover) var(--ease-out);
}

.docs-nav__fold[open] .docs-nav__summary i:last-child {
    transform: rotate(180deg);
}

.docs-nav__body {
    padding: 0 1rem 1rem;
}

@media (min-width: 64rem) {
    .docs-nav__fold {
        border: 0;
        background: none;
    }

    .docs-nav__summary {
        display: none;
    }

    .docs-nav__body {
        padding: 0;
    }

}

.docs-nav__heading {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.docs-nav__heading:hover {
    color: var(--foreground);
}

.docs-nav__chapters,
.docs-nav__articles {
    display: grid;
    gap: 0.1rem;
    list-style: none;
}

.docs-nav__articles {
    margin: 0.15rem 0 0.5rem 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--border);
}

.docs-nav__link {
    display: block;
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    color: var(--muted);
    line-height: 1.35;
    text-decoration: none;
    transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.docs-nav__link:hover {
    background-color: color-mix(in oklab, var(--foreground) 5%, transparent);
    color: var(--foreground);
}

.docs-nav__link[aria-current] {
    background-color: var(--green-tint);
    box-shadow: inset 3px 0 0 var(--green);
    color: var(--ink);
    font-weight: 500;
}

.docs-nav__chapter--open > .docs-nav__link:not([aria-current]) {
    color: var(--foreground);
    font-weight: 500;
}

.docs-main {
    min-width: 0;
}

.docs-toc {
    font-size: 0.875rem;
}

.docs-toc__heading {
    margin-bottom: 0.85rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-toc__list {
    display: grid;
    gap: 0.1rem;
    border-left: 1px solid var(--border);
    list-style: none;
}

.docs-toc__list a {
    display: block;
    margin-left: -1px;
    padding: 0.3rem 0 0.3rem 0.9rem;
    border-left: 2px solid transparent;
    color: var(--muted);
    line-height: 1.4;
    text-decoration: none;
    transition: color var(--t-hover) ease, border-color var(--t-hover) ease;
}

.docs-toc__list a:hover {
    color: var(--foreground);
}

.docs-toc__list a[aria-current] {
    border-left-color: var(--blue);
    color: var(--foreground);
    font-weight: 500;
}

/* On screens without the third column, the page's contents sits above the body as a
   compact card. */
.docs-toc--inline {
    margin-bottom: 2.5rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card);
}

.docs-toc--inline .docs-toc__list {
    border-left: 0;
}

.docs-toc--inline .docs-toc__list a {
    padding-left: 0;
    border-left: 0;
}

@media (min-width: 80rem) {
    .docs-toc--inline {
        display: none;
    }
}

.docs-toc--side {
    display: none;
}

@media (min-width: 80rem) {
    .docs-toc--side {
        display: block;
    }
}

.docs-body h2 {
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.docs-children {
    margin-top: 3.5rem;
}

.docs-children__heading {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.docs-children__list {
    display: grid;
    gap: 0.6rem;
    list-style: none;
}

@media (min-width: 40rem) {
    .docs-children__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.docs-children__item {
    display: grid;
    gap: 0.3rem;
    height: 100%;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card);
    color: inherit;
    text-decoration: none;
    transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}

.docs-children__item:hover {
    border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
    box-shadow: var(--shadow-card);
}

.docs-children__title {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    font-weight: 600;
}

.docs-children__icon {
    color: var(--green-text);
    font-size: 0.85rem;
}

.docs-children__summary {
    color: var(--muted);
    font-size: 0.9rem;
}

.docs-pager {
    display: grid;
    gap: 0.75rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

@media (min-width: 40rem) {
    .docs-pager {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.docs-pager__link {
    display: grid;
    gap: 0.3rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card);
    color: inherit;
    text-decoration: none;
    transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}

.docs-pager__link:hover {
    border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
    box-shadow: var(--shadow-card);
}

.docs-pager__link--next {
    text-align: right;
}

.docs-pager__label {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.docs-pager__label i {
    font-size: 0.7rem;
}

.docs-pager__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 650;
}

/* ---------------------------------------------------------------------------
   Thanks, after paying
--------------------------------------------------------------------------- */

.thanks__address {
    margin-block: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--sunk);
}

.thanks__address-label {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.thanks__address-value {
    margin-top: 0.25rem;
    font-family: var(--font-mono);
    font-size: 1.0625rem;
    font-weight: 600;
    word-break: break-all;
}

.thanks__body > * + * {
    margin-top: 1rem;
}

.thanks__body .button {
    margin-top: 1.5rem;
}

/* ---------------------------------------------------------------------------
   The deployment status page

   The colour of the whole page follows the state: grey while waiting, blue while
   building, green when done, amber when stopped. --deploy-accent carries it into the
   badge and the light behind the scene.
--------------------------------------------------------------------------- */

.deploy {
    --deploy-accent: var(--faint);
    --deploy-progress: 0;
    padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(5rem, 4rem + 4vw, 8rem);
}

.deploy[data-state="running"] {
    --deploy-accent: var(--blue);
}

.deploy[data-state="ready"] {
    --deploy-accent: var(--primary);
}

.deploy[data-state="failed"] {
    --deploy-accent: var(--amber);
}

.deploy__grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 64rem) {
    .deploy__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 4rem;
    }

    .deploy__intro {
        position: sticky;
        top: calc(var(--header-height) + 3rem);
        padding-top: 2rem;
    }
}

.deploy__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.deploy__lead {
    margin-top: 1.25rem;
}

.deploy__note {
    max-width: 52ch;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9375rem;
}

.deploy__note > * + * {
    margin-top: 0.75rem;
}

.deploy__note a {
    color: var(--primary-text);
}

.deploy__noscript {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.deploy-card {
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

.deploy-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.deploy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.8rem 0.35rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background-color: var(--sunk);
    font-size: 0.82rem;
    font-weight: 600;
}

.deploy-badge__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background-color: var(--deploy-accent);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--deploy-accent) 20%, transparent);
}

.deploy[data-state="running"] .deploy-badge__dot,
.deploy[data-state="queued"] .deploy-badge__dot,
.deploy[data-state="pending"] .deploy-badge__dot {
    animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
    50% {
        opacity: 0.35;
    }
}

/* A ring leaving the marker, once a beat: something is happening here. */
@keyframes step-ping {
    70%,
    100% {
        box-shadow: 0 0 0 8px color-mix(in oklab, var(--blue) 0%, transparent);
    }
}

.deploy-card__count {
    display: flex;
    gap: 0.65rem;
    align-items: baseline;
    color: var(--muted);
    font-size: 0.875rem;
}

.deploy-card__count strong {
    color: var(--foreground);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.deploy-bar {
    height: 0.65rem;
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--sunk);
    box-shadow: inset 0 0 0 1px var(--border);
}

.deploy-bar__fill {
    position: relative;
    width: calc(var(--deploy-progress) * 1%);
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background-image: linear-gradient(90deg, var(--primary), var(--blue));
    transition: width 600ms var(--ease-out);
}

.deploy[data-state="failed"] .deploy-bar__fill {
    background-image: none;
    background-color: var(--amber);
}

.deploy-bar__shine {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(100deg, transparent 15%, oklch(1 0 0 / 0.45) 48%, transparent 82%);
    transform: translateX(-120%);
}

.deploy[data-state="running"] .deploy-bar__shine {
    animation: bar-shine 2.2s ease-in-out infinite;
}

.deploy[data-state="queued"] .deploy-bar__fill,
.deploy[data-state="pending"] .deploy-bar__fill {
    width: 38%;
    background-image: linear-gradient(90deg, transparent, color-mix(in oklab, var(--foreground) 22%, transparent), transparent);
    animation: bar-waiting 1.8s ease-in-out infinite;
}

@keyframes bar-shine {
    55%,
    100% {
        transform: translateX(120%);
    }
}

@keyframes bar-waiting {
    from {
        transform: translateX(-115%);
    }

    to {
        transform: translateX(300%);
    }
}

.deploy-card__steps-title {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deploy-steps {
    display: grid;
    gap: 0 1.5rem;
    list-style: none;
}

@media (min-width: 36rem) {
    .deploy-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.deploy-step {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    min-width: 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    transition: opacity 300ms ease;
}

.deploy-step[data-step-state="waiting"] {
    opacity: 0.55;
}

.deploy-step__marker {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    background-color: var(--sunk);
    color: var(--muted);
    font-size: 0.8rem;
    transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}

.deploy-step__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background-color: currentColor;
}

.deploy-step[data-step-state="done"] .deploy-step__marker {
    border-color: transparent;
    background-color: var(--primary);
    color: var(--primary-foreground);
    animation: build-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* A done step trades its icon for a tick. */
.deploy-step[data-step-state="done"] .deploy-step__marker > * {
    visibility: hidden;
}

.deploy-step[data-step-state="done"] .deploy-step__marker::after {
    content: "";
    position: absolute;
    width: 0.8rem;
    height: 0.8rem;
    background-color: currentColor;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.deploy-step[data-step-state="active"] .deploy-step__marker {
    border-color: color-mix(in oklab, var(--blue) 55%, transparent);
    background-color: var(--blue-tint);
    color: var(--blue-text);
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--blue) 40%, transparent);
    animation: step-ping 1.6s ease-out infinite;
}

.deploy-step[data-step-state="active"] .deploy-step__title {
    color: var(--blue-text);
}

.deploy-step[data-step-state="stopped"] .deploy-step__marker {
    border-color: color-mix(in oklab, var(--amber) 50%, transparent);
    background-color: var(--amber-tint);
    color: var(--amber-text);
}

.deploy-step__body {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.deploy-step__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
}

.deploy-step__description {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.deploy-card__address {
    display: grid;
    gap: 0.2rem;
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--sunk);
}

.deploy-card__address-label {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deploy-card__address-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    word-break: break-all;
}

/* Rendered in every state and uncovered in the one where it works. A button drawn in
   by a script is a button that is missing when the script fails. */
.deploy-card__actions {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.deploy-card__cta,
.deploy-card__login {
    display: none;
}

.deploy[data-state="ready"] .deploy-card__cta,
.deploy[data-state="unknown"] .deploy-card__login {
    display: inline-flex;
}

.deploy[data-state="unknown"] .deploy-card__progress,
.deploy[data-state="unknown"] .deploy-card__address {
    display: none;
}

.deploy[data-state="unknown"] .deploy-card__actions {
    margin-top: 0;
}

/* Logged out: no picture of a build nobody may see, just why, and the way in. */
.deploy-card__locked {
    display: none;
    margin-bottom: 1.25rem;
    color: var(--muted);
}

.deploy[data-state="unknown"] .deploy-card__locked {
    display: block;
}

.deploy[data-state="unknown"] .deploy-scene {
    display: none;
}

/* The scene: the customer's Better Pricing putting itself together, one part per
   step. See Includes/DeployScene.ss. */
.deploy-scene {
    margin: -0.25rem -0.25rem 1.25rem;
    padding: clamp(0.9rem, 0.6rem + 1.2vw, 1.5rem);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        radial-gradient(70% 90% at 30% 100%, color-mix(in oklab, var(--deploy-accent) 14%, transparent), transparent 70%),
        radial-gradient(50% 70% at 90% 0%, color-mix(in oklab, var(--blue) 10%, transparent), transparent 70%),
        var(--sunk);
}

.build {
    --cell: 0.62rem;
    position: relative;
    font-family: var(--font-mono);
}

.build__window {
    position: relative;
    overflow: hidden;
    border: 1px dashed var(--border-strong);
    border-radius: 0.6rem;
    background-color: color-mix(in oklab, var(--card) 40%, transparent);
    transition: border-color 600ms ease, background-color 600ms ease, box-shadow 600ms ease, transform 600ms var(--ease-out);
}

.build__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--elevated);
}

.build__dots {
    display: inline-flex;
    gap: 0.3rem;
}

.build__dots span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background-color: var(--border-strong);
    opacity: 0.6;
}

.build__address {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 1 17rem;
    min-width: 0;
    margin-inline: auto;
    padding: 0.2rem 0.65rem;
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--sunk);
    color: var(--muted);
    font-size: var(--cell);
}

.build__lock {
    flex: none;
    color: var(--faint);
    font-size: 0.85em;
    transition: color 400ms ease, transform 400ms var(--ease-out);
}

.build__domain {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.build__domain--blank {
    flex: 1;
    height: 0.5em;
    border-radius: 999px;
    background-color: var(--border);
}

.build__app {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    min-height: 9.5rem;
}

.build__nav {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.7rem 0.6rem;
    overflow: hidden;
    border-right: 1px solid var(--border);
    background-color: color-mix(in oklab, var(--sunk) 70%, transparent);
}

.build__brand {
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.2rem;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    background-color: var(--card);
}

.build__brand img {
    width: 0.9rem;
    height: 0.9rem;
}

.build__nav-line {
    height: 0.35rem;
    border-radius: 999px;
    background-color: var(--border);
}

.build__nav-line--on {
    background-color: var(--primary);
    opacity: 0.75;
}

.build__nav-line--short {
    width: 60%;
}

.build__main {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.7rem 0.8rem 0.8rem;
}

.build__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.build__title {
    width: 38%;
    height: 0.5rem;
    border-radius: 999px;
    background-color: color-mix(in oklab, var(--foreground) 22%, transparent);
}

.build__action {
    width: 2.2rem;
    height: 0.9rem;
    margin-left: auto;
    border-radius: 0.2rem;
    background-color: var(--primary);
    opacity: 0.8;
}

.build__avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    overflow: hidden;
    border-radius: 50%;
    background-color: var(--border);
    color: var(--card);
    font-size: 0.55rem;
    transition: background-color 400ms ease, color 400ms ease;
}

.build__table {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
    overflow: hidden;
    border-radius: 0.3rem;
}

.build__cell {
    display: grid;
    place-items: center;
    min-width: 0;
    height: 1.35rem;
    overflow: hidden;
    border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent);
    border-radius: 0.2rem;
    background-color: var(--card);
    color: var(--foreground);
    font-size: var(--cell);
    font-variant-numeric: tabular-nums;
}

.build__cell--size {
    border-color: transparent;
    background-color: var(--blue-tint);
    color: var(--blue-text);
}

.build__cell--corner {
    border-color: transparent;
    background: none;
}

/* Ready and stopped, pinned to the window's corner. */
.build__badge {
    position: absolute;
    top: -0.55rem;
    right: -0.55rem;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 3px solid var(--sunk);
    border-radius: 50%;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0.4);
}

.build__badge--ready {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.build__badge--stopped {
    background-color: var(--amber);
    color: oklch(0.25 0.05 70);
}

/* Layers. Every part of the window starts as a ghost of itself. */
.build__nav,
.build__address,
.build__table,
.build__avatar {
    opacity: 0.32;
    filter: saturate(0);
    transition: opacity 600ms ease, filter 600ms ease, box-shadow 400ms ease;
}

/* Being worked on: present, in blue, with light passing over it. */
.deploy:has([data-step="composer"][data-step-state="active"]) .build__nav,
.deploy:has([data-step="env"][data-step-state="active"]) .build__address,
.deploy:has([data-step="build"][data-step-state="active"]) .build__table,
.deploy:has([data-step="user"][data-step-state="active"]) .build__avatar {
    opacity: 1;
    filter: none;
    box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px color-mix(in oklab, var(--blue) 18%, transparent);
}

.deploy:has([data-step="composer"][data-step-state="active"]) .build__nav::after,
.deploy:has([data-step="env"][data-step-state="active"]) .build__address::after,
.deploy:has([data-step="build"][data-step-state="active"]) .build__table::after,
.deploy:has([data-step="user"][data-step-state="active"]) .build__avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, color-mix(in oklab, var(--blue) 30%, transparent) 50%, transparent 80%);
    transform: translateX(-100%);
    animation: build-shimmer 1.4s ease-in-out infinite;
}

.deploy:has([data-step="build"][data-step-state="active"]) .build__cell:not(.build__cell--size, .build__cell--corner) {
    color: transparent;
}

/* Done: settled, in colour. */
.deploy:has([data-step="composer"][data-step-state="done"]) .build__nav,
.deploy:has([data-step="env"][data-step-state="done"]) .build__address,
.deploy:has([data-step="build"][data-step-state="done"]) .build__table,
.deploy:has([data-step="user"][data-step-state="done"]) .build__avatar,
.deploy[data-state="ready"] .build__nav,
.deploy[data-state="ready"] .build__address,
.deploy[data-state="ready"] .build__table,
.deploy[data-state="ready"] .build__avatar,
.deploy[data-state="unknown"] .build__nav,
.deploy[data-state="unknown"] .build__address,
.deploy[data-state="unknown"] .build__table,
.deploy[data-state="unknown"] .build__avatar {
    opacity: 1;
    filter: none;
}

/* The prices arrive cell by cell as the database step finishes. */
.deploy:has([data-step="build"][data-step-state="done"]) .build__cell,
.deploy[data-state="ready"] .build__cell {
    animation: build-cell 420ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 55ms);
}

.deploy:has([data-step="user"][data-step-state="done"]) .build__avatar,
.deploy[data-state="ready"] .build__avatar {
    background-color: var(--primary);
    color: var(--primary-foreground);
    animation: build-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* The window itself is the clone: drawn in dashes until there is a copy to stand in. */
.deploy:has([data-step="clone"][data-step-state="active"]) .build__window {
    border-color: var(--blue);
    animation: build-breathe 1.6s ease-in-out infinite;
}

.deploy:has([data-step="clone"][data-step-state="done"]) .build__window,
.deploy[data-state="ready"] .build__window,
.deploy[data-state="unknown"] .build__window {
    border-style: solid;
    border-color: var(--border);
    background-color: var(--card);
    box-shadow: var(--shadow-card);
}

/* The certificate: the lock turns green, the way a browser's does. */
.deploy:has([data-step="ssl"][data-step-state="active"]) .build__lock {
    color: var(--blue);
    animation: build-blink 1s ease-in-out infinite;
}

.deploy:has([data-step="ssl"][data-step-state="done"]) .build__lock,
.deploy[data-state="ready"] .build__lock {
    color: var(--primary-text);
    animation: build-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Stopped: the part that stopped goes amber, and so does the corner. */
.deploy:has([data-step="clone"][data-step-state="stopped"]) .build__window,
.deploy:has([data-step="composer"][data-step-state="stopped"]) .build__nav,
.deploy:has([data-step="env"][data-step-state="stopped"]) .build__address,
.deploy:has([data-step="build"][data-step-state="stopped"]) .build__table,
.deploy:has([data-step="ssl"][data-step-state="stopped"]) .build__address,
.deploy:has([data-step="user"][data-step-state="stopped"]) .build__avatar {
    opacity: 1;
    filter: none;
    box-shadow: 0 0 0 1px var(--amber), 0 0 0 4px color-mix(in oklab, var(--amber) 20%, transparent);
}

.deploy[data-state="failed"] .build__badge--stopped {
    opacity: 1;
    transform: none;
    transition: opacity 300ms ease, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ready: the window lifts and the corner gets its tick. */
.deploy[data-state="ready"] .build__window {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card), 0 18px 40px -18px color-mix(in oklab, var(--primary) 55%, transparent);
}

.deploy[data-state="ready"] .build__badge--ready {
    animation: build-pop 600ms 500ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Waiting to start: the outline of a window, breathing. */
.deploy[data-state="queued"] .build__window,
.deploy[data-state="pending"] .build__window {
    animation: build-breathe 2.4s ease-in-out infinite;
}

/* Nothing to show yet but the way in: the finished picture, quietly. */
.deploy[data-state="unknown"] .build {
    opacity: 0.6;
}

@keyframes build-shimmer {
    to {
        transform: translateX(100%);
    }
}

@keyframes build-breathe {
    50% {
        opacity: 0.6;
    }
}

@keyframes build-blink {
    50% {
        opacity: 0.35;
    }
}

@keyframes build-cell {
    from {
        opacity: 0;
        transform: translateY(4px) scale(0.92);
    }
}

@keyframes build-pop {
    from {
        opacity: 0;
        transform: scale(0.4);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------------------
   Reduced motion
--------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Without the pop, the tick still has to arrive. */
    .deploy[data-state="ready"] .build__badge--ready {
        opacity: 1;
        transform: none;
    }

    .build [data-layer]::after {
        display: none;
    }

    .deploy[data-state="queued"] .deploy-bar__fill,
    .deploy[data-state="pending"] .deploy-bar__fill {
        width: 100%;
        transform: none;
        opacity: 0.35;
    }
}

/* ---------------------------------------------------------------------------
   Print
--------------------------------------------------------------------------- */

@media print {
    .site-header,
    .site-footer,
    .bloom,
    .docs-nav,
    .docs-toc,
    .docs-pager {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}
