/* ---------------------------------------------------------------------------
   The product's own site (the Site context, templates/site/).

   Loaded after app.css, whose components and utilities the site's forms and
   cards still use. Everything here is the site's own: classes prefixed site-,
   day-, demo-, snap- and receipt-, so nothing meets the admin's or the
   register's names; element defaults in the base layer and classes in the
   components layer, so Tailwind's utilities still win where a template uses
   them.

   The front page is one day at the register: each moment wears the light of
   its hour (the --bg of a .day-moment), the intro prints a receipt, and the
   middle of the day is the register itself, live (demo-register and day
   controllers in assets/site/).
   --------------------------------------------------------------------------- */

/* Host Grotesk is declared in app.css, which every page of the site loads first. */

@font-face {
    font-family: 'Spline Sans Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/spline-sans-mono-latin-ext-SxkTme4.woff2") format('woff2');
    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: 'Spline Sans Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/spline-sans-mono-latin-kTeWgQj.woff2") format('woff2');
    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;
}

/* The site is light whatever the OS says: its colours are the hours of a day,
   the night is one of them. The admin's tokens are set to their light values
   (app.css flips them for a dark OS, unlayered, so this is unlayered too and
   wins by specificity) and its accent becomes the site's ink, so a form's
   button and a link read as the site's own. */
html.site-root {
    color-scheme: light;

    --brand-green: #2f6b3a;
    --pk-canvas: #f2f4f2;
    --pk-surface: #ffffff;
    --pk-raised: #f7f8f7;
    --pk-line: #dde3e7;
    --pk-line-strong: #c3ccd3;
    --pk-ink: #13212c;
    --pk-muted: #4f5d68;
    --pk-faint: #7d8a94;
    --pk-accent: #13212c;
    --pk-accent-soft: #e6eef3;
    --pk-accent-fill: #13212c;
    --pk-accent-fill-hover: #24394a;
    --pk-accent-ink: #ffffff;
    --pk-ok-bg: #e8f6ee;
    --pk-ok-line: #b7e3c9;
    --pk-ok-ink: #12653a;
    --pk-warn-bg: #fdf3e2;
    --pk-warn-line: #f4dcae;
    --pk-warn-ink: #8a5a06;
    --pk-bad-bg: #fdecec;
    --pk-bad-line: #f5c2c2;
    --pk-bad-ink: #a4161a;

    --site-ink: #13212c;
    --site-muted: #4f5d68;
    --site-page: #eef3f6;
    --site-dawn: #dbe6ee;
    --site-morning: #e6eef3;
    --site-noon: #ffffff;
    --site-grey: #d6d9db;
    --site-afternoon: #ffd59e;
    --site-dusk: #4b3c7a;
    --site-night: #131a32;
    --site-night-ink: #e9ecf5;
    --site-night-muted: #aab2c8;
    --site-night-line: #2f3a62;

    /* The register's own colours, for the pieces of it the page shows. */
    --app-canvas: #f2f4f2;
    --app-line: #dfe4df;
    --app-muted: #5b665c;
    --app-ink: #121712;
    --app-green: #2f6b3a;
    --app-green-soft: #e6f1e8;
    --app-amber: #9a5d0c;
    --app-amber-soft: #fdf3e2;
    --app-bezel: #1c211d;

    --receipt-print: #232323;
    --receipt-red: #c8102e;

    --site-measure: 32rem;

    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html.site-root {
        scroll-behavior: auto;
    }
}

@layer base {
    /* A word longer than the line (a long Czech word in a big heading, an
       e-mail address) breaks rather than pushes the page wider. */
    .site-body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
        background: var(--site-page);
        color: var(--site-ink);
        font: 400 1.0625rem/1.55 'Host Grotesk', ui-sans-serif, system-ui, sans-serif;
        overflow-wrap: break-word;
        -webkit-font-smoothing: antialiased;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* The front page's header stands in the dawn its intro starts with. */
    .site-body:has(.site-hero) {
        background: var(--site-dawn);
    }

    .site-body :focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 3px;
    }

    /* A phone number is read and tapped whole. */
    .site-body a[href^='tel:'] {
        white-space: nowrap;
    }
}

@layer components {
    /* ---- frame ------------------------------------------------------------ */

    /* The page reaches under a phone's rounded corners and notch
       (viewport-fit=cover), so its colours do; the text stays clear of them. */
    .site-wrap {
        width: 100%;
        max-width: 76rem;
        margin-inline: auto;
        padding-right: max(1.25rem, env(safe-area-inset-right));
        padding-left: max(1.25rem, env(safe-area-inset-left));
    }

    .site-main {
        flex: 1;
    }

    /* What the service tells everybody today: one line across the page, under the header. */
    .site-announcement {
        margin: 0;
        padding: 0.6rem 1rem;
        background: var(--site-afternoon);
        font-size: 0.875rem;
        text-align: center;

        & a {
            color: inherit;
            font-weight: 700;
        }
    }

    .site-preview {
        padding: 0.4rem 1rem;
        background: var(--site-afternoon);
        font-size: 0.8125rem;
        text-align: center;
    }

    .site-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 3rem;
        padding: 0 1.4rem;
        border: 2px solid currentColor;
        border-radius: 0.6rem;
        background: transparent;
        color: inherit;
        font: inherit;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;

        &:hover {
            background: rgb(127 127 127 / 0.12);
        }
    }

    .site-btn-ink {
        border-color: var(--site-ink);
        background: var(--site-ink);
        color: #fff;

        &:hover {
            border-color: #24394a;
            background: #24394a;
        }
    }

    .site-btn-light {
        border-color: #fff;
        background: #fff;
        color: var(--site-night);

        &:hover {
            border-color: var(--site-morning);
            background: var(--site-morning);
        }
    }

    /* A finger's height (44 px) of its own, the text where it was. */
    .site-more {
        display: inline-flex;
        align-items: center;
        min-height: 2.75rem;
        margin-top: 0.7rem;
        font-weight: 700;
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 5px;

        &:hover {
            text-decoration-thickness: 3px;
        }
    }

    .site-addon {
        display: inline-block;
        margin-bottom: 0.9rem;
        padding: 0.1rem 0.65rem;
        border: 1.5px solid currentColor;
        border-radius: 999px;
        font-size: 0.8125rem;
        font-weight: 700;
    }

    /* ---- header ----------------------------------------------------------- */

    .site-header {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        padding-block: 1.2rem;
    }

    .site-brand {
        display: inline-flex;
        align-items: center;
        min-height: 2.75rem;
        font-size: 1.25rem;
        font-weight: 800;
        letter-spacing: -0.015em;
        text-decoration: none;
        white-space: nowrap;
    }

    /* The logo by its height: its box is the ink, the stems of d and k on top. Under
       about 30 px the tear in those stems is a speck, so the site shows it larger than
       the admin's header does, a little less on a phone. */
    .site-logo {
        display: block;
        width: auto;
        height: 2rem;
    }

    @media (max-width: 34rem) {
        .site-logo {
            height: 1.75rem;
        }
    }

    /* At 320 px the logo, the gap and „Menu“ would fill the width to the pixel. */
    @media (max-width: 23rem) {
        .site-logo {
            height: 1.5rem;
        }
    }

    .site-nav {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        margin-left: auto;
        font-size: 0.9375rem;

        & a {
            white-space: nowrap;
        }

        & a:not(.site-btn) {
            display: inline-flex;
            align-items: center;
            min-height: 2.75rem;
            padding: 0 0.7rem;
            color: var(--site-muted);
            text-decoration: none;

            &:hover,
            &[aria-current='page'] {
                color: var(--site-ink);
            }

            &[aria-current='page'] {
                text-decoration: underline;
                text-decoration-thickness: 2px;
                text-underline-offset: 6px;
            }
        }

        & .site-btn {
            min-height: 2.75rem;
            margin-left: 0.25rem;
            padding: 0 1rem;
        }
    }

    /* ---- a phone's menu: a popover sheet from the top edge ----------------
       Drawn only on a narrow screen, and only where the browser knows
       popovers; without them the footer lists the pages. It lies over the
       header with the same name in the same place, its × where „Menu“ was. */

    .site-menu-btn {
        display: none;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding: 0 0.85rem;
        border: 2px solid var(--site-ink);
        border-radius: 0.6rem;
        background: transparent;
        color: var(--site-ink);
        font: inherit;
        font-size: 0.9375rem;
        font-weight: 700;
        cursor: pointer;

        & svg {
            flex: none;
        }
    }

    .site-menu {
        display: none;
        inset: 0 0 auto;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: 100dvh;
        margin: 0;
        padding: env(safe-area-inset-top) 0 calc(1.5rem + env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-radius: 0 0 1.25rem 1.25rem;
        background: #fff;
        color: var(--site-ink);
        box-shadow: 0 30px 60px -30px rgb(19 33 44 / 0.6);
        opacity: 0;
        transform: translateY(-1rem);
        transition: opacity 180ms ease, transform 180ms ease, overlay 180ms allow-discrete, display 180ms allow-discrete;

        &::backdrop {
            background: rgb(19 33 44 / 0);
            transition: background-color 180ms ease, overlay 180ms allow-discrete, display 180ms allow-discrete;
        }

        & .site-menu-btn {
            margin-left: auto;
        }
    }

    .site-menu-nav {
        display: flex;
        flex-direction: column;

        & a:not(.site-btn) {
            display: flex;
            align-items: center;
            min-height: 3.25rem;
            border-top: 1px solid var(--pk-line);
            font-size: 1.25rem;
            font-weight: 700;
            text-decoration: none;

            &[aria-current='page'] {
                text-decoration: underline;
                text-decoration-thickness: 2px;
                text-underline-offset: 6px;
            }
        }

        & .site-btn {
            margin-top: 1rem;
        }
    }

    /* A phone on its side: every page and the button in sight at once. */
    @media (max-height: 30rem) {
        .site-menu .site-header {
            padding-block: 0.6rem;
        }

        .site-menu-nav a:not(.site-btn) {
            min-height: 2.75rem;
            font-size: 1.125rem;
        }

        .site-menu-nav .site-btn {
            margin-top: 0.75rem;
        }
    }

    @media (max-width: 52rem) {
        @supports selector(:popover-open) {
            .site-menu-btn {
                display: inline-flex;
            }

            .site-menu:popover-open {
                display: block;
                opacity: 1;
                transform: none;

                &::backdrop {
                    background: rgb(19 33 44 / 0.55);
                }
            }

            @starting-style {
                .site-menu:popover-open {
                    opacity: 0;
                    transform: translateY(-1rem);
                }

                .site-menu:popover-open::backdrop {
                    background: rgb(19 33 44 / 0);
                }
            }
        }
    }

    /* ---- an inner page ---------------------------------------------------- */

    .site-page {
        padding-block: 2.5rem 5rem;
    }

    .site-title {
        margin: 0 0 1rem;
        max-width: 20ch;
        font-size: clamp(2.25rem, 5vw, 3.75rem);
        font-weight: 800;
        line-height: 1;
        letter-spacing: -0.03em;
    }

    .site-intro {
        margin: 0 0 2.5rem;
        max-width: var(--site-measure);
        color: var(--site-muted);
        font-size: 1.1875rem;
    }

    /* ---- a legal document (templates/site/legal.html.twig) ----------------
       The terms, the processing agreement, the privacy policy: long text to
       be read and printed, so a wider measure than a page's intro, numbered
       paragraphs as they come, tables that scroll by themselves on a phone. */

    .site-legal {
        max-width: 46rem;

        & .site-title {
            max-width: none;
            font-size: clamp(1.875rem, 4vw, 2.75rem);
            line-height: 1.1;
        }
    }

    .site-legal-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.25rem 1.25rem;
        margin: 0 0 1rem;
        color: var(--site-muted);
        font-size: 0.9375rem;
    }

    .site-legal-print {
        min-height: 2.75rem;
        padding: 0;
        border: 0;
        background: none;
        color: inherit;
        font: inherit;
        text-decoration: underline;
        cursor: pointer;
    }

    .site-legal-draft {
        margin: 0 0 1rem;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        background: var(--site-afternoon);
        font-weight: 600;
    }

    /* The older wordings a current one lists: for whoever agreed to one of them. */
    .site-legal-older {
        margin-top: 2.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid var(--site-grey);
        font-size: 0.9375rem;

        & h2 {
            margin: 0 0 0.5rem;
            font-size: 1rem;
        }

        & ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        & a {
            display: inline-flex;
            align-items: center;
            min-height: 2.75rem;
        }
    }

    .site-legal-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0 1.25rem;
        margin: 0 0 2rem;
        padding-block: 0.25rem;
        border-block: 1px solid var(--site-grey);

        & a {
            display: inline-flex;
            align-items: center;
            min-height: 2.75rem;
            color: var(--site-muted);
            text-decoration: none;

            &:hover {
                text-decoration: underline;
            }

            &[aria-current='page'] {
                color: var(--site-ink);
                font-weight: 700;
            }
        }
    }

    .site-legal-text {
        line-height: 1.6;

        & h2 {
            margin: 2.5rem 0 0.75rem;
            font-size: 1.375rem;
            font-weight: 800;
            line-height: 1.2;
            letter-spacing: -0.01em;
            /* A link to a section lands under the edge, not on it. */
            scroll-margin-top: 1rem;
        }

        & h3 {
            margin: 2rem 0 0.5rem;
            font-size: 1.0625rem;
            font-weight: 700;
        }

        & p,
        & ul,
        & ol {
            margin: 0 0 0.875rem;
        }

        & ul,
        & ol {
            padding-left: 1.375rem;
        }

        & ul {
            list-style: disc;
        }

        & ol {
            list-style: decimal;
        }

        & li {
            margin-bottom: 0.25rem;
        }

        & a {
            text-decoration: underline;
            overflow-wrap: anywhere;
        }

        & hr {
            margin-block: 2.5rem;
            border: 0;
            border-top: 1px solid var(--site-grey);
        }

        & blockquote {
            margin: 0 0 1.5rem;
            padding: 0.75rem 1rem;
            border-left: 0.25rem solid var(--site-afternoon);
            background: var(--site-noon);
            color: var(--site-muted);
            font-size: 0.9375rem;

            & p:last-child {
                margin-bottom: 0;
            }
        }

        & code {
            font-family: 'Spline Sans Mono', ui-monospace, monospace;
            font-size: 0.9em;
        }

        & table {
            display: block;
            width: 100%;
            margin: 0 0 1.25rem;
            overflow-x: auto;
            border-collapse: collapse;
            font-size: 0.9375rem;
        }

        & th,
        & td {
            padding: 0.5rem 0.75rem 0.5rem 0;
            border-bottom: 1px solid var(--site-grey);
            text-align: left;
            vertical-align: top;
        }

        & th {
            font-weight: 700;
        }

        /* A table of several columns keeps them wide enough to read and scrolls sideways on a phone,
           rather than breaking every word onto a line of its own. */
        & tr:has(> :nth-child(3)) > * {
            min-width: 9rem;
        }
    }

    /* ---- the front page's intro: the receipt ----------------------------- */

    .site-hero {
        padding-block: 2.5rem 3rem;
        background: var(--site-dawn);
    }

    .site-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
        gap: 2rem 4rem;
        align-items: start;
    }

    .site-hero-text {
        padding-top: 2.5rem;

        & h1 {
            margin: 0 0 1.5rem;
            max-width: 14ch;
            font-size: clamp(2.6rem, 6vw, 5.25rem);
            font-weight: 800;
            line-height: 0.98;
            letter-spacing: -0.035em;
        }
    }

    .site-lead {
        margin: 0 0 1.75rem;
        max-width: var(--site-measure);
        color: var(--site-muted);
        font-size: 1.1875rem;
    }

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

    .site-fine {
        margin: 0.9rem 0 0;
        color: var(--site-muted);
        font-size: 0.9375rem;
    }

    .receipt-slot {
        width: min(100%, 26.5rem);
        height: 1.6rem;
        margin: 0 auto;
        border-radius: 0.6rem 0.6rem 0.25rem 0.25rem;
        background: var(--site-ink);
        box-shadow: inset 0 -6px 0 rgb(0 0 0 / 0.35);
    }

    .receipt-feed {
        overflow: hidden;
        margin-top: -0.55rem;
        padding: 0 0.5rem 1.5rem;
    }

    /* Fed out of the printer once, a line at a time, as a thermal printer
       does; torn off below. 32 characters a line, a 58 mm roll. */
    .receipt-paper {
        --tooth: 0.75rem;

        width: min(calc(100% - 2rem), 24rem);
        margin: 0 auto;
        padding: 1.75rem 1.4rem calc(1.75rem + var(--tooth));
        background: #fff;
        color: var(--receipt-print);
        font: 400 1rem/1.6 'Spline Sans Mono', ui-monospace, monospace;
        filter: drop-shadow(0 18px 24px rgb(19 33 44 / 0.28));
        mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
        animation: receipt-feed 2.4s steps(30, end) 0.4s both;
    }

    @keyframes receipt-feed {
        from {
            transform: translateY(-100%);
        }
    }

    .receipt-row {
        display: flex;
        justify-content: space-between;
        gap: 1ch;
    }

    .receipt-center {
        text-align: center;
    }

    .receipt-tall {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .receipt-bold {
        font-weight: 700;
    }

    .receipt-rule {
        overflow: hidden;
        margin: 0.35rem 0;
        white-space: nowrap;
    }

    .receipt-red {
        color: var(--receipt-red);
        font-weight: 700;
    }

    /* ---- the day's ribbon: 0:00 to 24:00, a dot a moment ------------------ */

    .day-ribbon {
        position: relative;
        height: 4.5rem;
        margin-top: 2.5rem;

        &::before {
            content: '';
            position: absolute;
            top: 1.25rem;
            right: 0;
            left: 0;
            height: 3px;
            border-radius: 2px;
            background: var(--site-ink);
        }
    }

    .day-hour {
        position: absolute;
        top: 2.25rem;
        transform: translateX(-50%);
        color: var(--site-muted);
        font-size: 0.8125rem;
        font-variant-numeric: tabular-nums;

        &::before {
            content: '';
            position: absolute;
            top: -1.25rem;
            left: 50%;
            width: 2px;
            height: 0.6rem;
            background: var(--site-ink);
        }

        &:first-of-type {
            transform: none;

            &::before {
                left: 0;
            }
        }

        &:last-of-type {
            transform: translateX(-100%);

            &::before {
                right: 0;
                left: auto;
            }
        }
    }

    .day-dot {
        position: absolute;
        top: 0.55rem;
        left: var(--at);
        width: 1.5rem;
        height: 1.5rem;
        margin-left: -0.75rem;
        border: 3px solid var(--site-ink);
        border-radius: 50%;
        background: var(--c);

        /* Its time under it, on a phone's ribbon only. */
        & small {
            display: none;
        }

        & span {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            padding: 0.2rem 0.55rem;
            border-radius: 0.4rem;
            background: var(--site-ink);
            color: #fff;
            font-size: 0.8125rem;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transform: translateX(-50%);
            transition: opacity 120ms;
        }

        &:hover span,
        &:focus-visible span {
            opacity: 1;
        }
    }

    /* ---- a moment of the day ---------------------------------------------- */

    .day-moment {
        background: var(--bg);
        color: var(--fg, var(--site-ink));

        & > .site-wrap {
            display: grid;
            grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
            gap: 1.5rem 4rem;
            padding-block: 5.5rem;
        }
    }

    .day-time {
        position: sticky;
        top: 1.5rem;
        align-self: start;
        margin: 0;
        font-size: clamp(4rem, 10vw, 8.5rem);
        font-weight: 750;
        line-height: 0.85;
        letter-spacing: -0.05em;
        font-variant-numeric: tabular-nums;
    }

    .day-moment h2,
    .day-beat h2 {
        margin: 0 0 0.75rem;
        font-size: clamp(1.75rem, 3vw, 2.5rem);
        font-weight: 750;
        line-height: 1.1;
        letter-spacing: -0.02em;
    }

    .day-moment p,
    .day-beat p {
        margin: 0 0 1.5rem;
        max-width: var(--site-measure);
    }

    /* The middle of the day: the register stays in sight while the beats
       beside it pass, and the light behind follows the beat being read. */
    .day-stretch {
        background: var(--bg, var(--site-noon));
        transition: background-color 450ms ease;

        & > .site-wrap {
            display: grid;
            grid-template-rows: auto auto auto;
            grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
            gap: 0 3.5rem;
            padding-block: 1rem;
        }
    }

    .day-beat {
        grid-column: 1;
        min-height: 88vh;
        padding-block: 4.5rem;

        & .day-time {
            position: static;
            margin-bottom: 1.5rem;
            font-size: clamp(4rem, 8vw, 7rem);
        }
    }

    .day-stage {
        grid-row: 1 / span 3;
        grid-column: 2;
    }

    .day-stage-inner {
        position: sticky;
        top: 1.5rem;
        padding-block: 4.5rem 2rem;
    }

    /* The corner's clock: the moment the reader is at. */
    .day-clock {
        position: fixed;
        right: 1.25rem;
        bottom: 1.25rem;
        z-index: 10;
        display: flex;
        align-items: baseline;
        gap: 0.6rem;
        padding: 0.55rem 1rem;
        border-radius: 999px;
        background: #fff;
        color: var(--site-ink);
        box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.45);
        font-variant-numeric: tabular-nums;
        transition: opacity 200ms, transform 200ms;

        & b {
            font-size: 1.25rem;
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        & span {
            color: var(--site-muted);
            font-size: 0.875rem;
        }

        &.is-away {
            opacity: 0;
            pointer-events: none;
            transform: translateY(0.5rem);
        }
    }

    /* ---- the register, live (demo-register controller) -------------------- */

    .demo-tablet {
        padding: 0.65rem;
        border-radius: 1.4rem;
        background: var(--app-bezel);
        box-shadow: 0 30px 60px -30px rgb(18 23 18 / 0.5);
    }

    .demo-screen {
        display: flex;
        flex-direction: column;
        height: 27rem;
        overflow: hidden;
        border-radius: 0.85rem;
        background: var(--app-canvas);
        color: var(--app-ink);
        font-family: Roboto, 'Host Grotesk', system-ui, sans-serif;
        user-select: none;
    }

    .demo-bar {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 2.9rem;
        padding: 0.35rem 0.7rem;
        border-bottom: 1px solid var(--app-line);
        background: #fff;
        font-size: 0.875rem;

        & b {
            font-weight: 700;
        }
    }

    .demo-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.2rem 0.6rem;
        border-radius: 999px;
        background: var(--app-green-soft);
        color: var(--app-green);
        font-size: 0.8125rem;
        font-weight: 600;
        white-space: nowrap;

        &::before {
            content: '';
            width: 0.45rem;
            height: 0.45rem;
            border-radius: 50%;
            background: currentColor;
        }

        &.is-off {
            background: var(--app-amber-soft);
            color: var(--app-amber);
        }

        &.is-sending {
            background: var(--app-canvas);
            color: var(--app-muted);
        }

        &.is-plain::before {
            display: none;
        }
    }

    .demo-register {
        display: grid;
        flex: 1;
        grid-template-columns: minmax(0, 1fr) 14.5rem;
        min-height: 0;
    }

    .demo-tiles {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        gap: 0.3rem;
        min-height: 0;
        padding: 0.4rem;
    }

    .demo-tile {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        border: 0;
        border-radius: 0.45rem;
        background: var(--c);
        box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
        color: #fff;
        font: inherit;
        text-align: left;
        cursor: pointer;
        transition: transform 90ms ease-out;

        &:active {
            transform: scale(0.97);
        }
    }

    .demo-tile-name {
        padding: 0.4rem 0.5rem 0.15rem;
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1.15;
    }

    .demo-tile-price {
        padding: 0 0.5rem 0.4rem;
        font-size: 0.875rem;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
    }

    .demo-tile-count {
        position: absolute;
        right: 0.3rem;
        bottom: 0.3rem;
        min-width: 1.4rem;
        padding: 0.05rem 0.4rem;
        border-radius: 999px;
        background: #fff;
        color: var(--c);
        font-size: 0.8125rem;
        font-weight: 800;
        text-align: center;

        &.is-bumped {
            animation: demo-bumped 200ms ease-out;
        }
    }

    @keyframes demo-bumped {
        from {
            transform: scale(1.45);
        }
    }

    .demo-cart {
        position: relative;
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin: 0.4rem 0.4rem 0.4rem 0;
        padding: 0.65rem;
        border: 1px solid var(--app-line);
        border-radius: 0.7rem;
        background: #fff;
        font-size: 0.875rem;

        & h3 {
            margin: 0 0 0.35rem;
            font-size: 0.9375rem;
            font-weight: 700;
        }
    }

    .demo-cart-lines {
        flex: 1;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow-y: auto;
        list-style: none;
    }

    .demo-cart-empty {
        color: var(--app-muted);
    }

    .demo-cart-line {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.1rem 0.4rem;
        align-items: center;
        padding: 0.35rem 0;
        border-bottom: 1px solid var(--app-line);
    }

    .demo-cart-line-name {
        overflow: hidden;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .demo-cart-line-sum {
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        text-align: right;
    }

    .demo-cart-line-qty {
        color: var(--app-muted);
        font-size: 0.75rem;
    }

    .demo-steppers {
        display: flex;
        justify-content: flex-end;
        gap: 0.25rem;

        & button {
            width: 1.9rem;
            height: 1.9rem;
            border: 1px solid var(--app-line);
            border-radius: 0.4rem;
            background: #fff;
            color: var(--app-ink);
            font: inherit;
            font-weight: 700;
            cursor: pointer;
        }
    }

    .demo-cart-total {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding: 0.5rem 0;
        font-size: 1.125rem;
        font-weight: 800;
        font-variant-numeric: tabular-nums;

        & span:first-child {
            color: var(--app-muted);
            font-size: 0.875rem;
            font-weight: 600;
        }
    }

    .demo-pay {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;

        & button {
            min-height: 2.75rem;
            border: 1.5px solid var(--app-line);
            border-radius: 0.55rem;
            background: #fff;
            color: var(--app-ink);
            font: inherit;
            font-weight: 700;
            cursor: pointer;

            &:first-child {
                border-color: var(--app-green);
                background: var(--app-green);
                color: #fff;
            }

            &:disabled {
                opacity: 0.45;
                cursor: default;
            }
        }
    }

    .demo-paid {
        position: absolute;
        inset: 0;
        display: grid;
        place-content: center;
        gap: 0.2rem;
        border-radius: 0.7rem;
        background: var(--app-green);
        color: #fff;
        text-align: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 160ms;

        &.is-shown {
            opacity: 1;
        }

        & strong {
            font-size: 1.5rem;
        }
    }

    .demo-try {
        display: grid;
        grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
        gap: 1rem 1.5rem;
        align-items: start;
        margin-top: 1.25rem;
    }

    .demo-switch {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0.7rem 0.85rem;
        border: 1.5px solid rgb(19 33 44 / 0.18);
        border-radius: 0.8rem;
        background: #fff;
        color: var(--site-ink);
        font: inherit;
        text-align: left;
        cursor: pointer;

        & strong {
            display: block;
            font-size: 0.9375rem;
        }

        & span span {
            display: block;
            color: var(--site-muted);
            font-size: 0.8125rem;
        }
    }

    .demo-switch-track {
        position: relative;
        flex: none;
        width: 3rem;
        height: 1.75rem;
        border-radius: 999px;
        background: var(--app-green);
        transition: background 160ms;

        &::after {
            content: '';
            position: absolute;
            top: 0.2rem;
            left: 1.45rem;
            width: 1.35rem;
            height: 1.35rem;
            border-radius: 50%;
            background: #fff;
            transition: left 160ms;
        }

        [aria-checked='false'] > & {
            background: #b9c1b9;

            &::after {
                left: 0.2rem;
            }
        }
    }

    .demo-sales {
        font-size: 0.875rem;

        & p {
            margin: 0.6rem 0 0;
            color: var(--site-muted);
        }

        & ol {
            margin: 0;
            padding: 0;
            list-style: none;
        }
    }

    .demo-sale {
        display: grid;
        grid-template-columns: 6.75rem minmax(0, 1fr) auto auto;
        gap: 0.75rem;
        align-items: center;
        padding: 0.45rem 0;
        border-bottom: 1px solid rgb(19 33 44 / 0.14);

        & .demo-chip {
            justify-self: start;
        }
    }

    .demo-sale-no {
        color: var(--site-muted);
        font-variant-numeric: tabular-nums;
    }

    .demo-sale-goods {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .demo-sale-sum {
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

    /* ---- a piece of the register or the admin, drawn as the app draws it -- */

    .snap {
        max-width: 24rem;
        padding: 1rem;
        border: 1px solid var(--app-line);
        border-radius: 0.8rem;
        background: #fff;
        box-shadow: 0 12px 30px -18px rgb(19 33 44 / 0.45);
        color: var(--app-ink);
        font-size: 0.9375rem;
    }

    .snap-head {
        margin-bottom: 0.6rem;
        font-weight: 700;
    }

    .snap-row {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.4rem 0;
        border-bottom: 1px solid var(--app-line);
        font-variant-numeric: tabular-nums;

        &:last-of-type {
            border-bottom: 0;
        }

        &.is-total {
            padding-top: 0.6rem;
            font-size: 1.125rem;
            font-weight: 800;
        }
    }

    .snap-btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .snap-btn {
        display: grid;
        place-items: center;
        min-height: 2.75rem;
        border: 1.5px solid var(--app-line);
        border-radius: 0.6rem;
        font-weight: 700;

        &.is-primary {
            border-color: var(--app-green);
            background: var(--app-green);
            color: #fff;
        }
    }

    .snap-tiles {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.375rem;
    }

    .snap-tile {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 5rem;
        padding: 0.5rem 0.6rem;
        border-radius: 0.5rem;
        background: var(--c);
        color: #fff;
        font-weight: 600;
        line-height: 1.2;

        & b {
            font-weight: 800;
        }

        & small {
            font-size: 0.75rem;
            font-weight: 700;
        }

        &.is-out {
            opacity: 0.55;
            filter: saturate(0.5);
        }
    }

    .snap-phone {
        max-width: 17rem;
        padding: 0.6rem;
        border-radius: 1.6rem;
        background: #05070f;

        & .snap {
            border-radius: 1.1rem;
            box-shadow: none;
        }
    }

    .snap-big {
        font-size: 1.75rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    /* ---- after the day ---------------------------------------------------- */

    .site-all {
        background: var(--site-night);
        color: var(--site-night-ink);

        & .site-wrap {
            padding-block: 2rem 4rem;
        }

        & h2 {
            margin: 0 0 2rem;
            font-size: clamp(1.75rem, 3vw, 2.5rem);
            font-weight: 750;
            line-height: 1.1;
            letter-spacing: -0.02em;
        }

        & dl {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0 3rem;
            margin: 0;
        }

        & dl > div {
            padding: 0.45rem 0 1.25rem;
            border-top: 1px solid var(--site-night-line);
        }

        & dt a {
            display: inline-flex;
            align-items: center;
            min-width: 2.75rem;
            min-height: 2.75rem;
            font-weight: 700;
            text-decoration: none;

            &:hover {
                text-decoration: underline;
                text-underline-offset: 4px;
            }
        }

        & dd {
            margin: 0.25rem 0 0;
            color: var(--site-night-muted);
            font-size: 0.9375rem;
        }

        & .site-addon {
            margin: 0 0 0 0.4rem;
            padding: 0 0.5rem;
            font-size: 0.75rem;
            vertical-align: 0.1rem;
        }
    }

    .site-closing {
        background: var(--site-night);
        color: var(--site-night-ink);

        & .site-wrap {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
            padding-block: 2rem 5rem;
        }

        & p {
            margin: 0;
            max-width: 22ch;
            font-size: clamp(1.75rem, 3.6vw, 2.75rem);
            font-weight: 750;
            line-height: 1.08;
            letter-spacing: -0.02em;
        }

        & small {
            display: block;
            margin-top: 0.75rem;
            color: var(--site-night-muted);
            font-size: 1rem;
            font-weight: 400;
            letter-spacing: 0;
        }
    }

    /* ---- footer ----------------------------------------------------------- */

    .site-footer {
        background: var(--site-night);
        color: var(--site-night-muted);
        font-size: 0.875rem;

        & .site-wrap {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 1rem 2rem;
            padding-block: 1.75rem 2.5rem;
            border-top: 1px solid #2a3356;
        }

        & p {
            margin: 0;
        }

        & .site-footer-cards {
            padding-top: 0.75rem;
        }

        & nav {
            display: grid;
            align-content: start;
        }

        & .site-footer-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 0 1.25rem;
        }

        & nav a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 2.75rem;
            min-height: 2.75rem;
        }

        & a {
            text-decoration: none;

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

    /* ---- the admin's forms, on the site ------------------------------------
       16 px in a field, or iOS zooms the page in as it is tapped; a field and
       a button a finger's height. */

    .site-body {
        & .input {
            min-height: 3rem;
            font-size: 1rem;
        }

        & textarea.input {
            min-height: 7rem;
        }

        & .btn {
            min-height: 3rem;
            font-size: 1rem;
        }

        & .help {
            font-size: 0.8125rem;
        }
    }

    /* A firm's address: what is typed and the part every firm shares, one
       field. Too narrow for both on a line (320 px), the shared part goes
       under what is typed, still inside the field. */
    .site-address {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border: 1px solid var(--pk-line-strong);
        border-radius: 0.5rem;
        background: var(--pk-surface);

        &:focus-within {
            border-color: var(--pk-accent);
            box-shadow: 0 0 0 3px var(--pk-accent-soft);
        }

        &:has([aria-invalid='true']) {
            border-color: var(--pk-bad-ink);
        }

        .site-body & .input {
            flex: 1 1 7.5rem;
            min-width: 0;
            padding-right: 0.15rem;
            border: 0;
            background: transparent;
            box-shadow: none;
        }

        & > span {
            flex: none;
            padding: 0 0.75rem;
            color: var(--pk-muted);
            font-family: var(--font-mono, ui-monospace, monospace);
            font-size: 0.875rem;
            line-height: 2;
        }
    }

    /* ---- narrower screens -------------------------------------------------- */

    @media (max-width: 64rem) {
        .demo-register {
            grid-template-columns: minmax(0, 1fr) 12.5rem;
        }

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

        .demo-screen {
            height: 30rem;
        }

        .demo-try {
            grid-template-columns: minmax(0, 1fr);
        }
    }

    /* Where the moments are a column (a phone, upright or on its side, a
       small tablet). A single column is minmax(0, 1fr) wherever it is set:
       a plain 1fr is as wide as its widest word or receipt line, and would
       push the page past the screen. */
    @media (max-width: 52rem) {
        .site-header {
            gap: 0.75rem;
        }

        .site-nav a.site-nav-wide,
        .site-nav a.site-nav-sign-in {
            display: none;
        }

        .site-hero-grid {
            grid-template-columns: minmax(0, 1fr);
        }

        .site-hero-text {
            padding-top: 0.5rem;
        }

        .receipt-printer {
            width: min(100%, 24rem);
            margin: 0 auto;
        }

        .day-moment > .site-wrap {
            grid-template-columns: minmax(0, 1fr);
            padding-block: 4rem;
        }

        .day-time {
            position: static;
        }

        /* Each moment shows its time big at its top; in a column the clock
           would only cover the text. */
        .day-clock {
            display: none;
        }

        /* The beats and the register one under another, the register after
           the first; the reader switches the internet off by hand. */
        .day-stretch > .site-wrap {
            grid-template-columns: minmax(0, 1fr);
        }

        .day-beat,
        .day-stage {
            grid-row: auto;
            grid-column: 1;
        }

        .day-beat {
            min-height: 0;
            padding-block: 4rem 0;

            &:last-of-type {
                padding-bottom: 4rem;
            }
        }

        .day-stage-inner {
            position: static;
            padding-block: 2rem 0;
        }

        .demo-screen {
            height: auto;
        }

        .demo-register {
            grid-template-columns: minmax(0, 1fr);
        }

        .demo-tiles {
            grid-auto-rows: 4.75rem;
        }

        .demo-cart {
            margin: 0 0.4rem 0.4rem;
        }

        .demo-cart-lines {
            max-height: 11rem;
        }

        .demo-steppers button {
            width: 2.75rem;
            height: 2.75rem;
        }

        .site-all dl {
            grid-template-columns: minmax(0, 1fr);
        }

        .site-footer .site-wrap {
            grid-template-columns: minmax(0, 1fr);
        }

        .site-footer .site-footer-links {
            justify-content: flex-start;
        }

        /* The operator's e-mail and phone, tapped rather than read. */
        .site-footer [data-supplier] a {
            display: inline-block;
            padding-block: 0.75rem;
        }
    }

    /* A phone's ribbon: the moments evenly spaced along it, each with its
       time under it instead of the day's hours, and a finger's room to tap
       (by the clock 13:40 and 14:05 would lie on one another). */
    @media (max-width: 52rem) {
        .day-hour {
            display: none;
        }

        .day-dot {
            top: 0.6rem;
            left: calc((var(--i) + 0.5) / var(--n) * 100%);
            width: 1.4rem;
            height: 1.4rem;
            margin-left: -0.7rem;

            & span {
                display: none;
            }

            & small {
                position: absolute;
                top: 1.85rem;
                left: 50%;
                display: block;
                color: var(--site-muted);
                font-size: 0.8125rem;
                font-variant-numeric: tabular-nums;
                white-space: nowrap;
                transform: translateX(-50%);
            }

            &::after {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                width: 2.75rem;
                height: 3.75rem;
                transform: translate(-50%, -32%);
            }
        }
    }

    /* 320 px: seven times on one line, still apart. */
    @media (max-width: 23rem) {
        .day-dot small {
            font-size: 0.75rem;
            letter-spacing: -0.02em;
        }
    }

    /* Under a finger on a wide ribbon the dots lie closer than a fingertip:
       a picture of the day, its moments reached by scrolling. */
    @media (min-width: 52.0625rem) and (pointer: coarse) {
        .day-dot {
            pointer-events: none;
        }
    }

    @media (max-width: 34rem) {
        .site-nav .site-btn {
            display: none;
        }

        .demo-sale {
            grid-template-columns: minmax(0, 1fr) auto;
        }

        .demo-sale-no {
            grid-column: 1 / -1;
        }

        .receipt-paper {
            padding-inline: 0.9rem;
            font-size: 0.8125rem;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .receipt-paper,
        .demo-tile-count.is-bumped {
            animation: none;
        }

        .day-stretch,
        .day-clock,
        .day-dot span,
        .demo-paid,
        .demo-tile,
        .demo-switch-track,
        .demo-switch-track::after {
            transition: none;
        }
    }
}

/* ---------------------------------------------------------------------------
   „Vyzkoušet zdarma“: the stub of a receipt beside the e-mail, as a dialog
   over any page (trial-dialog controller) or as the page /vyzkouset itself.
   --------------------------------------------------------------------------- */

/* The page under an open dialog or menu stays where it was. */
html.site-root:has(.site-dialog[open]) {
    overflow: hidden;
}

html.site-root:has(.site-menu:popover-open) {
    overflow: hidden;
}

@layer components {
    .site-trial {
        display: grid;
        grid-template-columns: 17rem minmax(0, 1fr);
        overflow: hidden;
        border-radius: 1.25rem;
        background: #fff;
        color: var(--site-ink);
    }

    .site-trial-stub {
        padding: 1.75rem 0.75rem 0;
        background: var(--site-dawn);

        & .receipt-slot {
            width: 100%;
        }

        & .receipt-feed {
            padding-bottom: 1.75rem;
        }
    }

    /* The stub prints once, when the dialog opens or the page loads. */
    .site-trial-paper {
        width: calc(100% - 1.5rem);
        padding: 1.25rem 1rem calc(1.25rem + var(--tooth));
        font-size: 0.8125rem;
        animation-duration: 1.2s;
        animation-timing-function: steps(14, end);
        animation-delay: 0.15s;

        & .receipt-tall {
            font-size: 1.125rem;
        }
    }

    .site-trial-main {
        position: relative;
        padding: 2.25rem 2.5rem 2rem;
    }

    .site-trial-heading {
        margin: 0 2.5rem 0.75rem 0;
        font-size: clamp(1.6rem, 3vw, 2.125rem);
        font-weight: 800;
        line-height: 1.05;
        letter-spacing: -0.025em;

        &:focus {
            outline: none;
        }
    }

    .site-trial-intro {
        margin: 0 0 1.5rem;
        color: var(--site-muted);
    }

    .site-trial-small {
        margin: 0 0 1rem;
        color: var(--site-muted);
        font-size: 0.8125rem;
        line-height: 1.5;

        & a {
            color: var(--site-ink);
            font-weight: 700;
        }
    }

    /* The consent to the terms as a firm is founded: a tick beside a sentence that wraps. */
    .site-agree {
        align-items: flex-start;
        margin-bottom: 1rem;
        line-height: 1.5;

        & input {
            flex: none;
            margin-top: 0.2rem;
        }

        & a {
            color: var(--site-ink);
            font-weight: 700;
            text-decoration: underline;
        }
    }

    .site-trial-main .btn-primary {
        min-height: 3rem;
        padding-inline: 1.4rem;
        font-size: 1rem;
    }

    .site-trial-page {
        max-width: 50rem;
        margin: 1rem auto 0;

        & .site-trial {
            box-shadow: 0 30px 60px -36px rgb(19 33 44 / 0.45);
        }
    }

    /* A trial's firm being founded (founding controller): the form gives way
       to a receipt that prints a line at a time, each line typed out from the
       left as a thermal head does, the paper growing out of the slot. */
    .site-trial.is-founding {
        grid-template-columns: minmax(0, 1fr);
        background: var(--site-dawn);

        & .site-trial-stub {
            display: none;
        }

        & .site-trial-main {
            padding-bottom: 0;
        }
    }

    .site-founding {
        text-align: center;

        & .site-trial-heading {
            margin-inline: 0;
        }

        & .site-trial-intro {
            margin-bottom: 1.75rem;
        }

        & .receipt-slot {
            width: min(100%, 23rem);
        }

        & .receipt-feed {
            padding-bottom: 2.25rem;
        }
    }

    .site-founding-paper {
        width: min(calc(100% - 2rem), 20.5rem);
        min-height: calc(1.5rem + var(--tooth));
        padding: 0.75rem 1.1rem calc(0.75rem + var(--tooth));
        font-size: 0.875rem;
        text-align: left;
        animation: none;

        & .receipt-tall {
            font-size: 1.125rem;
            overflow-wrap: anywhere;
        }

        & .receipt-center:not(.receipt-tall) {
            overflow-wrap: anywhere;
        }
    }

    .site-founding-line {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 160ms ease-out;

        & > * {
            min-height: 0;
            overflow: hidden;
            clip-path: inset(0 100% 0 0);
        }

        &.is-printed {
            grid-template-rows: 1fr;

            & > * {
                animation: founding-print 0.45s steps(18, end) forwards;
            }
        }
    }

    @keyframes founding-print {
        to {
            clip-path: inset(0 0 0 0);
        }
    }

    /* A step's dots run while it is the last line printed; OK once the next one is. */
    .site-founding-dots > span {
        animation: founding-dot 1.2s infinite both;

        &:nth-child(2) {
            animation-delay: 0.2s;
        }

        &:nth-child(3) {
            animation-delay: 0.4s;
        }
    }

    @keyframes founding-dot {
        0%, 70%, 100% {
            opacity: 0.15;
        }

        35% {
            opacity: 1;
        }
    }

    .site-founding-ok {
        display: none;
        font-weight: 700;
    }

    .site-founding-step.is-done {
        & .site-founding-dots {
            display: none;
        }

        & .site-founding-ok {
            display: inline;
        }
    }

    /* Fixed in place even as it closes: a browser that cannot keep a closing
       dialog in the top layer (no `overlay`, Safari) still fades it where it
       stood. Scrolled inside, it never scrolls the page under it. */
    .site-dialog {
        position: fixed;
        inset: 0;
        z-index: 50;
        width: min(50rem, calc(100% - 2rem));
        max-width: none;
        max-height: calc(100dvh - 2rem);
        margin: auto;
        padding: 0;
        overflow: auto;
        overscroll-behavior: contain;
        border: 0;
        border-radius: 1.25rem;
        background: transparent;
        box-shadow: 0 40px 80px -30px rgb(19 33 44 / 0.6);
        opacity: 0;
        transform: translateY(1rem);
        transition: opacity 180ms ease, transform 180ms ease, overlay 180ms allow-discrete, display 180ms allow-discrete;

        &[open] {
            opacity: 1;
            transform: none;
        }

        &::backdrop {
            background: rgb(19 33 44 / 0);
            transition: background-color 180ms ease, overlay 180ms allow-discrete, display 180ms allow-discrete;
        }

        &[open]::backdrop {
            background: rgb(19 33 44 / 0.55);
        }
    }

    @starting-style {
        .site-dialog[open] {
            opacity: 0;
            transform: translateY(1rem);
        }

        .site-dialog[open]::backdrop {
            background: rgb(19 33 44 / 0);
        }
    }

    .site-dialog-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        display: grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        border: 0;
        border-radius: 50%;
        background: var(--site-page);
        color: var(--site-ink);
        font: inherit;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;

        &:hover {
            background: var(--site-dawn);
        }
    }

    /* A phone, upright or on its side: no stub, and the dialog a sheet from
       the bottom edge, its text clear of the rounded corners and the notch. */
    @media (max-width: 40rem), (max-height: 30rem) {
        .site-trial {
            grid-template-columns: minmax(0, 1fr);
        }

        .site-trial-stub {
            display: none;
        }

        .site-trial-main {
            padding: 1.75rem max(1.25rem, env(safe-area-inset-right)) 1.5rem max(1.25rem, env(safe-area-inset-left));
        }

        .site-dialog {
            width: 100%;
            max-height: calc(100dvh - 3rem);
            margin: auto 0 0;
            border-radius: 1.25rem 1.25rem 0 0;

            & .site-trial {
                border-radius: 1.25rem 1.25rem 0 0;
            }

            & .site-trial-main {
                padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
            }

            & .site-dialog-close {
                right: max(1rem, env(safe-area-inset-right));
            }
        }
    }

    @media (max-height: 30rem) {
        .site-dialog .site-trial-main {
            padding-top: 1.25rem;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .site-dialog,
        .site-dialog::backdrop,
        .site-founding-line {
            transition: none;
        }

        .site-founding-line.is-printed > *,
        .site-founding-dots > span {
            clip-path: none;
            animation: none;
        }

        .site-founding-dots > span {
            opacity: 1;
        }
    }
}

/* ---------------------------------------------------------------------------
   Ceník: the visitor's choices on the left, the receipt reprinting what they
   cost on the right (pricing controller).
   --------------------------------------------------------------------------- */

@layer components {
    .price-title {
        max-width: 18ch;
    }

    .price-calc {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 24rem;
        gap: 2rem 4.5rem;
        align-items: start;
    }

    .price-step {
        padding: 1.75rem 0 2rem;
        border-top: 2px solid var(--site-ink);

        & h2 {
            margin: 0 0 0.35rem;
            font-size: 1.5rem;
            font-weight: 750;
            letter-spacing: -0.015em;
        }
    }

    .price-help {
        margin: 0;
        max-width: 36rem;
        color: var(--site-muted);
    }

    .price-note {
        margin: 0;
        max-width: 36rem;
        color: var(--site-muted);
        font-size: 0.9375rem;
    }

    /* The register's own − and +, a size up. */
    .price-stepper {
        display: inline-flex;
        align-items: center;
        gap: 1rem;
        margin: 1rem 0;

        & button {
            width: 3.25rem;
            height: 3.25rem;
            border: 1.5px solid var(--pk-line-strong);
            border-radius: 0.75rem;
            background: #fff;
            color: var(--site-ink);
            font: inherit;
            font-size: 1.5rem;
            font-weight: 700;
            cursor: pointer;

            &:hover:not(:disabled) {
                border-color: var(--site-ink);
            }

            &:disabled {
                opacity: 0.35;
                cursor: default;
            }
        }

        & output {
            min-width: 2ch;
            font-size: 3rem;
            font-weight: 800;
            line-height: 1;
            text-align: center;
            font-variant-numeric: tabular-nums;
        }
    }

    /* An add-on is a tile: outlined while off, its colour filled in once on. */
    .price-addons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin-top: 1.25rem;
    }

    .price-addon {
        --c: var(--site-ink);

        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        min-height: 9.5rem;
        padding: 1rem 3.25rem 1.1rem 1.1rem;
        border: 2px solid var(--c);
        border-radius: 0.75rem;
        background: #fff;
        color: var(--site-ink);
        font: inherit;
        text-align: left;
        cursor: pointer;
        transition: background-color 150ms, color 150ms;

        &[data-addon='stock'] {
            --c: #7a6a1f;
        }

        &[data-addon='staff'] {
            --c: #2f5d7c;
        }

        &[aria-pressed='true'] {
            background: var(--c);
            color: #fff;

            & .price-addon-name,
            & .price-addon-what {
                color: inherit;
            }

            & .price-addon-check {
                border-color: #fff;
                background: #fff;
                color: var(--c);
            }
        }
    }

    .price-addon-name {
        color: var(--c);
        font-size: 1.125rem;
        font-weight: 800;
    }

    .price-addon-what {
        flex: 1;
        color: var(--site-muted);
        font-size: 0.8125rem;
        line-height: 1.45;
    }

    .price-addon-price {
        font-size: 0.9375rem;
        font-weight: 700;
    }

    .price-addon-check {
        position: absolute;
        top: 0.9rem;
        right: 0.9rem;
        display: grid;
        place-items: center;
        width: 1.75rem;
        height: 1.75rem;
        border: 2px solid var(--c);
        border-radius: 50%;
        color: transparent;
        font-weight: 800;
        line-height: 1;
    }

    .price-period {
        display: inline-flex;
        gap: 0.25rem;
        margin: 1rem 0;
        padding: 0.3rem;
        border-radius: 0.9rem;
        background: var(--site-dawn);

        & button {
            padding: 0.65rem 1.1rem;
            border: 0;
            border-radius: 0.65rem;
            background: transparent;
            color: var(--site-ink);
            font: inherit;
            font-weight: 700;
            line-height: 1.2;
            text-align: left;
            cursor: pointer;

            &[aria-pressed='true'] {
                background: #fff;
                box-shadow: 0 1px 3px rgb(19 33 44 / 0.15);
            }
        }

        & small {
            display: block;
            color: var(--app-green);
            font-size: 0.75rem;
            font-weight: 700;
        }
    }

    .price-receipt {
        position: sticky;
        top: 1.5rem;
    }

    .price-paper {
        & [hidden] {
            display: none;
        }
    }

    .price-paper-qty {
        padding-left: 2ch;
        color: #666;
        font-size: 0.875em;
    }

    .price-paper-total {
        font-size: 1.0625rem;
    }

    .price-paper-small {
        margin-top: 0.4rem;
        color: #666;
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .price-bump {
        display: inline-block;
        animation: price-bump 260ms ease-out;
    }

    @keyframes price-bump {
        from {
            transform: scale(1.15);
        }
    }

    .price-cta {
        display: flex;
        width: calc(100% - 2rem);
        margin: 0 auto;
    }

    .price-unset {
        padding-top: 1.75rem;
        border-top: 2px solid var(--site-ink);

        & p {
            margin: 0 0 1.5rem;
            max-width: 30rem;
            font-size: 1.25rem;
        }
    }

    .price-included {
        margin-top: 4rem;
        padding-top: 1.75rem;
        border-top: 2px solid var(--site-ink);

        & h2 {
            margin: 0 0 1rem;
            font-size: 1.5rem;
            font-weight: 750;
        }

        & ul {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0 2.5rem;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        & li {
            padding: 0.6rem 0;
            border-top: 1px solid var(--pk-line);

            &::first-letter {
                text-transform: uppercase;
            }
        }
    }

    .price-no-fees {
        margin: 1.25rem 0 0;
        font-weight: 700;
    }

    .price-bar {
        display: none;
    }

    @media (max-width: 52rem) {
        .price-calc,
        .price-included ul {
            grid-template-columns: minmax(0, 1fr);
        }

        .price-receipt {
            position: static;
        }

        /* Sticks to the bottom of the screen while the choices are on it, and
           lets go where they end, so it never stays over anything; a field
           reached by Tab is scrolled clear of it. */
        html.site-root:has(.price-bar) {
            scroll-padding-bottom: 5.5rem;
        }

        .price-bar {
            position: sticky;
            bottom: calc(0.75rem + env(safe-area-inset-bottom));
            z-index: 5;
            display: flex;
            justify-content: center;
            margin-top: 0.5rem;
            padding: 0.85rem 1.1rem;
            border-radius: 0.9rem;
            background: var(--site-ink);
            box-shadow: 0 12px 30px -12px rgb(19 33 44 / 0.6);
            color: #fff;
            font-variant-numeric: tabular-nums;

            & > span {
                display: flex;
                justify-content: space-between;
                gap: 1rem;
                width: 100%;
            }

            & b {
                font-size: 1.125rem;
            }
        }
    }

    /* A phone on its side: the bar a line, not a fifth of the screen. */
    @media (max-width: 52rem) and (max-height: 30rem) {
        .price-bar {
            padding-block: 0.45rem;
        }
    }

    @media (max-width: 34rem) {
        .price-addons {
            grid-template-columns: minmax(0, 1fr);
        }

        .price-addon {
            min-height: 0;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .price-bump {
            animation: none;
        }

        .price-addon {
            transition: none;
        }
    }
}

/* ---------------------------------------------------------------------------
   Steps and notes, as the EET page shows them (the help itself is at its
   own address, the Help context, styled by help.css).
   --------------------------------------------------------------------------- */

@layer components {
    .help-heading {
        margin: 0 0 0.4rem;
        font-size: clamp(1.9rem, 3.4vw, 2.75rem);
        font-weight: 800;
        line-height: 1.05;
        letter-spacing: -0.025em;
    }

    /* Four steps: the step's number big, as the front page's hours are. */
    .help-steps {
        margin: 0;
        padding: 0;
        list-style: none;
        counter-reset: help-step;
    }

    .help-step {
        display: grid;
        grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 20rem);
        gap: 1rem 2.5rem;
        align-items: start;
        padding: 1.75rem 0;
        border-top: 2px solid var(--site-ink);
        counter-increment: help-step;

        &::before {
            content: counter(help-step);
            font-size: 4rem;
            font-weight: 800;
            line-height: 0.8;
            letter-spacing: -0.05em;
        }

        & h3 {
            margin: 0 0 0.4rem;
            font-size: 1.5rem;
            font-weight: 750;
        }

        & p {
            margin: 0;
            max-width: 34rem;
        }
    }

    /* A trouble: the register's alert as a head, what to do below it. */
    .help-alerts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        align-items: start;
    }

    .help-alert {
        overflow: hidden;
        border: 1px solid var(--pk-line);
        border-radius: 0.9rem;
        background: #fff;

        & > p {
            margin: 0;
            padding: 1rem 1.15rem 1.15rem;
        }

        & .site-more {
            margin: 0 1.15rem 1.15rem;
        }
    }

    .help-alert-head {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin: 0;
        padding: 0.75rem 1.15rem;
        border-bottom: 1px solid var(--pk-line);
        background: var(--site-page);
        font-size: 1.0625rem;
        font-weight: 750;

        [data-tone='warn'] > & {
            border-color: var(--pk-warn-line);
            background: var(--pk-warn-bg);
            color: var(--pk-warn-ink);
        }

        [data-tone='bad'] > & {
            border-color: var(--pk-bad-line);
            background: var(--pk-bad-bg);
            color: var(--pk-bad-ink);
        }
    }

    /* The details: a line each, opened by a tap. */
    @media (max-width: 52rem) {
        .help-step {
            grid-template-columns: 3rem minmax(0, 1fr);
            column-gap: 1.25rem;

            &::before {
                font-size: 2.75rem;
            }

        }

        .help-alerts {
            grid-template-columns: minmax(0, 1fr);
        }
    }
}

/* ---------------------------------------------------------------------------
   Funkce: the contents as the register's tiles, a section a feature in its
   tile's colour, a piece of the app beside it.
   --------------------------------------------------------------------------- */

@layer components {
    .snap-foot {
        margin: 0.6rem 0 0;
    }

    .snap-paper {
        width: 100%;
        max-width: 20rem;
        padding: 1.25rem 1.1rem calc(1.25rem + var(--tooth));
        font-size: 0.875rem;
        animation: none;
    }

    .snap-pin {
        max-width: 17rem;
    }

    .snap-dots {
        display: flex;
        justify-content: center;
        gap: 0.6rem;
        margin: 0.5rem 0 1rem;

        & i {
            width: 0.8rem;
            height: 0.8rem;
            border: 2px solid var(--app-ink);
            border-radius: 50%;

            &.is-on {
                background: var(--app-ink);
            }
        }
    }

    .snap-keys {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;

        & span {
            display: grid;
            place-items: center;
            min-height: 2.75rem;
            border: 1px solid var(--app-line);
            border-radius: 0.55rem;
            font-size: 1.125rem;
            font-weight: 700;

            &.is-blank {
                border-color: transparent;
            }
        }
    }

    .feat-tablet {
        margin-bottom: 1rem;
    }

    .feat-index {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.4rem;
        padding: 0.5rem;
        border-radius: 0.85rem;
        background: var(--app-canvas);
    }

    .feat-tile {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 6.25rem;
        padding: 0.65rem 0.75rem;
        border-radius: 0.5rem;
        background: var(--c);
        box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
        color: #fff;
        text-decoration: none;
        transition: transform 90ms ease-out, filter 120ms;

        &:hover {
            filter: brightness(1.1);
        }

        &:active {
            transform: scale(0.97);
        }
    }

    .feat-tile-name {
        font-size: 1.0625rem;
        font-weight: 700;
        line-height: 1.15;
    }

    .feat-tile-foot {
        font-size: 0.875rem;
        font-weight: 800;
        opacity: 0.9;
    }

    .feat {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
        gap: 2rem 4rem;
        align-items: start;
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 3px solid var(--c);
        scroll-margin-top: 1rem;

        & h2 {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.6rem;
            margin: 0 0 0.6rem;
            font-size: clamp(1.6rem, 2.6vw, 2.125rem);
            font-weight: 750;
            line-height: 1.1;
            letter-spacing: -0.02em;
        }

        & .site-addon {
            margin: 0;
        }

        & ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        & li {
            padding: 0.6rem 0;
            border-top: 1px solid var(--pk-line);
            font-size: 0.9875rem;
        }

        & .site-more {
            margin-top: 1rem;
        }
    }

    .feat-swatch {
        flex: none;
        width: 1rem;
        height: 1rem;
        border-radius: 0.25rem;
        background: var(--c);
    }

    .feat-lead {
        margin: 0 0 1rem;
        max-width: 38rem;
        font-size: 1.125rem;
    }

    .feat-snap {
        display: flex;
        justify-content: flex-start;
    }

    .feat-needs {
        margin-top: 4rem;
        padding: 2.25rem 2.5rem;
        border-radius: 1rem;
        background: var(--site-dawn);
        scroll-margin-top: 1rem;

        & h2 {
            margin: 0 0 0.4rem;
            font-size: 1.75rem;
            font-weight: 800;
        }

        & p {
            margin: 0 0 1.25rem;
            color: var(--site-muted);
        }

        & ul {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0 2.5rem;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        & li {
            padding: 0.7rem 0;
            border-top: 1px solid rgb(19 33 44 / 0.15);
        }
    }

    @media (max-width: 52rem) {
        .feat,
        .feat-needs ul {
            grid-template-columns: minmax(0, 1fr);
        }

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

        /* The piece of the app as wide as on the front page, not shrunk to
           its longest line. */
        .feat-snap {
            display: block;
        }

        .feat-needs {
            padding: 1.5rem 1.25rem;
        }
    }
}

/* ---------------------------------------------------------------------------
   EET 2.0: the way of one sale, travelled once by a receipt as the page
   opens; the dates on a dashed line; the setting up in steps.
   --------------------------------------------------------------------------- */

@layer components {
    .eet-flow {
        padding: 2.25rem 2.5rem 2rem;
        border-radius: 1.25rem;
        background: #fff;
    }

    /* From the first station's middle to the last's: three equal columns. */
    .eet-track {
        position: relative;
        height: 1.75rem;
        margin: 1.75rem 16.666% 0;

        &::before {
            content: '';
            position: absolute;
            top: 50%;
            right: 0;
            left: 0;
            height: 3px;
            background: var(--site-ink);
            transform: translateY(-50%);
        }
    }

    .eet-stop {
        position: absolute;
        top: 50%;
        width: 1.25rem;
        height: 1.25rem;
        border: 3px solid var(--site-ink);
        border-radius: 50%;
        background: #fff;
        transform: translate(-50%, -50%);

        &:nth-child(1) {
            left: 0;
        }

        &:nth-child(2) {
            left: 50%;
        }

        &:nth-child(3) {
            left: 100%;
        }
    }

    .eet-stop-last {
        animation: eet-arrive 300ms ease-out 3.2s both;
    }

    @keyframes eet-arrive {
        to {
            border-color: var(--app-green);
            background: var(--app-green);
        }
    }

    .eet-token {
        position: absolute;
        top: 50%;
        left: 0;
        width: 1.1rem;
        height: 1.5rem;
        border: 2px solid var(--site-ink);
        border-radius: 2px;
        background: #fff;
        box-shadow: 0 4px 8px rgb(19 33 44 / 0.25);
        transform: translate(-50%, -50%);
        animation: eet-travel 2.4s ease-in-out 0.8s both;
    }

    @keyframes eet-travel {
        0% {
            left: 0;
        }

        40%,
        55% {
            left: 50%;
        }

        95% {
            left: 100%;
            opacity: 1;
        }

        100% {
            left: 100%;
            opacity: 0;
        }
    }

    .eet-stations {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
        margin: 1rem 0 0;
        padding: 0;
        list-style: none;
        text-align: center;
    }

    .eet-station {
        & h3 {
            margin: 0.15rem 0 0.35rem;
            font-size: 1.375rem;
            font-weight: 750;
        }

        & p {
            max-width: 18rem;
            margin: 0 auto;
            color: var(--site-muted);
            font-size: 0.9375rem;
        }
    }

    .eet-time {
        color: var(--site-muted);
        font-size: 0.875rem;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

    .eet-confirmed {
        margin-top: 0.6rem;
        animation: eet-pop 300ms ease-out 3.2s both;
    }

    @keyframes eet-pop {
        from {
            opacity: 0;
            transform: scale(0.8);
        }
    }

    .eet-offline {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 1.5rem;
        align-items: center;
        margin-top: 2.25rem;
        padding: 1.25rem 1.5rem;
        border: 1px solid var(--pk-warn-line);
        border-radius: 0.9rem;
        background: var(--pk-warn-bg);

        & h3 {
            margin: 0 0 0.25rem;
            color: var(--pk-warn-ink);
            font-size: 1.125rem;
            font-weight: 750;
        }

        & p {
            margin: 0;
            max-width: 44rem;
        }
    }

    .eet-offline-hours {
        color: var(--pk-warn-ink);
        font-size: 2.75rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        white-space: nowrap;
    }

    .eet-watch {
        margin: 1.25rem 0 0;
        max-width: 44rem;
        color: var(--site-muted);
        font-size: 0.9375rem;
    }

    .eet-dates {
        margin-top: 4.5rem;

        & ol {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 2rem;
            margin: 2rem 0 0;
            padding: 1.75rem 0 0;
            border-top: 3px dashed var(--site-ink);
            list-style: none;
        }

        & li {
            position: relative;
            display: grid;
            gap: 0.25rem;

            &::before {
                content: '';
                position: absolute;
                top: calc(-1.75rem - 0.6rem - 1.5px);
                left: 0;
                width: 1.2rem;
                height: 1.2rem;
                border-radius: 50%;
                background: var(--site-ink);
            }

            & span:last-child {
                color: var(--site-muted);
            }
        }
    }

    .eet-date {
        font-size: 2.25rem;
        font-weight: 800;
        line-height: 1.05;
        letter-spacing: -0.03em;
        font-variant-numeric: tabular-nums;
    }

    .eet-setup {
        margin-top: 4.5rem;

        & .help-steps {
            margin-top: 1.5rem;
        }

        & .help-step {
            padding-block: 1.25rem;

            &::before {
                font-size: 2.75rem;
            }

            & p {
                font-size: 1.125rem;
            }
        }
    }

    .eet-notes {
        grid-template-columns: minmax(0, 44rem);
        margin-top: 3rem;
    }

    .eet-cta {
        margin-top: 3rem;
    }

    @media (max-width: 52rem) {
        .eet-flow {
            padding: 1.5rem 1.25rem;
        }

        .eet-track {
            display: none;
        }

        /* The way down the left, a stop at each station's time, the last
           one turning green as on a wide screen. */
        .eet-stations {
            --dot: 1.25rem;
            --mid: 0.875rem;
            --gap: 1.25rem;
            --rail: 2rem;

            grid-template-columns: minmax(0, 1fr);
            gap: var(--gap);
            padding-left: var(--rail);
            text-align: left;
        }

        .eet-station {
            position: relative;

            & p {
                margin: 0;
            }

            &::before {
                content: '';
                position: absolute;
                top: calc(var(--mid) - var(--dot) / 2);
                left: calc(-1 * var(--rail));
                z-index: 1;
                width: var(--dot);
                height: var(--dot);
                border: 3px solid var(--site-ink);
                border-radius: 50%;
                background: #fff;
            }

            &:last-child::before {
                animation: eet-arrive 300ms ease-out 3.2s both;
            }

            &:not(:last-child)::after {
                content: '';
                position: absolute;
                top: var(--mid);
                bottom: calc(-1 * (var(--gap) + var(--mid)));
                left: calc(var(--dot) / 2 - var(--rail) - 1.5px);
                width: 3px;
                background: var(--site-ink);
            }
        }

        .eet-offline {
            grid-template-columns: minmax(0, 1fr);
            gap: 0.25rem;
        }

        /* The dates one under another: the dashed line runs down the left
           from the first date's dot to the last's, each dot level with its
           date. */
        .eet-dates ol {
            --dot: 1.2rem;
            --mid: 0.98rem;
            --gap: 1.75rem;
            --rail: 2.25rem;

            grid-template-columns: minmax(0, 1fr);
            gap: var(--gap);
            margin-top: 1.5rem;
            padding: 0 0 0 var(--rail);
            border-top: 0;
        }

        .eet-dates li {
            &::before {
                top: calc(var(--mid) - var(--dot) / 2);
                left: calc(-1 * var(--rail));
                width: var(--dot);
                height: var(--dot);
            }

            &:not(:last-child)::after {
                content: '';
                position: absolute;
                top: var(--mid);
                bottom: calc(-1 * (var(--gap) + var(--mid)));
                left: calc(var(--dot) / 2 - var(--rail) - 1.5px);
                border-left: 3px dashed var(--site-ink);
            }
        }

        .eet-date {
            font-size: 1.875rem;
        }
    }

    /* A phone: the card's and the warning's margins give the text the room. */
    @media (max-width: 34rem) {
        .eet-flow {
            padding: 1.25rem 1rem;
        }

        .eet-offline {
            padding: 1rem;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .eet-token {
            display: none;
        }

        .eet-stop-last,
        .eet-station:last-child::before,
        .eet-confirmed {
            animation-duration: 1ms;
            animation-delay: 0s;
        }
    }
}

@layer components {
    .eet-source {
        margin: 1.25rem 0 0;
        color: var(--site-muted);
        font-size: 0.875rem;

        & a {
            color: var(--site-ink);
            font-weight: 700;
            text-underline-offset: 3px;
        }
    }
}


/* ---------------------------------------------------------------------------
   Printed (a legal document's „Vytisknout“, which is also how it is saved as
   a PDF): the page's text alone, black on white, no header, menu, footer or
   dialog, and each address written out after its link.
--------------------------------------------------------------------------- */
@media print {
    .site-header,
    .site-menu,
    .site-footer,
    .site-dialog,
    .site-preview,
    .site-announcement,
    .site-legal-nav,
    .site-legal-older,
    .site-legal-print {
        display: none !important;
    }

    .site-body {
        background: #fff;
        color: #000;
    }

    .site-page {
        padding-block: 0;
    }

    .site-legal {
        max-width: none;
    }

    .site-legal-text {
        font-size: 10.5pt;

        & h2 {
            break-after: avoid;
        }

        & table {
            display: table;
        }

        & a[href^='http']::after {
            content: ' (' attr(href) ')';
        }
    }
}
